
/*
	* LayerSlider
	*
	* (c) 2011-2025 George Krupa, John Gera & Kreatura Media
	*
	* LayerSlider home:		https://layerslider.com/
	* Licensing:			https://layerslider.com/licensing/
*/

;(function(a){'use strict';window._layerSliders={},window._lsData={$overflowWrapper:a("body").length?a("body"):a("html"),isMobile:!!navigator.userAgent.match(/(iPhone|iPod|iPad|Android|BlackBerry|BB10|webOS|Windows Phone|IEMobile|mobi|opera mini|nexus 7)/i)||navigator.maxTouchPoints&&2<navigator.maxTouchPoints&&/Macintosh/.test(navigator.userAgent),supportOrientation:!!window.DeviceOrientationEvent,screen:{},document:{},viewport:{},scroll:{direction:"down"},resize:{},getScreenSize:function(){window._lsData.screen={width:screen.width,height:screen.height,ratio:screen.width/screen.height}},slide:{keys:{slidedelay:["data","duration"],duration:["data","duration"],timeshift:["data","timeShift"],transition2d:["data","transition2d"],transition3d:["data","transition3d"],transitionorigami:["data","transitionorigami"],customtransition2d:["data","customtransition2d"],customtransition3d:["data","customtransition3d"],transitionduration:["data","transitionDuration"],backgroundsize:["data","backgroundSize"],bgsize:["data","backgroundSize"],backgroundposition:["data","backgroundPosition"],bgposition:["data","backgroundPosition"],backgroundcolor:["data","backgroundColor"],bgcolor:["data","backgroundColor"],thumbnail:["data","thumbnail"],deeplink:["data","deeplink"],overflow:["data","overflow"],kenburnspan:["kenBurns","pan"],kenburnszoom:["kenBurns","zoom"],kenburnsrotation:["kenBurns","rotation"],kenburnsrotate:["kenBurns","rotation"],kenburnsscale:["kenBurns","scale"],filterfrom:["filter","from"],filterto:["filter","to"],parallaxtype:["parallax","type"],parallaxevent:["parallax","event"],parallaxdirection:["parallax","direction"],parallaxdelay:["parallax","startAt"],parallaxaxis:["parallax","axis"],parallaxtransformorigin:["parallax","transformOrigin"],parallaxdurationenter:["parallax","durationEnter"],parallaxdurationmove:["parallax","durationMove"],parallaxdurationleave:["parallax","durationLeave"],parallaxrotate:["parallax","rotation"],parallaxrotation:["parallax","rotation"],parallaxdistance:["parallax","distance"],parallaxtransformperspective:["parallax","transformPerspective"],parallaxpathduration:["parallax","pathDuration"],parallaxpath:["parallax","path"],parallaxcount:["parallax","count"],parallaxstartat:["parallax","startAt"],parallaxrandomduration:["parallax","randomDuration"],parallaxoffsetx:["parallax","randomX"],parallaxoffsety:["parallax","randomY"],parallaxeasing:["parallax","ease"],parallaxrandomstartat:["parallax","randomStartAt"],parallaxrandomcount:["parallax","randomCount"],parallaxrandomwait:["parallax","randomWait"],globalhover:["data","globalhover"]}},layer:{keys:{keyframe:["is"],responsive:["is"],pinned:["is"],position:["settings"],static:["settings"],minresponsiveratio:["settings"],maxresponsiveratio:["settings"],usesliderratio:["settings"],trmask:["settings"],smartbgease:["settings"],minfontsize:["styleSettings"],minmobilefontsize:["styleSettings"],overlay:["styleSettings"],pointerevents:["styleSettings"],smartbg:["styleSettings"],autoplay:["mediaSettings"],controls:["mediaSettings"],showinfo:["mediaSettings"],thumbnail:["poster","mediaSettings"],poster:["mediaSettings"],volume:["mediaSettings"],muted:["mediaSettings"],loopmedia:["loop","mediaSettings"],backgroundvideo:["backgroundVideo","mediaSettings"],fadein:["opacity","inLayerFromCSS"],opacityin:["opacity","inLayerFromCSS"],rotatein:["rotation","inLayerFromCSS"],rotatexin:["rotationX","inLayerFromCSS"],rotateyin:["rotationY","inLayerFromCSS"],rotationin:["rotation","inLayerFromCSS"],rotationxin:["rotationX","inLayerFromCSS"],rotationyin:["rotationY","inLayerFromCSS"],scalein:["scale","inLayerFromCSS"],scalexin:["scaleX","inLayerFromCSS"],scaleyin:["scaleY","inLayerFromCSS"],skewxin:["skewX","inLayerFromCSS"],skewyin:["skewY","inLayerFromCSS"],bgcolorin:["backgroundColor","inLayerStyleFromCSS"],colorin:["color","inLayerStyleFromCSS"],radiusin:["borderRadius","inLayerStyleShouldBeConvertedFrom"],widthin:["width","inLayerStyleShouldBeConvertedFrom"],heightin:["height","inLayerStyleShouldBeConvertedFrom"],filterin:["filter","inLayerStyleShouldBeConvertedFrom"],clipin:["clipPath","inClipFromCSS"],zindexin:["zIndex","in"],rotate:["rotation","inLayerToCSS"],rotatex:["rotationX","inLayerToCSS"],rotatey:["rotationY","inLayerToCSS"],rotation:["rotation","inLayerToCSS"],rotationx:["rotationX","inLayerToCSS"],rotationy:["rotationY","inLayerToCSS"],scale:["scale","inLayerToCSS"],scalex:["scaleX","inLayerToCSS"],scaley:["scaleY","inLayerToCSS"],skewx:["skewX","inLayerToCSS"],skewy:["skewY","inLayerToCSS"],transformoriginin:["transformOrigin","inLayerShouldBeConverted"],offsetxin:["x","inLayerShouldBeConverted"],offsetyin:["y","inLayerShouldBeConverted"],delayin:["startAt","in"],startatin:["startAt","in"],startatfirst:["startAtFirst","in"],instartat:["startAt","in"],durationin:["duration","in"],easein:["ease","in"],easingin:["ease","in"],transitionin:["enabled","in"],transformmirrorin:["mirror","in"],skipviewport:["skipViewport","settings"],textfadein:["opacity","textInNodesFrom"],textopacityin:["opacity","textInNodesFrom"],textrotatein:["rotation","textInNodesFrom"],textrotatexin:["rotationX","textInNodesFrom"],textrotateyin:["rotationY","textInNodesFrom"],textrotationin:["rotation","textInNodesFrom"],textrotationxin:["rotationX","textInNodesFrom"],textrotationyin:["rotationY","textInNodesFrom"],textscalein:["scale","textInNodesFrom"],textscalexin:["scaleX","textInNodesFrom"],textscaleyin:["scaleY","textInNodesFrom"],textskewxin:["skewX","textInNodesFrom"],textskewyin:["skewY","textInNodesFrom"],textcolorin:["color","textInNodesFrom"],textclipin:["clipPath","textInNodesFrom"],textoverflowin:["overflow","textInLayerStyle"],texteasein:["ease","textInNodesTo"],texteasingin:["ease","textInNodesTo"],texttransformoriginin:["transformOrigin","textInShouldBeConverted"],textoffsetxin:["x","textInShouldBeConverted"],textoffsetyin:["y","textInShouldBeConverted"],texttypein:["type","textIn"],textshiftin:["shiftNodes","textIn"],textdelayin:["startAt","textIn"],textstartatin:["startAt","textIn"],textinstartat:["startAt","textIn"],textdurationin:["duration","textIn"],texttransitionin:["enabled","textIn"],texttransformmirrorin:["mirror","textIn"],fadeout:["opacity","outLayerToCSS"],opacityout:["opacity","outLayerToCSS"],rotateout:["rotation","outLayerToCSS"],rotatexout:["rotationX","outLayerToCSS"],rotateyout:["rotationY","outLayerToCSS"],rotationout:["rotation","outLayerToCSS"],rotationxout:["rotationX","outLayerToCSS"],rotationyout:["rotationY","outLayerToCSS"],scaleout:["scale","outLayerToCSS"],scalexout:["scaleX","outLayerToCSS"],scaleyout:["scaleY","outLayerToCSS"],skewxout:["skewX","outLayerToCSS"],skewyout:["skewY","outLayerToCSS"],bgcolorout:["backgroundColor","outLayerStyleToCSS"],colorout:["color","outLayerStyleToCSS"],radiusout:["borderRadius","outLayerStyleShouldBeConvertedTo"],widthout:["width","outLayerStyleShouldBeConvertedTo"],heightout:["height","outLayerStyleShouldBeConvertedTo"],filterout:["filter","outLayerStyleShouldBeConvertedTo"],clipout:["clipPath","outClipToCSS"],zindexout:["zIndex","out"],transformoriginout:["transformOrigin","outLayerShouldBeConverted"],offsetxout:["x","outLayerShouldBeConverted"],offsetyout:["y","outLayerShouldBeConverted"],showuntil:["showUntil","out"],startatout:["startAt","out"],outstartat:["startAt","out"],durationout:["duration","out"],easeout:["ease","out"],easingout:["ease","out"],transitionout:["enabled","out"],transformmirrorout:["mirror","out"],textfadeout:["opacity","textOutNodesTo"],textopacityout:["opacity","textOutNodesTo"],textrotateout:["rotation","textOutNodesTo"],textrotatexout:["rotationX","textOutNodesTo"],textrotateyout:["rotationY","textOutNodesTo"],textrotationout:["rotation","textOutNodesTo"],textrotationxout:["rotationX","textOutNodesTo"],textrotationyout:["rotationY","textOutNodesTo"],textscaleout:["scale","textOutNodesTo"],textscalexout:["scaleX","textOutNodesTo"],textscaleyout:["scaleY","textOutNodesTo"],textskewxout:["skewX","textOutNodesTo"],textskewyout:["skewY","textOutNodesTo"],textcolorout:["color","textOutNodesTo"],textclipout:["clipPath","textOutNodesTo"],texteaseout:["ease","textOutNodesTo"],texteasingout:["ease","textOutNodesTo"],texttransformoriginout:["transformOrigin","textOutShouldBeConverted"],textoffsetxout:["x","textOutShouldBeConverted"],textoffsetyout:["y","textOutShouldBeConverted"],textoverflowout:["overflow","textOutLayerStyle"],texttypeout:["type","textOut"],textshiftout:["shiftNodes","textOut"],textdelayout:["startAt","textOut"],textstartatout:["startAt","textOut"],textoutstartat:["startAt","textOut"],textdurationout:["duration","textOut"],texttransitionout:["enabled","textOut"],texttransformmirrorout:["mirror","textOut"],loopopacity:["opacity","loopLayerShouldBeConverted"],looprotate:["rotation","loopLayerShouldBeConverted"],looprotatex:["rotationX","loopLayerShouldBeConverted"],looprotatey:["rotationY","loopLayerShouldBeConverted"],looprotation:["rotation","loopLayerShouldBeConverted"],looprotationx:["rotationX","loopLayerShouldBeConverted"],looprotationy:["rotationY","loopLayerShouldBeConverted"],loopscale:["scale","loopLayerShouldBeConverted"],loopscalex:["scaleX","loopLayerShouldBeConverted"],loopscaley:["scaleY","loopLayerShouldBeConverted"],loopskewx:["skewX","loopLayerShouldBeConverted"],loopskewy:["skewY","loopLayerShouldBeConverted"],looptransformorigin:["transformOrigin","loopLayerShouldBeConverted"],loopoffsetx:["x","loopLayerShouldBeConverted"],loopoffsety:["y","loopLayerShouldBeConverted"],loopfilter:["filter","loopLayerShouldBeConverted"],loopclip:["clipPath","loopClipToCSS"],loopdelay:["startAt","loop"],loopstartat:["startAt","loop"],loopduration:["duration","loopTimingsShouldBeConverted"],loopcount:["count","loop"],looptweendelay:["tweenDelay","loopTimingsShouldBeConverted"],looprepeatdelay:["repeatDelay","loopTimingsShouldBeConverted"],loopyoyo:["yoyo","loop"],loopyoyodelay:["yoyoDelay","loopTimingsShouldBeConverted"],loopease:["ease","loop"],loopeasing:["ease","loop"],loopresume:["resume","loop"],loop:["enabled","loop"],hoveropacity:["opacity","hoverToCSS"],hoverrotate:["rotation","hoverToCSS"],hoverrotatex:["rotationX","hoverToCSS"],hoverrotatey:["rotationY","hoverToCSS"],hoverrotation:["rotation","hoverToCSS"],hoverrotationx:["rotationX","hoverToCSS"],hoverrotationy:["rotationY","hoverToCSS"],hoverscale:["scale","hoverToCSS"],hoverscalex:["scaleX","hoverToCSS"],hoverscaley:["scaleY","hoverToCSS"],hoverskewx:["skewX","hoverToCSS"],hoverskewy:["skewY","hoverToCSS"],hoverbgcolor:["backgroundColor","hoverToCSS"],hovercolor:["color","hoverToCSS"],hoverease:["easeIn","hover"],hovereasing:["easeIn","hover"],hovereasein:["easeIn","hover"],hovereasingin:["easeIn","hover"],hovereaseout:["easeOut","hover"],hovereasingout:["easeOut","hover"],hoverduration:["durationIn","hover"],hoverdurationin:["durationIn","hover"],hoverdurationout:["durationOut","hover"],hoveralwaysontop:["alwaysOnTop","hover"],hoveroffsetx:["x","hoverShouldBeConverted"],hoveroffsety:["y","hoverShouldBeConverted"],hoverfilter:["filter","hoverShouldBeConverted"],hoverborderradius:["borderRadius","hoverShouldBeConverted"],hoverradius:["borderRadius","hoverShouldBeConverted"],hovertransformorigin:["transformOrigin","hoverShouldBeConverted"],hoverskipglobal:["skipGlobal","hover"],hover:["enabled","hover"],kenburnspan:["pan","kenBurns"],kenburnszoom:["zoom","kenBurns"],kenburnsrotation:["rotation","kenBurns"],kenburnsrotate:["rotation","kenBurns"],kenburnsscale:["scale","kenBurns"],parallaxlevel:["level","parallax"],parallaxtype:["type","parallax"],parallaxevent:["event","parallax"],parallaxdirection:["direction","parallax"],parallaxduration:["duration","parallax"],parallaxdelay:["startAt","parallax"],parallaxaxis:["axis","parallax"],parallaxtransformorigin:["transformOrigin","parallax"],parallaxdurationmove:["durationMove","parallax"],parallaxdurationenter:["durationEnter","parallax"],parallaxdurationleave:["durationLeave","parallax"],parallaxrotate:["rotation","parallax"],parallaxrotation:["rotation","parallax"],parallaxreset:["reset","parallax"],parallaxdistance:["distance","parallax"],parallaxpath:["path","parallax"],parallaxcount:["count","parallax"],parallaxstartat:["startAt","parallax"],parallaxpathduration:["pathDuration","parallax"],parallaxrandomduration:["randomDuration","parallax"],parallaxoffsetx:["randomX","parallax"],parallaxoffsety:["randomY","parallax"],parallaxeasing:["ease","parallax"],parallaxrandomcount:["randomCount","parallax"],parallaxrandomstartat:["randomStartAt","parallax"],parallaxrandomwait:["randomWait","parallax"],parallax:["enabled","parallax"],scroll:["enabled","scroll"],scrollduration:["duration","scroll"],scrolldurationrev:["durationRev","scroll"],scrollease:["ease","scroll"],scrolleaserev:["easeRev","scroll"],scrollcenter:["center","scroll"],scrollopacity:["opacity","scroll"],scrollopacitymin:["opacitymin","scroll"],scrollopacitymax:["opacitymax","scroll"],scrollopacityyoyo:["opacityyoyo","scroll"],scrollopacityinvert:["opacityinvert","scroll"],scrollrotate:["rotation","scroll"],scrollrotatemin:["rotationmin","scroll"],scrollrotatemax:["rotationmax","scroll"],scrollrotateyoyo:["rotationyoyo","scroll"],scrollrotatex:["rotationX","scroll"],scrollrotatexmin:["rotationXmin","scroll"],scrollrotatexmax:["rotationXmax","scroll"],scrollrotatexyoyo:["rotationXyoyo","scroll"],scrollrotatey:["rotationY","scroll"],scrollrotateymin:["rotationYmin","scroll"],scrollrotateymax:["rotationYmax","scroll"],scrollrotateyyoyo:["rotationYyoyo","scroll"],scrollrotation:["rotation","scroll"],scrollrotationmin:["rotationmin","scroll"],scrollrotationmax:["rotationmax","scroll"],scrollrotationyoyo:["rotationyoyo","scroll"],scrollrotationx:["rotationX","scroll"],scrollrotationxmin:["rotationXmin","scroll"],scrollrotationxmax:["rotationXmax","scroll"],scrollrotationxyoyo:["rotationXyoyo","scroll"],scrollrotationy:["rotationY","scroll"],scrollrotationymin:["rotationYmin","scroll"],scrollrotationymax:["rotationYmax","scroll"],scrollrotationyyoyo:["rotationYyoyo","scroll"],scrollscalex:["scaleX","scroll"],scrollscalexmin:["scaleXmin","scroll"],scrollscalexmax:["scaleXmax","scroll"],scrollscalexyoyo:["scaleXyoyo","scroll"],scrollscaley:["scaleY","scroll"],scrollscaleymin:["scaleYmin","scroll"],scrollscaleymax:["scaleYmax","scroll"],scrollscaleyyoyo:["scaleYyoyo","scroll"],scrollskewx:["skewX","scroll"],scrollskewxmin:["skewXmin","scroll"],scrollskewxmax:["skewXmax","scroll"],scrollskewxyoyo:["skewXyoyo","scroll"],scrollskewy:["skewY","scroll"],scrollskewymin:["skewYmin","scroll"],scrollskewymax:["skewYmax","scroll"],scrollskewyyoyo:["skewYyoyo","scroll"],scrolloffsetx:["x","scroll"],scrolloffsetxmin:["xmin","scroll"],scrolloffsetxmax:["xmax","scroll"],scrolloffsetxyoyo:["xyoyo","scroll"],scrolloffsetxresponsive:["xresponsive","scroll"],scrolloffsety:["y","scroll"],scrolloffsetymin:["ymin","scroll"],scrolloffsetymax:["ymax","scroll"],scrolloffsetyyoyo:["yyoyo","scroll"],scrolloffsetyresponsive:["yresponsive","scroll"],scrolltransformorigin:["transformOrigin","scrollShouldBeConverted"],scrolltransformoriginalt:["transformOriginAlt","scrollShouldBeConverted"],scrollgetposition:["getPosition","scroll"],transformperspective:["layer","transformPerspective"],transformperspectivein:["layer","transformPerspective"],transformperspectiveout:["layer","transformPerspective"],texttransformperspective:["text","transformPerspective"],texttransformperspectivein:["text","transformPerspective"],texttransformperspectiveout:["text","transformPerspective"],looptransformperspective:["loop","transformPerspective"],hovertransformperspective:["hover","transformPerspective"],parallaxtransformperspective:["parallax","transformPerspective"],scrolltransformperspective:["scroll","transformPerspective"]}}},a(window).on("resize.lsGlobal",function(){window._lsData.documentIsAccessible&&(window._lsData.document={width:document.body.scrollWidth,height:document.body.scrollHeight},window._lsData.viewport={lastWidth:window._lsData.viewport.width||0,lastHeight:window._lsData.viewport.height||0,width:a(window).width(),height:a(window).height()},a(window).trigger("scroll.lsGlobal"),window._lsData.resize.timeout&&clearTimeout(window._lsData.resize.timeout),window._lsData.resize.once?window._lsData.resize.once=!1:window._lsData.resize.timeout=setTimeout(function(){window._lsData.resize.once=!0,a(window).trigger("resize.lsGlobal")},100))}),a(window).on("scroll.lsGlobal",function(){window._lsData.documentIsAccessible&&(window._lsData.scroll.left=window.pageXOffset,window._lsData.scroll.top=window.pageYOffset,window._lsData.scroll.leftMax=window._lsData.document.width-window._lsData.viewport.width,window._lsData.scroll.topMax=window._lsData.document.height-window._lsData.viewport.height)}),a(document).on("wheel.lsGlobal ",function(e){0!==Math.abs(e.originalEvent.deltaY)&&(window._lsData.scroll.direction=0>e.originalEvent.deltaY?"up":"down")}),a(document).on("touchstart.lsGlobal ",function(e){window._lsData.ts=e.originalEvent.touches[0].clientY}),a(document).on("touchend.lsGlobal ",function(e){var t=e.originalEvent.changedTouches[0].clientY;window._lsData.ts>t+5?window._lsData.scroll.direction="down":window._lsData.ts<t-5&&(window._lsData.scroll.direction="up")}),a.fn.layerSlider=function(t,i,r,s){window._lsData.documentIsAccessible=!0,t=t||{};var o=a.fn.jquery,n;return window._layerSlider.checkVersions("1.8.0",o,"1.8.0")?(typeof t).match("object|undefined")?this.each(function(){n="LS"+Math.random().toString(36).substr(2,9),a(this).data("lsSliderUID")||(window._layerSliders[n]=new e(this,a(this),t,n))}):"data"===t?window._layerSliders[this.data("lsSliderUID")]:"eventData"===t?window._layerSliders[this.data("lsSliderUID")].api.eventData():"defaultInitOptions"===t?window._layerSliders[this.data("lsSliderUID")].defaults.init.options||!1:"userInitOptions"===t?window._layerSliders[this.data("lsSliderUID")].userInitOptions||!1:"sliderInitOptions"===t?window._layerSliders[this.data("lsSliderUID")].o||!1:"originalMarkup"===t?window._layerSliders[this.data("lsSliderUID")].originalMarkup||!1:this.each(function(){var e=window._layerSliders[a(this).data("lsSliderUID")];e&&e.api.methods(t,i,r,s),e=null}):void window._layerSlider.showNotice(this,"oldjquery",o,"1.8.0")};var e=function(e,t,i,r){t.data("lsSliderUID",r).attr("data-layerslider-uid",r);var n=this,s=n.gsap=window._layerSlider.GSAP?window._layerSlider.GSAP:window,o=a(window),l=window._lsData;n.defaults={init:{staggerSplitChar:"|",rangeSplitChar:"..",randomSplitChar:"|",openingBracket:"[",closingBracket:"]",dataKey:"_LS",controls:["#playmedia","#pausemedia","#unmute","#unmutemedia","#start","#stop","#prev","#next","#replay","#reverse","#reverse-replay","#reversereplay"],options:{silentMode:!1,getData:!1,destroyAfter:!0,type:"responsive",fullSizeMode:"normal",fitScreenWidth:!0,calculateOffsetFrom:!1,preventSliderClip:!0,allowFullscreen:!1,performanceMode:!0,performanceModeThreshold:"20sh",responsiveUnder:-1,layersContainerWidth:-1,layersContainerHeight:-1,maxRatio:-1,insertMethod:"prependTo",insertSelector:null,clipSlideTransition:!1,slideBGSize:"cover",slideBGPosition:"50% 50%",preferBlendMode:!1,scene:!1,sceneHeight:2,sceneSpeed:100,sceneDuration:null,smoothScrollDuration:1e3,stickTo:"center",autoStart:!0,startInViewport:!0,playByScroll:!1,playByScrollSpeed:1,playByScrollStart:!1,playByScrollSkipSlideBreaks:!1,pauseOnHover:!1,pauseLayers:!1,firstSlide:1,sliderFadeInDuration:0,animateFirstSlide:!1,firstSlideDuration:!1,firstSlideTimeShift:!1,cycles:-1,forceCycles:!0,twoWaySlideshow:!1,shuffleSlideshow:!1,forceLayersOutDuration:750,slideDuration:!1,slideDurationWithoutLayers:3e3,slideTransitionDuration:!1,slideTimeShift:0,skin:"v6",skinsPath:"/layerslider/skins/",globalBGColor:"transparent",globalBGImage:!1,globalBGRepeat:"no-repeat",globalBGAttachment:"scroll",globalBGSize:"auto",globalBGPosition:"50% 50%",marginTop:!1,marginBottom:!1,navPrevNext:!0,navStartStop:!0,navButtons:!0,keybNav:!0,touchNav:!0,hoverPrevNext:!0,hoverBottomNav:!1,showBarTimer:!1,showCircleTimer:!0,showSlideBarTimer:!1,thumbnailNavigation:"hover",tnFillMode:"contain",tnContainerWidth:"60%",tnWidth:100,tnHeight:60,tnActiveOpacity:35,tnInactiveOpacity:100,scrollModifier:0,autoPlayVideos:!0,autoPauseSlideshow:"auto",youtubePreview:"maxresdefault.jpg",rememberUnmuteState:!0,parallaxCenterDegree:40,parallaxSensitivity:10,parallaxCenterLayers:"center",parallaxScrollReverse:!1,scrollCenterLayers:"center",yourLogo:!1,yourLogoStyle:"left: -10px; top: -10px;",yourLogoLink:!1,yourLogoTarget:"_self",optimizeForMobile:!0,hideOnMobile:!1,hideUnder:-1,hideOver:-1,slideOnSwipe:!0,allowRestartOnResize:!1,fixFloatedContainers:!1,useSrcset:!0,hashChange:!1,refreshWaypoint:!0,staticImage:""}},slider:{errorText:"LayerSlider (UID: "+r+") error:"},slide:{keys:window._lsData.slide.keys,options:{$link:!1,index:-1,data:{duration:-1,timeShift:0,calculatedTimeShift:0},parallax:{count:-1,path:"circle",direction:"forward",startAt:"slidestart",pathDuration:3,type:"2d",randomCount:-1,randomX:"[-35sw..35sw]",randomY:"[-35sh..35sh]",randomStartAt:"slidestart",randomDuration:3,randomWait:0,distance:10,rotation:10,ease:"easeInOutSine"},kenBurns:{scale:1.2},filter:{}},registerPluginDefaults:function(e,t){n.defaults.slide.options.plugins||(n.defaults.slide.options.plugins={}),n.defaults.slide.options.plugins[e]=t}},layer:{keys:window._lsData.layer.keys,splitTypeKeys:["chars_asc","chars_desc","chars_rand","chars_center","chars_edge","words_asc","words_desc","words_rand","words_center","words_edge","lines_asc","lines_desc","lines_rand","lines_center","lines_edge"],timelineHierarchy:{slidestart:[0],transitioninstart:[1],transitioninend:[2],textinstart:[3,[1,2,6,7,8]],textinend:[4],allinend:[5],loopstart:[6,[1,2,3,4,5]],loopend:[7],autoparallaxstart:[6.5,[0,1,2,3,4,5,6,7]],autoparallaxend:[7.5],transitioninandloopend:[8],textinandloopend:[9],allinandloopend:[10],textoutstart:[11,[2,3,4,5,6,7,8,9,10]],textoutend:[12],textoutandloopend:[13],transitionoutstart:[14,[2,3,4,5,6,7,8,9,10,11,12,13]],transitionoutend:[15],alloutend:[16],alloutandloopend:[17]},properties:{filter:function(){return{blur:0,brightness:100,contrast:100,grayscale:0,"hue-rotate":0,invert:0,saturate:100,sepia:0}}},options:function(e,t){var i=e.data("countdown")||{},a=e.data("counter")||{},r={is:{slideBackground:!!e.is("img.ls-bg"),backgroundVideo:!!e.is(".ls-bg-video"),imageLayer:!!e.is("img.ls-layer, picture.ls-layer"),countdown:!!(i.date&&i.component),counter:!!a.type,layerGroup:!!e.is(".ls-layer-group"),insideLayerGroup:!!e.data("$layerGroup"),mediaLayer:!1,textLayer:!1,responsive:!0,onSlide:t},should:{},elements:{},settings:{position:"relative",slideIn:t,slideOut:t},styleSettings:{minfontsize:0,minmobilefontsize:0},mediaSettings:{backgroundVideo:!1},timeline:{slidestart:0,transitioninstart:0,transitioninend:0,textinstart:0,textinend:0,allinend:function(){return Math.max(this.transitioninend,this.textinend)},loopstart:0,loopend:0,autoparallaxstart:0,autoparallaxend:0,transitioninandloopend:function(e){return 0===this.loopend&&e.loop.enabled&&("number"==typeof e.loop.startAt||-1!==e.loop.startAt.indexOf("textinstart")&&-1!==e.loop.startAt.indexOf("textinend")&&-1!==e.loop.startAt.indexOf("allinend"))?(this.loopstart=n.transitions.layers.timeline.getTiming(e,e.loop.startAt,"loopstart"),this.loopend=-1!==e.loop.count&&e.timeline.loopstart+e.timelines._loop.duration()):n.debugMode&&n.debug.add("warn","layerTransition.infinite",e.self[0].tagName+"."+e.self.attr("class")+" [ "+e.self.html().substr(0,30)+"... ]"),Math.max(this.transitioninend,this.loopend,this.autoparallaxend)},textinandloopend:function(){return Math.max(this.textinend,this.loopend,this.autoparallaxend)},allinandloopend:function(){return Math.max(this.allinend(),this.loopend,this.autoparallaxend)},textoutstart:0,textoutend:0,textoutandloopend:function(){return Math.max(this.textoutend,this.loopend,this.autoparallaxend)},transitionoutstart:function(){return Math.max(this.allinandloopend(),this.textoutend,this.autoparallaxend)},transitionoutend:0,alloutend:function(){return Math.max(this.transitionoutend,this.textoutend,this.allinend())},alloutandloopend:function(){return Math.max(this.transitionoutend,this.textoutandloopend(),this.allinend())},staticfrom:!1,staticto:!1},transitionProperties:{in:{enabled:!0,layerFrom:{autoCSS:!1,immediateRender:!1,css:{opacity:0}},layerTo:{autoCSS:!1,onStart:function(){n.transitions.layers.in.onStart(e)},onComplete:function(){n.transitions.layers.in.onComplete(e)},css:{display:"block",opacity:1,rotation:0,rotationX:0,rotationY:0,scaleX:1,scaleY:1,skewX:0,skewY:0,x:0,y:0}},layerStyleFrom:{autoCSS:!1,immediateRender:!1,css:{}},layerStyleTo:{autoCSS:!1,css:{}},clipFrom:{autoCSS:!1,immediateRender:!1,css:{}},layerShouldBeConverted:{transformOrigin:"50% 50% 0",x:0,y:0},layerStyleShouldBeConvertedFrom:{},layerStyleShouldBeConvertedTo:{},startAt:0,duration:1,ease:"easeInOutQuint"},textIn:{enabled:null,nodesFrom:{cycle:{},random:{},opacity:0},nodesTo:{ease:"easeInOutQuint",css:{opacity:1,rotation:0,rotationX:0,rotationY:0,scaleX:1,scaleY:1,skewX:0,skewY:0,x:0,y:0}},shouldBeConverted:{cycle:{},random:{},transformOrigin:"50% 50% 0",x:0,y:0},layerStyle:{},split:"",shiftNodes:.05,startAt:"transitioninend",duration:1},out:{enabled:!0,layerFrom:{autoCSS:!1,immediateRender:!1,css:{}},layerTo:{autoCSS:!1,onStart:function(){n.transitions.layers.out.onStart(e)},onComplete:function(){n.transitions.layers.out.onComplete(e)},css:{opacity:0,rotation:0,rotationX:0,rotationY:0,scaleX:1,scaleY:1,skewX:0,skewY:0}},layerStyleFrom:{autoCSS:!1,immediateRender:!1,css:{}},layerStyleTo:{autoCSS:!1,css:{}},clipTo:{autoCSS:!1,css:{}},layerShouldBeConverted:{x:0,y:0},layerStyleShouldBeConvertedFrom:{},layerStyleShouldBeConvertedTo:{},startAt:"slidechangeonly",duration:1,defaultDuration:1,ease:"easeInOutQuint"},textOut:{enabled:null,nodesFrom:{immediateRender:!1,cycle:{},opacity:1},nodesTo:{ease:"easeInOutQuint",immediateRender:!1,cycle:{},random:{},opacity:0},layerStyle:{},shouldBeConverted:{cycle:{},random:{},x:0,y:0},split:"",startAt:"allinandloopend",shiftNodes:.05,duration:1},loop:{enabled:null,initial:{autoCSS:!1,immediateRender:!1,css:{x:0,y:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0,opacity:1}},to:{autoCSS:!1,css:{}},clipTo:{autoCSS:!1,immediateRender:!1,css:{}},layerShouldBeConverted:{transformOrigin:"50% 50% 0",x:0,y:0},timingsShouldBeConverted:{yoyoDelay:0,tweenDelay:0,repeatDelay:0,duration:1e3},ease:"linear",startAt:"allinend",count:0},hover:{enabled:null,from:{autoCSS:!1,immediateRender:!1,css:{}},to:{autoCSS:!1,immediateRender:!1,css:{}},shouldBeConverted:{transformOrigin:"50% 50% 0"},alwaysOnTop:!0,easeIn:"easeOutQuart",durationIn:.5},parallax:{enabled:null,level:10},scroll:{enabled:null,shouldBeConverted:{transformOrigin:"50% 50% 0"},xresponsive:!0,yresponsive:!0},kenBurns:{scale:1.2},clip:{enabled:!1,default:{autoCSS:!1,immediateRender:!1,css:{clipPath:"polygon(0% 0%,100% 0%,100% 100%,0% 100%)"}},style:{autoCSS:!1,immediateRender:!1,css:{clipPath:"polygon(0% 0%,100% 0%,100% 100%,0% 100%)"}},none:{autoCSS:!1,immediateRender:!1,css:{clipPath:"polygon(-9999% -9999%,9999% -9999%,9999% 9999%,-9999% 9999%)"}}},filter:{values:{style:{},in:{},out:{},loop:{},hover:{},afterIn:{},afterLoop:{},bgFrom:{},bgTo:{}},transitions:{bg:null,in:null,out:null,loop:null,hover:null}},init:{wrapper:{autoCSS:!1,immediateRender:!1,css:{display:"block"}}},transformPerspective:{layer:500,text:500,loop:500,hover:500},reset:{wrapperOnTimelineEnd:{autoCSS:!1,css:{opacity:1,display:"none"}},wrapperOnSlideChange:{autoCSS:!1,css:{x:0,y:0,rotation:0,rotationX:0,rotationY:0,scaleX:1,scaleY:1,skewX:0,skewY:0,opacity:1,display:"none"}},altWrapperOnSlideChange:{autoCSS:!1,css:{x:0,y:0,rotation:0,rotationX:0,rotationY:0,scaleX:1,scaleY:1,skewX:0,skewY:0,opacity:1}}}}};return{is:r.is,should:r.should,elements:r.elements,settings:r.settings,styleSettings:r.styleSettings,mediaSettings:r.mediaSettings,mediaProperties:r.mediaProperties,timeline:r.timeline,in:r.transitionProperties.in,inLayerFrom:r.transitionProperties.in.layerFrom,inLayerFromCSS:r.transitionProperties.in.layerFrom.css,inLayerStyleFrom:r.transitionProperties.in.layerStyleFrom,inLayerStyleFromCSS:r.transitionProperties.in.layerStyleFrom.css,inClipFrom:r.transitionProperties.in.clipFrom,inClipFromCSS:r.transitionProperties.in.clipFrom.css,inLayerTo:r.transitionProperties.in.layerTo,inLayerToCSS:r.transitionProperties.in.layerTo.css,inLayerStyleTo:r.transitionProperties.in.layerStyleTo,inLayerStyleToCSS:r.transitionProperties.in.layerStyleTo.css,inClipTo:r.transitionProperties.clip.style,inClipToCSS:r.transitionProperties.clip.style.css,inLayerShouldBeConverted:r.transitionProperties.in.layerShouldBeConverted,inLayerStyleShouldBeConvertedFrom:r.transitionProperties.in.layerStyleShouldBeConvertedFrom,inLayerStyleShouldBeConvertedTo:r.transitionProperties.in.layerStyleShouldBeConvertedTo,textIn:r.transitionProperties.textIn,textInLayerStyle:r.transitionProperties.textIn.layerStyle,textInNodesFrom:r.transitionProperties.textIn.nodesFrom,textInNodesTo:r.transitionProperties.textIn.nodesTo,textInNodesToCSS:r.transitionProperties.textIn.nodesTo.css,textInShouldBeConverted:r.transitionProperties.textIn.shouldBeConverted,out:r.transitionProperties.out,outLayerFrom:r.transitionProperties.out.layerFrom,outLayerFromCSS:r.transitionProperties.out.layerFrom.css,outLayerStyleFrom:r.transitionProperties.out.layerStyleFrom,outLayerStyleFromCSS:r.transitionProperties.out.layerStyleFrom.css,outClipFrom:r.transitionProperties.clip.style,outClipFromCSS:r.transitionProperties.clip.style.css,outLayerTo:r.transitionProperties.out.layerTo,outLayerToCSS:r.transitionProperties.out.layerTo.css,outLayerStyleTo:r.transitionProperties.out.layerStyleTo,outLayerStyleToCSS:r.transitionProperties.out.layerStyleTo.css,outClipTo:r.transitionProperties.out.clipTo,outClipToCSS:r.transitionProperties.out.clipTo.css,outLayerShouldBeConverted:r.transitionProperties.out.layerShouldBeConverted,outLayerStyleShouldBeConvertedFrom:r.transitionProperties.out.layerStyleShouldBeConvertedFrom,outLayerStyleShouldBeConvertedTo:r.transitionProperties.out.layerStyleShouldBeConvertedTo,textOut:r.transitionProperties.textOut,textOutLayerStyle:r.transitionProperties.textOut.layerStyle,textOutNodesFrom:r.transitionProperties.textOut.nodesFrom,textOutNodesTo:r.transitionProperties.textOut.nodesTo,textOutShouldBeConverted:r.transitionProperties.textOut.shouldBeConverted,loop:r.transitionProperties.loop,loopInitial:r.transitionProperties.loop.initial,loopInitialCSS:r.transitionProperties.loop.initial.css,loopClipFrom:r.transitionProperties.clip.style,loopClipFromCSS:r.transitionProperties.clip.style.css,loopTo:r.transitionProperties.loop.to,loopToCSS:r.transitionProperties.loop.to.css,loopClipTo:r.transitionProperties.loop.clipTo,loopClipToCSS:r.transitionProperties.loop.clipTo.css,loopLayerShouldBeConverted:r.transitionProperties.loop.layerShouldBeConverted,loopTimingsShouldBeConverted:r.transitionProperties.loop.timingsShouldBeConverted,hover:r.transitionProperties.hover,hoverFrom:r.transitionProperties.hover.from,hoverFromCSS:r.transitionProperties.hover.from.css,hoverTo:r.transitionProperties.hover.to,hoverToCSS:r.transitionProperties.hover.to.css,hoverShouldBeConverted:r.transitionProperties.hover.shouldBeConverted,parallax:r.transitionProperties.parallax,scroll:r.transitionProperties.scroll,scrollShouldBeConverted:r.transitionProperties.scroll.shouldBeConverted,kenBurns:r.transitionProperties.kenBurns,clip:r.transitionProperties.clip,filter:r.transitionProperties.filter,transformPerspective:r.transitionProperties.transformPerspective,init:r.transitionProperties.init,reset:r.transitionProperties.reset,countdownSettings:i,counterSettings:a,timelines:{},randomValues:{}}}}},n.slides={count:0,first:{},last:{},prev:{},current:{},next:{},init:function(){if(!document.body.contains(e))return!1;for(var i=t.find("> .ls-layer, > .ls-slide"),r=0,s=n.defaults.slide.keys,o=0,l=i.length;o<l;o++){var d=a(i[o]),u=d[0].style,c=a.extend(!0,{},n.defaults.slide.options),m=!1;if(n.slides.count++,d.removeClass("ls-layer").addClass("ls-slide").css({width:n.slider.initial.originalWidth,height:n.slider.initial.originalHeight}).appendTo(n.slider.$hiddenWrapper),d.data("ls"))for(var h=d.data("ls").split(";"),g=0;g<h.length;g++){var y=h[g].split(":"),f,v;y[0]=a.trim(y[0].toLowerCase()),y[1]=a.trim(y[1]),-1==["thumbnail"].indexOf(y[0])&&(y[1]=y[1].toLowerCase()),""!==y[0]&&("undefined"==typeof s[y[0]]?c.data[y[0]]=y[1]:(f="undefined"==typeof s[y[0]][1]?y[0]:s[y[0]][1],v=n.functions.convert.properties(y[1]),f.match(/(duration|delay|wait|timeshift)/i)&&a.isNumeric(v)&&(v/=1e3),!c[s[y[0]][0]]&&(c[s[y[0]][0]]={}),c[s[y[0]][0]][f]=v))}if(c.plugins&&!a.isEmptyObject(c.plugins))for(var S in c.plugins)if(d.data("ls-plugin-"+S)){var b=d.data("ls-plugin-"+S).toLowerCase().split(";"),w={};for(var T in c.plugins[S])w[T.toLowerCase()]=T;for(var C=0;C<b.length;C++){var O=b[C].split(":"),k;O[0]=a.trim(O[0]),""!==O[0]&&(k=n.functions.convert.properties(a.trim(O[1])),(-1!==O[0].indexOf("duration")||-1!==O[0].indexOf("delay"))&&(k/=1e3),w[O[0]]?c.plugins[S][w[O[0]]]=k:c.plugins[S][O[0]]=k)}}else delete c.plugins[S];d.children("a.ls-link").length&&(c.data.$link=d.children("a.ls-link").first().css({zIndex:5}).attr("data-ls-slide-link",r+1).appendTo(n.slider.$layersWrapper),n.layers.set.smartLinks(c.data.$link)),c.data.$backgroundVideo=d.children("[data-ls*=\"backgroundvideo\"]").first(),c.data.$backgroundVideo.find("iframe, video, audio").length||(c.data.$backgroundVideo=a()),c.data.$backgroundVideo.length&&(null===c.data.$backgroundVideo.attr("data-ls").split("backgroundvideo")[1].split(";")[0].match(/(true|enabled|on|1)/i)?c.data.$backgroundVideo=!1:(c.data.$backgroundVideo.addClass("ls-bg-video").css({width:"auto",height:"auto"}).children("video, audio, iframe").css({width:"100%",height:"100%"}),c.data.$backgroundVideo.append(a("<div class=\"ls-bg-video-overlay\"></div>")))),d.find("> .ls-bg").length&&(c.data.$background=d.find("> .ls-bg").first()),c.data.thumbnail||(d.find("> .ls-tn").length?m=d.find("> .ls-tn").first():d.find("> .ls-bg").length&&(m=d.find("> .ls-bg").first()),m?(c.data.thumbnail=n.functions.getURL(m),c.data.tnAlt=n.functions.getALT(m)):c.data.thumbnail=n.o.skinsPath+n.o.skin+"/nothumb.png"),(c.data.customtransition2d||c.data.customtransition3d)&&"undefined"==typeof layerSliderCustomTransitions&&(delete c.data.customtransition2d,delete c.data.customtransition3d,n.debugMode&&n.debug.add("warn","sliderInit.customTransitions",r+1)),"visible"===u.overflow&&(c.data.overflow="visible"),c.data.$background||!c.data.backgroundColor||c.data.$backgroundVideo&&c.data.$backgroundVideo.length||(c.data.$background=a("<img>").addClass("ls-bg").attr("src","data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==").appendTo(d)),c.data.backgroundColor&&-1!==c.data.backgroundColor.indexOf("gradient")?c.data.backgroundGradient=c.data.backgroundColor:!c.data.backgroundColor&&(c.data.backgroundColor=""===d[0].style.backgroundColor?"transparent":d[0].style.backgroundColor),n.o.silentMode&&(c.data.transitionDuration=0),n.slides[++r]={data:a.extend(!0,{},n.defaults.slide.options.data,c.data),parallax:c.parallax,scroll:c.scroll,kenBurns:c.kenBurns,filter:c.filter,index:r,$layers:a(),plugins:c.plugins,effectLayers:d.find("[data-ls-effects]")},n.slider.thumbnails.push(c.data.thumbnail),n.plugins.callFunctions("initSlide",{slideElement:d,slideIndex:r,slideSettings:c}),n.layers.init(d,r)}n.debugMode&&n.debug.groupEnd("sliderInit.style")},set:{slideIndexes:function(){var e=n.slides;e.prev.index=e.current.index,e.current.index=e.next.index,e.next.index=n.slideshow.get.slideInSequence(n.slideshow.direction),e.set.slidesData(),n.slider.set.attributes(),n.slides.indexesCreated=!0},nextSlideIndex:function(e){var t=n.slides;t.next.index=e,t.set.slidesData()},slidesData:function(){var e=n.slides;e.prev=-1===e.prev.index?{}:a.extend(!0,{},e[e.prev.index]),e.current=-1===e.current.index?{}:a.extend(!0,{},e[e.current.index]),e.next=-1===e.next.index?{}:a.extend(!0,{},e[e.next.index])},firstSlide:function(){var e=n.slides;if(e.first.index="random"===n.o.firstSlide?n.o.firstSlide:Math.max(n.functions.convert.properties(n.o.firstSlide,!0),1),n.o.shuffleSlideshow&&2<n.slides.count?n.o.twoWaySlideshow=!1:n.o.shuffleSlideshow=!1,e.first.index="random"==e.first.index?Math.floor(Math.random()*n.slides.count+1):e.first.index,document.location.hash){var t=n.slides.deeplink(document.location.hash,!0);t&&(n.slides.first.index=t)}e.first.index=1>e.first.index||e.first.index>n.slides.count?1:e.first.index,n.o.shuffleSlideshow&&"random"!=n.o.firstSlide&&(e.first.index=n.o.firstSlide),e[e.first.index]&&e[e.first.index].data&&(e.first.data=a.extend(!0,{},e[e.first.index].data)),n.o.playByScroll&&n.slideshow.set.normalizedSequence(),n.debugMode&&n.debug.options.firstSlide&&(e.first.index=n.debug.options.firstSlide)},actions:function(){}},get:{deeplink:function(e){return e&&n.slides[e]&&n.slides[e].data&&n.slides[e].data.deeplink?n.slides[e].data.deeplink:null}},deeplink:function(e,t){for(var i=!1,a=1;a<n.slides.count+1;a++)if(n.slides[a].data.deeplink==e.substring(1)){if(i=a,t)return i;n.slideshow.changeTo(i,!0,!0)}if(!i&&t)return!1},slide:[]},n.countdown={calculateDate:function(e){var t=n.countdown.calculateDistance(e.date,e.repeat),i;switch(e.component){case"days":i=Math.floor(t/86400000);break;case"hours":i=Math.floor(t%86400000/3600000);break;case"minutes":i=Math.floor(t%3600000/60000);break;case"seconds":i=Math.floor(t%60000/1e3);}return i=Math.max(0,i||0),e.leadingZeros&&(i=i.toString().padStart(2,"0")),i},calculateDistance:function(e,t){var i=new Date(e),a=new Date;if(i>=a)return i.getTime()-a.getTime();switch(t){case"daily":var r=Math.ceil((a-i)/86400000);i.setDate(i.getDate()+r);break;case"weekly":var s=Math.ceil((a-i)/604800000);i.setDate(i.getDate()+7*s);break;case"monthly":var o=12*(a.getFullYear()-i.getFullYear())+a.getMonth()-i.getMonth();i.getDate()>a.getDate()&&o--,i.setMonth(i.getMonth()+o+1);break;case"yearly":var n=a.getFullYear()-i.getFullYear();(i.getMonth()>a.getMonth()||i.getMonth()===a.getMonth()&&i.getDate()>a.getDate())&&n--,i.setFullYear(i.getFullYear()+n+1);}return i.getTime()-a.getTime()},startInterval:function(e,t){n.countdown.setLayerTimer(e,t),n.countdown.stopInterval(t),t.interval=setInterval(function(){n.countdown.setLayerTimer(e,t)},1e3)},setLayerTimer:function(e,t){e.text(this.calculateDate(t))},stopInterval:function(e){e.interval&&clearInterval(e.interval)}},n.counter={start:function(e,t){this.stop(t);var i=parseFloat(t.start),a=parseFloat(t.end),r=i>a?i:a,o=i<a?i:a,l=parseFloat(t.duration)||2e3,d=t.ease||"easeOutSine",p=parseFloat(t.step)||1,u=parseFloat(t.stepDelay)||50,c=Math.max(parseInt(i).toString().length,parseInt(a).toString().length);t.maxLength=c,"step"===t.type&&(d="linear",l=Math.abs(i-a)/p*u);isNaN(i)||isNaN(a)||(t.animationTween=s.TweenMax.to({value:i},l/1e3,{value:a,ease:d,onUpdate:function(){var i=this.target.value;"step"===t.type&&(i=Math.round(i/p)*p,i=Math.max(i,o),i=Math.min(i,r)),e.text(n.counter.applyNumberFormat(t,i))},onComplete:function(){e.text(n.counter.applyNumberFormat(t,a))}}))},applyNumberFormat:function(e,t){var i=e.dp,r=e.ds,s=e.ts;if(!a.isNumeric(t))return t;var o=parseFloat(t).toFixed(i),n=o.split("."),l=n[0],d=n[1];if(e.lz)for(var p=1;l.length<e.maxLength;p++)l="0"+l;return l=l.replace(/\B(?=(\d{3})+(?!\d))/g,s),d?l+r+d:l},stop:function(e){e.animationTween&&(e.animationTween.kill(),e.animationTween=null)},setFormat:function(){}},n.layers={$all:a(),getStyle:function(e,t){return-1==e.indexOf("em")?-1==e.indexOf("%")?(parseFloat(e)||0).toString():(parseFloat(e)*t).toString():e},toNum:function(e,t){return t=parseFloat(t),-1==e.indexOf("em")?parseFloat(e):parseFloat(e)*t},init:function(t,i){if(!document.body.contains(e))return!1;t.find("noscript").remove();for(var r=t.find(".ls-bg, .ls-l, .ls-layer, .ls-lg, .ls-layer-group"),s=0,o=r.length,d,p;s<o;s++){var u=a(r[s]),c=u[0],m=u.children();if(n.plugins.callFunctions("initLayerStart",{slideElement:t,$layer:u,slideIndex:i}),u.data("slideIndex",i),u.hasClass("ls-l"))u.removeClass("ls-l").addClass("ls-layer");else if(u.hasClass("ls-lg"))u.removeClass("ls-lg").addClass("ls-layer-group");else if(!u.is(".ls-bg, .ls-layer, .ls-layer-group")){u.remove();continue}u.is("a")&&1===m.length&&(u=u.children().first(),c=u[0],c.setAttribute("data-ls",c.parentNode.getAttribute("data-ls")),c.parentNode.removeAttribute("data-ls"),u.parent().removeClass("ls-layer"),u.addClass("ls-layer")),u.is(".ls-layer-group")&&u.children().data("$layerGroup",u);var p=new n.defaults.layer.options(u,i);u.data(n.defaults.init.dataKey,p),-1!==u.attr("class").indexOf("ls-linkto-")&&this.set.linkTo(u),p.is.counter&&(p.counterSettings.ease=n.functions.convert.easing(p.counterSettings.ease)),u.parent().is("a")?(u.parent().data("slideIndex")&&u.data("slideIndex",u.parent().data("slideIndex")),d=u.parent(),this.set.smartLinks(d)):d=u,d.attr("data-ls-actions")&&this.set.actions(d,JSON.parse(d.attr("data-ls-actions"))||{}),n.plugins.callFunctions("initLayerEnd",{slideElement:t,$layer:u,layerData:p,slideIndex:i}),n.slides[i].$layers=n.slides[i].$layers.add(d)}},set:{mirrorTransitions:function(e){return e=e.split(" "),e},actions:function(e,t){t.length;a.each(t,function(t,i){var r=a.extend(!0,{},i),s=r.trigger;e.on(s,function(){setTimeout(function(e){n.actions.do(e)},r.delay||0,r)})})},smartLinks:function(e){var t=e.attr("href"),i=e.attr("target"),o="";if(i&&-1!==i.indexOf("ls-scroll")){switch(t){case"pagetop":o="Scroll to page top";break;case"pagebottom":o="Scroll to page bottom";break;case"slidertop":o="Scroll to the top of the slider";break;case"":case"sliderbottom":o="Scroll to the bottom of the slider";break;default:o="Scroll to a specified location on the page";}n.layers.set.ariaLabel(e,o),e.on("click."+r,function(e){e.preventDefault();var i=document.body.scrollHeight-l.viewport.height,r;t&&(r="pagetop"===t?0:"pagebottom"===t?i:"slidertop"===t?n.slider.offset.top:""===t||"sliderbottom"===t?n.slider.offset.top+n.slider.height:a(t).filter(":visible").last().length?a(t).filter(":visible").last().offset().top:n.slider.offset.top+n.slider.height);r+=n.o.scrollModifier,r=Math.min(r,i),r=Math.max(0,r),s.TweenMax.to("html, body",1,{scrollTop:r,ease:s.Quint.easeInOut})})}if(-1!==n.defaults.init.controls.indexOf(t.toLowerCase())||t.match(/^\#[0-9]/)){var d=a.trim(t.toLowerCase().split("#")[1]),p=parseInt(d);"playmedia"===d?o="play active media elements on current slide":"pausemedia"===d?o="pause active media elements on current slide":"prev"===d?o="jump to the previous slide":"next"===d?o="jump to the next slide":"start"===d?o="start slideshow":"stop"===d?o="stop slideshow":"replay"===d?o="replay slide":"reverse"===d?o="reverse slide":"reverse-replay"===d||"reversereplay"===d?o="reverse, than replay slide":"number"==typeof p&&p===p&&(o="jump to slide "+p);n.layers.set.ariaLabel(e,o),e.on("click."+r,function(e){e.preventDefault(),-1===["prev","next","last","first","start","stop"].indexOf(d)?"number"==typeof p&&p===p?n.slideshow.changeTo(p,!0,!0):n.slider.state.changingSlides||("replay"===d?n.api.methods("replay"):"reverse"===d?n.api.methods("reverse"):"reverse-replay"===d||"reversereplay"===d?n.api.methods("reverse",!0):"playmedia"===d?n.media.functions.playActiveMedia():"pausemedia"===d?n.media.functions.pauseActiveMedia():"unmute"===d||"unmutemedia"===d?n.media.unmute.multipleMediaElements():void 0):n.navigation[d]("clicked")})}},ariaLabel:function(e,t){e.attr("aria-label")||e.attr("aria-label",t)},linkTo:function(e){for(var i=e.attr("class").split(" "),s=1,o=0;o<i.length;o++)-1!=i[o].indexOf("ls-linkto-")&&(s=parseInt(i[o].split("ls-linkto-")[1]));e.data(n.defaults.init.dataKey).settings.linkedToSlide=s,e.css({cursor:"pointer"}).on("click."+r,function(i){i.preventDefault(),t.layerSlider(a(this).data(n.defaults.init.dataKey).settings.linkedToSlide)})},wrappers:function(e,t,i){t.original;t.is.slideBackground||t.is.backgroundVideo?(t.elements.$bgWrapper=e.closest(".ls-bg-wrap"),t.elements.$bgOuterWrapper=e.closest(".ls-bg-outer")):(t.elements.$wrapper=e.closest(".ls-in-out"),t.elements.$wrapper.data(n.defaults.init.dataKey,{}),t.settings.wrapperData=t.elements.$wrapper.data(n.defaults.init.dataKey),t.elements.$clipWrapper=e.closest(".ls-clip"),t.elements.$clipWrapper.data(n.defaults.init.dataKey,{}),t.settings.clipWrapperData=t.elements.$clipWrapper.data(n.defaults.init.dataKey),t.elements.$loopWrapper=e.closest(".ls-loop"),t.elements.$loopWrapper.data(n.defaults.init.dataKey,{}),t.settings.loopWrapperData=t.elements.$loopWrapper.data(n.defaults.init.dataKey)),t.parallax.enabled&&(t.elements.$parallaxWrapper=e.closest(".ls-parallax"),t.elements.$parallaxWrapper.data(n.defaults.init.dataKey,{parallax:{}}),t.settings.parallaxWrapperData=t.elements.$parallaxWrapper.data(n.defaults.init.dataKey),n.transitions.layers.parallax.addLayer(t.elements.$parallaxWrapper,t.settings.parallaxWrapperData.parallax,t,i)),t.scroll.enabled&&(t.elements.$scrollWrapper=e.closest(".ls-scroll"),t.elements.$scrollTransformWrapper=e.closest(".ls-scroll-transform"),t.elements.$scrollWrapper.data(n.defaults.init.dataKey,{scroll:{}}),t.settings.scrollWrapperData=t.elements.$scrollWrapper.data(n.defaults.init.dataKey),n.transitions.layers.scroll.addLayer(t.elements.$scrollWrapper,t.settings.scrollWrapperData.scroll,t,i)),t.hover.enabled&&(!n.slides[i].data.globalhover||t.hover.skipGlobal&&n.slides[i].data.globalhover)&&n.transitions.layers.hover.set(e,t),t.elements.$outerWrapper=e.closest(".ls-z"),t.elements.$outerStyleWrapper=t.elements.$outerWrapper.find("> .ls-wrapper"),t.settings.trmask&&t.elements.$outerStyleWrapper.css("overflow","hidden"),t.elements.$outerWrapper.attr("data-slide-index",i),t.elements.$innerWrapper=e.closest(".ls-wrapper").addClass("ls-inner-wrapper"),t.elements.$_innerWrappers=t.elements.$outerWrapper.find(".ls-wrapper"),t.elements.$_allWrappers=t.elements.$outerWrapper.add(t.elements.$_innerWrappers),t.elements.$_outerWrappers=t.elements.$outerWrapper.add(t.elements.$outerWrapper.find(".ls-wrapper:not(.ls-inner-wrapper)"))},singleLayer:function(e,t){var i=e.data(n.defaults.init.dataKey);n.plugins.callFunctions("wrapSingleLayerBeforeStyle",{$layer:e,layerData:i,slideIndex:t}),n.layers.set.style(e),n.plugins.callFunctions("wrapSingleLayerBeforeProperties",{$layer:e,layerData:i,slideIndex:t}),n.layers.set.properties(e,t),n.layers.set.dataAttribute("add",e,"hidden"),n.plugins.callFunctions("wrapSingleLayerEnd",{$layer:e,layerData:i,slideIndex:t}),e.data("hasBeenSet",!0)},style:function(e){var t=e[0],i=e.data(n.defaults.init.dataKey),r=t.style,s=n.layers,o=null,l=null,d=null,p=null,u=0,c=0,m=!1,h=parseFloat(t.style.fontSize)||36,g=t.getBoundingClientRect(),y=e.is("img, picture")?1:window.LS_previewZoom||1,f,x,v,S,b,w,T,C,O,k,P,L,I,_,$,B,W,D,F,A,N,z,M,V,R,E,H,Y;if(P=""===r.paddingLeft?s.getStyle(e.css("padding-left"),n.slider.initial.percW):s.getStyle(r.paddingLeft,n.slider.initial.percW),I=""===r.paddingRight?s.getStyle(e.css("padding-right"),n.slider.initial.percW):s.getStyle(r.paddingRight,n.slider.initial.percW),L=""===r.paddingTop?s.getStyle(e.css("padding-top"),n.slider.initial.percH):s.getStyle(r.paddingTop,n.slider.initial.percH),_=""===r.paddingBottom?s.getStyle(e.css("padding-bottom"),n.slider.initial.percH):s.getStyle(r.paddingBottom,n.slider.initial.percH),$=""===r.marginLeft?s.getStyle(e.css("margin-left"),n.slider.initial.percW):s.getStyle(r.marginLeft,n.slider.initial.percW),W=""===r.marginRight?s.getStyle(e.css("margin-right"),n.slider.initial.percW):s.getStyle(r.marginRight,n.slider.initial.percW),B=""===r.marginTop?s.getStyle(e.css("margin-top"),n.slider.initial.percH):s.getStyle(r.marginTop,n.slider.initial.percH),D=""===r.marginBottom?s.getStyle(e.css("margin-bottom"),n.slider.initial.percH):s.getStyle(r.marginBottom,n.slider.initial.percH),t.style.margin="0",A=""===r.borderLeftWidth?s.getStyle(e.css("border-left-width"),n.slider.initial.percW):s.getStyle(r.borderLeftWidth,n.slider.initial.percW),z=""===r.borderRightWidth?s.getStyle(e.css("border-right-width"),n.slider.initial.percW):s.getStyle(r.borderRightWidth,n.slider.initial.percW),N=""===r.borderTopWidth?s.getStyle(e.css("border-top-width"),n.slider.initial.percH):s.getStyle(r.borderTopWidth,n.slider.initial.percH),M=""===r.borderBottomWidth?s.getStyle(e.css("border-bottom-width"),n.slider.initial.percH):s.getStyle(r.borderBottomWidth,n.slider.initial.percH),1===n.media.properties.$allMediaLayers.filter(e).length||e.children("iframe").length){var X=e.children(),K=X.attr("width")?X.attr("width"):X.width(),G=X.attr("height")?X.attr("height"):X.height();300===parseInt(K)&&150===parseInt(G)&&(K=640,G=360),(""===t.style.width||"auto"===t.style.width)&&e.css("width",K),(""===t.style.height||"auto"===t.style.height)&&e.css("height",G),"100%"===r.width&&"100%"===r.height&&(r.left="50%",r.top="50%"),m=K/G,X.css({width:"100%",height:"100%"})}var U=i.attributes;if(e.is("img, picture")){var j=e.is("img")?e:e.find("img");b=j.data("preloadedWidth"),w=j.data("preloadedHeight"),V=b/w,(r.width||r.height)&&("auto"!==r.width||"auto"!==r.height)||!U||(U.width&&U.height?(-1===U.width.indexOf("%")?v=parseInt(U.width):(u=parseInt(U.width),v=s.getStyle(U.width,n.slider.initial.percW)),-1===U.height.indexOf("%")?S=parseInt(U.height):(c=parseInt(U.height),S=s.getStyle(U.height,n.slider.initial.percH))):U.maxWidth&&(e[0].style.width=U.maxWidth+"px",v=U.maxWidth,S=e.height()))}E=g.width?g.width/y:(g.right-g.left)/y,H=g.height?g.height/y:(g.bottom-g.top)/y,v||(v=r.width,-1!==r.width.indexOf("%")&&(u=parseInt(r.width)),v=""!==v&&"auto"!==v?s.getStyle(v,n.slider.initial.percW):E-n.layers.toNum(P,h)-n.layers.toNum(I,h)-n.layers.toNum(A,h)-n.layers.toNum(z,h),v=v?v:"auto"),S||(S=r.height,-1!==r.height.indexOf("%")&&(c=parseInt(r.height)),S=""!==S&&"auto"!==S?s.getStyle(S,n.slider.initial.percH):H-n.layers.toNum(L,h)-n.layers.toNum(_,h)-n.layers.toNum(N,h)-n.layers.toNum(M,h),S=S?S:"auto"),0===parseInt(S)?(e.addClass("ls-force-height-auto"),Y=parseInt(t.getBoundingClientRect().height),e.removeClass("ls-force-height-auto")):Y=S,R=m?m:"auto"!==v&&"auto"!==S?v/S:"auto",!e.is("img, picture")||r.width||r.height||U&&(!U||U.width||U.height)||b===v&&w===S||(b===v?w!==S&&(S=5<w?w:S,R=5<w?V:R,v=S*R):(v=5<b?b:v,R=5<b?V:R,S=v/R)),f=parseFloat(e.css("opacity")),x=r.clipPath||r.clip||!1,x&&(i.clip.style.css.clipPath=x,i.clip.userDefined=!0,r.clip="",r.clipPath=""),F=r.webkitFilter||r.filter;r.minWidth&&""!==r.minWidth&&(-1!==r.minWidth.indexOf("%")&&(T=parseInt(r.minWidth)),o=-1===r.minWidth.indexOf("em")?parseFloat(r.minWidth):r.minWidth),r.minHeight&&""!==r.minHeight&&(-1!==r.minHeight.indexOf("%")&&(C=parseInt(r.minHeight)),l=-1===r.minHeight.indexOf("em")?parseFloat(r.minHeight):r.minHeight),r.maxWidth&&""!==r.maxWidth&&(-1!==r.maxWidth.indexOf("%")&&(O=parseInt(r.maxWidth)),d=-1===r.maxWidth.indexOf("em")?parseFloat(r.maxWidth):r.maxWidth),r.maxHeight&&""!==r.maxHeight&&(-1!==r.maxHeight.indexOf("%")&&(k=parseInt(r.maxHeight)),p=-1===r.maxHeight.indexOf("em")?parseFloat(r.maxHeight):r.maxHeight),v="auto"===v?"auto":parseFloat(v),S="auto"===S?"auto":parseFloat(S),i.original={clip:x,left:r.left?r.left:"0",top:r.top?r.top:"0",width:v,height:S,minWidth:o,minHeight:l,maxWidth:d,maxHeight:p,sWidth:r.width,sHeight:r.height,percentWidth:u,percentHeight:c,percentMinWidth:T||null,percentMinHeight:C||null,percentMaxWidth:O||null,percentMaxHeight:k||null,backgroundImage:r.backgroundImage,backgroundSize:r.backgroundSize||"cover",backgroundRepeat:r.backgroundRepeat,backgroundPosition:r.backgroundPosition,ratio:R,paddingLeft:P,paddingTop:L,paddingRight:I,paddingBottom:_,marginLeft:$,marginRight:W,marginTop:B,marginBottom:D,borderLeftWidth:A,borderTopWidth:N,borderRightWidth:z,borderBottomWidth:M,borderRadius:function(e,t){var i=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],r="";return t.borderRadius&&(-1===t.borderRadius.indexOf("/")?a.each(["border-top-left-radius","border-top-right-radius","border-bottom-right-radius","border-bottom-left-radius"],function(s,o){var n=t[i[s]],l=e.css(o),d=a.trim("undefined"!=typeof n&&n.length?n:l);-1==d.indexOf(" ")&&-1==d.indexOf("em")&&-1==d.indexOf("%")&&(d=parseInt(d)),r+=d+" "}):r=t.borderRadius),a.trim(r)}(e,r),fontSize:h,lineHeight:t.style.lineHeight,letterSpacing:t.style.letterSpacing,textStrokeWidth:t.style.textStrokeWidth||t.style.webkitTextStrokeWidth,color:e.css("color"),boxShadow:t.style.boxShadow,textShadow:t.style.textShadow,zIndex:parseInt(e.css("z-index"))||"auto",filter:F,backgroundColor:e.css("background-color"),dataLS:e.attr("data-ls")||"",styles:e.attr("style")||""},r.width&&"auto"!==r.width||(i.original.autoWidth=!0),r.height&&"auto"!==r.height||(i.original.autoHeight=!0),r.zIndex="auto",i.responsive={left:r.left?parseInt(r.left):0,top:r.top?parseInt(r.top):0,width:v,height:S},e.is("picture")&&e.css({width:i.original.width,height:i.original.height}),n.plugins.callFunctions("setLayerStyleEnd",{$layer:e,layerData:i})},parseScaleProperties:function(e){for(var t=[{x:"scalexin",y:"scaleyin",s:"scalein"},{x:"textscalexin",y:"textscaleyin",s:"textscalein"},{x:"loopscalex",y:"loopscaley",s:"loopscale"},{x:"textscalexout",y:"textscaleyout",s:"textscaleout"},{x:"scalexout",y:"scaleyout",s:"scaleout"},{x:"hoverscalex",y:"hoverscaley",s:"hoverscale"}],a=0,r;a<t.length;a++)r=t[a],e[r.x]&&e[r.y]&&e[r.x]===e[r.y]&&"="!==e[r.x]&&(e[r.s]=e[r.x],delete e[r.x],delete e[r.y]);return e},properties:function(e,t,r){t||(t=e.data("slideIndex"));var o=e.data(n.defaults.init.dataKey);if(o.is.textLayer=!(e.is("img, picture")||o.is.mediaLayer||o.is.backgroundVideo),o.self=e,n.plugins.callFunctions("setLayerPropertiesBeforeParsingDataLS",{$layer:e,layerData:o,slideIndex:t}),e.data("ls")){for(var d=n.defaults.layer.keys,p=e.data("ls").split(";"),u={},c=0,m,h;c<p.length;c++)if(a.trim(p[c])){var g=p[c].indexOf(":"),m=p[c].substring(0,g).trim();h=p[c].substring(g+1).trim(),m&&(u[m]=h)}for(var y in p=null,u=this.parseScaleProperties(u),u){var f=null,v=null,S=null,b=null,w=!1,T=!1,C=!1,O=!1,k=!1;m=y.toLowerCase(),h=u[y],-1==["thumbnail","poster"].indexOf(m)&&(h=h.toLowerCase()),m=m.replace("split","text"),m.match(/(duration|startat|shift|delay)/i)&&("string"==typeof h&&-1!==h.indexOf("ms")&&(h=h.replace(/ms/g,"")),k=!0),/^text/.test(m)&&(T=!0),/^loop/.test(m)&&(C=!0,-1!==h.indexOf(n.defaults.init.staggerSplitChar)&&(O=!0)),"undefined"==typeof d[m]?"clip"===m?(o.original.clip=h,o.clip.style.css.clipPath=h):n.debugMode&&n.debug.add("warn","layerInit.prop4",m):(f=d[m][0],b=h,"overlay"===m||O||(b=n.functions.convert.properties(h,!1,f,e,o)),-1!==m.indexOf("mirror")&&(b=n.layers.set.mirrorTransitions(h)),h&&(/random/.test(h)||h.charAt(0)===n.defaults.init.openingBracket)&&!/parallax/.test(m)&&(w=!0),w&&(!T&&!C&&!/offset/.test(m)&&(b=n.functions.convert.randomProperties(b,f,null,e,o)),!o.should.update&&(o.should.update=!0)),"number"==typeof b&&(f.match(/(duration|shift|delay|wait)/i)&&!C||-1!==f.toLowerCase().indexOf("startat"))&&(b/=1e3),m.match(/(fade)(.+)/)&&(!0===b?b=0:!1===b?b=1:void 0),S=d[m][1],"undefined"==typeof S?o[f][m]=b:""===b?n.debugMode&&n.debug.add("warn","layerInit.prop2",m):"object"==typeof b&&-1==m.indexOf("mirror")?m.match(/(text)/)?S.match(/(converted)/i)?o[S][f]=b:o[S].cycle[f]=b:(v=n.functions.convert.properties(a.trim(b[0])),n.debugMode&&n.debug.add("warn","layerInit.prop1",[m,b,v]),"number"==typeof v&&k&&(v/=1e3),o[S][f]=v):T&&w?o[S].random[f]=b:o[S][f]=b)}}if(n.plugins.callFunctions("setLayerPropertiesAfterParsingDataLS",{$layer:e,layerData:o,slideIndex:t}),n.browser.isOld&&(o.in.enabled=!0,o.textIn.enabled=!1,o.textOut.enabled=!1,o.textIn.type=null,o.textOut.type=null),o.in.enabled&&(o.inLayerTo.ease=o.inLayerStyleTo.ease=o.inClipTo.ease=n.functions.convert.easing(o.in.ease)),"undefined"!=typeof o.inLayerStyleShouldBeConvertedFrom.borderRadius&&(o.inLayerStyleShouldBeConvertedTo.borderRadius=o.original.borderRadius),"undefined"!=typeof o.outLayerStyleShouldBeConvertedTo.borderRadius&&(o.outLayerStyleShouldBeConvertedFrom.borderRadius=o.original.borderRadius),o.inLayerStyleFromCSS.backgroundColor&&(o.inLayerStyleToCSS.backgroundColor=o.original.backgroundColor),o.outLayerStyleToCSS.backgroundColor&&(o.outLayerStyleFromCSS.backgroundColor=o.original.backgroundColor),o.inLayerStyleFromCSS.color&&(o.inLayerStyleToCSS.color=o.original.color),o.outLayerStyleToCSS.color&&(o.outLayerStyleFromCSS.color=o.original.color),"undefined"!=typeof o.inLayerStyleShouldBeConvertedFrom.width&&(o.inLayerStyleShouldBeConvertedTo.width=o.original.width),"undefined"!=typeof o.outLayerStyleShouldBeConvertedTo.width&&(o.outLayerStyleShouldBeConvertedFrom.width=o.original.width),"undefined"!=typeof o.inLayerStyleShouldBeConvertedFrom.height&&(o.inLayerStyleShouldBeConvertedTo.height=o.original.height),"undefined"!=typeof o.outLayerStyleShouldBeConvertedTo.height&&(o.outLayerStyleShouldBeConvertedFrom.height=o.original.height),"undefined"!=typeof o.out.showUntil&&0!==o.out.showUntil&&(o.out.startAt="transitioninend + "+o.out.showUntil),-1!==o.out.startAt.indexOf("slidechangeonly")&&"slidechangeonly"!==o.out.startAt&&(o.out.startAt="slidechangeonly"),o.out.enabled&&(o.outLayerTo.ease=o.outLayerStyleTo.ease=o.outClipTo.ease=n.functions.convert.easing(o.out.ease)),a.isNumeric(o.loop.count)&&(0<o.loop.count||-1===o.loop.count)&&!1!==o.loop.enabled?(o.loop.enabled=!0,o.loopTo.ease=o.loopClipTo.ease=n.functions.convert.easing(o.loop.ease)):o.loop.enabled=!1,(!a.isEmptyObject(o.hoverToCSS)||o.hoverShouldBeConverted.x||o.hoverShouldBeConverted.y||o.hoverShouldBeConverted.borderRadius||o.hoverShouldBeConverted.filter)&&!1!==o.hover.enabled?(o.hover.enabled=!0,!o.hover.easeOut&&(o.hover.easeOut=o.hover.easeIn),o.hover.easeIn=n.functions.convert.easing(o.hover.easeIn),o.hover.easeOut=n.functions.convert.easing(o.hover.easeOut,!0),!o.hover.durationOut&&(o.hover.durationOut=o.hover.durationIn),s.TweenMax.set(e[0],{autoCSS:!1,css:{transformPerspective:o.hoverShouldBeConverted.transformPerspective}})):o.hover.enabled=!1,o.hover.skipGlobal&&e.attr("data-ls-skipglobalhover",""),"level"in o.parallax&&a.isNumeric(o.parallax.level)&&o.parallax.enabled?(("cursor"===o.parallax.event||!o.parallax.event)&&o.parallax.reset&&e.attr("data-ls-parallax-reset",""),o.parallax.enabled=!0):o.parallax.enabled=!1,o.is.slideBackground){var P={scale:1,rotation:0};if(n.slides[t].kenBurns.zoom&&(o.kenBurns=n.slides[t].kenBurns),o.kenBurns.zoom){switch(o.kenBurns.from={},o.kenBurns.to={},o.kenBurns.zoom){case"out":o.kenBurns.from.scale=o.kenBurns.scale||1,o.kenBurns.from.rotation=o.kenBurns.rotation||0,o.kenBurns.to=P;break;case"in":o.kenBurns.from=P,o.kenBurns.to.scale=o.kenBurns.scale||1,o.kenBurns.to.rotation=o.kenBurns.rotation||0;}delete o.kenBurns.scale,delete o.kenBurns.rotation}else o.kenBurns.from=P,o.kenBurns.to=P;a.isEmptyObject(n.slides[t].filter)||(n.slides[t].filter.from&&(o.filter.values.bgFrom=n.transitions.layers.filters.convert(n.slides[t].filter.from)),n.slides[t].filter.to&&(o.filter.values.bgTo=n.transitions.layers.filters.convert(n.slides[t].filter.to)))}if(o.textIn.type&&-1===n.defaults.layer.splitTypeKeys.indexOf(o.textIn.type)&&(n.debugMode&&n.debug.add("warn","layerInit.splitType3a",[e[0].tagName,o.textIn.type]),delete o.textIn.type,delete o.textIn.ns,o.textIn.enabled=!1),o.textOut.type&&-1===n.defaults.layer.splitTypeKeys.indexOf(o.textOut.type)&&(n.debugMode&&n.debug.add("warn","layerInit.splitType3b",[e[0].tagName,o.textOut.type]),delete o.textOut.type,delete o.textOut.ns,o.textOut.enabled=!1),o.textIn.enabled&&!o.textIn.type&&(o.textIn.type="chars_asc"),o.textOut.enabled&&!o.textOut.type&&(o.textOut.type="chars_desc"),o.textIn.type||o.textOut.type){var L=0;o.is.textLayer?(o.textIn.type&&(o.textIn.enabled=!0,o.textInNodesTo.ease=n.functions.convert.easing(o.textInNodesTo.ease),o.textIn.split=o.textIn.type.split("_")[0],e.children().length&&n.debugMode&&(L=1)),o.textOut.type&&!n.o.inLayerPreview&&(o.textOut.enabled=!0),o.textOut.enabled&&(o.textOutNodesTo.ease=n.functions.convert.easing(o.textOutNodesTo.ease)),o.textOut.enabled&&o.textOut.type.split("_")[0]!==o.textIn.split&&(o.textIn.split+=", "+o.textOut.type.split("_")[0],e.children().length&&n.debugMode&&(L=1)),-1!==o.textIn.split.indexOf("chars")&&-1===o.textIn.split.indexOf("words")&&(o.textIn.split+=", words"),-1!==o.textIn.split.indexOf("words")&&-1===o.textIn.split.indexOf("lines")&&(o.textIn.split+=", lines")):(delete o.textIn.type,delete o.textOut.type,delete o.textIn.ns,delete o.textOut.ns,n.debugMode&&(L=2)),n.debugMode&&0!==L&&t&&!r&&(1===L?n.debug.add("warn","layerInit.splitType1",[e.prop("nodeName"),t]):2===L?n.debug.add("warn","layerInit.splitType2",[t,e.prop("nodeName")]):void 0)}if((o.inClipFromCSS.clipPath||o.outClipToCSS.clipPath||o.loopClipToCSS.clipPath||o.clip.style.css.clipPath!==o.clip.default.css.clipPath||o.clip.userDefined)&&(o.inClipFromCSS.clipPath?"="==o.inClipFromCSS.clipPath&&(o.inClipFromCSS.clipPath=o.clip.style.css.clipPath):o.inClipFromCSS.clipPath=o.clip.default.css.clipPath,o.outClipToCSS.clipPath?"="==o.outClipToCSS.clipPath&&(o.outClipToCSS.clipPath=o.clip.style.css.clipPath):o.outClipToCSS.clipPath=o.clip.default.css.clipPath,o.clip.enabled=!0),o.textOutNodesTo.clipPath&&!o.textInNodesFrom.clipPath&&(o.clip.textShouldReset=!0),o.textIn.enabled&&"textmask"===o.textInLayerStyle.overflow&&e.attr("data-ls-mask-text-in",""),o.textOut.enabled&&"textmask"===o.textOutLayerStyle.overflow&&e.attr("data-ls-mask-text-out",""),o.in.enabled&&o.inLayerToCSS.hasOwnProperty("scale")&&(delete o.inLayerToCSS.scaleX,delete o.inLayerToCSS.scaleY),o.out.enabled&&o.outLayerToCSS.hasOwnProperty("scale")&&(delete o.outLayerToCSS.scaleX,delete o.outLayerToCSS.scaleY),o.inLayerStyleShouldBeConvertedFrom.filter&&(o.filter.values.in=n.transitions.layers.filters.convert(o.inLayerStyleShouldBeConvertedFrom.filter)),o.filter.values.style=n.transitions.layers.filters.convert(o.original.filter),o.outLayerStyleShouldBeConvertedTo.filter&&(o.filter.values.out=n.transitions.layers.filters.convert(o.outLayerStyleShouldBeConvertedTo.filter)),o.loopLayerShouldBeConverted.filter&&(o.filter.values.loop=n.transitions.layers.filters.convert(o.loopLayerShouldBeConverted.filter)),o.hoverShouldBeConverted.filter&&(o.filter.values.hover=n.transitions.layers.filters.convert(o.hoverShouldBeConverted.filter)),o.in.enabled||(o.in.duration=0),o.textIn.enabled||(o.textIn.duration=0),o.textOut.enabled||(o.textOut.duration=0),o.out.enabled||(o.out.duration=0),e.attr("data-ls-slidein",t),"undefined"!=typeof o.settings.static&&"none"!==o.settings.static){var I=parseInt(o.settings.static);if(0!==I&&"forever"!==o.settings.static?(e.attr("data-ls-slideout",I),o.settings.slideOut=I):o.settings.slideOut=0,o.is.static=!0,e.attr("data-ls-static","1"),!o.staticSlides){o.staticSlides=[];var I;if(0===o.settings.slideOut)for(I=1;I<=n.slides.count;I++)o.staticSlides.push(I);else if(o.settings.slideIn<=o.settings.slideOut)for(I=o.settings.slideIn;I<=o.settings.slideOut;I++)o.staticSlides.push(I);else{for(I=o.settings.slideIn;I<=n.slides.count;I++)o.staticSlides.push(I);for(I=1;I<=o.settings.slideOut;I++)o.staticSlides.push(I)}}}else e.attr("data-ls-slideout",t);o.is.mediaLayer&&e.children("video, audio").length&&n.media.html5.singleInit(e.children("video, audio").eq(0)),o.is.backgroundVideo&&o.styleSettings.overlay&&e.find(".ls-bg-video-overlay").css({backgroundImage:"url("+o.styleSettings.overlay+")"}),o.styleSettings.minfontsize&&(o.styleSettings.minfontsize=parseFloat(o.styleSettings.minfontsize)),o.styleSettings.minmobilefontsize&&(o.styleSettings.minmobilefontsize=parseFloat(o.styleSettings.minmobilefontsize)),n.slider.isPopup&&(o.is.pinned=!1),o.is.pinned&&(n.slider.hasPinnedLayers=!0,!n.slider.$layersWrapper.is(".ls-layers-clip")&&n.slider.$layersWrapper.addClass("ls-layers-clip"),(l.isMobile||n.browser.isSafari)&&!n.slider.$layersWrapper.is(".ls-m-layers-clip")&&n.slider.$layersWrapper.addClass("ls-m-layers-clip")),o.styleSettings.smartbg&&(e.attr("data-ls-smart-bg","").css("--bgs",o.original.backgroundSize),o.styleSettings.smartbg=o.styleSettings.smartbg.toString(),o.settings.smartbgease&&(o.settings.smartbgease=n.functions.convert.easing(o.settings.smartbgease)),o.is.smartBG=!0)},dataAttribute:function(e,t,r){var s=t.add(t.closest(".ls-wrapper.ls-z"));a.isArray(r)||(r=(r+"").split(" "));for(var o=0;o<r.length;o++)"remove"===e?s.removeAttr("data-ls-"+r[o]):"add"===e?("active"===r[o]&&s.removeAttr("data-ls-hidden"),"hidden"===r[o]&&s.removeAttr("data-ls-active data-ls-animating-in data-ls-text-animating-in data-ls-animating-out data-ls-text-animating-out data-ls-static-in data-ls-static-out"),(-1!==r[o].indexOf("in")||-1!==r[o].indexOf("out"))&&(s.removeAttr("data-ls-active"),s.removeAttr("data-ls-hidden")),"active"===r[o]&&t.is("[data-ls-animating-in], [data-ls-text-animating-in]")||"hidden"===r[o]&&t.is("[data-ls-animating-out], [data-ls-text-animating-out]")||s.attr("data-ls-"+r[o],"")):void 0}},get:function(e){var t=this.$all;if("string"==typeof e&&(e=e.split(",")),Array.isArray(e)&&e.length){for(var r=[],s=function(e){return-1!==r.indexOf(e)},o=0;o<e.length;o++)r.push(a.trim(e[o]).toLowerCase());var l="",d=s("out")?"out":"in",p=":not(\".ls-bg\")",u=":not(\".ls-bg-video\")",c="";(s("bgvideo")||s("backgroundvideo"))&&(u=""),s("video")&&(c+=", > video"),s("audio")&&(c+=", > audio"),s("html5")&&(c+=", > video, > audio"),s("youtube")&&(c+=", > iframe[src*=\"youtube-nocookie.com\"], > iframe[src*=\"youtube.com\"], > iframe[src*=\"youtu.be\"], > iframe[data-src*=\"youtube-nocookie.com\"], > iframe[data-src*=\"youtube.com\"], > iframe[data-src*=\"youtu.be\"]"),s("vimeo")&&(c+=", > iframe[src*=\"player.vimeo\"], > iframe[data-src*=\"player.vimeo\"]"),","===c.charAt(0)&&(c=c.substring(2)),(s("img")||s("image"))&&(l="img"),(s("bg")||s("background")||s("bgonly"))&&(p=""),t=s("current")?t.filter(l+"[data-ls-slide"+d+"=\""+n.slides.current.index+"\"]"+p+u):s("next")?t.filter(l+"[data-ls-slide"+d+"=\""+n.slides.next.index+"\"]"+p+u):t.filter(l+p+u),s("notactive")&&(t=t.filter(".ls-bg, .ls-bg-video, :hidden")),s("clone")&&(t=t.filter(".ls-clone")),s("active")&&(t=t.filter(":visible:not(.ls-bg, .ls-bg-video), [data-ls-static=\"1\"]:not([data-ls-hidden])")),s("notstatic")&&(t=t.filter(":not([data-ls-static=\"1\"])")),s("static")&&(t=t.filter("[data-ls-static=\"1\"]")),s("bgonly")&&(t=t.filter(".ls-bg")),s("countdown")&&(t=t.filter("[data-countdown]")),s("staticin")&&(t=t.filter("[data-ls-static-in]")),s("notstaticin")&&(t=t.filter(":not([data-ls-static-in])")),s("staticout")&&(t=t.filter("[data-ls-static-out]")),s("notstaticout")&&(t=t.filter(":not([data-ls-static-out])")),""!==c&&(t=t.find(c))}return t},update:{data:function(e,t,i){var r,s,o;switch(e instanceof jQuery||(e=a(e)),i&&e.attr("data-ls",i).data("ls",i),s=e.data(n.defaults.init.dataKey),r=s.is.onSlide,o=s.original,t){default:case"transitions":s.settings.timelineIsCalculated=!1,n.layers.set.properties(e,r,!0);break;case"all":e.data(n.defaults.init.dataKey,new n.defaults.layer.options(e,r)),s=e.data(n.defaults.init.dataKey),s.original=o,n.layers.set.properties(e,r,!0),n.layers.set.wrappers(e,s,r);}}},wrap:function(e,i){if(!n.slides[e].wrapped&&"wrapping"!==n.slides[e].wrapped){n.slides[e].wrapped="wrapping";var r=i?25:0,o=n.slides[e].$layers,l=o.length;0===l?n.slides[e].wrapped=!0:o.each(function(i,o){n.timeouts["slide-"+e+"-layer-"+i]=setTimeout(function(){delete n.timeouts["slide-"+e+"-layer-"+i];var r=a(o),d=r,p="",u=!1,c="",m;r.hasClass("ls-hide-phone")&&(c+=" ls-hide-on-phone"),r.hasClass("ls-hide-tablet")&&(c+=" ls-hide-on-tablet"),r.hasClass("ls-hide-desktop")&&(c+=" ls-hide-on-desktop"),r.removeClass("ls-hide-phone ls-hide-tablet ls-hide-desktop"),d.is("a")&&1===d.children().length&&(u=!0,r=d.find(".ls-layer"));var h=r.data(n.defaults.init.dataKey);if(!h)return!0;if(m=r.data("$layerGroup")||n.slider.$layersWrapper,h.is.backgroundVideo?m=n.slider.$bgVideosWrapper:h.is.slideBackground&&(m=n.slider.$slideBGWrapper),r.data("hasBeenSet")||n.layers.set.singleLayer(r,e),h.textIn.split){var g=new s.SplitType(r[0],{split:h.textIn.split});if(h.textIn.type&&(h.textIn.ns=g[h.textIn.type.split("_")[0]]),h.textOut.type&&(h.textOut.ns=g[h.textOut.type.split("_")[0]]),-1!==r.css("background-clip").indexOf("text")){var y=r.find(".ls-ch"),f=r.find(".ls-wd"),x=r.find(".ls-ln");h.textIn.$nodesForBackgroundClip=y.length?y:f.length?f:x,y.length?r.addClass("ls-has-chars"):f.length?r.addClass("ls-has-words"):r.addClass("ls-has-lines"),h.textIn.$nodesForBackgroundClip.each(function(){var e=a(this),t=a.trim(e.text()),i=document.createTextNode(t),r=a(i),s=a("<div class=\"ls-textnode-bgclip-wrap\"><div class=\"ls-textnode\"></div></div>").css({backgroundColor:h.original.backgroundColor,backgroundImage:h.original.backgroundImage,backgroundSize:h.original.backgroundSize,backgroundRepeat:h.original.backgroundRepeat,backgroundPosition:h.original.backgroundPosition});e.css({verticalAlign:"top"}).text(""),r.clone().appendTo(e).wrap("<div class=\"ls-textnode-dummy\"></div>"),r.appendTo(e).wrap(s)})}}h.is.slideBackground||h.is.backgroundVideo?p="<div class=\"ls-wrapper ls-bg-outer\"><div class=\"ls-wrapper ls-bg-wrap\"></div></div>":(h.clip.enabled&&(p="<div class=\"ls-wrapper ls-clip\"></div>"),h.loop.enabled&&(p="<div class=\"ls-wrapper ls-loop\">"+p+"</div>"),h.scroll.enabled&&(p="<div class=\"ls-wrapper ls-scroll\"><div class=\"ls-wrapper ls-scroll-transform\">"+p+"</div></div>"),p="<div class=\"ls-wrapper ls-in-out\" style=\"\">"+p+"</div>"),h.parallax.enabled&&(p="<div class=\"ls-wrapper ls-parallax\">"+p+"</div>"),p="<div class=\"ls-wrapper ls-z"+(h.is.pinned?" ls-pinned":"")+"\">"+p+"</div>",""==p?r.appendTo(m):r.appendTo(m).wrap(p),!0==u&&d.addClass("ls-layer-link").appendTo(r.parent());var v={},S=r.css("mix-blend-mode");S&&"normal"!==S&&(v["mix-blend-mode"]=S,r.css("mix-blend-mode","normal")),h.original.customZIndex=1;var b=parseInt(h.original.zIndex);h.is.backgroundVideo?v={zIndex:h.original.customZIndex}:h.is.slideBackground?v={zIndex:h.original.customZIndex}:(!b&&(b=i+101),v.zIndex=b,h.original.customZIndex=b),n.browser.isSafari&&(v.transform="translateZ(0)"),n.layers.set.wrappers(r,h,e),h.elements.$outerWrapper.css(v).addClass(c),h.styleSettings.pointerevents&&h.elements.$innerWrapper.css("pointer-events","none"),h.is.slideBackground&&h.elements.$bgWrapper.css({backgroundColor:n.slides[e].data.backgroundColor,backgroundImage:n.slides[e].data.backgroundGradient}),n.layers.$all=n.layers.$all.add(r),r.attr("data-ls-layer-id",n.layers.$all.length),n.slides[e].$layers=n.slides[e].$layers.not(d),i===l-1&&(t.children(".ls-slide").eq(e-1).empty(),n.slides[e].wrapped=!0),n.plugins.callFunctions("wrapLayerEnd",{$layer:r,layerData:h,slideIndex:e})},r*(i+1))})}}},n.slideshow={direction:"next",nextLoop:0,firstStart:!0,forceFastChange:!1,sequence:{normal:[],randomized:[]},state:{changed:-1,running:!0,paused:!1,pausedByVideo:!1,pausedByHover:!1,pausedByLastCycle:!1},should:{change:!1,start:!1,stop:!1},isPaused:function(){return this.state.paused||this.state.pausedByVideo||this.state.pausedByHover||this.state.pausedByPerformance},init:function(){1==n.slides.count&&a.extend(n.o,{autoStart:!1,navPrevNext:!1,navStartStop:!1,navButtons:!1,cycles:-1,forceLoopNum:!1,autoPauseSlideshow:!0,firstSlide:1,thumbnailNavigation:"disabled"}),n.o.autoStart&&1!=n.slides.count||n.functions.setStates(this,{running:!1,paused:!0}),this.set.pauseOnHover(),this.set.sequences()},set:{pauseOnHover:function(){n.o.pauseOnHover=!0===n.o.pauseOnHover?"slideshowOnly":n.o.pauseOnHover,!1!==n.o.pauseOnHover&&t.on("mouseenter."+r,function(){n.slider.state.inFullscreen||(n.functions.setStates(n.slideshow,{pausedByHover:!0}),"slideshowOnly"!==n.o.pauseOnHover&&n.transitions.layers.timeline.pause())}).on("mouseleave."+r,function(){var e=1;n.timelines._layers&&n.timelines._layers.duration()>n.transitions.layers.timeline.totalDuration&&(e=n.transitions.layers.timeline.totalDuration/n.timelines._layers.duration()),n.functions.setStates(n.slideshow,{pausedByHover:!1}),a("body").hasClass("ls-unselectable")||"slideshowOnly"===n.o.pauseOnHover||n.o.pauseLayers&&n.slideshow.isPaused()||n.transitions.layers.timeline.resume(),n.timelines._layers&&n.transitions.layers.timeline.state.finished&&n.timelines._layers.progress()<e&&n.functions.setStates(n.transitions.layers.timeline,{finished:!1}),n.slideshow.start()})},sequences:function(){for(var e=0;e<n.slides.count;e++)n.slideshow.sequence.normal[e]=e+1;n.slideshow.sequence.randomized=n.functions.shuffleArray(a.merge([],n.slideshow.sequence.normal))},normalizedSequence:function(){var e=n.o.shuffleSlideshow?"randomized":"normal",t=n.slideshow.sequence[e],i=n.slideshow.sequence[e].length,a=t.indexOf(n.slides.first.index);n.slideshow.sequence.normalized=[];for(var r=a;r<i;r++)n.slideshow.sequence.normalized.push(t[r]);for(var s=0;s<a;s++)n.slideshow.sequence.normalized.push(t[s])},prevNext:function(e){n.slideshow.direction=("prev"===e||"first"===e)&&n.o.twoWaySlideshow?"prev":"next";"prev"===e?n.slideshow.changeTo(n.slideshow.get.slideInSequence("prev"),!0):"next"===e?n.slideshow.changeTo(n.slideshow.get.slideInSequence("next"),!0):"first"===e?n.slideshow.changeTo(1,!0):"last"===e?n.slideshow.changeTo(n.slides.count,!0):void 0}},get:{sequence:function(){var e="normal";return n.o.playByScroll?e="normalized":n.o.shuffleSlideshow&&(e="randomized"),e},slideInSequence:function(e){var t=n.slideshow.sequence[this.sequence()],i=t.indexOf(n.slides.current.index);return"prev"===e?0===i?t[t.length-1]:t[i-1]:"next"===e?i===t.length-1?t[0]:t[i+1]:t[e]},indexOfSlideInSequence:function(e){return n.slideshow.sequence[this.sequence()].indexOf(e)}},cycles:{set:function(){0<n.o.cycles&&(n.slideshow.curCycle=1,n.slideshow.cycleSlideIndex=n.slideshow.get.indexOfSlideInSequence(n.slides.first.index))},check:function(e){if(n.slideshow.get.indexOfSlideInSequence(e)===n.slideshow.cycleSlideIndex)return++n.slideshow.curCycle===n.o.cycles+1}},start:function(){!this.isPaused()&&n.timelines._layers&&n.transitions.layers.timeline.state.finished&&this.changeTo(n.slides.next.index)},stop:function(){n.functions.setStates(this,{running:!1,paused:!0})},changeTo:function(t,i,r){if(!document.body.contains(e))return!1;if(n.slides.current.index===t&&!n.slideshow.forceSlideChangeTo)return!1;if(n.slideshow.forceSlideChangeTo=null,!this.firstStart&&n.api.hasEvent("slideChangeWillStart")){var s=n.api.triggerEvent("slideChangeWillStart",n.api.eventData());if(!1===s)return;a.isNumeric(s)&&(t=parseInt(s))}return t>n.slides.count||1>t?void(n.debugMode&&(n.debug.add("group","slideshow"),n.debug.add("warn","slideshow.invalidSlideIndex",[t,n.slides.count]),n.debug.groupEnd())):void(n.slider.isBusy()||n.slideshow.state.pausedByVideo&&!i?!n.slider.state.preloadingImages&&n.slider.state.animatingSlides&&n.timelines._slideTransition&&(n.slideshow.forceSlideChangeTo=t,n.slideshow.should.change=!0,n.timelines._slideTransition.progress(1)):(n.functions.setStates(n.transitions.layers.timeline,{finished:!1}),n.slideshow.should.change=!1,n.debugMode&&n.debug.add("group","slideshow"),i?(r&&(n.navigation.direction=n.slides.current.index>t?"prev":"next"),n.o.twoWaySlideshow&&("prev"===n.navigation.direction?n.slideshow.direction="prev":n.slideshow.direction="next"),n.debugMode&&(n.debug.add("log","slideshow.changedByUser",!1),n.o.twoWaySlideshow&&n.debug.add("log","slideshow.setdir",n.slideshow.direction))):n.navigation.direction=n.slideshow.direction,n.transitions.timers.reverse(),n.gui.media.hideUnmute(),n.slides.set.nextSlideIndex(t),n.debugMode&&(n.debug.add("log","slideshow.change",[n.slides.current.index,n.slides.next.index,n.slideshow.direction,n.navigation.direction]),n.debug.groupEnd()),n.functions.setStates(this,{pausedByVideo:!1,changed:++this.state.changed}),n.functions.setStates(n.slider,{changingSlides:!0}),n.slider.state.animatingSlides&&n.timelines._slideTransition&&n.timelines.to([n.timelines.slides[n.slides.current.index],"_forceOut _forceOutMirror",1,!0,!0,!0,!0]),n.preload.imagesOfSlide(n.slides.next.index,function(){n.transitions.start()})))},forceStop:function(){n.navigation.stop(),a.each(n.timeouts,function(e){clearTimeout(n.timeouts[e])}),n.transitions.timers.stop(),n.timelines._layers.stop(),n.timelines._layersAlt.stop(),n.functions.setStates(n.transitions.layers.timeline,{stopped:!0,running:!1}),t.find("*").stop(!0,!1).dequeue()},restart:function(){t.find("*").stop(),n.navigation.change(n.slides.current.index,n.slideshow.direction)}},n.media={properties:{$allMediaLayers:a(),playingInCurSlide:0,endedInCurSlide:0,userDidUnmute:!1},init:function(){n.functions.setStates(n.slider,{waitingForYouTube:!1,waitingForVimeo:!1}),n.media.properties.allowToUnmute=!0,n.media.youtube.init(),n.media.vimeo.init(),n.media.html5.init()},isPlayable:function(e,t){return!e.is("[data-ls-animating-out], [data-ls-hidden]")||t.is.backgroundVideo},get:function(e){var t=n.media.properties.$allMediaLayers,i;return e&&(e=e.toLowerCase(),-1!==e.indexOf("notbg")&&(t=t.not(".ls-bg-video")),-1!==e.indexOf("active")&&(t=t.filter("[data-ls-active], [data-ls-animating-in], [data-ls-text-animating-in]")),-1!==e.indexOf("notstatic")&&(t=t.not("[data-ls-static]")),i=t.find("video, audio, iframe"),-1===e.indexOf("notplaying")?-1!==e.indexOf("playing")&&(i=i.filter("[data-ls-playing]")):i=i.filter("[data-ls-not-playing]"),-1!==e.indexOf("allowtounmute")&&(i=i.filter("[data-ls-allow-to-unmute]")),-1!==e.indexOf("mutedbybrowser")&&(i=i.filter("[data-ls-muted-by-browser]"))),i},set:{backgroundVideo:function(e,t){if(0===e.children(".ls-vpcontainer").length){var i=a("<div>").addClass("ls-vpcontainer").appendTo(e);t.mediaSettings.poster&&a("<div>").appendTo(i).addClass("ls-videopreview").attr({style:"background-image: url("+t.mediaSettings.poster+")"})}},customPoster:function(e,t){var i=t.mediaSettings.poster||!1;return i},dataAttribute:function(e,t){e.removeAttr("data-ls-playing data-ls-not-playing"),e.attr("data-ls-"+t,""),n.media.functions.checkSlideshowWaiting()},mediaElements:function(e,t,i){var r=a("<div>").addClass("ls-vpcontainer").appendTo(e);!("autoplay"in i.mediaSettings)&&n.o.autoPlayVideos||i.mediaSettings.autoplay?"instant"===i.mediaSettings.autoplay?e.addClass("ls-instant-autoplay"):e.addClass("ls-autoplay"):a("<div>").appendTo(r).addClass("ls-playvideo"),t.is("iframe")&&i.mediaProperties.poster&&a("<div>").appendTo(r).addClass("ls-videopreview").attr({style:"background-image: url("+i.mediaProperties.poster+")"}),t.is("video, audio")&&i.mediaProperties.poster&&a("<div>").appendTo(r).addClass("ls-videopreview").attr({style:"background-image: url("+i.mediaProperties.poster+")"})},properties:function(e,t,i){switch(i.is.mediaLayer=!0,i.mediaProperties.type){case"youtube":i.is.backgroundVideo?(i.mediaProperties.options=a.extend(!0,{loop:1,playlist:i.mediaProperties.embedID,controls:0,autoplay:0,showinfo:!1,modestbranding:1,thumbnail:!1},n.media[i.mediaProperties.type].defaults,i.mediaProperties.embedOptions),n.media.set.backgroundVideo(e,i)):(i.mediaProperties.options=a.extend(!0,{},n.media[i.mediaProperties.type].defaults,i.mediaProperties.embedOptions,{autoplay:0}),n.media.set.mediaElements(e,t,i));break;case"vimeo":i.is.backgroundVideo?(i.mediaProperties.options=a.extend(!0,{loop:1,byline:0,portrait:0,title:0,fun:0},n.media[i.mediaProperties.type].defaults,i.mediaProperties.embedOptions),n.media.set.backgroundVideo(e,i)):(i.mediaProperties.options=a.extend(!0,{},n.media[i.mediaProperties.type].defaults,i.mediaProperties.embedOptions,{autoplay:0}),n.media.set.mediaElements(e,t,i));break;case"html5":t.attr("autoplay")&&(t.removeAttr("autoplay"),e.attr("data-ls",e.attr("data-ls")+" autoplay: true;")),i.is.backgroundVideo?(t.removeAttr("controls"),t[0].muted=!0,t.attr("loop","")):"controls"in i.mediaSettings&&"auto"!==i.mediaSettings.controls&&(i.mediaSettings.controls?(t.attr("controls",""),t.removeAttr("nocontrols")):t.removeAttr("controls")),"volume"in i.mediaSettings&&(0>i.mediaSettings.volume?i.mediaSettings.volume=0:100<i.mediaSettings.volume&&(i.mediaSettings.volume=100),t[0].volume=i.mediaSettings.volume/100),"muted"in i.mediaSettings&&(i.mediaSettings.muted?t[0].muted=!0:t[0].muted=!1),"loop"in i.mediaSettings&&(i.mediaSettings.loop?t.attr("loop",""):t.removeAttr("loop")),i.is.backgroundVideo?n.media.set.backgroundVideo(e,i):n.media.set.mediaElements(e,t,i);}},thumbnail:function(e,t){"show"===t?e.stop(!0,!0).fadeIn(n.transitions.media.defaults.fadeIn):"hide"===t?e.stop(!0,!0).delay(n.transitions.media.defaults.delay).fadeOut(n.transitions.media.defaults.fadeOut):void 0}},events:{start:function(e,t,i){if(n.api.hasEvent("mediaDidStart")&&!i.mediaProperties.alreadyStarted&&n.media.functions.allowedToPlay(e,i)){var a=n.api.eventData();a.event.target=e[0],n.api.triggerEvent("mediaDidStart",a),i.mediaProperties.alreadyStarted=!0}},stop:function(e,t,i){if(n.api.hasEvent("mediaDidStop")&&i.mediaProperties.alreadyStarted){var a=n.api.eventData();a.event.target=e[0],n.api.triggerEvent("mediaDidStop",a),i.mediaProperties.alreadyStarted=!1}}},unmute:{set:function(e,t,i){("youtube"!==t&&"vimeo"!==t||n.media.properties.allowToUnmute)&&n.gui.media.showUnmute(),e.attr("data-ls-allow-to-unmute",""),i&&e.attr("data-ls-muted-by-browser","")},multipleMediaElements:function(){var e=t.find("[data-ls-allow-to-unmute]"),i=n.o.rememberUnmuteState?e:e.filter("[data-ls-playing], [data-ls-muted-by-browser]");i.each(function(){n.media.unmute.singleMediaElement(a(this))}),n.gui.media.hideUnmute(),n.media.properties.userDidUnmute=!0},singleMediaElement:function(e){var t=e.closest(".ls-layer"),i=t.data(n.defaults.init.dataKey),a=!1,r;switch(i.mediaProperties.type){case"youtube":n.media.properties.allowToUnmute&&(a=!0,i.mediaProperties.player.unMute());break;case"vimeo":n.media.properties.allowToUnmute&&(a=!0,r=i.mediaSettings.volume?i.mediaSettings.volume/100:1,i.mediaProperties.player.setVolume(r));break;case"html5":a=!0,e[0].muted=!1;}a&&e.removeAttr("data-ls-muted-by-browser data-ls-allow-to-unmute")}},functions:{allowedToPlay:function(e,t){var i=e.closest(".ls-layer");return!!(n.slides.current.index===parseInt(i.attr("data-ls-slidein"))||t.is.backgroundVideo&&n.slides.next.index===parseInt(i.attr("data-ls-slidein"))||i.attr("data-ls-static")&&"undefined"!=typeof i.attr("data-ls-active"))},playActiveMedia:function(e){var t,i;n.media.get("notbg,active").each(function(){if(t=a(this).closest(".ls-layer"),i=t.data(n.defaults.init.dataKey),e)if(i.mediaProperties.pausedByPerformance)i.mediaProperties.pausedByPerformance=!1;else return!0;if(n.media.isPlayable(t,i))if(i.mediaProperties.alreadyStarted)switch(i.mediaProperties.type){case"youtube":i.mediaProperties.player.playVideo();break;case"vimeo":i.mediaProperties.player.play();break;case"html5":i.mediaProperties.$media[0].play();}else a(this).parent().find(".ls-vpcontainer").trigger("playMedia")})},stopSingleMedia:function(e,t){var i=t.mediaProperties.$media;n.media[t.mediaProperties.type].stop(e,i,t,!0),n.media.functions.mediaEnded(i,e,t,!0)},pauseActiveMedia:function(e){var t;n.media.get("notbg,active,playing").each(function(){switch(t=a(this).closest(".ls-layer").data(n.defaults.init.dataKey),e&&(t.mediaProperties.pausedByPerformance=!0),t.mediaProperties.type){case"youtube":t.mediaProperties.player.pauseVideo();break;case"vimeo":t.mediaProperties.player.pause();break;case"html5":this.pause();}})},urlToObject:function(e){var t={},i=e.split("?")[1];return i&&i.split("#")[0].replace(/([^=&]+)=([^&]*)/g,function(e,i,r){t[decodeURIComponent(i)]=a.isNumeric(decodeURIComponent(r))?parseInt(decodeURIComponent(r)):decodeURIComponent(r)}),t},checkSlideshowState:function(e,t){!t.is.static&&n.o.autoPauseSlideshow&&(n.functions.setStates(n.slideshow,{pausedByVideo:!0}),"auto"==n.o.autoPauseSlideshow&&n.media.properties.playingInCurSlide++)},checkSlideshowWaiting:function(){var e=n.media.properties.playingInCurSlide,t=n.media.get("notbg,active,notstatic,notplaying"),i=t.length;if(i===e&&0<i&&n.slideshow.state.pausedByVideo&&n.o.autoPauseSlideshow&&!n.timeouts.pausedVideos&&n.slideshow.state.running){if("hidden"===document.visibilityState)return;n.timeouts.pausedVideos=setTimeout(function(){n.slideshow.state.running?t.each(function(){n.media.functions.mediaEnded(a(this),a(this).closest(".ls-layer"),a(this).closest(".ls-layer").data(n.defaults.init.dataKey))}):n.slideshow.state.pausedByVideo=!1},5e3)}else n.timeouts.pausedVideos&&(clearTimeout(n.timeouts.pausedVideos),delete n.timeouts.pausedVideos)},playIfAllowed:function(e){var i=e.data(n.defaults.init.dataKey);i.is.mediaLayer&&(l.isMobile&&(t.hasClass("ls-device-is-phone")&&i.elements.$outerWrapper.hasClass("ls-hide-on-phone")||t.hasClass("ls-device-is-tablet")&&i.elements.$outerWrapper.hasClass("ls-hide-on-tablet"))||(!("autoplay"in i.mediaSettings)&&n.o.autoPlayVideos||i.mediaSettings.autoplay)&&e.find(".ls-vpcontainer").trigger("playMedia"))},stop:function(e,t){var e=!("undefined"!=typeof e)||e,i=!!t&&t.children("iframe, video, audio").first(),r=!!t&&t.data(n.defaults.init.dataKey).mediaProperties.type;"youtube"!==r&&i||(i||n.layers.get("current,out,youtube")).each(function(){var t=a(this),i=t.closest(".ls-layer"),r=i.data(n.defaults.init.dataKey);n.media.youtube.stop(i,t,r,e)}),"vimeo"!==r&&i||(i||n.layers.get("current,out,vimeo")).each(function(){var t=a(this),i=t.closest(".ls-layer"),r=i.data(n.defaults.init.dataKey);n.media.vimeo.stop(i,t,r,e)}),"html5"!==r&&i||(i||n.layers.get("current,out,html5")).each(function(){var t=a(this),i=t.closest(".ls-layer"),r=i.data(n.defaults.init.dataKey);n.media.html5.stop(i,t,r,e)}),n.media.properties.playingInCurSlide=Math.max(n.media.properties.playingInCurSlide-=1,0),n.media.properties.endedInCurSlide=Math.max(n.media.properties.endedInCurSlide-=1,0)},mediaEnded:function(e,t,i,a){"auto"!=n.o.autoPauseSlideshow||i.is.backgroundVideo||(!i.is.static&&n.media.properties.endedInCurSlide++,n.media.properties.endedInCurSlide===n.media.properties.playingInCurSlide&&0!==n.media.properties.playingInCurSlide&&(!a&&(n.media.properties.playingInCurSlide=Math.max(n.media.properties.playingInCurSlide-=1,0),n.media.properties.endedInCurSlide=Math.max(n.media.properties.endedInCurSlide-=1,0)),n.functions.setStates(n.slideshow,{pausedByVideo:!1}))),n.media.set.dataAttribute(e,"not-playing"),n.media.events.stop(e,t,i)},removeFromTimeline:function(e){n.timelines._layers.kill(null,e.closest(".ls-in-out")[0]),n.timelines._layersAlt.kill(null,e.closest(".ls-in-out")[0])}},youtube:{defaults:{autoplay:0,playsinline:1,wmode:"opaque",html5:1,enablejsapi:1,version:3,rel:0},init:function(){var e=0;this.$medias=n.slider.$hiddenWrapper.find("iframe[src*=\"youtube-nocookie.com\"], iframe[src*=\"youtube.com\"], iframe[src*=\"youtu.be\"], iframe[data-src*=\"youtube-nocookie.com\"], iframe[data-src*=\"youtube.com\"], iframe[data-src*=\"youtu.be\"]").each(function(){var t=a(this).attr({id:"ls-youtube-"+ ++e,allow:"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture; fullscreen",allowfullscreen:""}),i=t.closest(".ls-layer");i.data("hasBeenSet")||n.layers.set.singleLayer(i);var r=i.data(n.defaults.init.dataKey),s=t.attr("src")||t.attr("data-src"),o=n.media.functions.urlToObject(s);s=s.split("?")[0].split("//")[1];var l=s.split("/"),d=l[l.length-1],p=n.media.set.customPoster(i,r);if(r.mediaProperties={type:"youtube",$media:t,embedURL:s,embedID:d,embedOptions:o},p)r.mediaProperties.poster=p,n.media.set.properties(i,t,r);else{var u=["default.jpg","mqdefault.jpg","hqdefault.jpg","sddefault.jpg","maxresdefault.jpg"],c="https://img.youtube.com/vi/"+s.split("embed/")[1].split("?")[0]+"/",m=c+n.o.youtubePreview,h=0,g=0,y=function(){this.width>h&&(h=this.width,m=this.src),x()},f=function(){x()},x=function(){g+=1,g===u.length&&(r.mediaProperties.poster=m,n.media.set.properties(i,t,r))};u.forEach(function(e){var t=new Image;t.addEventListener("error",f,!1),t.addEventListener("load",y,!1),t.src=c+e})}}),this.$medias.length&&(n.media.properties.$allMediaLayers=n.media.properties.$allMediaLayers.add(this.$medias.closest(".ls-layer")),n.timeouts.loadYouTube=Math.floor(Date.now()/1e3),!window.YT&&a("<script>").attr({src:"https://www.youtube.com/iframe_api",type:"text/javascript"}).appendTo("head"),window.onYouTubeIframeAPIReady=function(){window._layerSlider.globals.youTubeIsReady=!0},n.intervals.isYouTubeReady=setInterval(function(){window.YT&&1===window.YT.loaded||window._layerSlider.globals.youTubeIsReady||3<Math.floor(Date.now()/1e3)-n.timeouts.loadYouTube?(clearInterval(n.intervals.isYouTubeReady),delete n.intervals.isYouTubeReady,delete n.timeouts.loadYouTube,n.media.youtube.$medias.closest(".ls-layer").each(function(){var e=a(this),t=e.find("iframe"),i=e.data(n.defaults.init.dataKey);e.on("playMedia."+r+" click."+r,".ls-vpcontainer",function(){n.media.set.thumbnail(a(this),"hide"),n.media.functions.checkSlideshowState(e,i),t.hide(),n.media.youtube.play(e,i.mediaProperties.$media,i,i.mediaProperties.embedURL),setTimeout(function(){t.show()},10)}).on("playBackgroundVideo."+r,function(){n.media.youtube.play(e,i.mediaProperties.$media,i,i.mediaProperties.embedURL),n.layers.set.dataAttribute("add",e,"active")}).on("stopBackgroundVideo."+r,function(){n.media.youtube.stop(e,i.mediaProperties.$media,i,!0),n.layers.set.dataAttribute("add",e,"hidden")}).on("preloadBackgroundVideo."+r,function(){n.media.youtube.createPlayer(e,i.mediaProperties.$media,i,i.mediaProperties.embedURL,!0)})}),n.functions.setStates(n.slider,{waitingForYouTube:!1})):n.functions.setStates(n.slider,{waitingForYouTube:!0})},25))},createPlayer:function(e,t,i,a,r){i.mediaProperties.playerState="initializing","controls"in i.mediaSettings&&(i.mediaProperties.options.controls=i.mediaSettings.controls?1:0),"loop"in i.mediaSettings&&(i.mediaProperties.options.loop=i.mediaSettings.loop?1:0),"showinfo"in i.mediaSettings&&(i.mediaProperties.options.showinfo=i.mediaSettings.showinfo?1:0),i.mediaProperties.options.loop?i.mediaProperties.options.playlist=i.mediaProperties.embedID:delete i.mediaProperties.options.playlist,0===i.mediaProperties.options.showinfo&&(i.mediaProperties.options.modestbranding=1),t.attr("src","https://"+a+"?"+jQuery.param(i.mediaProperties.options)).on("load",function(){i.mediaProperties.player=new YT.Player(t[0],{events:{onReady:function(){i.mediaProperties.playerState="ready",i.mediaSettings.volume&&i.mediaProperties.player.setVolume(i.mediaSettings.volume),(!r||i.mediaProperties.shouldPlay)&&(n.media.youtube.play(e,t,i,a),i.mediaProperties.shouldPlay=!1)},onStateChange:function(a){switch(a.data){case 0:i.mediaProperties.options.loop&&1===i.mediaProperties.options.loop||n.media.functions.mediaEnded(t,e,i);break;case 1:n.media.events.start(t,e,i),i.mediaProperties.lastStarted=Date.now();break;case 2:case-1:i.mediaProperties.firstState&&0!==i.mediaProperties.lastState&&1!==i.mediaProperties.lastState||i.mediaProperties.lastStarted&&50>Date.now()-i.mediaProperties.lastStarted;}switch(a.data){case 1:n.media.set.dataAttribute(t,"playing");break;default:n.media.set.dataAttribute(t,"not-playing");}n.media.youtube.savePlayerState(i,a.data)}}})})},savePlayerState:function(e,t){e.mediaProperties.firstState||(e.mediaProperties.firstState=t),e.mediaProperties.lastState=t},play:function(e,t,i,a,r){"undefined"!=typeof t.attr("data-ls-muted-by-browser")&&n.media.unmute.singleMediaElement(t),i.mediaProperties.player?i.mediaProperties.player.playVideo?(i.is.backgroundVideo&&!("muted"in i.mediaSettings)&&i.mediaProperties.player.mute(),i.mediaSettings.muted?!(n.o.rememberUnmuteState&&n.media.properties.userDidUnmute)&&(i.mediaProperties.player.mute(),"offertounmute"==i.mediaSettings.muted&&n.media.unmute.set(t,i.mediaProperties.type)):r&&(i.mediaProperties.player.mute(),n.media.unmute.set(t,i.mediaProperties.type,!0)),n.media.functions.allowedToPlay(t,i)?n.media.isPlayable(e,i)&&i.mediaProperties.player.playVideo():n.media.youtube.stop(e,t,i,!0)):i.mediaProperties.shouldPlay=!0:i.mediaProperties.playerState?i.mediaProperties.shouldPlay=!0:this.createPlayer(e,t,i,a)},stop:function(e,t,i,a){i.mediaProperties.player&&(i.mediaProperties.player.pauseVideo&&i.mediaProperties.player.pauseVideo(),a&&i.mediaProperties.player.seekTo&&(i.mediaProperties.player.seekTo(0),i.mediaProperties.player.pauseVideo()),!i.is.backgroundVideo&&n.media.set.thumbnail(e.find(".ls-vpcontainer"),"show"),n.media.events.stop(t,e,i))}},vimeo:{defaults:{autoplay:0,autopause:0,wmode:"opaque",playsinline:1},init:function(){var e=this.$medias=n.slider.$hiddenWrapper.find("iframe[src*=\"player.vimeo\"], iframe[data-src*=\"player.vimeo\"]"),t=n.slider.$hiddenWrapper.find(".ls-slide:eq(0) iframe[src*=\"player.vimeo\"], .ls-slide:eq(0) iframe[data-src*=\"player.vimeo\"]").length;if(e.length){n.timeouts.loadVimeo=Math.floor(Date.now()/1e3),n.media.properties.$allMediaLayers=n.media.properties.$allMediaLayers.add(e.closest(".ls-layer"));var i=0;a("<script>").attr({src:"https://player.vimeo.com/api/player.js",type:"text/javascript"}).appendTo("head"),n.intervals.isVimeoReady=setInterval(function(){n.functions.setStates(n.slider,{waitingForVimeo:!0}),(window.Vimeo||3<Math.floor(Date.now()/1e3)-n.timeouts.loadVimeo)&&(clearInterval(n.intervals.isVimeoReady),delete n.intervals.isVimeoReady,delete n.timeouts.loadVimeo,s())},25);var s=function(){var e=0;n.media.vimeo.$medias.each(function(){var s=a(this).attr({id:"ls-vimeo-"+ ++i,allow:"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture; fullscreen",allowfullscreen:""}),o=s.closest(".ls-layer");o.data("hasBeenSet")||n.layers.set.singleLayer(o);var l=o.data(n.defaults.init.dataKey),d=s.attr("src")||s.attr("data-src"),p=n.media.functions.urlToObject(d),u=d.split("video/")[1].split("?")[0],c=encodeURIComponent("https://vimeo.com/video/"+u+(p.h?"?h="+p.h:""));d=d.split("?")[0].split("//")[1],n.media.vimeo.defaults.player_id="ls-vimeo-"+i;var m=n.media.set.customPoster(o,l);l.mediaProperties={type:"vimeo",$media:s,embedURL:d,embedOptions:p};var h=function(i){l.mediaProperties.poster=i,(0===t||0<t&&++e==t)&&(window._layerSlider.globals.vimeoIsReady=!0),n.media.set.properties(o,s,l)};m?h(m):a.getJSON("https://vimeo.com/api/oembed.json?url="+c,function(e){h(e.thumbnail_url)}),o.on("playMedia."+r+" click."+r,".ls-vpcontainer",function(){n.media.set.thumbnail(a(this),"hide"),n.media.functions.checkSlideshowState(o,l),n.media.vimeo.play(o,s,l,d)}).on("playBackgroundVideo."+r,function(){n.media.vimeo.play(o,s,l,d),n.layers.set.dataAttribute("add",o,"active")}).on("stopBackgroundVideo."+r,function(){n.media.vimeo.stop(o,s,l,!0),n.layers.set.dataAttribute("add",o,"hidden")}).on("preloadBackgroundVideo."+r,function(){n.media.vimeo.createPlayer(o,s,l,d,!0)})}),n.functions.setStates(n.slider,{waitingForVimeo:!1})}}},createPlayer:function(e,t,i,r,s){i.mediaProperties.playerState="initializing";"controls"in i.mediaSettings&&(i.mediaProperties.options.controls=i.mediaSettings.controls?1:0,delete i.mediaSettings.controls),"loop"in i.mediaSettings&&(i.mediaProperties.options.loop=i.mediaSettings.loop?1:0),"showinfo"in i.mediaSettings&&(i.mediaSettings.showinfo?(i.mediaProperties.options.byline=1,i.mediaProperties.options.portrait=1,i.mediaProperties.options.title=1):(i.mediaProperties.options.byline=0,i.mediaProperties.options.portrait=0,i.mediaProperties.options.title=0),delete i.mediaProperties.options.showinfo),"volume"in i.mediaSettings&&(0===i.mediaSettings.volume?(i.mediaSettings.volume=100,i.mediaSettings.muted=!0):(0>i.mediaSettings.volume||100<i.mediaSettings.volume)&&(i.mediaSettings.volume=100)),i.mediaSettings.muted&&(i.mediaProperties.options.muted=1),t.attr("src","https://"+r+"?"+jQuery.param(i.mediaProperties.options)),i.mediaProperties.player=new Vimeo.Player(t[0]),i.mediaProperties.player.on("play",function(){n.media.set.dataAttribute(t,"playing"),n.media.events.start(t,e,i)}),i.mediaProperties.player.on("pause",function(){n.media.set.dataAttribute(t,"not-playing")}),i.mediaProperties.player.on("ended",function(){n.media.functions.mediaEnded(t,e,i)}),i.mediaProperties.player.ready().then(function(){i.mediaProperties.playerState="ready",i.mediaSettings.volume&&!i.mediaSettings.muted&&a.isNumeric(i.mediaSettings.volume)&&0<=i.mediaSettings.volume&&100>=i.mediaSettings.volume&&i.mediaProperties.player.setVolume(i.mediaSettings.volume/100),s||n.media.vimeo.play(e,t,i,r)})},play:function(e,t,i,a,r){"undefined"!=typeof t.attr("data-ls-muted-by-browser")&&n.media.unmute.singleMediaElement(t),i.mediaProperties.player?(i.is.backgroundVideo&&!("muted"in i.mediaSettings)&&i.mediaProperties.player.setVolume(0),i.mediaSettings.muted&&(n.o.rememberUnmuteState&&n.media.properties.userDidUnmute?n.o.rememberUnmuteState&&n.media.properties.userDidUnmute&&(i.mediaProperties.player.setVolume(i.mediaSettings.volume/100||1),delete i.mediaSettings.muted):(i.mediaProperties.player.setVolume(0),"offertounmute"==i.mediaSettings.muted&&n.media.unmute.set(t,i.mediaProperties.type))),r?(i.mediaProperties.player.setVolume(0),n.media.unmute.set(t,i.mediaProperties.type,!0)):i.mediaProperties.player.getVolume().then(function(e){0==e&&"offertounmute"==i.mediaSettings.muted&&n.media.unmute.set(t,i.mediaProperties.type)}),n.media.functions.allowedToPlay(t,i)?i.mediaProperties.player.play().then(function(){}).catch(function(r){switch(r.name){case"PasswordError":window.console&&(console.error(n.defaults.slider.errorText),console.error("Vimeo video is password protected and may cause playback issues."));break;case"PrivacyError":window.console&&(console.error(n.defaults.slider.errorText),console.error("Vimeo video is private and may cause playback issues."));break;default:n.media.vimeo.play(e,t,i,a,!0);}}):n.media.vimeo.stop(e,t,i,!0)):this.createPlayer(e,t,i,a)},stop:function(e,t,i,a){i.mediaProperties.player&&(i.mediaProperties.player.pause(),a&&i.mediaProperties.player.setCurrentTime(0),!i.is.backgroundVideo&&n.media.set.thumbnail(e.find(".ls-vpcontainer"),"show"),n.media.events.stop(t,e,i))}},html5:{singleInit:function(e){var t=e.closest(".ls-layer"),i=t.data(n.defaults.init.dataKey),s=e.find("source"),o=n.media.set.customPoster(t,i),l,d,p,u;i.mediaProperties={type:"html5",$media:e,poster:o||e.attr("poster")},e.removeAttr("poster"),0<s.length?s.each(function(){l=a(this).attr("type"),("undefined"==typeof l||!1===l)&&(d=a(this).attr("src"),p=d.split("."),u=p[p.length-1].toLowerCase(),a(this).attr("type",a(this).parent()[0].tagName.toLowerCase()+"/"+u)),""!==e[0].canPlayType(a(this).attr("type"))&&(i.mediaProperties.canBePlayed=!0)}):"undefined"!=typeof e.attr("src")&&!1!==e.attr("src")&&(d=e.attr("src"),p=d.split("."),u=p[p.length-1].toLowerCase(),""!==e[0].canPlayType(e[0].tagName.toLowerCase()+"/"+u)&&(i.mediaProperties.canBePlayed=!0)),i.mediaProperties.canBePlayed&&(n.media.set.properties(t,e,i),e.on("ended."+r,function(){n.media.functions.mediaEnded(e,t,i)}).on("play."+r,function(){}).on("playing."+r,function(){n.media.events.start(e,t,i),n.media.set.dataAttribute(e,"playing")}).on("pause."+r,function(){n.media.set.dataAttribute(e,"not-playing")}),t.on("playMedia."+r+" click."+r,".ls-vpcontainer",function(){n.media.set.thumbnail(a(this),"hide"),n.media.functions.checkSlideshowState(t,i),n.media.html5.play(t,e,i)}).on("playBackgroundVideo."+r,function(){n.media.html5.play(t,e,i),n.layers.set.dataAttribute("add",t,"active")}).on("stopBackgroundVideo."+r,function(){n.media.html5.stop(t,e,i,!0),n.layers.set.dataAttribute("add",t,"hidden")}))},init:function(){var e=n.slider.$hiddenWrapper.find("video, audio");if(n.media.properties.$allMediaLayers=n.media.properties.$allMediaLayers.add(e.closest(".ls-layer")),e.length){var t=0;e.each(function(){var e=a(this).closest(".ls-layer"),i=e.data(n.defaults.init.dataKey);i.is.mediaLayer=!0,a(this).attr("id","ls-html5-"+ ++t).attr("playsinline",""),a(this)[0].pause()})}},play:function(e,t,i){if(i.mediaProperties.canBePlayed){"undefined"!=typeof t.attr("data-ls-muted-by-browser")&&n.media.unmute.singleMediaElement(t),i.mediaSettings.muted?n.o.rememberUnmuteState&&n.media.properties.userDidUnmute?n.o.rememberUnmuteState&&n.media.properties.userDidUnmute&&(t[0].muted=!1):(t[0].muted=!0,"offertounmute"==i.mediaSettings.muted&&n.media.unmute.set(t,i.mediaProperties.type)):t[0].muted=!1;var a=t[0].play();a!==void 0&&a.then(function(){}).catch(function(e){"NotAllowedError"===e.name&&(t[0].muted=!0,t[0].play(),t[0].paused&&n.functions.setStates(n.slideshow,{pausedByVideo:!1}),n.media.unmute.set(t,i.mediaProperties.type,!0))})}},stop:function(e,t,i,r){i.mediaProperties.canBePlayed&&(t[0].pause(),r&&(t[0].currentTime=0),!i.is.backgroundVideo&&n.media.set.thumbnail(a(this),"show"),n.media.events.stop(t,e,i))}}},n.yourLogo={init:function(){n.o.yourLogo&&(this.$element=a("<img>").addClass("ls-yourlogo").appendTo(t).attr("style",n.o.yourLogoStyle).css({visibility:"hidden",display:"bock"}).on("load."+r,function(){var e=n.yourLogo.$element?500:0;n.timeouts.yourLogo=setTimeout(function(){delete n.timeouts.yourLogo,n.yourLogo.$element.data("originalWidth",n.yourLogo.$element.width()),n.yourLogo.$element.data("originalHeight",n.yourLogo.$element.height()),"auto"!=n.yourLogo.$element.css("left")&&n.yourLogo.$element.data("originalLeft",n.yourLogo.$element[0].style.left),"auto"!=n.yourLogo.$element.css("right")&&n.yourLogo.$element.data("originalRight",n.yourLogo.$element[0].style.right),"auto"!=n.yourLogo.$element.css("top")&&n.yourLogo.$element.data("originalTop",n.yourLogo.$element[0].style.top),"auto"!=n.yourLogo.$element.css("bottom")&&n.yourLogo.$element.data("originalBottom",n.yourLogo.$element[0].style.bottom),!1!==n.o.yourLogoLink&&a("<a>").appendTo(t).attr("href",n.o.yourLogoLink).attr("target",n.o.yourLogoTarget).css({textDecoration:"none",outline:"none"}).append(n.yourLogo.$element),n.yourLogo.$element.css({display:"none",visibility:"visible"}),n.yourLogo.resize()},e)}).attr("src",n.o.yourLogo))},resize:function(){this.$element.css({width:this.$element.data("originalWidth")*n.resize.ratio,height:this.$element.data("originalHeight")*n.resize.ratio}),this.$element.fadeIn(300);var e="auto",i="auto",a="auto",r="auto";e=this.$element.data("originalLeft")&&-1!=this.$element.data("originalLeft").indexOf("%")?t.width()/100*parseFloat(this.$element.data("originalLeft"))-this.$element.width()/2+parseInt(t.css("padding-left")):parseInt(this.$element.data("originalLeft"))*n.resize.ratio,i=this.$element.data("originalRight")&&-1!=this.$element.data("originalRight").indexOf("%")?t.width()/100*parseFloat(this.$element.data("originalRight"))-this.$element.width()/2+parseInt(t.css("padding-right")):parseInt(this.$element.data("originalRight"))*n.resize.ratio,a=this.$element.data("originalTop")&&-1!=this.$element.data("originalTop").indexOf("%")?t.height()/100*parseFloat(this.$element.data("originalTop"))-this.$element.height()/2+parseInt(t.css("padding-top")):parseInt(this.$element.data("originalTop"))*n.resize.ratio,r=this.$element.data("originalBottom")&&-1!=this.$element.data("originalBottom").indexOf("%")?t.height()/100*parseFloat(this.$element.data("originalBottom"))-this.$element.height()/2+parseInt(t.css("padding-bottom")):parseInt(this.$element.data("originalBottom"))*n.resize.ratio,this.$element.css({left:e,right:i,top:a,bottom:r})}},n.gui={navigation:{init:function(){n.o.navPrevNext&&this.prevNext.init(),(n.o.navStartStop||n.o.navButtons)&&this.bottom.init()},prevNext:{init:function(){a("<a class=\"ls-gui-element ls-nav-prev\" aria-label=\"jump to the previous slide\" href=\"#\" />").on("click."+r,function(i){i.preventDefault(),t.layerSlider("prev")}).appendTo(t),a("<a class=\"ls-gui-element ls-nav-next\" aria-label=\"jump to the next slide\" href=\"#\" />").on("click."+r,function(i){i.preventDefault(),t.layerSlider("next")}).appendTo(t),n.o.hoverPrevNext&&this.setHover()},setHover:function(){t.find(".ls-nav-prev, .ls-nav-next").css({display:"none"}),t.on("mouseenter."+r,function(){n.gui.navigation.forceHide||t.find(".ls-nav-prev, .ls-nav-next").stop(!0,!0).fadeIn(300)}).on("mouseleave."+r,function(){t.find(".ls-nav-prev, .ls-nav-next").stop(!0,!0).fadeOut(300)})}},bottom:{init:function(){this.wrapper=a("<div class=\"ls-gui-element ls-bottom-nav-wrapper\" />").appendTo(t),n.o.navButtons&&"always"!=n.o.thumbnailNavigation&&this.bullets.init(),n.o.navStartStop?this.createStartStop():"always"!=n.o.thumbnailNavigation&&this.createSides(),n.o.hoverBottomNav&&"always"!=n.o.thumbnailNavigation&&this.setHover(),"always"==n.o.thumbnailNavigation&&(this.wrapper.addClass("ls-above-thumbnails"),this.thumbnails.init())},bullets:{init:function(){var e=this;a("<span class=\"ls-bottom-slidebuttons\" />").appendTo(t.find(".ls-bottom-nav-wrapper"));for(var i=0,s;i<n.slides.count;i++)s=a("<a href=\"#\" aria-label=\"jump to slide "+(i+1)+"\" />").appendTo(t.find(".ls-bottom-slidebuttons")).data("index",i+1).on("click."+r,function(i){i.preventDefault(),t.layerSlider(a(this).data("index"))}),"hover"==n.o.thumbnailNavigation&&s.on("mouseenter."+r,function(){var i=a(this);t.find(".ls-thumbnail-hover-img").css({left:parseInt(e.hoverWrapper.css("padding-left")),top:parseInt(e.hoverWrapper.css("padding-top"))}),e.hoverImage.on("load."+r,function(){0===a(this).width()?e.hoverImage.css({position:"relative",margin:"0 auto",left:"auto"}):e.hoverImage.css({position:"absolute",marginLeft:-a(this).width()/2,left:"50%"}),e.hoverImage.css("display","none").stop(!0,!0).fadeIn(250)}).attr("src",n.slides[i.data("index")].data.thumbnail),e.hoverWrapper.css({display:"block"}).stop().animate({left:a(this).position().left+(a(this).width()-e.hoverWrapper.outerWidth())/2},250),e.hoverWrapperInner.css({display:"none",visibility:"visible"}).stop().fadeIn(250)}).on("mouseleave."+r,function(){e.hoverWrapperInner.stop().fadeOut(250,function(){e.hoverWrapper.css({visibility:"hidden",display:"block"})})});e.set.active(n.slides.first.index),"hover"==n.o.thumbnailNavigation&&e.set.hover()},set:{active:function(e){"undefined"==typeof e&&(e=n.slides.current.index),e--,t.find(".ls-bottom-slidebuttons a").removeClass("ls-nav-active"),t.find(".ls-bottom-slidebuttons a:eq( "+e+" )").addClass("ls-nav-active")},hover:function(){var e=n.gui.navigation.bottom.bullets,i=a("<div class=\"ls-thumbnail-hover\"><div class=\"ls-thumbnail-hover-inner\"><div class=\"ls-thumbnail-hover-bg\"></div><div class=\"ls-thumbnail-hover-img\"><img></div><span></span></div></div>").appendTo(t.find(".ls-bottom-slidebuttons"));t.find(".ls-thumbnail-hover, .ls-thumbnail-hover-img").css({width:n.o.tnWidth,height:n.o.tnHeight}),e.hoverWrapper=t.find(".ls-thumbnail-hover"),e.hoverImage=e.hoverWrapper.find("img").css({height:n.o.tnHeight}),e.hoverWrapperInner=t.find(".ls-thumbnail-hover-inner").css({visibility:"hidden",display:"block"}),i.appendTo(t.find(".ls-bottom-slidebuttons"))}}},createStartStop:function(){this.buttonStart=a("<a class=\"ls-nav-start\" aria-label=\"start slideshow\" href=\"#\" />").on("click."+r,function(i){i.preventDefault(),t.layerSlider("start")}).prependTo(t.find(".ls-bottom-nav-wrapper")),this.buttonStop=a("<a class=\"ls-nav-stop\" aria-label=\"stop slideshow\" href=\"#\" />").on("click."+r,function(i){i.preventDefault(),t.layerSlider("stop")}).appendTo(t.find(".ls-bottom-nav-wrapper")),n.o.autoStart?this.setStartStop("start"):this.setStartStop("stop")},setStartStop:function(e){n.o.navStartStop&&("start"===e?(this.buttonStart.addClass("ls-nav-start-active"),this.buttonStop.removeClass("ls-nav-stop-active")):"stop"===e?(this.buttonStart.removeClass("ls-nav-start-active"),this.buttonStop.addClass("ls-nav-stop-active")):void 0)},createSides:function(){a("<span class=\"ls-nav-sides ls-nav-sideleft\" />").prependTo(t.find(".ls-bottom-nav-wrapper")),a("<span class=\"ls-nav-sides ls-nav-sideright\" />").appendTo(t.find(".ls-bottom-nav-wrapper"))},setHover:function(){var e=this;e.wrapper.css({display:"none"}),t.on("mouseenter."+r,function(){n.gui.navigation.forceHide||e.wrapper.stop(!0,!0).fadeIn(300)}).on("mouseleave."+r,function(){e.wrapper.stop(!0,!0).fadeOut(300)})},switchHelper:function(e){n.o.hoverBottomNav&&!t.hasClass("ls-hover")&&("on"===e?n.gui.navigation.bottom.thumbnails.wrapper.css({visibility:"hidden",display:"block"}):"off"===e?n.gui.navigation.bottom.thumbnails.wrapper.css({visibility:"visible",display:"none"}):void 0)},thumbnails:{init:function(){var e=this;this.wrapper=a("<div class=\"ls-gui-element ls-thumbnail-wrapper "+("contain"===n.o.tnFillMode?"":"ls-thumbnail-fill")+"\"></div>").appendTo(t),a("<div class=\"ls-thumbnail\"><div class=\"ls-thumbnail-inner\"><div class=\"ls-thumbnail-slide-container\"><div class=\"ls-thumbnail-slide\"></div></div></div></div>").appendTo(this.wrapper),this.$element=t.find(".ls-thumbnail-slide-container"),"ontouchstart"in window?this.$element.addClass("ls-touchscroll"):this.$element.on("mouseenter."+r,function(){a(this).addClass("ls-thumbnail-slide-hover")}).on("mouseleave."+r,function(){a(this).removeClass("ls-thumbnail-slide-hover"),n.gui.navigation.bottom.thumbnails.scroll()}).on("mousemove."+r,function(t){var e=parseInt(t.pageX-a(this).offset().left)/a(this).width()*(a(this).width()-a(this).find(".ls-thumbnail-slide").width());a(this).find(".ls-thumbnail-slide").stop().css({marginLeft:e})});for(var i=0;i<n.slides.count;i++){var s=i+1,o=n.slides[s].data.thumbnail,l="";"contain"!==n.o.tnFillMode&&(o="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",l="style=\"background-image: url("+n.slides[s].data.thumbnail+"); background-size: "+n.o.tnFillMode+";\"");var d=a("<a href=\"#\" class=\"ls-thumb-"+(i+1)+"\"  aria-label=\"jump to slide "+(i+1)+"\"><img "+l+" src=\""+o+"\"></a>");n.slides[s].data.tnAlt&&d.find("img").attr("alt",n.slides[s].data.tnAlt),d.data("index",s).on("click."+r,function(i){i.preventDefault(),t.layerSlider(a(this).data("index"))}).appendTo(t.find(".ls-thumbnail-slide")),"ontouchstart"in window||d.on("mouseenter."+r,function(){a(this).children().stop().fadeTo(300,n.o.tnActiveOpacity/100)}).on("mouseleave."+r,function(){a(this).children().hasClass("ls-thumb-active")||a(this).children().stop().fadeTo(300,n.o.tnInactiveOpacity/100)})}n.gui.navigation.bottom.buttonStart&&n.gui.navigation.bottom.buttonStop&&(n.gui.navigation.bottom.wrapper=a("<div class=\"ls-bottom-nav-wrapper ls-below-thumbnails\"></div>").appendTo(t),n.gui.navigation.bottom.buttonStart.clone().on("click."+r,function(i){i.preventDefault(),t.layerSlider("start")}).appendTo(n.gui.navigation.bottom.wrapper),n.gui.navigation.bottom.buttonStop.clone().on("click."+r,function(i){i.preventDefault(),t.layerSlider("stop")}).appendTo(n.gui.navigation.bottom.wrapper)),n.o.hoverBottomNav&&e.setHover()},setHover:function(){var e=this;e.wrapper.css("display","none"),n.gui.navigation.bottom.wrapper&&(n.gui.navigation.bottom.wrapper="block"==n.gui.navigation.bottom.wrapper.css("display")?n.gui.navigation.bottom.wrapper:t.find(".ls-above-thumbnails"),n.gui.navigation.bottom.wrapper.css("display","none")),t.on("mouseenter."+r,function(){t.addClass("ls-hover"),n.gui.navigation.forceHide||(e.wrapper.stop(!0,!0).fadeIn(300),n.gui.navigation.bottom.wrapper&&n.gui.navigation.bottom.wrapper.stop(!0,!0).fadeIn(300))}).on("mouseleave."+r,function(){t.removeClass("ls-hover"),e.wrapper.stop(!0,!0).fadeOut(300),n.gui.navigation.bottom.wrapper&&n.gui.navigation.bottom.wrapper.stop(!0,!0).fadeOut(300)})},change:function(e){var i=e?e:n.slides.next.index;t.find(".ls-thumbnail-slide a:not(.ls-thumb-"+i+" )").children().each(function(){a(this).removeClass("ls-thumb-active").stop().fadeTo(750,n.o.tnInactiveOpacity/100)}),t.find(".ls-thumbnail-slide a.ls-thumb-"+i).children().addClass("ls-thumb-active").stop().fadeTo(750,n.o.tnActiveOpacity/100)},scroll:function(){if(!t.find(".ls-thumbnail-slide-container").hasClass("ls-thumbnail-slide-hover")){var e=!!t.find(".ls-thumb-active").length&&t.find(".ls-thumb-active").parent();if(e){var i=e.position().left+e.width()/2,a=t.find(".ls-thumbnail-slide-container").width()/2-i;a=a<t.find(".ls-thumbnail-slide-container").width()-t.find(".ls-thumbnail-slide").width()?t.find(".ls-thumbnail-slide-container").width()-t.find(".ls-thumbnail-slide").width():a,a=0<a?0:a,t.find(".ls-thumbnail-slide").animate({marginLeft:a},600)}}},resize:function(){n.gui.navigation.bottom.switchHelper("on");var e=-1==n.slider.initial.width.indexOf("%")?parseInt(n.slider.initial.originalWidth):t.width(),i=t.find(".ls-thumbnail"),a=-1==n.o.tnContainerWidth.indexOf("%")?parseInt(n.o.tnContainerWidth):parseInt(e/100*parseInt(n.o.tnContainerWidth));t.find(".ls-thumbnail-slide a").css({width:parseInt(n.o.tnWidth*n.resize.ratio),height:parseInt(n.o.tnHeight*n.resize.ratio)}),t.find(".ls-thumbnail-slide a:last").css({margin:0}),t.find(".ls-thumbnail-slide").css({height:parseInt(n.o.tnHeight*n.resize.ratio)}),i.css({width:a*Math.floor(100*n.resize.ratio)/100}),i.width()>t.find(".ls-thumbnail-slide").width()&&i.css({width:t.find(".ls-thumbnail-slide").width()}),n.gui.navigation.bottom.switchHelper("off")}}}},media:{init:function(){0<n.media.properties.$allMediaLayers.length&&a("<div class=\"ls-gui-element ls-media-unmute\" aria-label=\"Unmute\"><div class=\"ls-media-unmute-bg\"></div><div class=\"ls-icon-muted\"></div><div class=\"ls-icon-unmuted\"></div></div>").on("click."+r,function(i){i.preventDefault(),t.layerSlider("unmute")}).appendTo(t)},showUnmute:function(){t.find(".ls-media-unmute").addClass("ls-media-unmute-active")},hideUnmute:function(){t.find(".ls-media-unmute").removeClass("ls-media-unmute-active")}},skin:{load:function(){t.addClass("ls-"+n.o.skin);var e=n.o.skinsPath+n.o.skin+"/skin.css",i=a("head").length?a("head"):a("body"),s;a("link[href=\""+e+"\"]").length?(s=a("link[href=\""+e+"\"]"),!n.gui.skin.isLoaded&&(n.gui.skin.isLoaded=!0,n.timeouts.skinLoad1=setTimeout(function(){delete n.timeouts.skinLoad1,n.slider.init()},150))):document.createStyleSheet?(document.createStyleSheet(e),s=a("link[href=\""+e+"\"]")):s=a("<link rel=\"stylesheet\" href=\""+e+"\" type=\"text/css\" />").appendTo(i),s.on("load."+r,function(){n.gui.skin.isLoaded||(n.gui.skin.isLoaded=!0,n.timeouts.skinLoad2=setTimeout(function(){delete n.timeouts.skinLoad2,n.slider.init()},150))}),o.on("load."+r,function(){n.gui.skin.isLoaded||(n.gui.skin.isLoaded=!0,n.timeouts.skinLoad3=setTimeout(function(){delete n.timeouts.skinLoad3,n.slider.init()},150))}),n.timeouts.skinLoad4=setTimeout(function(){n.gui.skin.isLoaded||(n.gui.skin.isLoaded=!0,delete n.timeouts.skinLoad4,n.slider.init())},1e3)}},shadow:{init:function(){this.set(),this.resize()},set:function(){this.$element=a("<div class=\"ls-gui-element ls-shadow\"></div>").appendTo(t),"block"!=this.$element.css("display")||this.$element.find("img").length||(this.show=function(){n.gui.shadow.$element.css({display:"none",visibility:"visible"}).fadeIn(500,function(){n.gui.shadow.show=!1})},this.image=a("<img>").attr("src",n.o.skinsPath+n.o.skin+"/shadow.png").appendTo(this.$element),this.btmMod="number"==typeof parseInt(t.css("padding-bottom"))?parseInt(t.css("padding-bottom")):0)},resize:function(){this.image&&(0<this.image.height()?0<this.btmMod?this.$element.css({height:this.image.height()/2}):this.$element.css({height:this.image.height(),marginTop:-this.image.height()/2}):n.timeouts.resizeShadow=setTimeout(function(){delete n.timeouts.resizeShadow,n.gui.shadow.resize()},50))}},timers:{init:function(){n.o.showBarTimer&&this.bar.create(),n.o.showCircleTimer&&this.circle.create();var e=!1;e=n.o.showSlideBarTimer?a("<div>").insertAfter(t):a("[data-slidebar-for=\""+t.attr("id")+"\"], [data-slidebar-for=\""+r+"\"]"),e.length&&(e.addClass("ls-gui-element"),this.slidebar.create(e))},bar:{create:function(){this.$element=a("<div>").addClass("ls-gui-element ls-bar-timer").appendTo(t)}},circle:{create:function(){this.$element=a("<div>").addClass("ls-gui-element ls-circle-timer").appendTo(t),this.$element.append(a("<div class=\"ls-ct-center\"></div><div class=\"ls-ct-left\"><div class=\"ls-ct-rotate\"><div class=\"ls-ct-hider\"><div class=\"ls-ct-half\"></div></div></div></div><div class=\"ls-ct-right\"><div class=\"ls-ct-rotate\"><div class=\"ls-ct-hider\"><div class=\"ls-ct-half\"></div></div></div></div>")),this.$element.data("original",{opacity:this.$element.css("opacity")})}},slidebar:{$containerElement:[],$element:[],$progressBarElement:[],$sliderContainerElement:[],$sliderElement:[],elementWidth:[],containerElementWidth:[],sliderContainerElementWidth:[],state:{},create:function(e){var t=a(document),i=this,s=function(t,e){d=(t.pageX?t.pageX:n.device.touchX||0)-i.$element[e].offset().left-i.sliderContainerElementWidth[e]/2,0>d&&(d=0),d>i.containerElementWidth[e]-i.sliderContainerElementWidth[e]&&(d="calc( 100% - "+n.gui.timers.slidebar.sliderContainerElementWidth[e]+"px )"),i.$sliderContainerElement[e].css({left:d}),n.timelines._layers&&n.timelines._layers.progress("string"==typeof d?n.transitions.layers.timeline.progress:d/(i.containerElementWidth[e]-i.sliderContainerElementWidth[e])*n.transitions.layers.timeline.progress)},o=function(){a(document).off("mousemove."+r),a("body").prop("unselectable",!1).removeClass("ls-unselectable"),n.o.pauseLayers&&!n.slideshow.state.running||n.slider.state.isPaused||!n.timelines._layers||n.o.playByScroll||(!0===n.transitions.layers.timeline.state.started?n.transitions.layers.timeline.resume():n.transitions.layers.timeline.play())},l=function(t){"dragging"==n.gui.timers.slidebar.state&&(n.timelines._layers&&n.transitions.layers.timeline.state.finished&&n.timelines._layers.progress()!==n.transitions.layers.timeline.progress&&n.functions.setStates(n.transitions.layers.timeline,{finished:!1}),o(t),n.gui.timers.slidebar.state=!1)},d;a.each(e,function(o,d){i.$containerElement[o]=a(d).addClass("ls-slidebar-container "+r),i.$element[o]=a("<div>").addClass("ls-slidebar").appendTo(i.$containerElement[o]),i.$progressBarElement[o]=a("<div>").addClass("ls-progressbar").appendTo(i.$element[o]),i.$sliderContainerElement[o]=a("<div>").addClass("ls-slidebar-slider-container").appendTo(i.$containerElement[o]),i.$sliderElement[o]=a("<div>").addClass("ls-slidebar-slider").appendTo(i.$sliderContainerElement[o]),i.sliderContainerElementWidth[o]=i.$sliderContainerElement[o].width(),i.$sliderContainerElement[o].css({marginTop:-i.$sliderElement[o].outerHeight()/2}),i.$containerElement[o].on("touchmove."+r,function(t){s(t,o)}),i.$containerElement[o].on("touchend."+r,function(t){l(t)}),i.$containerElement[o].on("mousedown."+r+" touchstart."+r,function(t){n.transitions.layers.timeline.pause(0),a("body").prop("unselectable",!0).addClass("ls-unselectable"),a(document).on("mousemove."+r,function(t){s(t,o)}),s(t,o),n.gui.timers.slidebar.state="dragging"}),t=t.add(i.$sliderElement[o])}),a("body").on("mouseup."+r,function(t){l(t)})}}},loadingIndicator:{init:function(){this.$element=a("<div>").css({display:"none"}).addClass("ls-gui-element ls-loading-container").appendTo(t),a("<div>").addClass("ls-loading-indicator").appendTo(this.$element)},show:function(){this.$element.delay(400).fadeIn(300)},hide:function(){this.$element.stop(!0,!0).fadeOut(300)}}},n.navigation={direction:"next",init:function(){1<n.slides.count&&(this.set.keyboard(),this.set.touch())},set:{keyboard:function(){n.o.keybNav&&a("body").on("keydown."+r,function(t){if(!(a(t.target).is(":input")||n.slider.isAnimating||n.slider.isPreloading)){var e=!1;37===t.which?(n.navigation.prev(),e=!0):39===t.which&&(n.navigation.next(),e=!0),e&&"undefined"!=typeof LS_editorMeta&&t.preventDefault()}})},touch:function(){"ontouchstart"in window&&n.o.touchNav&&(n.slider.$innerWrapper.on("touchstart."+r,function(i){var e=i.touches?i.touches:i.originalEvent.touches;1==e.length&&(n.device.touchStartX=n.device.touchEndX=e[0].clientX)}),n.slider.$innerWrapper.on("touchmove."+r,function(i){var e=i.touches?i.touches:i.originalEvent.touches;1==e.length&&(n.device.touchEndX=e[0].clientX),45<Math.abs(n.device.touchStartX-n.device.touchEndX)&&i.preventDefault()}),n.slider.$innerWrapper.on("touchend."+r,function(){45<Math.abs(n.device.touchStartX-n.device.touchEndX)&&(0<n.device.touchStartX-n.device.touchEndX?t.layerSlider("touchNext"):t.layerSlider("touchPrev"))}))}},prev:function(){(!n.slider.isPopup||n.slider.isPopup&&n.slider.state.popupIsVisible)&&(this.direction="prev",this.forceDirection="prev",n.slideshow.set.prevNext("prev"))},next:function(){(!n.slider.isPopup||n.slider.isPopup&&n.slider.state.popupIsVisible)&&(this.direction="next",this.forceDirection="next",n.slideshow.set.prevNext("next"))},start:function(){n.functions.setStates(n.slideshow,{running:!0,paused:!1}),!0===n.slideshow.state.pausedByLastCycle&&n.functions.setStates(n.slideshow,{pausedByLastCycle:!1}),n.gui.navigation.bottom.setStartStop("start"),n.slideshow.state.pausedByHover||1===n.timelines._layers.timeScale()||n.transitions.layers.timeline.resume(),n.slideshow.start()},stop:function(){n.gui.navigation.bottom.setStartStop("stop"),n.o.pauseLayers&&n.transitions.layers.timeline.pause(),n.slideshow.stop()}},n.preload={init:function(){n.slider.$hiddenWrapper.find(".ls-slide img").each(function(){var e=a(this),t=e[0],i={};if(e.is(".ls-layer, .ls-bg")){if(t.getAttribute("width")&&(i.width=t.getAttribute("width")),t.getAttribute("height")&&(i.height=t.getAttribute("height")),t.sizes&&(i.sizes=t.sizes),n.o.useSrcset&&(e.data("srcset")||t.srcset)){i.srcSet=e.data("srcset")||t.srcset,i.curSrc=t.currentSrc;var r=i.srcSet.split(",").map(function(e){return parseInt(a.trim(e).split(" ")[1])});i.maxWidth=Math.max.apply(null,r)}e.removeAttr("width height sizes srcset loading"),a.isEmptyObject(i)||(e.data(n.defaults.init.dataKey).attributes=i)}e.data("lazy-src")?e.data("src",e.data("lazy-src")):e.attr("data-tgpli-src")?e.data("src",e.attr("data-tgpli-src")):e.attr("data-lazy-src")?e.data("src",e.attr("data-lazy-src")):e.attr("data-lazy")?e.data("src",e.attr("data-lazy")):e.data("src")?i.curSrc&&e.data("src",i.curSrc):e.data("src",i.curSrc?i.curSrc:t.src),e.attr("data-lazyset")?e.attr("srcset",e.attr("data-lazyset")):e.attr("data-lazy-srcset")?e.attr("srcset",e.attr("data-lazy-srcset")):e.attr("data-tgpli-srcset")&&e.attr("srcset",e.attr("data-tgpli-srcset")),e.removeAttr("lazy lazyload data-lazy-src data-tgpli-src data-lazy data-lazyset data-lazy-srcset data-tgpli-srcset"),e.attr("src","data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7")})},imagesOfSlide:function(e,i){if(!0!==n.slides[e].wrapped){this.slideIndex=e,i?(this.onCompleteCallback=i,n.functions.setStates(n.slider,{preloadingImages:!0}),n.gui.loadingIndicator.show()):this.onCompleteCallback=!1,n.slider.canShow&&t.css({visibility:"visible"}),this.preImages=[];var r=this,s,o;n.slider.$hiddenWrapper.find(".ls-slide:eq("+(r.slideIndex-1)+") *").each(function(){s=a(this),o=this;var e=s.data(n.defaults.init.dataKey);if(s.is("img")){s.data("src")&&s.attr("src",s.data("src")),e&&e.attributes&&e.attributes.srcSet&&n.o.useSrcset&&(o.srcset=e.attributes.srcSet);var t=o.src,i=!!(e&&e.attributes&&e.attributes.curSrc)&&e.attributes.curSrc;i&&t!==i&&s.is(".ls-bg")&&(t=i,n.slides[r.slideIndex].data.$background.attr("src",t)),n.preload.preImages.push([t,s])}else"none"!==s.css("background-image")&&-1!==s.css("background-image").indexOf("url")&&n.preload.preImages.push([s.css("background-image").match(/url\(['"]?(.+?)['"]?\)/)[1],s]);s.attr("data-ls-preload")&&n.preload.preImages.push([s.attr("data-ls-preload"),a(o),!0])}),n.transitions.firstSlide&&n.o.globalBGImage&&n.preload.preImages.push([n.o.globalBGImage,a()]),this.thumbnailsAreLoaded||this.thumbnails(),0===this.preImages.length?this.onComplete():this.start()}else n.slider.shouldResize&&i?(n.resize.setLayers(n.layers.get("next, bg")),n.resize.layers({callback:i})):i&&i()},thumbnails:function(){for(var e=n.slider.thumbnails.filter(function(e,t,i){return i.indexOf(e)==t}),i=e.length,a=0,r;a<i;a++)r=new Image,r.src=e[a];this.thumbnailsAreLoaded=!0},start:function(){n.debugMode&&(n.debug.add("group","preload"),n.debug.add("log","preload.info",this.slideIndex)),this.preloadedImagesCount=0;for(var e=this,t=function(){++e.preloadedImagesCount==e.preImages.length&&(n.debugMode&&n.debug.groupEnd(),e.onComplete())},i=function(){n.debugMode&&(s=this.src.substring(this.src.lastIndexOf("/")+1,this.src.length),n.debug.add("log","preload.success",s)),this.originalLayer[this.useAttr?"attr":"data"]("preloadedWidth",this.width),this.originalLayer[this.useAttr?"attr":"data"]("preloadedHeight",this.height),t()},a=function(){n.debugMode&&(s=this.src.substring(this.src.lastIndexOf("/")+1,this.src.length),n.debug.add("warn","preload.fail",s)),t()},r=0,s,o;r<this.preImages.length;r++)o=new Image,o.addEventListener("error",a,!1),o.addEventListener("load",i,!1),o.src=this.preImages[r][0],o.originalLayer=this.preImages[r][1],o.useAttr=!!this.preImages[r][2]},onComplete:function(){var e=this;this.onCompleteCallback?(n.layers.wrap(this.slideIndex),function t(){if(0!==n.slides[e.slideIndex].$layers.length)n.timeouts.waitForWrap=setTimeout(t,100);else{delete n.timeouts.waitForWrap,n.functions.setStates(n.transitions.layers.parallax,{ready:!0}),a(".ls-thumbnail-wrapper, .ls-nav-next, .ls-nav-prev, .ls-bottom-nav-wrapper").css({visibility:"visible"}),n.slides[e.slideIndex].wrapped=!0;var i=window._layerSlider.globals.youTubeIsReady||!n.layers.get("next,in,youtube,bgvideo").length,r=window._layerSlider.globals.vimeoIsReady||!n.layers.get("next,in,vimeo,bgvideo").length,s=function(){n.gui.loadingIndicator.hide(),n.slider.shouldResize?(n.resize.setLayers(n.layers.get("next, bg")),n.resize.layers({callback:e.onCompleteCallback})):e.onCompleteCallback()};i&&r?s():n.intervals.waitForJSApisLoaded=setInterval(function(){(i||window._layerSlider.globals.youTubeIsReady)&&(r||window._layerSlider.globals.vimeoIsReady)&&(clearInterval(n.intervals.waitForJSApisLoaded),delete n.intervals.waitForJSApisLoaded,s())},50)}}()):n.layers.wrap(this.slideIndex,!0),n.functions.setStates(n.slider,{preloadingImages:!1})}},n.resize={setLayers:function(e){this.$responsiveLayers=e.add(n.layers.get("active")),n.slides.next.data.$backgroundVideo.length&&(this.$responsiveLayers=this.$responsiveLayers.add(n.slides.next.data.$backgroundVideo))},all:function(t={}){return n.plugins.callFunctions("beforeResize"),(!n.slider.state.isHidden||n.slider.isPopup)&&!!document.body.contains(e)&&void(n.api.hasEvent("sliderWillResize")&&n.api.triggerEvent("sliderWillResize",n.api.eventData()),this.slider(!!t.forceToGetParentWidth),n.o.performanceMode&&this.performance(),n.slider.isScene&&!n.slider.$spacingWrapper.is("[data-disabled-scene]")&&this.scene(),this.navigation(),this.layers(),this.yourLogo(),this.shadow(),this.timers(),n.slides.indexesCreated&&(n.o.allowRestartOnResize&&n.transitions.layers.timeline.shouldRestart||n.transitions.layers.timeline.forceRestart)&&(n.transitions.layers.timeline.forceRestart=!1,n.transitions.layers.timeline.create(!0),n.slider.isScrollScene&&n.timelines._layers&&n.transitions.scrollscene.animate()),n.api.hasEvent("sliderDidResize")&&n.api.triggerEvent("sliderDidResize",n.api.eventData()),n.plugins.callFunctions("afterResize"))},viewport:function(){o.scrollTop(Math.round(n.slider.offset.top)-(l.viewport.height-n.slider.height)/2)},slider:function(r){if(!document.body.contains(e))return!1;l.viewport.width||o.trigger("resize.lsGlobal"),n.o.fixFloatedContainers&&t.css("display","none");var s=n.slider.$parentWithNumericWidthValue&&0<n.slider.$parentWithNumericWidthValue.width()&&!r?n.slider.$parentWithNumericWidthValue:n.functions.getSliderClosestParentElementWithNumericValueOfProperty("width"),d=n.slider.initial,i=n.slider.parentWithNumericWidthValuePercent?s.width()/100*n.slider.parentWithNumericWidthValuePercent:s.width(),p=d.type,u=0===d.maxWidth?i:d.maxWidth,c="auto"===d.marginLeft?0:d.marginLeft,m="auto"===d.marginRight?0:d.marginRight,h,g;if(n.o.fixFloatedContainers&&t.css("display","block"),-1===u.indexOf("%")?-1!==u.indexOf("vw")&&(u=l.viewport.width/100*parseInt(u)):u=i/100*parseInt(u),n.slider.state.inFullscreen?t[0].style.maxWidth="":0!==d.maxWidth&&(t[0].style.maxWidth=u),i-=c+m,i>u&&0<=u&&(i=u),n.o.fitScreenWidth&&("fullwidth"===p||"fullsize"===p&&"fitheight"!==n.o.fullSizeMode&&"fitwidth"!==n.o.fullSizeMode)){var y=s.offset().left,f=parseInt(s.css("padding-left"))||0,x=parseInt(s.css("border-left-width"))||0;t[0].style.maxWidth="100vw",t[0].style.marginLeft=-(y+f+x)+"px",i=l.viewport.width}switch(i-=d.skinWidth,l.getScreenSize(),n.slider.state.inFullscreen&&(i=l.screen.width),p){case"responsive":0<n.o.maxRatio&&(i=Math.min(d.width*n.o.maxRatio,i)),n.slider.state.inFullscreen?(this.ratio=l.screen.ratio>d.ratio?l.screen.height/d.height:l.screen.width/d.width,i=Math.round(d.width*this.ratio),h=Math.round(d.height*this.ratio)):(this.ratio=i/d.width,h=Math.round(d.height*this.ratio));break;case"fullwidth":i<n.o.responsiveUnder?(this.ratio=i/n.o.responsiveUnder,h=Math.round(d.height*this.ratio)):n.slider.state.inFullscreen?l.screen.ratio>d.layersWidth/d.height?(this.ratio=l.screen.height/d.height,h=l.screen.height):(this.ratio=l.screen.width/d.layersWidth,h=d.height*this.ratio):(this.ratio=1,h=d.height);break;case"fullsize":switch(n.o.fullSizeMode.toLowerCase()){case"normal":h=l.viewport.height-d.skinHeight;break;case"hero":var v=n.slider.isScene?n.slider.$spacingWrapper:t,S=Math.max(v.offset().top,0),b=a(n.o.calculateOffsetFrom).length?a(n.o.calculateOffsetFrom).height()+a(n.o.calculateOffsetFrom)[0].getBoundingClientRect().top:0;b&&t.css("top",b),n.slider.heroOffset=d.skinHeight+(b||S),h=l.viewport.height-n.slider.heroOffset,0>=h&&(h=l.viewport.height-d.skinHeight);break;case"fitheight":i=s.width()-d.skinWidth,h=s.height()-d.skinHeight;break;case"fitwidth":i=s.width()-d.skinWidth,h=l.viewport.height-d.skinHeight;}g=i/h,this.ratio=g<d.ratio?i/d.layersWidth:h/d.layersHeight;break;case"fixed":case"fixedsize":this.ratio=1,i=d.width,h=d.height,n.o.maxRatio=1,e.style.maxWidth="none";}this.ratio=n.o.maxRatio&&0<n.o.maxRatio&&this.ratio>n.o.maxRatio?n.o.maxRatio:this.ratio,e.style.width=i+"px",e.style.height=h+"px",n.slider.width=i,n.slider.height=h,n.slider.$layersWrapper.css({"--sw":n.slider.width+"px","--sh":n.slider.height+"px"}),l.isMobile?768<=l.viewport.width||l.viewport.width>l.viewport.height?t.removeClass("ls-device-is-phone").addClass("ls-device-is-tablet"):t.removeClass("ls-device-is-tablet").addClass("ls-device-is-phone"):t.removeClass("ls-device-is-phone ls-device-is-tablet").addClass("ls-device-is-desktop");var w,T;n.o.marginTop&&(-1!=n.o.marginTop.indexOf("sh")||-1!=n.o.marginTop.indexOf("%")?w=n.slider.height/100*parseInt(n.o.marginTop):w=n.o.marginTop),n.o.marginBottom&&(-1!=n.o.marginBottom.indexOf("sh")||-1!=n.o.marginBottom.indexOf("%")?T=n.slider.height/100*parseInt(n.o.marginBottom):T=n.o.marginBottom),n.slider.$spacingWrapper.css({marginTop:w,marginBottom:T})},performance:function(){var e=parseInt(n.o.performanceModeThreshold);n.performance.threshold=-1!==n.o.performanceModeThreshold.indexOf("sh")||-1!==n.o.performanceModeThreshold.indexOf("%")?n.slider.height*(e/100):-1===n.o.performanceModeThreshold.indexOf("vh")?-1===n.o.performanceModeThreshold.indexOf("px")?n.slider.height*e:e:l.viewport.height*(e/100),n.performance.threshold=Math.max(parseInt(n.performance.threshold),0)},scene:function(e){var i;if(n.slider.isScrollScene){var i=n.slider.$spacingWrapper[0].style.getPropertyValue("--ls-duration"),a=n.slider.$spacingWrapper.attr("data-scene-pre-duration"),r=n.slider.$spacingWrapper.attr("data-scene-duration");e&&a&&r&&a!==r&&(i=null),!1==!!i&&n.timelines._layers&&(i=100*n.timelines._layers.duration()/(n.o.sceneSpeed/100),n.slider.$spacingWrapper.css({"--ls-duration":i+"vh"}),"undefined"!=typeof n.o.stickDuration&&!isNaN(n.o.stickDuration)&&n.slider.$spacingWrapper.css({"--ls-stickduration":100*parseInt(n.o.stickDuration)+"vh"}),("responsive"===n.o.type||"fullwidth"===n.o.type)&&n.slider.$spacingWrapper.css({"--ls-ratio":n.slider.initial.width/n.slider.initial.height}),"fixedsize"===n.o.type&&n.slider.$spacingWrapper.css({"--ls-height":n.slider.initial.height}),n.slider.$spacingWrapper.addClass("ls-playfrom-"+n.o.playFrom+" ls-stickto-"+n.o.stickTo+" ls-layout-"+n.o.type)),n.transitions.scrollscene.maxProgressInPixels=parseFloat(parseInt(i)*(l.viewport.height/100)),(n.slider.$spacingWrapper.is(".ls-layout-fullwidth")||n.slider.$spacingWrapper.is(".ls-layout-responsive")&&n.o.maxRatio)&&n.slider.$spacingWrapper.css("--ls-ratio",l.viewport.width/n.slider.height)}else n.slider.isSticky&&(-1!==n.o.sceneHeight.indexOf("sh")||-1!==n.o.sceneHeight.indexOf("%")?(i=n.slider.height*(parseInt(n.o.sceneHeight)/100),i=Math.round(Math.max(n.slider.height,i)),i+="px"):-1===n.o.sceneHeight.indexOf("px")&&-1===n.o.sceneHeight.indexOf("vh")?(i=n.slider.height*(n.o.sceneHeight||2),i=Math.round(Math.max(n.slider.height,i)),i+="px"):i=n.o.sceneHeight,n.slider.$spacingWrapper.css({height:i}));t.css({top:n.slider.stickLimit})},borderRadius:function(e,t){a.isNumeric(e)&&(e=e.toString());var i="";return a.each(e.split(" "),function(e,a){i+=-1==a.indexOf("%")&&-1==a.indexOf("em")?Math.round(parseInt(a)*t)+"px ":a+" "}),a.trim(i)},shadows:function(e,t){for(var i=e.split(" "),a=0;a<i.length;a++)-1!==i[a].indexOf("px")&&(i[a]=Math.ceil(parseInt(i[a])*t)+"px");return e=i.join(" ").trim(),e},convertSingleValue:function(e,t){return-1==e.indexOf("em")?Math.round(parseInt(e)*t)+"px ":e},calculateRatio:function(e,t){return t=Math.max(t,e.settings.minresponsiveratio||0),t=Math.min(t,e.settings.maxresponsiveratio||1/0),e.settings.calculatedratio=t,t},layers:function(e={}){if(n.slider.hasPinnedLayers&&(n.slider.$layersWrapper.css({clip:"rect(0px "+n.slider.width+"px "+n.slider.height+"px 0px)"}),n.slider.$layersWrapper&&n.slider.$layersWrapper.is(".ls-layers-clip")&&n.slider.$layersWrapper.removeClass("ls-layers-clip")),n.o.animateFirstSlide&&n.slideshow.firstStart&&"inside"!==n.slider.position.toViewport)return n.functions.setStates(n.slider,{readyForStart:!0}),void(e.callback&&(n.api.resumeCallback=e.callback));if(e.singleLayer||this.$responsiveLayers){n.debugMode&&n.debug.add("group","resize");for(var t=this,s=e.singleLayer||this.$responsiveLayers,d=n.slider.initial,i=n.slider.width,p=n.slider.height,u=i/p,c=[],m=[],h=[],g=[],y=0,f=0,x=window.LS_previewZoom||1,v=0,S=s.length,b,w,T,C,O;v<S;v++){var k=s[v],P=a(k),L=P.data(n.defaults.init.dataKey),I=!!L.is.insideLayerGroup&&P.data("$layerGroup"),_=!!L.is.insideLayerGroup&&I.data(n.defaults.init.dataKey),$=e.original?a.extend(!0,{},L.original,e.original):L.original,o=t.calculateRatio(L,t.ratio),B=L.elements.$_innerWrappers;if(n.plugins.callFunctions("beforeResizeSingleLayer",{$layer:P,layerData:L}),$.width||($.percentWidth=0),$.height||($.percentHeight=0),P.is("img, picture")&&("auto"===$.width||"auto"===$.height)){var B=L.elements.$_innerWrappers;B.addClass("ls-force-display-block ls-force-visibility-hidden"),"auto"===$.width&&($.width=P.width()),"auto"===$.height&&($.height=P.height()),B.removeClass("ls-force-display-block ls-force-visibility-hidden")}b="responsive"===d.type&&-1!==n.o.maxRatio?d.width:d.layersWidth,w="responsive"===d.type&&-1!==n.o.maxRatio?d.height:d.layersHeight,T=b,C=w,O=L.settings.usesliderratio?t.ratio:o,"fullsize"===d.type||"fullwidth"===d.type||"responsive"===d.type?(y=0<b?(i-b*O)/2:0,f=0<w?(p-w*O)/2:0):(y=0>y?0:y,f=0>f?0:f),("0%"===$.left||"100%"===$.left)&&(y=0>y?0:y),("0%"===$.top||"100%"===$.top)&&(f=0>f?0:f);var W="fixed"==L.settings.position||"fixedx"==L.settings.position,D="fixed"==L.settings.position||"fixedy"==L.settings.position,F=i,A=p,N,z,M;L.is.insideLayerGroup?(W=!1,D=!1,V=0,R=0,F=_.responsive.width,A=_.responsive.height,b=F,w=A):(b=T,w=C),L.is.pinned&&(n.slider.get.offset(),("responsive"===d.type||"fixedsize"===d.type||"fullsize"===d.type&&("fitheight"===n.o.fullSizeMode||!1===n.o.fitScreenWidth))&&(W?(b=F=l.viewport.width,y=0):(F=n.slider.width,y=n.slider.offset.left,b=d.width)),D?(w=A=l.viewport.height,f=0):(A=n.slider.height,f=(l.viewport.height-n.slider.height)/2||0,w=d.height));var V=W?0:y,R=D?0:f,E={width:W&&0!==$.percentWidth?F/100*$.percentWidth:parseInt($.width)*o,height:D&&0!==$.percentHeight?A/100*$.percentHeight:parseInt($.height)*o,paddingLeft:this.convertSingleValue($.paddingLeft,o),paddingTop:this.convertSingleValue($.paddingTop,o),paddingRight:this.convertSingleValue($.paddingRight,o),paddingBottom:this.convertSingleValue($.paddingBottom,o),borderLeftWidth:this.convertSingleValue($.borderLeftWidth,o),borderTopWidth:this.convertSingleValue($.borderTopWidth,o),borderRightWidth:this.convertSingleValue($.borderRightWidth,o),borderBottomWidth:this.convertSingleValue($.borderBottomWidth,o),borderRadius:this.borderRadius($.borderRadius||0,o),boxShadow:this.shadows($.boxShadow,o),textShadow:this.shadows($.textShadow,o)},r={marginLeft:this.convertSingleValue($.marginLeft,o),marginTop:this.convertSingleValue($.marginTop,o),marginRight:this.convertSingleValue($.marginRight,o),marginBottom:this.convertSingleValue($.marginBottom,o)},H={},Y={borderRadius:E.borderRadius};if($.minWidth&&(E.minWidth=$.percentMinWidth?F/100*$.percentMinWidth:$.minWidth,E.width=Math.max(E.width,E.minWidth)),$.minHeight&&(E.minHeight=$.percentMinHeight?A/100*$.percentMinHeight:$.minHeight,E.height=Math.max(E.height,E.minHeight)),$.maxWidth&&(E.maxWidth=$.percentMaxWidth?F/100*$.percentMaxWidth:$.maxWidth,E.width=Math.min(E.width,E.maxWidth)),$.maxHeight&&(E.maxHeight=$.percentMaxHeight?A/100*$.percentMaxHeight:$.maxHeight,E.height=Math.min(E.height,E.maxHeight)),$.minWidth&&$.maxWidth&&E.minWidth>E.maxWidth&&(E.width=E.minWidth),$.minHeight&&$.maxHeight&&E.minHeight>E.maxHeight&&(E.height=E.minHeight),L.is.imageLayer&&(E.minWidth||E.minHeight||E.maxWidth||E.maxHeight)){B.addClass("ls-force-display-block ls-force-visibility-hidden");var X={minHeight:E.minHeight?E.minHeight:0,minWidth:E.minWidth?E.minWidth:0,maxHeight:E.maxHeight?E.maxHeight:"none",maxWidth:E.maxWidth?E.maxWidth:"none"};X.width=L.original.autoWidth?E.minWidth&&!E.minHeight||E.maxWidth&&!E.maxHeight?E.width:"auto":E.width,X.height=L.original.autoHeight?!E.minWidth&&E.minHeight||!E.maxWidth&&E.maxHeight?E.height:"auto":E.height,P.css(X),E.width=P.width(),E.height=P.height(),delete E.minWidth,delete E.minHeight,delete E.maxWidth,delete E.maxHeight,B.removeClass("ls-force-display-block ls-force-visibility-hidden")}if((W||D)&&($.percentHeight||$.percentWidth)&&L.is.imageLayer&&($.percentHeight&&!$.percentWidth&&(E.width=$.width*(E.height/$.height)),$.percentWidth&&!$.percentHeight&&(E.height=$.height*(E.width/$.width))),("number"==typeof $.width&&0>$.width||"auto"==$.width||""==$.sWidth)&&n.debugMode&&n.debug.add("warn","resize.width",[v+1,$.width]),("number"==typeof $.height&&0>$.height||"auto"==$.height||""==$.sHeight)&&n.debugMode&&n.debug.add("warn","resize.height",[v+1,$.height]),E.fontSize=$.fontSize*o,L.is.textLayer&&(l.isMobile&&E.fontSize<L.styleSettings.minmobilefontsize?E.fontSize=L.styleSettings.minmobilefontsize:E.fontSize<L.styleSettings.minfontsize&&(E.fontSize=L.styleSettings.minfontsize),M=E.fontSize/$.fontSize,E.fontSize+="px",-1!==$.lineHeight.indexOf("px")&&(E.lineHeight=parseFloat($.lineHeight)*M+"px"),-1!==$.letterSpacing.indexOf("px")&&(E.letterSpacing=parseFloat($.letterSpacing)*M+"px"),-1!==$.textStrokeWidth.indexOf("px")&&(E.textStrokeWidth=parseFloat($.textStrokeWidth)*M+"px"),""==$.sWidth&&(E.width="auto",L.elements.$innerWrapper.addClass("ls-force-width-auto"),"nowrap"!==P.css("white-space")&&(L.elements.$_innerWrappers.addClass("ls-force-left-0"),L.elements.$_outerWrappers.addClass("ls-force-full-size"))),""==$.sHeight&&(E.height="auto",L.elements.$innerWrapper.addClass("ls-force-height-auto")),(""==$.sWidth||""==$.sHeight)&&P.css(E)),!L.is.slideBackground&&!L.is.backgroundVideo){if(L.mediaProperties&&("youtube"===L.mediaProperties.type||"vimeo"===L.mediaProperties.type)){var K=E.width/E.height,G={width:E.width,height:E.height};$.ratio<K?(G.height=E.width/$.ratio,G.marginTop=(E.height-G.height)/2):(G.width=E.height*$.ratio,G.marginLeft=(E.width-G.width)/2),L.mediaProperties.$media.css(G)}if(L.elements.$_innerWrappers.addClass("ls-force-display-block ls-force-no-transform"),P.addClass("ls-force-no-transform"),L.is.insideLayerGroup){var I=P.data("$layerGroup"),_=I.data(n.defaults.init.dataKey);_.elements.$_innerWrappers.addClass("ls-force-display-block ls-force-no-transform"),I.addClass("ls-force-no-transform")}E.outerWidth="auto"==E.width?Math.ceil(P.outerWidth()):E.width+n.layers.toNum(E.paddingLeft,E.fontSize)+n.layers.toNum(E.paddingRight,E.fontSize)+n.layers.toNum(E.borderLeftWidth,E.fontSize)+n.layers.toNum(E.borderRightWidth,E.fontSize),E.outerHeight="auto"==E.height?Math.ceil(P.outerHeight()):E.height+n.layers.toNum(E.paddingTop,E.fontSize)+n.layers.toNum(E.paddingBottom,E.fontSize)+n.layers.toNum(E.borderTopWidth,E.fontSize)+n.layers.toNum(E.borderBottomWidth,E.fontSize),L.elements.$_allWrappers.removeClass("ls-force-display-block ls-force-no-transform ls-force-width-auto ls-force-height-auto ls-force-left-0 ls-force-full-size"),P.removeClass("ls-force-no-transform"),L.is.insideLayerGroup&&(_.elements.$_allWrappers.removeClass("ls-force-display-block ls-force-no-transform ls-force-width-auto ls-force-height-auto ls-force-left-0 ls-force-full-size"),I.removeClass("ls-force-no-transform")),r.width=H.width=E.outerWidth,r.height=H.height=E.outerHeight,E.left=-1==$.left.indexOf("%")?V+parseFloat($.left)*o:"100%"===$.left?0===V?F/100*parseFloat($.left)-E.outerWidth:V+b*O/100*parseFloat($.left)-E.outerWidth:"0%"===$.left?0===V?0:V:0===V?F/100*parseFloat($.left)-E.outerWidth/2:V+b*O/100*parseFloat($.left)-E.outerWidth/2,r.left=E.left,E.top=-1==$.top.indexOf("%")?R+parseFloat($.top)*o:"100%"===$.top?0===R?A/100*parseFloat($.top)-E.outerHeight:R+w*O/100*parseFloat($.top)-E.outerHeight:"0%"===$.top?0===R?0:R+0:0===R?A/100*parseFloat($.top)-E.outerHeight/2:R+w*O/100*parseFloat($.top)-E.outerHeight/2,r.top=E.top}else if(L.is.slideBackground){var U=n.slides[L.is.onSlide].data.backgroundSize;switch(N="undefined"!=typeof U&&"inherit"!==U?U:n.o.slideBGSize,N=N.replace("100% 100%","stretch"),N){case"auto":break;case"cover":$.ratio<u?(E.width=i,E.height=E.width/$.ratio):(E.height=p,E.width=E.height*$.ratio);break;case"contain":$.ratio<u?(E.height=p,E.width=E.height*$.ratio):(E.width=i,E.height=E.width/$.ratio);break;case"stretch":E.width=i,E.height=p;break;default:}E.width=Math.round(E.width),E.height=Math.round(E.height);var j=n.slides[L.is.onSlide].data.backgroundPosition;switch(z="undefined"==typeof j?n.o.slideBGPosition.split(" "):j.split(" "),z[0]){case"left":E.x=0;break;case"center":E.x=(n.slider.width-E.width)/2;break;case"right":E.x=n.slider.width-E.width;break;default:E.x=-1===z[0].indexOf("%")?parseInt(z[0]):(n.slider.width-E.width)/100*parseInt(z[0]);}if("undefined"!=typeof z[1])switch(z[1]){case"top":E.y=0;break;case"center":E.y=(n.slider.height-E.height)/2;break;case"bottom":E.y=n.slider.height-E.height;break;default:E.y=-1===z[1].indexOf("%")?parseInt(z[1]):(n.slider.height-E.height)/100*parseInt(z[1]);}E.transform="translateX("+E.x+"px) translateY("+E.y+"px)",E["-ms-transform"]="translateX("+E.x+"px) translateY("+E.y+"px)",E["-webkit-transform"]="translateX("+E.x+"px) translateY("+E.y+"px)"}else L.is.backgroundVideo&&($.ratio<u?(E.width=i,E.height=E.width/$.ratio):(E.height=p,E.width=E.height*$.ratio),E.x=(n.slider.width-E.width)/2,E.y=(n.slider.height-E.height)/2,E.width=Math.round(E.width),E.height=Math.round(E.height),E.transform="translateX("+E.x+"px) translateY("+E.y+"px)",E["-ms-transform"]="translateX("+E.x+"px) translateY("+E.y+"px)",E["-webkit-transform"]="translateX("+E.x+"px) translateY("+E.y+"px)");if(L.textIn.$nodesForBackgroundClip&&L.textIn.$nodesForBackgroundClip.length){var q=L.elements.$outerStyleWrapper.add(L.elements.$outerStyleWrapper.find(".ls-wrapper"));q.addClass("ls-force-visibility-hidden ls-force-display-block"),L.elements.$_innerWrappers.addClass("ls-force-no-transform");var Z=!1;"auto"===k.style.width&&(k.style.width=Math.ceil(L.original.width*(x*o))+"px",Z=!0),L.textIn.$nodesForBackgroundClip.each(function(e,t){var i=a(t),s=i.children(".ls-textnode-bgclip-wrap"),o=s.children(".ls-textnode"),n=i.children(".ls-textnode-dummy"),l=i.position();s.css({width:Math.ceil(r.width),height:Math.ceil(r.height),transform:"translate("+-l.left/x+"px,"+-l.top/x+"px)"}),o.css({marginLeft:l.left/x,marginTop:l.top/x})}),Z&&(k.style.width="auto",Z=!1),L.elements.$_innerWrappers.removeClass("ls-force-no-transform"),q.removeClass("ls-force-visibility-hidden ls-force-display-block")}E.fontSize=parseFloat(E.fontSize)/l.automaticFontSizeRatio+"px",n.plugins.callFunctions("beforeResizeSingleLayerSmartBG",{$layer:P,layerData:L,layerStyle:E,wrapperStyle:r}),L.responsive=E,c[v]=E,L.is.smartBG&&(E.left=Math.round(E.left),E.top=Math.round(E.top),E.width=Math.ceil(E.width),E.height=Math.ceil(E.height),c[v]["--sw"]=(W?n.slider.width:d.width*o)+"px",c[v]["--sh"]=(D?n.slider.height:d.height*o)+"px",c[v]["--x"]=-E.left-parseFloat(E.borderLeftWidth)-parseFloat(r.marginLeft)+(W?0:y)+"px",c[v]["--y"]=-E.top-parseFloat(E.borderTopWidth)-parseFloat(r.marginTop)+(D?0:f)+"px"),L.is.slideBackground||L.is.backgroundVideo||(L.settings.wrapperData.responsive=r,m[v]=r,h[v]=H,g[v]=Y)}if(e.singleLayer)return c;for(var Q=0,J=c.length;Q<J;Q++){var ee=a(s[Q]),te=ee.data(n.defaults.init.dataKey);n.plugins.callFunctions("beforeResizeSingleLayerEnd",{$layer:ee,layerData:te,layerStyle:c[Q],wrapperStyle:m[Q]}),ee.css(c[Q]),te.is.slideBackground||te.is.backgroundVideo?(te.is.slideBackground||te.is.backgroundVideo)&&(te.elements.$bgOuterWrapper.css({width:n.slider.width,height:n.slider.height}),te.elements.$outerWrapper.css({width:n.slider.width,height:n.slider.height})):(ee.find(".split-item").css(g[Q]),t.wrappers(ee,te,m[Q],h[Q])),n.plugins.callFunctions("afterResizeSingleLayer",{$layer:ee,layerData:te})}e.callback&&e.callback(),n.debugMode&&n.debug.groupEnd("resize")}},wrappers:function(e,t,i,a){i&&t.elements.$outerStyleWrapper.css(i),a&&t.loop.enabled&&t.elements.$loopWrapper.css(a),s.TweenMax.set(t.elements.$wrapper[0],{autoCSS:!1,css:{transformPerspective:t.transformPerspective.layer*n.resize.ratio}}),t.loop.enabled&&s.TweenMax.set(t.elements.$loopWrapper[0],{autoCSS:!1,css:{transformPerspective:t.transformPerspective.loop*n.resize.ratio}}),t.hover.enabled&&s.TweenMax.set(e[0],{autoCSS:!1,css:{transformPerspective:t.transformPerspective.hover*n.resize.ratio}}),t.textIn.nodes&&s.TweenMax.set(t.textIn.nodes,{autoCSS:!1,css:{transformPerspective:t.transformPerspective.text*n.resize.ratio}}),t.textOut.nodes&&s.TweenMax.set(t.textOut.nodes,{autoCSS:!1,css:{transformPerspective:t.transformPerspective.text*n.resize.ratio}}),t.parallax.enabled&&s.TweenMax.set(t.elements.$parallaxWrapper[0],{autoCSS:!1,css:{transformPerspective:t.transformPerspective.parallax*n.resize.ratio}}),t.scroll.enabled&&s.TweenMax.set(t.elements.$scrollTransformWrapper[0],{autoCSS:!1,css:{transformPerspective:t.transformPerspective.scroll*n.resize.ratio}})},performTransformOperations:function(e,t){var i,r,s;for(var o in t)"string"==typeof t[o]&&-1!==t[o].indexOf("=")&&(i=t[o].split("="),r=i[0].trim()||!1,s=parseFloat(i[1].trim())||!1,r&&s&&a.isNumeric(s)?"+"===r?t[o]=e[o]+s:"-"===r?t[o]=e[o]-s:"*"===r?t[o]=e[o]*s:"/"===r?t[o]=e[o]/s:void 0:t[o]=e[o])},mirrorTransitionProperties:function(e){var t=function(e){var t=e;return"left"===e?t="right":"right"===e?t="left":"top"===e?t="bottom":"bottom"===e?t="top":void 0,-1!==e.indexOf("lw")||-1!==e.indexOf("lh")||-1!==e.indexOf("sw")||-1!==e.indexOf("sh")?"-"===e.charAt(0)?t=e.substring(1):t="-"+e:-1===e.indexOf("%")?a.isNumeric(e)&&0!==e&&"0"!==e&&(t=-1*e):t=-1*parseFloat(e.split("%")[0])+"%",t},i=function(i){var a,r,s;for(var o in i)if(s=o.toLowerCase(),-1!==e.mirrorProperties.indexOf(s)){if(a=i[o],"object"==typeof a)for(var n in r=[],a)r.push(t(a[n]));else r=t(a);i[o]=r}};i(e.transitionProperties),e.transitionPropertiesShouldBeConverted&&i(e.transitionPropertiesShouldBeConverted)},transformProperties:function(e,t,i,a,r,s,o){if("object"==typeof a.x){for(var l=[],d=0;d<a.x.length;d++)l[d]="string"==typeof a.x[d]?this.getXY(e,t,a.x[d],"Width"):a.x[d]*t.settings.calculatedratio;i.cycle.x=l}else"string"==typeof a.x?i.x=-1!==a.x.indexOf("random")||a.x.charAt(0)===n.defaults.init.openingBracket?n.functions.convert.randomProperties(a.x,"x",o,e,t):this.getXY(e,t,a.x,"Width"):"undefined"!=typeof a.x&&(i.x=a.x*t.settings.calculatedratio);if("object"==typeof a.y){for(var p=[],u=0;u<a.y.length;u++)p[u]="string"==typeof a.y[u]?this.getXY(e,t,a.y[u],"Height"):a.y[u]*t.settings.calculatedratio;i.cycle.y=p}else"string"==typeof a.y?i.y=-1!==a.y.indexOf("random")||a.y.charAt(0)===n.defaults.init.openingBracket?n.functions.convert.randomProperties(a.y,"y",o,e,t):this.getXY(e,t,a.y,"Height"):"undefined"!=typeof a.y&&(i.y=a.y*t.settings.calculatedratio);if(r&&(i=r),"object"==typeof a.transformOrigin||s){var c=[];if(s){var h=e.data(n.defaults.init.dataKey).elements.$outerStyleWrapper.add(e.data(n.defaults.init.dataKey).elements.$outerStyleWrapper.find(".ls-wrapper"));h.addClass("ls-force-visibility-hidden ls-force-display-block ls-fix-textnodes"),c=n.functions.convert.nodesTransformOrigin(a.transformOrigin,s,t,e.data(n.defaults.init.dataKey).elements.$outerStyleWrapper),h.removeClass("ls-force-visibility-hidden ls-force-display-block ls-fix-textnodes")}else for(var g=0;g<a.transformOrigin.length;g++)c[g]=n.functions.convert.transformOrigin(a.transformOrigin[g],e,t,e.data(n.defaults.init.dataKey).elements.$outerStyleWrapper);i.cycle.transformOrigin=c}else"string"==typeof a.transformOrigin&&(i.transformOrigin=n.functions.convert.transformOrigin(a.transformOrigin,e,t,e.data(n.defaults.init.dataKey).elements.$outerStyleWrapper))},styleProperties:function(e,t,i,a){a.width&&-1!==a.width.indexOf("%")&&(a.percentWidth=parseInt(a.width),a.width=parseInt(n.layers.getStyle(a.width,n.slider.initial.percW))),a.height&&-1!==a.height.indexOf("%")&&(a.percentHeight=parseInt(a.height),a.height=parseInt(n.layers.getStyle(a.height,n.slider.initial.percH)));var r=n.resize.layers({singleLayer:e,original:a})[0];for(var s in a)-1===s.indexOf("percent")&&r.hasOwnProperty(s)&&-1===r[s].indexOf("NaN")&&(i[s]=r[s])},getXY:function(e,t,i,a,r){var s=0,o=n.slider.width||n.slider.initial.width,l=n.slider.height||n.slider.initial.height,d=t.original,p=t.responsive,u=t.settings.wrapperData&&t.settings.wrapperData.responsive?t.settings.wrapperData.responsive:{marginLeft:this.convertSingleValue(d.marginLeft,this.ratio),marginTop:this.convertSingleValue(d.marginTop,this.ratio),marginRight:this.convertSingleValue(d.marginRight,this.ratio),marginBottom:this.convertSingleValue(d.marginBottom,this.ratio)};return p.outerWidth||(p.outerWidth=Math.ceil(e.outerWidth())),p.outerHeight||(p.outerHeight=Math.ceil(e.outerHeight())),(d&&p&&u&&(s="left"===i?-1!=d.left.indexOf("%")&&parseInt(d.left)?"100%"===d.left?-p.left-p.outerWidth-parseInt(u.marginLeft):-parseFloat(d.left)/100*o-p.outerWidth/2-parseInt(u.marginLeft):-p.left-p.outerWidth-parseInt(u.marginLeft):"right"===i?-1!=d.left.indexOf("%")&&parseInt(d.left)?"100%"===d.left?o-p.left-parseInt(u.marginLeft):(1-parseFloat(d.left)/100)*o+p.outerWidth/2-parseInt(u.marginLeft):o-p.left-parseInt(u.marginLeft):"top"===i?-1!=d.top.indexOf("%")&&parseInt(d.top)?"100%"===d.top?-p.top-p.outerHeight-parseInt(u.marginTop):-parseFloat(d.top)/100*l-p.outerHeight/2-parseInt(u.marginTop):-p.top-p.outerHeight-parseInt(u.marginTop):"bottom"===i?-1!=d.top.indexOf("%")&&parseInt(d.top)?"100%"===d.top?l-p.top-parseInt(u.marginTop):(1-parseFloat(d.top)/100)*l+p.outerHeight/2-parseInt(u.marginTop):l-p.top-parseInt(u.marginTop):"width"===i?p.outerWidth:"-width"===i?-p.outerWidth:"height"===i?p.outerHeight:"-height"===i?-p.outerHeight:-1===i.indexOf("%")?-1===i.indexOf("lw")?-1===i.indexOf("lh")?-1===i.indexOf("sw")?-1===i.indexOf("sh")?parseFloat(i)*(r?1:t.settings.calculatedratio||this.calculateRatio(t,this.ratio)):parseFloat(i.split("sh")[0])/100*l:parseFloat(i.split("sw")[0])/100*o:p.outerHeight/100*parseFloat(i.split("lh")[0]):p.outerWidth/100*parseFloat(i.split("lw")[0]):p["outer"+a]/100*parseInt(i)),s)},navigation:function(){"always"==n.o.thumbnailNavigation&&n.gui.navigation.bottom.thumbnails.resize()},shadow:function(){n.gui.shadow.show&&n.gui.shadow.show(),n.gui.shadow.$element&&n.gui.shadow.resize()},yourLogo:function(){n.yourLogo.$element&&n.yourLogo.resize()},timers:function(){if(0<n.gui.timers.slidebar.$containerElement.length)for(var e=0,t=n.gui.timers.slidebar.$containerElement.length;e<t;e++)n.gui.timers.slidebar.containerElementWidth[e]=n.gui.timers.slidebar.$containerElement[e].width(),n.gui.timers.slidebar.elementWidth[e]=n.gui.timers.slidebar.$element[e].width()}},n.timelines={slides:[],to:function(e,t){if(!a.isArray(e))return void console.error("ls.timelines.to | invalid parameter:",e);var r,o,l,d,p,u,c,m,h,g,y;for(o=e[0],l=e[1]||"",p=2<e.length?e[2]:null,u=!!(3<e.length)&&!!e[3],c=!!(4<e.length)&&!!e[4],m=!!(5<e.length)&&!!e[5],h=!!(6<e.length)&&!!e[6],t?d=[e[1]]:"string"==typeof l?d=a.trim(l)?a.trim(l).split(/\s+/):[]:a.isArray(l)?d=l:(console.error("ls.timelines.to | no timelines found!"),d=[]),r=0;r<d.length;r++)if(t?y=d[r]:(g=d[r],y=o&&o[g]),y instanceof s.TimelineMax){if(y.pause(),h){var f=y.getChildren(!0,!1,!0);f.sort(function(e,t){return e.endTime()-t.endTime()});for(var x=0;x<f.length;x++)n.timelines.to([o,f[x],p,u,c,m],!0)}a.isNumeric(p)&&y.progress(p),u&&y.kill(),c&&y.clear().invalidate(),m&&o.hasOwnProperty(g)&&(o[g]=null)}},has:function(e){return e&&e instanceof s.TimelineMax}},n.transitions={firstSlide:!0,start:function(){return!!document.body.contains(e)&&(n.slider.isPopup&&n.slider.state.popupIsWaitingForDelay?(n.slider.state.waitingForPopupTimer=!0,!1):void(n.device.scroll.directionAtSlideTransitionStart=n.device.scroll.direction,"always"==n.o.thumbnailNavigation&&(n.gui.navigation.bottom.thumbnails.change(),!("ontouchstart"in window)&&n.gui.navigation.bottom.thumbnails.scroll()),this.layers.out.forced(),this.slide.init()))},slide:{$wrapper:a(),init:function(){var e,t;if(n.functions.setStates(n.slider,{animatingSlides:!0}),n.transitions.layers.parallax.reset(),n.slider.$layersWrapper.find(".ls-parallax[data-ls-parallax=\"active\"]").each(function(){a(this).find(".ls-layer").data(n.defaults.init.dataKey).settings.slideOut===n.slides.current.index&&a(this).attr("data-ls-parallax","inactive")}),n.transitions.curSlide=n.slides.current,n.transitions.nextSlide=n.slides.next,n.timelines._slideTransition=new s.TimelineMax({paused:!0,onComplete:function(){n.transitions.slide.onComplete()}}),(n.transitions.nextSlide.data&&n.transitions.nextSlide.data.transitionorigami||n.slider.isScrollScene)&&(n.o.animateFirstSlide=!1),n.transitions.firstSlide&&n.o.animateFirstSlide&&(n.transitions.curSlide=a.extend(!0,{},n.transitions.nextSlide),delete n.transitions.curSlide.data.$background,n.transitions.curSlide.data.backgroundColor="transparent"),n.transitions.firstSlide&&!n.o.animateFirstSlide){if("undefined"!=typeof n.transitions.nextSlide.data.$background){var i=n.transitions.nextSlide.data.$background.data(n.defaults.init.dataKey),r=i.kenBurns.zoom?i.kenBurns.from.scale:1,o=i.kenBurns.zoom?i.kenBurns.from.rotation:0,d=n.transitions.nextSlide.filter.from||"none";n.timelines._slideTransition.set(n.transitions.nextSlide.data.$background[0],{"-webkit-filter":d,filter:d},0),n.timelines._slideTransition.fromTo(n.transitions.nextSlide.data.$background.closest(".ls-bg-wrap")[0],n.o.sliderFadeInDuration,{autoCSS:!1,css:{scale:r,rotation:o,opacity:0,display:"block"}},{autoCSS:!1,css:{opacity:1}},0)}this.start(!0)}else"undefined"==typeof layerSliderTransitions&&"undefined"==typeof layerSliderCustomTransitions?(this.start(!0),n.debugMode&&n.debug.add("warn","slideTransition.noSlideTransition",n.transitions.nextSlide.index)):"undefined"==typeof n.transitions.curSlide.data.$background&&"undefined"==typeof n.transitions.nextSlide.data.$background&&"transparent"==n.transitions.curSlide.data.backgroundColor&&"transparent"==n.transitions.nextSlide.data.backgroundColor?this.start(!0):("x"===n.o.clipSlideTransition?l.$overflowWrapper.addClass("ls-overflowx-hidden"):"y"===n.o.clipSlideTransition?l.$overflowWrapper.addClass("ls-overflowy-hidden"):!0===n.o.clipSlideTransition&&l.$overflowWrapper.addClass("ls-overflow-hidden"),"undefined"!=typeof n.transitions.curSlide.data.$background&&(e=n.transitions.curSlide.data.$background.closest(".ls-bg-wrap")[0]._gsTransform,t=n.transitions.curSlide.data.$background.data(n.defaults.init.dataKey),t.responsive.filter=n.transitions.curSlide.data.$background[0].style.filter,t.responsive.kbRotation="undefined"==typeof e?" rotate(0deg)":" rotate("+e.rotation+"deg)",t.responsive.kbScale="undefined"==typeof e?" scale(1)":" scale("+e.scaleX+")"),n.transitions.slide.$wrapper=a("<div>").addClass("ls-slide-transition-wrapper").css({width:n.slider.width,height:n.slider.height}),this.select.slideTransitionType())},select:{slideTransitionType:function(){n.transitions.slide.normal.select.transitionType()}},start:function(e){var t=!!(n.slides.current.index&&n.slides.current.data.$backgroundVideo.length),i=!!(n.slides.next.index&&n.slides.next.data.$backgroundVideo.length),r;if(!n.slideshow.firstStart&&n.api.hasEvent("slideChangeDidStart")&&n.api.triggerEvent("slideChangeDidStart",n.api.eventData()),!e){var o;if("undefined"==typeof n.transitions.nextSlide.data.transitionDuration?"undefined"!=typeof n.o.slideTransitionDuration&&a.isNumeric(n.o.slideTransitionDuration)&&-1<n.o.slideTransitionDuration&&(o=n.o.slideTransitionDuration/1e3):o=n.transitions.nextSlide.data.transitionDuration,a.isNumeric(o)&&(0===o&&(o+=1e-5),n.timelines._slideTransition.duration(o)),n.transitions.firstSlide&&n.o.animateFirstSlide&&n.o.firstSlideDuration&&n.timelines._slideTransition.duration(n.o.firstSlideDuration/1e3),n.debugMode&&n.debug.options.transitionDuration&&n.timelines._slideTransition.duration(n.debug.options.transitionDuration),.25<n.transitions.layers.timeline.timeScaleModifier){var l=n.timelines._slideTransition.duration()/(.75+n.transitions.layers.timeline.timeScaleModifier);l=.5>l?.5:l,n.timelines._slideTransition.duration(l)}}var d=n.timelines._slideTransition.duration()/n.timelines._slideTransition.timeScale(),p=n.transitions.nextSlide.data.timeShift||("undefined"!=typeof n.o.slideTimeShift&&a.isNumeric(n.o.slideTimeShift)&&0>n.o.slideTimeShift?n.o.slideTimeShift/1e3:0),u;0<p?p=0:Math.abs(p)>d&&(p=-d),n.transitions.firstSlide&&n.o.animateFirstSlide&&!1!==n.o.firstSlideTimeShift&&0>=n.o.firstSlideTimeShift&&(p=n.o.firstSlideTimeShift/1e3),n.transitions.nextSlide.data.calculatedTimeShift=p,u=n.transitions.firstSlide&&!n.o.animateFirstSlide?n.o.sliderFadeInDuration+.01:(d+p)*n.timelines._slideTransition.timeScale(),(t||i)&&n.transitions.media.changeBackgroundVideo(n.transitions.firstSlide,!!(t&&i)),n.timelines._slideTransition.call(function(){!n.slideshow.firstStart&&n.api.hasEvent("slideChangeWillComplete")&&n.api.triggerEvent("slideChangeWillComplete",n.api.eventData()),n.slideshow.should.change||n.transitions.layers.timeline.prepare(),n.slides.set.slideIndexes(),n.o.hashChange&&(document.location.hash=n.slides[n.slides.current.index].data.deeplink||"_no-deeplink-found_"),n.slideshow.start(),!n.transitions.firstSlide&&n.slides.prev.index&&n.slides.prev.data.$backgroundVideo.length&&!n.slides.prev.data.$backgroundVideo.data(n.defaults.init.dataKey).mediaProperties.willBePaused&&(n.slides.prev.data.$backgroundVideo.trigger("stopBackgroundVideo"),n.slides.prev.data.$backgroundVideo.data(n.defaults.init.dataKey).elements.$bgWrapper.css({display:"none"})),!n.slideshow.should.change&&n.slides.next.data.$backgroundVideo.length&&n.slides.next.data.$backgroundVideo.data(n.defaults.init.dataKey).mediaProperties&&!n.slides.next.data.$backgroundVideo.data(n.defaults.init.dataKey).mediaProperties.isPreloaded&&(n.slides.next.data.$backgroundVideo.trigger("preloadBackgroundVideo"),n.slides.next.data.$backgroundVideo.data(n.defaults.init.dataKey).mediaProperties.isPreloaded=!0),n.transitions.firstSlide=!1},[],this,u),n.timelines._slideTransition.play(),n.slideshow.forceFastChange&&n.timelines._slideTransition.progress(1),clearTimeout(n.timeouts.applyBG),"undefined"!=typeof n.transitions.curSlide.data&&"undefined"!=typeof n.transitions.curSlide.data.$background&&(r=n.transitions.curSlide.data.$background.data(n.defaults.init.dataKey),n.timeouts.applyBG=setTimeout(function(){delete n.timeouts.applyBG,n.transitions.curSlide.data.$background.closest(".ls-bg-wrap").hide(),r.kenBurns.zoom&&s.TweenMax.set(n.transitions.curSlide.data.$background[0],{autoCSS:!1,css:r.kenBurns.from})},5))},onComplete:function(){var e;"undefined"!=typeof n.transitions.nextSlide.data.$background&&n.transitions.nextSlide.data.$background.closest(".ls-bg-wrap").show(),"transparent"===n.transitions.nextSlide.data.backgroundColor?n.slider.$slideBGColorWrapper.css("background-color","transparent"):n.slider.$slideBGColorWrapper.css("background-color",n.transitions.nextSlide.data.backgroundColor),n.o.leaveOverflow||l.$overflowWrapper.removeClass("ls-overflowx-hidden ls-overflowy-hidden ls-overflow-hidden"),this.$wrapper&&(this.$wrapper.html("").remove(),this.$wrapper=!1),n.gui.navigation.bottom.bullets.set.active(),0<n.o.cycles&&(n.slideshow.hasOwnProperty("cycleSlideIndex")?n.slideshow.cycles.check(n.transitions.nextSlide.index)&&(n.navigation.stop(),n.functions.setStates(n.slideshow,{pausedByLastCycle:!0}),n.o.forceCycles&&(n.slideshow.curCycle=1)):n.slideshow.cycles.set()),n.functions.setStates(n.slider,{animatingSlides:!1,changingSlides:!1}),!n.slideshow.firstStart&&n.api.hasEvent("slideChangeDidComplete")&&n.api.triggerEvent("slideChangeDidComplete",n.api.eventData()),n.slideshow.firstStart=!1,n.slideshow.forceFastChange=!1,n.slideshow.forceFastChangeCallback&&(n.slideshow.forceFastChangeCallback(),n.slideshow.forceFastChangeCallback=!1),n.slideshow.should.change?n.navigation.forceDirection?("undefined"!=typeof n.transitions.curSlide.data&&"undefined"!=typeof n.transitions.curSlide.data.$background&&(e=n.transitions.curSlide.data.$background.data(n.defaults.init.dataKey),n.transitions.curSlide.data.$background.closest(".ls-bg-wrap").hide(),e.kenBurns.zoom&&s.TweenMax.set(n.transitions.curSlide.data.$background[0],{autoCSS:!1,css:e.kenBurns.from})),n.slideshow.changeTo(n.slideshow.get.slideInSequence(n.navigation.forceDirection),!0),n.navigation.forceDirection=!1):n.slideshow.forceSlideChangeTo?n.slideshow.changeTo(n.slideshow.forceSlideChangeTo,!0,!0):n.preload.imagesOfSlide(n.slides.next.index):n.preload.imagesOfSlide(n.slides.next.index)},normal:{select:{transitionType:function(){if(n.o.slideTransition)return void n.transitions.slide.normal.setTransition(n.o.slideTransition.type,n.o.slideTransition.obj);var e=!!n.transitions.nextSlide.data.transition2d&&n.transitions.nextSlide.data.transition2d.toString().split(","),t,i;n.device.touchPrev&&n.o.slideOnSwipe?(n.device.touchPrev=!1,this.transition("2d","1")):n.device.touchNext&&n.o.slideOnSwipe?(n.device.touchNext=!1,this.transition("2d","1")):n.slides.next.data.$background||e&&(!e||-1!=e.indexOf("1")||-1!=e.indexOf("2")||-1!=e.indexOf("3")||-1!=e.indexOf("4"))?n.browser.supports3D()&&(n.transitions.nextSlide.data.transition3d||n.transitions.nextSlide.data.customtransition3d)?n.transitions.nextSlide.data.transition3d&&n.transitions.nextSlide.data.customtransition3d?(t=Math.floor(2*Math.random()),i=[["3d",n.transitions.nextSlide.data.transition3d],["custom3d",n.transitions.nextSlide.data.customtransition3d]],this.transition(i[t][0],i[t][1])):n.transitions.nextSlide.data.transition3d?this.transition("3d",n.transitions.nextSlide.data.transition3d):this.transition("custom3d",n.transitions.nextSlide.data.customtransition3d):n.transitions.nextSlide.data.transition2d&&n.transitions.nextSlide.data.customtransition2d?(t=Math.floor(2*Math.random()),i=[["2d",n.transitions.nextSlide.data.transition2d],["custom2d",n.transitions.nextSlide.data.customtransition2d]],this.transition(i[t][0],i[t][1])):n.transitions.nextSlide.data.transition2d?this.transition("2d",n.transitions.nextSlide.data.transition2d):n.transitions.nextSlide.data.customtransition2d?this.transition("custom2d",n.transitions.nextSlide.data.customtransition2d):this.transition("2d","1"):this.transition("2d","5")},transition:function(e,i){n.debugMode&&n.debug.add("group","slideTransition.info"),i+="";var a=-1==e.indexOf("custom")?n.t:n.ct,r="3d",s,o;if(-1!=e.indexOf("2d")&&(r="2d"),-1!=i.indexOf("last"))o=a["t"+r].length-1,s="last";else if(-1!=i.indexOf("all"))o=Math.floor(Math.random()*n.functions.countProp(a["t"+r])),s="random from all";else{var d=i.split(","),t=d.length;o=parseInt(d[Math.floor(Math.random()*t)])-1,s="random from specified"}"undefined"==typeof a["t"+r][o]&&(n.debugMode&&n.debug.add("warn","slideTransition.customTransition",[r.toUpperCase()+(-1===e.indexOf("custom")?"":" (CUSTOM)"),o+1]),a=n.t,e=r="2d",o=0),n.debugMode&&n.debug.add("log","slideTransition.info",[r.toUpperCase()+(-1===e.indexOf("custom")?"":" (CUSTOM)"),o+1,a["t"+r][o].name]),n.transitions.slide.normal.setTransition(r,a["t"+r][o])}},setTransition:function(e,t){t.name||(t=_lsConvTrProp(t));var o=a.extend(!0,{cols:1,rows:1},t),d=typeof o.cols,p=typeof o.rows,u=[],c=n.navigation.direction,i=0,m=0,h=!!n.transitions.curSlide.data.$background&&n.functions.getURL(n.transitions.curSlide.data.$background),g=!!n.transitions.nextSlide.data.$background&&n.functions.getURL(n.transitions.nextSlide.data.$background),y=n.o.playByScroll&&"up"===n.device.scroll.direction?"to":"from",f,x,v,S,b;if(o.rc){switch(typeof o.rc){case"number":n.slider.width>n.slider.height?(p=o.rc,d=Math.floor(n.slider.width/(n.slider.height/o.rc))):(d=o.rc,p=Math.floor(n.slider.height/(n.slider.width/o.rc)));break;case"string":v=parseInt(o.rc),d=Math.floor(n.slider.width/v),p=Math.floor(n.slider.height/v);}o.cols=d,o.rows=p}else d="number"===d?o.cols:"string"===d?Math.floor(Math.random()*(parseInt(o.cols.split(",")[1])-parseInt(o.cols.split(",")[0])+1))+parseInt(o.cols.split(",")[0]):Math.floor(Math.random()*(o.cols[1]-o.cols[0]+1))+o.cols[0],p="number"===p?o.rows:"string"===p?Math.floor(Math.random()*(parseInt(o.rows.split(",")[1])-parseInt(o.rows.split(",")[0])+1))+parseInt(o.rows.split(",")[0]):Math.floor(Math.random()*(o.rows[1]-o.rows[0]+1))+o.rows[0],l.isMobile&&n.o.optimizeForMobile&&(15<=d?d=7:5<=d?d=4:4<=d?d=3:2<d&&(d=2),15<=p?p=7:5<=p?p=4:4<=p?p=3:2<p&&(p=2),2<p&&2<d&&(p=2,4<d&&(d=4)));if(n.debugMode&&!n.o.slideTransition&&(n.debug.add("log","slideTransition.properties",[[d,p],d*p]),n.debug.groupEnd()),f=Math.floor(n.slider.width/d),x=Math.floor(n.slider.height/p),d=Math.floor(n.slider.width/f),p=Math.floor(n.slider.height/x),S=n.slider.width-f*d,b=n.slider.height-x*p,"prev"==c){var w={random:"random",forward:"reverse",reverse:"forward",center:"center",edge:"edge",mirror:"mirror","radial-in":"radial-in","radial-out":"radial-out","col-forward":"col-reverse","col-reverse":"col-forward"};"2d"===e&&o.transition&&"scale"===o.transition.type&&(w.forward="forward",w.reverse="reverse"),o.tile&&o.tile.sequence&&(o.tile.sequence=w[o.tile.sequence]),a.each(["animation","before","after"],function(e,i){if(o[i]&&o[i].transition){var a=o[i].transition;a.rotateX&&44<Math.abs(a.rotateX)&&(a.rotateX*=-1),a.rotateY&&44<Math.abs(a.rotateY)&&(a.rotateY*=-1),a.rotate&&(a.rotate*=-1)}})}for(var T=0;T<d*p;T++)u.push(T);switch(o.tile.sequence){case"reverse":u.reverse();break;case"col-forward":u=n.functions.sortArray(p,d,"forward");break;case"col-reverse":u=n.functions.sortArray(p,d,"reverse");break;case"random":u=n.functions.shuffleArray(u);break;case"center":u=n.functions.sortArray(p,d,"center");break;case"edge":case"mirror":u=n.functions.sortArray(p,d,"edge");break;case"radial-out":u=n.functions.sortArray(p,d,"radial-out");break;case"radial-in":u=n.functions.sortArray(p,d,"radial-in");}if(("transparent"===n.transitions.nextSlide.data.backgroundColor||"3d"==e||"undefined"!=typeof n.transitions.curSlide.data.$background&&"undefined"!=typeof n.transitions.nextSlide.data.$background)&&n.slider.$slideBGColorWrapper.css("background-color","transparent"),"2d"==e){var C=-1!=o.name.toLowerCase().indexOf("carousel"),O=-1!=o.name.toLowerCase().indexOf("crossfad");this.$curTiles=a("<div>").addClass("ls-curtiles").appendTo(n.transitions.slide.$wrapper),this.$nextTiles=a("<div>").addClass("ls-nexttiles").appendTo(n.transitions.slide.$wrapper)}for(var k=0;k<d*p;k++){var P=0==(k+1)%d?S:0,L=k>(p-1)*d-1?b:0,I=a("<div>").addClass("ls-slide-transition-tile").css({width:f+P,height:x+L}).data("style",{width:f+P,height:x+L}).appendTo(n.transitions.slide.$wrapper),_=u[k]==d*p-1&&function(){n.transitions.slide.onComplete()},$,B,F,A,N,z,M,V,R;if(i=0==k%d?i+1:i,m=0==k%d?1:m+1,"3d"==e){I.addClass("ls-3d-container");var E=f+P,W=x+L,H=new s.TimelineMax,Y,X,K,G,U,j,q;q=Math.abs(Math.abs(m-d/2-.5)-d/2-.5)*Math.abs(Math.abs(i-p/2-.5)-p/2-.5),I.css({zIndex:q}),Y="horizontal"==o.animation.direction?90<Math.abs(o.animation.transition.rotateY)&&"large"!=o.tile.depth?Math.floor(E/7)+P:E:90<Math.abs(o.animation.transition.rotateX)&&"large"!=o.tile.depth?Math.floor(W/7)+L:W,X=E/2,K=W/2,G=Y/2,this.createCuboids("ls-3d-box",I,0,0,0,0,-G,0,0,X+"px "+K+"px 0px"),this.createCuboids("ls-3d-front",I.find(".ls-3d-box"),E,W,0,0,G,0,0),"vertical"==o.animation.direction&&90<Math.abs(o.animation.transition.rotateX)?this.createCuboids("ls-3d-back",I.find(".ls-3d-box"),E,W,0,0,-G,180,0):this.createCuboids("ls-3d-back",I.find(".ls-3d-box"),E,W,0,0,-G,0,180),this.createCuboids("ls-3d-left",I.find(".ls-3d-box"),Y,W,-G,0,0,0,-90),this.createCuboids("ls-3d-right",I.find(".ls-3d-box"),Y,W,E-G,0,0,0,90),this.createCuboids("ls-3d-top",I.find(".ls-3d-box"),E,Y,0,-G,0,90,0),this.createCuboids("ls-3d-bottom",I.find(".ls-3d-box"),E,Y,0,W-G,0,-90,0),$=I.find(".ls-3d-front"),B="horizontal"==o.animation.direction?90<Math.abs(o.animation.transition.rotateY)?I.find(".ls-3d-back"):0<o.animation.transition.rotateY?I.find(".ls-3d-left"):I.find(".ls-3d-right"):90<Math.abs(o.animation.transition.rotateX)?I.find(".ls-3d-back"):0<o.animation.transition.rotateX?I.find(".ls-3d-bottom"):I.find(".ls-3d-top"),U=u[k]*o.tile.delay,j=n.transitions.slide.$wrapper.find(".ls-3d-container:eq( "+k+" ) .ls-3d-box"),o.before&&o.before.transition?(o.before.transition.delay=o.before.transition.delay?(o.before.transition.delay+U)/1e3:U/1e3,H.to(j[0],o.before.duration/1e3,n.functions.convert.transition(o.before.transition,o.before.easing))):o.animation.transition.delay=o.animation.transition.delay?(o.animation.transition.delay+U)/1e3:U/1e3,H.to(j[0],o.animation.duration/1e3,n.functions.convert.transition(o.animation.transition,o.animation.easing)),o.after&&(!o.after.transition&&(o.after.transition={}),H.to(j[0],o.after.duration/1e3,n.functions.convert.transition(o.after.transition,o.after.easing,"after"))),n.timelines._slideTransition.add(H,0)}else{var Z="auto",Q="auto",J="auto",ee="auto",te=1,ie=1,ae="50% 50%",re="50% 50%",se=0,oe=100,ne={},le=o.transition.intensity||2,de,pe,ue,ce,me,he,ge,ye,fe,xe,ve,Se;switch("random"==o.transition.direction?(me="scale"==o.transition.type?["top","bottom","middle","right","left","center"]:["top","bottom","right","left"],he=me[Math.floor(Math.random()*me.length)]):he=o.transition.direction,-1!=o.name.toLowerCase().indexOf("mirror")&&0==k%2&&("prev"==c?c="next":c="prev"),"prev"==c&&(he={top:"bottom",bottom:"top",middle:"middle",left:"right",right:"left",center:"center",topleft:"bottomright",topright:"bottomleft",bottomleft:"topright",bottomright:"topleft",none:"none"}[he]),"top"===he?(Z=J=-I.data("style").height,Q=ee=0):"bottom"===he?(Z=J=I.data("style").height,Q=ee=0):"left"===he?(Z=J=0,Q=ee=-I.data("style").width):"right"===he?(Z=J=0,Q=ee=I.data("style").width):"topleft"===he?(Z=I.data("style").height,J=0,Q=I.data("style").width,ee=0):"topright"===he?(Z=I.data("style").height,J=0,Q=-I.data("style").width,ee=0):"bottomleft"===he?(Z=-I.data("style").height,J=0,Q=I.data("style").width,ee=0):"bottomright"===he?(Z=-I.data("style").height,J=0,Q=-I.data("style").width,ee=0):"none"===he?(Z=0,J=0,Q=0,ee=0):void 0,(this.scale2D="undefined"==typeof o.transition.scale?1:o.transition.scale,!0==C&&1!=this.scale2D&&(Z/=2,J/=2,Q/=2,ee/=2),(o.transition.rotate||o.transition.rotateX||o.transition.rotateY||1!=this.scale2D)&&"slide"!=o.transition.type?I.css({overflow:"visible"}):I.css({overflow:"hidden"}),!0==C?this.$curTiles.css({overflow:"visible"}):this.$curTiles.css({overflow:"hidden"}),!0===O||"slide"==o.transition.type||"scale"==o.transition.type||!0===C||o.transition.hasOwnProperty("opacity")?(ge=I.appendTo(this.$curTiles),ye=I.clone().appendTo(this.$nextTiles),$=a("<div>").addClass("ls-curtile").appendTo(ge)):ye=I.appendTo(this.$nextTiles),B=a("<div>").addClass("ls-nexttile").appendTo(ye),fe=u[k]*o.tile.delay/1e3,xe=o.transition.rotate?o.transition.rotate:0,ve=o.transition.rotateX?o.transition.rotateX:0,Se=o.transition.rotateY?o.transition.rotateY:0,"prev"==c&&(xe=-xe,ve=-ve,Se=-Se),o.transition.type)){case"fade":Z=J=Q=ee=0,te=0,ie=1;break;case"mixed":te=0,ie=1,1==this.scale2D&&(J=ee=0),de="undefined"==typeof o.transition.scaleX?"undefined"==typeof o.transition.scale?1:o.transition.scale:o.transition.scaleX,pe="undefined"==typeof o.transition.scaleY?"undefined"==typeof o.transition.scale?1:o.transition.scale:o.transition.scaleY;break;case"scale":Z=J=Q=ee=0,te=0,ie=1,de=1,pe=1,"left"===he||"right"===he?de=1+u[k]/(50/le):"top"===he||"bottom"===he?pe=1+u[k]/(50/le):"center"===he?de=1+u[k]/(50/le):"middle"===he?pe=1+u[k]/(50/le):void 0,"mirror"===o.tile.sequence&&k>d*p/2&&(se=100,oe=0),"left"===he?(ae=se+"% 50%",re=oe+"% 0"):"right"===he?(ae=oe+"% 50%",re=se+"% 50%"):"center"===he||"middle"===he?(ue=1,ce=1):"top"===he?(ae="50% "+se+"%",re="50% "+oe+"%"):"bottom"===he?(ae="50% "+oe+"%",re="50% "+se+"%"):void 0;}if(n.timelines._slideTransition.fromTo(B[0],o.transition.duration/1e3,{immediateRender:!1,autoCSS:!1,css:{x:-Q,y:-Z,display:"block",opacity:te,rotation:xe,rotationX:ve,rotationY:Se,borderRadius:o.transition.borderRadius||0,scaleX:"undefined"==typeof de?this.scale2D:de,scaleY:"undefined"==typeof pe?this.scale2D:pe,transformOrigin:ae}},{autoCSS:!1,css:{x:0,y:0,opacity:ie,rotation:0,rotationX:0,rotationY:0,borderRadius:0,scaleX:1,scaleY:1},ease:n.functions.convert.easing(o.transition.easing)},fe),!0==O&&("undefined"==typeof n.transitions.nextSlide.data.$background||"undefined"!=typeof n.transitions.nextSlide.data.$background&&(-1!=n.transitions.nextSlide.data.$background.attr("src").toLowerCase().indexOf("png")||n.transitions.nextSlide.data.$background.width()<n.slider.width||n.transitions.nextSlide.data.$background.height()<n.slider.height))&&(ne.opacity=0),("slide"==o.transition.type||!0==C)&&-1==o.name.toLowerCase().indexOf("mirror")){var be=0;0!==xe&&(be=-xe),ne.x=ee,ne.y=J,ne.rotation=be,ne.scale=this.scale2D,ne.opacity=te}else"scale"==o.transition.type&&(ne.scaleX=ue?ue:de,ne.scaleY=ce?ce:pe,ne.transformOrigin=re);o.transition.hasOwnProperty("opacity")&&(ne.opacity=o.transition.opacity),"undefined"!=typeof $&&n.timelines._slideTransition.to($[0],o.transition.duration/1e3,{autoCSS:!1,css:ne,ease:n.functions.convert.easing(o.transition.easing)},fe)}F=k%d*f,A=Math.floor(k/d)*x,"undefined"!=typeof n.transitions.curSlide.data.$background&&(N=n.transitions.curSlide.data.$background.data(n.defaults.init.dataKey),V=n.transitions.curSlide.data.backgroundGradient||"none","3d"===e||"2d"===e&&(!0===O||"slide"===o.transition.type||"scale"===o.transition.type||!0===C||o.transition.hasOwnProperty("opacity"))?$.append(a("<div style=\"position: absolute;\">").css({width:n.slider.width,height:n.slider.height,left:-F,top:-A,backgroundImage:V,transform:N.responsive.kbRotation+N.responsive.kbScale}).append(a("<img>").attr("src",h).css({width:N.responsive.width,height:N.responsive.height,filter:N.responsive.filter,transform:"translateX("+N.responsive.x+"px) translateY("+N.responsive.y+"px)"}))):0===this.$curTiles.children().length&&this.$curTiles.append(a("<div style=\"position: absolute;\">").css({width:n.slider.width,height:n.slider.height,left:-F,top:-A,backgroundImage:V,transform:N.responsive.kbRotation+N.responsive.kbScale}).append(a("<img>").attr("src",h).css({width:N.responsive.width,height:N.responsive.height,filter:N.responsive.filter,transform:"translateX("+N.responsive.x+"px) translateY("+N.responsive.y+"px)"})))),"transparent"===n.transitions.curSlide.data.backgroundColor||n.transitions.curSlide.data.$backgroundVideo.length||("3d"===e||"2d"===e&&(!0===O||"slide"===o.transition.type||!0===C)?$.css("background-color",n.transitions.curSlide.data.backgroundColor):this.$curTiles.css("background-color",n.transitions.curSlide.data.backgroundColor)),"undefined"!=typeof n.transitions.nextSlide.data.$background&&(z=n.transitions.nextSlide.data.$background.data(n.defaults.init.dataKey),M=z.kenBurns[y],R=n.transitions.nextSlide.data.backgroundGradient||"none",B.append(a("<div style=\"position: absolute;\">").css({width:n.slider.width,height:n.slider.height,left:-F,top:-A,backgroundImage:R,transform:"rotate("+M.rotation+"deg) scale("+M.scale+")"}).append(a("<img>").attr("src",g).css({width:z.responsive.width,height:z.responsive.height,filter:n.transitions.nextSlide.filter.from||"none",transform:"translateX("+z.responsive.x+"px) translateY("+z.responsive.y+"px)"})))),"transparent"===n.transitions.nextSlide.data.backgroundColor||n.transitions.nextSlide.data.$backgroundVideo.length||B.css("background-color",n.transitions.nextSlide.data.backgroundColor)}n.transitions.slide.$wrapper.prependTo(n.o.preferBlendMode?n.slider.$layersWrapper:n.slider.$innerWrapper),n.transitions.slide.start()},createCuboids:function(e,t,i,r,s,o,n,l,d,p){var u="translate3d( "+s+"px, "+o+"px, "+n+"px)";0!==l&&(u+="rotateX( "+l+"deg)"),0!==d&&(u+="rotateY( "+d+"deg)");var c={width:i,height:r,transform:u,"-ms-transform":u,"-webkit-transform":u};p&&(c["transform-origin"]=p,c["-ms-transform-origin"]=p,c["-webkit-transform-origin"]=p),a("<div>").addClass(e).css(c).appendTo(t)}}},layers:{setZIndex:function(e,t,i){t.original._zIndex||(t.original._zIndex=parseInt(t.elements.$outerWrapper.css("zIndex"))),i!==parseInt(t.elements.$outerWrapper.css("zIndex"))&&t.elements.$outerWrapper.css({zIndex:i})},in:{onStart:function(e){var t=e.data(n.defaults.init.dataKey);t.is.countdown&&n.countdown.startInterval(e,t.countdownSettings),t.hover.enabled&&n.transitions.layers.hover.enable(e),n.layers.set.dataAttribute("add",e,"animating-in"),t.in.zIndex&&n.transitions.layers.setZIndex(e,t,t.in.zIndex),"instant"===t.mediaSettings.autoplay&&n.media.functions.playIfAllowed(e),n.plugins.callFunctions("layerInStart",{$layer:e,layerData:t})},onComplete:function(e){var t=e.data(n.defaults.init.dataKey);t&&("instant"!==t.mediaSettings.autoplay&&n.media.functions.playIfAllowed(e),t.in.zIndex&&n.transitions.layers.setZIndex(e,t,t.original._zIndex),n.plugins.callFunctions("layerInComplete",{$layer:e,layerData:t}),n.layers.set.dataAttribute("remove",e,"animating-in"),n.layers.set.dataAttribute("add",e,"active"))}},out:{forced:function(){var e=n.slides.current.index||n.slides.next.index;n.timelines.slides[e]||(n.timelines.slides[e]={}),n.slider.$layersWrapper.find(".ls-link").css({display:"none"});var t=!n.timelines._layers&&!e&&n.o.animateFirstSlide;if(t&&n.transitions.layers.timeline.create(!1,"next"),!!n.timelines.slides[e]._forceOut){var i=n.layers.get("current, in, static, notactive, notstaticin"),r=n.layers.get("current, in, static, active, staticout"),o=i.add(r),l=n.layers.get("current, in, static"),d=n.layers.get("current, out, static, active"),p=n.layers.get("current, out, notstatic"),u=l.add(d).add(p);0===n.timelines._layers.duration()&&(o.length&&n.transitions.layers.timeline.addLayers(o,"in",n.timelines._layers,n.timelines.slides[e]._forceOut,n.timelines._layersAlt,n.timelines.slides[e]._forceOutMirror,"current"),d.length&&n.transitions.layers.timeline.addLayers(d,"out",n.timelines._layers,n.timelines.slides[e]._forceOut,n.timelines._layersAlt,n.timelines.slides[e]._forceOutMirror,"current")),n.timelines._layers.pause();var c=n.timelines._layers.time();u.each(function(){var t=a(this),i=t.data(n.defaults.init.dataKey),o=-1!==i.out.startAt.indexOf("slidechangeonly"),u=-1!==i.textOut.startAt.indexOf("slidechangeonly");p.is(t)&&(i.should.reset=!0,i.timelines._loop&&n.timelines._layers&&(n.timelines._layers.remove(i.timelines._loop),i.timelines._loop.play())),l.is(t)&&i.settings.slideIn===n.slides.current.index&&!t.is("[data-ls-static-in]")?(r.is(t)&&n.timelines.to([i.timelines,"_staticOut",1,!0,!0,!0]),i.timelines._staticIn=new s.TimelineMax({paused:!0}),i.timelines._staticIn.addCallback(function(){n.layers.set.dataAttribute("add",t,"static-in")},0),i.timelines._in&&i.timelines._staticIn.add(i.timelines._in,i.timeline.transitioninstart-c),i.timelines._textIn&&i.timelines._staticIn.add(i.timelines._textIn,i.timeline.textinstart-c),i.timelines._textOut&&!u&&i.timelines._staticIn.add(i.timelines._textOut,i.timeline.textoutstart-c),i.timelines._out&&!o&&i.timelines._staticIn.add(i.timelines._out,i.timeline.transitionoutstart-c),i.timelines._loop&&(i.timelines._loop.pause(),n.timelines._layers.remove(i.timelines._loop),0===i.timelines._loop.progress()?i.timelines._staticIn.addCallback(function(){i.timelines._loop.play()},i.timeline.loopstart-c):i.timelines._loop.play()),i.timelines._staticIn.addCallback(function(){n.timelines.to([i.timelines,"_staticIn",null,!0,!0,!0])}),i.timelines._staticIn.play()):d.is(t)&&i.settings.slideOut===n.slides.current.index&&(-1===i.staticSlides.indexOf(n.slides.next.index)?(n.timelines.to([i.timelines,"_staticIn _in _textIn",null,!0,!0,!0]),n.timelines.has(i.timelines._textOut)&&!u&&n.timelines.to([i.timelines,"_textOut",null,!0,!0,!0]),n.timelines.has(i.timelines._out)&&!o&&n.timelines.to([i.timelines,"_out",null,!0,!0,!0]),i.timelines._staticOut?i.timelines._staticOut.paused()&&i.timelines._staticOut.play():(i.timelines._staticOut=new s.TimelineMax({paused:!0}),i.timelines._staticOut.addCallback(function(){n.layers.set.dataAttribute("remove",t,"static-in animating-in text-animating-in"),n.layers.set.dataAttribute("add",t,"static-out")},0),n.timelines.has(i.timelines._forceOut)&&i.timelines._staticOut.add(("prev"===n.navigation.direction?i.timelines._forceOutMirror:i.timelines._forceOut).paused(!1),0),n.timelines.has(i.timelines._forceTextOut)&&u&&i.timelines._staticOut.add("prev"===n.navigation.direction?i.timelines._forceTextOutMirror:i.timelines._forceTextOut,0),i.timelines._staticOut.addCallback(function(){n.layers.set.dataAttribute("remove",t,"static-out"),n.transitions.layers.reset(t,i),n.timelines.to([i.timelines,"_staticOut",null,!0,!0,!0]),n.timelines.to([i.timelines,"_out _forceOut _forceOutMirror _textOut _forceTextOut _forceTextOutMirror",1,!0,!0,!0])}),i.timelines._staticOut.play())):(n.timelines.slides[e]._forceOut.remove(i.timelines._forceOut),n.timelines.slides[e]._forceOutMirror.remove(i.timelines._forceOutMirror)))}),t?n.timelines.to([n.timelines,"_forceOut _forceOutMirror",null,!0,!0]):(n.timelines._layers.eventCallback("onStart",null).eventCallback("onComplete",null).eventCallback("onReverseComplete",null).eventCallback("onUpdate",null).stop().clear(),n.timelines._layersAlt.stop().clear(),("prev"===n.navigation.direction?n.timelines.slides[e]._forceOutMirror:n.timelines.slides[e]._forceOut).play(),n.slideshow.forceFastChange&&n.timelines.to([n.timelines,"_forceOut _forceOutMirror",1]))}},onStart:function(e){if(!e.is("[data-ls-hidden]")){var t=e.data(n.defaults.init.dataKey);n.plugins.callFunctions("layerOutStart",{$layer:e,layerData:t}),t.out.zIndex?n.transitions.layers.setZIndex(e,t,t.out.zIndex):t.in.zIndex&&n.transitions.layers.setZIndex(e,t,t.original._zIndex),n.layers.set.dataAttribute("add",e,"animating-out")}},onComplete:function(e){var t=e.data(n.defaults.init.dataKey);return e.is("[data-ls-hidden]")?void((n.slider.state.changingSlides||t.settings.slideOut!==n.slides.current.index)&&n.transitions.layers.reset(e,t)):void(t.randomValues={},(n.slider.state.changingSlides||t.settings.slideOut!==n.slides.current.index)&&n.transitions.layers.reset(e,t),t.hover.enabled&&n.transitions.layers.hover.disable(e),n.layers.set.dataAttribute("remove",e,"animating-out"),n.layers.set.dataAttribute("add",e,"hidden"),t.is.mediaLayer&&t.mediaProperties&&t.mediaProperties.type&&e.find("[data-ls-playing]").length&&n.media.functions.stop(!0,e),t.is.countdown&&n.countdown.stopInterval(t.countdownSettings),t.is.counter&&n.counter.stop(t.counterSettings),n.plugins.callFunctions("layerOutComplete",{$layer:e,layerData:t}))}},reset:function(e,t){if(t.original._zIndex&&n.transitions.layers.setZIndex(e,t,t.original._zIndex),t.timelines._loop&&(n.timelines.to([t.timelines,"_loop",0]),s.TweenMax.set(t.elements.$loopWrapper[0],t.reset.altWrapperOnSlideChange)),t.parallax._timeline&&(t.parallax._timeline.stop().clear(),delete t.parallax._timeline),t.parallax._timeout&&(n.functions.clearTimers({timeout:t.parallax._timeout}),delete t.parallax._timeout),t.parallax.reset&&(s.TweenMax.killTweensOf(t.elements.$parallaxWrapper[0]),s.TweenMax.set(t.elements.$parallaxWrapper[0],t.reset.altWrapperOnSlideChange)),t.clip.enabled){var i=t.clip.userDefined?t.clip.default:t.clip.style;t.loop.enabled&&s.TweenMax.set(t.elements.$loopWrapper[0],i),t.inClipFromCSS.clipPath||s.TweenMax.set(t.elements.$clipWrapper[0],i)}t.clip.textShouldReset&&s.TweenMax.set(e.find(".ls-ln, .ls-wd, .ls-ch"),t.clip.none),s.TweenMax.set(t.elements.$wrapper[0],t.reset.wrapperOnSlideChange),s.TweenMax.set(e[0],{"-webkit-filter":t.original.filter,filter:t.original.filter}),t.should.update&&(t.textInNodesFrom.random={},t.textOutNodesTo.random={},n.layers.update.data(e)),t.should.reset=!1},timeline:{shouldRestart:!1,totalDurations:[],create:function(e,i){var i=i||(e?"current":"next"),o=n.slides[i].index,l,d,u,c;if(n.plugins.callFunctions("createTimelineBefore",i),n.timelines.slides[o]||(n.timelines.slides[o]={}),n.transitions.curNext=i,n.transitions.layers.timeline.shouldRestart=!1,n.o.allowRestartOnResize&&n.slider.isScrollScene&&(n.transitions.layers.timeline.shouldRestart=!0),n.transitions.layers.timeline.resetStates(),n.timelines.to([n.timelines,"_layers _layersAlt",0,!0,!0,!0]),n.timelines._layers=new s.TimelineMax({paused:!0,onStart:function(){n.api.hasEvent("slideTimelineDidStart")&&n.api.triggerEvent("slideTimelineDidStart",n.api.eventData())},onComplete:function(){n.o.playByScroll&&n.o.playByScrollSkipSlideBreaks&&("next"===n.slideshow.direction?n.transitions.layers.timeline.scrollForward(!0):n.transitions.layers.timeline.scrollBackwards(!0,!0))},onReverseComplete:function(){n.api.hasEvent("slideTimelineDidReverseComplete")&&n.api.triggerEvent("slideTimelineDidReverseComplete",n.api.eventData()),n.transitions.layers.timeline.shouldReplay&&(n.transitions.layers.timeline.shouldRestart=!1,n.timelines._layers.play()),n.o.playByScroll&&n.o.playByScrollSkipSlideBreaks&&n.transitions.layers.timeline.scrollBackwards(!0,!1)},onUpdate:function(e){n.api.hasEvent("slideTimelineDidUpdate")&&n.api.triggerEvent("slideTimelineDidUpdate",e)},onUpdateParams:["{self}"]}),n.timelines._layersAlt=new s.TimelineMax({paused:!0}),this.totalDuration=0,this.progress=1,e||(n.slides.prev.index&&n.timelines.to([n.timelines.slides[n.slides.prev.index],"_forceOut _forceOutMirror",1,!0,!0,!0,!0]),n.timelines.slides[o]._forceOut=new s.TimelineMax({paused:!0,autoRemoveChildren:!0}),n.timelines.slides[o]._forceOut.lsSlideIndex=o,n.timelines.slides[o]._forceOutMirror=new s.TimelineMax({paused:!0,autoRemoveChildren:!0}),n.timelines.slides[o]._forceOutMirror.lsSlideIndex=o),n.plugins.callFunctions("createTimelineBeforeAdd",i),l=e?n.layers.get(i+", in"):n.layers.get(i+", in, notstatic, notactive").add(n.layers.get(i+", in, static, notactive, notstaticin")).add(n.layers.get(i+", in, static, active, staticout")),d=n.layers.get(i+", out, notstatic").add(n.layers.get(i+", out, static, active")),u=n.layers.get(i+", in, bgonly, notactive"),c=a().add(l).add(d).add(u),this.addLayers(l,"in",n.timelines._layers,n.timelines.slides[o]._forceOut,n.timelines._layersAlt,n.timelines.slides[o]._forceOutMirror),this.addLayers(d,"out",n.timelines._layers,n.timelines.slides[o]._forceOut,n.timelines._layersAlt,n.timelines.slides[o]._forceOutMirror),n.slides[i].data&&-1!==n.slides[i].data.duration&&n.slides[i].data.duration<this.totalDuration?(this.progress=n.slides[i].data.duration/this.totalDuration,n.debugMode&&n.debug.add("warn","slideTimeline.duration",[n.slides[i].data.duration,this.totalDuration])):n.timelines._layers.duration()>this.totalDuration&&(this.progress=this.totalDuration/n.timelines._layers.duration()),-1===n.slides[i].data.duration?(n.o.slideDuration&&a.isNumeric(n.o.slideDuration)&&-1<n.o.slideDuration?this.totalDuration=n.o.slideDuration/1e3:0===this.totalDuration&&(this.totalDuration=n.o.slideDurationWithoutLayers/1e3),n.o.inLayerPreview&&(n.o.hasInfiniteLoop&&"loop-transition"===n.o.layerPreviewPresetType?this.totalDuration+=5:"ending-transition"===n.o.layerPreviewPresetType?this.totalDuration+=.25:"hover-transition"!==n.o.layerPreviewPresetType&&(this.totalDuration+=.5)),n.slides[i].data.duration=this.totalDuration,n.slides[n.slides[i].index].data.duration=this.totalDuration):this.totalDuration=n.slides[i].data.duration,n.o.getData&&-1!==n.o.getData.indexOf("slideDuration"))return this.totalDurations.push(this.totalDuration),n.slides[i].index<n.slides.count?setTimeout(function(e){n.slideshow.changeTo(e,!0)},100,n.slides[i].index+1):n.functions.getData("slideDuration",this.totalDurations),!1;if(n.slider.isScrollScene){n.slider.$spacingWrapper.attr("data-scene-duration",this.totalDuration);var m=n.slider.$spacingWrapper.attr("data-scene-pre-duration")||!1;this.totalDuration!==parseFloat(m)&&n.resize.scene(!0)}this.addLayers(u,"in",n.timelines._layers,n.timelines.slides[o]._forceOut,n.timelines._layersAlt),!0===n.transitions.layers.timeline.shouldRestart&&n.debugMode&&n.debug.add("warn","slideTimeline.restart",n.o.allowRestartOnResize?"enabled":"disabled");for(var h=0;h<c.length;h++)a(c[h]).data(n.defaults.init.dataKey).parallax.enabled&&a(c[h]).data(n.defaults.init.dataKey).elements.$parallaxWrapper.attr("data-ls-parallax","active");n.transitions.layers.parallax.trigger();var g=n.transitions.layers.parallax.wrappers;if(!g.randomGlobal[n.slides.next.index]||n.functions.objectIsEmpty(g.randomGlobal[n.slides.next.index].$2d)&&n.functions.objectIsEmpty(g.randomGlobal[n.slides.next.index].$3d)||n.timeouts["rp-global-"+n.slides.next.index]||n.transitions.layers.parallax.random.setTimer({globalSlideParallaxData:n.slides.next.parallax,slideIndex:n.slides.next.index}),n.transitions.layers.scroll.reset(),n.transitions.layers.scroll.trigger(),n.api.hasEvent("slideTimelineDidCreate")&&n.api.triggerEvent("slideTimelineDidCreate",{slideTimeline:n.timelines._layers,layersOnSlideTimeline:c,slideTimelineDuration:this.totalDuration}),n.timelines._layers.set(t.find(".ls-slide-backgrounds .ls-z:not([data-slide-index=\""+n.slides[i].index+"\"]) .ls-bg-wrap").toArray(),{display:"none"},0),n.transitions.timers.create(),n.transitions.timers.bar._transition&&(n.gui.timers.bar.$element.css("width",0),n.timelines._layers.add(n.transitions.timers.bar._transition.play(),0)),n.transitions.timers.circle._transition&&n.timelines._layers.add(n.transitions.timers.circle._transition.play(),0),n.transitions.timers.slidebar._transition&&n.timelines._layers.add(n.transitions.timers.slidebar._transition.play(),0),n.timelines._layers.call(function(){if(!n.timelines._layers.reversed()){if(n.api.hasEvent("slideTimelineDidComplete")){if(n.o.inLayerPreview&&n.o.hasInfiniteLoop){var e=n.layers.get("current, in"),t;e.each(function(){t=a(this).data(n.defaults.init.dataKey),t.loop&&t.timelines._loop&&t.timelines._loop.stop().progress(0)})}if(!1===n.api.triggerEvent("slideTimelineDidComplete",n.api.eventData()))return}n.functions.setStates(n.transitions.layers.timeline,{finished:!0}),!n.slideshow.isPaused()&&n.slideshow.state.running?n.slideshow.changeTo(n.slides.next.index):n.slideshow.state.pausedByLastCycle&&n.transitions.timers.reverse()}},[],this,n.slides[i].data.duration),n.slides.next.data.$link&&n.slides.next.data.$link.css({display:"block"}),(n.o.startInViewport&&("inside"===n.slider.position.toViewport||n.o.playByScrollStart||!n.slider.state.waitForGettingInViewport)||!n.o.startInViewport)&&(n.slider.isPopup&&n.slider.state.popupIsVisible&&n.slider.state.popupShouldStart||!n.slider.isPopup)&&(n.o.pauseLayers&&n.slideshow.isPaused()?n.transitions.layers.timeline.pause(0):!n.slider.isScrollScene&&n.transitions.layers.timeline.play(),n.o.playByScroll&&"up"===n.device.scroll.directionAtSlideTransitionStart&&n.timelines._layers.progress(1)),n.timelines._layersAlt.play(),n.slider.isScrollScene&&n.slider.set.offset(),t.trigger("mouseleave.globalhover"+r),t.off("mouseenter.globalhover"+r+" mouseleave.globalhover"+r+" mousemove.globalhover"+r),n.slides[i].data.globalhover){var y=n.layers.get(i+",in,notactive").add(n.layers.get("static,active")).not("[data-ls-skipglobalhover]");t.on("mouseenter.globalhover"+r,function(){y.each(function(){n.transitions.layers.hover.mouseEnter(a(this),a(this).data(n.defaults.init.dataKey))})}),t.on("mouseleave.globalhover"+r,function(){y.each(function(){n.transitions.layers.hover.mouseLeave(a(this),a(this).data(n.defaults.init.dataKey))})}),t.on("mousemove.globalhover"+r,function(){y.each(function(){n.transitions.layers.hover.mouseMove(a(this),a(this).data(n.defaults.init.dataKey))})})}},prepare:function(){n.slides.next.data.overflow&&"hidden"!==n.slides.next.data.overflow?(n.slider.$layersWrapper.addClass("ls-visible"),n.slider.$slideBGWrapper.addClass("ls-visible")):(n.slider.$layersWrapper.removeClass("ls-visible"),n.slider.$slideBGWrapper.removeClass("ls-visible")),this.create()},getTiming:function(e,t,i,r){if("number"==typeof t)return t;t=t.toLowerCase();var s=n.defaults.layer.timelineHierarchy,o=0,l,d,p,u,c;if(-1!==t.indexOf("*")&&(c="*"),-1!==t.indexOf("/")&&(c="/"),-1!==t.indexOf("+")&&(c="+"),-1!==t.indexOf("-")&&(c="-"),!c)l=a.trim(t),s[l]&&-1!==s[i][1].indexOf(s[l][0])?r?o=0:o="number"==typeof e.timeline[l]?e.timeline[l]:e.timeline[l](e):n.debugMode&&(s[l]?-1===s[i][1].indexOf(s[l][0])&&n.debug.add("warn","layerTransition.timing3",[l,s[l],i,s[i]]):n.debug.add("warn","layerTransition.timing1",l));else if(u=t.split(c),l=a.trim(u[0]),p=parseInt(a.trim(u[1])),s[l]&&-1!==s[i][1].indexOf(s[l][0])){if(!e.timeline[l]&&1<s[l][0]){var m=s[l][0],h;for(var g in s)s[g][0]===(m-1||1)&&(h=g);l=h}d="number"==typeof e.timeline[l]?e.timeline[l]:e.timeline[l](e),r?o=p/1e3:"*"===c?o=d*p:"/"===c?o=d/p:"+"===c?o=d+p/1e3:"-"===c?o=d-p/1e3:void 0}else n.debugMode&&(!s[l]&&n.debug.add("warn","layerTransition.timing1",l),-1===s[i][1].indexOf(s[l][0])&&n.debug.add("warn","layerTransition.timing3",[l,s[l],i,s[i]])),("+"===c||r)&&(o=p/1e3);return(o!==o||0>o)&&(n.debugMode&&n.debug.add("warn","layerTransition.timing2",[i,l,o]),o=0),o},addLayers:function(e,t,i,r,o,l,d){e.each(function(){var e=this,p=a(e),u=p.data(n.defaults.init.dataKey),c=u.elements.$wrapper,m=u.elements.$clipWrapper,h=u.elements.$loopWrapper,g=u.elements.$parallaxWrapper,y=0,f=u.settings.skipViewport&&1>n.slideshow.state.changed?o:i,x="loop"==u.settings.skipViewport&&1>n.slideshow.state.changed?o:i;d="undefined"==typeof d?"next":d,n.transitions.firstSlide&&n.o.animateFirstSlide&&(n.transitions.nextSlide=n.slides.next),"in"===t&&u.timelines._staticOut&&n.timelines.to([u.timelines,"_staticOut",1,!0,!0,!0]);var v=a.extend(!0,{},u.inLayerFrom),S=v.css,b=a.extend({},u.inLayerShouldBeConverted),w=a.extend(!0,{},u.outLayerTo),T=w.css,C=a.extend({},u.outLayerShouldBeConverted),O=a.extend(!0,{},u.textInNodesFrom),k=a.extend(!0,{},u.textInShouldBeConverted),P=a.extend(!0,{},u.textOutNodesTo),L=a.extend(!0,{},u.textOutShouldBeConverted),I={$layer:p,layerData:u,slide:d,timelines:{_layers:i,_layersAlt:o,_selectedSlideTimeline:f,_selectedLoopTimeline:x,_forceOut:r,_forceOutMirror:l},transitionData:{inLayerFrom:v,inLayerFromCSS:S,inLayerShouldBeConverted:b,outLayerTo:w,outLayerToCSS:T,outLayerShouldBeConverted:C,textInNodesFrom:O,textInShouldBeConverted:k,textOutNodesTo:P,textOutShouldBeConverted:L}};if(u.should.reset&&n.transitions.layers.reset(p,u),n.plugins.callFunctions("addLayersBefore",I),p.hasClass("ls-bg"))n.plugins.callFunctions("addLayersBGStart",I),u.kenBurns.zoom&&i.fromTo(p.closest(".ls-bg-wrap"),n.transitions.nextSlide.data.duration+n.transitions.nextSlide.data.calculatedTimeShift,{autoCSS:!1,css:u.kenBurns.from},{autoCSS:!1,css:u.kenBurns.to,ease:s.Quad.easeInOut},-n.transitions.nextSlide.data.calculatedTimeShift),n.plugins.callFunctions("addLayersBGBeforeFilter",I),a.isEmptyObject(u.filter.values.bgFrom)&&a.isEmptyObject(u.filter.values.bgTo)||(!u.filter.transitions.bg&&(u.filter.transitions.bg=n.transitions.layers.filters.createTransition(u,"bg",u.filter.values.bgFrom,u.filter.values.bgTo)),f.to([{p:0},e],n.transitions.nextSlide.data.duration,{p:1,autoCSS:!1,ease:s.Sine.easeInOut,onUpdate:n.transitions.layers.filters.animate,onUpdateParams:["{self}",u.filter.transitions.bg]},0)),n.plugins.callFunctions("addLayersBGEnd",I);else{if("in"===t){if(u.in.enabled?(u.timelines._in=new s.TimelineMax,n.plugins.callFunctions("addLayersInStart",I),(!u.settings.timelineIsCalculated||u.settings.recalculateTimeline)&&("startAtFirst"==u.settings.recalculateTimeline&&(u.settings.recalculateTimeline=!1,u.settings.timelineIsCalculated=!1),"number"!=typeof u.in.startAt&&(u.in.startAt=0),"number"!=typeof u.in.startAtFirst&&(u.in.startAtFirst=0),u.timeline.transitioninstart=n.transitions.firstSlide&&u.in.startAtFirst?u.in.startAtFirst:u.in.startAt,u.timeline.transitioninend=u.timeline.transitioninstart+u.in.duration),n.transitions.firstSlide&&u.in.startAtFirst&&(u.settings.recalculateTimeline="startAtFirst"),n.resize.performTransformOperations(u.inLayerToCSS,S),u.in.mirror&&"prev"===n.navigation.direction&&n.resize.mirrorTransitionProperties({transitionProperties:S,transitionPropertiesShouldBeConverted:b,transitionType:"normal",mirrorProperties:u.in.mirror}),n.resize.transformProperties(p,u,S,b,null,null,"in"),n.resize.styleProperties(p,u,u.inLayerStyleFromCSS,u.inLayerStyleShouldBeConvertedFrom),n.resize.styleProperties(p,u,u.inLayerStyleToCSS,u.inLayerStyleShouldBeConvertedTo),S.transformPerspective=u.transformPerspective.layer*u.settings.calculatedratio,n.plugins.callFunctions("addLayersInBeforeClip",I),u.clip.enabled&&(u.clip.style.css.clipPath=n.functions.convert.clipProperties(u.clip.style.css.clipPath,u,p,!0),!u.inClipFromCSS.clipPath&&u.clip.style.css.clipPath!==u.clip.default.css.clipPath&&(u.inClipFromCSS.clipPath=u.clip.default.css.clipPath)),u.inClipFromCSS.clipPath&&(u.inClipFromCSS.clipPath=n.functions.convert.clipProperties(u.inClipFromCSS.clipPath,u,p),u.timelines._in.fromTo(m[0],u.in.duration,u.inClipFrom,u.inClipTo,0)),n.plugins.callFunctions("addLayersInBeforeFilter",I),a.isEmptyObject(u.filter.values.in)?!a.isEmptyObject(u.filter.values.out)&&p.css("filter",u.original.filter):(!u.filter.transitions.in&&(u.filter.transitions.in=n.transitions.layers.filters.createTransition(u,"in",u.filter.values.in,u.filter.values.style)),u.timelines._in.to([{p:0},e],u.in.duration,{p:1,autoCSS:!1,ease:u.inLayerTo.ease,onUpdate:n.transitions.layers.filters.animate,onUpdateParams:["{self}",u.filter.transitions.in]},0)),n.plugins.callFunctions("addLayersInBeforeSmartBG",I),u.is.smartBG&&-1!==u.styleSettings.smartbg.indexOf("in")&&(u.inLayerStyleFrom.css["--x"]=parseInt(u.responsive["--x"])-S.x+"px",u.inLayerStyleTo.css["--x"]=parseInt(u.responsive["--x"])+"px",u.inLayerStyleFrom.css["--y"]=parseInt(u.responsive["--y"])-S.y+"px",u.inLayerStyleTo.css["--y"]=parseInt(u.responsive["--y"])+"px"),u.is.smartBG&&(n.slides[n.slides.current.index||1].data.hasSmartBG=!0),n.plugins.callFunctions("addLayersInBeforeCounter",I),u.is.counter&&(u.timelines._in.addCallback(function(){p.text(n.counter.applyNumberFormat(p,u.counterSettings,parseFloat(u.counterSettings.start)))},0),u.timelines._in.addCallback(function(){n.counter.start(p,u.counterSettings)},"transitioninstart"===u.counterSettings.startAt?0:u.in.duration)),n.plugins.callFunctions("addLayersInBeforeTL",I),0===u.timeline.transitioninstart&&0===u.in.duration?(u.inLayerTo.css.transformOrigin=v.css.transformOrigin,u.inLayerTo.css.transformPerspective=v.css.transformPerspective,u.timelines._in.set(c[0],u.inLayerTo,0),u.timelines._in.set(e,u.inLayerStyleTo,0)):(u.timelines._in.fromTo(c[0],u.in.duration,v,u.inLayerTo,0),u.timelines._in.fromTo(e,u.in.duration,u.inLayerStyleFrom,u.inLayerStyleTo,0)),f.add(u.timelines._in,u.timeline.transitioninstart)):(u.timeline.transitioninstart=0,u.timeline.transitioninend=0),n.plugins.callFunctions("addLayersInAfter",I),u.is.textLayer&&(u.timelines._textIn=new s.TimelineMax,(u.textIn.type||u.textOut.type)&&n.transitions.layers.splitType.resetNodes(p,u),u.textIn.enabled)){n.plugins.callFunctions("addLayersTextInStart",I),O.clipPath&&(O.clipPath=n.functions.convert.clipProperties(O.clipPath,u,p),u.textInNodesTo.css.clipPath=u.clip.default.css.clipPath);var _=!!(u.textIn.mirror&&"prev"===n.navigation.direction),$=n.transitions.layers.splitType.setNodesSequence(u.textIn.type.split("_"),u.textIn.ns);u.textIn.nodes=_?$[1]:$[0],_&&n.resize.mirrorTransitionProperties({transitionProperties:O,transitionPropertiesShouldBeConverted:k,transitionType:"text",mirrorProperties:u.textIn.mirror}),n.resize.transformProperties(p,u,O,k,null,u.textIn.nodes,"textin"),O.transformPerspective=u.transformPerspective.text*u.settings.calculatedratio,a.isEmptyObject(k.random)||n.transitions.layers.splitType.setRandomProperties(p,u,k.random,O,"In"),a.isEmptyObject(O.random)||n.transitions.layers.splitType.setRandomProperties(p,u,O.random,O,"In"),delete O.random,u.settings.timelineIsCalculated||(u.timeline.textinstart=n.transitions.layers.timeline.getTiming(u,u.textIn.startAt,"textinstart"),u.timeline.textinend=u.timeline.textinstart+(u.textIn.nodes.length-1)*u.textIn.shiftNodes+u.textIn.duration),u.in.enabled||u.timelines._textIn.to(c[0],0,a.extend(!0,{},u.inLayerTo,u.init.wrapper),0),n.plugins.callFunctions("addLayersTextInBeforeStyles",I),O.color?u.textInNodesToCSS.color=u.original.color:u.textOutNodesTo.color&&(O.color=u.original.color),n.plugins.callFunctions("addLayersTextInBeforeTLStyles",I),u.timelines._textIn.set(e,u.textIn.layerStyle,0),window.getSelection&&n.browser.isSafari&&u.timelines._textIn.addCallback(function(){try{window.getSelection().setBaseAndExtent(e,0,e,1e3)}catch(t){}window.getSelection().removeAllRanges()},Number.EPSILON),n.plugins.callFunctions("addLayersTextInBeforeTL",I),u.timelines._textIn.addCallback(function(){n.layers.set.dataAttribute("add",p,"text-animating-in"),n.plugins.callFunctions("layerTextInStart",{$layer:p,layerData:u})},0),u.timelines._textIn.staggerFromTo(u.textIn.nodes,u.textIn.duration,O,u.textInNodesTo,u.textIn.shiftNodes,0,function(){n.layers.set.dataAttribute("remove",p,"text-animating-in"),n.layers.set.dataAttribute("add",p,"active"),n.plugins.callFunctions("layerTextInComplete",{$layer:p,layerData:u})}),f.add(u.timelines._textIn,u.timeline.textinstart),n.plugins.callFunctions("addLayersTextInAfter",I)}if(u.is.keyframe&&n.o.playByScroll&&i.addPause(u.timeline.allinend(),function(){setTimeout(function(){delete n.timeouts.scroll,n.transitions.layers.timeline.timeScaleModifier=0,n.device.scroll.timeout=250},500)}),u.parallax.enabled&&"auto"==u.parallax.event){n.transitions.layers.parallax.auto(),u.parallax._timeline=new s.TimelineMax({paused:!0,repeat:-1===u.parallax.count?-1:u.parallax.count-1});var B={ease:s.Linear.easeNone,immediateRender:!1,onUpdate:function(e,t,i,a,r,o,n){s.TweenMax.set(i,{x:-t.x*(a/50)*parseInt(r),y:-t.y*(a/50)*parseInt(r),"--rx":t.x*(a/50)*parseInt(r)+"px","--ry":t.y*(a/50)*parseInt(r)+"px",rotationX:"3d"==o?t.y/(100/n):0,rotationY:"3d"==o?-t.x/(100/n):0})}},W=function(e,t){return{x:e*n.resize.ratio,y:t*n.resize.ratio}},D="horizontal"==u.parallax.path||"vertical"==u.parallax.path,F="backward"===u.parallax.direction?-1:1,A;switch(D&&(B.ease=s.Quad.easeInOut,B.duration=u.parallax.pathDuration/2,A=a.extend(!0,{},B)),u.parallax.path){default:case"circle":u.parallax.dummy=W(0,-10),B.bezier={curviness:1.5,values:[W(10,0),W(0,10),W(-10,0),W(0,-10)]};break;case"oval-h":u.parallax.dummy=W(0,-10),B.bezier={type:"thru",curviness:1,values:[W(20,0),W(0,10),W(-20,0),W(0,-10)]};break;case"oval-v":u.parallax.dummy=W(0,-20),B.bezier={type:"thru",curviness:1,values:[W(10,0),W(0,20),W(-10,0),W(0,-20)]};break;case"infinity":u.parallax.dummy=W(0,0),B.bezier={curviness:1.3,values:[W(20,-10),W(30,0),W(20,10),W(0,0),W(-20,-10),W(-30,0),W(-20,10),W(0,0)]};break;case"square":u.parallax.dummy=W(-10,-10),B.bezier={curviness:.5,values:[W(10,-10),W(10,10),W(-10,10),W(-10,-10)]};break;case"diamond":u.parallax.dummy=W(0,-10),B.bezier={curviness:.5,values:[W(10,0),W(0,10),W(-10,0),W(0,-10)]};break;case"triangle":u.parallax.dummy=W(0,10),B.bezier={curviness:.5,values:[W(-10,-10),W(10,-10),W(0,10)]};break;case"pentagon":u.parallax.dummy=W(0,10),B.bezier={curviness:.5,values:[W(-9.51,3.09),W(-5.88,-8.09),W(5.88,-8.09),W(9.51,3.09),W(0,10)]};break;case"horizontal":u.parallax.dummy=W(10*F,0),B.x=-10*F*n.resize.ratio,A.x=10*F*n.resize.ratio;break;case"vertical":u.parallax.dummy=W(0,-10*F),B.y=10*F*n.resize.ratio,A.y=-10*F*n.resize.ratio;}if(B.onUpdateParams=["{self}",u.parallax.dummy,g[0],u.parallax.distance,u.parallax.level,u.parallax.type,u.parallax.rotation],D)A.onUpdateParams=["{self}",u.parallax.dummy,g[0],u.parallax.distance,u.parallax.level,u.parallax.type,u.parallax.rotation],u.parallax._timeline.to(u.parallax.dummy,B.duration,B).to(u.parallax.dummy,A.duration,A);else if(B.bezier){if("backward"===u.parallax.direction){var N=B.bezier.values;N.reverse(),N.push(N.shift())}u.parallax._timeline.to(u.parallax.dummy,u.parallax.pathDuration,B)}(!u.settings.timelineIsCalculated||u.is.static)&&(u.timeline.autoparallaxstart=n.transitions.layers.timeline.getTiming(u,u.parallax.startAt,"autoparallaxstart"),u.timeline.autoparallaxend=u.timeline.autoparallaxstart+(-1===u.parallax.count?u.parallax.pathDuration:u.parallax._timeline.duration())),-1===u.parallax.count?i.addCallback(function(){u.parallax._timeline.play()},u.timeline.autoparallaxstart):(i.add(u.parallax._timeline,u.timeline.autoparallaxstart),u.parallax._timeline.play()),n.transitions.layers.timeline.shouldRestart=!0}if(u.parallax.enabled&&"randomLocal"==u.parallax._event&&i.addCallback(function(){n.transitions.layers.parallax.random.setTimer({layerData:u})},u.timeline[u.parallax.randomStartAt]),u.loop.enabled){n.plugins.callFunctions("addLayersLoopStart",I),n.timelines.to([u.timelines,"_loop",0,!0,!0,!0]),u.loop.maxIterations=1;var z=a.extend({},u.loopLayerShouldBeConverted),M={transformOrigin:n.functions.convert.transformOrigin(u.loopLayerShouldBeConverted.transformOrigin,p,u,p.data(n.defaults.init.dataKey).elements.$outerStyleWrapper),looptransformPerspective:u.transformPerspective.loop*u.settings.calculatedratio},V=!0,R=!0;delete z.filter,u.loop.timings={},u.timelines._loop=new s.TimelineMax({paused:!0,smoothChildTiming:!0,onComplete:function(){-1===u.loop.count&&(this.lsRepeats++,this.pause(),-1===u.loop.count&&(this.clear(),this.time(0,!0)),u.loop.yoyo&&(this.yoyoreverse=!0),H(this,!0))}}),u.timelines._loop.lsRepeats=0,u.timelines._loop.lsWrapper=u.elements.$loopWrapper[0],u.timelines._loop.set(h[0],M,0);var E=function(e,t){var i={};if(u.loop.timings.tweenDelay=n.functions.convert.randomProperties(u.loopTimingsShouldBeConverted.tweenDelay,"tweenDelay","loop",p,u)/1e3,u.loop.timings.duration=n.functions.convert.randomProperties(u.loopTimingsShouldBeConverted.duration,"duration","loop",p,u)/1e3,t||e.yoyoreverse)e.yoyoreverse=!1,u.loopFrom=a.extend(!0,{},u.loopInitial);else for(var r in u.loopToCSS)u.loopFrom.css[r]=u.loopToCSS[r];for(var s in z)if(z.hasOwnProperty(s)){var o=z[s],l=/^[+\-*/]=\s*-?\d+(\.\d+)?(lw|lh|sw|sh|px|%)?$/.test(o),d=-1!==o.indexOf(n.defaults.init.staggerSplitChar)&&(o+"").charAt(0)!==n.defaults.init.openingBracket,c=/random/.test(o)||(o+"").charAt(0)===n.defaults.init.openingBracket;if(d){var m=o.split(n.defaults.init.staggerSplitChar);u.loop.maxIterations=Math.max(m.length,u.loop.maxIterations)}if(l){var h=o.split("="),g=a.trim(h[0]),y=n.functions.convert.randomProperties(a.trim(h[1]),s,"loop",p,u),f=u.loopFrom.css[s],x;"+"===g?x=f+y:"-"===g?x=f-y:"*"===g?x=f*y:"/"===g?x=f/y:void 0,u.loopToCSS[s]=x}else c||d?u.loopToCSS[s]=n.functions.convert.randomProperties(z[s],s,"loop",p,u):(u.loopToCSS[s]=z[s],("x"===s||"y"===s)&&(i[s]=u.loopToCSS[s]))}a.isEmptyObject(i)||n.resize.transformProperties(p,u,u.loopToCSS,i,null,null,"loop")},H=function(t,r){for(var o=new s.TimelineMax({paused:!0}),l=n.functions.convert.randomProperties(u.loopTimingsShouldBeConverted.repeatDelay,"repeatDelay","loop",p,u)/1e3,d=n.functions.convert.randomProperties(u.loopTimingsShouldBeConverted.yoyoDelay,"yoyoDelay","loop",p,u)/1e3,c=0,m;c<u.loop.maxIterations;c++){m=o.duration(),E(t,!u.loop.resume||!m&&!t.duration()&&0===t.lsRepeats);var g=a.extend(!0,{},u.loopFrom),y=a.extend(!0,{},u.loopTo),f=-g.css.x+"px",x=-g.css.y+"px",v=-y.css.x+"px",S=-y.css.y+"px",b=u.loop.timings.duration,w=u.loop.timings.tweenDelay;if(n.plugins.callFunctions("addLayersLoopBeforeFilter",I),R&&!a.isEmptyObject(u.filter.values.loop)&&(!u.filter.transitions.loop&&(u.filter.transitions.loop=n.transitions.layers.filters.createTransition(u,"loop",a.isEmptyObject(u.filter.values.afterIn)?u.filter.values.style:u.filter.values.afterIn,u.filter.values.loop)),o.to([{p:0},e],b,{p:1,autoCSS:!1,immediateRender:!1,ease:u.loopTo.ease,onUpdate:n.transitions.layers.filters.animate,onUpdateParams:["{self}",u.filter.transitions.loop]},m)),o.fromTo(h[0],b,g,y,m),n.plugins.callFunctions("addLayersLoopBeforeSmartBG",I),u.is.smartBG&&-1!==u.styleSettings.smartbg.indexOf("loop")&&o.fromTo(e,b,{immediateRender:!1,"--lx":f,"--ly":x},{ease:u.settings.smartbgease||u.loopTo.ease,"--lx":v,"--ly":S},m),n.plugins.callFunctions("addLayersLoopBeforeClip",I),u.loopClipToCSS.clipPath){u.loopClipToCSS.clipPath=n.functions.convert.clipProperties(u.loopClipToCSS.clipPath,u,p),(R||-1!==["polygon(100% 0%,100% 100%,0% 100%,0% 0%)","polygon(0% 100%, 0% 0%, 100% 0%, 100% 100%)"].indexOf(u.loopClipToCSS.clipPath))&&o.set(h[0],u.loopClipFrom,m),o.to(h[0],b,u.loopClipTo,m)}c<u.loop.maxIterations-1&&o.to({immediateRender:!1},w,{}),R=!1}n.plugins.callFunctions("addLayersLoopBeforeTL",I),V||t.to({immediateRender:!1},l,{}),t.add(n.gsap.TweenMax.fromTo(o,o.duration(),{progress:0},{progress:1,ease:n.gsap.Linear.easeNone,immediateRender:!1})),u.loop.yoyo&&(t.to({immediateRender:!1},Math.max(0,l+d),{}),t.add(n.gsap.TweenMax.fromTo(o,o.duration(),{progress:1},{progress:0,ease:n.gsap.Linear.easeNone,immediateRender:!1}))),r&&t.play(),V=!1};if(-1===u.loop.count&&(u.timelines._loop.clear(),u.timelines._loop.time(0,!0)),H(u.timelines._loop),1<u.loop.count)for(;u.timelines._loop.lsRepeats<u.loop.count-1;)u.timelines._loop.lsRepeats++,u.loop.yoyo&&(u.timelines._loop.yoyoreverse=!0),H(u.timelines._loop,!0);(!u.settings.timelineIsCalculated||u.is.static)&&(u.timeline.loopstart=n.transitions.layers.timeline.getTiming(u,u.loop.startAt,"loopstart"),u.timeline.loopend=u.timeline.loopstart+u.timelines._loop.duration()),n.plugins.callFunctions("addLayersLoopBeforeTLInf",I),-1!==u.loop.count&&("looplayers"===n.o.pauseOnHover||n.gui.timers.slidebar.$element||n.o.playByScroll)?(x.add(u.timelines._loop,u.timeline.loopstart),u.timelines._loop.play()):x.addCallback(function(){u.timelines._loop.play()},u.timeline.loopstart)}n.plugins.callFunctions("addLayersLoopBeforeStatic",I),u.is.static&&(u.timeline.staticfrom=u.timeline.transitioninend,u.timeline.staticto="100%",!u.settings.timelineIsCalculated&&(y=Math.max(u.timeline.allinandloopend(),0),n.transitions.layers.timeline.totalDuration=Math.max(n.transitions.layers.timeline.totalDuration,y))),n.plugins.callFunctions("addLayersLoopAfter",I)}if(u.is.textLayer&&u.textOut.enabled&&("out"===t&&-1<u.textOut.startAt.indexOf("slidechangeonly")||"in"===t&&-1===u.textOut.startAt.indexOf("slidechangeonly"))){-1!==u.textOut.startAt.indexOf("slidechangeonly")&&u.settings.slideOut===n.slides[d].index?(u.timelines._forceTextOut=new s.TimelineMax,u.timelines._forceTextOutMirror=new s.TimelineMax):-1===u.textOut.startAt.indexOf("slidechangeonly")&&(u.timelines._textOut=new s.TimelineMax);var Y=u.clip.enabled&&!u.loopClipToCSS.clipPath&&u.clip.style.css.clipPath==u.clip.default.css.clipPath;n.plugins.callFunctions("addLayersTextOutStart",I);var X=n.transitions.layers.splitType.setNodesSequence(u.textOut.type.split("_"),u.textOut.ns);u.textOut.nodes=X[0],n.resize.transformProperties(p,u,u.textOutNodesTo,u.textOutShouldBeConverted,u.textOutNodesFrom,u.textOut.nodes,"textout"),u.textOutNodesTo.clipPath&&(u.textOutNodesTo.clipPath=n.functions.convert.clipProperties(u.textOutNodesTo.clipPath,u,p),u.textOutNodesFrom.clipPath=u.clip.default.css.clipPath),u.textOut.mirror?(u.textOut.nodesMirror=X[1],n.resize.mirrorTransitionProperties({transitionProperties:P,transitionPropertiesShouldBeConverted:L,transitionType:"text",mirrorProperties:u.textOut.mirror}),n.resize.transformProperties(p,u,P,L,u.textOutNodesFrom,u.textOut.nodes,"textoutmirror")):u.textOut.nodesMirror=X[0],u.textOutNodesFrom.transformPerspective=u.transformPerspective.text*u.settings.calculatedratio,a.isEmptyObject(u.textOutShouldBeConverted.random)||n.transitions.layers.splitType.setRandomProperties(p,u,u.textOutShouldBeConverted.random,u.textOutNodesTo,"Out"),a.isEmptyObject(u.textOutNodesTo.random)||n.transitions.layers.splitType.setRandomProperties(p,u,u.textOutNodesTo.random,u.textOutNodesTo,"Out"),delete u.textOutNodesTo.random,u.textOut.mirror&&(!a.isEmptyObject(L.random)&&n.transitions.layers.splitType.setRandomProperties(p,u,L.random,P,"Out"),!a.isEmptyObject(P.random)&&n.transitions.layers.splitType.setRandomProperties(p,u,P.random,P,"Out"),delete P.random),u.settings.timelineIsCalculated||(u.timeline.textoutstart=n.transitions.layers.timeline.getTiming(u,u.textOut.startAt,"textoutstart"),u.timeline.textoutend=u.timeline.textoutstart+(u.textOut.nodes.length-1)*u.textOut.shiftNodes+u.textOut.duration),n.plugins.callFunctions("addLayersTextOutBeforeStyles",I),u.textOutNodesTo.color&&(u.textOutNodesFrom.color=u.original.color);var K=function(){n.layers.set.dataAttribute("add",p,"text-animating-out"),-1===u.textOut.startAt.indexOf("slidechangeonly")&&n.layers.set.dataAttribute("add",p,"active"),n.plugins.callFunctions("layerTextOutStart",{$layer:p,layerData:u})},G=function(){n.layers.set.dataAttribute("remove",p,"text-animating-out"),-1===u.textOut.startAt.indexOf("slidechangeonly")||u.out.enabled||n.layers.set.dataAttribute("add",p,"hidden"),n.plugins.callFunctions("layerTextOutComplete",{$layer:p,layerData:u})};if(n.plugins.callFunctions("addLayersTextOutBeforeTL",I),-1!==u.textOut.startAt.indexOf("slidechangeonly")&&u.settings.slideOut===n.slides[d].index)u.timelines._forceTextOut.addCallback(K,0),u.timelines._forceTextOutMirror.addCallback(K,0),u.timelines._forceTextOut.set(e,u.textOut.layerStyle,0),u.timelines._forceTextOutMirror.set(e,u.textOut.layerStyle,0),Y&&(u.timelines._forceTextOut.fromTo(m[0],0,u.clip.style,u.clip.none,0),u.timelines._forceTextOutMirror.fromTo(m[0],0,u.clip.style,u.clip.none,0)),u.timelines._forceTextOut.staggerFromTo(u.textOut.nodes,u.textOut.duration,u.textOutNodesFrom,u.textOutNodesTo,u.textOut.shiftNodes,0,G),u.timelines._forceTextOutMirror.staggerFromTo(u.textOut.nodesMirror,u.textOut.duration,u.textOutNodesFrom,P,u.textOut.shiftNodes,0,G),u.timelines._forceTextOut.to(c[0],0,u.reset.wrapperOnTimelineEnd,u.timelines._forceTextOut.duration()),u.timelines._forceTextOutMirror.to(c[0],0,u.reset.wrapperOnTimelineEnd,u.timelines._forceTextOutMirror.duration()),u.timelines._forceTextOut.timeScale(u.timelines._forceTextOut.duration()/n.o.forceLayersOutDuration),u.timelines._forceTextOutMirror.timeScale(u.timelines._forceTextOutMirror.duration()/n.o.forceLayersOutDuration),r.add(u.timelines._forceTextOut,0),l.add(u.timelines._forceTextOutMirror,0);else if(-1===u.textOut.startAt.indexOf("slidechangeonly")){var U=Math.max(u.timeline.textoutstart,u.timeline.textinend);u.timelines._textOut.addCallback(K,0),u.timelines._textOut.set(e,u.textOut.layerStyle,0),Y&&u.timelines._textOut.fromTo(m[0],0,u.clip.style,u.clip.none,0),u.timelines._textOut.staggerFromTo(u.textOut.nodes,u.textOut.duration,u.textOutNodesFrom,u.textOutNodesTo,u.textOut.shiftNodes,0,G),u.is.static||(r.to(c[0],0,u.reset.wrapperOnTimelineEnd,n.o.forceLayersOutDuration),l.to(c[0],0,u.reset.wrapperOnTimelineEnd,n.o.forceLayersOutDuration)),i.add(u.timelines._textOut,U)}-1===u.textOut.startAt.indexOf("slidechangeonly")&&(y=Math.max(y,u.timeline.textoutandloopend())),n.transitions.layers.timeline.totalDuration=Math.max(n.transitions.layers.timeline.totalDuration,y),n.plugins.callFunctions("addLayersTextOutAfter",I)}if(u.out.enabled&&("out"===t||"in"===t&&u.is.static&&"slidechangeonly"!==u.out.startAt)){if("slidechangeonly"===u.out.startAt||p.is("[data-ls-animating-out]")||(u.timelines._out=new s.TimelineMax),u.timelines._forceOut=new s.TimelineMax,u.timelines._forceOutMirror=new s.TimelineMax,n.plugins.callFunctions("addLayersOutStart",I),n.resize.performTransformOperations(u.inLayerToCSS,u.outLayerToCSS),n.resize.transformProperties(p,u,u.outLayerToCSS,u.outLayerShouldBeConverted,u.outLayerFromCSS,null,"out"),n.resize.styleProperties(p,u,u.outLayerStyleFromCSS,u.outLayerStyleShouldBeConvertedFrom),n.resize.styleProperties(p,u,u.outLayerStyleToCSS,u.outLayerStyleShouldBeConvertedTo),u.outLayerFromCSS.transformPerspective=u.transformPerspective.layer*u.settings.calculatedratio,u.out.mirror&&(n.resize.performTransformOperations(u.inLayerToCSS,T),n.resize.mirrorTransitionProperties({transitionProperties:T,transitionPropertiesShouldBeConverted:C,transitionType:"normal",mirrorProperties:u.out.mirror}),n.resize.transformProperties(p,u,T,C,u.outLayerFromCSS,null,"outmirror")),n.plugins.callFunctions("addLayersOutBeforeSmartBG",I),u.is.smartBG&&-1!==u.styleSettings.smartbg.indexOf("out")&&(u.outLayerStyleFrom.css["--x"]=parseInt(u.responsive["--x"])+"px",u.outLayerStyleTo.css["--x"]=parseInt(u.responsive["--x"])-u.outLayerToCSS.x+"px",u.outLayerStyleFrom.css["--y"]=parseInt(u.responsive["--y"])+"px",u.outLayerStyleTo.css["--y"]=parseInt(u.responsive["--y"])-u.outLayerToCSS.y+"px"),n.plugins.callFunctions("addLayersOutBeforeFilter",I),a.isEmptyObject(u.filter.values.out)||u.filter.transitions.out||(u.filter.transitions.out=n.transitions.layers.filters.createTransition(u,"out",a.isEmptyObject(u.filter.values.afterLoop)?a.isEmptyObject(u.filter.values.afterIn)?u.filter.values.style:u.filter.values.afterIn:u.filter.values.afterLoop,u.filter.values.out)),n.plugins.callFunctions("addLayersOutBeforeClip",I),u.clip.enabled&&!u.outClipToCSS.clipPath&&u.clip.style.css.clipPath!==u.clip.default.css.clipPath&&(u.outClipToCSS.clipPath=u.clip.default.css.clipPath),u.outClipToCSS.clipPath&&(u.outClipToCSS.clipPath=n.functions.convert.clipProperties(u.outClipToCSS.clipPath,u,p)),n.plugins.callFunctions("addLayersOutBeforeTL",I),"slidechangeonly"===u.out.startAt||p.is("[data-ls-animating-out]")?(u.timeline.staticfrom=0,u.timeline.staticto="100%"):(!u.settings.timelineIsCalculated&&(u.timeline.transitionoutstart=Math.max(n.transitions.layers.timeline.getTiming(u,u.out.startAt,"transitionoutstart"),u.timeline.transitioninend),u.timeline.transitionoutend=u.timeline.transitionoutstart+u.out.duration),u.outClipToCSS.clipPath&&u.timelines._out.to(m[0],u.out.duration,u.outClipTo,0),!a.isEmptyObject(u.filter.values.out)&&u.timelines._out.to([{p:0},e],u.out.duration,{p:1,autoCSS:!1,ease:u.outLayerTo.ease,onUpdate:n.transitions.layers.filters.animate,onUpdateParams:["{self}",u.filter.transitions.out]},0),u.outLayerStyleTo.onComplete=function(){u.is.mediaLayer&&u.mediaProperties.$media[0].hasAttribute("data-ls-playing")&&n.media.functions.stopSingleMedia(p,u)},u.timelines._out.fromTo(c[0],u.out.duration,u.outLayerFrom,u.outLayerTo,0),u.timelines._out.fromTo(e,u.out.duration,u.outLayerStyleFrom,u.outLayerStyleTo,0),!n.slider.isScrollScene&&u.timelines._out.fromTo(c[0],0,u.init.wrapper,u.reset.wrapperOnTimelineEnd,u.out.duration),u.timelines._out.addCallback(function(){u.should.reset=!0}),i.add(u.timelines._out,u.timeline.transitionoutstart)),n.plugins.callFunctions("addLayersOutBeforeTLForced",I),u.settings.slideOut===n.slides[d].index){var j=Math.min(n.o.forceLayersOutDuration,u.out.duration);u.out.duration==u.out.defaultDuration&&(j=n.o.forceLayersOutDuration),u.timelines._forceOut.fromTo(c[0],j,u.outLayerFrom,u.outLayerTo,0),u.timelines._forceOut.fromTo(e,j,u.outLayerStyleFrom,u.outLayerStyleTo,0),u.timelines._forceOutMirror.fromTo(c[0],j,u.outLayerFrom,u.out.mirror?w:u.outLayerTo,0),u.timelines._forceOutMirror.fromTo(e,j,u.outLayerStyleFrom,u.outLayerStyleTo,0),u.outClipToCSS.clipPath&&(u.timelines._forceOut.to(m[0],j,u.outClipTo,0),u.timelines._forceOutMirror.to(m[0],j,u.outClipTo,0)),a.isEmptyObject(u.filter.values.out)||(u.timelines._forceOut.to([{p:0},e],j,{p:1,autoCSS:!1,ease:u.outLayerTo.ease,onUpdate:n.transitions.layers.filters.animate,onUpdateParams:["{self}",u.filter.transitions.out]},0),u.timelines._forceOutMirror.to([{p:0},e],j,{p:1,autoCSS:!1,ease:u.outLayerTo.ease,onUpdate:n.transitions.layers.filters.animate,onUpdateParams:["{self}",u.filter.transitions.out]},0)),r.add(u.timelines._forceOut,0),l.add(u.timelines._forceOutMirror,0)}y=Math.max(u.timeline.alloutandloopend(),0),n.transitions.layers.timeline.totalDuration=Math.max(n.transitions.layers.timeline.totalDuration,y),u.settings.timelineIsCalculated=!0,n.plugins.callFunctions("addLayersOutAfter",I)}}n.plugins.callFunctions("addLayersAfter",I)})},play:function(){n.timelines._layers&&(n.timelines._layers.play(),n.functions.setStates(this,{started:!0,running:!0,stopped:!1,paused:!1}))},pause:function(e){var e=a.isNumeric(e)?e:.75;n.timelines._layers&&(s.TweenMax.to(n.timelines._layers,e,{timeScale:0,onComplete:function(e){e.pause()},onCompleteParams:[n.timelines._layers]}),n.functions.setStates(this,{paused:!0,stopped:!1}))},resume:function(){n.timelines._layers&&(this.state.paused&&n.timelines._layers.play(),s.TweenMax.to(n.timelines._layers,.75,{timeScale:1}),n.functions.setStates(this,{paused:!1,stopped:!1}))},reverse:function(){n.timelines._layers&&n.timelines._layers.reverse()},scrollForward:function(e){if(e||(this.play(),this.modifyTimeScale()),n.timelines._layers&&!n.slider.isBusy()&&(0===n.timelines._layers.totalDuration()||1===n.timelines._layers.progress())&&"down"===n.device.scroll.direction){n.slideshow.direction="next";var t=n.slideshow.sequence.normalized,i=t.indexOf(n.slides.current.index);i===t.length-1?(n.slider.positionToViewport="under",n.device.scroll.enable(),n.slideshow.direction="prev"):n.navigation.next()}},scrollBackwards:function(e,t){if((!e||t)&&(this.reverse(),this.modifyTimeScale()),n.timelines._layers&&!n.slider.isBusy()&&(0===n.timelines._layers.totalDuration()||0===n.timelines._layers.progress())&&"up"===n.device.scroll.direction){n.slideshow.direction="prev";var i=n.slideshow.sequence.normalized,a=i.indexOf(n.slides.current.index);0===a?(n.slider.positionToViewport="over",n.device.scroll.enable(),n.slideshow.direction="next"):n.navigation.prev()}},modifyTimeScale:function(){if(n.timelines._layers){var e=this;s.TweenMax.to(n.timelines._layers,.25,{timeScale:1+e.timeScaleModifier})}},resetStates:function(){this.state={started:!1,running:!1,paused:!1,stopped:!1,finished:!1}}},hover:{enable:function(e){e.attr("data-ls-canhover","1")},disable:function(e){e.attr("data-ls-canhover","0")},set:function(e,t){t.elements.$wrapper.on("mouseenter."+r,function(){n.transitions.layers.hover.mouseEnter(e,t)}),t.elements.$wrapper.on("mouseleave."+r,function(){n.transitions.layers.hover.mouseLeave(e,t)}),t.elements.$wrapper.on("mousemove."+r,function(){n.transitions.layers.hover.mouseMove(e,t)})},createTimeline:function(e,t){if(t.hover._timeline=new s.TimelineMax({paused:!0,onReverseComplete:function(e,t){t.hover._timeline._reversed&&(t.hover._timeline.stop().clear(),delete t.hover._timeline)},onReverseCompleteParams:[e,t]}),n.resize.transformProperties(e,t,t.hoverToCSS,t.hoverShouldBeConverted,t.hoverFromCSS,null,"hover"),n.resize.styleProperties(e,t,t.hoverToCSS,t.hoverShouldBeConverted),t.hoverFromCSS.transformPerspective=t.transformPerspective.hover*t.settings.calculatedratio,t.hover._tween=s.TweenMax.fromTo(e[0],t.hover.durationIn,t.hoverFrom,t.hoverTo),t.hover._timeline.add(t.hover._tween,0),e.next().is(".ls-layer-link")){var i=e.next(),r=a.extend(!0,{},t.hoverFrom,{css:{opacity:1,color:"transparent",background:"transparent",z:0}}),o=a.extend(!0,{},t.hoverTo,{css:{opacity:1,color:"transparent",background:"transparent",z:0}});t.hover._linkTween=s.TweenMax.fromTo(i[0],t.hover.durationIn,r,o),t.hover._timeline.add(t.hover._linkTween,0)}else t.hover._linkTween=null;if(t.hover.alwaysOnTop){var l={zIndex:9999};n.browser.isSafari&&(l.transform="translateZ(999999px)"),t.hover._timeline.to(t.elements.$outerWrapper[0],t.hover.durationIn,{autoCSS:!1,css:l},0)}t.hover.reverseTimeScale=1==t.hover.durationIn/t.hover.durationOut?1:t.hover.durationIn/t.hover.durationOut,this.hoverIn(e,t)},mouseEnter:function(e,t){"1"===e.attr("data-ls-canhover")&&(e.attr("data-ls-hovered",1),t.elements.$wrapper.off("mousemove."+r),t.hover._timeline?(t.hover._timeline.play().stop().progress(0),this.hoverIn(e,t)):this.createTimeline(e,t))},mouseLeave:function(e,t){t.hover._timeline&&(t.hover._timeline.stop().progress(1),this.hoverOut(e,t)),e.removeAttr("data-ls-hovered")},mouseMove:function(e,t){e.attr("data-ls-hovered")||this.mouseEnter(e,t)},hoverIn:function(e,t){t.hover._tween.updateTo({ease:t.hover.easeIn}),t.hover._linkTween&&t.hover._linkTween.updateTo({ease:t.hover.easeIn}),t.hover._timeline.play().timeScale(1)},hoverOut:function(e,t){t.hover._tween.updateTo({ease:t.hover.easeOut}),t.hover._linkTween&&t.hover._linkTween.updateTo({ease:t.hover.easeOut}),t.hover._timeline.reverse().timeScale(t.hover.reverseTimeScale)}},parallax:{defaultProperties:{type:"2d",event:"cursor",duration:5,x:!0,y:!0,skewX:0,skewY:0,scaleX:0,scaleY:0,rotation:10,distance:10,durationEnter:1.5,durationMove:1.5,durationLeave:1.2,transformOrigin:"slidercenter slidermiddle 0",parallaxOrigin:"slidercenter slidermiddle",transformPerspective:500},defaults:{scrollModifier:5,centerLayers:"center",centerDegree:40,sensitive:10},state:{enabled:!1,ready:!1},wrappers:{cursor:{$2d:a(),$3d:a()},scroll:{$2d:a(),$3d:a()},auto:{$2d:a(),$3d:a()},randomGlobal:{},randomLocal:{}},globalSlideParallaxData:{},init:function(){var i=this;t.on("mouseenter."+r,function(){(i.wrappers.cursor.$2d.length||i.wrappers.cursor.$3d.length)&&i.calculateTransformProperties()}),t.on("mousemove."+r,function(t){(i.wrappers.cursor.$2d.length||i.wrappers.cursor.$3d.length)&&i.mouseMove(t)}),t.on("mouseleave."+r,function(){(i.wrappers.cursor.$2d.length||i.wrappers.cursor.$3d.length)&&i.reset()}),o.on("scroll.parallax"+r+" touchmove.parallax"+r,function(){(i.wrappers.scroll.$2d.length||i.wrappers.scroll.$3d.length)&&!i.state.paused&&i.scroll()}),o.on("resize.parallax"+r,function(){(i.wrappers.auto.$2d.length||i.wrappers.auto.$3d.length||i.wrappers.scroll.$2d.length||i.wrappers.scroll.$3d.length||i.wrappers.cursor.$2d.length||i.wrappers.cursor.$3d.length)&&i.calculateTransformProperties()}),i.defaults.scrollModifier*=n.o.parallaxScrollReverse?-1:1},addLayer:function(e,t,i,r){switch(this.state.enabled||(n.functions.setStates(this,{enabled:!0}),this.init()),i.styleSettings.smartbg&&-1!==i.styleSettings.smartbg.indexOf("parallax")&&(t.smartBG=!0,i.settings.smartbgease&&(t.smartbgease=i.settings.smartbgease)),a.extend(!0,t,this.defaultProperties,n.slides[r].parallax,i.parallax),i.transformPerspective.parallax?t.transformPerspective=i.transformPerspective.parallax:i.transformPerspective.parallax=t.transformPerspective,t.event&&t.event.match(/(cursor|scroll|auto|random)/)||(t.event="cursor"),"auto"===t.event&&(!t.path&&(t.path=n.slides[r].parallax.path),!t.pathDuration&&(t.pathDuration=n.slides[r].parallax.pathDuration),!t.startAt&&(t.startAt=n.slides[r].parallax.startAt),!t.direction&&(t.direction=n.slides[r].parallax.direction),!t.count&&(t.count=n.slides[r].parallax.count)),"random"===t.event&&(null==t.randomX&&(t.randomX=n.slides[r].parallax.randomX),null==t.randomY&&(t.randomY=n.slides[r].parallax.randomY),!t.randomDuration&&(t.randomDuration=n.slides[r].parallax.randomDuration),!t.ease&&(t.ease=n.slides[r].parallax.ease),t.ease=n.functions.convert.easing(t.ease),!t.randomCount&&(t.randomCount=n.slides[r].parallax.randomCount),!t.randomStartAt&&(t.randomStartAt=n.slides[r].parallax.randomStartAt),null==t.randomWait&&(t.randomWait=n.slides[r].parallax.randomWait),t._event=t.type!==n.slides[r].parallax.type||t.randomX!==n.slides[r].parallax.randomX||t.randomY!==n.slides[r].parallax.randomY||t.randomDuration!==n.slides[r].parallax.randomDuration||t.randomCount!==n.slides[r].parallax.randomCount||t.randomStartAt!==n.slides[r].parallax.randomStartAt||t.randomWait!==n.slides[r].parallax.randomWait||t.distance!==n.slides[r].parallax.distance||t.rotation!==n.slides[r].parallax.rotation||i.settings.skipViewport?"randomLocal":"randomGlobal"),t.type&&t.type.match(/^(2d|3d)$/)||(t.type="2d"),i.parallax=t,t.axis){case"none":t.x=!1,t.y=!1;break;case"x":t.y=!1;break;case"y":t.x=!1;}t.smartBG&&s.TweenMax.set(e[0],{"--rx":"0px","--ry":"0px"}),"random"===t.event?(!this.wrappers[t._event][r]&&(this.wrappers[t._event][r]={$2d:a(),$3d:a()}),-1!==t._event.indexOf("randomLocal")&&(i.parallax.randomUID=n.functions.getUID(12)),this.wrappers[t._event][r]["$"+t.type]=this.wrappers[t._event][r]["$"+t.type].add(e)):this.wrappers[t.event]["$"+t.type]=this.wrappers[t.event]["$"+t.type].add(e)},random:{setTimer:function(e={}){e.layerData?(e.$wrappers=e.$wrappers||e.layerData.elements.$parallaxWrapper,e.parallaxData=e.parallaxData||e.layerData.parallax,e.timeout=e.timeout||"rp-local-"+e.parallaxData.randomUID,e.eventName=e.eventName||"randomLocal"):(e.$wrappers=n.transitions.layers.parallax.wrappers.randomGlobal[e.slideIndex].$2d.add(n.transitions.layers.parallax.wrappers.randomGlobal[e.slideIndex].$3d),e.parallaxData=n.transitions.layers.parallax.globalSlideParallaxData[e.slideIndex]=e.parallaxData||e.globalSlideParallaxData||n.transitions.layers.parallax.globalSlideParallaxData[e.slideIndex],e.timeout=e.timeout||"rp-global-"+e.slideIndex,e.eventName=e.eventName||"randomGlobal"),e.$layer=e.$layer||e.$wrappers.first().find(".ls-layer, .ls-l").first(),e.layerData=e.layerData||e.$layer.data(n.defaults.init.dataKey),e.x=n.functions.convert.randomProperties(e.parallaxData.randomX,"x","parallax",e.$layer,e.layerData),e.y=n.functions.convert.randomProperties(e.parallaxData.randomY,"y","parallax",e.$layer,e.layerData),e.duration=e.parallaxData.randomDuration,a.isNumeric(e.duration)||(e.duration=n.functions.convert.randomProperties(e.duration,"duration")/1e3),e.wait=e.parallaxData.randomWait,a.isNumeric(e.wait)||(e.wait=n.functions.convert.randomProperties(e.wait,"delay")/1e3),n.transitions.layers.parallax.mouseMove(!1,{x:e.x,y:e.y,eventName:e.eventName,slideIndex:e.slideIndex||null,$wrappers:e.$wrappers,timeout:e.timeout,duration:e.duration,type:e.parallaxData.type}),n.timeouts[e.timeout]=setTimeout(function(){n.transitions.layers.parallax.random.setTimer(e)},1e3*(e.duration+e.wait))}},addShadow:function(){var e=n.gui.shadow.$element,t=n.slides.current&&n.slides.current.parallax?n.slides.current.index:n.slides.next.index;if(n.slides[t].data.$background&&n.slides[t].data.$background.data(n.defaults.init.dataKey).parallax.enabled&&!!n.slides[t].data.overflow&&"hidden"!==n.slides[t].data.overflow){var i="50% -"+.25*n.slider.height+"px 0",r=n.slides[t].data.$background.data(n.defaults.init.dataKey).parallax,o;o="undefined"==typeof r.rotation?"undefined"==typeof n.slides[t].parallax.rotation?2*this.defaultProperties.rotation:2*n.slides[t].parallax.rotation:2*r.rotation,e.data(n.defaults.init.dataKey,{parallax:a.extend(!0,{},this.defaultProperties,n.slides[t].parallax,{level:r.level,transformOrigin:i,rotation:o})}),e.attr("data-ls-parallax","active"),s.TweenMax.set(e[0],{transformOrigin:i,transformPerspective:e.data(n.defaults.init.dataKey).parallax.transformPerspective*n.resize.ratio}),"3d"===n.slides[t].parallax.type||"3d"===r.type?this.wrappers.cursor.$3d=this.wrappers.cursor.$3d.add(e):this.wrappers.cursor.$2d=this.wrappers.cursor.$2d.add(e)}this.shadowIsChecked=!0},removeShadow:function(){var e=n.gui.shadow.$element;this.wrappers.cursor.$2d=this.wrappers.cursor.$2d.not(e),this.wrappers.cursor.$3d=this.wrappers.cursor.$3d.not(e),e.attr("data-ls-parallax","disabled"),this.shadowIsChecked=!1},calculateTransformProperties:function(){var e=function(e){function t(e){for(var a in e)e.hasOwnProperty(a)&&(e[a]&&e[a].jquery?i=i.add(e[a]):"object"==typeof e[a]&&null!==e[a]&&t(e[a]))}var i=a();return t(e),i}(this.wrappers);e.each(function(){var e=a(this),t=e.data(n.defaults.init.dataKey).parallax,i=e.find(".ls-layer"),r=i.data(n.defaults.init.dataKey),o=n.functions.convert.transformOrigin(t.transformOrigin,i.data(n.defaults.init.dataKey).elements.$wrapper,r,e);t.parallaxCurrentOrigin=n.functions.convert.parallaxOrigin(t.parallaxOrigin,e,t),s.TweenMax.set(e[0],{transformOrigin:o,transformPerspective:t.transformPerspective*r.settings.calculatedratio}),"cursor"===t.event&&t.durationEnter&&(t._enterParallax&&(t._enterParallax.kill(),t._enterParallax=null),t.enteringTime=r.parallax.durationEnter,t._enterParallax=s.TweenMax.to(t,t.durationEnter,{enteringTime:0,ease:s.Quart.easeOut,onUpdate:function(){1e-6>=t.enteringTime&&(t.enteringTime=0,this.pause().progress(1))},onComplete:function(){this.invalidate(),t._enterParallax=null}}))}),this.transformPropertiesCalculated=!0},trigger:function(){o.trigger("scroll.parallax"+r),o.trigger("touchmove.parallax"+r)},auto:function(){this.transformPropertiesCalculated||this.calculateTransformProperties()},scroll:function(){var e="top"===this.defaults.centerLayers?l.scroll.top:l.scroll.top+(l.viewport.height-n.slider.height)/2,t=(e-n.slider.offset.top)*n.resize.ratio*this.defaults.scrollModifier;n.slider.state.inFullscreen&&(t=0),this.transformPropertiesCalculated||this.calculateTransformProperties();var i={x:0,y:t,eventName:"scroll"};this.animate(i,"2d"),this.animate(i,"3d")},mouseMove:function(t,e={}){this.transformPropertiesCalculated||this.calculateTransformProperties(),n.slider.state.animatingSlides||this.shadowIsChecked||!n.gui.shadow.$element||this.addShadow();var i=null==e.x?t.pageX:e.x,a=null==e.y?t.pageY:e.y,r={x:i,y:a,eventName:e.eventName||"cursor",slideIndex:e.slideIndex||null,$wrappers:e.$wrappers||!1,timeout:e.timeout||!1,duration:e.duration||null};e.type&&"2d"!==e.type||this.animate(r,"2d"),e.type&&"3d"!==e.type||this.animate(r,"3d")},animate:function(e={},t){var i=-1!==e.eventName.indexOf("random"),r=!("cursor"!==e.eventName),o=this.wrappers[e.eventName]["$"+t];"randomGlobal"==e.eventName?o=this.wrappers[e.eventName][e.slideIndex]["$"+t]:"randomLocal"==e.eventName&&(o=e.$wrappers),o.each(function(){var o=a(this);if("active"===o.attr("data-ls-parallax")){var l=o.data(n.defaults.init.dataKey).parallax,d={};l.parallaxCurrentOrigin||(l.parallaxCurrentOrigin=n.functions.convert.parallaxOrigin(l.parallaxOrigin,o,l));var p=e.x-l.parallaxCurrentOrigin.x,u=e.y-l.parallaxCurrentOrigin.y;i||l.x?(d.x=-p*(l.distance/2e3)*parseInt(l.level),"3d"===t&&(d.rotationY=-p/(4e3/l.rotation))):d.x=0,i||l.y?(d.y=-u*(l.distance/2e3)*parseInt(l.level),"3d"===t&&(d.rotationX=u/(4e3/l.rotation))):d.y=0,r&&(l.skewX&&(d.skewX=-p*(l.skewX/2e3)*parseInt(l.level)),l.skewY&&(d.skewY=-u*(l.skewY/2e3)*parseInt(l.level)),l.scaleX&&(d.scaleX=1+Math.abs(p)*(l.scaleX/4e3)*parseInt(l.level)),l.scaleY&&(d.scaleY=1+Math.abs(u)*(l.scaleY/4e3)*parseInt(l.level))),e.timeout&&(l._timeout=e.timeout);var c=i?e.duration:Math.max(l.durationMove,l.enteringTime||0);d.ease=i?l.ease:s.Power1.easeOut,l.smartBG&&n.transitions.layers.parallax.animateSmartBG(d.x,d.y,o,c,l.smartbgease||d.ease),s.TweenMax.to(o[0],c,d)}})},animateSmartBG:function(e,t,i,a,r){s.TweenMax.to(i.find(".ls-layer, .ls-l").first()[0],a,{"--rx":-e+"px","--ry":-t+"px",ease:r})},reset:function(){var e=this,t=a().add(this.wrappers.cursor.$2d).add(this.wrappers.cursor.$3d);t.each(function(){var e=a(this),t={x:0,y:0,skewX:0,skewY:0,scaleX:1,scaleY:1,rotationX:0,rotationY:0};e.find(".ls-layer[data-ls-hidden]").length&&!n.slider.isScrollScene&&(s.TweenMax.set(e[0],t),a(this).data(n.defaults.init.dataKey).parallax.smartBG&&n.transitions.layers.parallax.animateSmartBG(0,0,e,0)),e.find(".ls-layer[data-ls-parallax-reset]").length&&(s.TweenMax.to(e[0],a(this).data(n.defaults.init.dataKey).parallax.durationLeave,t),a(this).data(n.defaults.init.dataKey).parallax.smartBG&&n.transitions.layers.parallax.animateSmartBG(0,0,e,a(this).data(n.defaults.init.dataKey).parallax.durationLeave))}),n.gui.shadow.$element&&this.removeShadow(),this.transformPropertiesCalculated=!1}},scroll:{defaultProperties:{shouldBeConverted:{transformOrigin:"50% 50% 0"},transformPerspective:500,duration:.5,ease:"easeOutQuart"},defaults:{centerLayers:"center"},state:{enabled:!1},$wrappers:a(),init:function(){var e=this;o.on("scroll.scroll"+r+" touchmove.scroll"+r,function(){e.$wrappers.length&&e.scroll()}),o.on("resize.scroll"+r,function(){e.$wrappers.length&&e.calculateTransformProperties()})},addLayer:function(e,t,i){this.state.enabled||(n.functions.setStates(this,{enabled:!0}),this.init()),a.extend(!0,t,this.defaultProperties,i.scroll),i.transformPerspective.scroll?t.transformPerspective=i.transformPerspective.scroll:i.transformPerspective.scroll=t.transformPerspective,i.settings.skipViewport&&(t.skipViewport=!0),t.shouldBeConverted.transformOriginAlt||(t.shouldBeConverted.transformOriginAlt=t.shouldBeConverted.transformOrigin),t.ease=n.functions.convert.easing(t.ease),t.easeRev=n.functions.convert.easing(t.easeRev||t.ease),t.durationRev=t.durationRev||t.duration,i.scroll=t,this.$wrappers=this.$wrappers.add(e)},getCenter:function(e,t){var i="project";switch(((n.slider.isScrollScene||n.slider.isSticky)&&"scene"===t||"document"===t)&&(i=t),e){case"top":e="scene"===i?n.slider.wrapperPosition.top-(l.viewport.height-n.slider.height)/2:"document"===i?l.scroll.top:l.scroll.top;break;case"center":e="scene"===i?n.slider.wrapperPosition.middleForScrollTransition:"document"===i?l.scroll.top:l.scroll.top+(l.viewport.height-n.slider.height)/2;break;case"bottom":e="scene"===i?n.slider.wrapperPosition.top+n.slider.wrapperOffset.height-l.viewport.height+(l.viewport.height-n.slider.height)/2:"document"===i?l.scroll.top:l.scroll.top+l.viewport.height-n.slider.height;break;case"top-meets-viewport-bottom":e=l.scroll.top+l.viewport.height;break;case"top-meets-viewport-middle":e=l.scroll.top+l.viewport.height/2;break;case"bottom-meets-viewport-top":e=l.scroll.top-n.slider.height;break;case"bottom-meets-viewport-middle":e=l.scroll.top+l.viewport.height/2-n.slider.height;}return e},setCenter:function(e,t){return"project"!==e.getPosition||e.center&&this.defaults.centerLayers!==e.center?this.getCenter(e.center||this.defaults.centerLayers,e.getPosition):t},setY:function(e,t){return(n.slider.isScrollScene||n.slider.isSticky)&&"scene"===e.getPosition?-t:"document"===e.getPosition?t:n.slider.state.inFullscreen?0:t-n.slider.offset.top},scroll:function(e){if(!(n.slider.state.isNotDisplayed||n.slider.state.isHidden)){var t=this,i=this.getCenter(this.defaults.centerLayers);this.transformPropertiesCalculated||this.calculateTransformProperties(),this.$wrappers.each(function(){var r=a(this),o=r.find(".ls-scroll-transform"),d=r.data(n.defaults.init.dataKey).scroll,p,u,c;if(-1!==n.slider.position.toViewportYForSkipViewportLayers.indexOf("inside")&&d.skipViewport||!t.state.paused){u=t.setCenter(d,i),c=t.setY(d,u);var m={overwrite:"all",c:c,ease:"down"===l.scroll.direction?d.ease:d.easeRev,onUpdate:function(e,i){var r=0>=e.target.style.c?"+":"-";d.layerPositionToCenter!==r&&t.setTransformProperties(a(i),d,r),d.layerPositionToCenter=r},onUpdateParams:["{self}",this,d]},h={overwrite:"all",ease:"down"===l.scroll.direction?d.ease:d.easeRev};d.x&&(h.x=t.calculateTransformations(-c*d.x/20,"x",d,-c)),d.y&&(h.y=t.calculateTransformations(-c*d.y/20,"y",d,-c)),d.rotation&&(h.rotation=t.calculateTransformations(c*d.rotation/40,"rotation",d,-c)),d.rotationX&&(h.rotationX=t.calculateTransformations(c*d.rotationX/40,"rotationX",d,-c)),d.rotationY&&(h.rotationY=t.calculateTransformations(c*d.rotationY/40,"rotationY",d,-c)),d.skewX&&(h.skewX=t.calculateTransformations(-c*d.skewX/40,"skewX",d,-c)),d.skewY&&(h.skewY=t.calculateTransformations(-c*d.skewY/40,"skewY",d,-c)),d.scaleX&&(h.scaleX=t.calculateTransformations(1-c*d.scaleX/-4e3,"scaleX",d,c)),d.scaleY&&(h.scaleY=t.calculateTransformations(1-c*d.scaleY/-4e3,"scaleY",d,c)),d.opacity&&(h.opacity=t.calculateTransformations(1-c*(d.opacityyoyo?Math.abs(d.opacity):d.opacity)/1e3,"opacity",d,c)),p="down"===l.scroll.direction?d.duration:d.durationRev,e||0==p?(s.TweenMax.set(r[0],m),s.TweenMax.set(o[0],h)):(s.TweenMax.to(r[0],p,m),s.TweenMax.to(o[0],p,h))}})}},calculateTransformations:function(e,t,i,a){return i[t+"yoyo"]&&("scaleX"===t||"scaleY"===t?0>a&&(e=1-(e-1)):"opacity"===t?1>a&&(e=1-(e-1)):1>a&&(e=-e)),"opacity"==t&&i.opacityinvert&&(e=1-e),"undefined"!=typeof i[t+"min"]&&e<i[t+"min"]&&(e=i[t+"min"]),"undefined"!=typeof i[t+"max"]&&e>i[t+"max"]&&(e=i[t+"max"]),("x"===t&&i.xresponsive||"y"===t&&i.yresponsive)&&(e*=n.resize.ratio),e},calculateTransformProperties:function(){var e=this;this.$wrappers.each(function(){var t=a(this),i=t.data(n.defaults.init.dataKey).scroll,r=t.find(".ls-layer"),s=r.data(n.defaults.init.dataKey),o=e.setCenter(i,e.getCenter(e.defaults.centerLayers)),l=e.setY(i,o),d=0>=l?"+":"-";e.setTransformProperties(t,i,d)}),this.transformPropertiesCalculated=!0},setTransformProperties:function(e,t,i){var a=e.find(".ls-layer"),r=a.data(n.defaults.init.dataKey);s.TweenMax.set(e.find(".ls-scroll-transform")[0],{transformOrigin:n.functions.convert.transformOrigin("+"===i?t.shouldBeConverted.transformOrigin:t.shouldBeConverted.transformOriginAlt,e,r,r.elements.$outerStyleWrapper),transformPerspective:t.transformPerspective*r.settings.calculatedratio})},trigger:function(){this.scroll(!0)},reset:function(){this.transformPropertiesCalculated=!1}},filters:{createTransition:function(e,t,i,a){var r=new n.defaults.layer.properties.filter,s={},o;for(o in r)"in"===t?(s[o]=[r[o],r[o]],s[o][0]=i.hasOwnProperty(o)?i[o]:a.hasOwnProperty(o)?a[o]:r[o],s[o][1]=a.hasOwnProperty(o)?a[o]:r[o],e.filter.values.afterIn[o]=s[o][1]):"hover"===t||"loop"===t||"out"===t?(s[o]=[],s[o][0]=i.hasOwnProperty(o)?i[o]:r[o],s[o][1]=a.hasOwnProperty(o)?a[o]:i.hasOwnProperty(o)&&i[o]!==r[o]?i[o]:r[o],"loop"===t&&!0!==e.loop.yoyo&&-1!==e.loop.count&&(e.filter.values.afterLoop[o]=s[o][1])):"bg"===t?(s[o]=[r[o],r[o]],i.hasOwnProperty(o)&&(s[o][0]=i[o]),a.hasOwnProperty(o)&&(s[o][1]=a[o])):void 0;return s},convert:function(e){e=e.split(" ");for(var t={},i=0,a=e.length,r,s,o;i<a;i++)o=e[i].split("("),r=o[0],r.match(/(blur|brightness|contrast|grayscale|hue-rotate|invert|saturate|sepia)/i)&&(s=parseInt(o[1]),t[r]=s);return t},animate:function(e,t){var i=100*e.target[0].p,a;if("object"==typeof t){var r="";for(var o in t)"object"==typeof t[o]&&2===t[o].length&&("blur"===o?(a=t[o][0]<t[o][1]?t[o][0]+Math.abs(t[o][0]-t[o][1])/100*i:t[o][0]-Math.abs(t[o][0]-t[o][1])/100*i,r+=" blur( "+a+"px )"):"hue-rotate"===o?(a=t[o][0]<t[o][1]?t[o][0]+Math.abs(t[o][0]-t[o][1])/100*i:t[o][0]-Math.abs(t[o][0]-t[o][1])/100*i,r+=" hue-rotate( "+a+"deg )"):(a=t[o][0]<t[o][1]?t[o][0]+Math.abs(t[o][0]-t[o][1])/100*i:t[o][0]-Math.abs(t[o][0]-t[o][1])/100*i,r+=" "+o+"( "+a+"% )"));s.TweenMax.set(e.target,{"-webkit-filter":r,filter:r})}}},splitType:{setNodesSequence:function(e,t){var i=function(e,a){if("desc"==a)e=t.slice(0).reverse();else if("rand"==a)e=t.slice(0).sort(function(){return .5-Math.random()});else if("center"==a){var r=Math.floor(t.length/2),s;for(e=[t[r]],s=1;s<=r;s++)e.push(t[r-s],t[r+s]);e.length=t.length}else if("edge"==a){var o=Math.floor(t.length/2),n;for(e=[t[0]],n=1;n<=o;n++)e.push(t[t.length-n],t[n]);e.length=t.length}return e||t},a=i(t,e[1]),r={asc:"desc",desc:"asc"}[e[1]]||e[1],s=i(t,r);return[a,s]},resetNodes:function(e,t){a(".ls-ch, .ls-wd, .ls-ln",e).add(t.elements.$wrapper).css({transform:"none",opacity:1}).each(function(){delete this._gsTransform})},setRandomProperties:function(e,t,i,a,r){for(var s in i){for(var o=[],l=0,d=t["text"+r].nodes.length;l<d;l++)o[l]=n.functions.convert.randomProperties(i[s],s,"text"+r.toLowerCase(),e,t);delete a[s],a.cycle[s]=o}i=null}}},media:{defaults:{delay:500,fadeIn:500,fadeOut:750},changeBackgroundVideo:function(e,i){if(n.slides.current.index&&n.slides.current.data.$backgroundVideo.length){var a=n.slides.current.data.$backgroundVideo,r=a.data(n.defaults.init.dataKey).elements.$bgWrapper;i&&(a.data(n.defaults.init.dataKey).mediaProperties.willBePaused=!0,r.fadeOut(n.transitions.media.defaults.fadeOut,function(){a.trigger("stopBackgroundVideo"),a.data(n.defaults.init.dataKey).mediaProperties.willBePaused=!1}))}if(n.slides.next.data.$backgroundVideo.length){var s=n.slides.next.data.$backgroundVideo,o=s.data(n.defaults.init.dataKey).elements.$bgWrapper,d=s.data(n.defaults.init.dataKey).elements.$bgOuterWrapper;l.isMobile&&(t.hasClass("ls-device-is-phone")&&d.hasClass("ls-hide-on-phone")||t.hasClass("ls-device-is-tablet")&&d.hasClass("ls-hide-on-tablet"))||setTimeout(function(){s.trigger("playBackgroundVideo")},e?50:0),e||i?o.fadeIn(n.transitions.media.defaults.fadeOut):o.css({display:"block"}),s.data(n.defaults.init.dataKey).mediaProperties.isPreloaded=!0}}},timers:{defaults:{fadeInDuration:.35,reverseDuration:.3},create:function(e){this.curNext=e||"next",this.reset(),n.gui.timers.bar.$element&&this.bar.createTransition(),n.gui.timers.circle.$element&&this.circle.createTransition(),n.gui.timers.slidebar.$element&&this.slidebar.createTransition()},reverse:function(){if(n.slides.current&&n.slides.current.data&&n.timelines._layers){var e=n.timelines._layers.progress(),t=n.slides.current.data.duration*e/this.defaults.reverseDuration;n.gui.timers.bar.$element&&this.bar._transition&&(n.timelines._layers.remove(n.transitions.timers.bar._transition),this.bar._transition.reverse().timeScale(t)),n.gui.timers.circle.$element&&this.circle._transition&&(n.timelines._layers.remove(n.transitions.timers.circle._transition),this.circle._transition.reverse().timeScale(t)),n.gui.timers.slidebar.$element&&this.slidebar._transition&&(n.timelines._layers.remove(n.transitions.timers.slidebar._transition),this.slidebar._transition.reverse().timeScale(t))}},reset:function(){n.gui.timers.bar.$element&&this.bar._transition&&this.bar.reset(),n.gui.timers.circle.$element&&this.circle._transition&&this.circle.reset(),n.gui.timers.slidebar.$element&&this.slidebar._transition&&this.slidebar.reset()},bar:{reset:function(){this._transition&&(this._transition.kill(),this._transition=!1)},createTransition:function(){this._transition=s.TweenMax.fromTo(n.gui.timers.bar.$element[0],n.slides[n.transitions.curNext].data.duration,{autoCSS:!1,paused:!0,css:{width:0}},{autoCSS:!1,css:{},ease:s.Linear.easeNone,onReverseComplete:function(){n.transitions.timers.bar._transition=!1},onReverseCompleteParams:["{self}"],onComplete:function(e){e.target.style.width="100%",e.target.style.width="calc( 100% - "+n.slider.initial.skinWidth+"px )"},onCompleteParams:["{self}"],onUpdate:function(e){e.target.style.width=Math.min(n.slider.width,n.slider.width*e.progress())+"px"},onUpdateParams:["{self}"]})}},circle:{reset:function(){this._transition&&(n.gui.timers.circle.$element.stop(!0,!0),this._transition.kill(),this._transition=!1)},createTransition:function(){var e=n.gui.timers.circle.$element.find(".ls-ct-right .ls-ct-rotate")[0],t=n.gui.timers.circle.$element.find(".ls-ct-left .ls-ct-rotate")[0],i=n.slides[n.transitions.curNext].data.duration;this._transition=new s.TimelineMax({paused:!0}).fromTo(n.gui.timers.circle.$element[0],n.transitions.timers.defaults.fadeInDuration,{autoCSS:!1,immediateRender:!0,css:{opacity:0,display:"block"}},{autoCSS:!1,css:{opacity:n.gui.timers.circle.$element.data("original").opacity}}).fromTo(e,i/2,{autoCSS:!1,css:{rotation:0}},{autoCSS:!1,css:{rotation:180},ease:s.Linear.easeNone},0).fromTo(t,i/2,{autoCSS:!1,css:{rotation:0}},{autoCSS:!1,css:{rotation:180},ease:s.Linear.easeNone},i/2)}},slidebar:{reset:function(){this._transition&&(this._transition.kill(),this._transition=!1)},createTransition:function(){var e=this;e._transition=new s.TimelineMax({paused:!0,onReverseComplete:function(){n.transitions.timers.slidebar._transition=!1}}),a.each(n.gui.timers.slidebar.$sliderContainerElement,function(t){e._transition.add(s.TweenMax.fromTo(n.gui.timers.slidebar.$sliderContainerElement[t][0],n.slides[n.transitions.curNext].data.duration,{autoCSS:!1,css:{left:0}},{autoCSS:!1,immediateRender:!1,css:{},ease:s.Linear.easeNone,onComplete:function(e){e.target.style.left="calc( 100% - "+n.gui.timers.slidebar.sliderContainerElementWidth[t]+"px )"},onCompleteParams:["{self}"],onUpdate:function(e){e.target.style.left=(n.gui.timers.slidebar.containerElementWidth[t]-n.gui.timers.slidebar.sliderContainerElementWidth[t])*e.progress()+"px"},onUpdateParams:["{self}"]}),0),e._transition.add(s.TweenMax.fromTo(n.gui.timers.slidebar.$progressBarElement[t][0],n.slides[n.transitions.curNext].data.duration,{autoCSS:!1,css:{width:0}},{autoCSS:!1,css:{},ease:s.Linear.easeNone,onComplete:function(e){e.target.style.width="100%"},onCompleteParams:["{self}"],onUpdate:function(e){e.target.style.width=n.gui.timers.slidebar.elementWidth[t]*e.progress()+"px"},onUpdateParams:["{self}"]}),0)})}}},scrollscene:{min:1e-6,animate:function(e){if(n.timelines._layers){var t=l.scroll.top-n.slider.wrapperOffset.top+this.playFrom,e=e&&"start"===e?this.min:Math.max(this.min,n.transitions.layers.timeline.totalDuration/n.transitions.scrollscene.maxProgressInPixels*t),i=s.Sine.easeOut,a=this.initialized&&!this.immediateRender?n.o.smoothScrollDuration/1e3:0;if("outside"===n.slider.position.toViewport)return;n.timelines._layers.tweenTo(Math.min(e,n.transitions.layers.timeline.totalDuration),{ease:i}).duration(a),this.initialized=!0,this.immediateRender=!1}}}},n.plugins={load:function(){if(n.o.plugins&&0!==n.o.plugins.length){n.o.plugins=n.plugins.sortByPriority(n.o.plugins);var e=n.o.plugins[0],t="object"==typeof e?e.namespace:e;if(window._layerSlider.plugins[t])n.plugins.init(t,e,!0),n.plugins.load();else if(!n.browser.usesFileProtocol&&"object"==typeof e){if(-1!==window._layerSlider.pluginsBeingLoaded.indexOf(t))return void n.plugins.checkLoaded(t);-1===window._layerSlider.pluginsLoaded.indexOf(t)&&-1===window._layerSlider.pluginsNotLoaded.indexOf(t)?(window._layerSlider.pluginsBeingLoaded.push(t),a.ajax({url:-1===e.js.indexOf(LS_nsProtocol||"http://")&&-1===e.js.indexOf("https://")?(window._layerSlider.pluginsPath?window._layerSlider.pluginsPath:window._layerSlider.scriptPath+"/../plugins/")+e.js:e.js,dataType:"script",success:function(){n.plugins.init(e.namespace,e,!0),window._layerSlider.pluginsLoaded.push(t)},error:function(e,i,a){window.console&&(console.error(n.defaults.slider.errorText,t,"plugin has not been loaded!"),console.error("Additional error info:",a)),window._layerSlider.pluginsNotLoaded.push(t)},complete:function(){window._layerSlider.pluginsBeingLoaded.splice(window._layerSlider.pluginsBeingLoaded.indexOf(t),1),n.plugins.load()}})):(n[t]||-1!==window._layerSlider.pluginsNotLoaded.indexOf(t)?n.o.plugins.splice(0,1):n.plugins.init(t,e),n.plugins.load())}else n.browser.usesFileProtocol?(window.console&&(console.error(n.defaults.slider.errorText,"Cannot load plugins on file:// protocol."),console.info("Please include the plugin files manually.")),n.o.plugins.splice(0,1),n.plugins.load()):(window.console&&(console.error(n.defaults.slider.errorText,"Plugin files are missing!"),console.info("Plugin \""+t+"\" has been added in slider init options, but the source files are not found on page.")),n.o.plugins.splice(0,1),n.plugins.load())}else n.slider.check.initialized()},init:function(e,i,s){n.initializedPlugins[e]=new window._layerSlider.plugins[e](n,t,r,i.settings),window._layerSlider.checkVersions(n.initializedPlugins[e].pluginData.requiredLSVersion,n.plugin.version)?(i.css&&s&&a("<link rel=\"stylesheet\" href=\""+(-1===i.css.indexOf(LS_nsProtocol||"http://")&&-1===i.css.indexOf("https://")?(window._layerSlider.pluginsPath?window._layerSlider.pluginsPath:window._layerSlider.scriptPath+"/../plugins/")+i.css:i.css)+"\">").appendTo("head"),n.initializedPlugins[e].init&&n.initializedPlugins[e].init()):window.console&&console.error(n.defaults.slider.errorText,e,"plugin has not been loaded! Required LayerSlider version:",n.initializedPlugins[e].pluginData.requiredLSVersion,"(you have:",n.plugin.version+")"),n.o.plugins.splice(0,1)},checkLoaded:function(e){n.intervals.pluginLoaded=setInterval(function(){(-1!==window._layerSlider.pluginsLoaded.indexOf(e)||-1!==window._layerSlider.pluginsNotLoaded.indexOf(e))&&-1===window._layerSlider.pluginsBeingLoaded.indexOf(e)&&(clearInterval(n.intervals.pluginLoaded),delete n.intervals.pluginLoaded,n.plugins.load())},100)},events:{},addFunction:function(e,t,a){if(Array.isArray(e))for(var r=0,s;r<e.length;r++)s=e[r],n.plugins.events[s]||(n.plugins.events[s]={}),n.plugins.events[s][t]=a;else n.plugins.events[e]||(n.plugins.events[e]={}),n.plugins.events[e][t]=a},callFunctions:function(e,t){for(var i in n.plugins.events[e])n.plugins.events[e][i](t)},getLayersByEffect:function(e){var t=a(),i;return n.slider.get.effectLayers().each(function(r,s){for(var r in a(s).data("ls-effects"))i=a(s),i.data("ls-effects")[r].effect==e&&(i.data(e,i.data("ls-effects")[r]),t=t.add(s))}),t},sortByPriority(e){return e.sort(function(e,t){var i=_layerSliderEffectsPriority.indexOf(e),a=_layerSliderEffectsPriority.indexOf(t);return-1===i&&-1===a?0:-1===i?1:-1===a?-1:i-a})}},n.performance={},n.slider={shouldResize:!0,thumbnails:[],state:{isHidden:!1,isPaused:!1,preloadingImages:!1,readyForStart:!1,changingSlides:!1,animatingSlides:!1},offset:{},position:{},isBusy:function(){return this.state.preloadingImages||this.state.changingSlides||this.state.animatingSlides},load:function(){return!!document.body.contains(e)&&void(n.api.hasEvent("sliderWillLoad")&&n.api.triggerEvent("sliderWillLoad"),n.slider.set.global())},set:{global:function(){if(n.originalMarkup=t[0].outerHTML,n.userInitOptions=n.functions.convert.properties(n.functions.convert.oldProperties(i)),n.meta={},n.o=a.extend(!0,{},n.defaults.init.options,n.userInitOptions),n.o.forceLayersOutDuration/=1e3,n.o.forceLayersOutDuration=0<n.o.forceLayersOutDuration?n.o.forceLayersOutDuration:.75,n.o.sliderFadeInDuration/=1e3,window.console&&!0!==n.o.hideWelcomeMessage&&!0!==window._layerSlider.hideWelcomeMessage){window._layerSlider.hideWelcomeMessage=!0;var e=window.console.info?"info":"log",r=window.LS_Meta&&window.LS_Meta.v?" | WP Plugin: "+window.LS_Meta.v:"";console[e]("LayerSlider initialized | core: "+n.plugin.version+"-"+n.plugin.release+r),console[e]("Find updates and docs @ https://layerslider.com/")}var s={namespace:"debug",js:"debug/layerslider.debug.js",css:"debug/layerslider.debug.css"};-1!==document.location.hash.indexOf("debug")&&window.console&&("object"==typeof n.o.plugins?n.o.plugins.push(s):n.o.plugins=[s]),(window._layerSlider.currentScript||window._layerSlider.lsScript)&&(window._layerSlider.scriptPath=(window._layerSlider.currentScript||window._layerSlider.lsScript).src.replace(/\\/g,"/").replace(/\/[^\/]*$/,"")),n.o.silentMode&&(n.slider.$silentWrapper=a("<ls-silent-wrapper></ls-silent-wrapper>"),n.slider.$silentWrapper.append(t).prependTo("body")),"string"==typeof n.o.getData&&(n.o.getData=[n.o.getData]),"object"==typeof n.o.plugins?n.plugins.load():n.slider.check.initialized()},styles:function(){var i=n.slider,d=t.parent(),p=e.style,s=window.getComputedStyle(e,null),u=parseInt(e.clientWidth),c=parseInt(e.clientHeight),m=parseInt(d.width()),h=parseInt(d.height()),g=n.o.layersContainerWidth,y=n.o.layersContainerHeight,f=n.o.type.toLowerCase(),x,v,S,b,w,T,C,O,k,P,L,I,_,$,B,W,D,F,A,N,z,M,V,R;switch(n.debugMode&&n.debug.add("group","sliderInit.style"),n.o.width?x=-1==n.o.width.indexOf("%")?parseInt(n.o.width):n.o.width:p.width?x=-1==p.width.indexOf("%")?parseInt(p.width):p.width:0<g?(x=g,n.debugMode&&n.debug.add("warn","sliderInit.noWidth",g)):(x=u,n.debugMode&&n.debug.add("warn","sliderInit.noWidth2",u)),S=x,n.o.height?v=-1==n.o.height.indexOf("%")?parseInt(n.o.height):n.o.height:p.height?v=-1==p.height.indexOf("%")?parseInt(p.height):p.height:0<y?(v=y,n.debugMode&&n.debug.add("warn","sliderInit.noHeight",y)):(v=c,n.debugMode&&n.debug.add("warn","sliderInit.noHeight2",h)),b=v,w=""===p.maxWidth?0:-1===p.maxWidth.indexOf("px")?p.maxWidth:parseInt(p.maxWidth),"undefined"==typeof n.userInitOptions.type&&(0<g&&0<y||"100%"===x&&"100%"===v?f="fullsize":0>=g&&0>=y&&(0>=n.o.responsiveUnder||0<n.o.responsiveUnder&&n.o.sliderVersion)?"undefined"!=typeof n.o.responsive&&!1===n.o.responsive?f="fixedsize":f="responsive":0<n.o.responsiveUnder&&(f="fullwidth")),f){case"fullwidth":-1!==x.indexOf("%")&&(n.debugMode&&n.debug.add("warn","sliderInit.percWidth",[f,x,u]),x=u),0>=g&&(g=x,n.debugMode&&n.debug.add("warn","sliderInit.conWidth",[f,x])),0>=n.o.responsiveUnder&&(n.o.responsiveUnder=g,n.debugMode&&n.debug.add("warn","sliderInit.fullwidth",g)),-1!==v.indexOf("%")&&(C=h/(100/parseInt(v)),n.debugMode&&n.debug.add("warn","sliderInit.fullwidth2",[f,v,C]),v=C),0>=y&&(y=v);break;case"fullsize":-1!==x.indexOf("%")&&(T=0<g?g:m,n.debugMode&&n.debug.add("warn","sliderInit.fullsize",[f,x,T,m,g]),x=T),0>=g&&(g=x,n.debugMode&&n.debug.add("warn","sliderInit.conWidth",[f,x])),-1!==v.indexOf("%")&&(C=0<y?y:o.height()/(100/parseInt(v)),n.debugMode&&n.debug.add("warn","sliderInit.fullsize2",[f,v,C,o.height(),y]),v=C),0>=y&&(y=v,n.debugMode&&n.debug.add("warn","sliderInit.conHeight",[f,v]));break;case"fixedsize":break;default:n.userInitOptions.type=n.o.type=f="responsive",n.o.responsiveUnder=-1,-1!==x.indexOf("%")&&(x=u,n.debugMode&&n.debug.add("warn","sliderInit.percWidth",[f,x,u])),-1!==v.indexOf("%")&&(x=c,n.debugMode&&n.debug.add("warn","sliderInit.responsive",[f,v,c])),n.debugMode&&0<g&&n.debug.add("warn","sliderInit.conWidth2",[f,g]),n.debugMode&&0<y&&n.debug.add("warn","sliderInit.conHeight2",[f,y]);}if(t.addClass("ls-container ls-"+f),t.parent().addClass("ls-direction-fix"),n.userInitOptions.slideBGSize||"responsive"!==f||!n.userInitOptions.hasOwnProperty("sliderVersion")||n.userInitOptions.sliderVersion||(n.o.slideBGSize="auto",n.debugMode&&n.debug.add("warn","sliderInit.bgCover",f)),n.o.slideBGSize=n.o.slideBGSize.replace("100% 100%","stretch"),O=0<g?g:x,k=0<y?y:v,I=e.style.marginLeft,"auto"===I?P="auto":""===I?P=parseInt(s.getPropertyValue("margin-left")):(P=parseInt(e.style.marginLeft),$=!0),_=e.style.marginRight,"auto"===_?L="auto":""===_?L=parseInt(s.getPropertyValue("margin-right")):(L=parseInt(e.style.marginRight),B=!0),P===L&&(""===I&&""===_&&(W=P,P="auto",L="auto"),t.css({marginLeft:"auto",marginRight:"auto"})),D=""===p.paddingLeft?parseInt(t.css("padding-left")):parseInt(p.paddingLeft),A=""===p.paddingRight?parseInt(t.css("padding-right")):parseInt(p.paddingRight),F=""===p.paddingTop?parseInt(t.css("padding-top")):parseInt(p.paddingTop),N=""===p.paddingBottom?parseInt(t.css("padding-bottom")):parseInt(p.paddingBottom),z=""===p.borderLeftWidth?parseInt(t.css("border-left-width")):parseInt(p.borderLeftWidth),V=""===p.borderRightWidth?parseInt(t.css("border-right-width")):parseInt(p.borderRightWidth),M=""===p.borderTopWidth?parseInt(t.css("border-top-width")):parseInt(p.borderTopWidth),R=""===p.borderBottomWidth?parseInt(t.css("border-bottom-width")):parseInt(p.borderBottomWidth),i.initial={type:f,width:x,height:v,originalWidth:S,originalHeight:b,percW:x/100,percH:v/100,layersWidth:g,layersHeight:y,ratio:O/k,maxWidth:w,marginLeft:P,marginRight:L,marginTop:n.o.marginTop,marginBottom:n.o.marginBottom,paddingLeft:D,paddingTop:F,paddingRight:A,paddingBottom:N,borderLeftWidth:z,borderTopWidth:M,borderRightWidth:V,borderBottomWidth:R,skinWidth:D+A+z+V,skinHeight:F+N+M+R},n.debugMode&&(n.debug.add("log","sliderInit.style",[x,v,S,b,g,y,parseInt(100*(O/k))/100,0<w?w:void 0,[P,L]]),W&&n.debug.add("warn","sliderInit.margin",W)),a("#ls-global").length||(a("html").attr("id")?!a("body").attr("id")&&a("body").attr("id","ls-global"):a("html").attr("id","ls-global")),"static"!==s.getPropertyValue("position")&&"absolute"!==s.getPropertyValue("position")&&(e.style.position="relative"),n.o.insertSelector&&t[n.o.insertMethod](n.o.insertSelector),n.slider.$hiddenWrapper=a("<div class=\"ls-wp-container fitvidsignore ls-hidden\" data-layerslider-uid=\""+r+"\"></div>").addClass(t.attr("class")).prependTo("body"),n.slider.$innerWrapper=a("<div class=\"ls-inner\"></div>"),n.slider.$slideBGColorWrapper=a("<div class=\"ls-slide-bgcolor\"></div>").appendTo(n.slider.$innerWrapper),n.slider.$layersWrapper=a("<div class=\"ls-layers\"></div>").appendTo(n.slider.$innerWrapper),n.slider.$bgVideosWrapper=a("<div class=\"ls-background-videos\"></div>").appendTo(n.slider.$layersWrapper),n.slider.$slideBGWrapper=a("<div class=\"ls-slide-backgrounds\"></div>").appendTo(n.slider.$layersWrapper),n.slider.$innerWrapper.appendTo(t),!0===n.o.hideOnMobile&&l.isMobile?(t.addClass("ls-forcehide"),t.closest(".ls-wp-fullwidth-container").addClass("ls-forcehide"),n.o.autoStart=!1):n.slider.check.showHide(),"sticky"===n.o.scene||"scroll"===n.o.scene){if(n.o.scene)switch(n.slider.isScene=!0,n.o.scene){case"scroll":n.slider.isScrollScene=!0;case"sticky":n.slider.isSticky=!0;}t.parent().is("ls-scene-wrapper")?t.parent().attr("data-scene",n.o.scene).attr("data-layerslider-uid",r):t.wrap("<ls-scene-wrapper data-scene=\""+n.o.scene+"\" data-layerslider-uid=\""+r+"\"></ls-scene-wrapper>"),n.slider.$spacingWrapper=a("ls-scene-wrapper[data-layerslider-uid=\""+r+"\"]"),t.attr("data-scene",n.o.scene)}else n.slider.$spacingWrapper=t;var E=n.slider.isScene&&"scene"===n.o.globalBGFor?n.slider.$spacingWrapper:n.slider.$innerWrapper,H=!1;-1==n.o.globalBGColor.indexOf("gradient")?E.css({backgroundColor:n.o.globalBGColor}):(H=n.o.globalBGColor,n.o.globalBGColor="transparent"),n.o.globalBGImage?E.css({backgroundImage:"url( "+n.o.globalBGImage+" )"+(H?", "+H:""),backgroundRepeat:n.o.globalBGRepeat,backgroundAttachment:n.o.globalBGAttachment,backgroundSize:n.o.globalBGSize,backgroundPosition:n.o.globalBGPosition}):H&&E.css({backgroundImage:H}),"transparent"!=n.o.globalBGColor||!1!==n.o.globalBGImage||H||E.css({background:"none transparent"}),(n.o.preventSliderClip&&n.o.fitScreenWidth&&("fullwidth"===f||"fullsize"===f&&"fitheight"!==n.o.fullSizeMode)||n.slider.isScrollScene||n.slider.isSticky)&&t.parents(":not(body, html)").each(function(){a(this).addClass("ls-overflow-visible")})},options:function(){if(a("html").find("meta[content*=\"WordPress\"]").length&&(n.meta.wpVersion=a("html").find("meta[content*=\"WordPress\"]").attr("content").split("WordPress")[1]),window.LS_Meta&&window.LS_Meta.v?n.meta.lswpVersion=window.LS_Meta.v:a("html").find("script[src*=\"layerslider\"]").length&&-1!=a("html").find("script[src*=\"layerslider\"]").attr("src").indexOf("?")&&(n.meta.lswpVersion=a("html").find("script[src*=\"layerslider\"]").attr("src").split("?")[1].split("=")[1]),"undefined"!=typeof layerSliderTransitions&&(n.t=a.extend({},layerSliderTransitions)),"undefined"!=typeof layerSliderCustomTransitions&&(n.ct=a.extend({},layerSliderCustomTransitions)),n.debugMode&&("undefined"==typeof layerCustomSliderTransitions?"undefined"==typeof layerSliderTransitions&&n.debug.add("warn","sliderInit.noSlideTransitions"):(n.debug.add("log","sliderInit.customTransitions",!1),"undefined"==typeof layerSliderTransitions&&n.debug.add("warn","sliderInit.slideTransitions"))),"number"==typeof n.o.parallaxCenterDegree&&(n.transitions.layers.parallax.defaults.centerDegree=n.o.parallaxCenterDegree),"number"==typeof n.o.parallaxSensitivity&&(n.transitions.layers.parallax.defaults.sensitive=n.o.parallaxSensitivity),n.o.parallaxCenterLayers&&(n.transitions.layers.parallax.defaults.centerLayers=n.o.parallaxCenterLayers),n.o.scrollCenterLayers&&(n.transitions.layers.scroll.defaults.centerLayers=n.o.scrollCenterLayers),n.slider.isSticky&&(a.extend(n.o,{allowFullscreen:!1,playByScroll:!1}),n.slider.isScrollScene&&a.extend(n.o,{autoPauseSlideshow:!1,autoStart:!1,pauseLayers:!1,pauseOnHover:!1,startInViewport:!1})),n.o.playByScroll&&a.extend(n.o,{cycles:-1,startInViewport:!0,pauseOnHover:!1,autoStart:!1}),l.isMobile&&(n.o.pauseOnHover=!1),n.o.noContextMenu&&t.on("contextmenu."+r,function(){return!1}),n.o.startInViewport&&(n.slider.state.waitForGettingInViewport=!0,n.o.playByScroll)){n.slider.positionToViewport=l.scroll.top>n.slider.offset.top-(l.viewport.height-n.slider.height)/2?"under":"over";var e=!0,i=4*n.o.playByScrollSpeed,s,o,d;n.device.scroll.timeout=250,n.transitions.layers.timeline.timeScaleModifier=0,a(document).on("wheel."+r+" touchmove."+r,function(t){l.isMobile?(s=t.originalEvent.touches[0].clientY,s>o?n.device.scroll.direction="up":s<o&&(n.device.scroll.direction="down"),d=o-s,o=s):(n.device.scroll.direction=0<t.originalEvent.deltaY?"down":"up",d=t.originalEvent.deltaY),0===Math.abs(d)||(n.device.scroll.lastDirection?n.device.scroll.lastDirection!==n.device.scroll.direction&&(n.device.scroll.lastDirection=n.device.scroll.direction,n.transitions.layers.timeline.timeScaleModifier=0):n.device.scroll.lastDirection=n.device.scroll.direction,"inside"===n.slider.positionToViewport&&(n.resize.viewport(),0<=d?n.transitions.layers.timeline.scrollForward():n.transitions.layers.timeline.scrollBackwards(),e&&(clearTimeout(n.timeouts.scroll),e=!1,n.transitions.layers.timeline.timeScaleModifier=n.transitions.layers.timeline.timeScaleModifier<i?n.transitions.layers.timeline.timeScaleModifier+.25:i,n.timeouts.scroll2=setTimeout(function(){delete n.timeouts.scroll2,e=!0,n.device.scroll.timeout=50<n.device.scroll.timeout?n.device.scroll.timeout-50:50},n.device.scroll.timeout))),n.slider.check.positionToViewport(),n.timeouts.checkPosition=setTimeout(function(){n.slider.check.positionToViewport()},25))})}if(n.slider.canShow=!0,!l.automaticFontSizeRatio){var p=a("<ls-dummy style=\"font-size: 100px; width: 0; height: 0; opacity: 0; position: absolute; overflow: hidden; pointer-events: none;\">Lorem</ls-dummy>").appendTo("body");l.automaticFontSizeRatio=parseFloat(p.css("font-size"))/parseFloat(p[0].style.fontSize)||1,p.remove()}},pictureElements:function(){for(var e=t.find("picture"),i=t.find("source"),r=0,o=i.length,n;r<o;r++)n=a(i[r]),!n.attr("src")&&n.attr("data-src")&&n.attr("src",n.attr("data-src")),!n.attr("srcset")&&n.attr("data-srcset")&&n.attr("srcset",n.attr("data-srcset"));for(var l=0,d=e.length;l<d;l++){var u=a(e[l]),c=u.find("img");if(u.is(".ls-bg, .ls-tn")||c.is(".ls-bg, .ls-tn")){var m=c[0],h=u.attr("class");!c.attr("src")&&c.attr("data-src")&&c.attr("src","data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="),!c.attr("srcset")&&c.attr("data-srcset")&&c.attr("srcset",c.attr("data-srcset")),c.attr("data-src",m.currentSrc||c.attr("data-src")||c.attr("src")),c.removeAttr("src srcset").addClass(h).prependTo(c.closest(".ls-slide")),u.remove()}else u.find("img").appendTo(u).removeAttr("width height data-ls")}},events:function(){o.on("scroll."+r,function(){n.slider.set.offset()}),o.on("touchmove."+r,function(e){var t=e.touches?e.touches:e.originalEvent.touches;1==t.length&&(self.touchX=t[0].clientX)}),o.on("resize."+r,function(){n.slider.check.showHide(),n.transitions.scrollscene.immediateRender=!0,"inside"===n.slider.positionToViewport&&n.o.playByScroll&&n.resize.viewport(),n.slider.shouldResize&&(!l.isMobile||l.isMobile&&l.viewport.width!==l.viewport.lastWidth||n.slider.isPopup)&&n.resize.all(),n.slider.set.offset(),n.slider.isScene&&n.resize.scene(),n.slider.isPopup||(n.timeouts.resize&&clearTimeout(n.timeouts.resize),n.resize.once?n.resize.once=!1:n.timeouts.resize=setTimeout(function(){n.resize.once=!0,o.trigger("resize."+r),n.api.methods("resetScroll")},100))}),n.debugMode&&(o.off(".debug"+r),o.on("resize.debug"+r,function(){n.debug.add("log","resize.window",l.viewport.width,!0)})),o.on("hashchange."+r,function(){document.location.hash&&n.slides.deeplink(document.location.hash)}),n.slider.set.offset(),o.trigger("resize."+r),n.o.refreshWaypoint&&window.Waypoint&&Waypoint.refreshAll()},offset:function(){if("none"!==t.css("display")){var i=e.getBoundingClientRect(),a=n.slider.position.toViewportForPerformance,r=n.slider.position.toViewport;if(n.slider.get.offset(i),n.slider.get.position(i),n.slider.position.toViewportX=0<n.slider.position.left-l.viewport.width?n.slider.position.left-l.viewport.width>n.performance.threshold?"after":"insideLimit":0>n.slider.position.right?n.slider.position.right<-n.performance.threshold?"before":"insideLimit":"inside",n.slider.position.toViewportY=0<n.slider.position.top-l.viewport.height?n.slider.position.top-l.viewport.height>n.performance.threshold?"below":"insideLimit":0>n.slider.position.bottom?n.slider.position.bottom<-n.performance.threshold?"above":"insideLimit":"inside",n.slider.position.toViewportYForSkipViewportLayers=n.slider.position.toViewportY,n.slider.state.waitForGettingInViewport&&(n.slider.position.middle<l.viewport.height&&0<n.slider.position.middle?(n.slider.position.toViewportY="inside","inside"===n.slider.position.toViewportX&&(n.slider.position.toViewport="inside"),n.slider.state.waitForGettingInViewport=!1,n.timelines._layers&&n.timelines._layers.play(),n.o.animateFirstSlide&&n.slideshow.firstStart&&n.slider.state.readyForStart&&(n.resize.layers({callback:n.api.resumeCallback}),n.api.resumeCallback=!1),n.debugMode&&n.debug.add("log","slideshow.inviewport",!1)):n.slider.position.toViewportY="outside"),-1!==n.slider.position.toViewportX.indexOf("inside")&&"insideLimit"==n.slider.position.toViewportY||-1!==n.slider.position.toViewportY.indexOf("inside")&&"insideLimit"==n.slider.position.toViewportX?(n.slider.position.toViewport="insideLimit",n.slider.position.toViewportForPerformance="inside"):"inside"==n.slider.position.toViewportX&&"inside"==n.slider.position.toViewportY?(n.slider.position.toViewport="inside",n.slider.position.toViewportForPerformance="inside"):(n.slider.position.toViewport="outside",n.slider.position.toViewportForPerformance="outside"),n.o.performanceMode&&a!==n.slider.position.toViewportForPerformance&&("inside"===n.slider.position.toViewportForPerformance?(n.performance.sliderIsInviewport=!0,n.api.methods("resumeSlider","performanceMode")):(n.performance.sliderIsInviewport=!1,n.api.methods("pauseSlider","performanceMode"))),(n.slider.isScrollScene||n.slider.isSticky)&&!n.slider.$spacingWrapper.is("[data-disabled-scene]")){var s=n.slider.$spacingWrapper[0].getBoundingClientRect(),d=(l.viewport.height-n.slider.height)/2;switch(n.o.stickTo||"center"){case"top":n.slider.stickLimit=0;break;case"center":n.slider.stickLimit=d;break;case"bottom":n.slider.stickLimit=2*d;}switch(n.o.playFrom||"stick"){case"stick":n.transitions.scrollscene.playFrom=n.slider.stickLimit;break;case"top":n.transitions.scrollscene.playFrom=0;break;case"center":n.transitions.scrollscene.playFrom=l.viewport.height/2;break;case"bottom":n.transitions.scrollscene.playFrom=l.viewport.height;}n.slider.wrapperPosition={left:s.left,top:s.top,middleForScrollTransition:s.top+s.height/2-l.viewport.height/2},n.slider.wrapperOffset={left:s.left+l.scroll.left,right:s.left+n.slider.width+l.scroll.left,top:s.top+l.scroll.top,bottom:s.bottom+n.slider.height+l.scroll.top,width:s.width,height:s.height},n.slider.state.shouldAnimateScrollSnene=!1,s.top<=n.transitions.scrollscene.playFrom&&(n.slider.state.shouldAnimateScrollSnene=!0),s.top>n.slider.stickLimit?("disabled"!==n.slider.state.sticky||n.slider.isScrollScene&&!n.transitions.scrollscene.initialized)&&(n.slider.state.sticky="disabled",n.slider.state.shouldAnimateScrollSnene=!0):0>s.bottom-n.slider.height-n.slider.stickLimit?("over"!==n.slider.state.sticky||n.slider.isScrollScene&&!n.transitions.scrollscene.initialized)&&(n.slider.state.sticky="over",n.slider.state.shouldAnimateScrollSnene=!0):s.top<=n.slider.stickLimit&&s.bottom>-n.slider.stickLimit&&("enabled"!==n.slider.state.sticky&&(n.slider.state.sticky="enabled"),n.slider.state.shouldAnimateScrollSnene=!0),n.slider.isScrollScene&&(n.timelines._layers&&n.slider.state.shouldAnimateScrollSnene&&n.transitions.scrollscene.animate(),n.slider.state.shouldAnimateScrollSnene&&(n.slider.fixScrollScene=!0),s.top>n.transitions.scrollscene.playFrom&&n.timelines.has(n.timelines._layers)&&n.timelines._layers.time()>n.transitions.scrollscene.min&&n.slider.fixScrollScene&&(n.slider.fixScrollScene=!1,n.transitions.scrollscene.animate("start")))}n.slider.state.isNotDisplayed&&(n.slider.state.isNotDisplayed=!1,n.resize.all(),n.slider.check.positionToViewport(),o.trigger("scroll"))}else n.slider.state.isNotDisplayed=!0},attributes:function(){t.attr("data-current-slide",n.slides.current.index)}},get:{offset:function(t){t=t||e.getBoundingClientRect(),n.slider.offset={left:t.left+l.scroll.left,right:t.left+n.slider.width+l.scroll.left,top:t.top+l.scroll.top,bottom:t.bottom+n.slider.height+l.scroll.top}},position:function(t){t=t||e.getBoundingClientRect(),n.slider.position={left:t.left,center:t.left+n.slider.width/2,right:t.right,top:t.top,middle:t.top+n.slider.height/2,bottom:t.bottom}},scrollTop:function(e,t){var i=parseFloat(e.offset().top)+(t.offset||0);switch(t.scrollposition){default:case"top":break;case"middle":i=i-window._lsData.viewport.height/2+e.height()/2;break;case"bottom":i=i+e.height()-window._lsData.viewport.height;}return i},effectLayers:function(){return t.find("[data-ls-effects]")}},check:{initialized:function(){n.debugMode&&n.debug.add("log","sliderInit.info",[n.plugin.version,n.plugin.releaseDate,n.userInitOptions.sliderVersion||"n/a or slider version is pre 6.0.0",t.attr("id"),r,a.fn.jquery,n.meta.lswpVersion,n.meta.wpVersion],!0),n.slider.initialized||(n.slider.initialized=!0,this.skins())},skins:function(){n.o.skin&&""!==n.o.skin&&n.o.skinsPath&&""!==n.o.skinsPath?n.gui.skin.load():n.slider.init()},showHide:function(){l.isMobile&&!1!==n.o.hideOnMobile||(l.viewport.width<n.o.hideUnder||l.viewport.width>n.o.hideOver&&0<n.o.hideOver?n.slider.hide():n.slider.show())},visibility:function(){var e=!!n.slider.$innerWrapper.width();e?n.slider.state.isHidden&&(n.slider.state.isHidden=!1,n.resize.all({forceToGetParentWidth:!0})):n.slider.state.isHidden=!0},positionToViewport:function(){if(delete n.timeouts.checkPosition,n.o.playByScroll&&n.device.scroll.direction){var e="down"===n.device.scroll.direction?l.scroll.top:n.slider.offset.top-(l.viewport.height-n.slider.height)/2,t="down"===n.device.scroll.direction?n.slider.offset.top-(l.viewport.height-n.slider.height)/2:l.scroll.top;(e>t&&("up"===n.device.scroll.direction&&"under"===n.slider.positionToViewport||"down"===n.device.scroll.direction&&"over"===n.slider.positionToViewport)||l.document.height<=l.viewport.height||n.slider.height<l.viewport.height&&("up"===n.device.scroll.direction&&0>=l.scroll.top&&n.slider.offset.top+n.slider.height/2<l.viewport.height/2||"down"===n.device.scroll.direction&&l.scroll.top>=l.document.height-l.viewport.height&&n.slider.offset.top+n.slider.height/2>l.scroll.top+l.viewport.height/2))&&(n.slider.positionToViewport="inside",n.resize.viewport(),n.device.scroll.disable())}}},init:function(){return clearTimeout(n.timeouts.skinLoad1),clearTimeout(n.timeouts.skinLoad2),clearTimeout(n.timeouts.skinLoad3),clearTimeout(n.timeouts.skinLoad4),n.plugins.callFunctions("setSliderStylesBefore",{}),n.slider.set.styles(),n.plugins.callFunctions("setSliderOptionsBefore",{}),n.slider.set.options(),n.slider.set.pictureElements(),n.plugins.callFunctions("initSlidesBefore",{}),n.slides.init(),n.device.fullscreen.set(),n.media.init(),n.gui.timers.init(),n.gui.loadingIndicator.init(),n.preload.init(),n.gui.shadow.init(),n.navigation.init(),n.slideshow.init(),n.slides.set.firstSlide(),n.gui.navigation.init(),n.gui.media.init(),n.resize.slider(),n.yourLogo.init(),n.slider.set.events(),n.api.hasEvent("sliderDidLoad")&&n.api.triggerEvent("sliderDidLoad",n.api.eventData()),n.functions.setStates(n.slider,{isLoaded:!0}),n.slider.state.shouldBeDestroyed?void n.api.methods("destroy"):void(!n.slider.isPopup&&(n.intervals.checkSliderVisibility=setInterval(function(){n.slider.check.visibility()},500)),n.slideshow.changeTo(n.slides.first.index))},hide:function(){t.addClass("ls-forcehide"),t.closest(".ls-wp-fullwidth-container").addClass("ls-forcehide"),t.closest(".ls-popup").addClass("ls-forcehide"),t.closest(".ls-popup").prev(".ls-popup-overlay").addClass("ls-forcehide")},show:function(){t.removeClass("ls-forcehide"),t.closest(".ls-wp-fullwidth-container").removeClass("ls-forcehide"),t.closest(".ls-popup").removeClass("ls-forcehide"),t.closest(".ls-popup").prev(".ls-popup-overlay").removeClass("ls-forcehide")}},n.functions={getData:function(e,t){return!(n.o.getData&&-1!==n.o.getData.indexOf(e)&&(n.api.triggerEvent("getData",{property:e,value:t}),n.o.destroyAfter))||(n.api.methods("destroy",!0),!1)},convert:{parallaxOrigin:function(e,t,a){if("scroll"===a.event)return{x:0,y:0};if("string"!=typeof e)e="slidercenter slidermiddle";else{var r=e.split(" ");2===r.length&&{sliderleft:1,slidercenter:1,sliderright:1,layerleft:1,layercenter:1,layerright:1}[r[0]]&&{slidertop:1,slidermiddle:1,sliderbottom:1,layertop:1,layermiddle:1,layerbottom:1}[r[1]]||(e="slidercenter slidermiddle")}for(var s=e.split(" "),o=0,l=0,d=n.slider.offset,p=n.slider.width,u=n.slider.height,c=t.offset(),m=t.outerWidth(),h=t.outerHeight(),g=0;2>g;g++){var y=s[g],f=0===y.indexOf("slider"),x=0==g,v=y.replace(/^(slider|layer)/,""),S=f?d:c,b=f?p:m,w=f?u:h;x?"left"===v?o=S.left:"center"===v?o=S.left+b/2:"right"===v?o=S.left+b:void 0:"top"===v?l=S.top:"middle"===v?l=S.top+w/2:"bottom"===v?l=S.top+w:void 0}return{x:o,y:l}},transformOrigin:function(e,t,i,r){var s=a.trim(e),o=s.split(" "),l=r[0].style,d="",p=["Left","Top"],u=[n.slider.width,n.slider.height];s=s.replace("sliderleft","0").replace("sliderright","100%").replace("slidercenter","50%").replace("slidermiddle","50%").replace("slidertop","0").replace("sliderbottom","100%").replace("left","0").replace("right","100%").replace("center","50%").replace("middle","50%").replace("top","0").replace("bottom","100%").split(" ");for(var c=0;c<s.length;c++)-1===o[c].indexOf("slider")?d+=-1===s[c].indexOf("%")?-1===s[c].indexOf("em")?parseInt(s[c])*i.settings.calculatedratio+"px ":parseFloat(s[c])*parseInt(t.css("font-size"))+"px ":s[c]+" ":(n.transitions.layers.timeline.shouldRestart=!0,d+=2>c?u[c]/(100/parseInt(s[c]))-parseInt(l[p[c].toLowerCase()])-parseInt(l["margin"+p[c]])+"px ":"0px");return a.trim(d)},specialValuesOfTransformOrigin:function(e){return e=e.replace("sliderleft","0").replace("sliderright","100%").replace("slidercenter","50%").replace("slidermiddle","50%").replace("slidertop","0").replace("sliderbottom","100%").replace("left","0").replace("right","100%").replace("center","50%").replace("middle","50%").replace("top","0").replace("bottom","100%").split(" "),e},nodesTransformOrigin:function(e,t,i,r){for(var s=!("object"!=typeof e),o=t.length,l=[],d=r[0].style,p=["left","top"],u=function(e,r){var s=a(t[r]),o=parseInt(s.css("font-size")),u=s.position(),c=a.trim(e),m=c.split(" "),h="",g=[n.slider.width,n.slider.height];c=n.functions.convert.specialValuesOfTransformOrigin(c);for(var y=0;y<c.length;y++)-1===m[y].indexOf("slider")?h+=-1===c[y].indexOf("%")?-1===c[y].indexOf("em")?parseInt(c[y])*i.settings.calculatedratio+"px ":parseFloat(c[y])*o+"px ":c[y]+" ":(n.transitions.layers.timeline.shouldRestart=!0,h+=2>y?g[y]/(100/parseInt(c[y]))-parseInt(u[p[y]])-parseInt(d[p[y].toLowerCase()])+"px ":"0px");l.push(a.trim(h))},c=0,m=!!s&&e.length,h=0;h<t.length;h++)s?(u(e[c],h),c++,c==m&&(c=0)):u(e,h);return l},easing:function(e,t){if("string"==typeof e){var i,a,r;return e=e.toLowerCase(),-1!==e.indexOf("swing")||-1!==e.indexOf("linear")?i=s.Linear.easeNone:(a=e.match(/(easeinout|easein|easeout)(.+)/)[2],r=s[a.charAt(0).toUpperCase()+a.slice(1)],-1===e.indexOf("easeinout")?-1===e.indexOf("easeout")?-1!==e.indexOf("easein")&&(i=t?r.easeOut:r.easeIn):i=t?r.easeIn:r.easeOut:i=r.easeInOut),i}return e},transition:function(e,t,i,r){var s=a.extend({},e);return a.each({de:"delay",rotate:"rotation",rotateX:"rotationX",rotateY:"rotationY"},function(e,t){e in s&&(s[t]=s[e],delete s[e])}),"after"===i?s.scaleX=s.scaleY=s.scaleZ=1:s.scale3d!==r&&(s.scaleX=s.scaleY=s.scaleZ=s.scale3d,delete s.scale3d),s.delay&&(s.delay="after"===i?s.delay/1e3:s.delay),"undefined"==typeof t&&(t="easeInOutQuart"),s.ease=n.functions.convert.easing(t),s},properties:function(e,t,i,a,r){if("string"==typeof e)return n.functions.convert._properties(e,t,i,a,r);if("object"==typeof e){for(var s in e)e[s]=n.functions.convert._properties(e[s],t,i,a,r);return e}return e},_properties:function(e,t,r,o){var l=!1;if("string"==typeof e&&-1===e.indexOf(n.defaults.init.staggerSplitChar)&&e.charAt(0)===n.defaults.init.openingBracket&&-1===e.indexOf("..")){var d=a.trim(e),p=d.match(/^\[\s*(-?\d+(?:\.\d+)?)\s*([\+\-\*\/])\s*(-?\d+(?:\.\d+)?)\s*\]$/),u=d.match(/^\[\s*([\+\-\*\/])\s*(-?\d+(?:\.\d+)?)\s*\]$/);(p||u)&&(p?l=p:u&&(l=u))}if(-1!==["enable","enabled","true"].indexOf(e))return!0;if(-1!==["disable","disabled","false","undefined","null"].indexOf(e))return!1;if(l){var c=[],m=0,h=o?o.text().length:100,g,y;if(4===l.length?(m=parseFloat(l[1]),g=l[2],y=parseFloat(l[3])):3===l.length&&(m=0,g=l[1],y=parseFloat(l[2])),g&&!isNaN(y)){for(var f=0;f<h;f++)0==f?c.push(m):("+"===g?m+=y:"-"===g?m-=y:"*"===g?m*=y:"/"===g?m/=y:void 0,c.push(m));return c}}else{if("string"==typeof e&&-1!==e.indexOf(n.defaults.init.staggerSplitChar)&&e.charAt(0)!==n.defaults.init.openingBracket){for(var x=e.split(n.defaults.init.staggerSplitChar),c=[],v=0;v<x.length;v++)c[v]=a.isNumeric(x[v])?parseFloat(a.trim(x[v])):a.trim(x[v]);return c}return t?"NaN"==""+parseInt(e)?0:parseInt(e):a.isNumeric(e)?parseFloat(e):e}},oldProperties:function(e){return a.each({firstLayer:"firstSlide",loops:"cycles",forceLoopNum:"forceCycles",layersContainer:"layersContainerWidth",sublayerContainer:"layersContainerWidth",randomSlideshow:"shuffleSlideshow"},function(t,i){t in e&&(e[i]=e[t],delete e[t])}),e},randomProperties:function(e,t,i,s,o,l){var s=s||!1,o=o||!!s&&s.data(n.defaults.init.dataKey),d="Width",p=!1,u=!1;"number"!=typeof e||isNaN(e)||(e=e.toString()),(-1!==t.indexOf("height")||-1!==t.indexOf("top")||-1!==t.indexOf("y"))&&(d="Height"),(-1!==t.indexOf("duration")||-1!==t.indexOf("delay")||-1!==t.indexOf("start")||-1!==t.indexOf("scale")||-1!==t.indexOf("opacity")||-1!==t.indexOf("rotat")||-1!==t.indexOf("skew"))&&(l=!0),o&&-1!==e.indexOf(n.defaults.init.staggerSplitChar)&&e.charAt(0)!==n.defaults.init.openingBracket&&(p=!0),-1!==e.indexOf("random")&&-1!==e.indexOf("(")&&-1!==e.indexOf(",")&&-1!==e.indexOf(")")?e=e.split("(")[1].split(")")[0].replace(",",n.defaults.init.rangeSplitChar):e.charAt(0)===n.defaults.init.openingBracket&&e.charAt(e.length-1)===n.defaults.init.closingBracket&&(e=e.substring(1,e.length-1)),e=e.replace(/,/g,".").replace(/٫/g,".");var c=-1===t.indexOf("scale")&&-1===t.indexOf("opacity")?1:100,m=e,h;if(p){u=!0;var g=i?i+t:t;if(o.randomValues[g]=o.randomValues[g]||{},!o.randomValues[g].r&&(o.randomValues[g].r=(e+"").split(n.defaults.init.staggerSplitChar).map(function(e){return e.trim()}),o.clones&&-1!==i.indexOf("replicator"))){var y;o.clones<o.randomValues[g].r.length?(o.randomValues[g].r=o.randomValues[g].r.slice(0,o.clones),o.randomValues[g].r.reverse()):o.clones>o.randomValues[g].r.length?(o.randomValues[g].r.reverse(),y=o.clones%o.randomValues[g].r.length,y&&(o.randomValues[g].index=o.randomValues[g].r.length-y)):o.randomValues[g].r.reverse()}var h=o.randomValues[g].r,f="number"==typeof o.randomValues[g].index?o.randomValues[g].index:0;f>=h.length&&(f=0),o.randomValues[g].index=f+1;var x=h[f];m=parseFloat(s?n.resize.getXY(s,o,x,d,l):x)}else-1===e.indexOf(n.defaults.init.randomSplitChar)?-1!==e.indexOf(n.defaults.init.rangeSplitChar)&&(u=!0,h=e.split(n.defaults.init.rangeSplitChar),h[0]=parseFloat((s?n.resize.getXY(s,o,h[0],d,l):h[0])*c),h[1]=parseFloat((s?n.resize.getXY(s,o,h[1],d,l):h[1])*c),h.sort(function(e,t){return e-t}),m=Math.floor(Math.random()*(h[1]-h[0]+1)+h[0])/c):(u=!0,h=e.split(n.defaults.init.randomSplitChar),m=h[Math.floor(Math.random()*h.length)].trim(),m=m.charAt(0)===n.defaults.init.openingBracket&&m.charAt(m.length-1)===n.defaults.init.closingBracket?n.functions.convert.randomProperties(m,t,i,s,o):parseFloat(s?n.resize.getXY(s,o,m,d,l):m));return"string"==typeof m&&a.isNumeric(m)?m=parseFloat(m):o&&!u&&(m=n.resize.getXY(s,o,m,d,l)),m},clipProperties:function(e,t,r,s){var o=a.trim(e);if(-1===o.indexOf("polygon")&&-1===o.indexOf("(")){if(/^\d+(?:\.\d+)?%\s+\d+(?:\.\d+)?%(?:\s*,\s*\d+(?:\.\d+)?%\s+\d+(?:\.\d+)?%){3}$/.test(o))return"polygon("+o.replace(/\s*,\s*/g,",")+")"}if(-1!==e.indexOf("polygon")&&-1===e.indexOf("clip")&&-1===e.indexOf("px")&&-1===e.indexOf(", "))return e;var n=e;e=-1===e.indexOf("(")?a.trim(e):a.trim(e.split("(")[1].split(")")[0]);for(var l=-1===e.indexOf(",")?e.split(" "):e.split(","),d=[["0%","0%"],["100%","0%"],["100%","100%"],["0%","100%"]],p=a.isNumeric(t.original.width)?t.original.width:r.outerWidth(),u=a.isNumeric(t.original.height)?t.original.height:r.outerHeight(),m=function(e){return Math.round(100*(e+Number.EPSILON))/100},h=s&&-1!==n.indexOf("rect")?0:100,g=0,y,f;g<l.length;g++)y=l[g].trim(),-1===y.indexOf(" ")?"number"==typeof parseInt(y)&&(0===parseInt(y)&&(y="0%"),0===g?(-1===y.indexOf("%")&&(y=m(parseInt(y)/(u/100))+"%"),d[0][1]=y,d[1][1]=y):1===g?-1===y.indexOf("%")?(-1===y.indexOf("%")&&(y=m(Math.abs(parseInt(y)/(p/100)-h))+"%"),d[1][0]=y,d[2][0]=y):(d[1][0]=100-parseInt(y)+"%",d[2][0]=100-parseInt(y)+"%"):2===g?-1===y.indexOf("%")?(-1===y.indexOf("%")&&(y=m(Math.abs(parseInt(y)/(u/100)-h))+"%"),d[2][1]=y,d[3][1]=y):(d[2][1]=100-parseInt(y)+"%",d[3][1]=100-parseInt(y)+"%"):3===g?(-1===y.indexOf("%")&&(y=m(parseInt(y)/(p/100))+"%"),d[0][0]=y,d[3][0]=y):void 0):(f=y.split(" "),-1===f[0].indexOf("%")&&(f[0]=m(parseInt(f[0])/(p/100))+"%"),d[g][0]=f[0],-1===f[1].indexOf("%")&&(f[1]=m(parseInt(f[1])/(u/100))+"%"),d[g][1]=f[1]);for(var x="polygon(",v=0;v<d.length;v++)x+=d[v].join(" "),v<d.length-1&&(x+=",");return x+=")",x}},getSliderClosestParentElementWithNumericValueOfProperty:function(e){for(var i=t.parents().not(".ls-fullscreen-wrapper"),r=i.length,s=100,o=0,l;o<r;o++)if(l=window.getComputedStyle(i[o]).getPropertyValue(e),"auto"!==l){if(-1!==l.indexOf("px")&&(0<parseInt(l)||n.slider.isPopup))return n.slider.$parentWithNumericWidthValue=a(i[o]),n.slider.parentWithNumericWidthValuePercent=null,a(i[o]);-1!==l.indexOf("%")&&(s=s/100*parseInt(l),n.slider.parentWithNumericWidthValuePercent=s)}},sortArray:function(e,t,a){var s=[],o=e*t,n,l,d,p,u,m,h;switch(a){case"forward":for(n=0;n<e;n++)for(l=0;l<t;l++)s.push(n+l*e);break;case"reverse":for(n=e-1;-1<n;n--)for(l=t-1;-1<l;l--)s.push(n+l*e);break;case"center":for(u=Math.floor(o/2),d=0;d<u;d++)s.push(d);for(p=u;0<=p;p--)s.push(p);break;case"edge":case"mirror":for(u=Math.floor(o/2),d=u;0<d;d--)s.push(d);for(p=0;p<=u;p++)s.push(p);break;case"radial-out":for(m=e/2,h=t/2,n=0;n<e;n++)for(l=0;l<t;l++)s.push(Math.floor(Math.abs(h-l-.5))+Math.floor(Math.abs(m-n-.5)));break;case"radial-in":for(m=e/2,h=t/2,n=0;n<e;n++)for(l=0;l<t;l++)s.push(Math.floor(h-Math.ceil(Math.abs(h-l-.5)))+Math.floor(m-Math.ceil(Math.abs(m-n-.5))));}return s},shuffleArray:function(e){for(var t=e.length,i,a;0!==t;)a=Math.floor(Math.random()*t),t-=1,i=e[t],e[t]=e[a],e[a]=i;return e},countProp:function(e){var t=0;for(var i in e)e.hasOwnProperty(i)&&++t;return t},getDataProp:function(e,t){var i=new RegExp("(?:^|[\\s;])"+t+"\\s*:\\s*([^;\\s]+)","i"),a=e.match(i);return a?a[1]:null},updateDataProp:function(e,t,i){var a=new RegExp("(^|[\\s;])([\\s;]*)"+t+"\\s*:\\s*[^;\\s]+","i");if(a.test(e))return e.replace(a,function(e,a,r){return(a||"")+(r||"")+t+":"+i});var r=e.trim();return";"===r.slice(-1)?r+" "+t+":"+i+" ;":r+"; "+t+":"+i+" ;"},getURL:function(e){return e[0].currentSrc?e[0].currentSrc:e.data("src")?e.data("src"):e.attr("src")},getALT:function(e){return!!e.attr("alt")&&e.attr("alt")},setStates:function(e,t,i){if(e&&e.state){var a=n.slideshow.isPaused();if(i)e.state[t]=i;else for(var r in t)e.state[r]=t[r];var s=n.slideshow.isPaused();e==n.slideshow&&(n.api.hasEvent("slideshowStateDidChange")&&n.api.triggerEvent("slideshowStateDidChange",n.api.eventData()),s!=a&&(s?n.api.hasEvent("slideshowDidPause")&&n.api.triggerEvent("slideshowDidPause",n.api.eventData()):(n.slideshow.start(),n.api.hasEvent("slideshowDidResume")&&n.api.triggerEvent("slideshowDidResume",n.api.eventData()))))}},clearTimers:function(e={}){if(e.timeout&&n.timeouts[e.timeout])clearTimeout(n.timeouts[e.timeout]),delete n.timeouts[e.timeout];else if(!e.timeout)for(var t in n.timeouts)clearTimeout(n.timeouts[t]),delete n.timeouts[t];if(e.interval&&n.intervals[e.interval])clearInterval(n.intervals[e.interval]),delete n.intervals[e.interval];else if(!e.interval)for(var t in n.intervals)clearInterval(n.intervals[t]),delete n.intervals[t];n.plugins.callFunctions("clearTimers",{})},clearTimelines:function(){n.timelines.to([n.timelines,"_slideTransition _layers _layersAlt",null,!0,!0,!0,!0]);for(var e=0;e<n.timelines.slides.length;e++)n.timelines.to([n.timelines.slides[e],"_forceOut _forceOutMirror",null,!0,!0,!0,!0]);t.find(".ls-layer").each(function(){var e=a(this),t=e.data(n.defaults.init.dataKey);for(var i in t.timelines)n.timelines.to([t.timelines,i,null,!0,!0,!0])}),s.TweenMax.killTweensOf(t.find(".ls-bg, .ls-layer, .ls-wrapper, .ls-curtile, .ls-nexttile").get()),t.find(".ls-layer").each(function(){var e=a(this),t=e.data(n.defaults.init.dataKey);t.is.countdown&&n.countdown.stopInterval(t.countdownSettings),t.is.counter&&n.counter.stop(t.counterSettings)})},clearEvents:function(){n.plugins.callFunctions("clearEvents",{}),o.add("body").add(document).add(t).add(t.find("*")).add("."+r).off("."+r+" .debug"+r+" .parallax"+r+" .scroll"+r),window._layerSlider.closePopupsOnEsc&&window._layerSlider.closePopupsOnEsc[r]&&delete window._layerSlider.closePopupsOnEsc[r],delete window._layerSliders[r],t.off()},objectIsEmpty:function(e){return!(e&&"object"==typeof e)||0===Object.keys(e).length},getUID:function(e){for(var t="";t.length<e+2;)t+=Math.random().toString(36).substring(2);return t.substring(2,e+2)}},n.device={scroll:{keys:[32,33,34,35,36,37,38,39,40],disable:function(){window.addEventListener("scroll",this.preventDefault,{passive:!1,capture:!0}),window.addEventListener("wheel",this.preventDefault,{passive:!1,capture:!0}),window.addEventListener("mousewheel",this.preventDefault,{passive:!1,capture:!0}),window.addEventListener("touchmove",this.preventDefault,{passive:!1,capture:!0}),window.addEventListener("keydown",this.preventDefaultForScrollKeys,{capture:!0})},enable:function(){window.removeEventListener("scroll",this.preventDefault,{passive:!1,capture:!0}),window.removeEventListener("wheel",this.preventDefault,{passive:!1,capture:!0}),window.removeEventListener("mousewheel",this.preventDefault,{passive:!1,capture:!0}),window.removeEventListener("touchmove",this.preventDefault,{passive:!1,capture:!0}),window.removeEventListener("keydown",this.preventDefaultForScrollKeys,{capture:!0})},preventDefault:function(t){t=t||window.event,t.preventDefault&&t.preventDefault(),t.returnValue=!1},preventDefaultForScrollKeys:function(t){if(-1!==n.device.scroll.keys.indexOf(t.keyCode))return n.device.scroll.preventDefault(t),!1}},removeSelection:function(){window.getSelection?window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().removeAllRanges():document.selection&&document.selection.empty()},fullscreen:{enter:function(){n.functions.setStates(n.slider,{inFullscreen:!0}),a("body, html").addClass("ls-fullscreen"),n.slider.fullscreenWrapper.requestFullscreen(),t.trigger("mouseleave"),n.device.removeSelection()},exit:function(){n.functions.setStates(n.slider,{inFullscreen:!1}),n.resize.all(),a("body, html").removeClass("ls-fullscreen"),n.device.removeSelection()},toggle:function(){n.device.fullscreen.element()?(n.device.fullscreen.exit(),document.exitFullscreen()):n.device.fullscreen.enter()},set:function(){n.o.allowFullscreen&&(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled)&&(t.wrap("<div class=\"ls-fullscreen-wrapper\"></div>"),n.slider.$fullscreenWrapper=t.closest(".ls-fullscreen-wrapper"),n.slider.fullscreenWrapper=n.slider.$fullscreenWrapper[0],n.slider.$spacingWrapper=n.slider.$fullscreenWrapper,n.slider.fullscreenWrapper.requestFullscreen=n.slider.fullscreenWrapper.requestFullscreen||n.slider.fullscreenWrapper.webkitRequestFullscreen||n.slider.fullscreenWrapper.mozRequestFullScreen||n.slider.fullscreenWrapper.msRequestFullscreen,document.exitFullscreen=document.exitFullscreen||document.webkitExitFullscreen||document.mozCancelFullScreen||document.msExitFullscreen,a(document).on("fullscreenchange."+r+" webkitfullscreenchange."+r+" mozfullscreenchange."+r+" msfullscreenchange."+r,function(){n.device.fullscreen.element()||n.device.fullscreen.exit()}),n.slider.$fullscreenWrapper.on("dblclick."+r,function(){n.device.fullscreen.toggle()}))},element:function(){return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement}}},n.actions={do:function(i){var r=!1,o="";switch(i.action){case"scrollBelowProject":case"scrollToNextProject":case"scrollToPrevProject":case"scrollToElement":case"scrollToSelf":case"scrollToScenePosition":case"scrollToTimelinePosition":n.slider.isScene||t.addClass("ls-action-trigger"),n.slider.isScrollScene&&"scrollToTimelinePosition"===i.action&&(i.action="scrollToScenePosition",i.target="currentScene");var e=a(".ls-wp-container:not(.ls-hidden):not([data-scene]), ls-scene-wrapper"),l=a("ls-scene-wrapper, .ls-action-trigger"),d=a([]),p=n.slider.isScene?n.slider.$spacingWrapper:t,u=l.length,c=l.index(p),m,h;if(n.slider.isScene||t.removeClass("ls-action-trigger"),"scrollToSelf"===i.action)m=n.slider.$spacingWrapper.offset().top+(i.offset||0);else if("scrollBelowProject"===i.action)m=n.slider.$spacingWrapper.offset().top+n.slider.$spacingWrapper.height()+(i.offset||0);else if("scrollToPrevProject"===i.action)0===e.index(p)?r="There\u2019s no previous project to scroll to.":(d=e.eq(e.index(p)-1),m=n.slider.get.scrollTop(d,i));else if("scrollToNextProject"===i.action)e.index(p)<e.length-1?(d=e.eq(e.index(p)+1),m=n.slider.get.scrollTop(d,i)):r="There\u2019s no next project to scroll to.";else if(-1!==i.action.indexOf("scrollToElement")){try{d=a(i.selector.toString()).not(".ls-wp-container.ls-hidden")}catch(t){o=t}if(d.length){var g=d.closest("ls-scene-wrapper");g.length&&(d=g),m=n.slider.get.scrollTop(d,i)}else r="Couldn\u2019t find the scroll target element \""+i.selector+"\". Please verify the selector you\u2019ve entered."}else if("scrollToScenePosition"===i.action){switch(i.target){case"currentScene":n.slider.isScene?d=p:r="Current project is not a scene.";break;case"nextScene":c+1<u?d=a(l[c+1]):r="There are no next scenes in the DOM.";break;case"previousScene":0<=c-1?d=a(l[c-1]):r="There are no previous scenes in the DOM.";}if(d.length){var y=parseFloat(d.attr("data-scene-duration")),f=d.height(),h=d.find(".ls-container"),x=h.height(),v;i.position=a.trim(i.position)||"0ms",d.is("[data-scene=\"scroll\"]")?(v=-1!==i.position.indexOf("%")||-1===i.position.indexOf("ms")?y*(Math.min(100,Math.max(0,parseFloat(i.position)))/100):Math.min(Math.max(0,parseFloat(i.position)/1e3),y),m=Math.round(parseFloat(d.offset().top)-parseFloat(h.css("top"))+(f-x)*(v/y))):(v=Math.min(100,Math.max(0,parseFloat(i.position)))/100,m=Math.round(parseFloat(d.offset().top)-parseFloat(h.css("top"))+(f-x)*v))}}else if("scrollToTimelinePosition"===i.action){var S=0,b=(i.position+"").charAt(0);n.slider.state.isScrolling&&("+"===b||"-"===b)&&(n.timelines._layers.stop(),S=n.timelines._layers.time()-n.slider.lastWantedTimelinePosition);var w=n.timelines._layers.duration(),T=100*n.timelines._layers.progress(),C=w*(T/100),O=0;O=-1!==i.position.indexOf("%")||-1===i.position.indexOf("ms")?w*parseFloat(i.position)/100:parseFloat(i.position)/1e3,O=Math.abs(O),"+"===b?O=C+O:"-"===b?O=C-O:void 0,O=Math.max(Math.min(O-S,w),0),n.slider.lastWantedTimelinePosition=O}r||(i.duration=a.isNumeric(i.duration)?i.duration:1e3,n.slider.state.isScrolling=!0,"scrollToTimelinePosition"===i.action?n.timelines._layers.tweenTo(O,{ease:n.functions.convert.easing(i.easing),onComplete:function(){n.slider.state.isScrolling=!1}}).duration(i.duration/1e3):s.TweenMax.to("html, body",i.duration/1e3,{scrollTop:m,ease:n.functions.convert.easing(i.easing),onComplete:function(){n.slider.state.isScrolling=!1}}));break;case"switchSlide":n.slideshow.changeTo(i.slide,!0,!0);break;case"nextSlide":case"prevSlide":case"lastSlide":case"firstSlide":case"stopSlideshow":case"startSlideshow":var k;"nextSlide"===i.action&&(k="next"),"prevSlide"===i.action&&(k="prev"),"lastSlide"===i.action&&(k="last"),"firstSlide"===i.action&&(k="first"),"stopSlideshow"===i.action&&(k="stop"),"startSlideshow"===i.action&&(k="start"),n.navigation[k]("clicked");break;case"replaySlide":n.api.methods("replay");break;case"reverseSlide":n.api.methods("reverse",i.replay);break;case"resetSlide":n.api.methods("resetSlide");break;case"pauseProject":n.api.methods("pauseSlider");break;case"resumeProject":n.api.methods("resumeSlider");break;case"toggleProject":n.api.methods("toggleSlider");break;case"playMedia":n.media.functions.playActiveMedia();break;case"pauseMedia":n.media.functions.pauseActiveMedia();break;case"unmuteMedia":n.media.unmute.multipleMediaElements();break;case"openPopup":var P=a("[data-ls-slug=\""+i.popup+"\"], [id^=layerslider_"+i.popup+"]").first(),L=P.data("lsSliderUID"),I;if(P.length)I=window._layerSliders[L].initializedPlugins.popup,I.plugin.settings.showOnce=!1,"opened"==I.state.is?i.toggle&&I.events.hide():i.slide?P.layerSlider("fastChangeTo",i.slide,function(){I.events.show()}):I.events.show();else{var _={action:"ls_get_popup_markup",id:i.popup,slide:i.slide};a.get(n.o.ajaxURL||window.ajaxurl||"/wp-admin/admin-ajax.php",_,function(e){a(e).appendTo("body")})}break;case"launchPopups":var $;for(var B in window._layerSliders)$=window._layerSliders[B],$.initializedPlugins.popup&&$.api.methods("openPopup");break;case"closePopup":n.api.methods("closePopup");break;case"closeAllPopups":n.api.methods("closeAllPopups");break;case"jsFunction":try{window[i.function]()}catch(t){o=t,r="The browser thrown the following error after calling "+i.function+"() JavaScript function."}}r&&console.error("LayerSlider: Error while calling layer action \""+i.action+"\". "+r+(""===o?"":"\n\r\n\r"),o)}},n.api={hasEvent:function(t,i){var r=a._data(i||e,"events");return!!(r&&r[t])},methods:function(i,s,l,d){if(!n.slider.isBusy())if("number"==typeof i)0<i&&i<n.slides.count+1&&i!=n.slides.current.index&&n.slideshow.changeTo(i,!0,!0);else switch(i){case"touchPrev":n.device.touchPrev=!0;case"previousSlide":case"prev":n.navigation.prev();break;case"touchNext":n.device.touchNext=!0;case"nextSlide":case"next":n.navigation.next();break;case"startSlideshow":case"start":n.navigation.start();}switch(i){case"openPopup":n.initializedPlugins.popup&&(n.plugins.callFunctions("openPopup",{}),s&&a.isNumeric(s)?t.layerSlider("fastChangeTo",s,function(){n.initializedPlugins.popup.events.show()}):n.initializedPlugins.popup.events.show());break;case"launchPopups":n.plugins.callFunctions("launchPopups",{}),n.actions.do("launchPopups");break;case"fastChangeTo":n.plugins.callFunctions("fastChangeTo",{}),s&&a.isNumeric(s)&&(n.slides.current.index===s?l&&l():(n.slideshow.forceFastChange=!0,n.slider.shouldResize=!0,l&&"function"==typeof l&&(n.slideshow.forceFastChangeCallback=l),n.slideshow.changeTo(s,!0,!0)));break;case"resetScroll":n.plugins.callFunctions("resetScroll",{}),n.slider.set.offset(),o.trigger("scroll.scroll"+r).trigger("touchmove.scroll"+r).trigger("scroll.parallax"+r).trigger("touchmove.parallax"+r);break;case"enableScene":n.slider.isScene&&(n.plugins.callFunctions("enableScene",{}),n.slider.$spacingWrapper.removeAttr("data-disabled-scene"),n.api.methods("resetScroll"));break;case"disableScene":n.slider.isScene&&(n.plugins.callFunctions("disableScene",{}),n.slider.$spacingWrapper.attr("data-disabled-scene",""),n.transitions.scrollscene.animate("start"),n.api.methods("resetScroll"));break;case"closePopup":n.initializedPlugins.popup&&(n.plugins.callFunctions("closePopup",{}),n.initializedPlugins.popup.events.hide());break;case"closeAllPopups":n.plugins.callFunctions("closAllPopups",{}),a("<div class=\"ls-close-all-popups-button\"></div>").css("display","none").appendTo("body").trigger("click").remove();break;case"updateLayerData":s&&n.layers.update.data(s,l,d);break;case"redrawSlider":case"redraw":n.plugins.callFunctions("redrawSlider",{}),n.resize.all(),n.api.methods("resetScroll");break;case"replaySlide":case"replay":n.timelines._layers&&(n.plugins.callFunctions("replaySlide",{}),n.timelines._layers.pause().progress(0).invalidate().restart(!0,!1));break;case"reverseSlide":case"reverse":n.timelines._layers&&(n.plugins.callFunctions("reverseSlide",{}),n.timelines._layers.reversed()?n.timelines._layers.play():n.timelines._layers.reverse(),s&&(n.transitions.layers.timeline.shouldReplay=!0));break;case"unmute":case"unmuteMedia":n.media.unmute.multipleMediaElements();break;case"stopSlideshow":case"stop":n.navigation.stop();break;case"pauseSlider":case"pause":n.plugins.callFunctions("pauseSlider",{}),s&&"performanceMode"===s&&n.functions.setStates(n.slideshow,{pausedByPerformance:!0}),n.timelines._layers&&!n.slider.isScrollScene&&n.timelines._layers.stop();var p=n.layers.get("active");p.each(function(){var e=a(this),t=e.data(n.defaults.init.dataKey);t.timelines._loop&&t.timelines._loop.stop()}),n.transitions.layers.parallax.state.paused=!0,n.transitions.layers.scroll.state.paused=!0,n.media.functions.pauseActiveMedia(!0);break;case"resumePopup":var p=n.layers.get("active");p.each(function(){n.media.functions.playIfAllowed(a(this))}),n.timelines._layers&&(.001>n.timelines._layers.timeScale()&&n.transitions.layers.timeline.resume(),n.timelines._layers.play()),n.timelines._slideTransition&&n.timelines._slideTransition.play();break;case"resumeSlider":case"resume":n.plugins.callFunctions("resumeSlider",{}),n.timelines._layers&&(.001>n.timelines._layers.timeScale()&&n.transitions.layers.timeline.resume(),!n.slider.isScrollScene&&n.timelines._layers.play()),n.media.functions.playActiveMedia(!0);var p=n.layers.get("active");p.each(function(){var e=a(this),t=e.data(n.defaults.init.dataKey);t.timelines._loop&&t.timelines._loop.play()}),n.transitions.layers.parallax.state.paused=!1,n.transitions.layers.scroll.state.paused=!1,n.timelines._slideTransition?n.timelines._slideTransition.play():n.o.animateFirstSlide&&n.slideshow.firstStart&&n.slider.state.readyForStart&&(n.resize.layers({callback:n.api.resumeCallback}),n.api.resumeCallback=!1),s&&"performanceMode"===s&&n.functions.setStates(n.slideshow,{pausedByPerformance:!1});break;case"playMedia":n.media.functions.playActiveMedia();break;case"pauseMedia":n.media.functions.pauseActiveMedia();break;case"toggleSlider":case"toggle":n.plugins.callFunctions("toggleSlider",{}),n.slider.state.isPaused?(t.layerSlider("resume"),n.slider.state.isPaused=!1):(t.layerSlider("pause"),n.slider.state.isPaused=!0);break;case"reset":case"resetSlider":break;case"resetSlide":case"resetCurrentSlide":n.plugins.callFunctions("resetSlide",{}),n.timelines.to([n.timelines,"_layers _layersAlt",0]),n.media.functions.stop(!0);break;case"destroy":case"kill":if(n.plugins.callFunctions("killSlider",{}),n.slider.state.isLoaded){if(n.functions.clearTimers(),n.functions.clearTimelines(),n.layers.$all.removeData(),n.api.hasEvent("sliderDidDestroy")&&n.api.triggerEvent("sliderDidDestroy"),n.slider.state.sholudBeRemoved||s){if(n.slider.$hiddenWrapper.remove(),n.gui.timers.slidebar.$containerElement)for(var u=0;u<n.gui.timers.slidebar.$containerElement.length;u++)n.gui.timers.slidebar.$containerElement[u]instanceof jQuery&&n.gui.timers.slidebar.$containerElement[u].remove();n.api.hasEvent("sliderDidRemove")&&n.api.triggerEvent("sliderDidRemove");var c=n.slider.$spacingWrapper;c.closest(".ls-popup").length&&(c=c.closest(".ls-popup"),c.prev(".ls-popup-overlay").remove()),c.remove(),n.slider.$silentWrapper&&n.slider.$silentWrapper.remove()}n.functions.clearEvents(),window._layerSlider.removeSlider(r)}else n.functions.setStates(n.slider,{shouldBeDestroyed:!0,sholudBeRemoved:!!s&&s});n.slider.positionToViewport="under",n.device.scroll.enable();}},eventData:function(){return{data:n,userData:n.o,uid:r,target:e,slider:t,state:n.slider.state,isBusy:n.slider.isBusy(),event:{target:e},api:function(e,i,a,r){t.layerSlider(e,i,a,r)},navigation:{direction:n.navigation.direction},slides:{first:{index:n.slides.first.index,deeplink:n.slides.get.deeplink(n.slides.first.index),data:n.slides.first.data},prev:{index:n.slides.prev.index,deeplink:n.slides.get.deeplink(n.slides.prev.index),data:n.slides.prev.data},current:{index:n.slides.current.index||n.slides.first.index,deeplink:n.slides.get.deeplink(n.slides.current.index),layersIn:n.layers.get("current,in"),layersOut:n.layers.get("current,out"),timeline:n.timelines._layers,data:n.slides.current.data},next:{index:n.slides.next.index,deeplink:n.slides.get.deeplink(n.slides.next.index),layersIn:n.layers.get("next,in"),layersOut:n.layers.get("next,out"),data:n.slides.next.data},count:n.slides.count},slideChangeTimeline:n.timelines._slideTransition,slideshow:{state:n.slideshow.state,sequence:n.slideshow.sequence,direction:n.slideshow.direction,isPaused:n.slideshow.isPaused()},cycles:{max:n.o.cycles,current:n.slideshow.curCycle}}},triggerEvent:function(i,a){var r,s;try{a?(s=t.triggerHandler(i+".layerSlider",a),r=t.triggerHandler(i+".$",a)):(s=t.triggerHandler(i+".layerSlider"),r=t.triggerHandler(i+".$"))}catch(t){console.error("LayerSlider: Error while calling event \""+i+"\":\n\r\n\r",t)}if("undefined"!=typeof s&&null!==s)return s;return"undefinded"!=typeof r&&null!==r?r:void 0}},n.browser={isSafari:!!navigator.userAgent.match(/(iPhone|iPod|iPad|Safari)/i)&&!navigator.userAgent.match(/(Opera|Chrome|Edge)/i),isChrome:function(){var e=window.chrome,t=window.navigator,i=t.vendor,a="undefined"!=typeof window.opr,r=-1<t.userAgent.indexOf("Edge"),s=t.userAgent.match("CriOS"),o;return o=!!s||null!==e&&"undefined"!=typeof e&&"Google Inc."===i&&!1===a&&!1===r,o},usesFileProtocol:-1!==document.location.href.indexOf("file://"),supports3D:function(){for(var e=a("<div>"),r=!1,s=!1,o=["perspective","OPerspective","msPerspective","MozPerspective","WebkitPerspective"],n=["transformStyle","OTransformStyle","msTransformStyle","MozTransformStyle","WebkitTransformStyle"],l=o.length-1;0<=l;l--)r=r?r:void 0!==e[0].style[o[l]];for(var d=n.length-1;0<=d;d--)e.css("transform-style","preserve-3d"),s=s?s:"preserve-3d"==e[0].style[n[d]];return r&&void 0!==e[0].style[o[4]]&&(e.attr("id","ls-test3d").appendTo(t),r=3===e[0].offsetHeight&&9===e[0].offsetLeft,e.remove()),r&&s},isOld:-1!==navigator.userAgent.indexOf("rident/5")},n.initializedPlugins={},n.timeouts={},n.intervals={},n.debug={options:{}},n.plugin={version:"8.1.1",release:"stable",releaseDate:"2025. 12. 04."},n.slider.load()}})(jQuery);