!function(t){var i=t;i._N2=i._N2||{_r:[],_d:[],r:function(){this._r.push(arguments)},d:function(){this._d.push(arguments)}};var n,o,s=t.document,r=(s.documentElement,t.setTimeout),h=t.clearTimeout,a=i._N2,u=(t.requestAnimationFrame,function(t,i=null,n=null,o=null){const r=s.createElement(t);return i&&("string"==typeof i?w(r,i):S(r,i)),n&&p(r,n),o&&x(r,o),r}),c=function(t,i,n){return u("div",t,i,n)},l=Object.assign,f=function(t,i){for(var o=Object(t),s=1;s-1||i.requestIdleCallback,i.cancelIdleCallback;o=function(){s.body},"complete"===s.readyState||"interactive"===s.readyState?o():Document&&Document.prototype&&Document.prototype.addEventListener&&Document.prototype.addEventListener!==s.addEventListener?Document.prototype.addEventListener.call(s,"DOMContentLoaded",o):s.addEventListener("DOMContentLoaded",o),a.d("SmartSliderFrontendBackgroundAnimation",["SmartSliderMainAnimationSimple"],(function(){function t(t,i,n){this._currentBackgroundAnimation=!1,a.SmartSliderMainAnimationSimple.prototype.constructor.call(this,t,i),this.isReverseAllowed=!1,this.bgAnimationElement=this.sliderElement.querySelector(".n2-ss-background-animation"),this.slider.parameters.perspective>0&&this.bgAnimationElement&&g(this.bgAnimationElement,"perspective",this.slider.parameters.perspective+"px"),this.backgroundAnimations=l({global:0,speed:"normal"},n),this.backgrounds=t.backgrounds.getBackgroundImages()}return t.prototype=Object.create(a.SmartSliderMainAnimationSimple.prototype),t.prototype.constructor=t,t.prototype.getBackgroundAnimation=function(t,i){if(this.slider.parameters.backgroundParallax)return!1;if(i.hasBackgroundVideo()||t.hasBackgroundVideo())return!1;var n=this.backgroundAnimations.global,o=this.backgroundAnimations.speed;if(this.u=!1,i.backgroundAnimation){var s=i.backgroundAnimation;n=s.animation,o=s.speed,s.color&&(this.u=s.color)}if(!n)return!1;const r=Math.floor(Math.random()*n.length);return!!this.canAnimateWithBackgroundMode(n[r].allowedBackgroundModes,i.background.mode,t.background.mode)&&[n[r],o]},t.prototype.canAnimateWithBackgroundMode=function(t,i,n){return!!(!t||t.includes(i)&&t.includes(n))},t.prototype._initAnimation=function(t,i,n){this._currentBackgroundAnimation=!1;var o=t.background,s=i.background;if(o&&s){const h=new a.SmartSliderBackgroundAnimationBackgroundInterfaceFrontend(o),u=new a.SmartSliderBackgroundAnimationBackgroundInterfaceFrontend(s),c=this.getBackgroundAnimation(t,i);if(!1!==c){var r=1;switch(c[1]){case"superSlow10":r=10;break;case"superSlow":r=3;break;case"slow":r=1.5;break;case"fast":r=.75;break;case"superFast":r=.5}return this._currentBackgroundAnimation=new a["SmartSliderBackgroundAnimation"+c[0].type](this,h,u,c[0],r,n),a.SmartSliderMainAnimationSimple.prototype._initAnimation.apply(this,arguments),this._currentBackgroundAnimation.postSetup(),void this.timeline.set({},{onComplete:function(){this._currentBackgroundAnimation&&(this._currentBackgroundAnimation.ended(),this._currentBackgroundAnimation=!1)}.bind(this)})}}a.SmartSliderMainAnimationSimple.prototype._initAnimation.apply(this,arguments)},t.prototype.onChangeToComplete=function(t,i){this._currentBackgroundAnimation&&(this._currentBackgroundAnimation.ended(),this._currentBackgroundAnimation=!1),a.SmartSliderMainAnimationSimple.prototype.onChangeToComplete.apply(this,arguments)},t.prototype.onReverseChangeToComplete=function(t,i,n){this._currentBackgroundAnimation&&(this._currentBackgroundAnimation.revertEnded(),this._currentBackgroundAnimation=!1),a.SmartSliderMainAnimationSimple.prototype.onReverseChangeToComplete.apply(this,arguments)},t.prototype.getExtraDelay=function(){return this._currentBackgroundAnimation?this._currentBackgroundAnimation.getExtraDelay():0},t.prototype.hasBackgroundAnimation=function(){return this._currentBackgroundAnimation},t})),a.d("SmartSliderBackgroundAnimationAbstract",(function(){function t(t,i,n,o,s,r){this.durationMultiplier=s,this.original={currentImage:i,currentImageElement:i.backgroundElement,currentImageSMW:a.MW.i(i.backgroundElement),nextImage:n,nextImageElement:n.backgroundElement,nextImageSMW:a.MW.i(n.backgroundElement)},this.animationProperties=o,this.reversed=r,this.sliderBackgroundAnimation=t,this.timeline=t.timeline,this.containerElement=t.bgAnimationElement,this.shiftedBackgroundAnimation=t.parameters.shiftedBackgroundAnimation,this.clonedImages={}}return t.prototype.postSetup=function(){},t.prototype.ended=function(){},t.prototype.revertEnded=function(){},t.prototype.placeNextImage=function(){this.clonedImages.nextImage=this.original.nextImageElement.cloneNode(!0),b(this.clonedImages.nextImage,{position:"absolute",top:0,left:0,transform:"translate3d(0,0,0)",opacity:1}),this.containerElement.appendChild(this.clonedImages.nextImage)},t.prototype.placeCurrentImage=function(){this.clonedImages.currentImage=this.original.currentImageElement.cloneNode(!0),b(this.clonedImages.currentImage,{position:"absolute",top:0,left:0,transform:"translate3d(0,0,0)",opacity:1}),this.containerElement.appendChild(this.clonedImages.currentImage)},t.prototype.hideOriginals=function(){g(this.original.currentImageElement,"opacity",0),g(this.original.nextImageElement,"opacity",0)},t.prototype.resetAll=function(){g(this.original.currentImageElement,"opacity",1),g(this.original.nextImageElement,"opacity",1),this.containerElement.innerHTML=""},t.prototype.getExtraDelay=function(){return 10/60},t})),a.d("SmartSliderBackgroundAnimationBackgroundInterface",(function(){return class{constructor(t){this.backgroundElement=t}getImage(){return this.backgroundElement.querySelector("img").currentSrc}getSize(){const t=this.backgroundElement.getBoundingClientRect();return[t.width,t.height]}hasImage(){return!0}isCover(){return!0}getOpacity(){return 1}getBlur(){return 0}isOverlay(){return!1}getOverlay(){return!1}getFocusX(){return.5}getFocusY(){return.5}getColor(){return"RGBA(0,0,0,0)"}}})),a.d("SmartSliderBackgroundAnimationBackgroundInterfaceFrontend","SmartSliderBackgroundAnimationBackgroundInterface",(function(){class t extends a.SmartSliderBackgroundAnimationBackgroundInterface{constructor(t){super(t.element),this.background=t}hasImage(){return this.background.hasImage()}getImage(){return super.getImage()}isCover(){return!this.hasImage()||"fill"===v(this.background.element,"mode")}getOpacity(){return+v(this.background.elements.image.imageElements[0],"opacity")/100}getBlur(){return+this.background.elements.image.blur}isOverlay(){return!!v(this.background.elements.color.el,"overlay")}getFocusX(){return+v(this.background.elements.image.imageElements[0],"x")/100}getFocusY(){return+v(this.background.elements.image.imageElements[0],"y")/100}getColor(t){const i=this.background.elements.color.el,n=v(i,"gradient"),o=t.canvas.width,s=t.canvas.height;let r=0;if(n){let h=0,a=0,u=0,c=0;switch(n){case"horizontal":u=o;break;case"vertical":c=s;break;case"diagonal1":r=45;break;case"diagonal2":r=135}if(0!==r){const t=(180-r)/180*Math.PI,i=Math.abs(o*Math.sin(t))+Math.abs(s*Math.cos(t)),n=Math.sin(t)*i/2,l=Math.cos(t)*i/2,f=o/2,d=s/2;h=f-n,a=d-l,u=f+n,c=d+l}let l=t.createLinearGradient(h,a,u,c);return l.addColorStop(0,v(i,"colorStart")),l.addColorStop(1,v(i,"colorEnd")),l}return v(i,"color")}}return t})),a.d("SmartSliderBackgroundAnimationCubic",["SmartSliderBackgroundAnimationTiled"],(function(){function t(){a.SmartSliderBackgroundAnimationTiled.prototype.constructor.apply(this,arguments)}return t.prototype=Object.create(a.SmartSliderBackgroundAnimationTiled.prototype),t.prototype.constructor=t,t.prototype.setup=function(){var t=f({columns:1,rows:1,fullCube:!0,tiles:{delay:.2,sequence:"Parallel"},depth:50,main:{side:"Left",duration:.5,ease:"easeInOutCubic",direction:"horizontal",real3D:!0},pre:[],post:[]},this.animationProperties);t.fullCube=!0,this.reversed&&(t.invert!==n&&f(t.main,t.invert),t.invertTiles!==n&&l(t.tiles,t.invertTiles)),a.SmartSliderBackgroundAnimationTiled.prototype.setup.call(this,t)},t.prototype.renderTile=function(t,i,n,o,s,r){var h=o.depth;switch(h){case"width":h=i;break;case"height":h=n}switch(o.main.side){case"Top":case"Bottom":h=n;break;case"Left":case"Right":h=i}o.main.real3D&&g(t,"transform-style","preserve-3d");var u=c(),l=a.MW.i(u);b(u,{position:"absolute",left:0,top:0,width:"100%",height:"100%","transform-style":"preserve-3d"}),l.z=-h/2,t.appendChild(u);var f=0;"horizontal"===o.main.direction&&(f=180);var d=this.getSide(u,i,n,0,0,-h/2,180,0,f),p={Back:d,BackInvert:d};(o.fullCube||"vertical"===o.main.direction)&&(p.Bottom=this.getSide(u,i,h,0,n-h/2,0,-90,0,0),p.Top=this.getSide(u,i,h,0,-h/2,0,90,0,0)),p.Front=this.getSide(u,i,n,0,0,h/2,0,0,0),(o.fullCube||"horizontal"===o.main.direction)&&(p.Left=this.getSide(u,h,n,-h/2,0,0,0,-90,0),p.Right=this.getSide(u,h,n,i-h/2,0,0,0,90,0));var v=this.clonedCurrent().cloneNode(!0);b(v,{position:"absolute",top:-r+"px",left:-s+"px"}),p.Front.appendChild(v);var m=this.clonedNext().cloneNode(!0);return b(m,{position:"absolute",top:-r+"px",left:-s+"px"}),p[o.main.side].appendChild(m),a.MW.i(u)},t.prototype.getSide=function(t,i,n,o,s,r,h,u,l){var f=c();return f.className="n2-bganim-side",b(f,{width:i+"px",height:n+"px","backface-visibility":"hidden"}),t.appendChild(f),a.MW.i(f).setValues({x:o,y:s,z:r,rotationZ:l,rotationY:u,rotationX:h}),f},t.prototype.transform=function(t,i,n){var o,s,r;for(o=0;o0&&(v+=o=l>=u?u:l,l-=o),(i=c()).className="tile n2-bganim-tile-overlay-colored",b(i,{position:"absolute",top:d+"px",left:0,width:"100%",height:v+"px","z-index":1e6}),this.sliderBackgroundAnimation.u&&g(i,"background-color",this.sliderBackgroundAnimation.u),this.container.appendChild(i),s.push(a.MW.i(i)),d+=v}t.tiles.stages[0].x=this.w,t.tiles.stages[1].x=0,t.tiles.stages[2].x=-this.w}else if("vertical"===t.direction){for(var m=Math.floor(this.w/t.slices),x=this.w-t.slices*m,w=Math.ceil(x/t.slices),S=0,y=0;y0&&(k+=o=x>=w?w:x,x-=o),(i=c()).className="tile n2-bganim-tile-overlay-colored",b(i,{position:"absolute",top:0,left:S+"px",width:k+"px",height:"100%","z-index":1e6}),this.sliderBackgroundAnimation.u&&g(i,"background-color",this.sliderBackgroundAnimation.u),this.container.appendChild(i),s.push(a.MW.i(i)),S+=k}t.tiles.stages[0].y=this.h,t.tiles.stages[1].y=0,t.tiles.stages[2].y=-this.h}(this.reversed&&!t.isReversed||!this.reversed&&t.isReversed)&&(t.tiles.stages=t.tiles.stages.reverse());var M=c(),A=this.clonedCurrent().cloneNode(!0);b(M,{position:"absolute",left:0,top:0,width:"100%",height:"100%",overflow:"hidden","z-index":99999}),b(A,{position:"absolute",top:0,left:0}),M.appendChild(A),this.container.appendChild(M);var B=c(),O=a.MW.i(B),I=this.clonedNext().cloneNode(!0);b(B,{position:"absolute",left:0,top:0,width:"100%",height:"100%",overflow:"hidden","z-index":99999}),O.opacity=0,b(I,{position:"absolute",top:0,left:0}),B.appendChild(I),this.container.appendChild(B);var z,C,j=this.timeline.totalDuration();switch(t.tiles.sequence){case"FromSide":for(z=Math.floor(t.slices/2),C=0;C0)m+=S=u>=l?l:u,u-=S;for(var g=f,w=0;w0)y+=S=g>=d?d:g,g-=S;var k=c();k.className="tile",b(k,{position:"absolute",top:x+"px",left:p+"px",width:m+"px",height:y+"px","z-index":-Math.abs(v-parseInt(s/2))+s-Math.abs(w-parseInt(r/2))}),i.appendChild(k);var M=this.renderTile(k,m,y,t,p,x);o.push(M),n[v][w]=M,x+=y}p+=m}this.containerElement.appendChild(i),this.preSetup(),this.animate(t,o,n)},t.prototype.animate=function(t,i,n){this["sequence"+t.tiles.sequence](this.transform.bind(this,t),i,n,t.tiles.delay*this.durationMultiplier)},t.prototype.sequenceParallel=function(t,i){t(i,null)},t.prototype.sequenceRandom=function(t,i,n,o){for(var s=this.timeline.totalDuration(),r=0;r