!function(e){"use strict";var t=function(e,t){t(".hero-section").each(function(){var e,a=0,i=0,n=0,s=0,d=t("#wpadminbar"),h=t("#top-bar"),o=t(this),r=t(window).height(),l=t("header").height(),c=o.find(".vegas-content"),p=c.height(),g=Number(o.data("delay")),f=o.data("content");e=o.data("height"),h.length&&(i=h.height()),d.length&&(a=d.height()),s="full-height"==e?r:e,t("body").hasClass("header.header-absolute")?(o.css({height:s-a+"px"}),n=(s-p)/2+i+f,c.css("padding-top",n+"px")):"full-height"==e?(o.css({height:s+"px"}),n=(s-p)/2+f,c.css("padding-top",n+"px")):(s=s-l-i-a,o.css({height:s+"px"}),n=(s-p)/2+f,c.css("padding-top",n+"px")),t(window).on("load resize",function(){var e,a=0,i=0,n=0,s=0,d=t("#wpadminbar"),h=t("#top-bar"),r=t(window).height(),l=t("#header").height(),c=o.find(".vegas-content"),p=c.height(),g=o.data("content");e=o.data("height"),h.length&&(i=h.height()),d.length&&(a=d.height()),s="full-height"==e?r:e,t("body").hasClass("header.header-absolute")?(o.css({height:s-a+"px"}),n=(s-p)/2+i+g,c.css("padding-top",n+"px")):"full-height"==e?(o.css({height:s+"px"}),n=(s-p)/2+g,c.css("padding-top",n+"px")):(s=s-l-i-a,o.css({height:s+"px"}),n=(s-p)/2+g,c.css("padding-top",n+"px"))}),t().vegas&&t(".hero-section.slidehero").each(function(){for(var e=t(this),a=e.data("count"),i=(a=parseInt(a,10),e.data("effect")),n=e.data("image"),s=e.data("overlay"),d=e.data("poverlay"),h=0,o=[],r=n.split("|");h<a;)o.push({src:r[h]}),h++;e.vegas({slides:o,overlay:!0,transition:i,delay:g});var l=t("<div />",{class:"overlay",style:"background:"+s});t(this).append(l).find(".vegas-overlay").addClass(d)}),t().YTPlayer&&t(".hero-section.slidevideo").each(function(){var e=t(this),a=e.data("overlay"),i=t("<div />",{class:"overlay",style:"position: absolute; width: 100%; height: 100%; background:"+a});e.YTPlayer().append(i)}),t(".slide-fancy-text").is(".scroll")&&t(".slide-fancy-text.scroll").each(function(){var e=t(this),a=1,i=e.children(".heading").height(),n=e.children().length,s=e.children(".heading:nth-child(1)");e.height(i),e.siblings(".prefix-text, .suffix-text").height(i),setInterval(function(){var e=a*-i;s.css("margin-top",e+"px"),a===n?(s.css("margin-top","0px"),a=1):a++},g)}),t(".slide-fancy-text").is(".typed")&&t().typed&&t(".slide-fancy-text.typed").each(function(){var e=t(this),a=e.data("fancy").split(",");e.find(".text").typed({strings:a,typeSpeed:40,loop:!0,backDelay:g})})}),t(".hero-section").each(function(){t(this).find(".scroll-target").on("click",function(){var e=t(this).attr("href").split("#")[1];if(e&&t("#"+e).length>0){var a=0;t("body").hasClass("header-sticky")&&(a=t("#site-header").height());var i=t("#"+e).offset().top-a;if(t("body").hasClass("admin-bar")){var n=t("#wpadminbar").height();i=t("#"+e).offset().top-a-n}t("html,body").animate({scrollTop:i},1e3,"easeInOutExpo")}return!1})})},a=function(){e(".flexslider").each(function(){var t=e(this),a=0,i=0,n=e("#wpadminbar"),s=e("#top-bar"),d=e("header").height(),h=t.data("height"),o=t.find(".flex_caption"),r=o.height();t.find(".item-slide").height(h),s.length&&(a=s.height()),n.length&&n.height(),0==r&&(r=.5*h),t.hasClass("header-absolute")?(i=(h+a+d-r)/2,o.css("padding-top",i+"px")):(i=(h-r)/2,o.css("padding-top",i+"px"));t.data("animation_images");var l=t.data("autoplay"),c=t.data("slideshowSpeed"),p=t.data("controlnav"),g=t.data("directionnav"),f=t.data("prevtext"),u=t.data("nexttext");t.flexslider({animation:"fade",slideshow:l,slideshowSpeed:c,animationSpeed:1e3,animationLoop:!0,controlNav:p,directionNav:g,prevText:'<i class="'+f+'" aria-hidden="true"></i>',nextText:'<i class="'+u+'" aria-hidden="true"></i>',useCCS:!1})})};e(window).on("elementor/frontend/init",function(){elementorFrontend.hooks.addAction("frontend/element_ready/vegas-slider.default",t),elementorFrontend.hooks.addAction("frontend/element_ready/flex-slider.default",a)}),e(window).on("load resize",function(){a()})}(jQuery);