!function(e,t,a){"use strict";function i(){this.scripts=[],this.eventListeners=["click","scroll","touchstart","touchmove","keydown","mousemove"],this.windowWidth=t.innerWidth,this.windowHeight=t.innerHeight,this.noClick=this.preventClick.bind(this),this.load=this.triggerLoad.bind(this),this.pageCritical(),this.lazyLoadCriticalMedia(),this.loadCritialAnimations(),this.gatherElements(),this.addEvents()}const n=i.prototype;n.gatherElements=function(){a.querySelectorAll('script[type="salientlazyscript"]').forEach(e=>{this.scripts.push(e)})},n.aboveTheFoldElements=function(e){let t=[];const i=this;a.querySelectorAll(".container-wrap .vc_row:not(.inner_row)").forEach((a,n)=>{if(n<2){if(1==n){if(a.getBoundingClientRect().top>i.windowHeight)return}a.querySelectorAll(e).forEach(e=>{t.push(e)})}});const n=a.querySelectorAll(".woocommerce.archive .products, .archive .posts-container, .nectar_hook_global_section_after_header_navigation, .nectar_hook_before_secondary_header");return n&&n.forEach((a,i)=>{a.querySelectorAll(e).forEach(e=>{t.push(e)})}),t},n.maybeAddAnimationEasing=function(e){let t="";if(this.windowWidth>1e3){let i="cubic-bezier(0.33, 1, 0.68, 1)",n="0s",s="1s";if(e.hasAttribute("data-animation-easing")){const t=e.getAttribute("data-animation-easing");void 0!==this.easings[t]&&(i="cubic-bezier("+this.easings[t]+")")}a.body.hasAttribute("data-cad")&&(s=parseInt(a.body.getAttribute("data-cad"))+"ms"),e.hasAttribute("data-delay")&&""!==e.getAttribute("data-delay")&&(n=parseInt(e.getAttribute("data-delay"))+"ms"),t="transform "+s+" "+i+" "+n+", clip-path "+s+" "+i+" "+n+", opacity "+s+" "+i+" "+n}return t},n.pageCritical=function(){const e=a.querySelector(".container-wrap > .main-content > .row");if(e){const t=e.children;if(t.length>0){const e=t[t.length-1];(e.classList.contains("full-width-section")||e.classList.contains("full-width-content"))&&(a.querySelector(".container-wrap").style.paddingBottom="0")}}const t=a.getElementById("header-outer");if(t){t.querySelectorAll("a[href*='"+location.pathname+"']").forEach(function(e){const t=e.getAttribute("href");if(t&&-1!==t.indexOf("#")){const i=t.substring(t.indexOf("#")).replace(/[^a-zA-Z0-9-]/g,"");if("#"!==i&&a.querySelector("div#"+i)){const t=e.parentNode;t.classList.add("no-pseudo-after-transition"),t.classList.remove("current_page_item"),t.classList.remove("current-menu-item"),setTimeout(()=>{t.classList.remove("no-pseudo-after-transition")},100)}a.querySelector('div[data-fullscreen-anchor-id="'+t.substring(t.indexOf("#")+1)+'"]')&&(e.parentNode.classList.remove("current_page_item"),e.parentNode.classList.remove("current-menu-item"))}})}},n.splitLineHeadingAnimation=function(e){const t=e.hasAttribute("data-animation-delay")?parseInt(e.getAttribute("data-animation-delay")):0,a=Array.from(e.children),i=e.hasAttribute("data-text-effect")?e.getAttribute("data-text-effect"):"default";if("none"===i)return;let n="transition: opacity 1s cubic-bezier(0.33, 1, 0.68, 1), transform 1s cubic-bezier(0.33, 1, 0.68, 1);";e.closest(".nectar-post-grid-item")&&(n=""),a.forEach(e=>{let t=e.textContent;const a=(t=t?t.trim():"").split(" "),s=i.includes("letter-reveal");e.innerHTML="";for(var r=0;r<a.length;r++)e.innerHTML+=s?"<span>"+a[r]+"</span> ":'<span><span class="inner" style="'+n+'">'+a[r]+"</span></span> ";s&&e.querySelectorAll("span").forEach(e=>{let t=e.textContent;e.innerHTML="";for(var a=0;a<t.length;a++)e.innerHTML+='<span class="inner" style="'+n+'">'+t[a]+"</span>"})}),setTimeout(()=>{e.querySelectorAll(".inner").forEach((e,t)=>{setTimeout(()=>{e.style.transform="translateY(0em)",e.style.opacity="1"},40*t)})},t+10),e.classList.add("animated-in","markup-generated"),e.setAttribute("data-stored-text-effect",i),e.setAttribute("data-text-effect","none")},n.loadCritialAnimations=function(){this.easings={linear:"0,0,1,1",easeInSine:"0.12, 0, 0.39, 0",easeOutSine:"0.61, 1, 0.88, 1",easeInOutSine:"0.37, 0, 0.63, 1",easeInQuad:"0.11, 0, 0.5, 0",easeOutQuad:"0.5, 1, 0.89, 1",easeInOutQuad:"0.45, 0, 0.55, 1",easeInCubic:"0.32, 0, 0.67, 0",easeOutCubic:"0.33, 1, 0.68, 1",easeInOutCubic:"0.65, 0, 0.35, 1",easeInQuart:"0.5, 0, 0.75, 0",easeOutQuart:"0.25, 1, 0.5, 1",easeInOutQuart:"0.76, 0, 0.24, 1",easeInQuint:"0.64, 0, 0.78, 0",easeOutQuint:"0.22, 1, 0.36, 1",easeInOutQuint:"0.83, 0, 0.17, 1",easeInExpo:"0.8, 0, 0.2, 0",easeOutExpo:"0.19, 1, 0.22, 1",easeInOutExpo:"0.87, 0, 0.13, 1",easeInCirc:"0.6, 0, 0.98, 0",easeOutCirc:"0, 0.55, 0.45, 1",easeInOutCirc:"0.85, 0, 0.15, 1"};const i=a.getElementById("ajax-loading-screen");if(i&&i.classList.add("loaded"),t.nectarOptions&&t.nectarOptions.header_entrance&&"true"==t.nectarOptions.header_entrance&&a.querySelector("#header-outer")&&a.querySelector("#header-outer").classList.add("entrance-animation"),t.NectarBoxRollHelper&&a.querySelector(".nectar-box-roll")){(new NectarBoxRollHelper).setInitialSize(),a.querySelectorAll("body, html, #ajax-content-wrap, .container-wrap, .blurred-wrap").forEach(e=>{e.classList.add("no-scroll")})}const n=a.querySelector("#page-header-bg .nectar-particles .inner-wrap >*:not(.top-heading)");if(n&&(n.style.transform="translate3d(0,0,0)",n.style.opacity="1"),setTimeout(()=>{const e=a.querySelector(".widget_shopping_cart .cart_list .empty"),t=a.querySelector(".widget_shopping_cart .cart_list"),i=a.querySelector("#mobile-cart-link"),n=a.querySelector(".cart-menu-wrap.static");!e&&!n&&i&&t&&i.classList.add("first-load")},80),a.querySelectorAll(".vc_row.top-level").forEach(e=>{e.classList.add("loaded")}),this.aboveTheFoldElements('.img-with-aniamtion-wrap:not([data-animation="none"])').forEach(e=>{const t=e.querySelector(".hover-wrap"),a=e.querySelector(".inner"),i=e.querySelector(".img-with-animation"),n=[e,a,t,i];i&&t&&(t.style.transition=this.maybeAddAnimationEasing(i)),this.windowWidth<1e3&&n.forEach(e=>{e&&(e.style.transition="none")}),n.forEach(e=>{e&&(e.style.opacity="1",e.style.transform="translate3d(0,0,0)")}),i&&i.classList.add("animated-in")}),this.aboveTheFoldElements('.wpb_column.has-animation:not([data-animation*="reveal"]), .nectar-fancy-box.has-animation').forEach(e=>{e.style.transition=this.maybeAddAnimationEasing(e),e.style.transform="translate3d(0,0,0)",e.style.opacity="1",e.classList.add("animated-in")}),this.aboveTheFoldElements('.wpb_column.has-animation[data-animation*="reveal"]').forEach(e=>{[e,e.querySelector(".vc_column-inner")].forEach(t=>{t&&(t.style.transition=this.maybeAddAnimationEasing(e),t.style.opacity="1",t.style.transform="translate3d(0,0,0)")}),e.classList.add("animated-in")}),this.aboveTheFoldElements(".nectar_cascading_images").forEach(e=>{e.querySelectorAll(".inner-wrap, .inner-wrap img").forEach(e=>{e.style.transition="none",e.style.transform="translate3d(0,0,0)",e.style.opacity="1"})}),this.aboveTheFoldElements('.row-bg-wrap[data-bg-animation]:not([data-bg-animation="none"])').forEach(e=>{e.parentElement.classList.add("animated-in"),e.classList.add("animated-in"),e.querySelectorAll(".row-bg, .inner-wrap").forEach(e=>{e.classList.add("animated-in")})}),this.aboveTheFoldElements('.column-image-bg-wrap[data-bg-animation]:not([data-bg-animation="none"])').forEach(e=>{e.parentElement.classList.add("revealed-bg"),e.classList.add("animated-in"),e.parentElement.querySelectorAll(".column-bg-layer").forEach(e=>{e.classList.add("animated-in")}),e.querySelectorAll(".column-image-bg, .inner-wrap").forEach(e=>{e.classList.add("animated-in")})}),this.aboveTheFoldElements('.nectar-post-grid:not([data-animation="none"])').forEach(e=>{const t=e.hasAttribute("data-animation-stagger")?e.getAttribute("data-animation-stagger"):90,a=e.querySelectorAll(".nectar-post-grid-item");e.parentElement.classList.add("delay-js-loaded"),a.forEach((e,a)=>{setTimeout(()=>{e.classList.add("animated-in")},a*t)});const i=e.parentElement.querySelector(".nectar-post-grid-filters");i&&i.classList.add("animated-in"),setTimeout(function(){e.classList.add("finished-animating")},950)}),this.aboveTheFoldElements(".wpb_animate_when_almost_visible").forEach(e=>{e.classList.add("wpb_start_animation"),e.classList.add("animated")}),this.aboveTheFoldElements(".nectar-waypoint-el").forEach(e=>{e.classList.add("animated-in")}),this.aboveTheFoldElements(".nectar-split-heading").forEach(e=>{if("line-reveal-by-space"===e.getAttribute("data-animation-type")&&this.windowWidth>=1e3)this.splitLineHeadingAnimation(e);else{e.setAttribute("data-text-effect","none"),e.classList.add("animated-in","markup-generated"),e.querySelectorAll(".heading-line > div").forEach(e=>{e.style.transform="translate3d(0,0,0)"})}}),this.aboveTheFoldElements(".nectar-text-inline-images__marker").forEach(e=>{e.classList.add("animated-in")}),this.aboveTheFoldElements(".nectar-highlighted-text em").forEach(e=>{e.classList.add("animated")}),this.aboveTheFoldElements(".nectar-animated-title").forEach(e=>{e.classList.add("completed")}),this.aboveTheFoldElements('.nectar-icon-list[data-animate="true"]').forEach(e=>{e.classList.add("completed"),e.querySelectorAll(".nectar-icon-list-item").forEach(e=>{e.classList.add("animated")})}),this.aboveTheFoldElements('.nectar-fancy-ul[data-animation="true"]').forEach(e=>{e.classList.add("animated-in");const t=e.getAttribute("data-list-icon"),i=t.split(" "),n=e.getAttribute("data-color");e.querySelectorAll("ul li").forEach(e=>{const s=a.createElement("i");t&&n&&(s.classList.add("icon-default-style",n),i.forEach(e=>{s.classList.add(e)})),e.style.left="0",e.style.opacity="1",e.prepend(s)})}),this.aboveTheFoldElements('.divider-border[data-animate="yes"], .divider-small-border[data-animate="yes"]').forEach(e=>{e.style.visibility="visible",e.classList.add("completed")}),this.aboveTheFoldElements(".nectar-rotating-words-title").forEach(e=>{e.style.opacity="1",e.classList.add("animated-in"),e.querySelectorAll(".text-wrap > span").forEach(e=>{e.style.transform="translate3d(0,0,0)"})}),"undefined"!=typeof SalientRecentProjectsFullScreen){this.aboveTheFoldElements(".nectar_fullscreen_zoom_recent_projects").forEach(t=>{new SalientRecentProjectsFullScreen(e(t))})}this.aboveTheFoldElements(".wpb_gallery_slidesflickity_static_height_style .item-meta").forEach(e=>{const t=e.parentElement.querySelector("img");t&&(e.style.width=t.offsetWidth+"px")}),this.aboveTheFoldElements('.nectar-woo-flickity[data-animation*="fade"]').forEach(e=>{e.classList.add("animated-in"),e.querySelectorAll(".product").forEach(e=>{e.style.opacity="1",e.style.transform="translate3d(0,0,0)"})});const s=a.querySelectorAll(".vc_row-o-full-height:not(.top-level)"),r=this.windowHeight;s.forEach(e=>{e.style.minHeight=parseInt(r)+"px";const t=e.querySelector(".col.span_12");t&&(t.style.minHeight=parseInt(r)+"px")});const o=a.querySelectorAll('.row > .top-level:not(.has-global-section) .wpb_wrapper > .nectar-slider-wrap[data-full-width="true"], .row > .top-level:not(.has-global-section) .portfolio-items[data-col-num="elastic"]'),l=a.querySelectorAll('#page-header-bg, .page-header-no-bg, .project-title, .body[data-bg-header="true"], body.single'),c=a.querySelectorAll("#portfolio-extra"),d=a.querySelectorAll("#full_width_portfolio"),h=c.length>0&&0==d.length;if(o.length>0&&0==l.length&&!1===h){const e=a.querySelector(".container-wrap");e&&(e.style.paddingTop="0px")}const u=a.querySelector(".blog-fullwidth-wrap");if(!!(u&&u.querySelectorAll(".span_12.masonry.meta_overlaid").length>0)){u.classList.add("meta-overlaid");const e=a.querySelector(".container-wrap");e&&e.classList.add("meta_overlaid_blog")}t.innerWidth>470&&setTimeout(()=>{const e=function(){};a.querySelectorAll(".portfolio-items:not(.carousel)").forEach(t=>{"undefined"!=typeof SalientPortfolio&&"undefined"!=typeof jQuery&&new SalientPortfolio(jQuery(t),e,"",e)}),a.querySelectorAll(".masonry:not(.auto_meta_overlaid_spaced) > .posts-container").forEach(t=>{if("undefined"!=typeof NectarMasonryBlog&&"undefined"!=typeof jQuery){new NectarMasonryBlog(jQuery(t),e,e),t.querySelectorAll(".masonry-blog-item").forEach(e=>{e.classList.add("animated-in")})}})},200);const m=a.querySelector("body.material #slide-out-widget-area.slide-out-from-right .slide_out_area_close");m&&m.classList.add("hide_until_rendered")},n.pageLoadHashCheck=function(){let e=t.location.hash;if(e&&e.length>0){e=e.replace(/[^a-zA-Z0-9-]/g,""),a.getElementById(e)&&this.load()}},n.lazyLoadCriticalMedia=function(){let e=this.aboveTheFoldElements("[data-nectar-img-src]");(e=e.filter(e=>!e.closest(".nectar-post-grid[data-lazy-skip]"))).forEach(e=>{var t=e.getAttribute("data-nectar-img-src");if(t)if(e.classList.contains("nectar-lazy")){e.addEventListener("load",function(){e.classList.add("loaded"),e.removeAttribute("data-nectar-img-src")}),e.src=t;var a=e.getAttribute("data-nectar-img-srcset");a&&(e.setAttribute("srcset",a),e.removeAttribute("data-nectar-img-srcset")),e.parentNode.classList.add("img-loaded")}else e.style.backgroundImage="url('"+t+"')",e.classList.add("loaded"),e.removeAttribute("data-nectar-img-src")}),a.querySelectorAll(".vc_row.top-level .nectar-lazy-video").forEach(e=>{for(var t in e.children){const a=e.children[t];"string"==typeof a.tagName&&"SOURCE"===a.tagName&&(a.src=a.dataset.nectarVideoSrc)}e.load(),e.classList.remove("lazy")})},n.addEvents=function(){setTimeout(()=>{this.linksToPrevent=a.querySelectorAll("a.nectar_video_lightbox, a.pp, a[data-fancybox], a.pretty_photo, .wpb_gallery_slidesflickity_style .cell > a:not(.ext-url-link), .wpb_gallery_slidesflickity_static_height_style .cell > a:not(.ext-url-link), .slide-out-widget-area-toggle a, #mobile-cart-link, .mobile-search");let e=this;this.eventListeners.forEach(a=>{t.addEventListener(a,e.load)}),this.linksToPrevent&&this.linksToPrevent.forEach(t=>{t.addEventListener("click",e.noClick)}),this.pageLoadHashCheck()},80)},n.preventClick=function(e){if(!a.body.classList.contains("nectar-delay-js-loaded"))return e.preventDefault(),!1},n.removeEvents=function(){let e=this;this.eventListeners.forEach(a=>{t.removeEventListener(a,e.load)})},n.triggerLoad=async function(e){var t=this;this.removeEvents(),this.preloadScripts(),await this.sequentialScripts(),this.dispatchEvents(),"click"!==e.type&&"touchstart"!==e.type||(e.target&&e.target.matches("a")||e.target.closest("a"))&&setTimeout(()=>{this.linksToPrevent&&this.linksToPrevent.forEach(a=>{if(a.removeEventListener("click",t.noClick),a===e.target||a.contains(e.target)){"absolute"!==getComputedStyle(e.target).position&&e.target.click()}})},90),a.body.classList.add("nectar-delay-js-loaded")},n.preloadScripts=function(){this.scripts.forEach(function(e){const t=e.getAttribute("src");if(t){const e=a.createElement("link");e.href=t,e.rel="preload",e.as="script",a.head.appendChild(e)}})},n.sequentialScripts=async function(){const e=this.scripts.shift();return e?(await this.loadScript(e),this.sequentialScripts(e)):Promise.resolve()},n.loadScript=async function(e){if(e.hasAttribute("src"))return new Promise(function(t,i){const n=a.createElement("script");[...e.attributes].forEach(e=>{const t=e.nodeName,a=e.nodeValue;"type"!==t?"data-salient-lazy-type"!==t?"data-nowprocket"!==t&&"data-pagespeed-no-defer"!==t&&n.setAttribute(t,a):n.setAttribute("type",a):n.setAttribute("data-salient-delayed-js-loaded","true")}),n.addEventListener("load",()=>{t()}),n.addEventListener("error",()=>{t()}),e.parentNode.replaceChild(n,e)})},n.dispatchEvents=function(){t.dispatchEvent(new Event("load")),t.dispatchEvent(new Event("salient-delayed-js-loaded"))},new i}(window.jQuery,window,document);