1(function($){"use strict";function uncodeVisibilityChange(){document.hidden?window.dispatchEvent(new CustomEvent("is-blur")):window.dispatchEvent(new CustomEvent("is-focus"))}var UNCODE=window.UNCODE||{};window.UNCODE=UNCODE,window.requestAnimFrame=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(callback,element){window.setTimeout(callback,1e3/60)}}(),window.requestTimeout=function(fn,delay){function loop(){var current=(new Date).getTime(),delta=current-start;delta>=delay?fn.call():handle.value=requestAnimFrame(loop)}if(!window.requestAnimationFrame&&!window.webkitRequestAnimationFrame&&(!window.mozRequestAnimationFrame||!window.mozCancelRequestAnimationFrame)&&!window.oRequestAnimationFrame&&!window.msRequestAnimationFrame)return window.setTimeout(fn,delay);var start=(new Date).getTime(),handle=new Object;return handle.value=requestAnimFrame(loop),handle},window.clearRequestTimeout=function(handle){typeof handle!="undefined"&&(window.cancelAnimationFrame?window.cancelAnimationFrame(handle.value):window.webkitCancelAnimationFrame?window.webkitCancelAnimationFrame(handle.value):window.webkitCancelRequestAnimationFrame?window.webkitCancelRequestAnimationFrame(handle.value):window.mozCancelRequestAnimationFrame?window.mozCancelRequestAnimationFrame(handle.value):window.oCancelRequestAnimationFrame?window.oCancelRequestAnimationFrame(handle.value):window.msCancelRequestAnimationFrame?window.msCancelRequestAnimationFrame(handle.value):clearTimeout(handle))},document.addEventListener("visibilitychange",uncodeVisibilityChange,!1);if(SiteParameters.smoothScroll==="on"&&!SiteParameters.is_frontend_editor){window.lenis=new Lenis({duration:1}),UNCODE.hDoc=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight);function raf(time){window.lenis.raf(time),requestAnimationFrame(raf),window.dispatchEvent(new CustomEvent("lenis-scroll"));if(SiteParameters.uncode_smooth_scroll_safe){var newHdoc=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight);UNCODE.hDoc!==newHdoc&&(UNCODE.hDoc=newHdoc,window.lenis.resize())}}requestAnimationFrame(raf),$(window).on("unmodal-open uncode-sidecart-open",function(){window.lenis.stop()}),$(window).on("uncode-sidecart-closed",function(){window.lenis.start()}),$(document).on("unmodal-close",function(){window.lenis.start()})}var checkScrollTriggerRefresh;$(function(){$(document).on("uncode-scrolltrigger-refresh",function(){clearRequestTimeout(checkScrollTriggerRefresh),checkScrollTriggerRefresh=requestTimeout(function(){ScrollTrigger.refresh(),$(".scroll-refresh-hidden").removeClass("opacity_0")},500)})}),UNCODE.checkImgLoad=function(src,cb,err,el){var img=new Image;img.onload=function(){var result=img.width>0&&img.height>0;cb(el)},img.onerror=function(){err()},img.src=src},UNCODE.betterResize=function(){var setResize,doubleResize=!0,oldW=UNCODE.wwidth,oldH=UNCODE.wheight,setCTA;$(window).on("resize orientationchange",function(){if(oldW===UNCODE.wwidth)return;oldW=UNCODE.wwidth,$(window).trigger("wwResize");if(oldH===UNCODE.wheight)return;oldH=UNCODE.wheight,$(window).trigger("whResize")}),$(window).on("resize orientationchange",function(){clearRequestTimeout(setCTA),setCTA=requestTimeout(function(){$(window).trigger("resize-int")},100)})},UNCODE.shuffle=function(array){var currentIndex=array.length,randomIndex;while(currentIndex>0)randomIndex=Math.floor(Math.random()*currentIndex),currentIndex--,[array[currentIndex],array[randomIndex]]=[array[randomIndex],array[currentIndex]];return array},Number.isInteger=Number.isInteger||function(value){return typeof value=="number"&&isFinite(value)&&Math.floor(value)===value},UNCODE.utils=function(){$(document).on("mouseover","a",function(){$(this).hasClass("star")||($(this).attr("data-title",$(this).attr("title")),$(this).removeAttr("title"))}),$(document).on("mouseout","a",function(){$(this).hasClass("star")||($(this).attr("title",$(this).attr("data-title")),$(this).removeAttr("data-title"))}),this.get_scroll_offset=function(e){var scroll_offset=0,target,trigger;Number.isInteger(e)!==!0&&typeof e!="undefined"&&typeof e.target!="undefined"&&typeof e.currentTarget!="undefined"&&(target=e.target,trigger=e.currentTarget),
1($(".menu-hide").length||$(".menu-hide-vertical").length)&&UNCODE.bodyTop>UNCODE.wheight/2&&UNCODE.hideMenu(100);if(!$("body").hasClass("vmenu")||UNCODE.wwidth<UNCODE.mediaQuery)if(!($(".menu-desktop-transparent").length&&UNCODE.wwidth>UNCODE.mediaQuery))if($(".menu-sticky").length&&!$(".menu-hide").length&&!UNCODE.isMobile||$(".menu-sticky-mobile").length&&UNCODE.isMobile&&!$(".menu-mobile-transparent").length)$(".menu-hided").length||($("body").hasClass("hmenu-center")?scroll_offset+=~~$(".menu-sticky .menu-container").outerHeight():scroll_offset+=~~$(".logo-container:visible").outerHeight());else if($(".menu-sticky .menu-container:not(.menu-hide)").length&&!$(".menu-shrink").length&&UNCODE.wwidth>UNCODE.mediaQuery){var shrink=typeof $(".navbar-brand").data("padding-shrink")!="undefined"?$(".navbar-brand").data("padding-shrink")*2:36;scroll_offset+=~~$(".menu-sticky .menu-container").outerHeight()-($(".navbar-brand").data("minheight")+shrink)}else $(".menu-sticky").length&&!$(".menu-hide").length||$(".menu-sticky-vertical").length&&!$(".menu-hide-vertical").length?scroll_offset+=UNCODE.menuMobileHeight:typeof target!="undefined"&&target.closest(".main-menu-container")!=null&&UNCODE.wwidth<UNCODE.mediaQuery&&!$("body").hasClass("vmenu")&&!$("body").hasClass("menu-mobile-transparent")&&!$(".menu-sticky").length||$(trigger)[0]!==$(document)[0]&&$(trigger).length&&typeof $(trigger).offset()!="undefined"&&window.scrollY>$(trigger).offset().top+UNCODE.menuMobileHeight&&(scroll_offset+=UNCODE.menuMobileHeight);return scroll_offset+=UNCODE.bodyBorder,scroll_offset},UNCODE.isFullPage||($(document).on("click",'a[href*="#"]:not(.woocommerce-review-link):not(.one-dot-link)',function(e){var hash=e.currentTarget.hash,is_scrolltop=$(e.currentTarget).hasClass("scroll-top")?!0:!1,anchor="";if($(e.currentTarget).data("toggle")=="tab"||$(e.currentTarget).data("toggle")=="collapse")return;if($(e.currentTarget).hasClass("woocommerce-review-link")&&$(".wootabs .tab-content").length){e.preventDefault(),$("#tab-reviews").is(":visible")||$('a[href="#tab-reviews"]').trigger("click");var calc_scroll=$(".wootabs .tab-content").offset().top;calc_scroll-=UNCODE.get_scroll_offset(e);if(!($(".menu-desktop-transparent").length&&UNCODE.wwidth>UNCODE.mediaQuery)&&!($(".menu-mobile-transparent").length&&UNCODE.wwidth<=UNCODE.mediaQueryMobile)){var shrink=typeof $(".navbar-brand").data("padding-shrink")!="undefined"?$(".navbar-brand").data("padding-shrink")*2:36;$(".menu-sticky .menu-container:not(.menu-hide)").length&&$(".menu-shrink").length&&(scrollTo+=UNCODE.menuHeight-($(".navbar-brand").data("minheight")+shrink))}var bodyTop=document.documentElement.scrollTop||document.body.scrollTop,delta=bodyTop-calc_scroll,scrollSpeed=SiteParameters.constant_scroll=="on"?Math.abs(delta)/parseFloat(SiteParameters.scroll_speed):SiteParameters.scroll_speed;scrollSpeed<1e3&&SiteParameters.constant_scroll=="on"&&(scrollSpeed=1e3),requestTimeout(function(){scrollSpeed==0?($("html, body").scrollTop(calc_scroll),UNCODE.scrolling=!1):$("html, body").on("scroll wheel DOMMouseScroll mousewheel touchmove",function(){$(this).stop()}).animate({scrollTop:calc_scroll},scrollSpeed,"easeInOutCubic",function(){$(this).off("scroll wheel DOMMouseScroll mousewheel touchmove"),UNCODE.scrolling=!1})},200);return}if(hash!=undefined){var specialFormat=/[ !@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]/,anchor=this.hash.slice(1);!specialFormat.test(hash)&&location.pathname.replace(/^\//g,"")==this.pathname.replace(/^\//g,"")&&location.hostname==this.hostname&&(specialFormat.test(hash)||$(hash).length&&(anchor=$(hash)))}if(is_scrolltop||anchor!="")if(is_scrolltop){e.preventDefault();var bodyTop=document.documentElement.scrollTop||document.body.scrollTop,scrollSpeed=SiteParameters.constant_scroll=="on"?Math.abs(bodyTop)/parseFloat(SiteParameters.scroll_speed):SiteParameters.scroll_speed;scrollSpeed<1e3&&SiteParameters.constant_scroll=="on"&&(scrollSpeed=1e3),scrollSpeed==0?($("html, body").scrollTop(0),UNCODE.scrolling=!1):$("html, body").on("scroll wheel DOMMouseScroll mousewheel touchmove",function(){$(this).stop()}).animate({scrollTop:0},scrollSpeed,"easeInOutCubic",function(){$(this).off("scroll wheel DOMMouseScroll mousewheel touchmove"),UNCODE.scrolling=!1})}else{var scrollSection=typeof anchor=="string"?$('[data-name="'+anchor+'"]'):anchor;$.each($(".menu-container .menu-item > a, .widget_nav_menu .menu-smart .menu-item > a, #uncode-mobile-menu-block .menu-item > a"),function(index,val){var get_href=$(val).attr("href");get_href!=undefined&&(get_href.substring(get_href.indexOf("#")+1)==anchor?$(val).parent().addClass("active"):$(val).parent().removeClass("active"))});if(scrollSection.length){$("body").hasClass("uncode-scroll-no-history")&&e.preventDefault(),UNCODE.menuOpened&&(UNCODE.wwidth<UNCODE.mediaQuery?window.dispatchEvent(UNCODE.menuMobileTriggerEvent):($(".mmb-container-overlay .overlay-close").trigger("click"),$(".mmb-container .trigger-overlay.close")[0].dispatchEvent(new Event("click"))));var calc_scroll=scrollSection.offset().top,getOffset=UNCODE.get_scroll_offset(e),$logo=$(".logo-container:visible"),logoH,$menu=$("#masthead .menu-container"),menuH;calc_scroll-=isNaN(getOffset)?0:getOffset;var bodyTop=document.documentElement.scrollTop||document.body.scrollTop,delta=bodyTop-calc_scroll,scrollSpeed=SiteParameters.constant_scroll=="on"?Math.abs(delta)/parseFloat(SiteParameters.scroll_speed):SiteParameters.scroll_speed;scrollSpeed<1e3&&SiteParameters.constant_scroll=="on"&&(scrollSpeed=1e3),!($(".menu-desktop-trans
1parent").length&&UNCODE.wwidth>UNCODE.mediaQuery)&&!($(".menu-mobile-transparent").length&&UNCODE.wwidth<=UNCODE.mediaQueryMobile)&&$(".menu-sticky .menu-container:not(.menu-hide)").length&&!$(".menu-shrink").length&&!$("body").hasClass("vmenu")&&UNCODE.wwidth>UNCODE.mediaQuery&&(logoH=$logo.outerHeight(),menuH=$menu.outerHeight(),calc_scroll<logoH+menuH&&(calc_scroll=0)),UNCODE.menuStickyMobileOverlay===!1&&UNCODE.isMobile&&(calc_scroll-=parseFloat($(".overlay.overlay-menu").outerHeight())),scrollSpeed==0?($("html, body").scrollTop(calc_scroll),UNCODE.scrolling=!1):$("html, body").on("scroll wheel DOMMouseScroll mousewheel touchmove",function(){$(this).stop()}).animate({scrollTop:delta>0?calc_scroll-.1:calc_scroll},scrollSpeed,"easeInOutCubic",function(){$(this).off("scroll wheel DOMMouseScroll mousewheel touchmove"),UNCODE.scrolling=!1;if(getOffset!=UNCODE.get_scroll_offset(e)&&!($(".menu-desktop-transparent").length&&UNCODE.wwidth>UNCODE.mediaQuery)&&!($(".menu-mobile-transparent").length&&UNCODE.wwidth<=UNCODE.mediaQueryMobile)||$(".menu-hided").length)calc_scroll=scrollSection.offset().top,getOffset=UNCODE.get_scroll_offset(e),calc_scroll-=getOffset,$("html, body").on("scroll wheel DOMMouseScroll mousewheel touchmove",function(){$(this).stop()}).animate({scrollTop:delta>0?calc_scroll-.1:calc_scroll},scrollSpeed,"easeInOutCubic",function(){$(this).off("scroll wheel DOMMouseScroll mousewheel touchmove"),UNCODE.scrolling=!1})})}}}),$(".header-scrolldown").on("click",function(event){event.preventDefault();var pageHeader=$(event.target).closest("#page-header"),pageHeaderTop=pageHeader.offset().top,pageHeaderHeight=pageHeader.outerHeight(),scrollSpeed=SiteParameters.constant_scroll=="on"?Math.abs(pageHeaderTop+pageHeaderHeight)/parseFloat(SiteParameters.scroll_speed):SiteParameters.scroll_speed;scrollSpeed<1e3&&SiteParameters.constant_scroll=="on"&&(scrollSpeed=1e3);var calc_scroll=pageHeaderTop+pageHeaderHeight,getOffset=UNCODE.get_scroll_offset(event);calc_scroll-=getOffset;if(!($(".menu-desktop-transparent").length&&UNCODE.wwidth>UNCODE.mediaQuery)&&!($(".menu-mobile-transparent").length&&UNCODE.wwidth<=UNCODE.mediaQueryMobile)){var shrink=typeof $(".navbar-brand").data("padding-shrink")!="undefined"?$(".navbar-brand").data("padding-shrink")*2:36;$(".menu-sticky .menu-container:not(.menu-hide)").length&&$(".menu-shrink").length&&(scrollTo+=UNCODE.menuHeight-($(".navbar-brand").data("minheight")+shrink))}scrollSpeed==0?($("html, body").scrollTop(calc_scroll),UNCODE.scrolling=!1):$("html, body").on("scroll wheel DOMMouseScroll mousewheel touchmove",function(){$(this).stop()}).animate({scrollTop:calc_scroll},scrollSpeed,"easeInOutCubic",function(){$(this).off("scroll wheel DOMMouseScroll mousewheel touchmove"),UNCODE.scrolling=!1;if(getOffset!=UNCODE.get_scroll_offset(event)||$(".menu-hided").length)calc_scroll=pageHeaderTop+pageHeaderHeight,getOffset=UNCODE.get_scroll_offset(event),calc_scroll-=getOffset,$("html, body").on("scroll wheel DOMMouseScroll mousewheel touchmove",function(){$(this).stop()}).animate({scrollTop:calc_scroll},scrollSpeed,"easeInOutCubic",function(){$(this).off("scroll wheel DOMMouseScroll mousewheel touchmove"),UNCODE.scrolling=!1})})})),$(document).on("mouseenter",".col-link",function(e){var uncol=$(e.target).prev(".uncol"),el=uncol.find(".column-background");if(el){$(".btn-container .btn",uncol).addClass("active");var elOverlay=$(el[0]).find(".block-bg-overlay");if(elOverlay.length){var getOpacity=$(elOverlay).css("opacity");if(getOpacity!=1){getOpacity=Math.round(getOpacity*100)/100;var newOpacity=getOpacity+.1;$(elOverlay).data("data-opacity",getOpacity),$(elOverlay).css("opacity",newOpacity)}}}}).on("mouseleave",".col-link",function(e){var uncol=$(e.target).prev(".uncol"),el=uncol.find(".column-background");$(".btn-container .btn",uncol).removeClass("active");if(el){var elOverlay=$(el[0]).find(".block-bg-overlay");if(elOverlay.length){var getOpacity=$(elOverlay).data("data-opacity");$(elOverlay).css("opacity",getOpacity)}}});var fixAdminBar=function(){if($("html").hasClass("admin-mode")&&!SiteParameters.is_frontend_editor){var getAdminBar=$("#
1wpadminbar");if(getAdminBar.length&&getAdminBar.css("position")!=="hidden"){var getAdminBarHeight=getAdminBar.height();getAdminBar.css("position")==="fixed"?($("html").css({"margin-top":getAdminBarHeight+"px","padding-top":UNCODE.bodyBorder+"px"}),$(".body-borders .top-border").css({"margin-top":getAdminBarHeight+"px"})):($("html").css({"padding-top":UNCODE.bodyBorder+"px","margin-top":"0px"}),$(".body-borders .top-border").css({"margin-top":"0px"}))}}};window.addEventListener("load",fixAdminBar),window.addEventListener("resize",fixAdminBar);var beforePrint=function(){window.dispatchEvent(new CustomEvent("resize")),window.dispatchEvent(UNCODE.boxEvent)};if(window.matchMedia){var mediaQueryList=window.matchMedia("print");mediaQueryList.addListener(function(mql){mql.matches&&beforePrint()})}window.onbeforeprint=beforePrint;var safariSrcSet=function(){SiteParameters.is_frontend_editor||$("html.safari img[sizes]").each(function(){var $img=$(this),sizeImg=parseInt($img.attr("sizes"));typeof sizeImg=="number"&&$img.attr("sizes",sizeImg+"px")})};window.addEventListener("load",safariSrcSet)},UNCODE.lettering=function(){var setCTA,highlightStill=function(){var $heading_texts=$(".heading-text:not(.animate_inner_when_almost_visible)");$.each($heading_texts,function(key,el){var $heading=$(el);if(!$('.heading-text-highlight-inner[data-animated="yes"]',$heading).length)return;if(UNCODE.isUnmodalOpen&&!el.closest("#unmodal-content"))return;var waypoint=new Waypoint({context:UNCODE.isUnmodalOpen?document.getElementById("unmodal-content"):window,element:el,handler:function(){var $anims=$('.heading-text-highlight-inner[data-animated="yes"]',this.element),anims_l=$anims.length;$anims.each(function(_key_,_el_){var $anim=$(_el_);$anim.hasClass("heading-text-highlight-animated")||($anim.addClass("heading-text-highlight-animated"),$heading.data("animate")===!0?$anim.css({"-webkit-transition-duration":"0ms","-moz-transition-duration":"0ms","-o-transition-duration":"0ms","transition-duration":"0ms"}):$anim.css({"-webkit-transition-delay":(_key_+2)*200+"ms","-moz-transition-delay":(_key_+2)*200+"ms","-o-transition-delay":(_key_+2)*200+"ms","transition-delay":(_key_+2)*200+"ms"}))}),$anims.last().one("webkitTransitionEnd oTransitionEnd mozTransitionEnd msTransitionEnd transitionEnd",function(e){$heading.data("animate",!0)}),$anims.removeAttr("data-animated")},offset:"100%"})}),Waypoint.refreshAll(),$(document.body).trigger("uncode_waypoints"),typeof ScrollTrigger!="undefined"&&ScrollTrigger!==null&&$(document).trigger("uncode-scrolltrigger-refresh")};requestTimeout(function(){highlightStill(),$(window).on("wwResize",function(){clearRequestTimeout(setCTA),setCTA=requestTimeout(highlightStill,100)})},400)},UNCODE.isUnmodalOpen=!1;var manageVideoSize=function(){var setVideoFit;$(".wp-block-embed").each(function(){var $this=$(this);if($("iframe",$this).length){var $iframe=$("> iframe, > a > iframe",$this),w=parseFloat($iframe.attr("width")),h=parseFloat($iframe.attr("height")),url=$iframe.attr("src"),ratio,frW;if(typeof url!="undefined"&&url.indexOf("soundcloud")==-1&&h!==0){ratio=h/w;var setResizeiFto,resizeiFrame=function(){frW=$iframe.width(),$iframe.css({height:frW*ratio})};resizeiFrame(),$(window).on("wwResize load",function(){clearRequestTimeout(setResizeiFto),setResizeiFto=requestTimeout(function(){resizeiFrame()},10)})}}})};manageVideoSize(),UNCODE.vivus=function(icon,time,delay,file){if(typeof Vivus!="undefined"){var icon_options={type:"delayed",pathTimingFunction:Vivus.EASE_OUT,animTimingFunction:Vivus.LINEAR,duration:time};delay&&(icon_options.delayStart=delay),file&&(icon_options.file=file),new Vivus(icon,icon_options)}},UNCODE.lastURL="",UNCODE.getURLParams=function(current_location,is_string){var params={};if(is_string)var url=current_location.split("?")[1];else{var url=current_location.search;url=url.substring(1)}if(url){var parts=url.split("&");for(var i=0;i<parts.length;i++){var nv=parts[i].split("=");if(!nv[0])continue;params[nv[0]]=nv[1]||!0}}return params},UNCODE.hasEqualURLParams=function(obj1,obj2){for(var i in obj1)if(obj1.hasOwnProperty(i)){if(!obj2.hasOwnProperty(i))return!1;if(obj1[i]!=obj2[i])return!1}for(var i in obj2)if(obj2.hasOwnProperty(i)){if(!obj1.hasOwnProperty(i))return!1;if(obj1[i]!=obj2[i])return!1}return!0},UNCODE.magnetic=function(){$(document).on("mousemove",".un-magnetic-zone",function(e){var $zone
1=$(this),zoneOff=$zone.offset(),$mgntcEl=$(".un-magnetic-el",this),elBound=this.getBoundingClientRect(),maxSize=Math.max($zone.outerWidth(),$zone.outerHeight()),Xvalue=e.pageX-(zoneOff.left+maxSize/2),Yvalue=e.pageY-(zoneOff.top+maxSize/2);$mgntcEl.each(function(key,val){var magneticValue=$(val).attr("data-mgntc")||.5;val.animate({transform:"translate("+Xvalue*magneticValue+"%, "+Yvalue*magneticValue+"%)"},{duration:500,fill:"forwards"})})}),$(document).on("mouseleave",".un-magnetic-zone",function(e){var $mgntcEl=$(".un-magnetic-el",this);$mgntcEl.each(function(key,val){val.animate({transform:"translate(0)"},{duration:500,fill:"forwards"})})})},UNCODE.rowParallax=function(){if(SiteParameters.is_frontend_editor||SiteParameters.smoothScroll!=="on")return;var $rows=$(".parallax-move"),stableHeight=UNCODE.wheight;$rows.each(function(){var $row=$(this),_row=$row[0],dataMove=$row.attr("data-parallax-move"),dataSafe=$row.attr("data-parallax-safe"),rowInViewport=!1,trans;if($row.find(".parallax-move").length)return;dataSafe=typeof dataSafe=="undefined"?"":dataSafe,dataMove=typeof dataMove=="undefined"||dataMove===""?3:dataMove,dataMove/=10;if("IntersectionObserver"in window){var observer=new IntersectionObserver(function(entries){entries.forEach(function(entry){entry.isIntersecting?rowInViewport=!0:rowInViewport=!1})},{root:document});observer.observe(_row)}else rowInViewport=!0;var loopRAF=function(){if(rowInViewport){var bound=_row.getBoundingClientRect(),bound_top=bound.top,bound_height=bound.height,move=!0,scrolled=window.pageYOffset||window.document.documentElement.scrollTop,docH=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight),fromBottom=docH-(scrolled+bound_top+bound_height);bound_height>stableHeight&&dataSafe==="yes"&&($row.find(">div").css({transform:"none"}),move=!1),UNCODE.wwidth<SiteParameters.smoothScrollQuery&&($row.find(">div").css({transform:"none"}),move=!1),move&&(fromBottom<stableHeight?trans=(stableHeight-(bound_top+bound_height+fromBottom))*dataMove:scrolled+bound_top<stableHeight?trans=scrolled*dataMove:trans=(stableHeight/2-(bound_top+bound_height/2))*dataMove,$row.find(">div").css({transform:"translateY("+trans+"px) translateZ(0)"}))}requestAnimationFrame(loopRAF)};requestAnimationFrame(loopRAF)}),$(window).on("load resize",function(e){UNCODE.isMobile||(stableHeight=UNCODE.wheight)}),$(window).on("load wwResize",function(e){UNCODE.isMobile&&(stableHeight=UNCODE.wheight)})},UNCODE.changeSkinOnScroll=function(){if(UNCODE.isFullPage&&!UNCODE.isFullPageSnap)return;var $masthead=$("#masthead"),transDesktop,transMobile,changeSkin,checkTransparencyAndChange=function($col){transDesktop=$masthead.hasClass("menu-desktop-transparent")&&UNCODE.wwidth>=UNCODE.mediaQuery,transMobile=$masthead.hasClass("menu-mobile-transparent")&&UNCODE.wwidth<UNCODE.mediaQuery,changeSkin=$masthead.hasClass("menu-change-skin");if(!transDesktop&&!transMobile)return!1;if(!changeSkin)return!1;if($col.hasClass("style-light"))return $masthead.removeClass("style-dark-override").addClass("style-light-override"),!1;if($col.hasClass("style-dark"))return $masthead.removeClass("style-light-override").addClass("style-dark-override"),!1},prev_row="normal",odd=!0,$rows=$(".vc_row[data-parent]:visible:not(.overlay-menu *):not(#uncode-mobile-menu-block *):not(.block-wrapper-parent *)");$.each($rows,function(index,row){var $row=$(row),$col=$(".uncol",$row).first(),$slider=$(".uncode-slider",$row);if($row.closest("li.menu-item").length)return;var wayDown=new Waypoint({context:UNCODE.isUnmodalOpen?document.getElementById("unmodal-content"):window,element:row,handler:function(direction){direction=="down"&&(prev_row!=="normal"||!row.hasAttribute("data-bg-changer"))&&($slider.length&&($col=$(".owl-item.index-active .uncol",$slider).first()),checkTransparencyAndChange($col)),odd===!1?(row.hasAttribute("data-bg-changer")?prev_row="bg-changer":prev_row="normal",odd=!0):odd=!1},offset:function(){return UNCODE.menuHeight/2}}),wayUp=new Waypoint({context:UNCODE.isUnmodalOpen?document.getElementById("unmodal-content"):window,element:row,handler:function(direction){direction=="up"&&(prev_row!=="normal"||!row.hasAttribute("data-bg-changer"))&&($slider.length&&($col=$(".owl-item.index-active .uncol",$slider).first()),checkTransparencyAndChange($col)),odd===!1?(row.hasAttribute("data-bg-changer")?prev_row="bg-changer":prev_row="normal",odd=!0):odd=!1},offset:function(){return-row.clientHeight+UNCODE.menuHeight/2}})})},UNCODE.share=function(){if(typeof Share!="undefined"){var share_button_element=$(".share-button"),share_button_url=share_button_element.data("url"),share_button_config={ui:{flyout:"top center",button_font:!1,button_text:"",icon_font:!1}};share_button_url&&(share_button_config.url=share_button_url.replace("&","%26"));var share_button_top=new Share(".share-button",share_button_config);$("li[data-network]",share_button_element).each(function(){var label=SiteParameters.uncode_share_label,network=$(this).attr("data-network");label=label.replace("%",network),$(this).attr("aria-label",label)})}},UNCODE.tooltip=function(){typeof jQuery.fn.tooltip!="undefined"&&$(".btn-tooltip").tooltip()},UNCODE.counters=function(){var $counters=$(".uncode-counter:not(.counter-init)");$counters.each(function(){var $counter=$(this).addClass("counter-init");SiteParameters.is_frontend_editor&&$counter.addClass("started");if($counter.closest(".owl-carousel").length)return;$counter.addClass("started").counterUp({delay:10,time:1500})})},UNCODE.countdowns=function(){var $countdowns=$("[data-uncode-countdown]:not(.counter-init)");$countdowns.each(function(){var $this=$(this).addClass("counter-init"),finalDate=$(this).data("uncode-countdown");$this.countdown(finalDate,function(event){$this.html(event.strftime("<span>%D <small>"+SiteParameters.days+"</small></span> <span>%H <small>"+SiteParameters.hours+"</small></span> <span>%M <small>"+SiteParameters.minutes+"</small></span> <span>%S <small>"+SiteParameters.seconds+"</small></span>"))})})},UNCODE.tabs=function(){var tabSwitcher=function($el){$(".tab-switch, .tab-active-anim, .nav-tabs.tab-no-border:not(.tabs-vert
1ical):not(.tab-switch)",$el).each(function(key,value){var $navs=$(value),$active=$("li.active",$navs),$active_a=$("> a",$active),$active_span=$("> span",$active_a),vertical=$navs.closest(".vertical-tab-menu").length;!$(".switcher-cursor",$navs).length&&!vertical&&$navs.append('<span class="switcher-cursor" aria-hidden="true" tabindex="-1" />');var $cursor=$(".switcher-cursor",$navs),active_w=$("a",$active).outerWidth(),span_w=$active_span.outerWidth(),active_pos=$active.position(),active_a_pos=$active_a.position(),span_pos=$active_span.position(),cursor_w=$navs.hasClass("tab-no-border")&&!$navs.hasClass("tab-switch")?span_w:active_w,cursor_left=$navs.hasClass("tab-no-border")&&!$navs.hasClass("tab-switch")?active_pos.left+span_pos.left:active_pos.left;cursor_left=cursor_left+active_a_pos.left+parseInt($active_a.css("marginLeft"),10),vertical||$cursor.css({left:cursor_left,width:cursor_w}),$navs.addClass("switch-init")})},$body=$("body");tabSwitcher($body);var tabHoverIntent=function(){var setHover;$('.tab-hover [data-toggle="tab"], .tab-hover [data-toggle="pill"]').on("mouseover",function(e){var $this=$(e.target);setHover=requestTimeout(function(){$this.trigger("hover-int")},50)}).on("mouseout",function(){clearRequestTimeout(setHover)})};tabHoverIntent();var tabInit=function(){$('[data-toggle="tab"], [data-toggle="pill"]').on("click.bs.tab.data-api hover-int",function(e){e.preventDefault();var $el=$(this);$el.tab("show");var $container=$el.closest(".uncode-tabs");tabSwitcher($container),requestTimeout(function(){window.dispatchEvent(UNCODE.boxEvent);var $tabs=$(e.currentTarget).closest(".uncode-tabs");$tabs.hasClass("tabs-trigger-box-resized")?window.dispatchEvent(new CustomEvent("boxResized")):$tabs.hasClass("tabs-trigger-window-resize")&&(window.dispatchEvent(new Event("resize")),$(window).trigger("uncode.re-layout"));var $active_panel=$(".tab-pane.active",$tabs);$.each($(".animate_when_almost_visible:not(.start_animation):not(.t-inside):not(.drop-image-separator), .index-scroll .animate_when_almost_visible, .tmb-media .animate_when_almost_visible:not(.start_animation), .animate_when_almost_visible.has-rotating-text, .custom-grid-container .animate_when_almost_visible:not(.start_animation)",$active_panel),function(index,val){var element=$(val),delayAttr=element.attr("data-delay");delayAttr==undefined&&(delayAttr=0),requestTimeout(function(){element.addClass("start_animation")},delayAttr)})},300);var $tabs=$(e.currentTarget).closest(".uncode-tabs"),$non_active_panel=$(".tab-pane:not(.active)",$tabs);$.each($(".start_animation:not(.t-inside):not(.drop-image-separator)",$non_active_panel),function(index,val){var element=$(val);element.removeClass("start_animation")});var $li=$el.closest("li"),mQuery=$el.closest(".tab-tablet-bp").length?UNCODE.mediaQuery:UNCODE.mediaQueryMobile;$("li",$container).not($li).find(".tab-pane").slideUp(250),$(".tab-pane",$li).slideDown(250);var completeSlideDown=requestTimeout(function(){if(UNCODE.wwidth<=mQuery&&typeof e.originalEvent!="undefined"){var pos=$el.offset(),rect=$el[0].getBoundingClientRect(),$masthead=$("#masthead > .menu-container"),considerMenu=$(".menu-wrapper .is_stuck").length&&$(".menu-wrapper .is_stuck > div").offset().top>50?UNCODE.menuMobileHeight:0;(rect.top-considerMenu<0||rect.bottom>(window.innerHeight||document.documentElement.clientHeight))&&$("html, body").animate({scrollTop:pos.top-considerMenu},{easing:"easeInOutQuad",duration:250})}},260)})};tabInit();var tabResponsive=function(){if(SiteParameters.is_frontend_editor)return!0;var $tabContainers=$(".tab-container.tabs-breakpoint");$tabContainers.each(function(){var $tabContainer=$(this),$tabContent=$(".tab-content",$tabContainer),$nav=$(".nav-tabs",$tabContainer),mQuery=$tabContainer.hasClass("tab-tablet-bp")?UNCODE.mediaQuery:UNCODE.mediaQueryMobile;$("> li",$nav).each(function(){var $li=$(this),dataID=$li.attr("data-tab-id");if(UNCODE.wwidth<=mQuery){if(!$(".tab-pane",$li).length){var $append_pane=$('[data-id="'+dataID+'"], #'+dataID,$tabContent);$tabContainer.addClass("tabs-appended"),$li.append($append_pane)}$li.hasClass("active")&&$("> a",$li).triggerHandler("click.bs.tab.data-api")}else if(!$('[data-id="'+dataID+'"]',$tabContent).length){var $append_pane=$('[data-id="'+dataID+'"], #'+dataID,$nav);
1$tabContainer.removeClass("tabs-appended"),$tabContent.prepend($append_pane.removeAttr("style"))}})})};tabResponsive(),$(window).on("wwResize",function(){tabHoverIntent(),tabSwitcher($body)});var setCTA;$(window).on("resize",function(){clearRequestTimeout(setCTA),setCTA=requestTimeout(tabResponsive,100)}),$(".nav-tabs").each(function(){var $nav=$(this),$lis=$("> li:not(.active)",$nav),$links=$(".tab-excerpt-link",$nav);$(".tab-excerpt",$lis).slideUp(400,function(){$(this).addClass("init")}),$links.each(function(){var $link=$(this),$par_a=$link.closest("a"),href=$link.attr("data-href"),target=$link.attr("data-target");$par_a.addClass("inner-link"),$link.on("click",function(){var _link=document.createElement("a");_link.href=href,_link.target=typeof target=="undefined"||target===""?"_self":target,_link.click()})}),$nav.addClass("tab-init")}),$(".uncode-tabs.tabs-no-lazy").each(function(){var $tabs=$(this),$panes=$(".tab-pane:not(.active)",$tabs);$panes.each(function(){var $pane=$(this),$imgs=$('img[loading="lazy"]',$pane);$imgs.removeAttr("loading"),$imgs.removeAttr("decoding")})})},UNCODE.collapse=function(){$(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(e){var $this=$(this),href,target=$this.attr("data-target")||e.preventDefault()||(href=$this.attr("href"))&&href.replace(/.*(?=#[^\s]+$)/,""),$target=$(target),parent=$this.attr("data-parent"),$parent=parent&&$(parent),$title=$(this).parent(),$accordion=$(e.target).closest(".uncode-accordion"),$group=$this.closest(".group"),$panel_group=$this.closest(".panel-group");$parent&&($parent.find('[data-toggle="collapse"][data-parent="'+parent+'"]').not($this).addClass("collapsed"),!$title.hasClass("active")||$panel_group.attr("data-no-toggle")==1&&e.type!=="click"?($panel_group.attr("data-no-toggle")!=1&&($parent.find(".panel-title").removeClass("active"),$parent.find(".group").removeClass("active-group")),$title[$target.hasClass("in")?$panel_group.attr("data-no-toggle")!=1&&"removeClass":"addClass"]("active"),$group[$target.hasClass("in")?$panel_group.attr("data-no-toggle")!=1&&"removeClass":"addClass"]("active-group")):($title.removeClass("active"),$group.removeClass("active-group"))),$this[$target.hasClass("in")?"addClass":"removeClass"]("collapsed"),requestTimeout(function(){var $accordion=$(e.target).closest(".uncode-accordion");$accordion.hasClass("tabs-trigger-box-resized")?window.dispatchEvent(new CustomEvent("boxResized")):$accordion.hasClass("tabs-trigger-window-resize")&&(window.dispatchEvent(new Event("resize")),$(window).trigger("uncode.re-layout"));var $active_panel=$(".panel.active-group",$parent);$.each($(".animate_when_almost_visible:not(.start_animation):not(.t-inside):not(.drop-image-separator), .index-scroll .animate_when_almost_visible, .tmb-media .animate_when_almost_visible:not(.start_animation), .animate_when_almost_visible.has-rotating-text, .custom-grid-container .animate_when_almost_visible:not(.start_animation)",$active_panel),function(index,val){var element=$(val),delayAttr=element.attr("data-delay");delayAttr==undefined&&(delayAttr=0),requestTimeout(function(){element.addClass("start_animation")},delayAttr)})},500),$group.find(".panel-title:not(.active) > a").trigger("blur")}),$(".uncode-accordion.tabs-no-lazy").each(function(){var $accordion=$(this),$panes=$(".panel:not(.active-group)",$accordion);$panes.each(function(){var $pane=$(this),$imgs=$('img[loading="lazy"]',$pane);$imgs.removeAttr("loading"),$imgs.removeAttr("decoding")})})},UNCODE.accessibility=function(){if(!SiteParameters.uncode_is_accessible)return},UNCODE.bigText=function(el){var bigTextLaunch=function(){el==undefined&&(el=$("body")),$.each($(".bigtext",el),function(index,val){$(val).bigtext({minfontsize:24}),!$(val).parent().hasClass("blocks-animation")&&!$(val).hasClass("animate_when_almost_visible")&&$(val).css({opacity:1}),requestTimeout(function(){$(val).find(".animate_when_almost_visible").length!=0&&$(val).css({opacity:1})},400)})};UNCODE.wwidth>UNCODE.mediaQuery&&bigTextLaunch(),$(window).on("load",bigTextLaunch)},UNCODE.process_shortpixel_image=function(image){var data={action:"shortpixel_manual_optimization",image_id:image,cleanup:!0}
1;$.get(SiteParameters.ajax_url,data)},UNCODE.animateSubInside=function(_this,remove){typeof remove!="undefined"&&remove===!0?($(document).trigger("sub-menu-slide-up"),$(".animate_when_almost_visible, .translate_when_almost_visible",_this).each(function(){$(this).removeClass("start_animation").css({"animation-delay":"0s","transition-delay":"0s"})})):($.each($(".translate_when_almost_visible:not(.start_animation), .animate_when_almost_visible:not(.start_animation):not(.t-inside):not(.drop-image-separator), .index-scroll .animate_when_almost_visible, .tmb-media .animate_when_almost_visible:not(.start_animation), .animate_when_almost_visible.has-rotating-text, .custom-grid-container .animate_when_almost_visible:not(.start_animation)",_this),function(index,val){var element=$(val),delayAttr=element.attr("data-delay");delayAttr==undefined&&(delayAttr=0),element.css({"animation-delay":delayAttr+"ms","transition-delay":delayAttr+"ms"}),element.addClass("start_animation")}),document.dispatchEvent(new CustomEvent("sub-menu-slide-down")))},UNCODE.menuSystem=function(){function menuMobile(){var $body=$("body"),scrolltop,$mobileToggleButton=$(".mobile-menu-button, .uncode-close-offcanvas-mobile:not(.vc_element)"),$masthead=$("#masthead"),$menuBlock=$("#uncode-mobile-menu-block"),$box,$el,$el_transp,elHeight,offCanvasAnim,check,animating=!1,stickyMobile=!1,menuClose=new CustomEvent("menuMobileClose"),menuOpen=new CustomEvent("menuMobileOpen");UNCODE.menuOpened=!1,$mobileToggleButton.on("click",function(event){event.stopPropagation();var btn=this;if($(btn).hasClass("overlay-close"))return;event.preventDefault(),$(".overlay-search.open .menu-close-dd",$masthead).trigger("click");if(UNCODE.wwidth<=UNCODE.mediaQuery){$box=$(this).closest(".box-container").find(".main-menu-container:not(.no-mobile):not(.main-wrapper *)"),$el=$(this).closest(".box-container").find(".menu-horizontal-inner:not(.row-brand):not(.main-wrapper *), .menu-sidebar-inner:not(.main-wrapper *)"),$el_transp=$(".menu-absolute.menu-transparent"),UNCODE.isMobile?$(".menu-wrapper.menu-sticky, .menu-wrapper.menu-hide-only, .main-header .menu-sticky-vertical, .main-header .menu-hide-only-vertical, .menu-mobile-centered, .menu-sticky-mobile").length?(stickyMobile=!0,elHeight=window.innerHeight-UNCODE.menuMobileHeight-UNCODE.bodyBorder*2-UNCODE.adminBarHeight+1):(elHeight=0,$.each($box.find("> div"),function(index,val){elHeight+=$(val).outerHeight()})):(elHeight=0,$.each($el,function(index,val){elHeight+=$(val).outerHeight()}));var open=function(){clearTimeout(offCanvasAnim),animating||($body.addClass("open-overlay-menu").addClass("opening-overlay-menu"),scrolltop=$(window).scrollTop(),window.dispatchEvent(menuOpen),animating=!0,UNCODE.menuOpened=!0,$('body[class*="vmenu-"], body.hmenu-center').length&&$(".menu-hide, .menu-sticky, .menu-transparent").length&&(($body.hasClass("menu-sticky-mobile")||$("#masthead.menu-transparent").length&&!UNCODE.isMobile)&&$(".main-header > .vmenu-container").css({position:"fixed",top:$(".menu-container").outerHeight()+UNCODE.bodyBorder+UNCODE.adminBarHeight+"px"}),$("body.menu-offcanvas").length?($(".menu-container:not(.sticky-element):not(.grid-filters)").css({position:"fixed"}),$(".vmenu-container.menu-container:not(.sticky-element):not(.grid-filters)").css({position:"fixed",top:UNCODE.menuMobileHeight+UNCODE.bodyBorder+UNCODE.adminBarHeight+"px"})):$(".menu-hide, .menu-sticky").length&&UNCODE.wwidth>=960&&$(".menu-sticky").length&&$(".menu-container:not(.sticky-element):not(.grid-filters)").css({position:"fixed"})),$("body.hmenu-center").length&&(!UNCODE.isMobile&&$(".menu-hide, .menu-sticky").length||UNCODE.isMobile&&$(".menu-sticky-mobile").length)&&$(".menu-container:not(.sticky-element):not(.grid-filters)").css({position:"fixed",top:UNCODE.menuMobileHeight+UNCODE.bodyBorder+UNCODE.adminBarHeight+"px"}),$box.addClass("open-items"),$el_transp.length&&$("body.menu-mobile-transparent").length&&$el_transp.addClass("is_mobile_open"),$("body").hasClass("menu-mobile-off-canvas")?animating=!1:(btn.classList.add("close"),$box.animate({height:elHeight},600,"easeInOutCirc",function(){animating=!1,stickyMobile||$box.css("height","auto")})),$menuBlock.length&&UNCODE.animateSubInside($menuBlock))},close=function(){clearTimeout(offCanvasAnim),animating||(window.dispatchEvent(menuClose),animating=!0,UNCODE.menuOpened=!1,$("body").hasClass("menu-mobile-off-canvas")||(btn.classList.remove("close"),btn.classList.add("closing")),$box.addClass("close"),requestTimeout(function(){$box.removeClass("close"),$box.removeClass("open-items"),btn.classList.remove("closing"),$el_transp.length&&$el_transp.removeClass("is_mobile_open")},500),$body.removeClass("opening-overlay-menu"),$("body").hasClass("menu-mobile-off-canvas")?(animating=!1,offCanvasAnim=setTimeout(function(){$body.removeClass("open-overlay-menu"),$menuBlock.length&&UNCODE.animateSubInside($menuBlock,!0)},1e3)):$box.animate({height:0},{duration:600,easing:"easeInOutCirc",complete:function(elements){$(elements).css("height",""),animating=!1,$('body[class*="vmenu-"]').length&&UNCODE.wwidth>=960&&$(".main-header > .vmenu-container").add(".menu-container:not(.sticky-element):not(.grid-filters)").css("position","relative"),$body.removeClass("open-overlay-menu"),$menuBlock.length&&UNCODE.animateSubInside($menuBlock,!0)}}))};check=UNCODE.menuOpened?close():open()}}),$("html").on("click",function(event){$("body").hasClass("menu-mobile-off-canvas")&&UNCODE.wwidth<960&&UNCODE.menuOpened&&event.clientX<SiteParameters.menu_mobile_offcanvas_gap&&$(".uncode-close-offcanvas-mobile:visible").trigger("click")}),window.addEventListener("menuMobileTrigged",function(e){$(".mobile-menu-button.close, .opening-overlay-menu .uncode-close-offcanvas-mobile").trigger("click")}),window.addEventListener("orientationchange",function(e){$("#logo-container-mobile .mobile-menu-button.close").trigger("click")}),window.addEventListener("resize",function(){if($(window).width()<UNCODE.mediaQuery){if(UNCODE.isMobile){var $box=$(".box-container .main-menu-container"),$el=$(".box-container .menu-horizontal-inner:not(.no-mobile), .box-container .menu-sidebar-inner:not(.no-mobile)");$($box).length&&$($box).hasClass("open-items")&&$($box).css("height")!="auto"&&!$("body").hasClass("menu-mobile-off-canvas")&&$(".menu-wrapper.menu-sticky, .menu-wrapper.menu-hide-only").length&&(elHeight=0,$.each($el,function(index,val){elHeight+=$(val).outerHeight()}),elHeight=window.innerHeight-$(".menu-wrapper.menu-sticky .menu-container .row-menu-inner, .menu-wrapper.menu-hide-only .menu-container .row-menu-inner").height()-UNCODE.bodyBorder*2+1,$($box).css("height",elHeight+"px"))}}else $(".menu-hide-vertical").removeAttr("style"),$(".menu-container-mobile").removeAttr("style"),$(".vmenu-container.menu-container").removeAttr("style"),UNCODE.menuOpened&&($(".open-items").removeClass("open-items"),$(".is_mobile_open").removeClass("is_mobile_open"),$(".open-overlay-menu").removeClass("open-overlay-menu"),$(".opening-overlay-menu").removeClass("opening-overlay-menu"))}),$(window).on("scroll",function(){if($body.hasClass("opening-overlay-menu")&&$body.hasClass("menu-mobile-off-canvas")&&UNCODE.wwidth<960)return $(window).scrollTop(scrolltop),!1})}function menuOffCanvas(){var menuClose=new CustomEvent("menuCanvasClose"),menuOpen=new CustomEvent("menuCanvasOpen");$(".menu-primary .menu-button-offcanvas:not(.menu-close-search)").on("click",function(event){$(window).width()>UNCODE.mediaQuery&&($("body.vmenu-offcanvas-overlay").length?$(event.currentTarget).hasClass("off-close")?($(event.currentTarget).removeClass("off-close"),requestTimeout(function(){window.dispatchEvent(menuClose)},500)):($(event.currentTarget).addClass("off-close"),window.dispatchEvent(menuOpen)):$(event.currentTarget).hasClass("close")?($(event.currentTarget).removeClass("close"),$(event.currentTarget).addClass("closing"),requestTimeout(function(){$(event.currentTarget).removeClass("closing"),window.dispatchEvent(menuClose)},500)):($(event.currentTarget).addClass("close"),window.dispatchEvent(menuOpen))),$("body").toggleClass("off-opened")}),$("body").on("click.menu-off-canvas-mobile",function(e){if($(window).width()>UNCODE.mediaQuery&&$("body.menu-offcanvas.vmenu-offcanvas-overlay.off-opened").length){var $vMenuCont=$
1("#masthead .vmenu-container"),$close_menu=$(".uncode-close-offcanvas-overlay",$vMenuCont),vmenu_h=parseFloat($vMenuCont.outerHeight()),vmenu_w=parseFloat($vMenuCont.outerWidth()),vmenu_off=$vMenuCont.offset(),vmenu_l=parseFloat(vmenu_off.left),vmenu_t=parseFloat(vmenu_off.top),vmenu_r=vmenu_l+vmenu_w,vmenu_b=vmenu_t+vmenu_h,close_h=parseFloat($close_menu.outerHeight()),close_w=parseFloat($close_menu.outerWidth()),close_off=$close_menu.offset(),close_l=parseFloat(close_off.left),close_t=parseFloat(close_off.top),close_r=close_l+close_w,close_b=close_t+close_h;(!(e.clientX>vmenu_l&&e.clientX<vmenu_r)||e.clientX>close_l&&e.clientX<close_r)&&$(".menu-primary .menu-button-offcanvas:not(.menu-close-search)").trigger("click")}})}function menuOverlay(){$(".overlay").length&&$(".overlay").removeClass("hidden"),($(".overlay-sequential").length>0&&UNCODE.wwidth>=UNCODE.mediaQuery||$(".menu-mobile-animated").length>0&&UNCODE.wwidth<UNCODE.mediaQuery)&&$(".overlay-sequential .menu-smart > li, .menu-sticky .menu-container .menu-smart > li, .menu-hide.menu-container .menu-smart > li, .vmenu-container .menu-smart > li, .uncode-menu-additional-text").each(function(index,el){var transDelay=index/20+.1;$("body").hasClass("menu-mobile-centered")&&$(window).width()<UNCODE.mediaQuery&&(transDelay+=.3),$(this)[0].setAttribute("style","-webkit-transition-delay:"+transDelay+"s; -moz-transition-delay:"+transDelay+"s; -ms-transition-delay:"+transDelay+"s; -o-transition-delay:"+transDelay+"s; transition-delay:"+transDelay+"s")})}function menuToggleAnimation(){var $block=$("body"),$menuBlocks=$(".menu.unmenu-block",$block),$allSeqs=$("[data-delay-seq]",$block);$allSeqs.each(function(key,seq){$(seq).removeAttr("data-delay")}),$menuBlocks.each(function(key,menu){var $animatesHidden=$(".translate_when_almost_visible",menu).filter(":hidden");$animatesHidden.each(function(key_,seq){$(seq).removeClass("translate_when_almost_visible").addClass("not_translate_when_almost_visible")});var $animatesVisibile=$(".not_translate_when_almost_visible",menu).filter(":visible");$animatesVisibile.each(function(key_,seq){$(seq).removeClass("not_translate_when_almost_visible").addClass("translate_when_almost_visible")});var $delaySequentials=$("[data-delay-seq]",menu).filter(":visible"),delay=parseFloat($delaySequentials.first().attr("data-delay-seq")),interval=parseFloat($delaySequentials.first().attr("data-interval"));$delaySequentials.each(function(_key,seq){$(seq).attr("data-delay",delay+interval*_key)})})}function menuAppend(){var $menuBlock=$("#uncode-mobile-menu-block").length;if($menuBlock)return;var $body=$("body"),$menuCont=$(".menu-container:not(.vmenu-container)"),$vMenuCont=$(".menu-container.vmenu-container"),$cta=$(".navbar-cta"),$socials=$(".navbar-social:not(.appended-navbar)"),$ul=$(".navbar-main ul.menu-primary-inner"),$ulCta,$ulSocials,$navLast,$firstMenu=$(".main-menu-container:first-child",$menuCont),$secondMenu=$(".main-menu-container:last-child",$menuCont),$firstNav=$(".navbar-nav:not(.uncode-close-offcanvas-mobile):first-child",$firstMenu),$secondNav=$(".navbar-nav:not(.uncode-close-offcanvas-mobile):first-child",$secondMenu),$ulFirst=$("> ul",$firstNav),setCTA,appendCTA=function(){return!0},appendSocials=function(){return!0},appendSplit=function(){return!0};($body.hasClass("menu-offcanvas")||$body.hasClass("menu-overlay")||$body.hasClass("hmenu-center-split"))&&$cta.length&&($ulCta=$("> ul",$cta),$ulCta.parent().addClass("mobile-hidden").addClass("tablet-hidden"),appendCTA=function(){UNCODE.wwidth<UNCODE.mediaQuery?$ul.after($ulCta):$cta.append($ulCta)}),$body.hasClass("cta-not-appended")||appendCTA();var $smartSocial=$menuCont.add($vMenuCont).find(".menu-smart-social");$smartSocial.each(function(){var $_smartSocial=$(this);$("> li",$_smartSocial).each(function(){var $li=$(this);if(!$li.hasClass("mobile-hidden"))return $_smartSocial.removeClass("mobile-hidden"),!1;$_smartSocial.addClass("mobile-hidden")}),$("> li",$_smartSocial).each(function(){var $li=$(this);if(!$li.hasClass("tablet-hidden"))return $_smartSocial.removeClass("tablet-hidden"),!1;$_smartSocial.addClass("tablet-hidden")})});if(($body.hasClass("hmenu-center-split")||$body.hasClass("menu-overlay-center")||$body.hasClass("menu-offcanvas")||$body.hasClass("vmenu"))&&$socials.length){$ulSocials=$("> ul",$socials).addClass("menu-smart-social"),$body.hasClass("hmenu-center-split")?$navLast=$(".menu-horizontal-inner .navbar-nav-last",$menuCont):$navLast=$(".navbar-nav-last",$vMenuCont);if(!$navLast.length){var _navLast=$('<div class="nav navbar-nav navbar-social navbar-nav-last appended-navbar" />');
1$body.hasClass("hmenu-center-split")?($(".menu-horizontal-inner",$menuCont).append(_navLast),$navLast=$(".menu-horizontal-inner .navbar-nav-last",$menuCont)):($(".menu-sidebar-inner",$vMenuCont).last().append(_navLast),$navLast=$(".navbar-nav-last",$vMenuCont))}appendSocials=function(){$body.hasClass("menu-overlay-center")||(UNCODE.wwidth<UNCODE.mediaQuery?($socials.addClass("mobile-hidden").addClass("tablet-hidden"),$("> ul.menu-smart-social li",$socials).length||$("> ul.menu-smart-social li",$socials).remove(),$navLast.append($ulSocials)):($("> ul.menu-smart-social li",$navLast).length||$("> ul.menu-smart-social li",$navLast).remove(),$socials.append($ulSocials)))},appendSocials()}if($vMenuCont.length)var $accordion_secondary=$(".menu-accordion-secondary",$vMenuCont);else var $accordion_secondary=$(".menu-accordion-secondary",$menuCont);if($accordion_secondary.length){var $accordion_secondary_ph=$vMenuCont.add($menuCont).find(".accordion-secondary-ph");UNCODE.wwidth<UNCODE.mediaQuery?($accordion_secondary_ph.length||$accordion_secondary.after('<span class="accordion-secondary-ph" />'),$vMenuCont.length?$(".menu-sidebar-inner",$vMenuCont).first().find(".menu-accordion:not(.menu-accordion-secondary):not(.menu-accordion-extra-icons)").last().after($accordion_secondary):$(".navbar-nav.navbar-cta:not(.mobile-hidden)",$menuCont).length?$(".navbar-nav.navbar-cta",$menuCont).after($accordion_secondary):$(".navbar-nav.navbar-main",$menuCont).after($accordion_secondary)):typeof $accordion_secondary_ph!="undefined"&&$accordion_secondary_ph.length&&$accordion_secondary_ph.before($accordion_secondary)}if($vMenuCont.length)var $extra_icons=$(".menu-accordion-extra-icons",$vMenuCont);else var $extra_icons=$(".navbar-extra-icons",$menuCont);if($extra_icons.length)if($vMenuCont.length){if($("li:not(.social-icon)",$extra_icons).length)if(UNCODE.wwidth<UNCODE.mediaQuery){var $not_social=$("> ul > li:not(.social-icon)",$extra_icons),$primary_after=$(".menu-accordion-primary-after",$vMenuCont);$not_social.each(function(){$primary_after.length||($(".menu-accordion-primary",$vMenuCont).after('<div class="menu-accordion menu-accordion-primary-after" />'),$primary_after=$(".menu-accordion-primary-after",$vMenuCont),$primary_after.append('<ul class="menu-smart sm sm-vertical menu-smart-social" />'));var $extra_li=$(this);$primary_after.find("> ul").append($extra_li)})}else{var $primary_after=$(".menu-accordion-primary-after",$vMenuCont),$not_social=$("> ul > li:not(.social-icon)",$primary_after);$not_social.each(function(){var $extra_li=$(this);$extra_icons.find("> ul").append($extra_li)})}}else if(!$body.hasClass("hmenu-center-double"))if(UNCODE.wwidth<UNCODE.mediaQuery){var $not_social=$("> ul > li:not(.social-icon)",$extra_icons),$primary_after=$(".nav.navbar-main-after",$menuCont);!$primary_after.length&&$not_social.length&&($(".navbar-nav.navbar-cta:not(.mobile-hidden)",$menuCont).length?$(".navbar-nav.navbar-cta",$menuCont).after('<div class="nav navbar-main-after" />'):$(".navbar-nav.navbar-main",$menuCont).after('<div class="nav navbar-main-after" />'),$primary_after=$(".nav.navbar-main-after",$menuCont),$primary_after.append('<ul class="menu-smart sm menu-smart-social" role="menu" />'));var tablet_hidden=!0,mobile_hidden=!0;$not_social.each(function(){var $extra_li=$(this);$primary_after.find("> ul").append($extra_li),$extra_li.hasClass("tablet-hidden")||(tablet_hidden=!1),$extra_li.hasClass("mobile-hidden")||(mobile_hidden=!1)}),tablet_hidden===!0&&$not_social.length&&$primary_after.addClass("tablet-hidden"),mobile_hidden===!0&&$not_social.length&&$primary_after.addClass("mobile-hidden")}else{var $primary_after=$(".nav.navbar-main-after",$menuCont);if($primary_after.length){var $not_social=$("> ul > li:not(.social-icon)",$primary_after);$not_social.each(function(){var $extra_li=$(this);$extra_icons.find("> ul").append($extra_li)}),$primary_after.remove()}}$body.hasClass("hmenu-center-double")&&(appendSplit=function(){if(UNCODE.wwidth<UNCODE.mediaQuery){if($extra_icons.length&&$("li:not(.social-icon):not(.tablet-hidden):not(.mobile-hidden)",$extra_icons).length){var $not_social=$("> ul > li:not(.social-icon)",$extra_icons),$append_ul=$('<ul class="menu-smart sm sm-vertical append-extra-icons" />');$not_social.each(function(){var $extra_li=$(this);$append_ul.append($extra_li)}),$secondNav.length?$secondNav.append($append_ul):$(".menu-horizontal-inner",$menuCont).prepend($append_ul)}$secondNav.length?$secondNav.prepend($ulFirst):$(".menu-horizontal-inner",$menuCont).prepend($ulFirst),$firstMenu.hide()}else{$firstNav.append($ulFirst);var $append_ul=$(".menu-horizontal-inner ul.append-extra-icons",$menuCont).eq(0);if($append_ul.length){var $not_social=$("> li:not(.social-icon)",$append_ul);$not_social.each(function(){var $extra_li=$(this);$extra_icons.find("> ul").append($extra_li)})}$(".menu-horizontal-inner ul.append-extra-icons",$menuCont).remove(),$(".menu-horizontal-inner > .menu-primary-inner",$menuCont).remove(),$firstMenu.css({display:"table-cell"})}}),appendSplit(),$(window).on("wwResize",function(){clearRequestTimeout(setCTA),setCTA=requestTimeout(function(){appendCTA(),appendSocials(),appendSplit()},10)})}$(document).on("unblock-toggles-init",menuToggleAnimation);var $secondary_parent;menuMobile(),menuOffCanvas(),menuAppend(),menuOverlay();var stickyDropdownSearch=function(){var $masthead=$("#masthead"),$ddSearch=$(".overlay.overlay-search",$masthead),$styles=$("#stickyDropdownSearch").remove();if($("body.hmenu-center.menu-sticky-mobile").length&&$ddSearch.length){var $menuWrapper=$(".menu-wrapper"),$navbar=$(".menu-container-mobile",$menuWrapper),navbarH=$navbar.outerHeight(),_css;_css='<style id="stickyDropdownSearch">',_css+="@media (max-width: 959px) {",_css+="body.hmenu-center.menu-sticky-mobile #masthead .overlay.overlay-search {",_css+="margin-top: "+parseFloat(navbarH)+"px !important;",_css+="}",_css+="body.hmenu-center.menu-sticky-mobile .navbar.is_stuck + #masthead .overlay.overlay-search {",_css+="position: fixed;",_css+="top: 0;",_css+="}",_css+="</style>",$(_css).appendTo($("head"))}};stickyDropdownSearch();var setMenuOverlay;$(window).on("wwResize",function(){$(".overlay").length&&$(window).width()>1024&&$(".overlay").addClass("hidden"),clearRequestTimeout(setMenuOverlay),setMenuOverlay=requestTimeout(function(){menuOverlay(),menuAppend(),stickyDropdownSearch()},150)}),UNCODE.menuMegaBlock(),UNCODE.menuSmartInit(),$(window).on("wwResize",function(){UNCODE.menuSmartInit()}),$(window).on("menuOpen",function(){var $overlay=$(".overlay.overlay-unblock");$overlay.length&&UNCODE.animateSubInside($overlay)}),$(window).on("menuClosed",function(){var $overlay=$(".overlay.overlay-unblock");if($overlay.length){UNCODE.animateSubInside($overlay,!0);var $smartMenus=$overlay.find(".menu-smart");$smartMenus.each(function(key,smartMenu){$(smartMenu).smartmenus("menuHideAll")})}})},UNCODE.menuSmartInit=function(){var $menusmart=$('[class*="menu-smart"]'),$masthead=$("#masthead"),$hMenu=$(".menu-horizontal-inner",$masthead),$focu
1s=$(".overlay-menu-focus"),$uls_anim=$('> li> ul[role="menu"]',$menusmart),showTimeout=50,hideTimeout=50,showTimeoutFunc,hideTimeoutFunc,subMenuRT;if(typeof $masthead.attr("data-menu-anim")!="undefined"&&$masthead.attr("data-menu-anim")!==""){var menu_anim=$masthead.attr("data-menu-anim");UNCODE.wwidth>=UNCODE.mediaQuery?$uls_anim.each(function(){var $ul_anim=$(this);if(!$("> li[data-block]",$ul_anim).length)$ul_anim.addClass("animate_when_almost_visible"),$ul_anim.addClass(menu_anim);else{var dataB=$("> li[data-block]",$ul_anim).attr("data-block");dataB!=="no-anim"&&!dataB.includes("slight-anim")&&($ul_anim.addClass("animate_when_almost_visible"),$ul_anim.addClass(dataB))}}):$uls_anim.each(function(){var $ul_anim=$(this);if(!$("> li[data-block]",$ul_anim).length)$ul_anim.removeClass("animate_when_almost_visible"),$ul_anim.removeClass(menu_anim);else{var dataB=$("> li[data-block]",$ul_anim).attr("data-block");$ul_anim.removeClass("animate_when_almost_visible"),$ul_anim.removeClass(dataB)}})}$("> li.menu-item-has-children",$menusmart).hover(function(){$(this).data("hover",!0)},function(){$(this).data("hover",!1)}),$("> li.menu-item-has-children",$menusmart).each(function(){var $a=$("> a",this).attr("aria-haspopup","true").attr("aria-expanded","false")}),$('> li.menu-item a[href="#"]',$menusmart).on("click",function(e){e.preventDefault()});if($(window).width()>=UNCODE.mediaQuery&&$(".overlay-menu-focus").length){var $notLis=$("> .nav > ul > li a",$hMenu),$menuA=$("a",$masthead).not($notLis),$hoverSelector=$("> .nav > ul > li",$hMenu).has("> ul"),showFuncCond=function(){return!0};$("body").hasClass("focus-megamenu")?($hoverSelector=$("> .nav > ul > li",$hMenu).has(".need-focus"),showFuncCond=function($ul){return $ul.hasClass("need-focus")}):$("body").hasClass("focus-links")&&($hoverSelector=$("> .nav > ul > li",$hMenu).add($menuA)),$hoverSelector.hover(function(){clearRequestTimeout(hideTimeoutFunc),showTimeoutFunc=requestTimeout(function(){$("body").addClass("navbar-hover")},showTimeout*2)},function(){hideTimeoutFunc=requestTimeout(function(){$(".overlay-search.open",$masthead).length||$("body").removeClass("navbar-hover")},hideTimeout*2)})}else showFuncCond=function(){return!1};if($menusmart.length>0){var objShowTimeout;$menusmart.smartmenus({subIndicators:!1,subIndicatorsPos:"append",showOnClick:SiteParameters.menuShowOnClick,subIndicatorsText:"",showTimeout:showTimeout,hideTimeout:hideTimeout,scrollStep:8,showFunction:function($ul,complete){$(document).trigger("un-menu-show",$ul),clearRequestTimeout(showTimeoutFunc),$ul.fadeIn(0,"linear",function(){complete(),$ul.hasClass("vc_row")&&$ul.css({display:"table"}),$(".overlay-menu-focus").length&&$ul.hasClass("need-focus")&&$("body").addClass("open-megamenu"),$(".overlay-menu-focus").length&&showFuncCond($ul)&&$(window).width()>=UNCODE.mediaQuery&&$ul.closest(".main-menu-container").length&&$("body").addClass("navbar-hover");var showed=0;$(".animate_when_almost_visible, .translate_when_almost_visible",$ul).each(function(index,val){var $element=$(this),delayAttr=$element.attr("data-delay");if(!$element.closest(".owl-carousel").length&&!$element.closest(".cssgrid-animate-sequential").length)delayAttr==undefined&&(delayAttr=0),requestTimeout(function(){$element.addClass("start_animation")},delayAttr);else if($element.closest(".cssgrid-animate-sequential").length){var grid=$element.closest(".cssgrid-animate-sequential"),delay=index,delayAttr=parseInt($element.attr("data-delay"));isNaN(delayAttr)&&(delayAttr=100),delay-=showed,objShowTimeout=requestTimeout(function(){$element.removeClass("zoom-reverse").addClass("start_animation"),showed=index},delay*delayAttr)}}),$ul.is(".animate_when_almost_visible")&&$ul.addClass("start_animation")}).addClass("open-animated")},hideFunction:function($ul,complete){$(".overlay-menu-focus").length&&$ul.hasClass("need-focus")&&!$(".overlay-search.open",$masthead).length&&$("body").removeClass("open-megamenu");var fixIE=$("html.ie").length;if(fixIE){var $rowParent=$($ul).closest(".main-menu-container");$rowParent.height("auto")}$ul.fadeOut(0,"linear",function(){complete(),$ul.removeClass("open-animated"),$ul.closest("li.menu-item-has-children").data("hover")===!1&&$("body").removeClass("open-submenu"),$(".animate_when_almost_visible, .translate_when_almost_visible",$ul).each(function(){$(this).removeClass("start_animation")}),$ul.is(".animate_when_almost_visible")&&$ul.removeClass("start_animation")}),$ul.find(".start_animation").each(function(index,val){clearRequestTimeout(subMenuRT),$(val).removeClass("start_animation")}
1),$(document).trigger("un-menu-hide",$ul),clearRequestTimeout(objShowTimeout)},collapsibleShowFunction:function($ul,complete){$ul.slideDown(400,"easeInOutCirc",function(){UNCODE.animateSubInside($ul),complete()})},collapsibleHideFunction:function($ul,complete){$ul.slideUp(200,"easeInOutCirc",function(){complete()}),$(document).trigger("sub-menu-slide-up")},hideOnClick:SiteParameters.menuHideOnClick}),$("body").hasClass("menu-accordion-active")&&$menusmart.each(function(key,menu){$(menu).addClass("menu-smart-init"),$(menu).smartmenus("itemActivate",$(menu).find(".current-menu-item > a").eq(-1))}),$menusmart.each(function(key,menu){$(menu).on("beforecollapse.smapi",function(e,$sub){return $("> .trigger-window-resize",$sub).length?(window.dispatchEvent(new Event("resize")),$(window).trigger("uncode.re-layout")):$("> .trigger-box-resize",$sub).length&&window.dispatchEvent(new CustomEvent("boxResized")),!1})}),$(document).on("uncode.smartmenu-appended",function(){requestTimeout(function(){$menusmart.smartmenus("refresh")},1e3)})}$(".main-menu-container").each(function(){var $main_cont=$(this),$uls=$("ul:not(.nav-tabs)",$main_cont);$uls.each(function(){var $ul=$(this),mobile_hidden=!0,tablet_hidden=!0;$("> li:not(.hidden)",$ul).each(function(){if(!$(this).hasClass("mobile-hidden"))return mobile_hidden=!1,!1}),$("> li:not(.hidden)",$ul).each(function(){if(!$(this).hasClass("tablet-hidden"))return tablet_hidden=!1,!1}),mobile_hidden&&$ul.addClass("mobile-hidden"),tablet_hidden&&$ul.addClass("tablet-hidden")});var $divUlsMB=$("div:has(>ul.mobile-hidden)");$divUlsMB.each(function(){var $divUlMB=$(this),div_mobile_hidden=!0,div_tablet_hidden=!0;$("> ul:not(.hidden)",$divUlMB).each(function(){if(!$(this).hasClass("mobile-hidden"))return div_mobile_hidden=!1,!1}),$("> ul:not(.hidden)",$divUlMB).each(function(){if(!$(this).hasClass("tablet-hidden"))return div_tablet_hidden=!1,!1}),div_mobile_hidden&&$divUlMB.addClass("mobile-hidden"),div_tablet_hidden&&$divUlMB.addClass("tablet-hidden")})});var overlaySearchButton=function(){var $search_wrap=$(".overlay.overlay-search, .widget_search");$search_wrap.each(function(){var $form=$("form",this),$icon=$("i",$form);$icon.on("click",function(){$form.submit()})})};overlaySearchButton()},UNCODE.menuMegaBlock=function(){var $megaBlocks=$(".megamenu-block-wrapper");if(!$megaBlocks.length)return;$megaBlocks.each(function(){var $megaLi=$(this),dataLi=$megaLi.attr("data-block"),$megaUl=$megaLi.closest("ul").addClass("block-wrapper-parent unmenu-inner-ul"),$innerUl=$megaLi.find("ul").addClass("unmenu-inner-ul");$megaUl.addClass(dataLi),$("img",$megaLi).removeAttr("loading")})},UNCODE.unBlockMenu=function(){var $unBlockMenus=$(".menu.unmenu-block");$unBlockMenus.each(function(){var $unBlockMenu=$(this),$lastOnes;if(!$unBlockMenu.hasClass("first-grid"))$lastOnes=$("ul",$unBlockMenu).last(),$lastOnes.each(function(){var _cols=$(this).css("grid-template-columns");if(_cols.split(" ").length>1&&!_cols.startsWith("repeat(1,"))$unBlockMenu.addClass("has-last-ones"),$(this).addClass("last-one");else{var $parentLi=$(this).closest("li"),$siblingLi=$parentLi.next();$siblingLi.length||($unBlockMenu.addClass("has-last-ones"),$(this).addClass("last-one"))}});else{var checkGrids=function(){$unBlockMenu.find(".last-ul").removeClass("last-one");var _cols=$unBlockMenu.css("grid-template-columns"),cols=_cols.match(/^repeat\(\s*(\d+)\s*,/)?parseInt(_cols.match[1],10):_cols.split(" ").length,$lis=$("> li",$unBlockMenu),totLi=$lis.length,lastRowCount=totLi-(totLi%cols||cols),$lastLis=$lis.slice(cols).addClass("last-lis"),$lastRowLis=$lis.slice(lastRowCount);$lastRowLis.each(function(){var $lastRowLi=$(this);$lastRowLi.find("ul").last().addClass("last-one")})};$(window).on("wwResize",checkGrids),checkGrids()}});var $tgglBlocks=$(".unmenu-collapse");$tgglBlocks.each(function(key,val){var $acc=$(val),$titles=$(".menu-item-has-children > *:first-child",$acc),run=!0,checkRun=function(){$acc.hasClass("unmenu-collapse-mobile")&&UNCODE.wwidth>=UNCODE.mediaQuery?run=!1:run=!0,$titles.length&&$titles.each(function(_key,_val){var $title=$(_val),$sub=$title.closest("li").find("> ul.un-submenu");$sub.each(function(key,val){if(run){var total=$sub.length,completed=0;$(val).slideUp({duration:1,complete:function(){$(this).addClass("toggle-init"),completed++,completed===total&&($(document).trigger("unblock-toggles-init"),$(document.body).trigger("uncode_waypoints"))}})}else $(val).show()})})};checkRun(),$(window).on("wwResize menuClosed",checkRun),$titles.length&&($titles.each(function(_key,_val){var $title=$(_val),$sub=$title.closest("li").find("> ul.un-submenu"),$menu=$sub.closest(".menu.unmenu-block"),$ulS;$title.off("click").on("click",function(e){e.preventDefault(),$ulS=$menu.find("ul:visible").not($sub).not($sub.parents("ul")),run&&($sub.is(":visible")?$sub.slideUp(200,"easeInOutCirc",function(){$.each($(".start_animation",$sub),function(index,val){var element=$(val);element.removeClass("start_animation")}),$sub.parents("li").eq(0).addClass("un-submenu-closed").removeClass("un-submenu-open"),$(document).trigger("sub-menu
1-slide-up")}):($ulS.slideUp({duration:200,easing:"easeInOutCirc",start:function(){var _this=$(this);_this.parents("li").eq(0).addClass("un-submenu-closed").removeClass("un-submenu-open"),$(document).trigger("sub-menu-slide-up")}}),$sub.slideDown({duration:400,easing:"easeInOutCirc",start:function(){var _this=$(this);_this.css("height",0),_this.hasClass("is-grid")&&_this.css("display","grid"),UNCODE.animateSubInside(_this),_this.parents("li").eq(0).addClass("un-submenu-open").removeClass("un-submenu-closed")}})))})}),$acc.closest("#masthead").length&&$(window).on("menuMobileClose menuCanvasClose unmodal-close uncode-sidecart-closed",function(){$acc.find("ul.un-submenu").slideUp(200,"easeInOutCirc")}))})},UNCODE.mobileMenuBlockSkins=function(){var $mobileBlock=$("#uncode-mobile-menu-block"),$parentDark=$mobileBlock.closest(".submenu-dark"),$parentLight=$mobileBlock.closest(".submenu-light");if($parentDark.length){var $cols=$(".uncol.style-light:not(.style-spec):not(.style-run)",$mobileBlock);$cols.each(function(key,val){var $col=$(val).removeClass("style-light").addClass("style-dark style-run")})}if($parentLight.length){var $cols=$(".uncol.style-dark:not(.style-spec):not(.style-run)",$mobileBlock);$cols.each(function(key,val){var $col=$(val).removeClass("style-dark").addClass("style-light style-run")})}},UNCODE.okvideo=function(ev){var BLANK_GIF="data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw%3D%3D";$.okvideo=function(options){typeof options!="object"&&(options={video:options});var base=this;base.init=function(){base.options=$.extend({},$.okvideo.options,options),base.options.video===null&&(base.options.video=base.options.source),base.setOptions();var target=base.options.target||$("body"),position=target[0]==$("body")[0]?"fixed":"absolute",zIndex=base.options.controls===3?-999:"auto";if($("#okplayer-"+base.options.id).length==0){var mask='<div id="okplayer-mask-'+base.options.id+'" style="position:'+position+';left:0;top:0;overflow:hidden;z-index:-998;height:100%;width:100%;"></div>';OKEvents.utils.isMobile()?target.append('<div id="okplayer-'+base.options.id+'" style="position:'+position+";left:0;top:0;overflow:hidden;z-index:"+zIndex+';height:100%;width:100%;"></div>'):(base.options.controls===3&&target.append(mask),base.options.adproof===1?target.append('<div id="okplayer-'+base.options.id+'" style="position:'+position+";left:-10%;top:-10%;overflow:hidden;z-index:"+zIndex+';height:120%;width:120%;"></div>'):target.append('<div id="okplayer-'+base.options.id+'" style="position:'+position+";left:0;top:0;overflow:hidden;z-index:"+zIndex+';height:100%;width:100%;"></div>')),$("#okplayer-mask-"+base.options.id).css("background-image","url("+BLANK_GIF+")"),base.options.playlist.list===null?base.options.video.provider==="youtube"?base.loadYouTubeAPI():base.options.video.provider==="vimeo"&&(base.options.volume/=100,base.loadVimeoAPI()):base.loadYouTubeAPI()}},base.setOptions=function(){for(var key in this.options)this.options[key]===!0&&(this.options[key]=1),this.options[key]===!1&&(this.options[key]=3);base.options.playlist.list===null&&(base.options.video=base.determineProvider()),$(window).data("okoptions-"+base.options.id,base.options)},base.insertJS=function(src,callback,provider){var tag;if(ev==="uncode-more-items-loaded"&&provider!=="youtube"){delete UNCODE.insertedSripts[src];var tags=document.getElementsByTagName("script");for(var i=tags.length;i>=0;i--)tags[i]&&tags[i].getAttribute("src")!=null&&tags[i].getAttribute("src").indexOf(src)!=-1&&tags[i].parentNode.removeChild(tags[i])}else if(UNCODE.insertedSripts&&UNCODE.insertedSripts[src]){tag=UNCODE.insertedSripts[src],callback&&(tag.readyState?tag.onreadystatechange=function(){if(tag.readyState==="loaded"||tag.readyState==="complete")tag.onreadystatechange=null,callback()}:$(tag).on("load",callback));return}tag=document.createElement("script"),callback&&(tag.readyState?tag.onreadystatechange=function(){if(tag.readyState==="loaded"||tag.readyState==="complete")tag.onreadystatechange=null,callback()}:tag.onload=function(){callback()}),tag.src=src;var firstScriptTag=document.getElementsByTagName("script")[0];firstScriptTag.parentNode.insertBefore(tag,firstScriptTag),UNCODE.insertedSripts||(UNCODE.insertedSripts=[]),UNCODE.insertedSripts[src]=tag},base.loadYouTubeAPI=function(callback){ev==="uncode-more-items-loaded"?onYouTubeIframeAPIReady():base.insertJS("https://www.youtube.com/player_api",!1,"youtube")},base.loadYouTubePlaylist=function(){player.loadPlaylist(base.options.playlist.list,base.options.playlist.index,base.options.playlist.startSeconds,base.options.playlist.suggestedQuality)},base.loadVimeoAPI=function(){var source="//player.vimeo.com/video/"+base.options.video.id+"?controls=0&api=1&title=0&byline=0&portrait=0&playbar=0&loop="+base.options.loop+"&autoplay="
1+(base.options.autoplay===1?1:0)+"&player_id=okplayer-"+base.options.id+"&autopause=0",jIframe=$('<iframe data-src="'+source+'" frameborder="0" id="okplayer-'+base.options.id+'" style="visibility: hidden;" class="vimeo-background" webkitallowfullscreen mozallowfullscreen allowfullscreen >');$(window).data("okoptions-"+base.options.id).jobject=jIframe,$("#okplayer-"+base.options.id).replaceWith(jIframe[0]),base.insertJS("//player.vimeo.com/api/player.js",function(){vimeoPlayerReady(base.options.id)},"vimeo")},base.determineProvider=function(){var a=document.createElement("a");a.href=base.options.video;if(/youtube.com/.test(base.options.video)||/youtu.be/.test(base.options.video)){var videoid=a.href.split("/")[3].toString(),query=videoid.substring(videoid.indexOf("?")+1);if(query!=""){var vars=query.split("&");for(var i=0;i<vars.length;i++){var pair=vars[i].split("=");pair[0]=="v"&&(videoid=pair[1])}}return{provider:"youtube",id:videoid}}if(/vimeo.com/.test(base.options.video))return{provider:"vimeo",id:a.href.split("/")[3].toString().split("#")[0]};if(/[-A-Za-z0-9_]+/.test(base.options.video)){var id=new String(base.options.video.match(/[-A-Za-z0-9_]+/));if(id.length==11)return{provider:"youtube",id:id.toString()};for(var i=0;i<base.options.video.length;i++)if(typeof parseInt(base.options.video[i])!="number")throw"not vimeo but thought it was for a sec";return{provider:"vimeo",id:base.options.video}}throw"OKVideo: Invalid video source"},base.init()};var checkResize,newW=UNCODE.wwidth;$.okvideo.options={id:null,source:null,video:null,playlist:{list:null,index:0,startSeconds:0,suggestedQuality:"default"},disableKeyControl:1,captions:0,loop:1,hd:1,volume:0,adproof:!1,unstarted:null,onFinished:null,onReady:null,onPlay:null,onPause:null,buffering:null,controls:!1,autoplay:!0,annotations:!0,cued:null},$.fn.okvideo=function(options){return options.target=this,this.each(function(){new $.okvideo(options)})};var checkForVideos=function(){$(".uncode-video-container.video").each(function(index,el){var $this=$(this),mobile_ready=$this.hasClass("no-control-mobile-autoplay"),url=$this.attr("data-video"),id=$this.attr("data-id"),cloned=$this.closest(".owl-item");(mobile_ready||newW>=UNCODE.mediaQuery)&&(!cloned.hasClass("cloned")||cloned.length==0)&&$this.okvideo({id:id,source:url.split("#")[0],time:url.indexOf("#")>-1?url.substring(url.indexOf("#")+1):null,autoplay:1,controls:0,volume:0,adproof:0,caller:$this,hd:1,onReady:function(player){var getPlayer=player.c||player.h||player,$iframe,getContainer=$(getPlayer).closest(".background-element");getContainer.length&&UNCODE.initVideoComponent(getContainer[0],".uncode-video-container.video:not(.drop-move)");if($this.hasClass("drop-move")){var $iframe=$(getPlayer),w=parseFloat($iframe.attr("width")),h=parseFloat($iframe.attr("height")),ratio=h/w,setResizeiFto,resizeiFrame=function(){var dataW=$this.attr("data-w"),newW=UNCODE.wwidth/12*parseFloat(dataW),newH=newW*ratio;$iframe.css({width:newW,height:newH})};resizeiFrame(),$(window).on("load",resizeiFrame),$(window).on("resize",function(){clearRequestTimeout(setResizeiFto),setResizeiFto=requestTimeout(function(){resizeiFrame()},10)})}}})})};checkForVideos(),$(window).on("load",function(){$(".mejs-fullscreen-button button").on("click",function(){var $button=$(this),$stuck=$button.closest(".is_stucked");$stuck.length&&($stuck=$(this).trigger("sticky_kit:detach"),window.scrollTo(0,0))})});var checkVideoResize=function(){clearRequestTimeout(checkResize),checkResize=requestTimeout(function(){newW!==UNCODE.wwidth&&(newW=UNCODE.wwidth,checkForVideos())},1e3)};$(window).off("resize",checkVideoResize).on("resize",checkVideoResize)},$(document).on("uncode-ajax-filtered.videos",function(){UNCODE.okvideo("uncode-more-items-loaded")}),UNCODE.backgroundSelfVideos=function($ctx){var backgroundSelfVideosInit=function($ctx){if(SiteParameters.block_mobile_videos===!0)return!1;if(typeof MediaElement=="function")typeof $ctx=="undefined"&&($ctx=document),$(".background-video-shortcode",$ctx).each(function(index,el){if($(this).closest("mediaelementwrapper").length)return!0;var $video_el=$(this),$parent_carousel=$video_el.parents(".uncode-slider").eq(0),$parent_drop_move=$video_el.closest(".t-entry-drop.drop-move"),video_id=$video_el.attr("id");SiteParameters.is_frontend_editor&&(video_id=video_id+"_"+index,$video_el.attr("id",video_id));var media=new MediaElement(video_id,{startVolume:0,loop:!0,success:function(mediaElement,domObject){domObject.volume=0,$(mediaElement).data("started",!1),mediaElement.addEventListener("timeupdate",function(e){$(e.target).data("started")||$(mediaElement).data("started",!0)}),mediaElement.addEventListener("loadedmetadata",function(e){$("body").removeClass("video-not-supported"),mediaElement.play()}),UNCODE.isMobile||requestTimeout(function(){UNCODE.initVideoComponent(document.body,".uncode-video-container.video:not(.drop-move), .uncode-video-container.self-video:not(.drop-move)")},100),$("html.firefox").length&&!$parent_carousel.length&&mediaElement.play();if($parent_drop_move.length){var setResizeMEto,resizeMediaElement=function(){var dataW=$parent_drop_move.attr("data-w"),videoW=domObject.width,videoH=domObject.height,newW=UNCODE.wwidth/12*parseFloat(dataW),newH=newW/(videoW/videoH);$(domObject).css({height:newH,width:newW})};$(window).on("resize load",function(){clearRequestTimeout(setResizeMEto),setResizeMEto=requestTimeout(function(){resizeMediaElement()},10)})}mediaElement.addEventListener("play",function(){$(mediaElement).closest(".uncode-video-container:not(.t-entry-drop)").css("opacity","1"),$(mediaElement).closest("#page-header").addClass("video-started"),$(mediaElement).closest(".background-wrapper").find(".block-bg-blend-mode.not-ie").css("opacity","1")},!0)},error:function(){}})});else{typeof $ctx=="undefined"&&($ctx=document);const videos=$ctx.querySelectorAll(".background-video-shortcode:not(.started)");
1Array.from(videos).forEach(function(video_el){video_el.addEventListener("loadedmetadata",function(e){$("body").removeClass("video-not-supported"),video_el.play()}),video_el.currentTime>0&&video_el.readyState>2?(video_el.muted=!0,video_el.loop=!0,$(video_el).closest(".uncode-video-container:not(.t-entry-drop)").css("opacity","1"),$(video_el).addClass("started").closest("#page-header").addClass("video-started"),$(video_el).closest(".background-wrapper").find(".block-bg-blend-mode.not-ie").css("opacity","1"),$("body").removeClass("video-not-supported"),video_el.play()):requestTimeout(function(){backgroundSelfVideosInit($ctx)},1e3)})}};backgroundSelfVideosInit($ctx),$(document).on("un-menu-show",function(){setTimeout(function(){UNCODE.initVideoComponent(document.body,".un-submenu .uncode-video-container.video:not(.drop-move):not(.fluid-object), .un-submenu .uncode-video-container.self-video:not(.drop-move)")},1)}),$("body").hasClass("compose-mode")&&typeof window.parent.vc!="undefined"&&window.parent.vc.events.on("shortcodeView:updated shortcodeView:ready",function(model){var $el=model.view.$el,shortcode=model.attributes.shortcode;typeof MediaElement=="function"?backgroundSelfVideosInit($el):backgroundSelfVideosInit($el[0])})},UNCODE.is_scrolling=!1,UNCODE.disableHoverScroll=function(){if(!UNCODE.isMobile&&!UNCODE.isFullPage&&!SiteParameters.is_frontend_editor&&(!SiteParameters.smoothScroll||SiteParameters.smoothScrollDisableHover)){var body=document.body,timer;window.addEventListener("scroll",function(){var delay=body.classList.contains("bg-changer-init")?SiteParameters.bg_changer_time:300;clearRequestTimeout(timer),body.classList&&!body.classList.contains("disable-hover")&&(body.classList.add("disable-hover"),window.dispatchEvent(new CustomEvent("disable-hover"))),UNCODE.is_scrolling=!0,timer=requestTimeout(function(){body.classList&&(body.classList.remove("disable-hover"),window.dispatchEvent(new CustomEvent("enable-hover"))),UNCODE.is_scrolling=!1},delay)},!1)}},UNCODE.isotopeLayout=function(){if($(".isotope-layout").length>0){var isotopeContainersArray=[],typeGridArray=[],layoutGridArray=[],screenLgArray=[],screenMdArray=[],screenSmArray=[],transitionDuration=[],$f
1ilterItems=[],$filters=$(".isotope-system .isotope-filters"),$itemSelector=".tmb-iso",$items,itemMargin,correctionFactor=0,firstLoad=!0,isOriginLeft=$("body").hasClass("rtl")?!1:!0;$('[class*="isotope-container"]').each(function(index){var _this=$(this),isoData=_this.data(),$data_lg,$data_md,$data_sm;_this.children(".tmb").addClass("tmb-iso"),isoData.lg!==undefined?$data_lg=_this.attr("data-lg"):$data_lg="1000",isoData.md!==undefined?$data_md=_this.attr("data-md"):$data_md="600",isoData.sm!==undefined?$data_sm=_this.attr("data-sm"):$data_sm="480",screenLgArray.push($data_lg),screenMdArray.push($data_md),screenSmArray.push($data_sm),transitionDuration.push($(".t-inside.animate_when_almost_visible",this).length>0?0:"0.5s"),isoData.type=="metro"?typeGridArray.push(!0):typeGridArray.push(!1),isoData.layout!==undefined?layoutGridArray.push(isoData.layout):layoutGridArray.push("masonry"),isotopeContainersArray.push(_this),_this.attr("data-iso-index",index)});var colWidth=function(index){$(isotopeContainersArray[index]).width("");var isPx=$(isotopeContainersArray[index]).parent().hasClass("px-gutter"),widthAvailable=$(isotopeContainersArray[index]).width(),columnNum=12,columnWidth=0,data_vp_height=$(isotopeContainersArray[index]).attr("data-vp-height"),consider_menu=$(isotopeContainersArray[index]).attr("data-vp-menu"),winHeight=UNCODE.wheight-UNCODE.adminBarHeight,$rowContainer,paddingRow,$colContainer,paddingCol;consider_menu&&(winHeight-=UNCODE.menuHeight),data_vp_height==="1"&&($rowContainer=$(isotopeContainersArray[index]).parents(".row-parent").eq(0),paddingRow=parseInt($rowContainer.css("padding-top"))+parseInt($rowContainer.css("padding-bottom")),$colContainer=$(isotopeContainersArray[index]).parents(".uncell").eq(0),paddingCol=parseInt($colContainer.css("padding-top"))+parseInt($colContainer.css("padding-bottom")),winHeight-=paddingRow+paddingCol),isPx?(columnWidth=Math.ceil(widthAvailable/columnNum),$(isotopeContainersArray[index]).width(columnNum*Math.ceil(columnWidth))):columnWidth=$("html.firefox").length?Math.floor(widthAvailable/columnNum):widthAvailable/columnNum,$items=$(isotopeContainersArray[index]).find(".tmb-iso:not(.tmb-carousel)"),itemMargin=parseInt($(isotopeContainersArray[index]).find(".t-inside").css("margin-top"));for(var i=0,len=$items.length;i<len;i++){var $item=$($items[i]),multiplier_w=$item.attr("class").match(/tmb-iso-w(\d{0,2})/),multiplier_h=$item.attr("class").match(/tmb-iso-h(\d{0,3})/),multiplier_fixed=multiplier_h!==null?multiplier_h[1]:1;multiplier_w!=null&&multiplier_w[1]!==undefined&&multiplier_w[1]==15&&(multiplier_w[1]=2.4),multiplier_h!=null&&multiplier_h[1]!==undefined&&multiplier_h[1]==15&&(multiplier_h[1]=2.4);if(widthAvailable>=screenMdArray[index]&&widthAvailable<screenLgArray[index]){if(multiplier_w!=null&&multiplier_w[1]!==undefined){switch(parseInt(multiplier_w[1])){case 5:case 4:case 3:typeGridArray[index]&&(multiplier_h[1]=6*multiplier_h[1]/multiplier_w[1]),multiplier_w[1]=6;break;case 2:case 1:typeGridArray[index]&&(multiplier_h[1]=3*multiplier_h[1]/multiplier_w[1]),multiplier_w[1]=3;break;default:typeGridArray[index]&&(multiplier_h[1]=12*multiplier_h[1]/multiplier_w[1]),multiplier_w[1]=12}multiplier_w[1]==2.4&&(typeGridArray[index]&&(multiplier_h[1]=6*multiplier_h[1]/multiplier_w[1]),multiplier_w[1]=6)}}else if(widthAvailable>=screenSmArray[index]&&widthAvailable<screenMdArray[index]){if(multiplier_w!=null&&multiplier_w[1]!==undefined){switch(parseInt(multiplier_w[1])){case 5:case 4:case 3:case 2:case 1:typeGridArray[index]&&(multiplier_h[1]=6*multiplier_h[1]/multiplier_w[1]),multiplier_w[1]=6;break;default:typeGridArray[index]&&(multiplier_h[1]=12*multiplier_h[1]/multiplier_w[1]),multiplier_w[1]=12}multiplier_w[1]==2.4&&(typeGridArray[index]&&(multiplier_h[1]=6*multiplier_h[1]/multiplier_w[1]),multiplier_w[1]=6)}}else widthAvailable<screenSmArray[index]&&multiplier_w!=null&&multiplier_w[1]!==undefined&&(multiplier_w[1]=12,typeGridArray[index]&&(multiplier_h[1]=12));var width=multiplier_w?Math.floor(columnWidth*multiplier_w[1]):columnWidth,height;data_vp_height==="1"&&typeof multiplier_h[1]!="undefined"?(height=multiplier_h?Math.ceil(winHeight/(100/multiplier_fixed))-itemMargin:columnWidth,widthAvailable<screenSmArray[index]&&(height=Math.ceil(2*Math.ceil(columnWidth/2)*12)-itemMargin)):height=multiplier_h?Math.ceil(2*Math.ceil(columnWidth/2)*multiplier_h[1])-itemMargin:columnWidth,width>=widthAvailable?($item.css({width:widthAvailable}),typeGridArray[index]&&$item.children().add($item.find(".backimg")).css({height:height})):($item.css({width:width}),typeGridArray[index]&&$item.children().add($item.find(".backimg")).css({height:height}))}return multiplier_w!=null&&multiplier_w[1]!==undefined&&multiplier_w[1]==2.4?columnWidth/60:columnWidth},init_isotope=function(){for(var i=0,len=isotopeContainersArray.length;i<len;i++){var isotopeSystem=$(isotopeContainersArray[i]).closest($(".isotope-system")),isotopeId=isotopeSystem.attr("id"),$layoutMode=layoutGridArray[i],setIsotopeFirstRowTimeOut,setIsotopeFirstRow=function(items){var firstRow=!0;$(items).each(function(index,val){var el=items[index].element,el_top=items[index].position.y,$el=$(el);index>0&&el_top>0&&firstRow?firstRow=!1:index==0&&el_top==0&&(firstRow=!0),firstRow?$el.removeClass("tmb-isotope-further-row"):$el.addClass("tmb-isotope-further-row")})};$(isotopeContainersArray[i]).not(".un-isotope-init").addClass("un-isotope-init").isotope({itemSelector:$itemSelector,layoutMode:$layoutMode,transitionDuration:transitionDuration[i],masonry:{columnWidth:colWidth(i)},vertical:{horizontalAlignment:.5},sortBy:"original-order",isOriginLeft:isOriginLeft}).on("layoutComplete",onLayout($(isotopeContainersArray[i]),0)).on("layoutComplete",function(event,
1items){typeof items[0]!="undefined"&&$(items[0].element).closest(".off-grid-layout:not(.off-grid-forced)").length&&setIsotopeFirstRow(items)}).on("arrangeComplete",function(event,items){typeof items[0]!="undefined"&&$(items[0].element).closest(".off-grid-layout:not(.off-grid-forced)").length&&(clearRequestTimeout(setIsotopeFirstRowTimeOut),setIsotopeFirstRowTimeOut=requestTimeout(function(){setIsotopeFirstRow(items)},100))});if($(isotopeContainersArray[i]).hasClass("isotope-infinite")&&$.fn.infinitescroll){$(isotopeContainersArray[i]).infinitescroll({navSelector:"#"+isotopeId+" .loadmore-button",nextSelector:"#"+isotopeId+" .loadmore-button a",itemSelector:"#"+isotopeId+" .isotope-layout .tmb, #"+isotopeId+" .isotope-filters li.filter-cat, #"+isotopeId+" .woocommerce-result-count-wrapper--default",animate:!1,behavior:"local",debug:!1,loading:{selector:"#"+isotopeId+".isotope-system .isotope-footer-inner",speed:0,finished:undefined,msg:$("#"+isotopeId+" .loadmore-button")},errorCallback:function(){var isotope_system=$(this).closest(".isotope-system");$(".loading-button",isotope_system).hide(),$(".loadmore-button",isotope_system).attr("style","display:none !important")}},function(newElements,opts){var $isotope=$(this),isotope_system=$isotope.closest(".isotope-system"),isotopeId=isotope_system.attr("id"),filters=new Array,$loading_button=isotope_system.find(".loading-button"),$infinite_button=isotope_system.find(".loadmore-button"),$numPages=$("a",$infinite_button).data("pages"),$woo_results,delay=300;$("a",$infinite_button).html($("a",$infinite_button).data("label")),$isotope.hasClass("isotope-infinite-button")||$infinite_button.hasClass("loadmore-button--icon")?$infinite_button.show():$infinite_button.hide(),$loading_button.hide(),$numPages!=undefined&&opts.state.currPage==$numPages&&$infinite_button.hide(),$("> li",$isotope).remove(),$(".isotope-container").find(".woocommerce-result-count-wrapper").remove(),$.each($(newElements),function(index,val){$(val).hasClass("woocommerce-result-count-wrapper")?($woo_results=$(val),delete newElements[index]):($(val).addClass("tmb-iso"),$(val).is("li")&&filters.push($(val)[0])),$(val).addClass("uncode-appended")}),newElements=newElements.filter(function(x){return filters.indexOf(x)<0}),$.each($(filters),function(index,val){$("#"+isotopeId+' a[data-filter="'+$("a",val).attr("data-filter")+'"]').length==0&&$("#"+isotopeId+" .isotope-filters ul").append($(val))});if($woo_results&&$woo_results.length>0){var old_count=isotope_system.find(".woocommerce-result-count").text(),new_count=$woo_results.find(".woocommerce-result-count").text(),old_start=old_count.match(/(\d+)–(\d+)/)[1],new_end=new_count.match(/(\d+)–(\d+)/)[2];function replaceMatch(match,p1,p2){return old_start+"–"+new_end}var new_count_text=old_count.replace(/(\d+)–(\d+)/,replaceMatch);isotope_system.find(".woocommerce-result-count").text(new_count_text)}$isotope.isotope("reloadItems",onLayout($isotope,newElements.length));if(typeof UNCODE.lightbox!="undefined"&&!SiteParameters.lbox_enhanced){var getLightbox=UNCODE.lightboxArray["ilightbox_"+isotopeId];typeof getLightbox=="object"?getLightbox.refresh():UNCODE.lightbox()}typeof twttr!="undefined"&&twttr.widgets.load(isotopeContainersArray[i]),requestTimeout(function(){Waypoint.refreshAll(),$isotope.trigger("more-items-loaded"),$(window).trigger("more-items-loaded"),window.dispatchEvent(new CustomEvent("uncode-more-items-loaded")),typeof ScrollTrigger!="undefined"&&ScrollTrigger!==null&&$(document).trigger("uncode-scrolltrigger-refresh"),fillIfNotScrollable($isotope)},1e3)});if($(isotopeContainersArray[i]).hasClass("isotope-infinite-button")){var $infinite_isotope=$(isotopeContainersArray[i]),$infinite_button=$infinite_isotope.closest(".isotope-system").find(".loadmore-button a");$infinite_isotope.infinitescroll("pause"),$infinite_button.on("click",function(event){event.preventDefault();var $infinite_system=$(event.target).closest(".isotope-system"),$infinite_isotope=$infinite_system.find(".isotope-container"),isotopeId=$infinite_system.attr("id");$(event.currentTarget).html(SiteParameters.loading),$infinite_isotope.infinitescroll("resume"),$infinite_isotope.infinitescroll("retrieve"),$infinite_isotope.infinitescroll("pause")})}(function($c){requestTimeout(function(){fillIfNotScrollable($c)},1e3)})($(isotopeContainersArray[i]))}}},fillIfNotScrollable=function($container){if($container.hasClass("isotope-infinite-button"))return;if(!$container.hasClass("isotope-infinite"))return;var infData=$container.data("infinitescroll");
1if(!infData||!infData.options||!infData.options.state)return;var state=infData.options.state;if(state.isDuringAjax||state.isDestroyed||state.isBeyondMaxPage||state.isPaused)return;var $loadMoreA=$container.closest(".isotope-system").find(".loadmore-button a"),numPages=parseInt($loadMoreA.data("pages"),10);if(!numPages||state.currPage>=numPages)return;if(document.documentElement.scrollHeight>window.innerHeight+1)return;console.log("fillIfNotScrollable"),$container.infinitescroll("retrieve")},onLayout=function(isotopeObj,startIndex,needsReload){var needsReload=needsReload?!0:!1;typeof UNCODE.bigText!="undefined"&&UNCODE.bigText(),isotopeObj.css("opacity",1),isotopeObj.closest(".isotope-system").find(".isotope-footer").css("opacity",1),requestTimeout(function(){startIndex>0?(reloadIsotope(isotopeObj),SiteParameters.dynamic_srcset_active==="1"&&(UNCODE.refresh_dynamic_srcset_size(isotopeObj),UNCODE.adaptive_srcset(isotopeObj))):needsReload&&reloadIsotope(isotopeObj),UNCODE.adaptive(),SiteParameters.dynamic_srcset_active==="1"&&startIndex===0&&UNCODE.refresh_dynamic_srcset_size(isotopeObj),typeof MediaElement=="function"&&$(isotopeObj).find("audio,video").each(function(){$(this).mediaelementplayer({pauseOtherPlayers:!1})}),$(isotopeObj).find(".nested-carousel").length?(typeof UNCODE.carousel!="undefined"&&UNCODE.carousel($(isotopeObj).find(".nested-carousel")),requestTimeout(function(){boxAnimation($(".tmb-iso",isotopeObj),startIndex,!0,isotopeObj)},200)):boxAnimation($(".tmb-iso",isotopeObj),startIndex,!0,isotopeObj),isotopeObj.trigger("isotope-layout-complete")},100)},boxAnimation=function(items,startIndex,sequential,container){var $allItems=items.length-startIndex,showed=0,index=0;if(container.closest(".owl-item").length==1)return!1;$.each(items,function(index,val){var $this=$(val),elInner=$("> .t-inside",val);if(UNCODE.isUnmodalOpen&&!val.closest("#unmodal-content"))return;val[0]&&(val=val[0]),elInner.hasClass("animate_when_almost_visible")&&!elInner.hasClass("force-anim")?new Waypoint({context:UNCODE.isUnmodalOpen?document.getElementById("unmodal-content"):window,element:val,handler:function(){var element=$("> .t-inside",this.element),parent=$(this.element),currentIndex=parent.index(),delay=sequential?startIndex!==0?currentIndex-$allItems:currentIndex:index,delayAttr=parseInt(element.attr("data-delay"));isNaN(delayAttr)&&(delayAttr=100),delay-=showed;var objTimeout=requestTimeout(function(){element.removeClass("zoom-reverse").addClass("start_animation"),showed=parent.index(),container.data("isotope")&&container.isotope("layout")},delay*delayAttr);parent.data("objTimeout",objTimeout),UNCODE.isUnmodalOpen||this.destroy()},offset:"100%"}):(elInner.hasClass("force-anim")?elInner.addClass("start_animation"):elInner.css("opacity",1),container.isotope("layout")),index++})},reloadIsotope=function(isotopeObj){var isoIndex=$(isotopeObj).attr("data-iso-index"),$layoutMode=$(isotopeObj).data("layout");$layoutMode===undefined&&($layoutMode="masonry"),isotopeObj.data("isotope")&&isotopeObj.isotope({itemSelector:$itemSelector,layoutMode:$layoutMode,transitionDuration:transitionDuration[isoIndex],masonry:{columnWidth:colWidth(isoIndex)},vertical:{horizontalAlignment:.5},sortBy:"original-order",isOriginLeft:isOriginLeft})};$(".isotope-pagination").length>0&&$(".isotope-system").on("click",".pagination a",function(evt){evt.preventDefault();if(SiteParameters.index_pagination_disable_scroll!=="1"){var filterContainer=$(this).closest(".isotope-system").find(".isotope-filters"),container=$(this).closest(".isotope-system"),pagination_disable_scroll=container.attr("data-pagination-scroll"),calc_scroll=SiteParameters.index_pagination_scroll_to!=0?eval(SiteParameters.index_pagination_scroll_to):container.closest(".row-parent").offset().top;calc_scroll-=UNCODE.get_scroll_offset();if(pagination_disable_scroll!=="disabled"){var menu_container=$(".menu-sticky"),menu=menu_container.find(".menu-container");menu_container.length>0&&menu.length>0&&(calc_scroll-=menu.outerHeight());var bodyTop=document.documentElement.scrollTop||document.body.scrollTop,delta=bodyTop-calc_scroll,scrollSpeed=SiteParameters.constant_scroll=="on"?Math.abs(delta)/parseFloat(SiteParameters.scroll_speed):SiteParameters.scroll_speed;scrollSpeed<1e3&&SiteParameters.constant_scroll=="on"&&(scrollSpeed=1e3),UNCODE.isFullPage||(scrollSpeed==0?$("html, body").scrollTop(calc_scroll):$("html, body").animate({scrollTop:calc_scroll},{easing:"easeInOutQuad",duration:scrollSpeed,complete:function(){UNCODE.scrolling=!1}}))}}loadIsotope($(this),!0)}),$filters.on("click","a.isotope-nav-link",function(evt){if($(this).hasClass("no-isotope-filter"))return;var $filter=$(this),filterContainer=$filter.closest(".isotope-filters"),filterValue=$filter.attr("data-filter"),container=$filter.closest(".isotope-system").find($(".isotope-layout")),transitionDuration=container.data().isotope.options.transitionDuration,delay=300,filterItems=[],filter_items=function(){filterValue!==undefined?(container.addClass("grid-filter
1ing"),$.each($("> .tmb-iso > .t-inside",container),function(index,val){var parent=$(val).parent(),objTimeout=parent.data("objTimeout");objTimeout&&($(val).removeClass("zoom-reverse").removeClass("start_animation"),clearRequestTimeout(objTimeout)),transitionDuration==0&&($(val).hasClass("animate_when_almost_visible")?$(val).addClass("zoom-reverse").removeClass("start_animation"):$(val).addClass("animate_when_almost_visible zoom-reverse zoom-anim force-anim"))}),requestTimeout(function(){filterValue=="*"?container.removeClass("isotope-filtered"):container.addClass("isotope-filtered"),container.isotope({filter:function(){var block=$(this),filterable=filterValue=="*"||block.hasClass(filterValue),lightboxElements=$("[data-lbox^=ilightbox]",block);return filterable?(lightboxElements.length&&(lightboxElements.removeClass("lb-disabled"),container.data("lbox",$(lightboxElements[0]).data("lbox"))),filterItems.push(block)):lightboxElements.length&&lightboxElements.addClass("lb-disabled"),container.trigger("more-items-loaded"),$(window).trigger("more-items-loaded"),window.dispatchEvent(new CustomEvent("uncode-more-items-loaded")),filterable}}),$(".t-inside.zoom-reverse",container).removeClass("zoom-reverse")},delay),container.isotope("once","arrangeComplete",function(){if(typeof UNCODE.lightbox!="undefined"&&!SiteParameters.lbox_enhanced){var getLightbox=UNCODE.lightboxArray[container.data("lbox")];typeof getLightbox=="object"?getLightbox.refresh():UNCODE.lightbox()}transitionDuration==0&&requestTimeout(function(){boxAnimation(filterItems,0,!1,container)},100),requestTimeout(function(){Waypoint.refreshAll(),typeof ScrollTrigger!="undefined"&&ScrollTrigger!==null&&$(document).trigger("uncode-scrolltrigger-refresh"),container.removeClass("grid-filtering")},2e3),requestTimeout(function(){fillIfNotScrollable(container)},600)})):(typeof UNCODE.lightbox!="undefined"&&!SiteParameters.lbox_enhanced&&$.each(UNCODE.lightboxArray,function(index,val){UNCODE.lightboxArray[index].destroy()}),$.each($("> .tmb-iso > .t-inside",container),function(index,val){var parent=$(val).parent(),objTimeout=parent.data("objTimeout");objTimeout&&($(val).removeClass("zoom-reverse").removeClass("start_animation"),clearRequestTimeout(objTimeout)),transitionDuration==0&&($(val).hasClass("animate_when_almost_visible")?$(val).addClass("zoom-reverse").removeClass("start_animation"):$(val).addClass("animate_when_almost_visible zoom-reverse zoom-anim force-anim"))}),container.parent().addClass("grid-loading"),loadIsotope($filter))};if(!$filter.hasClass("active"))if(filterContainer.hasClass("filter-scroll")){var calc_scroll=SiteParameters.index_pagination_scroll_to!=0?eval(SiteParameters.index_pagination_scroll_to):container.closest(".row-parent").offset().top;calc_scroll-=UNCODE.get_scroll_offset();var bodyTop=document.documentElement.scrollTop||document.body.scrollTop,delta=bodyTop-calc_scroll,scrollSpeed=SiteParameters.constant_scroll=="on"?Math.abs(delta)/parseFloat(SiteParameters.scroll_speed):SiteParameters.scroll_speed,filterTolerance=!1,filter_timeout;scrollSpeed<1e3&&SiteParameters.constant_scroll=="on"&&(scrollSpeed=1e3),UNCODE.isFullPage||(scrollSpeed==0?($("html, body").scrollTop(calc_scroll),UNCODE.scrolling=!1,filter_items()):(bodyTop<=calc_scroll+20&&bodyTop>=calc_scroll-20&&(filter_items(),filterTolerance=!0),$("html, body").animate({scrollTop:calc_scroll},{easing:"easeInOutQuad",duration:scrollSpeed,complete:function(){UNCODE.scrolling=!1,filterTolerance||(filter_timeout=setTimeout(function(){clearTimeout(filter_timeout),filter_items()},200))}})))}else filter_items();evt.preventDefault()}),$(window).off("popstate.isotopegrid").on("popstate.isotopegrid",function(e){var params=UNCODE.getURLParams(window.location),old_params=UNCODE.getURLParams(UNCODE.lastURL,!0);UNCODE.lastURL=window.location.href;if(UNCODE.hasEqualURLParams(params,old_params)||$.isEmptyObject(params)&&$.isEmptyObject(old_params)||params.form!==undefined)return;params.id===undefined?$.each($(".isotope-system"),function(index,val){loadIsotope($(val))}):params.hasOwnProperty(SiteParameters.ajax_filter_key_unfilter)||loadIsotope($("#"+params.id))});var loadIsotope=function($href,$paginating){var is_paginating=!1;if(undefined!==$paginating&&$paginating)var is_paginating=$paginating;var href=$href.is("a")?$href.attr("href"):location,isotopeSystem=$href.is("a")?$href.closest($(".isotope-system")):$href,isotopeWrapper=isotopeSystem.find($(".isotope-wrapper")),isotopeFooter=isotopeSystem.find($(".isotope-footer-inner")),isotopeResultCount=isotopeSystem.find($(".woocommerce-result-count-wrapper")),isotopeContainer=isotopeSystem.find($(".isotope-layout")),isotopeId=isotopeSystem.attr("id");$href.is("a")&&!isotopeSystem.hasClass("un-no-history")&&(UNCODE.lastURL=href,history.pushState({myIsotope:!0},document.title,href)),is_paginating&&isotopeWrapper.addClass("grid-filter
1ing"),$.ajax({url:href}).done(function(data){var $resultItems=$(data).find("#"+isotopeId+" .isotope-layout").html(),$resultPagination=$(data).find("#"+isotopeId+" .pagination")[0],$resultCount=$(data).find("#"+isotopeId+" .woocommerce-result-count")[0];isotopeWrapper.addClass("isotope-reloaded"),requestTimeout(function(){isotopeWrapper.removeClass("grid-loading"),isotopeWrapper.removeClass("isotope-reloaded"),isotopeWrapper.removeClass("grid-filtering")},500),$.each($("> .tmb > .t-inside",isotopeContainer),function(index,val){var parent=$(val).parent(),objTimeout=parent.data("objTimeout");objTimeout&&($(val).removeClass("zoom-reverse").removeClass("start_animation"),clearRequestTimeout(objTimeout)),$(val).hasClass("animate_when_almost_visible")?$(val).addClass("zoom-reverse").removeClass("start_animation"):$(val).addClass("animate_when_almost_visible zoom-reverse zoom-in force-anim")}),requestTimeout(function(){if(isotopeContainer.data("isotope")){isotopeContainer.html($resultItems).children(".tmb").addClass("tmb-iso"),isotopeContainer.isotope("reloadItems",onLayout(isotopeContainer,0,!0)),UNCODE.adaptive(),SiteParameters.dynamic_srcset_active==="1"&&UNCODE.adaptive_srcset(isotopeContainer);if(typeof UNCODE.lightbox!="undefined"&&!SiteParameters.lbox_enhanced){var getLightbox=UNCODE.lightboxArray["ilightbox_"+isotopeContainer.closest(".isotope-system").attr("id")];typeof getLightbox=="object"?getLightbox.refresh():UNCODE.lightbox()}}isotopeContainer.trigger("more-items-loaded"),$(window).trigger("more-items-loaded"),window.dispatchEvent(new CustomEvent("uncode-more-items-loaded"))},300),$(".pagination",isotopeFooter).remove(),isotopeFooter.append($resultPagination),isotopeResultCount.length>0&&($(".woocommerce-result-count",isotopeResultCount).remove(),isotopeResultCount.append($resultCount))})};$filters.each(function(i,buttonGroup){var $buttonGroup=$(buttonGroup);$buttonGroup.on("click","a:not(.no-isotope-filter)",function(){$buttonGroup.find(".active").removeClass("active"),$(this).addClass("active")});var $cats_mobile_trigger=$(".menu-smart--filter-cats_mobile-toggle-trigger",$buttonGroup),$cats_mobile_toggle=$(".menu-smart--filter-cats_mobile-toggle",$buttonGroup),$cats_filters=$(".menu-smart--filter-cats",$buttonGroup);$buttonGroup.on("click","a.menu-smart--filter-cats_mobile-toggle-trigger",function(e){e.preventDefault(),$cats_filters.slideToggle(400,"easeInOutCirc")})}),window.addEventListener("boxResized",function(e){if(UNCODE.printDialogOpen!==!1)return!1;$.each($(".isotope-layout"),function(index,val){var $layoutMode=$(this).data("layout");$layoutMode===undefined&&($layoutMode="masonry"),$(this).data("isotope")&&($(this).isotope({itemSelector:$itemSelector,layoutMode:$layoutMode,transitionDuration:transitionDuration[index],masonry:{columnWidth:colWidth(index)},vertical:{horizontalAlignment:.5},sortBy:"original-order",isOriginLeft:isOriginLeft}),$(this).isotope("unbindResize"),SiteParameters.dynamic_srcset_active==="1"&&UNCODE.refresh_dynamic_srcset_size($(this))),$(this).find(".mejs-video,.mejs-audio").each(function(){$(this).trigger("resize")})})},!1),init_isotope()}},UNCODE.lightbox=function(){if(SiteParameters.lbox_enhanced)return!0;UNCODE.lightboxArray={},requestTimeout(function(){var groupsArr={};$("[data-lbox^=ilightbox]:not(.lb-disabled):not([data-lbox-init]), .uncode-lbox:not(.lb-disabled):not([data-lbox-init])").each(function(){var group=this.getAttribute("data-lbox"),values=$(this).data();$(this).attr("data-lbox-init","true"),groupsArr[group]=values});for(var i in groupsArr){var skin=groupsArr[i].skin||"black",path=groupsArr[i].dir||"horizontal",thumbs=!groupsArr[i].notmb||!1,arrows=!groupsArr[i].noarr||!1,social=groupsArr[i].social||!1,deeplink=groupsArr[i].deep||!1,$els=$('[data-lbox="'+i+'"]:not(.lb-disabled), .uncode-lbox:not(.lb-disabled)'),counter=$els.length,dataAlbum=$els.attr("data-album");social&&(social={facebook:!0,twitter:!0,reddit:!0,digg:!0}),UNCODE.lightboxArray[i]=$els.iLightBox({selector:'[data-lbox="'+i+'"]:not(.lb-disabled), .uncode-lbox:not(.lb-disabled)',skin:skin,path:path,linkId:deeplink,infinite:!1,smartRecognition:!1,fullAlone:!0,maxScale:1,minScale:.02,overlay:{opacity:.94},controls:{arrows:counter>1||typeof dataAlbum!="undefined"?arrows:!1,fullscreen:!0,thumbnail:thumbs,slideshow:counter>1||typeof dataAlbum!="undefined"?!0:!1},show:{speed:200},hide:{speed:200},social:{start:!1,buttons:social},caption:{start:!1},styles:{nextOpacity:1,nextScale:1,prevOpacity:1,prevScale:1},effects:{switchSpeed:400},slideshow:{pauseTime:5e3},thumbnails:{maxWidth:60,maxHeight:60,activeOpacity:.2},html5video:{preload:!0},callback:{onOpen:function(){$(window).trigger("uncode-custom-cursor"),$("body").hasClass("ilb-no-bounce")&&typeof iNoBounce!="undefined"&&iNoBounce.enable()},onHide:function(){$("body").hasClass("ilb-no-bounce")&&typeof iNoBounce!="undefined"&&iNoBounce.disable()}}}),$(document).on("infinite-loaded",function(){UNCODE.lightboxArray[i].refresh()}),$(window).on("gdprOpen",function(){UNCODE.lightboxArray[i].close()})}},100),$(document).on("click",".lb-disabled",function(e){e.preventDefault()})},UNCODE.lightgallery=function($el){document._uncodeMarqueeGalleryBind||(document._uncodeMarqueeGalleryBind=!0,$(document).on("uncode-marquee-updated",function(e,data){if(!data||!data.context)return;
1var $context=$(data.context),$targets=$context.find(".isotope-container, .owl-carousel, .custom-grid-container, .index-scroll-wrapper, .justified-gallery, .linear-container, .uncode-single-media-wrapper, .woocommerce-product-gallery, .grid-container, .btn-container, .nested-carousel").add($context.filter(".isotope-container, .owl-carousel, .custom-grid-container, .index-scroll-wrapper, .justified-gallery, .linear-container, .uncode-single-media-wrapper, .woocommerce-product-gallery, .grid-container, .btn-container, .nested-carousel"));$targets.length||($targets=$context.closest(".isotope-container, .owl-carousel, .custom-grid-container, .index-scroll-wrapper, .justified-gallery, .linear-container, .uncode-single-media-wrapper, .woocommerce-product-gallery, .grid-container, .btn-container, .nested-carousel"));if(!$targets.length)return;$targets.each(function(){$(this).removeAttr("data-lbox-init"),$(this).find("[data-lbox-init]").removeAttr("data-lbox-init")}),UNCODE.lightgallery($targets)}));var createSelectors=function(){$("a[data-lbox]:not([data-lbox-init]):not([data-album])"+SiteParameters.uncode_lb_add_items).each(function(){!$(this).closest(".nested-carousel").length&&!$(this).closest(".owl-item.cloned").length&&!$(this).hasClass("lb-disabled")?$(this).addClass("lbox-trigger-item"):$(this).closest(".nested-carousel").length&&!$(this).closest(".owl-item.cloned").length&&!$(this).hasClass("lb-disabled")?$(this).addClass("lbox-nested-item"):($(this).removeClass("lbox-trigger-item"),$(this).removeClass("lbox-nested-item"))})};createSelectors();var galleries=[],nested_a=$("a[data-lbox]:not(.lb-disabled):not([data-lbox-init]):not([data-album])").filter(function(index){return!$(this).closest(".nested-carousel").length}),$_galleries=$(".isotope-container:not([data-lbox-init]), .owl-carousel:not([data-lbox-init]), .custom-grid-container:not([data-lbox-init]), .index-scroll-wrapper:not([data-lbox-init]), .justified-gallery:not([data-lbox-init]), .linear-container:not([data-lbox-init]), .uncode-single-media-wrapper:not([data-lbox-init]), .woocommerce-product-gallery:not([data-lbox-init]), .icon-box .icon-box-icon:not([data-lbox-init]), .icon-box .icon-box-content:not([data-lbox-init]), .grid-container:not([data-lbox-init]), .btn-container:not([data-lbox-init])"+SiteParameters.uncode_lb_add_galleries).has(".lbox-trigger-item").not(".isotope-container *, .owl-carousel *, .index-scroll-wrapper *, .justified-gallery *, .woocommerce-product-gallery *, .grid-container *, .linear-container *"),$galleries=$_galleries.filter(function(index){return!$(this).closest(".owl-carousel").length||$(this).is(".owl-carousel")}),$nested=$(".nested-carousel:not([data-lbox-init])").has(".lbox-nested-item");typeof $el=="undefined"&&($el=$galleries.add($nested));var $disabled=$("a.lb-disabled");$disabled.on("click",function(e){e.preventDefault()});var beforeSlide=function(event){var detail=event.detail,info=detail.info,item=detail.item,$slide=$(detail.currentSlide.selector),$video=$("video",$slide),$previous=$(detail.previousSlide.selector),$prevVideo=$("video",$previous),isAudio=!1;typeof info.src!="undefined"&&(isAudio=info.src.search(/.mp3|.m4a/i)>-1);if(!$video.length&&(info.video||isAudio)){if(info.video){if(typeof info.video=="object")var infoJson=info.video;else var infoJson=JSON.parse(info.video);var src=infoJson.source[0].src,autoplay=$(item).attr("data-autoplay")||event.target.autoplay===!0||$(item).closest("[data-lb-autoplay=yes]").length||$(event.target).attr("data-lb-autoplay")==="yes",muted=$(item).closest("[data-lb-muted=yes]").length||$(event.target).attr("data-lb-muted")==="yes",loop=$(item).attr("data-loop")}else if(isAudio)var src=info.src,autoplay=!0,loop=!1;if(typeof src!="undefined"){$slide.addClass("has-html5");var video=document.createElement("video");video.src=src,video.preload="auto",video.controls="controls",video.controlsList="nodownload",autoplay&&(video.autoplay="autoplay"),muted&&(video.muted="muted"),loop&&(video.loop="loop"),$(video).appendTo($slide)}}else{var $video=$("video",$slide);$video.length&&($video[0].currentTime=0,$video[0].autoplay&&$video[0].play())}$prevVideo.length&&($prevVideo[0].currentTime=0,$prevVideo[0].pause())},beforeOpen=function(event){var detail=event.detail,items=detail.items,galleryItems=detail.galleryItems,outer=detail.outer.selector,i,ii;for(i=0;i<galleryItems.length;i++){var item=galleryItems[i];(typeof item.video!="undefined"||item.oembed==="video")&&$(outer).find('.lg-thumb-item[data-lg-item-id="'+i+'"]').addClass("thumbnail-video")}for(ii=0;ii<items.length;ii++){var item=items[ii];$(item).attr("data-icon")==="video"&&$(outer).find('.lg-thumb-item[data-lg-item-id="'+ii+'"]').addClass("thumbnail-video")}},captionBuilder=function($el){$el.each(function(index,val){var $gallery=$(this).attr("data-lbox-init","true"),$_a=".lbox-trigger-item",$_nested_a=".lbox-nested-item";$gallery.find($_a).add($_nested_a).each(function(){var $a=$(this),$img=$("img",$a).first(),imgw=$img.attr("data-width"),imgh=$img.attr("data-height"),caption=$a.attr("data-caption"),title=$a.attr("data-title");$img.length&&$img.attr("data-crop")!=1&&(typeof $img.attr("data-guid")!="undefined"&&$img.attr("data-guid")!==""?$a.attr("data-external-thumb-image",$img.attr("data-guid")):$img[0].src&&typeof $img.attr("data-srcset")=="undefined"&&$a.attr("data-external-thumb-image")==""&&$a.attr("data-external-thumb-image",$img[0].src)),typeof title!="undefined"&&title!==""?title="<h6>"+title+"</h6>":title="",typeof caption!="undefined"&&caption!==""&&(caption="<p>"+caption+"</p>",title+=caption),title!==""&&$a.attr("title",title),$img.attr("data-crop")!=1&&typeof imgw!="undefined"&&typeof imgh!="undefined"&&imgw!==""&&imgh!==""&&(typeof $a.attr("data-lg-size")=="undefined"||!$a.attr("data-lg-size"))&&$a.attr("data-lg-size",imgw+"-"+imgh)})})};captionBuilder($el),$el.each(function(index,val){var $gallery=$(this),$_a=".lbox-trigger-item",$_nested_a=".lbox-nested-item",$_first=$gallery.hasClass("nested-carousel")?$($_nested_a,$gallery).first():$($_a,$gallery).first(),galleryID=$_first.attr("data-lbox"),$_connected_a=$_a+'[data-lbox="'+galleryID+'"]',tmb=$_first.attr("data-notmb"),social=$_first.attr("data-social"),deep=$_first.attr("data-deep"),zoom=$_first.attr("data-zoom-origin"),actual=$_first.attr("data-actual-size"),download=$_first.attr("data-download"),controls=$_first.attr("data-arrows")!=="no",fullScreen=$_first.attr("data-full"),counter=$_first.attr("data-counter"),transition=typeof $_first.attr("data-transition")!="undefined"?$_first.attr("data-transition"):"lg-slide",containerClass=$_first.closest('[data-skin="white"]').length?"lg-light-skin":"",connect=$_first.attr("data-connect"),lgPlugins=[lgVideo],itemsLoadedTimeOut;
1typeof galleryID=="undefined"&&(galleryID=$gallery.attr("id")),containerClass+=$_first.attr("data-transparency")==="opaque"?" lg-opaque":"",containerClass+=controls&&$_first.attr("data-arrows-bg")==="semi-transparent"?" lg-semi-transparent-arrows":"",(typeof tmb=="undefined"||!tmb)&&lgPlugins.push(lgThumbnail),(typeof actual!="undefined"&&actual!=""||$gallery.is(".woocommerce-product-gallery"))&&lgPlugins.push(lgZoom),typeof deep!="undefined"&&deep!=""&&lgPlugins.push(lgHash),typeof fullScreen!="undefined"&&fullScreen!=""&&lgPlugins.push(lgFullscreen),social&&lgPlugins.push(lgShare);if(galleries.indexOf(galleryID)!==-1)return!0;galleries.push(galleryID);var $triggerGal=connect?$(".page-wrapper"):$gallery,$selector=$triggerGal.hasClass("nested-carousel")?$_nested_a:connect?$_connected_a:$_a,gallery=lightGallery($triggerGal[0],{addClass:containerClass,plugins:lgPlugins,mode:transition,selector:$selector,galleryId:galleryID,thumbnail:typeof tmb=="undefined"||!tmb,iframeWidth:"848px",iframeMaxWidth:"90%",iframeMaxHeight:"90%",exThumbImage:"data-external-thumb-image",loadYouTubeThumbnail:!1,autoplayVideoOnSlide:$gallery.attr("data-lb-autoplay")==="yes"||$gallery.closest("[data-lb-autoplay=yes]").length,pager:!1,startClass:"lg-start-opacity",zoomFromOrigin:zoom,controls:controls,download:typeof download!="undefined"&&download!="",thumbWidth:50,thumbHeight:"50px",counter:$triggerGal.find($selector).length>1?counter:!1,loadYouTubePoster:!1,enableDrag:$triggerGal.find($selector).length>1,mobileSettings:{showCloseIcon:$("body").hasClass("lightgallery-hide-close")?!1:!0}});$(".owl-item.cloned",$gallery).find(nested_a).on("click",function(e){e.preventDefault();var index=$(this).closest(".owl-item.cloned").attr("data-index");gallery.openGallery(index-1)}),$gallery.on("uncode-gallery-trigger",function(){gallery.openGallery(0)}),$triggerGal.on("more-items-loaded",function(e,items){clearRequestTimeout(itemsLoadedTimeOut),itemsLoadedTimeOut=requestTimeout(function(){createSelectors(),captionBuilder($triggerGal),gallery.refresh()},100)}),$("body").hasClass("compose-mode")&&typeof window.parent.vc!="undefined"&&window.parent.vc.events.once("shortcodeView:beforeUpdate",function(model){$el=model.view.$el,$el.find($triggerGal).length&&gallery.destroy()}),$triggerGal[0].addEventListener("lgBeforeSlide",beforeSlide),$triggerGal[0].addEventListener("lgBeforeOpen",beforeOpen),$triggerGal[0].addEventListener("lgAfterOpen",function(){$(window).trigger("uncode-custom-cursor")})}),typeof $el!="undefined"&&($("a[data-album]:not([data-lbox-init])").each(function(index,val){var album=val,galleryID=index,$album=$(album),params=$album.attr("data-album"),tmb=$(val).attr("data-notmb"),social=$(val).attr("data-social"),deep=$(val).attr("data-deep"),actual=$(val).attr("data-actual-size"),download=$(val).attr("data-download"),controls=$(val).attr("data-arrows")!=="no",fullScreen=$(val).attr("data-full"),counter=$(val).attr("data-counter"),transition=typeof $(val).attr("data-transition")!="undefined"?$(val).attr("data-transition"):"lg-slide",containerClass=$(val).closest('[data-skin="white"]').length?"lg-light-skin":"",lgPlugins=[lgVideo];$(val).attr("data-lbox-init","true"),containerClass+=$(val).attr("data-transparency")==="opaque"?" lg-opaque":"",containerClass+=controls&&$(val).attr("data-arrows-bg")==="semi-transparent"?" lg-semi-transparent-arrows":"",(typeof tmb=="undefined"||!tmb)&&lgPlugins.push(lgThumbnail),typeof actual!="undefined"&&actual!=""&&lgPlugins.push(lgZoom),typeof deep!="undefined"&&deep!=""&&lgPlugins.push(lgHash),typeof fullScreen!="undefined"&&fullScreen!=""&&lgPlugins.push(lgFullscreen),social&&lgPlugins.push(lgShare);var gallery=window.lightGallery(album,{dynamic:!0,plugins:lgPlugins,dynamicEl:JSON.parse(params),galleryId:galleryID,addClass:containerClass,mode:transition,thumbnail:typeof tmb=="undefined"||!tmb,iframeWidth:"848px",iframeMaxWidth:"90%",iframeMaxHeight:"90%",loadYouTubeThumbnail:!1,autoplayVideoOnSlide:$album.attr("data-lb-autoplay")==="yes",pager:!1,startClass:"lg-start-opacity",zoomFromOrigin:!1,controls:controls,download:typeof download!="undefined"&&download!="",thumbWidth:50,thumbHe
1ight:"50px",loadYouTubePoster:!1,counter:counter,exThumbImage:"data-external-thumb-image",loadYouTubePoster:!1,mobileSettings:{showCloseIcon:$("body").hasClass("lightgallery-hide-close")?!1:!0}});$album.on("click",function(){gallery.openGallery(0)}),album.addEventListener("lgBeforeSlide",beforeSlide),album.addEventListener("lgBeforeOpen",beforeOpen),album.addEventListener("lgAfterOpen",function(){$(window).trigger("uncode-custom-cursor")}),$("body").hasClass("compose-mode")&&typeof window.parent.vc!="undefined"&&window.parent.vc.events.once("shortcodeView:beforeUpdate",function(model){$el=model.view.$el,$el.find($album).length&&gallery.destroy()})}),$(".uncode-lbox:not(.lb-disabled):not([data-lbox-init])").each(function(index,val){var gallery=lightGallery($(".page-wrapper")[0],{selector:".uncode-lbox:not(.lb-disabled):not([data-lbox-init])",iframeWidth:"848px",iframeMaxWidth:"90%",iframeMaxHeight:"90%",loadYouTubeThumbnail:!1,startClass:"lg-start-opacity",thumbWidth:50,thumbHeight:"50px",download:!1,loadYouTubePoster:!1,counter:!1});$(".page-wrapper")[0].addEventListener("lgBeforeSlide",beforeSlide),$(".page-wrapper")[0].addEventListener("lgBeforeOpen",beforeOpen)}));var galleryButtons=function(){var $buttons=$(".btn-gallery-trigger");$buttons.each(function(key,val){var $button=$(val),target=$button.attr("data-target"),$gallery=$(".un-media-gallery").first(),$row=$button.closest(".vc_row[data-parent]");typeof target!="undefined"&&target!==""&&$(".un-media-gallery#"+target).length?$gallery=$(".un-media-gallery#"+target):$(".un-media-gallery",$row).length&&($gallery=$(".un-media-gallery",$row).first()),$button.on("click","a",function(e){e.preventDefault(),$gallery.find("[data-lbox-init]").first().trigger("uncode-gallery-trigger")})})};galleryButtons()},UNCODE.carousel=function(container){var $owlContainers=$(".owl-carousel-container",container);$owlContainers.each(function(){function firstLoaded(el,event){var el=$(el),uncode_slider=el.find(".uncode-slider");el.find(".owl-carousel").css("opacity",1),uncode_slider.addClass("slider-loaded"),typeof UNCODE.bigText!="undefined"&&UNCODE.bigText(el.find(".owl-item.active")),requestTimeout(function(){var lastDelayElems=animate_elems(el.find(".owl-item.index-active")),lastDelayThumb=animate_thumb(el.find(".owl-item.active .t-inside"),event);if(uncode_slider.length&&el.find(".owl-carousel").data("autoplay")){lastDelayElems==undefined&&(lastDelayElems=0),lastDelayThumb==undefined&&(lastDelayThumb=0);var maxDelay=Math.max(lastDelayElems,lastDelayThumb);$("> .owl-carousel",uncode_slider).trigger("stop.owl.autoplay"),requestTimeout(function(){$("> .owl-carousel",uncode_slider).trigger("play.owl.autoplay")},maxDelay)}},500)}function navHover(el){var $owlCont=el,$owlPrev=$owlCont.find(".owl-prev"),$owlNext=$owlCont.find(".owl-next"),$owlDots=$owlCont.find(".owl-dots-inside .owl-dots"),$owlPagination=$owlCont.next(),owlPrevW=$owlPrev.outerWidth(),owlNextW=$owlNext.outerWidth(),owlDotsH=$owlDots.innerHeight(),owlTime=400,owlNested=$owlCont.parent().parent().hasClass("nested-carousel");$("body").hasClass("rtl")?($owlPrev.css("margin-right",-owlPrevW),$owlNext.css("margin-left",-owlNextW)):($owlPrev.css("margin-left",-owlPrevW),$owlNext.css("margin-right",-owlNextW)),owlNested||$owlDots.css("bottom",-owlDotsH),$owlCont.mouseenter(function(){owlNested=$owlCont.parent().parent().hasClass("nested-carousel"),$owlPrev.add($owlNext).css({marginLeft:0,marginRight:0}),owlNested||$owlDots.css({opacity:1,bottom:0})}).mouseleave(function(){owlNested=$owlCont.parent().parent().hasClass("nested-carousel"),$("body").hasClass("rtl")?($owlPrev.css("margin-right",-owlPrevW),$owlNext.css("margin-left",-owlNextW)):($owlPrev.css("margin-left",-owlPrevW),$owlNext.css("margin-right",-owlNextW)),owlNested||$owlDots.css({opacity:1,bottom:-owlDotsH})})}function animate_elems($this){var lastDelay;return $.each($(".animate_when_almost_visible:not(.t-inside), .animate_inner_when_almost_visible:not(.t-inside), .animate_when_parent_almost_visible:not(.t-inside)",$this),function(index,val){var element=$(val),delayAttr=element.attr("data-delay"),$first_item=element.closest('.owl-item[data-index="1"]');if($first_item.length&&$first_item.attr("data-already-reached")!=="true"&&!$first_item.closest("#page-header").length)return!1;delayAttr==undefined&&(delayAttr=0),requestTimeout(function(){element.addClass("start_animation")},delayAttr),lastDelay=delayAttr}),lastDelay}function animate_thumb(items,event){var lastDelay,itemIndex,thiis=$(event.currentTarget),tempIndex=thiis.data("tempIndex")==undefined?$(".owl-item.active",thiis).first().index():thiis.data("tempIndex"),numActives=$(".owl-item.active",thiis).length,stagePadding=thiis.data("stagepadding");return stagePadding=stagePadding==undefined||stagePadding==0?!1:!0,thiis.data("tempIndex",event.item.index),$.each(items,function(index,val){var parent=$(val).closest(".owl-item");if(UNCODE.isUnmodalOpen&&!val.closest("#unmodal-content"))return;if(!$(val).hasClass("start_animation"))if(parent.hasClass("active")||stagePadding||$owlWrapper.hasClass("carousel-animation-first"))var thumbInView=new Waypoint.Inview({context:UNCODE.isUnmodalOpen?document.getElementById("unmodal-content"):window,element:val,enter:function(direction){var element=$(this.element),delayAttr=parseInt(element.attr("data-delay")),itemIndex=element.closest(".owl-item").index()+1,menuIndex=parseFloat(element.closest(".owl-item").attr("data-index")),diffItem=Math.abs(itemIndex-tempIndex)-1;thiis.closest(".megamenu-block-wrapper").length?diffItem=menuIndex:itemIndex>tempIndex&&thiis.data("tempIndex",itemIndex),isNaN(delayAttr)&&(delayAttr=100);if(stagePadding){var objTimeout=requestTimeout(function(){element.closest(".overlay:not(.open)").length||element.addClass("start_animation")},index*delayAttr);lastDelay=index*delayAttr}else{$('.owl-item.cloned[data-index="'+element.closest(".owl-item").data("index")+'"] .t-inside',thiis).addClass("start_animation");var objTimeout=requestTimeout(function(){element.attr("data-test",diffItem+" "+delayAttr).addClass("start_animation")},diffItem*delayAttr);lastDelay=diffItem*delayAttr}parent.data("objTimeout",objTimeout),UNCODE.isUnmodalOpen||this.destroy()}})}),lastDelay}function setItemsHeight(item){$.each($(".owl-item",item),function(index,val){var availableThumbHeight=$(".t-inside",$(val)).height(),innerThumbHeight=$(".t-entry-text-tc",$(val)).outerHeight(),difference=availableThumbHeight-innerThumbHeight;if($(".tmb-content-under",val).length){var visualPart=$(".t-entry-v
1isual",val);visualPart.length&&(difference-=$(".t-entry-visual",val).height())}$(".tmb-content-lateral",val).length||$(".t-entry > *:last-child",val).css("transform","translateY("+difference+"px)")})}function setItemsRelHeight(item){$.each($(".owl-item",item),function(index,val){var $rowContainer=$(item).parents(".row-parent").eq(0),paddingRow=parseInt($rowContainer.css("padding-top"))+parseInt($rowContainer.css("padding-bottom")),$colContainer=$(item).parents(".uncell").eq(0),paddingCol=parseInt($colContainer.css("padding-top"))+parseInt($colContainer.css("padding-bottom")),winHeight=UNCODE.wheight,multiplier_h=parseInt($(item).attr("data-vp-height")),data_viewport_h,consider_menu=$(item).data("vp-menu");consider_menu&&(winHeight-=UNCODE.menuHeight),data_viewport_h=Math.ceil(winHeight/(100/multiplier_h))-(paddingRow+paddingCol),$(".t-inside",val).css("height",data_viewport_h)})}function pauseOnHover(slider){var $owlCustomNavSels=slider.closest(".row").find(".uncode-nav-dots, .uncode-nav-prev, .uncode-nav-next");$(".owl-dots, .owl-prev, .owl-next",slider).add($owlCustomNavSels).on({mouseenter:function(){$(slider).addClass("owl-mouseenter"),$(slider).trigger("stop.owl.autoplay")},mouseleave:function(){$(slider).removeClass("owl-mouseenter"),$(slider).trigger("play.owl.autoplay")}})}var $owlContainer=$(this),$owlWrapper=$owlContainer.closest(".owl-carousel-wrapper"),$owlSelector=$('> [class*="owl-carousel"]',$owlContainer),values={},tempTimeStamp,newWidth=UNCODE.wwidth,$owlInsideEqual=[];$owlSelector.each(function(){function manageFluidCarouseHeight(){clearRequestTimeout(setFluidResize),setFluidResize=requestTimeout(function(){if(UNCODE.wwidth>UNCODE.mediaQuery||UNCODE.wwidth<=UNCODE.mediaQuery&&newWidth!==UNCODE.wwidth)newWidth=UNCODE.wwidth,setItemsRelHeight($elSelector)},100)}var itemID=$(this).attr("id"),$elSelector=$(("#"+itemID).toString());values.id=itemID,values.items=1,values.columns=3,values.fade=!1,values.nav=!1,values.navmobile=!1,values.navskin="light",values.navspeed=400,values.dots=!1,values.dotsmobile=!1,values.loop=!1,values.autoplay=!1,values.timeout=3e3,values.autoheight=!1,values.stagepadding=0,values.margin=0,values.lg=1,values.md=1,values.sm=1,$.each($(this).data(),function(i,v){values[i]=v}),$(this).closest(".uncode-slider").length?(values.navskin="",values.navmobile=!1):values.navskin=" style-"+values.navskin+" style-override";var setIndexActive=function(event,init){var init=typeof init=="undefined"?!1:init,thiis=$(event.currentTarget);if(tempTimeStamp!=event.timeStamp&&(init||!UNCODE.isFullPage||UNCODE.isFullPage&&thiis.closest(".fp-section").hasClass("uncode-scroll-active")))var scrolltop=$(document).scrollTop(),size=event.page.size,i,setIndex=requestTimeout(function(){for(i=0;i<size;i++){var itemCont=event.item.index!=null?event.item.index+i:i,currentItem=thiis.find("> .owl-stage-outer > .owl-stage > .owl-item")[itemCont];if(thiis.closest(".row-slider").length){currentItem==undefined&&(currentItem=thiis.children()[i]),$(currentItem).closest("#page-header").length&&($(".row-container > .row > .row-inner > div > .style-dark",currentItem).closest(".uncode-slider").length?UNCODE.switchColorsMenu(scrolltop,"dark"):$(".row-container > .row > .row-inner > div > .style-light",currentItem).closest(".uncode-slider").length&&UNCODE.switchColorsMenu(scrolltop,"light"));var owlCustomNav=$elSelector.closest(".owl-carousel-wrapper-nav").find(".uncode-owl-nav-out.skin-inherit");owlCustomNav.length&&($(".row-container > .row > .row-inner > div > .style-dark",currentItem).closest(".uncode-slider").length?owlCustomNav.addClass("style-dark").removeClass("style-light"):$(".row-container > .row > .row-inner > div > .style-light",currentItem).closest(".uncode-slider").length&&owlCustomNav.addClass("style-light").removeClass("style-dark"))}var itendIndex=$(currentItem).attr("data-index");isNaN(itendIndex)&&(itendIndex=1),$elSelector.find(".owl-item:not(.new-indexed)").removeClass("index-active"),$elSelector.find('.owl-item[data-index="'+itendIndex+'"]').addClass("index-active").addClass("new-indexed"),$.fn.counterUp&&(size<=1?$elSelector.find('.owl-item[data-index="'+itendIndex+'"] .uncode-counter').each(function(){var $counter=$(this);$counter.addClass("started").counterUp({delay:10,time:1500})}):$(".owl-item",$elSelector).eq(itemCont).find(".uncode-counter:not(.started)").addClass("started").counterUp({delay:10,time:1500}))}$elSelector.find(".owl-item.new-indexed").removeClass("new-indexed")},200);tempTimeStamp=event.timeStamp};$elSelector.on("initialize.owl.carousel",function(event){typeof UNCODE.owlNav!="undefined"&&UNCODE.owlNav(itemID,event),$("body").hasClass("compose-mode")&&typeof window.parent.vc!="undefined"&&(window.parent.vc.events.on("shortcodeView:beforeUpdate shortcodeView:destroy",function(model){var shortcode=model.attributes.shortcode,$el=model.view.$el,$row_wrap=$el.closest(".row");shortcode==="uncode_carousel_nav"&&typeof UNCODE.owlNav!="undefined"&&$row_wrap.find(".owl-carousel-wrapper-nav .uncode-owl-nav-out").remove()}),window.parent.vc.events.on("shortcodeView:updated",function(model){var shortcode=model.attributes.shortcode;shortcode==="uncode_carousel_nav"&&typeof UNCODE.owlNav!="undefined"&&(tempTimeStamp=Math.floor(Date.now()/1e3))}),window.parent.vc.events.on("shortcodeView:updated shortcodeView:ready",function(model){var shortcode=model.attributes.shortcode;shortcode==="uncode_carousel_nav"&&typeof UNCODE.owlNav!="undefined"&&(UNCODE.owlNav(itemID,event),$elSelector.trigger("refresh.owl.carousel"))}))}),$elSelector.on("initialized.owl.navigation",function(event){$(".owl-dot",event.currentTarget).each(function(key,val){$(val).attr("aria-label",SiteParameters.uncode_slide_label+" "+(key+1))})}),$elSelector.on("initialized.owl.carousel",function(event){$(".isotope-container",event.currentTarget).length&&window.dispatchEvent(UNCODE.boxEvent),$(".owl-dot.active",$elSelector).on("click",function(){return!1});var thiis=$(event.currentTarget),time=thiis.data("timer-id"),rowParent=thiis.closest(".row-parent");typeof rowParent[0]!="undefined"&&rowParent[0].dispatchEvent(new CustomEvent("owl-carousel-initialized")),time&&clearRequestTimeout(time),thiis.addClass("showControls");var new_time=requestTimeout(function(){thiis.closest(".owl-carousel-container").removeClass("owl-carousel-loading"),thiis.hasClass("owl-height-viewport")&&setItemsRelHeight(thiis),(thiis.hasClass("owl-height-equal")||thiis.closest(".uncode-wrapper").length)&&setItemsHeight(thiis),!UNCODE.isMobile&&!$elSelector.closest(".header-wrapper").length&&navHover($elSelector.parent()),thiis.closest(".unequal, .unexpand").length&&UNCODE.setRowHeight(rowParent[0],!0),SiteParameters.dynamic_
1srcset_active==="1"&&UNCODE.refresh_dynamic_srcset_size(thiis)},350);thiis.data("timer-id",new_time);var scrolltop=$(document).scrollTop();thiis.closest(".uncode-slider").find("video").removeAttr("poster"),$(window).on("load",function(){thiis.data("autoplay")&&(!thiis.closest(".sticky-element").length||thiis.closest(".un-submenu").length||thiis.closest(".overlay").length?thiis.trigger("stop.owl.autoplay"):thiis.trigger("play.owl.autoplay"));if(UNCODE.isUnmodalOpen&&!thiis.closest("#unmodal-content"))return;if(!thiis.closest(".sticky-element").length&&!thiis.closest(".un-submenu").length&&!thiis.closest(".overlay").length)var carouselInView=new Waypoint.Inview({context:UNCODE.isUnmodalOpen?document.getElementById("unmodal-content"):window,element:thiis[0],exited:function(){var el=$(this.element);el.data("autoplay")&&(el.trigger("stop.owl.autoplay"),el.data("stopped","true"))},enter:function(direction){var el=$(this.element);requestTimeout(function(){el.data("autoplay")&&(el.trigger("play.owl.autoplay"),el.data("stopped","fal
1se"))},100)}});typeof window.lenis!="undefined"&&window.lenis!==null&&setTimeout(function(){window.lenis.resize()},1e3)}),!thiis.closest(".isotope-system").length&&!thiis.closest(".megamenu-block-wrapper").length&&!thiis.closest(".overlay").length&&requestTimeout(function(){animate_thumb($(".t-inside",el),event)},400),thiis.closest(".isotope-system").length&&requestTimeout(function(){thiis.closest(".isotope-container").isotope("layout")},400),thiis.closest(".megamenu-block-wrapper").length&&$(document).on("un-menu-show",function(e,$ul){thiis.closest($ul).length&&animate_thumb($(".t-inside",el),event)}),thiis.closest(".overlay").length&&$(window).on("menuOpen",function(e,$ul){animate_thumb($(".t-inside",el),event)});var currentItem=thiis.find("> .owl-stage-outer > .owl-stage > .owl-item")[event.item.index],currentIndex=$(currentItem).attr("data-index");$.each($(".owl-item:not(.active) .start_animation",$(event.target)),function(index,val){$(val).closest(".uncode-slider").length&&$(val).removeClass("start_animation")}),$.each($(".owl-item:not(.active) .already-animated",$(event.target)),function(index,val){$(val).closest(".uncode-slider").length&&$(val).removeClass("already-animated")}),$.each($('.owl-item:not(.active) [data-animated="yes"]',$(event.target)),function(index,val){$(val).closest(".uncode-slider").length&&$(val).removeAttr("data-animated")}),$.each($(".owl-item.cloned",thiis),function(index,val){$(".t-entry-visual-cont > a",$(val)).attr("data-lbox-clone",!0)}),$.each($(".owl-item:not(.active)",thiis),function(index,val){$(val).attr("data-index")!=currentIndex&&($(".start_animation:not(.t-inside)",val).removeClass("start_animation"),$(".already-animated:not(.t-inside)",val).removeClass("already-animated")),$(val).attr("data-index")!=currentIndex&&$('[data-animated="yes"]:not(.t-inside)',val).removeAttr("data-animated"),$(val).attr("data-index")==currentIndex&&$(".animate_when_almost_visible:not(.t-inside), .animate_inner_when_almost_visible:not(.t-inside)",val).addClass("start_animation")});if(thiis.closest(".uncode-slider").length){var el=thiis.closest(".row-parent")[0],section=thiis.closest(".vc_section");section.length&&(el=$("> .row-parent",section)[0]),$(el).data("imgready")?firstLoaded(el,event):el.addEventListener("imgLoaded",function(el){firstLoaded(el.target,event)},!1);var transHeight=$(".hmenu .menu-transparent.menu-primary .menu-container").height()-UNCODE.bodyBorder;transHeight!=null&&requestTimeout(function(){thiis.closest(".uncode-slider").find(".owl-prev, .owl-next").css("paddingTop",transHeight/2+"px")},100)}else{var el=thiis;el.closest(".uncode-slider").addClass("slider-loaded")}requestTimeout(function(){typeof UNCODE.bigText!="undefined"&&UNCODE.bigText(thiis),(thiis.closest(".uncode-slider").length||thiis.closest(".row").find(".uncode-owl-nav-in").length)&&thiis.data("autoplay")&&pauseOnHover(thiis)},500),thiis.closest(".unequal").length&&$owlInsideEqual.push(thiis.closest(".row-parent"));var containerClasses="",containerStyle="";$(".owl-dots-classes",$owlContainer).length&&(containerClasses=$(".owl-dots-classes",$owlContainer).attr("class"),containerStyle=$(".owl-dots-classes",$owlContainer).attr("style"),$(".owl-dots-classes",$owlContainer).remove()),containerClasses!==""&&requestTimeout(function(){containerClasses!==""&&$(".owl-dots",$owlContainer).attr("style",containerStyle),containerStyle!==""&&$(".owl-dots",$owlContainer).addClass(containerClasses)},100),$.each($(".column_child.pos-bottom",thiis),function(index,val){$(val).closest(".row-inner").css({"margin-top":"-1px"})}),$.fn.isotope&&thiis.closest(".isotope-container").length&&(thiis.closest(".isotope-container").data("isotope")&&requestTimeout(function(){thiis.closest(".isotope-container").isotope("layout")},300),$(window).on("load",function(){thiis.closest(".isotope-container").data("isotope")&&thiis.closest(".isotope-container").isotope("layout")})),thiis.data("autoplay")&&($(window).on("menuOpen",function(){thiis.closest(".overlay").length?(thiis.trigger("play.owl.autoplay"),thiis.data("stopped","fal
1se")):(thiis.trigger("stop.owl.autoplay"),thiis.data("stopped","true"))}),$(window).on("menuClose",function(){thiis.closest(".overlay").length?(thiis.trigger("stop.owl.autoplay"),thiis.data("stopped","true")):(thiis.trigger("play.owl.autoplay"),thiis.data("stopped","false"))})),setIndexActive(event,!0);var nested_a=$("a[data-lbox]:not(.lb-disabled):not([data-lbox-init]):not([data-album])").filter(function(index){return!$(this).closest(".nested-carousel").length}),$_galleries=$(".isotope-container:not([data-lbox-init]), .owl-carousel:not([data-lbox-init]), .custom-grid-container:not([data-lbox-init]), .index-scroll-wrapper:not([data-lbox-init]), .justified-gallery:not([data-lbox-init]), .uncode-single-media-wrapper:not([data-lbox-init]), .woocommerce-product-gallery:not([data-lbox-init]), .icon-box:not([data-lbox-init]), .grid-container:not([data-lbox-init])",thiis).has(nested_a),$galleries=$_galleries.filter(function(index){return!$(this).closest(".owl-carousel").length||$(this).is(".owl-carousel")});typeof UNCODE.lightgallery!="undefined"&&SiteParameters.lbox_enhanced&&UNCODE.lightgallery($galleries),typeof ScrollTrigger!="undefined"&&ScrollTrigger!==null&&$(document).trigger("uncode-scrolltrigger-refresh"),thiis.closest(".overlay").length&&thiis.data("autoplay")&&(thiis.trigger("stop.owl.autoplay"),thiis.data("stopped","true")),thiis.closest(".un-submenu").length&&thiis.data("autoplay")&&(thiis.trigger("stop.owl.autoplay"),thiis.data("stopped","fal
1se"),$(document).on("un-menu-show",function(){thiis.trigger("play.owl.autoplay"),thiis.data("stopped","false")}).on("un-menu-hide",function(){thiis.trigger("stop.owl.autoplay"),thiis.data("stopped","true")}))}),$elSelector.on("resized.owl.carousel",function(event){$(".owl-dot",event.currentTarget).each(function(key,val){$(val).attr("aria-label",SiteParameters.uncode_slide_label+" "+(key+1))})}),$elSelector.on("resized.owl.carousel",function(event){var thiis=$(event.currentTarget);thiis.hasClass("owl-height-equal")&&setItemsHeight(thiis);if(UNCODE.wwidth>UNCODE.mediaQuery||UNCODE.wwidth<=UNCODE.mediaQuery&&newWidth!==UNCODE.wwidth)newWidth=UNCODE.wwidth,setItemsRelHeight($elSelector);setIndexActive(event),SiteParameters.dynamic_srcset_active==="1"&&UNCODE.refresh_dynamic_srcset_size(thiis),$.fn.isotope&&$(window).on("load",function(){$(event.currentTarget).closest(".isotope-container").data("isotope")&&$(event.currentTarget).closest(".isotope-container").isotope("layout")}),typeof window.lenis!="undefined"&&window.lenis!==null&&setTimeout(function(){window.lenis.resize()},1e3),typeof ScrollTrigger!="undefined"&&ScrollTrigger!==null&&$(document).trigger("uncode-scrolltrigger-refresh")}),$elSelector.on("refreshed.owl.carousel",function(event){setIndexActive(event)});var setFluidResize;window.addEventListener("resize",manageFluidCarouseHeight),$elSelector.on("change.owl.carousel",function(event){UNCODE.isMobile||UNCODE.owlStopVideo(event.currentTarget)}),$elSelector.on("changed.owl.carousel",function(event){var $row=$elSelector.parents(".row")[0];typeof $row!="undefined"&&$row.dispatchEvent(new CustomEvent("owl-carousel-changed")),setIndexActive(event)});var checkDrag=function(e){$elSelector.addClass("owl-dragging")};$elSelector.on("drag.owl.carousel",function(event){document.addEventListener("mousemove",checkDrag)}),$elSelector.on("dragged.owl.carousel",function(event){$elSelector.removeClass("owl-dragging"),document.removeEventListener("mousemove",checkDrag)}),$elSelector.on("translate.owl.carousel",function(event){UNCODE.isMobile&&$(event.currentTarget).addClass("owl-translating")}),$elSelector.on("translated.owl.carousel",function(event){var thiis=$(event.currentTarget),currentItem=thiis.find("> .owl-stage-outer > .owl-stage > .owl-item")[event.item.index],currentIndex=$(currentItem).attr("data-index"),stagePadding=thiis.data("stagepadding");stagePadding=stagePadding==undefined||stagePadding==0?!1:!0,UNCODE.isMobile||UNCODE.owlPlayVideo(thiis),requestTimeout(function(){var lastDelayElems=animate_elems($(".owl-item.index-active",thiis)),lastDelayThumb=animate_thumb($(".owl-item"+(stagePadding?"":".active")+" .t-inside",thiis),event);if(thiis.closest(".uncode-slider").length&&thiis.data("autoplay")){lastDelayElems==undefined&&(lastDelayElems=0),lastDelayThumb==undefined&&(lastDelayThumb=0);var maxDelay=Math.max(lastDelayElems,lastDelayThumb);thiis.trigger("stop.owl.autoplay"),requestTimeout(function(){!thiis.hasClass("owl-mouseenter")&&thiis.data("stopped")!="true"&&thiis.trigger("play.owl.autoplay")},maxDelay)}},200),$.each($(".owl-item:not(.active) .start_animation",$(event.target)),function(index,val){$(val).closest(".uncode-slider").length&&$(val).removeClass("start_animation")}),$.each($(".owl-item:not(.active) .already-animated",$(event.target)),function(index,val){$(val).closest(".uncode-slider").length&&$(val).removeClass("already-animated")}),$.each($('.owl-item:not(.active) [data-animated="yes"]',$(event.target)),function(index,val){$(val).closest(".uncode-slider").length&&$(val).removeAttr("data-animated")}),$.each($(".owl-item:not(.active)",thiis),function(index,val){$(val).attr("data-index")!=currentIndex&&($(".start_animation:not(.t-inside)",val).removeClass("start_animation"),$(".already-animated:not(.t-inside)",val).removeClass("already-animated")),$(val).attr("data-index")!=currentIndex&&$('[data-animated="yes"]:not(.t-inside)',val).removeClass("start_animation"),$(val).attr("data-index")==currentIndex&&$(".animate_when_almost_visible:not(.t-inside), .animate_inner_when_almost_visible:not(.t-inside)",val).addClass("start_animation")}),UNCODE.isMobile&&thiis.removeClass("owl-translating"),setIndexActive(event)}),UNCODE.wwidth<UNCODE.mediaQuery&&$(this).data("stagepadding")>25&&(values.stagepadding=25),$elSelector.not(".showControls").owlCarousel({items:values.items,animateIn:values["fade"]==1?"fadeIn":null,animateOut:values["fade"]==1?"fadeOut":null,nav:values.nav,dots:values.dots,loop:values.loop,stagePadding:values.stagepadding,margin:0,video:!0,autoWidth:!1,autoplay:!1,autoplayTimeout:values.timeout,autoplaySpeed:values.navspeed,autoplayHoverPause:$(this).closest(".uncode-slider:not(.uncode-wrapper)").length||$(this).closest(".carousel-no-hover").length?!1:!0,autoHeight:$(this).hasClass("owl-height-equal")?!1:values.autoheight,itemSelector:SiteParameters.uncode_carousel_itemSelector,rtl:$("body").hasClass("rtl")?!0:!1,fluidSpeed:!0,navSpeed:values.navspeed,dotsSpeed:values.navspeed/values.items,navElement:['button type="button" aria-label="'+SiteParameters.uncode_prev_label+'"','button type="button" aria-label="'+SiteParameters.uncode_next_label+'"'],navClass:["owl-prev"+values.navskin,"owl-next"+values.navskin],navText:['<div class="owl-nav-container btn-default btn-hover-nobg" tabindex="0"><i class="fa fa-fw fa-angle-left"></i></div>','<div class="owl-nav-container btn-default btn-hover-nobg" aria-label="'+SiteParameters.uncode_next_label+'" tabindex="0"><i class="fa fa-fw fa-angle-right"></i></div>'],navContainer:values.nav&&!SiteParameters.is_frontend_editor?$elSelector:!1,responsiveClass:!0,responsiveBaseElement:".box-container",responsive:{0:{items:values.sm,nav:values.navmobile,dots:values.dotsmobile,dotsSpeed:values.navspeed/values.sm},480:{items:values.sm,nav:values.navmobile,dots:values.dotsmobile,dotsSpeed:values.navspeed/values.sm},570:{items:values.md,nav:values.navmobile,dots:values.dotsmobile,dotsSpeed:values.navspeed/values.md},960:{items:values.lg,dotsSpeed:values.navspeed/values.lg}}});var transDuration=parseFloat(values.navspeed)*.3,transDuration2=parseFloat(values.navspeed)*.8;$(".owl-item .tmb",$elSelector).css({"-webkit-transition-delay":transDuration+"ms","-moz-transition-delay":transDuration+"ms","-o-transition-delay":transDuration+"ms","transition-delay":transDuration+"ms","-webkit-transition-duration":transDuration2+"ms","-moz-transition-duration":transDuration2+"ms","-o-transition-duration":transDuration2+"ms","transition-duration":transDuration2+"ms"}),requestTimeout(function(){for(var i=$owlInsideEqual.length-1;i>=0;i--)UNCODE.setRowHeight($owlInsideEqual[i])},300),$(window).on("load",function(){var $elCarousel=$elSelector.data("owl.carousel");if(typeof $elCarousel!="undefined"){$elCarousel.trigger("refreshed");for(var i=$owlInsideEqual.length-1;i>=0;i--)UNCODE.setRowHeight($owlInsideEqual[i])}}),$(document.body).on("added-owl-item",function(e,carousel_id,$new_slide,randId){$("#"+carousel_id).data("added-id")!=randId&&($("#"+carousel_id).data("added-id",randId).trigger("add.owl.carousel",$new_slide).trigger("refresh.owl.carousel"),$("#"+carousel_id).find(".owl-item").each(function(){var $item=$(this),index=$item.index()+1;$item.attr("data-index",index)}))}),$("body").hasClass("compose-mode")&&typeof window.parent.vc!="undefined"&&window.parent.vc.events.on("removed-owl-item",function(carousel_id,item_index,randId){$("#"+carousel_id).data("added-id")!=randId&&($("#"+carousel_id).data("added-id",randId).trigger("remove.owl.carousel",[item_index-1]).trigger("refresh.owl.carousel"),$("#"+carousel_id).find(".owl-item").each(function(){var $item=$(this),index=$item.index()+1;$item.attr("data-index",index)}))})})})},UNCODE.owlPlayVideo=function(carousel){var player,iframe;$(".owl-item.active .uncode-video-container",carousel).each(function(index,val){var content=$(val).html();if(content==""){var getCloned=$('.owl-item:not(.active) .uncode-video-container[data-id="'+$(this).attr("data-id")+'"]').children().first().clone();$(val).append(getCloned)}if($(this).attr("data-provider")=="vimeo")iframe=$(this).find("iframe"),player=new Vimeo.Player(iframe[0]),player.play();else if($(this).attr("data-provider")=="youtube")youtubePlayers[$(this).attr("data-id")]!=undefined&&youtubePlayers[$(this).attr("data-id")].playVideo();else{var player=$(this).find("video");player.length&&($(this).find("video")[0].volume=0,$(this).find("video")[0].play(),$(val).css("opacity",1))}})},UNCODE.owlStopVideo=function(carousel){$(".owl-item .uncode-video-container",carousel).each(function(index,val){var player,iframe;if($(this).attr("data-provider")=="vimeo")iframe=$(this).find("iframe"),player=new Vimeo.Player(iframe[0]),player.pause();else if($(this).attr("data-provider")=="youtube")youtubePlayers[$(this).attr("data-id")]!=undefined&&youtubePlayers[$(this).attr("data-id")].pauseVideo();else{var player=$(this).find("video");player.length&&($(this).find("video")[0].volume=0,$(this).find("video")[0].play())}})},UNCODE.animations=function(){function animate_css_grids_on_load(){$(".cssgrid-system").each(function(){var grid=$(this),sequential=grid.hasClass("cssgrid-animate-sequential")?!0:!1;
1UNCODE.animate_css_grids(grid,grid.find(".tmb-grid"),0,sequential,!1)})}var runWaypoints_TO,runWaypoints_carousel_TO,runWaypoints_delay=0,highlightComplexFunc=function($wrap,ev){var $lines=$(".heading-line-wrap",$wrap),not_animate=!1;$wrap.data("animate")===!0&&(not_animate=!0);var $rotatingTxt=$(".uncode-rotating-text-start",$wrap);if($rotatingTxt.length&&$rotatingTxt.attr("data-animated")!=="true")return;$lines.each(function(_key,_value){var $line=$(_value),$inners=$(".split-word-inner",$line),$highlights=$(".heading-text-highlight-inner",$line),highlitInnerFunc=function(ev){var delay=0;$highlights.each(function(h_key,high){var $highlight=$(high),$split=$highlight.closest(".split-word:not(.uncode-rotating-span)"),$nextSplit=$split.nextUntil(),$next=$(".heading-text-highlight-inner",$nextSplit),countCh=$split.text().length;$highlight.css({"-webkit-transition-duration":30*countCh+"ms","-moz-transition-duration":30*countCh+"ms","-o-transition-duration":30*countCh+"ms","transition-duration":30*countCh+"ms"}),delay+=30*countCh,$next.css({"-webkit-transition-delay":delay+"ms","-moz-transition-delay":delay+"ms","-o-transition-delay":delay+"ms","transition-delay":delay+"ms"})}),$highlights.removeAttr("data-animated"),_key+1===$lines.length&&$wrap.data("animate",!0)};$('.heading-text-highlight-inner[data-animated="yes"]',$line).length&&(not_animate?($highlights.each(function(h_key,high){var $highlight=$(high);$highlight.css({"-webkit-transition-duration":"0ms","-moz-transition-duration":"0ms","-o-transition-duration":"0ms","transition-duration":"0ms"})}),$highlights.removeAttr("data-animated")):typeof ev!="undefined"&&ev.type==="defer-highlights"?highlitInnerFunc():$inners.last().one("webkitAnimationEnd oanimationend mozAnimationEnd msAnimationEnd animationEnd",highlitInnerFunc))})};$.each($(".header-content-inner"),function(index,val){var element=$(val),transition="";element.hasClass("top-t-bottom")&&(transition="top-t-bottom"),element.hasClass("bottom-t-top")&&(transition="bottom-t-top"),element.hasClass("left-t-right")&&(transition="left-t-right"),element.hasClass("right-t-left")&&(transition="right-t-left"),element.hasClass("zoom-in")&&(transition="zoom-in"),element.hasClass("zoom-out")&&(transition="zoom-out"),element.hasClass("alpha-anim")&&(transition="alpha-anim"),element.hasClass("slight-anim")&&(transition="slight-anim");if(transition!=""){$(val).removeClass(transition);var container=element,containerDelay=container.attr("data-delay"),containerSpeed=container.attr("data-speed"),items=$(".header-title > *, .post-info",container);$.each(items,function(index,val){var element=$(val),delayAttr=containerDelay!=undefined?containerDelay:400;!element.hasClass("animate_when_almost_visible")&&!element.hasClass("translate_when_almost_visible")&&(delayAttr=Number(delayAttr)+400*index,containerSpeed!=undefined&&element.attr("data-speed",containerSpeed),element.addClass(transition+" animate_when_almost_visible").attr("data-delay",delayAttr))}),container.css("opacity",1)}});var delayAdd=0;window.waypoint_animation=function(ev){$.each($(".translate_when_almost_visible:not(.start_animation), .animate_when_almost_visible:not(.start_animation):not(.t-inside):not(.drop-image-separator), .tmb-linear .animate_when_almost_visible:not(.start_animation), .index-scroll .animate_when_almost_visible, .tmb-media .animate_when_almost_visible:not(.start_animation), .animate_when_almost_visible.has-rotating-text, .custom-grid-container .animate_when_almost_visible:not(.start_animation)").filter(function(){var $el=$(this);return $el.is("[data-delay-seq]")?$el.is("[data-delay]"):!0}),function(index,val){if($(val).hasClass("el-text-split")||($(val).closest(".unscroll-horizontal").length||$(val).closest(".index-scroll").length||$(val).closest(".tab-pane:not(.active)").length||$(val).closest(".panel:not(.active-group)").length||$(val).closest(".un-submenu").length||$(val).closest("#uncode-mobile-menu-block").length||$(val).closest(".has-unblock").length)&&!SiteParameters.is_frontend_editor)return!0;if(UNCODE.isUnmodalOpen&&!val.closest("#unmodal-content"))return;var run=!0,$carousel=$(val).closest(".owl-carousel"),marquee=$(val).closest(".tmb-linear").length;$carousel.length&&(run=!1),$(val).closest(".megamenu-block-wrapper").length&&(run=!1),run&&new Waypoint({context:UNCODE.isUnmodalOpen?document.getElementById("unmodal-content"):window,element:val,handler:function(){var element=$(this.element),index=element.index(),delayAttr=element.attr("data-delay");delayAttr==undefined&&(delayAttr=0),requestTimeout(function(){element.addClass("start_animation")},delayAttr),UNCODE.isUnmodalOpen||this.destroy()},offset:UNCODE.isFullPage?"100%":"90%"})}),$.each($(".animate_inner_when_almost_visible"),function(index,val){if(UNCODE.isUnmodalOpen&&!val.closest("#unmodal-content"))return;var run=!0,$carousel=$(val).closest(".owl-carousel");$carousel.length&&(run=!1),run&&new Waypoint({context:UNCODE.isUnmodalOpen?document.getElementById("unmodal-content"):window,element:val,handler:function(){var $element=$(this.element),$childs=$(".animate_when_parent_almost_visible",$element);$childs.each(function(key,el){var $child=$(el),delaySpeed=$child.attr("data-speed"),delayAttr=$child.attr("data-delay"),intervalAttr=$child.attr("data-interval");delayAttr==undefined&&(delayAttr=50*key),requestTimeout(function(){$child.addClass("start_animation"),$child.hasClass("anim-line-checker")&&$child.on("webkitAnimationEnd oanimationend mozAnimationEnd msAnimationEnd animationEnd",function(e){var $line=$child.closest(".heading-line-wrap")});var $wrapText=$child.closest(".animate_inner_when_almost_visible");highlightComplexFunc($wrapText,ev),$child.hasClass("anim-tot-checker")&&$child.on("webkitAnimationEnd oanimationend mozAnimationEnd msAnimationEnd animationEnd",function(e){$child.hasClass("anim-tot-checker")&&($wrapText.addClass("already-animated"),$element.trigger("already-animated"))})},delayAttr)}),$element.addClass("start_animation"),UNCODE.isUnmodalOpen||this.destroy()},offset:UNCODE.isFullPage?"100%":"90%"})})},window.waypoint_carousel_animation=function(ev){$.each($(".owl-carousel").find(".animate_when_almost_visible:not(.start_animation):not(.t-inside):not(.drop-image-separator), .tmb-media .animate_when_almost_visible:not(.start_animation)"),function(index,val){if($(val).hasClass("el-text-split"))return!0;
1if(UNCODE.isUnmodalOpen&&!val.closest("#unmodal-content"))return;var run=!0,$carousel=$(val).closest(".owl-carousel"),$first_item=$(val).closest('.owl-item[data-index="1"]'),$all_first=$('.owl-item[data-index="1"]',$carousel);(!$first_item.length||$first_item.attr("data-already-reached")==="true")&&$carousel.attr("data-front-edited")!=="true"&&(run=!1),run&&new Waypoint({context:UNCODE.isUnmodalOpen?document.getElementById("unmodal-content"):window,element:val,handler:function(){var element=$(this.element),index=element.index(),delayAttr=element.attr("data-delay");delayAttr==undefined&&(delayAttr=0),requestTimeout(function(){$first_item.length&&$first_item.attr("data-already-reached")!=="true"&&$all_first.attr("data-already-reached","true"),element.addClass("start_animation")},delayAttr),UNCODE.isUnmodalOpen||this.destroy()},offset:UNCODE.isFullPage?"100%":"90%"})}),$.each($(".owl-carousel").find(".animate_inner_when_almost_visible"),function(index,val){if(UNCODE.isUnmodalOpen&&!val.closest("#unmodal-content"))return;var run=!0,$carousel=$(val).closest(".owl-carousel"),$first_item=$(val).closest('.owl-item[data-index="1"]'),$all_first=$('.owl-item[data-index="1"]',$carousel);(!$first_item.length||$first_item.attr("data-already-reached")==="true")&&$carousel.attr("data-front-edited")!=="true"&&(run=!1),run&&new Waypoint({context:UNCODE.isUnmodalOpen?document.getElementById("unmodal-content"):window,element:val,handler:function(){var $element=$(this.element),$childs=$(".animate_when_parent_almost_visible",$element);$childs.each(function(key,el){var $child=$(el),delaySpeed=$child.attr("data-speed"),delayAttr=$child.attr("data-delay"),intervalAttr=$child.attr("data-interval");delayAttr==undefined&&(delayAttr=50*key),requestTimeout(function(){$first_item.length&&$first_item.attr("data-already-reached")!=="true"&&$all_first.attr("data-already-reached","true"),$child.addClass("start_animation"),$child.hasClass("anim-line-checker")&&$child.on("webkitAnimationEnd oanimationend mozAnimationEnd msAnimationEnd animationEnd",function(e){var $line=$child.closest(".heading-line-wrap")});var $wrapText=$child.closest(".animate_inner_when_almost_visible");highlightComplexFunc($wrapText,ev),$child.hasClass("anim-tot-checker")&&$child.on("webkitAnimationEnd oanimationend mozAnimationEnd msAnimationEnd animationEnd",function(e){$child.hasClass("anim-tot-checker")&&$wrapText.addClass("already-animated")})},delayAttr)}),$element.addClass("start_animation"),UNCODE.isUnmodalOpen||this.destroy()},offset:UNCODE.isFullPage?"100%":"90%"})})};var runWaypoints=function(ev){typeof runWaypoints_TO!="undefined"&&runWaypoints_TO!==""&&(runWaypoints_delay=400),clearRequestTimeout(runWaypoints_TO),runWaypoints_TO=requestTimeout(function(){window.waypoint_animation(ev)},runWaypoints_delay),clearRequestTimeout(runWaypoints_carousel_TO),runWaypoints_carousel_TO=requestTimeout(function(){window.waypoint_carousel_animation(ev)},400)};runWaypoints(),animate_css_grids_on_load(),$(document.body).on("uncode_waypoints defer-highlights",function(ev){runWaypoints(ev)}),$("body").hasClass("compose-mode")&&typeof window.parent.vc!="undefined"&&(window.parent.vc.events.on("shortcodeView:updated",runWaypoints),window.parent.vc.events.on("shortcodeView:ready",runWaypoints))},UNCODE.animate_css_grids=function(container,elements,startIndex,sequential,filtering){var $allItems=elements.length-startIndex,showed=0,index=0,use_index=!1;filtering&&(sequential&&(use_index=!0),sequential=!1),$.each(elements,function(index,val){var $this=$(val),elInner=$("> .t-inside",val);if(UNCODE.isUnmodalOpen&&!val.closest("#unmodal-content")||$(val).closest(".un-submenu").length||$(val).closest("uncode-mobile-menu-block").length)return;val[0]&&(val=val[0]),elInner.hasClass("animate_when_almost_visible")&&!elInner.hasClass("force-anim")&&new Waypoint({context:UNCODE.isUnmodalOpen?document.getElementById("unmodal-content"):window,element:val,handler:function(){var element=$("> .t-inside",this.element),parent=$(this.element),_index=use_index?index:0,delay=sequential?startIndex!==0?index-$allItems:index:_index,delayAttr=parseInt(element.attr("data-delay"));isNaN(delayAttr)&&(delayAttr=100);
1if(sequential||use_index)delay-=showed;var objTimeout=requestTimeout(function(){element.removeClass("zoom-reverse").addClass("start_animation"),showed=index},delay*delayAttr);parent.data("objTimeout",objTimeout),UNCODE.isUnmodalOpen||this.destroy()},offset:UNCODE.isFullPage?"100%":"90%"}),index++})},UNCODE.tapHover=function(){var isTouch="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;if(isTouch){var $el=$(".tmb:not(.tmb-no-double-tap)").find(".t-entry-visual-cont > a, .drop-hover-link"),elClass="hover";$(window).on("click",function(){$el.removeClass(elClass)}),$el.on("click",function(e){e.stopPropagation();var link=$(this);if(!link.hasClass(elClass))return e.preventDefault(),link.addClass("hover"),$el.not(this).removeClass(elClass),!1})}},UNCODE.onePage=function(isMobile){function init_onepage(){isSectionscroller&&!isMobile&&!$("body").hasClass("uncode-scroll-no-dots")&&!UNCODE.isFullPageSnap&&$("<ul class='onepage-pagination'></ul>").prependTo("body"),last=$(".onepage-pagination li").last().find("a").data("index"),$.each($('div[data-parent="true"]'),function(index,val){$(this).attr("data-section",index);if(isMobile)return;if(UNCODE.isUnmodalOpen&&!val.closest("#unmodal-content"))return;var sectionDown=new Waypoint({context:UNCODE.isUnmodalOpen?document.getElementById("unmodal-content"):window,element:val,handler:function(direction){direction=="down"&&changeMenuActive(this.element,index)},offset:function(){return 5+getOffset()}}),sectionUp=new Waypoint({context:UNCODE.isUnmodalOpen?document.getElementById("unmodal-content"):window,element:val,handler:function(direction){direction=="up"&&changeMenuActive(this.element,index)},offset:function(){return-5-getOffset()}});if(isSectionscroller){var label;$(this).attr("data-label")!=undefined?label=$(this).attr("data-label"):label="";var getName=$(this).attr("data-name");getName==undefined&&(getName=index),label!=""&&(isOnePage=!0,label='<span class="cd-label style-accent-bg border-accent-color">'+label+"</span>",$("ul.onepage-pagination").append("<li><a class='one-dot-link' aria-label='"+label+"' data-index='"+index+"' href='#"+getName+"'><span class='cd-dot-cont'><span class='cd-dot'></span></span>"+label+"</a></li>"))}}),isSectionscroller&&$.each($("ul.onepage-pagination li"),function(index,val){var $this=$(val),$a=("a",$this);$a.on("click",function(evt){if($(".is-selected",$this).length||UNCODE.scrolling)return!1;$("body").hasClass("uncode-scroll-no-history")&&evt.preventDefault(),Waypoint.refreshAll();var el=$("a",evt.currentTarget);current=lastScrolled=parseInt(el.attr("data-index")),lastScrolled+=1,scrollBody(current)})});var goToSection=parseInt(window.location.hash.replace(/[^\d.]/g,""));isNaN(goToSection)&&window.location.hash!=undefined&&window.location.hash!=""&&(goToSection=String(window.location.hash).replace(/^#/,""),goToSection=Number($('[data-name="'+goToSection+'"]').attr("data-section"))),typeof goToSection=="number"&&!isNaN(goToSection)&&!$("body").hasClass("uncode-no-hash-scroll")&&(current=lastScrolled=goToSection,$(window).on("load",function(){$(".owl-carousel").length?requestTimeout(function(){scrollBody(goToSection)},400):scrollBody(goToSection)}))}function changeMenuActive(section,index){current=lastScrolled=parseInt($(section).attr("data-section"));if(isOnePage){var newSection=$('.onepage-pagination li a[data-index="'+index+'"]');newSection.length&&($("ul.onepage-pagination li a").removeClass("is-selected"),newSection.addClass("is-selected"));var getName=$('[data-section="'+index+'"]').attr("data-name");getName!=undefined&&getName!==""&&$.each($(".menu-container .menu-item > a, .widget_nav_menu .menu-smart .menu-item > a"),function(i,val){var get_href=$(val).attr("href");get_href!=undefined&&get_href.substring(get_href.indexOf("#")+1)==getName&&($(val).closest(".menu-smart").find(".active").removeClass("active"),$(val).parent().addClass("active"))})}}var current=0,last=0,lastScrollTop=0,forceScroll=!1,lastScrolled=0,isSectionscroller=$(".main-onepage").length?!0:!1,isOnePage=!1,getOffset=function(){var calculateOffset=$(".menu-sticky .menu-container:not(.menu-hide):not(.vmenu-container)").length&&$(window).width()>UNCODE.mediaQuery?$(".menu-sticky .menu-container:not(.menu-hide):not(.vmenu-container").outerHeight():0;return calculateOffset};isMobile=SiteParameters.uncode_force_onepage_dots?!1:isMobile,isOnePage&&$(window).on("scroll",function(){var bodyTop=document.documentElement.scrollTop||document.body.scrollTop;if(bodyTop==0){$("ul.onepage-pagination li a").removeClass("is-selected"),$('.onepage-pagination li a[data-index="0"]').addClass("is-selected");var getName=$("[data-section=0]").attr("data-name");getName!=undefined&&getName!==""&&$.each($(".menu-container .menu-item > a"),function(i,val){var get_href=$(val).attr("href");get_href!=undefined&&get_href.substring(get_href.indexOf("#")+1)==getName&&($(val).closest("ul").find(".active").removeClass("active"),$(val).parent().addClass("active"))})}else if(window.innerHeight+bodyTop>=$(".box-container").height()){var lastSection=$('.onepage-pagination li a[data-index="'+last+'"]');lastSection.length&&($("ul.onepage-pagination li a").removeClass("is-selected"),lastSection.addClass("is-selected"))}});var scrollBody=function(index){$("ul.onepage-pagination li a").removeClass("is-selected"),$('.onepage-pagination li a[data-index="'+index+'"]').addClass("is-selected");var getSection=$("[data-section="+index+"]"),scrollTo;if(getSection==undefined)return;var body=$("html, body"),bodyTop=document.documentElement.scrollTop||document.body.scrollTop,delta=bodyTop-($('[data-section="'+index+'"]').length?$('[data-section="'+index+'"]').offset().top:0),getOffset=UNCODE.get_scroll_offset(index);if(typeof getSection.offset()=="undefined")return;scrollTo=getSection.offset().top;
1if(!($(".menu-desktop-transparent").length&&UNCODE.wwidth>UNCODE.mediaQuery)){var shrink=typeof $(".navbar-brand").data("padding-shrink")!="undefined"?$(".navbar-brand").data("padding-shrink")*2:36;$(".menu-sticky .menu-container:not(.menu-hide)").length&&$(".menu-shrink").length&&(scrollTo+=UNCODE.menuHeight-($(".navbar-brand").data("minheight")+shrink)),$(".menu-sticky .menu-container:not(.menu-hide)").length&&!$(".menu-shrink").length&&$(".body").hasClass("vmenu")?index===0?scrollTo=0:scrollTo-=$(".menu-sticky .menu-container").outerHeight():scrollTo-=getOffset}var scrollSpeed=SiteParameters.constant_scroll=="on"?Math.abs(delta)/parseFloat(SiteParameters.scroll_speed):SiteParameters.scroll_speed;scrollSpeed<1e3&&SiteParameters.constant_scroll=="on"&&(scrollSpeed=1e3),index!=0&&(UNCODE.scrolling=!0),scrollSpeed==0?(body.scrollTop(delta>0?scrollTo-.1:scrollTo),UNCODE.scrolling=!1):body.on("scroll wheel DOMMouseScroll mousewheel touchmove",function(){$(this).stop()}).animate({scrollTop:delta>0?scrollTo-.1:scrollTo},scrollSpeed,"easeInOutCubic",function(){$(this).off("scroll wheel DOMMouseScroll mousewheel touchmove"),UNCODE.scrolling=!1;if(scrollTo!=UNCODE.get_scroll_offset(index)&&!($(".menu-desktop-transparent").length&&UNCODE.wwidth>UNCODE.mediaQuery)&&!($(".menu-mobile-transparent").length&&UNCODE.wwidth<=UNCODE.mediaQueryMobile)||$(".menu-hided").length)scrollTo=getSection.offset().top,getOffset=UNCODE.get_scroll_offset(index),scrollTo-=getOffset,body.on("scroll wheel DOMMouseScroll mousewheel touchmove",function(){$(this).stop()}).animate({scrollTop:delta>0?scrollTo-.1:scrollTo},scrollSpeed,"easeInOutCubic",function(){$(this).off("scroll wheel DOMMouseScroll mousewheel touchmove"),UNCODE.scrolling=!1})})};init_onepage()},UNCODE.stickyElements=function(){var isMobile_wide=UNCODE.isMobile&&UNCODE.wwidth<1024;if(!isMobile_wide){var $pageHeader=$("#page-header"),$headerRow=$(".vc_row",$pageHeader),$headerSection=$headerRow.closest("section[data-parent]"),startSticky=!1;$headerRow.hasClass("sticky-element")&&!$headerSection.length&&($headerRow.removeClass("sticky-element"),$pageHeader.addClass("sticky-element"),startSticky=!0);var calculateOffset=function(el){var getRowPadding=$(el).hasClass("with-bg")?0:$(el).closest(".row-parent").css("padding-top"),sideOffset=getRowPadding!=undefined&&getRowPadding!=0?parseInt(getRowPadding.replace("px","")):0,shrink=typeof $(".navbar-brand").data("padding-shrink")!="undefined"?$(".navbar-brand").data("padding-shrink")*2:0,elTop=window.pageYOffset+el.getBoundingClientRect().top;return sideOffset+=UNCODE.bodyBorder,UNCODE.adminBarHeight>0&&(sideOffset+=UNCODE.adminBarHeight),$(".menu-sticky .menu-container:not(.menu-hide)").length&&elTop>sideOffset&&($(".menu-shrink").length?sideOffset+=parseFloat($(".navbar-brand").data("minheight"))+shrink:sideOffset+=$("body.hmenu-center").length?$("#masthead .menu-container").outerHeight():parseInt(UNCODE.menuMobileHeight)),sideOffset},initStickyElement=function($els){if($("body").hasClass("vc-safe-mode"))return!0;typeof $els=="undefined"&&($els=$(".sticky-element")),$.each($els,function(index,element){if($(element).closest(".tab-pane").length){var $paneParent=$(element).closest(".tab-pane");if(!$paneParent.hasClass("active"))return!0}$(element).stick_in_parent({sticky_class:"is_stucked",offset_top:calculateOffset(element),bottoming:!0,inner_scrolling:SiteParameters.sticky_elements==="on"})})},oldW=UNCODE.wwidth,oldH=UNCODE.wHeight;requestTimeout(function(){$(".sticky-element").length&&($(window).width()>UNCODE.mediaQuery&&(initStickyElement(),startSticky===!0&&$("#page-header").trigger("sticky_kit:recalc")),$(window).on("resize lateral_resize",function(event){if(oldW!==UNCODE.wwidth||oldH!==UNCODE.wHeight)$(".sticky-element").trigger("sticky_kit:detach"),$(window).width()>UNCODE.mediaQuery&&initStickyElement(),oldW=UNCODE.wwidth,oldH=UNCODE.wHeight}))},1e3),$(".sticky-element").length&&$(window).on("uncode_wc_variation_gallery_loaded",function(event){requestTimeout(function(){$(document.body).trigger("sticky_kit:recalc")},100)});var $panels=$(".panel-collapse");$panels.length&&$panels.each(function(){var $panel=$(this);$panel.on("shown.bs.collapse hidden.bs.collapse",function(){$(document.body).trigger("sticky_kit:recalc")})}),$(".nav-tabs a").on("shown.bs.tab",function(e){var $tabs=$(e.target).closest(".tab-container"),$panel=$(".tab-pane.active",$tabs),$els=$(e.target).nextAll(".sticky-element");$els.trigger("sticky_kit:detach"),initStickyElement($els)}),$(window).on("vc-safe-mode-on",function(){$(".sticky-element").trigger("sticky_kit:detach")}),$(window).on("vc-safe-mode-off",function(){initStickyElement()})}},UNCODE.twentytwenty=function(){if(!$(".twentytwenty-container").length)return;(function(fn){typeof define=="function"&&define.amd?define([],fn):typeof module!="undefined"&&module!==null&&module.exports?module.exports=fn:fn()})(function(){function createEvent(type){return new CustomEvent(type,eventOptions)}function getEvents(node){return node[eventsSymbol]||(node[eventsSymbol]={})}function on(node,types,fn,data,selector){function handler(e){fn(e,data)}types=types.split(rspaces);var events=getEvents(node),i=types.length,handlers,type;while(i--)type=types[i],handlers=events[type]||(events[type]=[]),handlers.push([fn,handler]),node.addEventListener(type,handler)}function off(node,types,fn,selector){types=types.split(rspaces);var events=getEvents(node),i=types.length,type,handlers,k;if(!events)return;while(i--){type=types[i],handlers=events[type];
1if(!handlers)continue;k=handlers.length;while(k--)handlers[k][0]===fn&&(node.removeEventListener(type,handlers[k][1]),handlers.splice(k,1))}}function trigger(node,type,properties){var event=createEvent(type);properties&&assign(event,properties),node.dispatchEvent(event)}function Timer(fn){function trigger(time){active?(callback(),requestFrame(trigger),running=!0,active=!1):running=!1}var callback=fn,active=!1,running=!1;this.kick=function(fn){active=!0,running||trigger()},this.end=function(fn){var cb=callback;if(!fn)return;running?(callback=active?function(){cb(),fn()}:fn,active=!0):fn()}}function noop(){}function preventDefault(e){e.preventDefault()}function isIgnoreTag(e){return!!ignoreTags[e.target.tagName.toLowerCase()]}function isPrimaryButton(e){return e.which===1&&!e.ctrlKey&&!e.altKey}function identifiedTouch(touchList,id){var i,l;if(touchList.identifiedTouch)return touchList.identifiedTouch(id);i=-1,l=touchList.length;while(++i<l)if(touchList[i].identifier===id)return touchList[i]}function changedTouch(e,data){var touch=identifiedTouch(e.changedTouches,data.identifier);if(!touch)return;if(touch.pageX===data.pageX&&touch.pageY===data.pageY)return;return touch}function mousedown(e){if(!isPrimaryButton(e))return;if(isIgnoreTag(e))return;on(document,mouseevents.move,mousemove,e),on(document,mouseevents.cancel,mouseend,e)}function mousemove(e,data){checkThreshold(e,data,e,removeMouse)}function mouseend(e,data){removeMouse()}function removeMouse(){off(document,mouseevents.move,mousemove),off(document,mouseevents.cancel,mouseend)}function touchstart(e){if(ignoreTags[e.target.tagName.toLowerCase()])return;var touch=e.changedTouches[0],data={target:touch.target,pageX:touch.pageX,pageY:touch.pageY,identifier:touch.identifier,touchmove:function(e,data){touchmove(e,data)},touchend:function(e,data){touchend(e,data)}};on(document,touchevents.move,data.touchmove,data),on(document,touchevents.cancel,data.touchend,data)}function touchmove(e,data){var touch=changedTouch(e,data);if(!touch)return;checkThreshold(e,data,touch,removeTouch)}function touchend(e,data){var touch=identifiedTouch(e.changedTouches,data.identifier);if(!touch)return;removeTouch(data)}function removeTouch(data){off(document,touchevents.move,data.touchmove),off(document,touchevents.cancel,data.touchend)}function checkThreshold(e,data,touch,fn){var distX=touch.pageX-data.pageX,distY=touch.pageY-data.pageY;if(distX*distX+distY*distY<threshold*threshold)return;triggerStart(e,data,touch,distX,distY,fn)}function triggerStart(e,data,touch,distX,distY,fn){var touches=e.targetTouches,time=e.timeStamp-data.timeStamp,template={altKey:e.altKey,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,startX:data.pageX,startY:data.pageY,distX:distX,distY:distY,deltaX:distX,deltaY:distY,pageX:touch.pageX,pageY:touch.pageY,velocityX:distX/time,velocityY:distY/time,identifier:data.identifier,targetTouches:touches,finger:touches?touches.length:1,enableMove:function(){this.moveEnabled=!0,this.enableMove=noop,e.preventDefault()}};trigger(data.target,"movestart",template),fn(data)}function activeMousemove(e,data){var timer=data.timer;data.touch=e,data.timeStamp=e.timeStamp,timer.kick()}function activeMouseend(e,data){var target=data.target,event=data.event,timer=data.timer;removeActiveMouse(),endEvent(target,event,timer,function(){setTimeout(function(){off(target,"click",preventDefault)},0)})}function removeActiveMouse(){off(document,mouseevents.move,activeMousemove),off(document,mouseevents.end,activeMouseend)}function activeTouchmove(e,data){var event=data.event,timer=data.timer,touch=changedTouch(e,event);if(!touch)return;e.preventDefault(),event.targetTouches=e.targetTouches,data.touch=touch,data.timeStamp=e.timeStamp,timer.kick()}function activeTouchend(e,data){var target=data.target,event=data.event,timer=data.timer,touch=identifiedTouch(e.changedTouches,event.identifier);if(!touch)return;removeActiveTouch(data),endEvent(target,event,timer)}function removeActiveTouch(data){off(document,touchevents.move,data.activeTouchmove),off(document,touchevents.end,data.activeTouchend)}function updateEvent(event,touch,timeStamp){var time=timeStamp-event.timeStamp;event.distX=touch.pageX-event.startX,event.distY=touch.pageY-event.startY,event.deltaX=touch.pageX-event.pageX,event.deltaY=touch.pageY-event.pageY,event.velocityX=.3*event.velocityX+.7*event.deltaX/time,event.velocityY=.3*event.velocityY+.7*event.deltaY/time,event.pageX=touch.pageX,event.pageY=touch.pageY}function endEvent(target,event,timer,fn){timer.end(function(){return trigger(target,"moveend",event),fn&&fn()})}function movestart(e){function update(time){updateEvent(event,data.touch,data.timeStamp),trigger(data.target,"move",event)}if(e.defaultPrevented)return;if(!e.moveEnabled)return;var event={startX:e.startX,startY:e.startY,pageX:e.pageX,pageY:e.pageY,distX:e.distX,distY:e.distY,deltaX:e.deltaX,deltaY:e.deltaY,velocityX:e.velocityX,velocityY:e.velocityY,identifier:e.identifier,targetTouches:e.targetTouches,finger:e.finger},data={target:e.target,event:event,timer:new Timer(update),touch:undefined,timeStamp:e.timeStamp};e.identifier===undefined?(on(e.target,"click",preventDefault),on(document,mouseevents.move,activeMousemove,data),on(document,mouseevents.end,activeMouseend,data)):(data.activeTouchmove=function(e,data){activeTouchmove(e,data)},data.activeTouchend=function(e,data){activeTouchend(e,data)},on(document,touchevents.move,data.activeTouchmove,data),on(document,touchevents.end,data.activeTouchend,data))}function enableMove1(e){e.enableMove()}function enableMove2(e){e.enableMove()}function enableMove3(e){e.enableMove()}function add(handleObj){var handler=handleObj.handler;handleObj.handler=function(e){var i=properties.length,property;while(i--)property=properties[i],e[property]=e.originalEvent[property];handler.apply(this,arguments)}}var assign=Object.assign||window.jQuery&&jQuery.extend,threshold=8,requestFrame=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(fn,element){return window.setTimeout(function(){fn()},25)}}();(function(){function CustomEvent(event,params){params=params||{bubbles:!1,cancelable:!1,detail:undefined};var evt=document.createEvent("CustomEvent");return evt.initCustomEvent(event,params.bubbles,params.cancelable,params.detail),evt}if(typeof window.CustomEvent=="function")return!1;CustomEvent.prototype=window.Event.prototype,window.CustomEvent=CustomEvent})();var ignoreTags={textarea:!0,input:!0,select:!0,button:!0}
1,mouseevents={move:"mousemove",cancel:"mouseup dragstart",end:"mouseup"},touchevents={move:"touchmove",cancel:"touchend",end:"touchend"},rspaces=/\s+/,eventOptions={bubbles:!0,cancelable:!0},eventsSymbol=typeof Symbol=="function"?Symbol("events"):{};on(document,"mousedown",mousedown),on(document,"touchstart",touchstart),on(document,"movestart",movestart);if(!window.jQuery)return;var properties="startX startY pageX pageY distX distY deltaX deltaY velocityX velocityY".split(" ");jQuery.event.special.movestart={setup:function(){return on(this,"movestart",enableMove1),!1},teardown:function(){return off(this,"movestart",enableMove1),!1},add:add},jQuery.event.special.move={setup:function(){return on(this,"movestart",enableMove2),!1},teardown:function(){return off(this,"movestart",enableMove2),!1},add:add},jQuery.event.special.moveend={setup:function(){return on(this,"movestart",enableMove3),!1},teardown:function(){return off(this,"movestart",enableMove3),!1},add:add}}),$.fn.twentytwenty=function(options){var options=$.extend({default_offset_pct:.5,orientation:"horizontal",before_label:"Before",after_label:"After",no_overlay:!1,move_slider_on_hover:!1,move_with_handle_only:!0,click_to_move:!1},options);return this.each(function(){var sliderPct=options.default_offset_pct,container=$(this),sliderOrientation=options.orientation,beforeDirection=sliderOrientation==="vertical"?"down":"left",afterDirection=sliderOrientation==="vertical"?"up":"right";container.wrap("<div class='twentytwenty-wrapper twentytwenty-"+sliderOrientation+"'></div>");if(!options.no_overlay){container.append("<div class='twentytwenty-overlay'></div>");var overlay=container.find(".twentytwenty-overlay");overlay.append("<div class='twentytwenty-before-label' data-content='"+options.before_label+"'></div>"),overlay.append("<div class='twentytwenty-after-label' data-content='"+options.after_label+"'></div>")}var beforeImg=container.find("img:first"),afterImg=container.find("img:last");container.append("<div class='twentytwenty-handle style-accent-bg border-accent-color'></div>");var slider=container.find(".twentytwenty-handle");slider.append("<span class='twentytwenty-"+beforeDirection+"-arrow'></span>"),slider.append("<span class='twentytwenty-"+afterDirection+"-arrow'></span>"),container.addClass("twentytwenty-container"),beforeImg.addClass("twentytwenty-before"),afterImg.addClass("twentytwenty-after");var calcOffset=function(dimensionPct){var w=beforeImg.width(),h=beforeImg.height();return{w:w+"px",h:h+"px",cw:dimensionPct*w+"px",ch:dimensionPct*h+"px"}},adjustContainer=function(offset){sliderOrientation==="vertical"?(beforeImg.css("clip","rect(0,"+offset.w+","+offset.ch+",0)"),afterImg.css("clip","rect("+offset.ch+","+offset.w+","+offset.h+",0)")):(beforeImg.css("clip","rect(0,"+offset.cw+","+offset.h+",0)"),afterImg.css("clip","rect(0,"+offset.w+","+offset.h+","+offset.cw+")")),container.css("height",offset.h)},adjustSlider=function(pct){var offset=calcOffset(pct);slider.css(sliderOrientation==="vertical"?"top":"left",sliderOrientation==="vertical"?offset.ch:offset.cw),adjustContainer(offset)},minMaxNumber=function(num,min,max){return Math.max(min,Math.min(max,num))},getSliderPercentage=function(positionX,positionY){var sliderPercentage=sliderOrientation==="vertical"?(positionY-offsetY)/imgHeight:(positionX-offsetX)/imgWidth;return minMaxNumber(sliderPercentage,0,1)};$(window).on("resize.twentytwenty",function(e){adjustSlider(sliderPct)});var offsetX=0,offsetY=0,imgWidth=0,imgHeight=0,onMoveStart=function(e){(e.distX>e.distY&&e.distX<-e.distY||e.distX<e.distY&&e.distX>-e.distY)&&sliderOrientation!=="vertical"?e.preventDefault():(e.distX<e.distY&&e.distX<-e.distY||e.distX>e.distY&&e.distX>-e.distY)&&sliderOrientation==="vertical"&&e.preventDefault(),container.addClass("active"),offsetX=container.offset().left,offsetY=container.offset().top,imgWidth=beforeImg.width(),imgHeight=beforeImg.height()},onMove=function(e){container.hasClass("active")&&(sliderPct=getSliderPercentage(e.pageX,e.pageY),adjustSlider(sliderPct))},onMoveEnd=function(){container.removeClass("active")},moveTarget=options.move_with_handle_only?slider:container;moveTarget.on("movestart",onMoveStart),moveTarget.on("move",onMove),moveTarget.on("moveend",onMoveEnd),options.move_slider_on_hover&&(container.on("mouseenter",onMoveStart),container.on("mousemove",onMove),container.on("mouseleave",onMoveEnd)),slider.on("touchmove",function(e){e.preventDefault()}),container.find("img").on("mousedown",function(event){event.preventDefault()}),options.click_to_move&&container.on("click",function(e){offsetX=container.offset().left,offsetY=container.offset().top,imgWidth=beforeImg.width(),imgHeight=beforeImg.height(),sliderPct=getSliderPercentage(e.pageX,e.pageY),adjustSlider(sliderPct)}),$(window).trigger("resize.twentytwenty")})},$(window).on("load",function(e){$(".twentytwenty-container").each(function(){var $container=$(this);$(".twentytwenty-wrapper",$container).length||$container.twentytwenty(),$("img",$container).on("async-done",function(){$(".twentytwenty-wrapper",$container).length||$container.twentytwenty()})})})},UNCODE.justifiedGallery=function(){var breakPointMe=function(val){val=parseInt(val);if(isNaN(val))return!1;if(val>=1500)return 1;if(val<1500&&val>=960)return 2;if(val<960&&val>=570)return 3;if(val<570)return 4},gutterByBreakpoint=function(bp,gutter){var ret;switch(gutter){case"no-gutter":ret=0;break;case"px-gutter":ret=1;break;case"half-gutter":ret=18;break;case"double-gutter":switch(bp){case 3:case 4:ret=36;break;default:ret=72}break;case"triple-gutter":switch(bp){case 3:case 4:ret=36;break;default:ret=108}break;case"quad-gutter":switch(bp){case 2:ret=108;break;case 3:ret=72;break;case 4:ret=36;break;default:ret=144}break;default:ret=36}return ret};
1if($(".justified-layout").length>0){var justifiedContainersArray=[],typeGridArray=[],layoutGridArray=[],transitionDuration=[],$filterItems=[],$filters=$(".justified-system .isotope-filters"),$itemSelector=".tmb",$items,itemMargin,correctionFactor=0,firstLoad=!0,isOriginLeft=$("body").hasClass("rtl")?!1:!0,prevW=breakPointMe(UNCODE.wwidth);$('[class*="justified-container"]').each(function(){var isoData=$(this).data();transitionDuration.push($(".t-inside.animate_when_almost_visible",this).length>0?0:"0.5s"),isoData.type=="metro"?typeGridArray.push(!0):typeGridArray.push(!1),isoData.layout!==undefined?layoutGridArray.push(isoData.layout):layoutGridArray.push("justified"),justifiedContainersArray.push($(this))});var init_justifiedGallery=function(){for(var i=0,len=justifiedContainersArray.length;i<len;i++){var justifiedSystem=$(justifiedContainersArray[i]).closest($(".justified-system")),justifiedId=justifiedSystem.attr("id"),$layoutMode=layoutGridArray[i],gutter=$(justifiedContainersArray[i]).data("gutter"),rowHeight=$(justifiedContainersArray[i]).data("row-height"),maxRowHeight=$(justifiedContainersArray[i]).data("max-row-height"),lastRow=$(justifiedContainersArray[i]).data("last-row"),margins;rowHeight=typeof rowHeight=="undefined"||rowHeight===""?250:parseFloat(rowHeight),maxRowHeight=typeof maxRowHeight=="undefined"||maxRowHeight===""?!1:parseFloat(maxRowHeight),lastRow=typeof lastRow=="undefined"||lastRow===""?"nojustify":lastRow,margins=gutterByBreakpoint(prevW,gutter),$(justifiedContainersArray[i]).justifiedGallery({rowHeight:rowHeight,maxRowHeight:maxRowHeight,margins:margins,cssAnimation:!0,lastRow:lastRow,waitThumbnailsLoad:!1}).one("jg.complete",function(){onLayout($(this),0)});if($(justifiedContainersArray[i]).hasClass("isotope-infinite")&&$.fn.infinitescroll){$(justifiedContainersArray[i]).infinitescroll({navSelector:"#"+justifiedId+" .loadmore-button",nextSelector:"#"+justifiedId+" .loadmore-button a",itemSelector:"#"+justifiedId+" .justified-layout .tmb, #"+justifiedId+" .isotope-filters li",animate:!1,behavior:"local",debug:!1,loading:{selector:"#"+justifiedId+".justified-system .justified-footer-inner",speed:0,finished:undefined,msg:$("#"+justifiedId+" .loadmore-button")},errorCallback:function(){var justified_system=$(this).closest(".justified-system");$(".loading-button",justified_system).hide(),$(".loadmore-button",justified_system).attr("style","display:none !important")}},function(newElements,opts){var $galleryJustified=$(this),justifiedId=$galleryJustified.closest(".justified-system").attr("id"),filters=new Array,$loading_button=$galleryJustified.closest(".justified-system").find(".loading-button"),$infinite_button=$galleryJustified.closest(".justified-system").find(".loadmore-button"),$numPages=$("a",$infinite_button).data("pages"),delay=300;$("a",$infinite_button).html($("a",$infinite_button).data("label")),$galleryJustified.hasClass("isotope-infinite-button")||$infinite_button.hasClass("loadmore-button--icon")?$infinite_button.show():$infinite_button.hide(),$loading_button.hide(),$numPages!=undefined&&opts.state.currPage==$numPages&&$infinite_button.hide(),$("> li",$galleryJustified).remove(),$.each($(newElements),function(index,val){$(val).addClass("tmb-iso"),$(val).is("li")&&filters.push($(val)[0]),$(val).addClass("uncode-appended")}),newElements=newElements.filter(function(x){return filters.indexOf(x)<0}),$.each($(filters),function(index,val){$("#"+justifiedId+' a[data-filter="'+$("a",val).attr("data-filter")+'"]').length==0&&$("#"+justifiedId+" .isotope-filters ul").append($(val))}),$galleryJustified.justifiedGallery("norewind",onLayout($galleryJustified,newElements.length));if(typeof UNCODE.lightbox!="undefined"&&!SiteParameters.lbox_enhanced){var getLightbox=UNCODE.lightboxArray["ilightbox_"+justifiedId];typeof getLightbox=="object"?getLightbox.refresh():UNCODE.lightbox()}typeof twttr!="undefined"&&twttr.widgets.load(justifiedContainersArray[i]),requestTimeout(function(){$galleryJustified.trigger("more-items-loaded"),$(window).trigger("more-items-loaded"),window.dispatchEvent(new CustomEvent("uncode-more-items-loaded")),fillIfNotScrollable($galleryJustified)},1e3)});if($(justifiedContainersArray[i]).hasClass("isotope-infinite-button")){var $infinite_justified=$(justifiedContainersArray[i]),$infinite_button=$infinite_justified.closest(".
1justified-system").find(".loadmore-button a");$infinite_justified.infinitescroll("pause"),$infinite_button.on("click",function(event){typeof UNCODE.lightbox!="undefined"&&!SiteParameters.lbox_enhanced&&$.each(UNCODE.lightboxArray,function(index,val){UNCODE.lightboxArray[index].destroy()}),event.preventDefault();var $justified_system=$(event.target).closest(".justified-system"),$infinite_justified=$justified_system.find(".justified-container"),justifiedId=$justified_system.attr("id");$(event.currentTarget).html(SiteParameters.loading),$infinite_justified.infinitescroll("resume"),$infinite_justified.infinitescroll("retrieve"),$infinite_justified.infinitescroll("pause"),$infinite_justified.trigger("more-items-loaded"),$(window).trigger("more-items-loaded"),window.dispatchEvent(new CustomEvent("uncode-more-items-loaded"))})}(function($c){requestTimeout(function(){fillIfNotScrollable($c)},1e3)})($(justifiedContainersArray[i]))}}},fillIfNotScrollable=function($container){if($container.hasClass("isotope-infinite-button"))return;if(!$container.hasClass("isotope-infinite"))return;var infData=$container.data("infinitescroll");if(!infData||!infData.options||!infData.options.state)return;var state=infData.options.state;if(state.isDuringAjax||state.isDestroyed||state.isBeyondMaxPage||state.isPaused)return;var $loadMoreA=$container.closest(".justified-system").find(".loadmore-button a"),numPages=parseInt($loadMoreA.data("pages"),10);if(!numPages||state.currPage>=numPages)return;if(document.documentElement.scrollHeight>window.innerHeight+1)return;$container.infinitescroll("retrieve")},onLayout=function(justifiedObj,startIndex){justifiedObj.css("opacity",1),justifiedObj.closest(".justified-system").find(".justified-footer").css("opacity",1),$(".tmb",justifiedObj).addClass("justified-object-loaded"),requestTimeout(function(){UNCODE.adaptive(),SiteParameters.dynamic_srcset_active==="1"&&UNCODE.refresh_dynamic_srcset_size(justifiedObj),typeof MediaElement=="function"&&$(justifiedObj).find("audio,video").each(function(){$(this).mediaelementplayer({pauseOtherPlayers:!1})}),$(justifiedObj).find(".nested-carousel").length?(typeof UNCODE.carousel!="undefined"&&UNCODE.carousel($(justifiedObj).find(".nested-carousel")),requestTimeout(function(){boxAnimation($(".tmb",justifiedObj),startIndex,!0,justifiedObj),justifiedObj.addClass("justified-gallery-finished"),Waypoint.refreshAll()},200)):requestTimeout(function(){boxAnimation($(".tmb",justifiedObj),startIndex,!0,justifiedObj),justifiedObj.addClass("justified-gallery-finished"),Waypoint.refreshAll()},300)},100)},boxAnimation=function(items,startIndex,sequential,container){var $allItems=items.length-startIndex,showed=0,index=0;if(container.closest(".owl-item").length==1)return!1;$.each(items,function(index,val){var elInner=$("> .t-inside",val);if(UNCODE.isUnmodalOpen&&!val.closest("#unmodal-content"))return;val[0]&&(val=val[0]),elInner.hasClass("animate_when_almost_visible")&&!elInner.hasClass("force-anim")?new Waypoint({context:UNCODE.isUnmodalOpen?document.getElementById("unmodal-content"):window,element:val,handler:function(){var element=$("> .t-inside",this.element),parent=$(this.element),currentIndex=parent.index(),delay=sequential?startIndex!==0?currentIndex-$allItems:currentIndex:index,delayAttr=parseInt(element.attr("data-delay"));isNaN(delayAttr)&&(delayAttr=100),delay-=showed;var objTimeout=requestTimeout(function(){element.removeClass("zoom-reverse").addClass("start_animation"),showed=parent.index()},delay*delayAttr);parent.data("objTimeout",objTimeout),UNCODE.isUnmodalOpen||this.destroy()},offset:"100%"}):(elInner.removeClass("animate_when_almost_visible"),$(val).addClass("no-waypoint-animation")),index++})};$filters.on("click","a[data-filter]",function(evt){var $filter=$(this),filterContainer=$filter.closest(".isotope-filters"),filterValue=$filter.attr("data-filter"),container=$filter.closest(".justified-system").find($(".justified-layout")),lastRow=container.data("last-row"),transitionDuration=0,delay=300,filterItems=[];lastRow=typeof lastRow=="undefined"||lastRow===""?"nojustify":lastRow;var filter_items=function(){filterValue!==undefined?($.each($("> .tmb > .t-inside",container),function(index,val){var parent=$(val).parent(),objTimeout=parent.data("objTimeout");objTimeout&&($(val).removeClass("zoom-reverse"),clearRequestTimeout(objTimeout)),transitionDuration==0&&($(val).hasClass("animate_when_almost_visible")?$(val).addClass("zoom-reverse").removeClass("start_animation"):$(val).addClass("animate_when_almost_visible zoom-reverse zoom-anim force-anim"))}),requestTimeout(function(){var $block,selector,lightboxElements,$boxes;filterValue!==""&&filterValue!=="*"?($("[data-lbox^=ilightbox]",container).addClass("lb-disabled"),selector="."+filterValue,$.each($(selector,container),function(index,block){lightboxElements=$("[data-lbox^=ilightbox]",block),lightboxElements.length&&(lightboxElements.removeClass("lb-disabled"),container.data("lbox",$(lightboxElements[0]).data("lbox"))),filterItems.push(block)}),container.justifiedGallery({filter:selector,lastRow:"nojustify"})):(container.justifiedGallery({filter:!1,lastRow:lastRow}),$("[data-lbox^=ilightbox]",$block).removeClass("lb-disabled"),filterItems=$("> .tmb",container)),container.trigger("more-items-loaded"),$(window).trigger("more-items-loaded"),window.dispatchEvent(new CustomEvent("uncode-more-items-loaded")),$(".t-inside.zoom-reverse",container).removeClass("zoom-reverse");if(typeof UNCODE.lightbox!="undefined"&&!SiteParameters.lbox_enhanced){var getLightbox=UNCODE.lightboxArray[container.data("lbox")];typeof getLightbox=="object"?getLightbox.refresh():UNCODE.lightbox()}transitionDuration==0&&requestTimeout(function(){boxAnimation(filterItems,0,!1,container)},100),requestTimeout(function(){Waypoint.refreshAll(),container.trigger("more-items-loaded"),$(window).trigger("more-items-loaded"),window.dispatchEvent(new CustomEvent("uncode-more-items-loaded")),typeof ScrollTrigger!="undefined"&&ScrollTrigger!==null&&$(document).trigger("uncode-scrolltrigger-refresh")},2e3),requestTimeout(function(){fillIfNotScrollable(container)},600)},delay)):(typeof UNCODE.lightbox!="undefined"&&!SiteParameters.lbox_enhanced&&$.each(UNCODE.lightboxArray,function(index,val){UNCODE.lightboxArray[index].destroy()}),$.each($("> .tmb > .t-inside",container),function(index,val){var parent=$(val).parent(),objTimeout=parent.data("objTimeout");objTimeout&&($(val).removeClass("zoom-reverse").removeClass("start_animation"),clearRequestTimeout(objTimeout)),transitionDuration==0&&($(val).hasClass("animate_when_almost_visible")?$(val).addClass("zoom-reverse").removeClass("start_animation"):$(val).addClass("animate_when_almost_visible zoom-reverse zoom-anim force-anim"))}),typeof UNCODE.lightbox!="undefined"&&!SiteParameters.lbox_enhanced&&UNCODE.lightbox(),container.parent().addClass("justified-loading"),container.trigger("more-items-loaded"),$(window).trigger("more-items-loaded"),window.dispatchEvent(new CustomEvent("uncode-more-items-loaded")))};if(!$filter.hasClass("active"))if(filterContainer.hasClass("filter-scroll")){var calc_scroll=SiteParameters.index_pagination_scroll_to!=0?eval(SiteParameters.index_pagination_scroll_to):container.closest(".row-parent").offset().top;calc_scroll-=UNCODE.get_scroll_offset();var bodyTop=document.documentElement.scrollTop||document.body.scrollTop,delta=bodyTop-calc_scroll,scrollSpeed=SiteParameters.constant_scroll=="on"?Math.abs(delta)/parseFloat(SiteParameters.scroll_speed):SiteParameters.scroll_speed,filterTolerance=!1,filter_timeout;scrollSpeed<1e3&&SiteParameters.constant_scroll=="on"&&(scrollSpeed=1e3),UNCODE.isFullPage||(scrollSpeed==0?($("html, body").scrollTop(calc_scroll),UNCODE.scrolling=!1,filter_items()):(bodyTop<=calc_scroll+20&&bodyTop>=calc_scroll-20&&(filter_items(),filterTolerance=!0),$("html, body").animate({scrollTop:calc_scroll},{easing:"easeInOutQuad",duration:scrollSpeed,complete:function(){UNCODE.scrolling=!1,filterTolerance||(filter_timeout=setTimeout(function(){clearTimeout(filter_timeout),filter_items()},200))}})))}else filter_items();evt.preventDefault()}),$filters.each(function(i,buttonGroup){var $buttonGroup=$(buttonGroup);$buttonGroup.on("click","a",function(){$buttonGroup.find(".active").removeClass("active"),$(this).addClass("active")});var $cats_mobile_trigger=$(".menu-smart--filter-cats_mobile-toggle-trigger",$buttonGroup),$cats_mobile_toggle=$(".menu-smart--filter-cats_mobile-toggle",$buttonGroup),$cats_filters=$(".menu-smart--filter-cats",$buttonGroup);$buttonGroup.on("click","a.menu-smart--filter-cats_mobile-toggle-trigger",function(e){e.preventDefault(),$cats_filters.slideToggle(400,"easeInOutCirc")})}),window.addEventListener("boxResized",function(e){prevW!==breakPointMe(UNCODE.wwidth)&&(prevW=breakPointMe(UNCODE.wwidth),$.each($(".justified-layout"),function(index,val){var gutter=$(this).data("gutter"),margins=gutterByBreakpoint(prevW,gutter);$(this).justifiedGallery({margins:margins}),$(this).find(".mejs-video,.mejs-audio").each(function(){$(this).trigger("resize")})}))},!1),init_justifiedGallery()}},UNCODE.cssGrid=function(){if($(".cssgrid-layout").length>
10){var cssGridContainersArray=[],transitionDuration=[],$filters=$(".cssgrid-system .cssgrid-filters");$('[class*="cssgrid-container"]').each(function(){cssGridContainersArray.push($(this)),transitionDuration.push($(".t-inside.animate_when_almost_visible",this).length>0?0:"0.5s")});var init_cssGridAjax=function(){for(var i=0,len=cssGridContainersArray.length;i<len;i++){var cssGridSystem=$(cssGridContainersArray[i]).closest($(".cssgrid-system")),cssGridId=cssGridSystem.attr("id");cssGridSystem.data("transitionDuration",transitionDuration[i]);if($(cssGridContainersArray[i]).hasClass("cssgrid-infinite")&&$.fn.infinitescroll){$(cssGridContainersArray[i]).infinitescroll({navSelector:"#"+cssGridId+" .loadmore-button",nextSelector:"#"+cssGridId+" .loadmore-button a",itemSelector:"#"+cssGridId+" .cssgrid-layout .tmb, #"+cssGridId+" .grid-filters li.filter-cat, #"+cssGridId+" .woocommerce-result-count-wrapper--default",animate:!1,behavior:"local",debug:!1,loading:{selector:"#"+cssGridId+".cssgrid-system .cssgrid-footer-inner",speed:0,finished:undefined,msg:$("#"+cssGridId+" .loadmore-button")},errorCallback:function(){var cssgrid_system=$(this).closest(".cssgrid-system");$(".loading-button",cssgrid_system).hide(),$(".loadmore-button",cssgrid_system).attr("style","display:none !important")}},function(newElements,opts){var $cssGrid=$(this),cssGridSystemCont=$cssGrid.closest(".cssgrid-system"),cssGridId=cssGridSystemCont.attr("id"),filters=new Array,$loading_button=cssGridSystemCont.find(".loading-button"),$infinite_button=cssGridSystemCont.find(".loadmore-button"),$numPages=$("a",$infinite_button).data("pages"),$woo_results,delay=300;$("a",$infinite_button).html($("a",$infinite_button).data("label")),$infinite_button.show(),$loading_button.hide(),$numPages!=undefined&&opts.state.currPage==$numPages&&$infinite_button.hide(),$("> li",$cssGrid).remove(),$(".cssgrid-container").find(".woocommerce-result-count-wrapper").remove(),$.each($(newElements),function(index,val){$(val).hasClass("woocommerce-result-count-wrapper")?($woo_results=$(val),delete newElements[index]):($(val).addClass("tmb-grid"),$(val).is("li")&&filters.push($(val)[0])),$(val).addClass("uncode-appended")}),newElements=newElements.filter(function(x){return filters.indexOf(x)<0}),$.each($(filters),function(index,val){$("#"+cssGridId+' a[data-filter="'+$("a",val).attr("data-filter")+'"]').length==0&&$("#"+cssGridId+" .grid-filters ul").append($(val))});if($woo_results&&$woo_results.length>0){var old_count=cssGridSystemCont.find(".woocommerce-result-count").text(),new_count=$woo_results.find(".woocommerce-result-count").text(),old_start=old_count.match(/(\d+)–(\d+)/)[1],new_end=new_count.match(/(\d+)–(\d+)/)[2];function replaceMatch(match,p1,p2){return old_start+"–"+new_end}var new_count_text=old_count.replace(/(\d+)–(\d+)/,replaceMatch);cssGridSystemCont.find(".woocommerce-result-count").text(new_count_text)}var filterValue=cssGridSystemCont.find(".grid-nav-link.active").attr("data-filter"),sequential=cssGridSystemCont.hasClass("cssgrid-animate-sequential")?!0:!1;if(filterValue!==undefined&&filterValue!="*"){$(newElements).hide();var els_to_show=$();$(newElements).each(function(){var el=$(this);el.hasClass(filterValue)&&(els_to_show=els_to_show.add(el),el.show())}),UNCODE.animate_css_grids(cssGridSystemCont,els_to_show,els_to_show.length,sequential,!0)}else UNCODE.animate_css_grids(cssGridSystemCont,$(newElements),$(newElements).length,sequential,!0);UNCODE.adaptive(),SiteParameters.dynamic_srcset_active==="1"&&UNCODE.refresh_dynamic_srcset_size($cssGrid);if(typeof UNCODE.lightbox!="undefined"&&!SiteParameters.lbox_enhanced){var getLightbox=UNCODE.lightboxArray["ilightbox_"+cssGridId];typeof getLightbox=="object"?getLightbox.refresh():UNCODE.lightbox()}typeof twttr!="undefined"&&twttr.widgets.load(cssGridContainersArray[i]),UNCODE.carousel($(newElements)),requestTimeout(function(){$cssGrid.trigger("more-items-loaded"),$(window).trigger("more-items-loaded"),window.dispatchEvent(new CustomEvent("uncode-more-items-loaded"))},1e3)});if($(cssGridContainersArray[i]).hasClass("cssgrid-infinite-button")){var $cssgrid_el=$(cssGridContainersArray[i]),$infinite_button=$cssgrid_el.closest(".cssgrid-system").find(".loadmore-button a");$cssgrid_el.infinitescroll("pause"),$infinite_button.on("click",function(event){event.preventDefault();var $cssgrid_system=$(event.target).closest(".cssgrid-system"),$cssgrid_el=$cssgrid_system.find(".cssgrid-container"),cssGridId=$cssgrid_system.attr("id");$(event.currentTarget).html(SiteParameters.loading),$cssgrid_el.infinitescroll("resume"),$cssgrid_el.infinitescroll("retrieve"),$cssgrid_el.infinitescroll("pause")})}}}};init_cssGridAjax(),$(".cssgrid-pagination").length>0&&$(".cssgrid-system").on("click",".pagination a",function(evt){evt.preventDefault();if(SiteParameters.index_pagination_disable_scroll!=="1"){var container=$(this).closest(".cssgrid-system"),pagination_disable_scroll=container.attr("data-pagination-scroll"),calc_scroll=SiteParameters.index_pagination_scroll_to!=0?eval(SiteParameters.index_pagination_scroll_to):container.closest(".row-parent").offset().top;if(pagination_disable_scroll!=="disabled"){calc_scroll-=UNCODE.get_scroll_offset();var menu_container=$(".menu-sticky"),menu=menu_container.find(".menu-container");menu_container.length>0&&menu.length>0&&(calc_scroll-=menu.outerHeight());var bodyTop=document.documentElement.scrollTop||document.body.scrollTop,delta=bodyTop-calc_scroll,scrollSpeed=SiteParameters.constant_scroll=="on"?Math.abs(delta)/parseFloat(SiteParameters.scroll_speed):SiteParameters.scroll_speed;scrollSpeed<1e3&&SiteParameters.constant_scroll=="on"&&(scrollSpeed=1e3),UNCODE.isFullPage||(scrollSpeed==0?$("html, body").scrollTop(calc_scroll):$("html, body").animate({scrollTop:calc_scroll},{easing:"easeInOutQuad",duration:scrollSpeed,complete:function(){UNCODE.scrolling=!1}}))}}loadCssGrid($(this),!0)}),$filters.on("click","a.grid-nav-link",function(evt){if($(this).hasClass("no-grid-filter"))return;var $filter=$(this),filterContainer=$filter.closest(".cssgrid-filters"),filterValue=$filter.attr("data-filter"),containerSystem=$filter.closest(".cssgrid-system"),container=containerSystem.find($(".cssgrid-layout")),transitionDuration=containerSystem.data("transitionDuration"),delay=300,filterItems=[],all_thumbs=container.find(".tmb-grid"),filter_items=function(){filterValue!==undefined?($.each($("> .tmb-grid > .t-inside",container),function(index,val){var parent=$(val).parent(),objTimeout=parent.data("objTimeout");objTimeout&&($(val).removeClass("zoom-reverse").removeClass("start_animation"),clearRequestTimeout(objTimeout)),transitionDuration==0&&($(val).hasClass("animate_when_almost_visible")?$(val).addClass("zoom-reverse").removeClass("start_animation"):$(val).addClass("animate_when_almost_visible zoom-reverse zoom-anim force-anim"))}),requestTimeout(function(){filterValue=="*"?(all_thumbs.show(),all_thumbs.each(function(index,val){$(val).find("[data-lbox^=ilightbox]").removeClass("lb-disabled"),filterItems.push($(this))})):all_thumbs.each(function(){var _tmb=$(this);_tmb.hasClass(filterValue)?(_tmb.show(),_tmb.find("[data-lbox^=ilightbox]").removeClass("lb-disabled"),filterItems.push(_tmb)):(_tmb.find("[data-lbox^=ilightbox]").addClass("lb-disabled"),_tmb.hide())}),$(".t-inside.zoom-reverse",container).removeClass("zoom-reverse");var sequential=containerSystem.hasClass("cssgrid-animate-sequential")?!0:!1;UNCODE.animate_css_grids(containerSystem,filterItems,0,sequential,!0);var lightboxElements=$("[data-lbox^=ilightbox]",container);if(lightboxElements.length){container.data("lbox",$(lightboxElements[0]).data("lbox"));if(typeof UNCODE.lightbox!="undefined"&&!SiteParameters.lbox_enhanced){var getLightbox=UNCODE.lightboxArray["ilightbox_"+container.closest(".cssgrid-system").attr("id")];typeof getLightbox=="object"?getLightbox.refresh():UNCODE.lightbox()}}container.trigger("more-items-loaded"),$(window).trigger("more-items-loaded"),window.dispatchEvent(new CustomEvent("uncode-more-items-loaded"))},delay)):($.each($("> .tmb-grid > .t-inside",container),function(index,val){var parent=$(val).parent(),objTimeout=parent.data("objTimeout");objTimeout&&($(val).removeClass("zoom-reverse").removeClass("start_animation"),clearRequestTimeout(objTimeout)),transitionDuration==0&&($(val).hasClass("animate_when_almost_visible")?$(val).addClass("zoom-reverse").removeClass("start_animation"):$(val).addClass("animate_when_almost_visible zoom-reverse zoom-anim force-anim"))}),loadCssGrid($filter))};if(!$filter.hasClass("active"))if(filterContainer.hasClass("filter-scroll")){var calc_scroll=SiteParameters.index_pagination_scroll_to!=0?eval(SiteParameters.index_pagination_scroll_to):container.closest(".row-parent").offset().top;calc_scroll-=UNCODE.get_scroll_offset();var bodyTop=document.documentElement.scrollTop||document.body.scrollTop,delta=bodyTop-calc_scroll,scrollSpeed=SiteParameters.constant_scroll=="on"?Math.abs(delta)/parseFloat(SiteParameters.scroll_speed):SiteParameters.scroll_speed,filterTolerance=!1,filter_timeout;scrollSpeed<1e3&&SiteParameters.constant_scroll=="on"&&(scrollSpeed=1e3),UNCODE.isFullPage||(scrollSpeed==0?($("html, body").scrollTop(calc_scroll),UNCODE.scrolling=!1,filter_items()):(bodyTop<=calc_scroll+20&&bodyTop>=calc_scroll-20&&(filter_items(),filterTolerance=!0),$("html, body").animate({scrollTop:calc_scroll},{easing:"easeInOutQuad",duration:scrollSpeed,complete:function(){UNCODE.scrolling=!1,filterTolerance||(filter_timeout=setTimeout(function(){clearTimeout(filter_timeout),filter_items()},200))}})))}else filter_items();evt.preventDefault()}),$(window).off("popstate.cssgrid").on("popstate.cssgrid",function(e){var params=UNCODE.getURLParams(window.location),old_params=UNCODE.getURLParams(UNCODE.lastURL,!0);UNCODE.lastURL=window.location.href;if(UNCODE.hasEqualURLParams(params,old_params)||$.isEmptyObject(params)&&$.isEmptyObject(old_params)||params.form!==undefined)return;params.id===undefined?$.each($(".cssgrid-system"),function(index,val){loadCssGrid($(val))}):params.hasOwnProperty(SiteParameters.ajax_filter_key_unfilter)||loadCssGrid($("#"+params.id))});var loadCssGrid=function($href,$paginating){var is_paginating=!1;if(undefined!==$paginating&&$paginating)var is_paginating=$paginating;var href=$href.is("a")?$href.attr("href"):location,cssgridSystem=$href.is("a")?$href.closest($(".cssgrid-system")):$href,cssgridWrapper=cssgridSystem.find($(".cssgrid-wrapper")),cssgridFooter=cssgridSystem.find($(".cssgrid-footer-inner")),cssgridResultCount=cssgridSystem.find($(".woocommerce-result-count-wrapper")),cssgridContainer=cssgridSystem.find($(".cssgrid-layout")),cssgridId=cssgridSystem.attr("id");$href.is("a")&&!cssgridSystem.hasClass("un-no-history")&&(UNCODE.lastURL=href,history.pushState({myCSSgrid:!0},document.title,href)),cssgridWrapper.addClass("cssgrid-loading"),is_paginating&&cssgridWrapper.addClass("grid-filter
1ing"),$.ajax({url:href}).done(function(data){var $resultItems=$(data).find("#"+cssgridId+" .cssgrid-layout").html(),$resultPagination=$(data).find("#"+cssgridId+" .pagination")[0],$resultCount=$(data).find("#"+cssgridId+" .woocommerce-result-count")[0];requestTimeout(function(){cssgridContainer.html($resultItems),cssgridWrapper.removeClass("cssgrid-loading"),cssgridWrapper.removeClass("grid-filtering");var sequential=cssgridSystem.hasClass("cssgrid-animate-sequential")?!0:!1;UNCODE.animate_css_grids(cssgridSystem,cssgridContainer.find(".tmb-grid"),0,sequential,!1),UNCODE.adaptive(),SiteParameters.dynamic_srcset_active==="1"&&UNCODE.refresh_dynamic_srcset_size(cssgridContainer);if(typeof UNCODE.lightbox!="undefined"&&!SiteParameters.lbox_enhanced){var getLightbox=UNCODE.lightboxArray["ilightbox_"+cssgridContainer.closest(".cssgrid-system").attr("id")];typeof getLightbox=="object"?getLightbox.refresh():UNCODE.lightbox()}cssgridContainer.trigger("more-items-loaded"),$(window).trigger("more-items-loaded"),window.dispatchEvent(new CustomEvent("uncode-more-items-loaded"))},300),$(".pagination",cssgridFooter).remove(),cssgridFooter.append($resultPagination),cssgridResultCount.length>0&&($(".woocommerce-result-count",cssgridResultCount).remove(),cssgridResultCount.append($resultCount))})};$filters.each(function(i,buttonGroup){var $buttonGroup=$(buttonGroup);$buttonGroup.on("click","a:not(.no-grid-filter)",function(){$buttonGroup.find(".active").removeClass("active"),$(this).addClass("active")});var $cats_mobile_trigger=$(".menu-smart--filter-cats_mobile-toggle-trigger",$buttonGroup),$cats_mobile_toggle=$(".menu-smart--filter-cats_mobile-toggle",$buttonGroup),$cats_filters=$(".menu-smart--filter-cats",$buttonGroup);$buttonGroup.on("click","a.menu-smart--filter-cats_mobile-toggle-trigger",function(e){e.preventDefault(),$cats_filters.slideToggle(400,"easeInOutCirc")})})}},UNCODE.linearGrid=function(){$(".linear-wrapper").each(function(){var $wrap=$(this),$system=$wrap.closest(".linear-system"),$dragger=$("[data-dragger]",$system),$row=$wrap.closest(".vc_row[data-parent]"),_row=$row[0],$cont=$(".linear-container.cont-leader:not(.cont-appended)",$wrap),vertical=$cont.hasClass("linear-or-vertical"),clone=$wrap.attr("data-infinite")==="yes"||vertical,freezedDesktop=$wrap.attr("data-freeze")==="always"||$wrap.attr("data-freeze")==="desktop",freezedMobile=$wrap.attr("data-freeze")==="always"||$wrap.attr("data-freeze")==="mobile",dataSpeed=parseFloat($wrap.attr("data-speed")),isInMenu=$wrap.closest(".megamenu-block-wrapper").length,isInViewport=!1,isHover=!1,init=!1,stableHeight=UNCODE.wheight,wCont,hCont,docH,marqueeTL;if(!$(".tmb",$cont).length)return;dataSpeed=isNaN(dataSpeed)?0:dataSpeed;var dataX=dataSpeed;dataSpeed+=5;var checkLinearGridSize=function(){if(!$wrap.is(":visible"))return;$wrap.find(".cont-appended").remove();if(vertical){if(!SiteParameters.is_frontend_editor){hCont=$cont.outerHeight(),docH=Math.max($row.outerHeight(),stableHeight)+hCont*dataSpeed;if(hCont<docH)var res=docH-hCont*3,times=2*Math.round((res/hCont+1)/2);for(var i=0;i<times;i++){var $cloneCont=$cont.clone(),$cloneCont2=$cont.clone(),trans=(i+2)*100;$wrap.append($cloneCont.addClass("cont-appended").css({transform:"translateY("+trans+"%)"})),$wrap.append($cloneCont2.addClass("cont-appended").css({transform:"translateY(-"+trans+"%)"})),$cloneCont.find("a[data-lbox]").each(function(){var dataLbox=$(this).attr("data-lbox");$(this).attr("data-lbox",dataLbox+"_"+i)}),$cloneCont.find(".wp-video-shortcode").each(function(){var thisID=$(this).attr("id");$(this).attr("id",thisID+"_"+i)}),$cloneCont2.find("a[data-lbox]").each(function(){var dataLbox=$(this).attr("data-lbox");$(this).attr("data-lbox",dataLbox+"_2"+i)}),$cloneCont2.find(".wp-video-shortcode").each(function(){var thisID=$(this).attr("id");$(this).attr("id",thisID+"__"+i)}),$(".lbox-trigger-item",$cloneCont).length&&(UNCODE.lightgallery($cloneCont),UNCODE.lightgallery($cloneCont2))}}}else{wCont=$cont.outerWidth();if(wCont<UNCODE.wwidth*2)var res=UNCODE.wwidth*2-wCont,times=2*Math.round((res/wCont+1)/2);for(var i=0;i<times;i++){var $cloneCont=$cont.clone(),$cloneCont2=$cont.clone(),trans=(i+2)*100;$wrap.append($cloneCont.addClass("cont-appended").css({transform:"translateX("+trans+"%)"})),$wrap.append($cloneCont2.addClass("cont-appended").css({transform:"translateX(-"+trans+"%)"})),$cloneCont.find("a[data-lbox]").each(function(){var dataLbox=$(this).attr("data-lbox");$(this).attr("data-lbox",dataLbox+"_"+i)}),$cloneCont.find("[id]").each(function(){var thisID=$(this).attr("id");$(this).attr("id",thisID+"_"+i)}),$cloneCont2.find("a[data-lbox]").each(function(){var dataLbox=$(this).attr("data-lbox");$(this).attr("data-lbox",dataLbox+"_2"+i)}),$cloneCont2.find("[id]").each(function(){var thisID=$(this).attr("id");$(this).attr("id",thisID+"__"+i)}),$(".lbox-trigger-item",$cloneCont).length&&(UNCODE.lightgallery($cloneCont),UNCODE.lightgallery($cloneCont2))}}};clone&&(checkLinearGridSize(),$(window).on("resize.linearGrid",function(){checkLinearGridSize()}));var continuousLinearMarquee=function(_xStrt){if(!$wrap.is(":visible"))return;var ease="none";wCont=$cont.outerWidth(),hCont=$cont.outerHeight();var xStrt=typeof _xStrt=="undefined"?0:_xStrt,xEnd=vertical?hCont:wCont,direction=$wrap.attr("data-animation").indexOf("opposite")>
10?-1:1,speed=(xEnd+xStrt)/(dataSpeed*dataSpeed*dataSpeed)/5*dataSpeed,speedSlow=(xEnd+xStrt)/45,freezed=freezedDesktop&&UNCODE.wwidth>=UNCODE.mediaQuery||freezedMobile&&UNCODE.wwidth<UNCODE.mediaQuery;marqueeTL=new TimelineMax({paused:!0,reversed:!0});if(isInViewport&&!isHover&&!freezed||isInMenu){marqueeTL.play();if($wrap.attr("data-hover")==="yes"||$wrap.attr("data-hover")==="pause"){var $column=$wrap.closest(".wpb_column"),$col_link=$(".col-link",$column),$hover_sel=$wrap;$col_link.length&&($hover_sel=$wrap.add($column)),$hover_sel.on("mouseover",function(){$wrap.attr("data-hover")==="yes"?(ease="power2.out",marqueeTL.duration(speedSlow)):marqueeTL.pause(),isHover=!0}).on("mouseout",function(){$wrap.attr("data-hover")==="yes"?(speed=(xEnd+xStrt)/(dataSpeed*dataSpeed*dataSpeed)/5*dataSpeed,ease="power2.in",marqueeTL.duration(speed)):marqueeTL.play(),isHover=!1})}$(document).on("sub-menu-slide-up",function(){isInMenu&&marqueeTL.pause()})}gsap.killTweensOf($wrap),vertical?marqueeTL.fromTo($wrap,{y:xStrt*direction},{duration:speed,y:xEnd*direction*-1,onComplete:function(){continuousLinearMarquee()},ease:ease,paused:freezed}):marqueeTL.fromTo($wrap,{x:xStrt*direction},{duration:speed,x:xEnd*direction*-1,onComplete:function(){continuousLinearMarquee()},ease:ease,paused:freezed})},dragLinearContinuous=function(){if(!$wrap.is(":visible"))return;var matrix,_x,_y,dragAction=!1;Draggable.create($wrap[0],{type:vertical?"y":"x",bounds:document.getElementById("container"),inertia:!1,onPress:function(e){},onRelease:function(e){dragAction===!0&&(matrix=$wrap.css("transform").replace(/[^0-9\-.,]/g,"").split(","),_x=matrix[12]||matrix[4],_y=matrix[13]||matrix[5],vertical?continuousLinearMarquee(_y*-1):continuousLinearMarquee(_x*-1),$wrap.removeClass("linear-dragging"))},onDrag:function(e){dragAction=!0,$wrap.addClass("linear-dragging")},onDragEnd:function(e){matrix=$wrap.css("transform").replace(/[^0-9\-.,]/g,"").split(","),_x=matrix[12]||matrix[4],_y=matrix[13]||matrix[5],wCont=$cont.outerWidth(),hCont=$cont.outerHeight(),vertical?(Math.abs(_y)>hCont&&(_y<0?_y=hCont+parseFloat(_y):_y=parseFloat(_y)-hCont),continuousLinearMarquee(_y*-1)):(Math.abs(_x)>wCont&&(_x<0?_x=wCont+parseFloat(_x):_x=parseFloat(_x)-wCont),continuousLinearMarquee(_x*-1)),$wrap.removeClass("linear-dragging"),dragAction=!1}})},runScrollLinear=function(){var freezed=freezedDesktop&&UNCODE.wwidth>=UNCODE.mediaQuery||freezedMobile&&UNCODE.wwidth<UNCODE.mediaQuery;if(!$wrap.is(":visible")||freezed)return;var direction=$wrap.attr("data-animation").indexOf("opposite")>0?-1:1,dataMove=dataX>=0?1+dataX:-1*5/(dataX-.5)*.25,linearGridScroll=function(){if(isInViewport){var bound=_row.getBoundingClientRect(),bound_top=bound.top,gsap_calc=parseFloat((stableHeight*.35-bound_top)*dataMove*.5*direction);vertical?$wrap.css({transform:"translateY("+gsap_calc*-1+"px) translateZ(0px)"}):$wrap.css({transform:"translateX("+gsap_calc*-1+"px) translateZ(0px)"}),"IntersectionObserver"in window&&!UNCODE.isMobile&&requestAnimationFrame(linearGridScroll)}"IntersectionObserver"in window&&!UNCODE.isMobile||window.addEventListener("scroll",linearGridScroll)};$(window).on("load wwResize",function(e){stableHeight=UNCODE.wheight,linearGridScroll()}),"IntersectionObserver"in window&&!UNCODE.isMobile&&requestAnimationFrame(linearGridScroll)},dragLinear=function(){if(!$wrap.is(":visible"))return;var matrix,_x,_y;Draggable.create($dragger[0],{type:vertical?"y":"x",bounds:document.getElementById("container"),inertia:!1,onPress:function(e){},onRelease:function(e){},onDrag:function(e){$wrap.addClass("linear-dragging")},onDragEnd:function(e){matrix=$dragger.css("transform").replace(/[^0-9\-.,]/g,"").split(","),_x=matrix[12]||matrix[4],_y=matrix[13]||matrix[5],wCont=$cont.outerWidth(),hCont=$cont.outerHeight(),vertical?Math.abs(_y)>hCont&&(_y<0?_y=hCont+parseFloat(_y):_y=parseFloat(_y)-hCont,gsap.to($dragger[0],{duration:0,y:_y})):Math.abs(_x)>wCont&&(_x<0?_x=wCont+parseFloat(_x):_x=parseFloat(_x)-wCont,gsap.to($dragger[0],{duration:0,x:_x})),$wrap.removeClass("linear-dragging")}})};if(!$("body").hasClass("compose-mode")){if($wrap.attr("data-animation")==="marquee"||$wrap.attr("data-animation")==="marquee-opposite")continuousLinearMarquee(),$(window).on("wwResize",function(e){continuousLinearMarquee()}
1),$(document).on("sub-menu-slide-down",function(){isInMenu&&continuousLinearMarquee()}),$wrap.attr("data-draggable")==="yes"&&dragLinearContinuous();if($wrap.attr("data-animation")==="marquee-scroll"||$wrap.attr("data-animation")==="marquee-scroll-opposite")runScrollLinear(),$wrap.attr("data-draggable")==="yes"&&dragLinear();if("IntersectionObserver"in window&&!UNCODE.isMobile){var observer=new IntersectionObserver(function(entries){entries.forEach(function(entry){entry.isIntersecting?(isInViewport=!0,init?typeof marqueeTL!="undefined"&&marqueeTL.play():(init=!0,continuousLinearMarquee()),($wrap.attr("data-animation")==="marquee-scroll"||$wrap.attr("data-animation")==="marquee-scroll-opposite")&&requestAnimFrame(runScrollLinear)):(isInViewport=!1,typeof marqueeTL!="undefined"&&marqueeTL.pause())})},{root:document});observer.observe(_row)}else{var checkVisible=function(el,off){typeof jQuery=="function"&&el instanceof jQuery&&(el=el[0]),off=typeof off=="undefined"?50:off;var rect=el.getBoundingClientRect();return rect.top>=0&&rect.top+off<=(window.innerHeight||document.documentElement.clientHeight)||rect.bottom>=off&&rect.bottom<=(window.innerHeight||document.documentElement.clientHeight)||rect.top<=0&&rect.bottom>=(window.innerHeight||document.documentElement.clientHeight)},checkVisibility=function(){checkVisible($row)?(isInViewport=!0,typeof marqueeTL!="undefined"&&marqueeTL.play()):(isInViewport=!1,typeof marqueeTL!="undefined"&&marqueeTL.pause())};window.addEventListener("scroll",checkVisibility),checkVisibility()}}})},UNCODE.wrapperMarquee=function(){function createMarquee(opts){function raf(cb){return(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(fn){return window.setTimeout(fn,16)})(cb)}function caf(id){return(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||function(tid){window.clearTimeout(tid)})(id)}function getWidth(el){return el?el.getBoundingClientRect?el.getBoundingClientRect().width:el.offsetWidth||0:0}function getPointX(e){return e.touches&&e.touches.length?e.touches[0].clientX:e.changedTouches&&e.changedTouches.length?e.changedTouches[0].clientX:e.clientX}function getPointY(e){return e.touches&&e.touches.length?e.touches[0].clientY:e.changedTouches&&e.changedTouches.length?e.changedTouches[0].clientY:e.clientY}function getPageY(){return typeof window.pageYOffset=="number"?window.pageYOffset:document.documentElement?document.documentElement.scrollTop:0}function getViewportW(){return window.innerWidth||(document.documentElement?document.documentElement.clientWidth:0)}function isFrozenNow(){if(!freezeMode)return!1;var w=getViewportW();return freezeMode==="always"?!0:freezeMode==="desktop"?w>=freezeBp:freezeMode==="mobile"?w<freezeBp:!1}function closestRowParent(el){return!el||!el.closest?null:el.closest('[data-parent="true"]')||null}function ensureId(el,prefix){if(!el)return null;if(el.id&&el.id.length)return el.id;var p=prefix||"uncode-row",rnd=(Math.random().toString(36).slice(2)+Date.now().toString(36)).slice(0,12);return el.id=p+"-"+rnd,el.id}function dispatchClonesEvent(payload){try{parent.dispatchEvent(new CustomEvent("uncode:marquee:clones-built",{bubbles:!0,detail:payload}))}catch(e){}}function dispatchClonesEventDebounced(payload){if(clonesEventRaf)return;clonesEventRaf=raf(function(){clonesEventRaf=0,dispatchClonesEvent(payload)})}function fillBaseWrapFromSource(){baseWrap.innerHTML="";var fragBase=document.createDocumentFragment(),k,clone;for(k=0;k<base.length;k++)clone=base[k].cloneNode(!0),clone.setAttribute("data-marquee-clone","1"),clone.setAttribute("data-marquee-origin-index",k),clone.setAttribute("aria-hidden","true"),fragBase.appendChild(clone);baseWrap.appendChild(fragBase)}function clearClones(){if(!infinite)return;leftWrap.innerHTML="",rightWrap.innerHTML=""}function measureCycle(){cycleW=baseWrap.scrollWidth||0;if(!cycleW||cycleW<1)cycleW=1;track.style.width=cycleW+"px"}function buildClones(){fillBaseWrapFromSource(),measureCycle();if(!infinite){var rowP0=closestRowParent(parent),rowId0=ensureId(rowP0,"uncode-row");
1return dispatchClonesEventDebounced({type:"measured-only",parent:parent,track:track,baseWrap:baseWrap,leftWrap:leftWrap,rightWrap:rightWrap,rowParent:rowP0,rowParentId:rowId0,infinite:!1,cycleW:cycleW,reps:0}),triggerMarqueeRefreshDebounced(baseWrap),dispatchMarqueeReady(),!0}clearClones();var parentW=getWidth(parent);if(!cycleW||!parentW)return!1;var reps=Math.ceil(parentW*2/cycleW)+1;reps<1&&(reps=1),reps>maxReps&&(reps=maxReps);var fragL=document.createDocumentFragment(),fragR=document.createDocumentFragment(),r,k,clone;for(r=0;r<reps;r++)for(k=0;k<base.length;k++)clone=base[k].cloneNode(!0),clone.setAttribute("data-marquee-clone","1"),clone.setAttribute("data-marquee-origin-index",k),clone.setAttribute("aria-hidden","true"),fragL.appendChild(clone);for(r=0;r<reps;r++)for(k=0;k<base.length;k++)clone=base[k].cloneNode(!0),clone.setAttribute("data-marquee-clone","1"),clone.setAttribute("data-marquee-origin-index",k),clone.setAttribute("aria-hidden","true"),fragR.appendChild(clone);leftWrap.appendChild(fragL),rightWrap.appendChild(fragR),measureCycle();var rowP=closestRowParent(parent),rowId=ensureId(rowP,"uncode-row");return dispatchClonesEventDebounced({type:"clones-built",parent:parent,track:track,baseWrap:baseWrap,leftWrap:leftWrap,rightWrap:rightWrap,rowParent:rowP,rowParentId:rowId,infinite:!0,cycleW:cycleW,reps:reps}),triggerMarqueeRefreshDebounced(baseWrap),dispatchMarqueeReady(),!0}function findClosestClone(node){while(node&&node!==parent){if(node.getAttribute&&node.getAttribute("data-marquee-clone")==="1")return node;node=node.parentNode}return null}function findClickableInsideClone(node,cloneRoot){while(node&&node!==cloneRoot){if(node.matches&&node.matches("a[href], [data-lbox], [data-lightbox], .uncode-lbox"))return node;node=node.parentNode}return null}function findMatchingOriginalClickable(originalRoot,clickedEl){if(!originalRoot||!clickedEl)return null;var all=originalRoot.querySelectorAll("a[href], [data-lbox], [data-lightbox], .uncode-lbox");if(!all.length)return null;var href=clickedEl.getAttribute&&clickedEl.getAttribute("href"),dataLbox=clickedEl.getAttribute&&clickedEl.getAttribute("data-lbox"),i,el;for(i=0;i<all.length;i++){el=all[i];if(dataLbox&&el.getAttribute("data-lbox")===dataLbox)return el;if(href&&el.getAttribute("href")===href)return el}return all[0]}function onCloneDelegatedClick(e){var cloneRoot=findClosestClone(e.target);if(!cloneRoot)return;var clickedEl=findClickableInsideClone(e.target,cloneRoot);if(!clickedEl)return;var idx=parseInt(cloneRoot.getAttribute("data-marquee-origin-index"),10);if(isNaN(idx)||!base[idx])return;var originalClickable=findMatchingOriginalClickable(base[idx],clickedEl);if(!originalClickable)return;return e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0,originalClickable.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window})),!1}function updateInView(){inViewOnly||(isActive=!0)}function getEffectiveSpeed(){return hoverSpeed!==null&&isHover?hoverSpeed:baseSpeed}function dispatchMarqueeReady(){if(SiteParameters.is_frontend_editor)return;requestTimeout(function(){var rowP=closestRowParent(parent),rowId=ensureId(rowP,"uncode-row");document.dispatchEvent(new CustomEvent("uncode:marquee:ready",{bubbles:!0,detail:{parent:parent,baseWrap:baseWrap,leftWrap:leftWrap,rightWrap:rightWrap,infinite:infinite,rowParent:rowP,rowParentId:rowId}}))},0)}function triggerMarqueeReinit(contextEl){try{$(document).trigger("uncode-marquee-updated",{parent:parent,context:contextEl||baseWrap,baseWrap:baseWrap,leftWrap:leftWrap,rightWrap:rightWrap})}catch(e){}}function triggerMarqueeRefreshDebounced(contextEl){marqueeRefreshT&&window.clearTimeout(marqueeRefreshT),marqueeRefreshT=window.setTimeout(function(){triggerMarqueeReinit(contextEl||baseWrap),marqueeRefreshT=0},60)}function render(){var x,totalX=xRaw+manualOffset;if(infinite){var m=totalX%cycleW;m>0&&(m-=cycleW),x=m}else x=totalX;gsap.set(track,{x:x,force3D:!0})}function tick(ts){lastTs||(lastTs=ts);var dt=(ts-lastTs)/1e3;lastTs=ts,dt>.05&&(dt=.05),updateInView();if(!isActive){frameId=raf(tick);return}if(!isDragging){if(isFrozenNow()){throwV=0,frameId=raf(tick);return}if(isScrolling){frameId=raf(tick);return}if(!scrollDriven){var s=getEffectiveSpeed();s&&(xRaw+=direction*s*dt)}throwV&&(xRaw+=throwV*dt,throwV*=Math.pow(.04,dt),throwV<8&&throwV>-8&&(throwV=0)),render()}frameId=raf(tick)}
1function start(){if(!buildClones()){window.setTimeout(start,50);return}lastTs=0;if(isScrollControlled){render();return}frameId&&caf(frameId),frameId=raf(tick),render()}function stop(){frameId&&caf(frameId),frameId=0}function onDown(e){if(e.type==="mousedown"&&e.button!==0)return;if(isFrozenNow())return;dragStartX=getPointX(e),dragStartY=getPointY(e),dragStartOffset=manualOffset,hasDragged=!1,throwV=0,lastDragX=dragStartX,lastDragT=(new Date).getTime(),isTouchDragging=e.type==="touchstart",touchDirectionLocked=null,isTouchDragging?isDragging=!1:(isDragging=!0,e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation()),bindMoveUp(!0)}function onMove(e){var nowX=getPointX(e),nowY=getPointY(e),dx=nowX-dragStartX,dy=nowY-dragStartY;if(isTouchDragging&&touchDirectionLocked===null){if(Math.abs(dx)<touchDirectionThreshold&&Math.abs(dy)<touchDirectionThreshold)return;if(Math.abs(dy)>Math.abs(dx)){touchDirectionLocked="vertical",isDragging=!1,bindMoveUp(!1);return}touchDirectionLocked="horizontal",isDragging=!0}if(!isDragging)return;!hasDragged&&(dx<-dragThreshold||dx>dragThreshold)&&(hasDragged=!0),manualOffset=dragStartOffset+dx,render();var nowT=(new Date).getTime(),dtMs=nowT-lastDragT;if(dtMs>0){var vx=(nowX-lastDragX)/(dtMs/1e3);vx>2500&&(vx=2500),vx<-2500&&(vx=-2500),throwV=vx*.5}lastDragX=nowX,lastDragT=nowT,e.preventDefault&&e.preventDefault()}function onUp(e){if(!isDragging&&!isTouchDragging)return;isDragging=!1,isTouchDragging=!1,touchDirectionLocked=null,lastTs=0,lastPageY=getPageY(),render(),bindMoveUp(!1),e&&hasDragged&&e.preventDefault&&e.preventDefault(),setTimeout(function(){hasDragged=!1},0)}function bindMoveUp(bind){bind?(document.addEventListener("mousemove",onMove,!1),document.addEventListener("mouseup",onUp,!1),document.addEventListener("touchmove",onTouchMoveDetect,{passive:!0}),document.addEventListener("touchend",onUp,!1),document.addEventListener("touchcancel",onUp,!1)):(document.removeEventListener("mousemove",onMove,!1),document.removeEventListener("mouseup",onUp,!1),document.removeEventListener("touchmove",onTouchMoveDetect,{passive:!0}),document.removeEventListener("touchmove",onMove,{passive:!1}),document.removeEventListener("touchend",onUp,!1),document.removeEventListener("touchcancel",onUp,!1))}function onTouchMoveDetect(e){var dx=Math.abs(getPointX(e)-dragStartX),dy=Math.abs(getPointY
1(e)-dragStartY);if(dx<touchDirectionThreshold&&dy<touchDirectionThreshold)return;document.removeEventListener("touchmove",onTouchMoveDetect,{passive:!0}),dy>dx?(isDragging=!1,touchDirectionLocked="vertical",bindMoveUp(!1)):(touchDirectionLocked="horizontal",isDragging=!0,document.addEventListener("touchmove",onMove,{passive:!1}))}function onClickCapture(e){if(hasDragged)return e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0,!1}function onResize(){var currentW=getViewportW();if(Math.abs(currentW-lastResizeW)<2)return;lastResizeW=currentW,resizeTimer&&window.clearTimeout(resizeTimer),resizeTimer=window.setTimeout(function(){buildClones(),render()},150)}function onWindowScroll(){isScrolling=!0,scrollEndTimer&&clearTimeout(scrollEndTimer),scrollEndTimer=setTimeout(function(){isScrolling=!1,lastTs=0},80)}if(!opts)return;var parent=opts.parent,originals=opts.originals;if(!parent||!originals)return;if(parent.getAttribute("data-marquee-init")==="1")return;parent.setAttribute("data-marquee-init","1");var baseSpeed=typeof opts.speed=="number"?opts.speed:50,direction=typeof opts.direction=="number"?opts.direction:-1,maxReps=typeof opts.maxReps=="number"?opts.maxReps:12,scrollDriven=opts.scrollDriven===!0,scrollFactor=typeof opts.scrollFactor=="number"?opts.scrollFactor:.6,isScrollControlled=opts.isScrollControlled===!0,inViewOnly=opts.inViewOnly!==!1,viewMargin=typeof opts.viewMargin=="number"?opts.viewMargin:80,hoverSpeed=typeof opts.hoverSpeed=="number"?opts.hoverSpeed:null,isHover=!1,infinite=opts.infinite===!0&&!SiteParameters.is_frontend_editor,draggable=opts.draggable===!0,freezeMode=typeof opts.freeze=="string"?opts.freeze:null,freezeBp=typeof opts.freezeBp=="number"?opts.freezeBp:960,clonesEventRaf=0,base=[],i;for(i=0;i<originals.length;i++)base.push(originals[i]);if(!base.length)return;var track=document.createElement("div");track.className=opts.trackClassName?opts.trackClassName:"cs-track",gsap.set(track,{x:0,force3D:!0,willChange:"transform"});var baseWrap=document.createElement("div");baseWrap.className="cs-base";var leftWrap=null,rightWrap=null;parent.insertBefore(track,parent.firstChild),infinite?(leftWrap=document.createElement("div"),leftWrap.className="cs-clones cs-clones--left",rightWrap=document.createElement("div"),rightWrap.className="cs-clones cs-clones--right",track.appendChild(leftWrap),track.appendChild(baseWrap),track.appendChild(rightWrap)):track.appendChild(baseWrap);var sourceWrap=document.createElement("div");sourceWrap.className="cs-source",sourceWrap.style.display="none",track.parentNode.insertBefore(sourceWrap,track);for(i=0;i<base.length;i++)sourceWrap.appendChild(base[i]);fillBaseWrapFromSource();var cycleW=1,xRaw=0,manualOffset=0,lastTs=0,frameId=0,isActive=!0,lastVisibilityCheck=0,visibilityCheckEvery=120,isDragging=!1,isTouchDragging=!1,touchDirectionLocked=null,dragStartX=0,dragStartY=0,dragStartOffset=0,hasDragged=!1,dragThreshold=6,touchDirectionThreshold=8,throwV=0,lastDragX=0,lastDragT=0,lastPageY=getPageY(),scrollVelocity=0,io=new IntersectionObserver(function(entries){isActive=entries[0].isIntersecting},{rootMargin:viewMargin+"px"});io.observe(parent);var marqueeRefreshT=0;parent.addEventListener?(draggable&&(parent.addEventListener("mousedown",onDown,!1),parent.addEventListener("touchstart",onDown,{passive:!0})),hoverSpeed!==null&&(parent.addEventListener("mouseenter",function(){isHover=!0},!1),parent.addEventListener("mouseleave",function(){isHover=!1},!1)),parent.addEventListener("click",onCloneDelegatedClick,!1)):draggable&&(parent.onmousedown=onDown,parent.ontouchstart=onDown),draggable&&(parent.addEventListener?parent.addEventListener("click",onClickCapture,!0):parent.onclick=onClickCapture);var resizeTimer=0,lastResizeW=getViewportW();window.addEventListener?window.addEventListener("resize",onResize,!1):window.onresize=onResize;var isScrolling=!1,scrollEndTimer=0;return scrollDriven&&(window.addEventListener?window.addEventListener("scroll",onWindowScroll,{passive:!0}):window.onscroll=onWindowScroll),start(),window.setTimeout(function(){buildClone
1s(),render(),triggerMarqueeRefreshDebounced(baseWrap)},500),{start:start,stop:stop,setX:function(value){xRaw=value,render()},addX:function(delta){xRaw+=delta,render()},setManualOffset:function(value){manualOffset=value,render()},getManualOffset:function(){return manualOffset},resetManualOffset:function(){manualOffset=0,render()},getCycleW:function(){return cycleW},update:function(){buildClones(),render()},isFrozen:function(){return isFrozenNow()}}}function initMarqueesOnce(){function getViewportW(){return window.innerWidth||(document.documentElement?document.documentElement.clientWidth:0)}function isScrollMode(wrapper){var mode=wrapper.getAttribute("data-mode");return mode==="marquee-scroll"||mode==="marquee-scroll-opposite"}function getDirection(wrapper){var mode=wrapper.getAttribute("data-mode");return mode==="marquee-opposite"||mode==="marquee-scroll-opposite"?1:-1}function clamp(v,a,b){return v<a?a:v>b?b:v}function readStep(wrapper){var v=parseFloat(wrapper.getAttribute("data-speed"));return isNaN(v)&&(v=0),clamp(v,-4,4)}function stepToPxPerSec(step,baseDefault){return baseDefault/5*(step+5)}function readFreeze(wrapper){var f=wrapper.getAttribute("data-freeze");return f!=="always"&&f!=="desktop"&&f!=="mobile"?null:f}function isFrozenByAttr(freezeMode,bp){if(!freezeMode)return!1;var w=window.innerWidth||(document.documentElement?document.documentElement.clientWidth:0);return freezeMode==="always"?!0:freezeMode==="desktop"?w>=bp:freezeMode==="mobile"?w<bp:!1}if(typeof gsap=="undefined"||typeof ScrollTrigger=="undefined")return!1;gsap.registerPlugin(ScrollTrigger);var wrappers=document.querySelectorAll(".cs-wrapper-marquee, .cs-wrapper");if(!wrappers||!wrappers.length)wrappers=document.getElementsByClassName("cs-wrapper");var itemClass="cs-container";if(!wrappers||!wrappers.length)return!1;var baseDefault=50,autoFactor=5,freezeBp=960,inited=0;for(var i=0;i<wrappers.length;i++)(function(wrapper){if(wrapper.getAttribute("data-anim")!=="uncode_slider_marquee")return;var items=wrapper.getElementsByClassName(itemClass);if(!items||!items.length)return;var scrollMode=isScrollMode(wrapper),dir=getDirection(wrapper),step=readStep(wrapper),pxPerSec=stepToPxPerSec(step,baseDefault),autoplayPxPerSec=pxPerSec*autoFactor,needHover=wrapper.getAttribute("data-hover"),hoverSpeed;needHover==="yes"?hoverSpeed=autoplayPxPerSec*.2:needHover==="pause"?hoverSpeed=0:hoverSpeed=autoplayPxPerSec;var freeze=readFreeze(wrapper),marquee=createMarquee({parent:wrapper,originals:items,infinite:wrapper.getAttribute("data-infinite")==="yes"&&!SiteParameters.is_frontend_editor,speed:scrollMode?0:autoplayPxPerSec,draggable:wrapper.getAttribute("data-draggable")==="yes"||SiteParameters.is_frontend_editor,scrollDriven:!1,isScrollControlled:scrollMode,inViewOnly:!0,viewMargin:300,maxReps:getViewportW()<570?4:8,direction:dir,hoverSpeed:scrollMode||SiteParameters.is_frontend_editor?0:hoverSpeed,freeze:freeze&&!SiteParameters.is_frontend_editor,freezeBp:freezeBp});if(!marquee)return;wrapper._uncodeMarqueeApi=marquee,inited++,!scrollMode||SiteParameters.is_frontend_editor?ScrollTrigger.create({trigger:wrapper,start:"top bottom",end:"bottom top",invalidateOnRefresh:!0,refreshPriority:-1,onEnter:function(){if(isFrozenByAttr(freeze,freezeBp))return;marquee.start()},onEnterBack:function(){if(isFrozenByAttr(freeze,freezeBp))return;marquee.start()},onLeave:function(){marquee.stop()},onLeaveBack:function(){marquee.stop()}}):ScrollTrigger.create({trigger:wrapper,start:"top bottom",end:"bottom top",scrub:!0,invalidateOnRefresh:!0,refreshPriority:-1,onUpdate:function(self){if(isFrozenByAttr(freeze,freezeBp))return;var w=marquee.getCycleW();if(!w)return;var cycles=pxPerSec/baseDefault;getViewportW()<570&&(cycles*=.55),marquee.setX(dir*self.progress*cycles*w)}})})(wrappers[i]);if(typeof ResizeObserver!="undefined"&&typeof ScrollTrigger!="undefined"){var t=0;function refreshST(){t&&window.clearTimeout(t),t=window.setTimeout(function(){ScrollTrigger.refresh()},150)}var ro=new ResizeObserver(function(){refreshST()});getViewportW()>=960&&ro.observe(document.body)}return window.setTimeout(function(){typeof ScrollTrigger!="undefined"&&(ScrollTrigger.sort(),ScrollTrigger.refresh())},0),!0}(function retryInit(){function go(){tries++;var ok=initMarqueesOnce();if(ok)return;if(tries>=maxTries)return;window.setTimeout(go,100)}var tries=0,maxTries=40;go()})()},UNCODE.wrapperSticky=function(){(function(){function ensureTrack(wrapper){var track=wrapper.querySelector(".cs-track");if(track)return track;
1track=document.createElement("div"),track.className="cs-track";var items=wrapper.getElementsByClassName("cs-container"),list=[],k;for(k=0;k<items.length;k++)list.push(items[k]);wrapper.insertBefore(track,wrapper.firstChild);for(k=0;k<list.length;k++)track.appendChild(list[k]);return track}function setupHorizontalPin(wrapper){function getTriggerElement(){return wrapper.closest?wrapper.closest(".vc_row[data-parent]")||wrapper:wrapper}function isStickyDisabled(){var w=window.innerWidth||document.documentElement.clientWidth;return wrapper.getAttribute("data-disable-sticky-mobile")==="yes"&&w<570?!0:wrapper.getAttribute("data-disable-sticky-tablet")==="yes"&&w<960?!0:!1}function getDirection(){var d=wrapper.getAttribute("data-direction");return d==="reverse"||d==="rtl"||d==="right"?1:-1}function getStartPosition(){var align=wrapper.getAttribute("data-align");return align?align:"top top"}function getDistance(){var wrapperW=wrapper.getBoundingClientRect?wrapper.getBoundingClientRect().width:wrapper.offsetWidth,dist=track.scrollWidth-wrapperW;return dist<0&&(dist=0),dist}function destroy(){st&&(st.kill(),st=null),tween&&(tween.kill(),tween=null),gsap.set(track,{clearProps:"transform"})}function make(){destroy();if(isStickyDisabled())return;var dist=getDistance();if(!dist)return;var dir=getDirection(),startPos=getStartPosition(),triggerEl=getTriggerElement();gsap.set(track,{x:0}),tween=gsap.to(track,{x:dist*dir,ease:"none",scrollTrigger:{trigger:triggerEl,start:startPos,end:function(){return"+="+dist},scrub:!0,pin:triggerEl,anticipatePin:1,invalidateOnRefresh:!0}}),st=tween.scrollTrigger}var track=ensureTrack(wrapper),tween=null,st=null;make(),ScrollTrigger.addEventListener("refreshInit",function(){isStickyDisabled()||gsap.set(track,{x:0})});var resizeT=0,lastResizeW=window.innerWidth||document.documentElement.clientWidth;window.addEventListener("resize",function(){var currentW=window.innerWidth||document.documentElement.clientWidth;if(Math.abs(currentW-lastResizeW)<2)return;lastResizeW=currentW,resizeT&&window.clearTimeout(resizeT),resizeT=window.setTimeout(function(){make(),ScrollTrigger.refresh()},150)},!1),setTimeout(function(){ScrollTrigger.refresh()},500)}if(typeof gsap=="undefined"||typeof ScrollTrigger=="undefined")return;gsap.registerPlugin(ScrollTrigger);var wrappers=document.getElementsByClassName("cs-wrapper-sticky"),i;for(i=0;i<wrappers.length;i++)setupHorizontalPin(wrappers[i])})()},UNCODE.mouseTrail=function(){var __globalDestroy=null;return function(){function initImageTrail(options){function rectVisible(rect,vh){return rect.bottom>0&&rect.top<vh&&rect.height>0}function buildSafeRect(rect){if(!particleSafeAreaOn||!safeW||!safeH)return null;var w=rect.width*(safeW/100),h=rect.height*(safeH/100);return!w||!h?null:{left:rect.left+(rect.width-w)/2,top:rect.top+(rect.height-h)/2,right:rect.left+(rect.width+w)/2,bottom:rect.top+(rect.height+h)/2,width:w,height:h}}function pointInSafeRect(x,y,safeRect){return safeRect?x>=safeRect.left&&x<=safeRect.right&&y>=safeRect.top&&y<=safeRect.bottom:!1}function randomPointInRect(rect){var safeRect=buildSafeRect(rect);if(!safeRect)return{x:gsap.utils.random(rect.left+1,rect.right-1,1),y:gsap.utils.random(rect.top+1,rect.bottom-1,1)};if(safeMode==="soft"){var best=null,cx=safeRect.left+safeRect.width/2,cy=safeRect.top+safeRect.height/2;for(var i=0;i<40;i++){var x=gsap.utils.random(rect.left+1,rect.right-1,1),y=gsap.utils.random(rect.top+1,rect.bottom-1,1),dx=x-cx,dy=y-cy,dist=Math.sqrt(dx*dx+dy*dy);pointInSafeRect(x,y,safeRect)&&(dist-=99999);if(!best||dist>best.score)best={x:x,y:y,score:dist}}return{x:best.x,y:best.y}}for(var j=0;j<40;j++){var px=gsap.utils.random(rect.left+1,rect.right-1,1),py=gsap.utils.random(rect.top+1,rect.bottom-1,1);if(!pointInSafeRect(px,py,safeRect))return{x:px,y:py}}return{x:gsap.utils.random(rect.left+1,rect.right-1,1),y:gsap.utils.random(rect.top+1,rect.bottom-1,1)}}function spawnRandomInViewportArea(){var rect=hoverArea.getBoundingClientRect(),vh=window.innerHeight||document.documentElement.clientHeight;if(!rectVisible(rect,vh))return;var p=randomPointInRect(rect);lastX=null,lastY=null,spawn(p.x,p.y)}function startAutoViewportTrail(){function loop(){if(!autoRunning)return;spawnRandomInViewportArea(),autoTimer=setTimeout(loop,autoSpawnEvery)}if(!useAutoViewportTrail||autoRunning)return;autoRunning=!0,loop()}function stopAutoViewportTrail(){autoRunning=!1,autoTimer&&(clearTimeout(autoTimer),autoTimer=null)}function resetPool(){for(var ii=0;ii<pool.length;ii++){var img=pool[ii];if(!img)continue;img.__trailToken=(img.__trailToken||0)+1,gsap.killTweensOf(img),gsap.set(img,{x:-9999,y:-9999,opacity:0,scale:inScale,rotation:0})}}function onVisibilityChange(){document.visibilityState==="hidden"?(stopAutoViewportTrail(),resetPool(),lastX=null,lastY=null,scrollLastPageY=null,pointerX=null,pointerY=null,lastTime=0,scrollLastTime=0,rafWatch&&(cancelAnimationFrame(rafWatch),rafWatch=0)):(resetPool(),useAutoViewportTrail&&watchViewportAutoState())}function watchViewportAutoState(){function tick(){if(!watchActive){rafWatch=0;return}if(useAutoViewportTrail){var rect=hoverArea.getBoundingClientRect(),vh=window.innerHeight||document.documentElement.clientHeight;rectVisible(rect,vh)?startAutoViewportTrail():stopAutoViewportTrail()}rafWatch=requestAnimationFrame(tick)}if(!watchActive||rafWatch)return;rafWatch=requestAnimationFrame(tick)}function endsWith(str,suffix){return str=String(str),suffix=String(suffix),str.indexOf(suffix,str.length-suffix.length)!==-1}function cssSizeToPx(value,referenceEl){if(value==null)return null;if(typeof value=="number")return value;value=String(value).trim();if(endsWith(value,"px"))return parseFloat(value);if(endsWith(value,"vw"))return window.innerWidth*parseFloat(value)/100;if(endsWith(value,"vh"))return window.innerHeight*parseFloat(value)/100;if(endsWith(value,"%")){var rect=referenceEl.getBoundingClientRect();return rect.width*parseFloat(value)/100}return isNaN(value)?null:parseFloat(value)}function getRandomWidthPx(){if(minWidth==null&&maxWidth==null)return null;var minPx=cssSizeToPx(minWidth,area),maxPx=cssSizeToPx(maxWidth,area);if(minPx==null&&maxPx==null)return null;minPx==null&&(minPx=maxPx),maxPx==null&&(maxPx=minPx);if(maxPx<minPx){var t=minPx;minPx=maxPx,maxPx=t}return gsap.utils.random(minPx,maxPx,1)}function applySizing(el){el.style.minWidth="",el.style.maxWidth="";if(size!=="auto"&&size!=null){el.style.width=typeof size=="number"?size+"px":String(size),el.style.height="auto";return}el.style.width="",el.style.height="auto",minWidth!=null&&minWidth!==""&&(el.style.minWidth=String(minWidth)),maxWidth!=null&&maxWidth!==""&&(el.style.maxWidth=String(maxWidth))}function whenDecoded(img,cb){img&&img.decode?img.decode().then(function(){cb()}).catch(function(){cb()}):cb()}function spawn(clientX,clientY){if(!images.length)return;var src=images[i%images.length];i++;var img=pool[poolIndex%pool.length];poolIndex++,img.parentNode!==area&&area.appendChild(img),img.__trailToken=(img.__trailToken||0)+1;var token=img.__trailToken;gsap.killTweensOf(img),applySizing(img),img.getAttribute("src")!==src&&img.setAttribute("src",src);var rect=area.getBoundingClientRect(),localX=clientX-rect.left,localY=clientY-rect.top,rot=gsap.utils.random(-rotateRange,rotateRange,.1),scl=gsap.utils.random(scaleRange[0],scaleRange[1],.01),randomWidth=getRandomWidthPx();randomWidth&&(img.style.width=randomWidth+"px",img.style.height="auto"),gsap.set(img,{x:localX,y:localY,xPercent:-50,yPercent:-50,rotation:rot,scale:inScale,opacity:inOpacity,transformOrigin:"50% 50%"}),whenDecoded(img,function(){if(img.__trailToken!==token)return;var tl=gsap.timeline({onComplete:function(){if(img.__trailToken!==token)return;gsap.set(img,{x:-9999,y:-9999,opacity:0,scale:inScale,rotation:0})}});tl.to(img,{opacity:midOpacity,scale:scl,duration:inDuration,ease:inEase},0),drift&&tl.to(img,{x:"+="+gsap.utils.random(-12,12,1),y:"+="+gsap.utils.random(-18,18,1),rotation:rot+gsap.utils.random(-6,6,.1),duration:life,ease:inEase},0),tl.to(img,{opacity:outOpacity,scale:outScale,duration:outDuration,ease:outEase},Math.max(0,life-outDuration))})}function onMove(e){pointerX=e.clientX,pointerY=e.clientY;var now=Date.now();if(now-lastTime<spawnEvery)return;var x=e.clientX,y=e.clientY;if(lastX!==null){var dx=x-lastX,dy=y-lastY,dist=Math.sqrt(dx*dx+dy*dy);if(dist<minDistance)return}lastTime=now,lastX=x,lastY=y,spawn(x,y)}function onLeave(){lastX=null,lastY=null,scrollLastPageY=null}function onPointerMove(e){pointerX=e.clientX,pointerY=e.clientY}function pointInRect(x,y,rect){return x>=rect.left&&x<=rect.right&&y>=rect.top&&y<=rect.bottom}function onScroll(){if(pointerX===null||pointerY===null)return;var now=Date.now();if(now-scrollLastTime<scrollSpawnEvery)return;var rect=hoverArea.getBoundingClientRect();if(!pointInRect(pointerX,pointerY,rect))return;var pageY=window.pageYOffset||document.documentElement.scrollTop||0;if(scrollLastPageY!==null){var scrollDelta=Math.abs(pageY-scrollLastPageY);if(scrollDelta<scrollMinDistance)return}var x=Math.min(Math.max(pointerX,rect.left+1),rect.right-1),y=Math.min(Math.max(pointerY,rect.top+1),rect.bottom-1);scrollLastTime=now,scrollLastPageY=pageY,spawn(x,y)}options=options||{};var area=options.area,hoverArea=options.hoverArea,images=options.images||[],size=options.size!=null?options.size:120,minWidth=options.minWidth!=null?options.minWidth:null,maxWidth=options.maxWidth!=null?options.maxWidth:null,life=options.life!=null?options.life:1.6,spawnEvery=options.spawnEvery!=null?options.spawnEvery:60,touchSpawnEvery=options.touchSpawnEvery!=null?options.touchSpawnEvery:spawnEvery*2,minDistance=options.minDistance!=null?options.minDistance:18,rotateRange=options.rotateRange!=null?options.rotateRange:10,scaleRange=options.scaleRange||[.9,1.05],zIndex=options.zIndex!=null?options.zIndex:10,inOpacity=options.inOpacity!=null?options.inOpacity:0,midOpacity=options.midOpacity!=null?options.midOpacity:1,outOpacity=options.outOpacity!=null?options.outOpacity:0,drift=options.drift!=null?options.drift:!0,poolSize=options.poolSize!=null?options.poolSize:16,inScale=options.inScale!=null?options.inScale:.6,outScale=options.outScale!=null?options.outScale:.6,inDuration=options.inDuration!=null?options.inDuration:.2,outDuration=options.outDuration!=null?options.outDuration:.35,inEase=options.inEase||"power3.out",outEase=options.outEase||"power3.in",
1scrollOn=options.scrollOn!=null?options.scrollOn:!0;if(!area||!hoverArea)return null;var areaStyle=window.getComputedStyle(area);areaStyle.position==="static"&&(area.style.position="relative");var lastTime=0,lastX=null,lastY=null,pointerX=null,pointerY=null,scrollLastTime=0,scrollLastPageY=null,scrollSpawnEvery=options.scrollSpawnEvery!=null?options.scrollSpawnEvery:220,scrollMinDistance=options.scrollMinDistance!=null?options.scrollMinDistance:40,touchViewportOn=options.touchViewportOn!==!1,desktopAutoOn=options.desktopAutoOn===!0,safeW=options.safeW!=null?options.safeW:0,safeH=options.safeH!=null?options.safeH:0,safeMode=options.safeMode||"avoid",particleSafeAreaOn=options.particleSafeAreaOn===!0,isTouchDevice=("ontouchstart"in window||navigator.maxTouchPoints&&navigator.maxTouchPoints>0||navigator.msMaxTouchPoints&&navigator.msMaxTouchPoints>0)&&!window.matchMedia("(pointer: fine)").matches,useAutoViewportTrail=isTouchDevice?touchViewportOn:desktopAutoOn,autoSpawnEvery=isTouchDevice?touchSpawnEvery:spawnEvery,autoTimer=null,autoRunning=!1,rafWatch=0,watchActive=!0,i=0;for(var p=0;p<images.length;p++){var preload=new Image;preload.src=images[p]}var pool=[],poolIndex=0;for(var k=0;k<poolSize;k++){var el=document.createElement("img");el.className="trail-img",applySizing(el),el.style.zIndex=zIndex,el.style.position="absolute",el.style.left="0",el.style.top="0",el.style.pointerEvents="none",el.style.userSelect="none",el.style.willChange="transform,opacity",el.__trailToken=0,area.appendChild(el),gsap.set(el,{x:-9999,y:-9999,opacity:0,scale:inScale,rotation:0,transformOrigin:"50% 50%"}),pool.push(el)}return useAutoViewportTrail?watchViewportAutoState():(hoverArea.addEventListener("mousemove",onMove),hoverArea.addEventListener("mouseleave",onLeave),scrollOn&&(window.addEventListener("mousemove",onPointerMove,{passive:!0}),window.addEventListener("scroll",onScroll,{passive:!0}))),document.addEventListener("visibilitychange",onVisibilityChange),function(){document.removeEventListener("visibilitychange",onVisibilityChange),useAutoViewportTrail||(hoverArea.removeEventListener("mousemove",onMove),hoverArea.removeEventListener("mouseleave",onLeave),scrollOn&&(window.removeEventListener("mousemove",onPointerMove),window.removeEventListener("scroll",onScroll))),stopAutoViewportTrail(),watchActive=!1,rafWatch&&(cancelAnimationFrame(rafWatch),rafWatch=0);for(var ii=0;ii<pool.length;ii++)pool[ii]&&pool[ii].parentNode&&(gsap.killTweensOf(pool[ii]),pool[ii].parentNode.removeChild(pool[ii]));pool.length=0}}function getTrailImagesFromArea(area,useParticleImages){var node=null;useParticleImages?(node=area.querySelector(".particle-images"),node||(node=area.querySelector(".trail-images"))):(node=area.querySelector(".trail-images"),node||(node=area.querySelector(".particle-images")));if(!node)return[];var json=node.textContent||node.innerText||"[]";try{return JSON.parse(json)}catch(e){return[]}}function closestPolyfill(el,selector){while(el&&el.nodeType===1){if(matchesSelector(el,selector))return el;el=el.parentNode}return null}function matchesSelector(el,selector){var p=Element.prototype,fn=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.msMatchesSelector||p.oMatchesSelector;return fn?fn.call(el,selector):!1}function getDataFromArea(area,key,fallback){if(!area||!key)return fallback;var attr=key.indexOf("data-")===0?key:"data-"+key,raw=area.getAttribute(attr);if(raw==null)return fallback;raw=String(raw).trim();if(raw==="true")return!0;if(raw==="false")return!1;if(raw==="null")return null;var num=raw.replace(",",".");if(num!==""&&isFinite(num))return parseFloat(num);if(raw.charAt(0)==="{"&&raw.charAt(raw.length-1)==="}"||raw.charAt(0)==="["&&raw.charAt(raw.length-1)==="]")try{return JSON.parse(raw)}catch(e){}return raw}if(typeof __globalDestroy=="function"){try{__globalDestroy()}catch(e){}__globalDestroy=null}var destroyers=[],areas=document.querySelectorAll(".uncode-bg-trail");for(var n=0;n<areas.length;n++){var renderArea=areas[n];if(renderArea.__trailDestroy&&typeof renderArea.__trailDestroy=="function"){try{renderArea.__trailDestroy()}catch(e){}renderArea.__trailDestroy=null}var hoverArea=renderArea.closest?renderArea.closest('.vc_row[data-parent="true"]'):closestPolyfill(renderArea,'.vc_row[data-parent="true"]');
1if(!hoverArea)continue;var isTouchDevice=("ontouchstart"in window||navigator.maxTouchPoints&&navigator.maxTouchPoints>0||navigator.msMaxTouchPoints&&navigator.msMaxTouchPoints>0)&&!window.matchMedia("(pointer: fine)").matches,desktopAutoOn=String(getDataFromArea(renderArea,"desktop-auto","no"))==="yes",mobileAutoOn=String(getDataFromArea(renderArea,"mobile-no-auto","no"))!=="yes",useParticleImages=isTouchDevice?mobileAutoOn:desktopAutoOn,images=getTrailImagesFromArea(renderArea,useParticleImages);renderArea.__trailDestroy=initImageTrail({area:renderArea,hoverArea:hoverArea,images:images,size:"auto",minWidth:getDataFromArea(renderArea,"min-width",null),maxWidth:getDataFromArea(renderArea,"max-width",null),life:getDataFromArea(renderArea,"life",1)+getDataFromArea(renderArea,"in-duration",.25)+getDataFromArea(renderArea,"out-duration",.3),spawnEvery:getDataFromArea(renderArea,"interval",100),minDistance:getDataFromArea(renderArea,"distance",150),scrollSpawnEvery:Math.max(180,getDataFromArea(renderArea,"interval",100)*2),scrollMinDistance:30,poolSize:getDataFromArea(renderArea,"count",16),inScale:0,outScale:0,inDuration:getDataFromArea(renderArea,"in-duration",.25),outDuration:getDataFromArea(renderArea,"out-duration",.3),rotateRange:getDataFromArea(renderArea,"rotate",10),inOpacity:0,midOpacity:1,outOpacity:0,drift:getDataFromArea(renderArea,"drift",!1),scrollOn:getDataFromArea(renderArea,"scroll",!1),touchViewportOn:String(getDataFromArea(renderArea,"mobile-no-auto","no"))!=="yes",touchSpawnEvery:getDataFromArea(renderArea,"mobile-interval",1750),desktopAutoOn:String(getDataFromArea(renderArea,"desktop-auto","no"))==="yes",particleSafeAreaOn:useParticleImages,safeW:getDataFromArea(renderArea,"safe-w",0),safeH:getDataFromArea(renderArea,"safe-h",0),safeMode:String(getDataFromArea(renderArea,"safe-mode","avoid")),inEase:"power3.out",outEase:"power3.in"})||null,renderArea.__trailDestroy&&destroyers.push(renderArea.__trailDestroy)}__globalDestroy=function(){for(var i=0;i<destroyers.length;i++)try{destroyers[i]()}catch(e){}destroyers.length=0}}}(),UNCODE.magneticPattern=function(){var __globalDestroy=null;return function(){function getMagneticImagesFromArea(area){var node=area.querySelector(".magnetic-images");if(!node)return[];var json=node.textContent||node.innerText||"[]";try{return JSON.parse(json)}catch(e){return[]}}function closestPolyfill(el,selector){while(el&&el.nodeType===1){if(matchesSelector(el,selector))return el;el=el.parentNode}return null}function matchesSelector(el,selector){var p=Element.prototype,fn=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.msMatchesSelector||p.oMatchesSelector;return fn?fn.call(el,selector):!1}function clamp01(v){return v<0?0:v>1?1:v}function toNumber(value,fallback){if(value==null)return fallback;var s=String(value).trim();if(!s)return fallback;s=s.replace(",",".");var m=s.match(/-?\d+(\.\d+)?/);if(!m)return fallback;var n=parseFloat(m[0]);return isFinite(n)?n:fallback}function getDataFromArea(area,key,fallback){if(!area||!key)return fallback;var attr=key.indexOf("data-")===0?key:"data-"+key,raw=area.getAttribute(attr);if(raw==null)return fallback;raw=String(raw).trim();if(raw==="true")return!0;if(raw==="false")return!1;if(raw==="null")return null;var num=raw.replace(",",".");if(num!==""&&isFinite(num))return parseFloat(num);if(raw.charAt(0)==="{"&&raw.charAt(raw.length-1)==="}"||raw.charAt(0)==="["&&raw.charAt(raw.length-1)==="]")try{return JSON.parse(raw)}catch(e){}return raw}function dedupeImages(list){var uniq=[],seen={};for(var i=0;i<list.length;i++){var src=list[i];if(src==null)continue;src=String(src),seen[src]||(seen[src]=!0,uniq.push(src))}return uniq}function rectsOverlap(a,b){return!(a.x+a.w<=b.x||b.x+b.w<=a.x||a.y+a.h<=b.y||b.y+b.h<=a.y)}function initMagneticPattern(options){function cssLengthToPx(value,el,fallback){if(value==null)return fallback;if(typeof value=="number")return isFinite(value)?value:fallback;var s=String(value).trim();if(!s)return fallback;var n=parseFloat(s.replace(",","."));if(isFinite(n)&&String(n)===s.replace(",","."))return n;var probe=document.createElement("div");probe.style.position="absolute",probe.style.visibility="hidden",probe.style.pointerEvents="none",probe.style.width=s,probe.style.height="0";var parent=el&&el.parentNode?el.parentNode:document.body;parent.appendChild(probe);var px=probe.getBoundingClientRect().width;return parent.removeChild(probe),px&&isFinite(px)?px:fallback}function lerp(a,b,t){return a+(b-a)*t}function clearAll(){var nodes=renderArea.querySelectorAll(".pattern-img");for(var i=nodes.length-1;i>=0;i--)nodes[i]&&nodes[i].parentNode&&nodes[i].parentNode.removeChild(nodes[i]);items.length=0}function buildSafeRect(virtualW,virtualH,originX,originY){if(!safeW||!safeH)return null;var szW=safeW/100*virtualW,szH=safeH/100*virtualH;return!szW||!szH?null:{x:originX+(virtualW-szW)/2,y:originY+(virtualH-szH)/2,w:szW,h:szH}}function watchPosition(){if(!watchActive)return;var rect=hoverArea.getBoundingClientRect(),top=Math.round(rect.top),height=Math.round(rect.height),movedEnough=lastTop===null||Math.abs(top-lastTop)>1||Math.abs(height-lastHeight)>1;movedEnough&&(lastTop=top,lastHeight=height,onScroll()),rafWatch=requestAnimationFrame(watchPosition)}function buildLayout(){clearAll();var rect=renderArea.getBoundingClientRect(),width=rect.width+spillX*2,height=rect.height+spillY*2,originX=-spillX,originY=-spillY,safeRect=buildSafeRect(width,height,originX,originY),imgs=unique?dedupeImages(images):images,effectiveCount=unique?Math.min(count,imgs.length):count,cols=Math.ceil(Math.sqrt(effectiveCount)),rows=Math.ceil(effectiveCount/cols),cellW=(width-padding*2)/cols,cellH=(height-padding*2)/rows,frag=document.createDocumentFragment(),placed=[];for(var i=0;i<effectiveCount;i++){var src=imgs[i%imgs.length],el=document.createElement("img");el.className="pattern-img",el.src=src,el.style.position="absolute",el.style.left="0",el.style.top="0",el.style.pointerEvents="none",el.style.userSelect="none",el.style.willChange="transform,opacity,filter",el.style.width=baseWidth+"px",el.style.height="auto";var col=i%cols,row=Math.floor(i/cols),baseCellX=originX+padding+col*cellW,baseCellY=originY+padding+row*cellH,baseX=baseCellX+cellW/2+(Math.random()-.5)*cellW*jitter,baseY=baseCellY+cellH/2+(Math.random()-.5)*cellH*jitter,placedOk=!0;function isBadCandidate(x,y){var cand={x:x,y:y,w:baseWidth+gap,h:baseWidth+gap};if(safeRect&&rectsOverlap(cand,safeRect)&&safeMode==="avoid")return!0;
1if(noOverlap)for(var p=0;p<placed.length;p++)if(rectsOverlap(cand,placed[p]))return!0;return!1}if(safeRect&&safeMode==="soft"){var best={x:baseX,y:baseY,score:-999999},softTries=Math.max(20,Math.min(120,attempts));for(var st=0;st<softTries;st++){var rxS=baseCellX+Math.random()*cellW,ryS=baseCellY+Math.random()*cellH,candS={x:rxS,y:ryS,w:baseWidth+gap,h:baseWidth+gap},score=0;if(noOverlap)for(var pp=0;pp<placed.length;pp++)if(rectsOverlap(candS,placed[pp])){score-=1e3;break}rectsOverlap(candS,safeRect)&&(score-=500);var sx=safeRect.x+safeRect.w/2,sy=safeRect.y+safeRect.h/2,dxs=rxS-sx,dys=ryS-sy;score+=Math.sqrt(dxs*dxs+dys*dys),score>best.score&&(best={x:rxS,y:ryS,score:score})}baseX=best.x,baseY=best.y,noOverlap&&isBadCandidate(baseX,baseY)&&(placedOk=!1)}else if(noOverlap||safeRect){placedOk=!1;for(var a=0;a<attempts;a++){var rx=baseCellX+Math.random()*cellW,ry=baseCellY+Math.random()*cellH;if(safeRect&&safeMode==="avoid"){var cx=rx+baseWidth/2,cy=ry+baseWidth/2;if(cx>=safeRect.x&&cx<=safeRect.x+safeRect.w&&cy>=safeRect.y&&cy<=safeRect.y+safeRect.h)continue}var cand={x:rx,y:ry,w:baseWidth+gap,h:baseWidth+gap},collides=!1;if(noOverlap)for(var p=0;p<placed.length;p++)if(rectsOverlap(cand,placed[p])){collides=!0;break}if(!collides){baseX=rx,baseY=ry,placed.push(cand),placedOk=!0;break}}if(!placedOk)continue}noOverlap&&placedOk&&placed.push({x:baseX,y:baseY,w:baseWidth+gap,h:baseWidth+gap});var rnd=Math.random(),tDepth=depthEnabled?rnd:0,tScale=depthEnabled?1-tDepth:Math.random();tScale=clamp01(tScale);var scale=lerp(scaleMin,scaleMax,tScale),moveFactor=depthEnabled?lerp(1,.25,tDepth):1,opacity=depthEnabled?lerp(opacityMax,opacityMin,tDepth):lerp(opacityMin,opacityMax,Math.random()),blur=0;enableBlur&&(blur=depthEnabled?lerp(blurMin,blurMax,tDepth):lerp(blurMin,blurMax,Math.random()));var tZ=depthEnabled?1-tDepth:scaleMax===scaleMin?1:(scale-scaleMin)/(scaleMax-scaleMin);tZ=clamp01(tZ),el.style.zIndex=zIndexBase+Math.round(zIndexRange*tZ);var rot=0;enableRotation&&(rot=gsap.utils.random(-rotationRange,rotationRange,.1)),gsap.set(el,{x:baseX,y:baseY,scale:scale,rotation:rot,opacity:opacity,filter:enableBlur?"blur("+blur.toFixed(2)+"px)":"none"}),items.push({el:el,baseX:baseX,baseY:baseY,moveFactor:moveFactor}),frag.appendChild(el)}renderArea.appendChild(frag)}function onMove(e){var rect=hoverArea.getBoundingClientRect();if(!rect.width||!rect.height)return;var nx=(e.clientX-rect.left-rect.width/2)/(rect.width/2),ny=(e.clientY-rect.top-rect.height/2)/(rect.height/2);for(var i=0;i<items.length;i++){var it=items[i],dx=-nx*moveX*it.moveFactor,dy=-ny*moveY*it.moveFactor;gsap.to(it.el,{x:it.baseX+dx,y:it.baseY+dy,duration:easeDur,ease:ease,overwrite:!0})}}function onScroll(){if(!enableScrollMotion)return;var rect=hoverArea.getBoundingClientRect(),vh=window.innerHeight||document.documentElement.clientHeight;if(!rect.height)return;if(rect.bottom<=0||rect.top>=vh){for(var k=0;k<items.length;k++){var it0=items[k];gsap.to(it0.el,{x:it0.baseX,y:it0.baseY,duration:easeLeave,ease:ease,overwrite:!0})}return}var travel=vh+rect.height,progress=(vh-rect.top)/travel;progress<0&&(progress=0),progress>1&&(progress=1);var ny=progress*2-1,nx=ny*.35;for(var i=0;i<items.length;i++){var it=items[i],dx=-nx*moveX*.35*it.moveFactor,dy=-ny*moveY*.35*it.moveFactor;gsap.to(it.el,{x:it.baseX+dx,y:it.baseY+dy,duration:easeDur,ease:ease,overwrite:!0})}}function onLeave(){for(var i=0;i<items.length;i++){var it=items[i];gsap.to(it.el,{x:it.baseX,y:it.baseY,duration:easeLeave,ease:ease,overwrite:!0})}}function updateLayoutSizeCache(){var r=renderArea.getBoundingClientRect();lastLayoutW=Math.round(r.width),lastLayoutH=Math.round(r.height)}function shouldRebuildLayout(){var r=renderArea.getBoundingClientRect(),newW=Math.round(r.width),newH=Math.round(r.height),dw=Math.abs(newW-lastLayoutW),dh=Math.abs(newH-lastLayoutH),mustRebuild=dw>1||dh>80;return mustRebuild&&(lastLayoutW=newW,lastLayoutH=newH),mustRebuild}function onWindowResize(){shouldRebuildLayout()&&buildLayout(),onScroll()}options=options||{};var renderArea=options.area,hoverArea=options.hoverArea,images=options.images||[];if(!renderArea||!hoverArea||!images.length)return null;var count=options.count!=null?options.count:12,padding=options.padding!=null?options.padding:24,jitter=options.jitter!=null?options.jitter:.35,rawMoveX=options.moveX!=null?options.moveX:200,rawMoveY=options.moveY!=null?options.moveY:150,rawSpillX=options.spillX!=null?options.spillX:0,rawSpillY=options.spillY!=null?options.spillY:0,moveX=cssLengthToPx(rawMoveX,hoverArea,200),moveY=cssLengthToPx(rawMoveY,hoverArea,150),spillX=cssLengthToPx(rawSpillX,renderArea,0),spillY=cssLengthToPx(rawSpillY,renderArea,0),easeDur=options.easeDur!=null?options.easeDur:.6,easeLeave=options.easeLeave!=null?options.easeLeave:1.2,ease=options.ease||"power3.out",opacityMin=options.opacityMin!=null?options.opacityMin:.25,opacityMax=options.opacityMax!=null?options.opacityMax:.9,enableBlur=options.enableBlur===!0,blurMin=options.blurMin!=null?options.blurMin:0,blurMax=options.blurMax!=null?options.blurMax:6,scaleMin=options.scaleMin!=null?options.scaleMin:.6,scaleMax=options.scaleMax!=null?options.scaleMax:1,depthMin=options.depthMin!=null?options.depthMin:.3,depthMax=options.depthMax!=null?options.depthMax:1,unique=options.unique===!0,zIndexBase=options.zIndexBase!=null?options.zIndexBase:1,zIndexRange=options.zIndexRange!=null?options.zIndexRange:30,enableRotation=options.enableRotation!==!1,rotationRange=options.rotationRange!=null?options.rotationRange:8,noOverlap=options.noOverlap===!0,attempts=options.attempts!=null?options.attempts:120,gap=options.gap!=null?options.gap:8,baseWidth=options.baseWidth!=null?options.baseWidth:300,depthEnabled=options.flatDepth!==!0,enableScrollMotion=options.scrollMotion!==!1,safeW=options.safeW!=null?options.safeW:0,safeH=options.safeH!=null?options.safeH:0,safeMode=options.safeMode||"avoid",items=[];window.getComputedStyle(renderArea).position==="static"&&(renderArea.style.position="relative");
1var rafWatch=0,lastTop=null,lastHeight=null,watchActive=!0;buildLayout();var sizeObserver=null,lastLayoutW=0,lastLayoutH=0;return updateLayoutSizeCache(),"ResizeObserver"in window&&(sizeObserver=new ResizeObserver(function(){shouldRebuildLayout()&&buildLayout(),onScroll()}),sizeObserver.observe(renderArea)),hoverArea.addEventListener("mousemove",onMove),hoverArea.addEventListener("mouseleave",onLeave),window.addEventListener("resize",onWindowResize),window.addEventListener("scroll",onScroll,{passive:!0}),onScroll(),watchPosition(),function(){hoverArea.removeEventListener("mousemove",onMove),hoverArea.removeEventListener("mouseleave",onLeave),window.removeEventListener("resize",onWindowResize),window.removeEventListener("scroll",onScroll),sizeObserver&&(sizeObserver.disconnect(),sizeObserver=null),watchActive=!1,rafWatch&&(cancelAnimationFrame(rafWatch),rafWatch=0),clearAll()}}if(typeof __globalDestroy=="function"){try{__globalDestroy()}catch(e){}__globalDestroy=null}var destroyers=[],areas=document.querySelectorAll(".uncode-bg-magnetic");for(var n=0;n<areas.length;n++){var renderArea=areas[n];if(renderArea.__magneticDestroy&&typeof renderArea.__magneticDestroy=="function"){try{renderArea.__magneticDestroy()}catch(e){}renderArea.__magneticDestroy=null}var hoverArea=renderArea.closest?renderArea.closest('.vc_row[data-parent="true"]'):closestPolyfill(renderArea,'.vc_row[data-parent="true"]');if(!hoverArea)continue;var images=getMagneticImagesFromArea(renderArea);if(!images.length)continue;function cssLengthToPx(value,el,fallback){if(value==null)return fallback;if(typeof value=="number")return isFinite(value)?value:fallback;var s=String(value).trim();if(!s)return fallback;var n=parseFloat(s.replace(",","."));if(isFinite(n)&&String(n)===s.replace(",","."))return n;var probe=document.createElement("div");probe.style.position="absolute",probe.style.visibility="hidden",probe.style.pointerEvents="none",probe.style.width=s,probe.style.height="0";var parent=el&&el.parentNode?el.parentNode:document.body;parent.appendChild(probe);var px=probe.getBoundingClientRect().width;return parent.removeChild(probe),px&&isFinite(px)?px:fallback}var rawMin=getDataFromArea(renderArea,"min-width","100px"),rawMax=getDataFromArea(renderArea,"max-width","300px"),minW=cssLengthToPx(rawMin,renderArea,100),maxW=cssLengthToPx(rawMax,renderArea,300);if(maxW<minW){var tmp=minW;minW=maxW,maxW=tmp}var scaleMin=maxW>0?minW/maxW:1,rawMoveX=getDataFromArea(renderArea,"move-x","400px"),rawMoveY=getDataFromArea(renderArea,"move-y","300px"),rawSpillX=getDataFromArea(renderArea,"spill-x",null),rawSpillY=getDataFromArea(renderArea,"spill-y",null);if(rawSpillX==null||rawSpillX==="")typeof rawMoveX=="number"?rawSpillX=rawMoveX/2:rawSpillX="calc(("+rawMoveX+") / 2)";if(rawSpillY==null||rawSpillY==="")typeof rawMoveY=="number"?rawSpillY=rawMoveY/2:rawSpillY="calc(("+rawMoveY+") / 2)";renderArea.__magneticDestroy=initMagneticPattern({area:renderArea,hoverArea:hoverArea,images:images,count:toNumber(getDataFromArea(renderArea,"count",16),16),padding:27,jitter:.35,moveX:rawMoveX,moveY:rawMoveY,spillX:rawSpillX,spillY:rawSpillY,easeDur:.7,easeLeave:1.7,ease:"power3.out",opacityMin:toNumber(getDataFromArea(renderArea,"min-opacity",.25),.25),opacityMax:toNumber(getDataFromArea(renderArea,"max-opacity",1),1),zIndexBase:1,zIndexRange:30,enableRotation:!1,rotationRange:8,enableBlur:String(getDataFromArea(renderArea,"blur","no"))==="yes",blurMin:0,blurMax:1.5,baseWidth:maxW,scaleMin:scaleMin,scaleMax:1,flatDepth:String(getDataFromArea(renderArea,"depth","no"))!=="yes",noOverlap:String(getDataFromArea(renderArea,"no-overlap","no"))==="yes",attempts:toNumber(getDataFromArea(renderArea,"attempts",120),120),gap:toNumber(getDataFromArea(renderArea,"gap",8),8),depthMin:.25,depthMax:1,unique:String(getDataFromArea(renderArea,"unique","no"))==="yes",safeW:toNumber(getDataFromArea(renderArea,"safe-w",0),0),safeH:toNumber(getDataFromArea(renderArea,"safe-h",0),0),safeMode:String(getDataFromArea(renderArea,"safe-mode","avoid")),scrollMotion:String(getDataFromArea(renderArea,"stop-scroll","no"))!=="yes"})||null,renderArea.__magneticDestroy&&destroyers.push(renderArea.__magneticDestroy)}__globalDestroy=function(){for(var i=0;i<destroyers.length;
1i++)try{destroyers[i]()}catch(e){}destroyers.length=0}}}(),UNCODE.thumbDrop=function(){var __globalDestroy=null;return function(){function getDropImagesFromArea(area){var node=area.querySelector("script.drop-images");if(!node)return[];var json=node.textContent||node.innerText||"[]";try{return JSON.parse(json)}catch(e){return[]}}function matchesSelector(el,selector){var p=Element.prototype,fn=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.msMatchesSelector||p.oMatchesSelector;return fn?fn.call(el,selector):!1}function closestPolyfill(el,selector){while(el&&el.nodeType===1){if(matchesSelector(el,selector))return el;el=el.parentNode}return null}function debounce(fn,wait){var t=null;return function(){var ctx=this,args=arguments;clearTimeout(t),t=setTimeout(function(){fn.apply(ctx,args)},wait)}}function clamp(v,a,b){return v<a?a:v>b?b:v}function toNumber(value,fallback){if(value==null)return fallback;var s=String(value).trim();if(!s)return fallback;s=s.replace(",",".");var m=s.match(/-?\d+(\.\d+)?/);if(!m)return fallback;var n=parseFloat(m[0]);return isFinite(n)?n:fallback}function cssLengthToPx(value,el,fallback){if(value==null)return fallback;if(typeof value=="number")return isFinite(value)?value:fallback;var s=String(value).trim();if(!s)return fallback;var n=parseFloat(s.replace(",","."));if(isFinite(n)&&String(n)===s.replace(",","."))return n;var probe=document.createElement("div");probe.style.position="absolute",probe.style.visibility="hidden",probe.style.pointerEvents="none",probe.style.width="0",probe.style.height="0";var parent=el&&el.parentNode?el.parentNode:document.body;parent.appendChild(probe),probe.style.width=s;var px=probe.getBoundingClientRect().width;return parent.removeChild(probe),!px||!isFinite(px)?fallback:px}function getDataFromArea(area,key,fallback){if(!area||!key)return fallback;var attr=key.indexOf("data-")===0?key:"data-"+key,raw=area.getAttribute(attr);if(raw==null)return fallback;raw=String(raw).trim();if(raw==="true")return!0;if(raw==="false")return!1;if(raw==="null")return null;var num=raw.replace(",",".");if(num!==""&&isFinite(num))return parseFloat(num);if(raw.charAt(0)==="{"&&raw.charAt(raw.length-1)==="}"||raw.charAt(0)==="["&&raw.charAt(raw.length-1)==="]")try{return JSON.parse(raw)}catch(e){}return raw}function raf2(cb){requestAnimationFrame(function(){requestAnimationFrame(function(){cb()})})}function normalizeDragMode(v){if(v==null)return"";if(v===!0)return"drag";var s=String(v).trim().toLowerCase();return s?s==="1"||s==="yes"||s==="true"?"drag":s==="drag"||s==="hover"?s:"":""}function initMatterDrop(options){function updateRects(){bounds.w=area.offsetWidth,bounds.h=area.offsetHeight}function removeWalls(){if(!walls)return;World.remove(engine.world,walls.floor),World.remove(engine.world,walls.left),World.remove(engine.world,walls.right),walls=null}function createWalls(){updateRects();var w=bounds.w,h=bounds.h;if(!w||!h)return!1;var t=wallThickness,floorY=h+t*.5+floorPadding,floor=Bodies.rectangle(w*.5,floorY,w+t*2,t,{isStatic:!0,restitution:0,friction:1}),left=Bodies.rectangle(-t*.5,h*.5,t,h+t*2,{isStatic:!0,restitution:0,friction:1}),right=Bodies.rectangle(w+t*.5,h*.5,t,h+t*2,{isStatic:!0,restitution:0,friction:1});return walls={floor:floor,left:left,right:right},World.add(engine.world,[floor,left,right]),!0}function setTransform(el,x,y,a){el.style.transform="translate3d("+x+"px,"+y+"px,0) rotate("+a+"deg)"}function preloadAll(list){for(var i=0;i<list.length;i++){var im=new Image;im.src=list[i]}}function recalcSpawnSizes(){if(!options.rawMin&&!options.rawMax)return;var newMin=cssLengthToPx(options.rawMin,area,sizeMin),newMax=cssLengthToPx(options.rawMax,area,sizeMax);if(newMax<newMin){var t=newMin;newMin=newMax,newMax=t}sizeMin=newMin,sizeMax=newMax}function setupDrag(){if(!enableDrag||!Mouse||!MouseConstraint)return;var mouse=Mouse.create(area);mouse.pixelRatio=1,mouseConstraint=MouseConstraint.create(engine,{mouse:mouse,constraint:{stiffness:dragStiffness,damping:dragDamping,render:{visible:!1}}}),World.add(engine.world,mouseConstraint),dragMousemoveHandler=function(){mouse.offset.x=0,mou
1se.offset.y=0},area.addEventListener("mousemove",dragMousemoveHandler),area.style.userSelect="none",area.style.webkitUserSelect="none"}function setupHoverRepel(){if(!enableHoverRepel)return;area.style.pointerEvents="auto",hoverMoveHandler=function(e){var r=area.getBoundingClientRect();hoverX=e.clientX-r.left,hoverY=e.clientY-r.top,hoverActive=!0},hoverLeaveHandler=function(){hoverActive=!1,hoverX=null,hoverY=null},area.addEventListener("mousemove",hoverMoveHandler),area.addEventListener("mouseleave",hoverLeaveHandler)}function getSpawnX(w){var minX=w*.5,maxX=Math.max(minX,bounds.w-w*.5);if(spawnXMode==="fixed"){var pct=clamp(spawnXFixed,0,100)/100,baseX=minX+(maxX-minX)*pct;if(spawnXJitter>0){var jitterPx=bounds.w*spawnXJitter/100*(Math.random()-.5);baseX+=jitterPx}return clamp(baseX,minX,maxX)}if(spawnXMode==="sequence"){var total=Math.max(1,count);if(total===1)return(minX+maxX)*.5;var progress=duplicateImages?spawned%total/(total-1):spawned/Math.max(1,total-1);return minX+(maxX-minX)*progress}return minX+Math.random()*Math.max(0,maxX-minX)}function spawnOne(){if(!alive)return;if(spawned>=count)return;updateRects();if(!bounds.w||!bounds.h)return;if(!duplicateImages&&spawned>=images.length)return;var src=duplicateImages?images[spawned%images.length]:images[spawned],w=Math.round(Matter.Common.random(sizeMin,sizeMax)),x=getSpawnX(w),img=new Image;img.onload=function(){if(!alive)return;var css=getComputedStyle(area),ratioVar=(css.getPropertyValue("--bgm-ratio")||"").trim(),ratio=null;if(ratioVar){var parts=ratioVar.split("/");if(parts.length===2){var rw=parseFloat(parts[0]),rh=parseFloat(parts[1]);rw>0&&rh>0&&(ratio=rh/rw)}}var r=ratio;r||(img.naturalWidth&&img.naturalHeight?r=img.naturalHeight/img.naturalWidth:r=1);var h=Math.max(20,Math.round(w*r)),startY=-(h+300),el=document.createElement("img");el.className="drop-img",el.setAttribute("src",src),el.style.width=w+"px",el.style.height=h+"px",el.style.position="absolute",el.style.left="0",el.style.top="0",el.style.willChange="transform",el.style.pointerEvents="none",el.style.userSelect="none",el.style.opacity="0",setTransform(el,x-w*.5,startY-h*.5,0),area.appendChild(el);var body=Bodies.rectangle(x,startY,w,h,{restitution:restitution,frictionAir:frictionAir,friction:friction,density:density});Body.setVelocity(body,{x:(Math.random()-.5)*4,y:Math.random()*2}),World.add(engine.world,body),items.push({el:el,body:body,w:w,h:h}),requestAnimationFrame(function(){el.style.opacity="1"}),setTransform(el,body.position.x-w*.5,body.position.y-h*.5,body.angle*180/Math.PI)},img.onerror=function(){},img.src=src,spawned++}function applyHoverRepel(){if(!enableHoverRepel)return;if(!hoverActive||hoverX==null||hoverY==null)return;var radius=hoverRadius,r2=radius*radius;for(var i=0;i<items.length;i++){var b=items[i].body,dx=b.position.x-hoverX,dy=b.position.y-hoverY,d2=dx*dx+dy*dy;if(d2>r2||d2<.001)continue;var d=Math.sqrt(d2),nx=dx/d,ny=dy/d,strength=(1-d/radius)*25;Body.setVelocity(b,{x:b.velocity.x+nx*strength,y:b.velocity.y+ny*strength-strength*.6});for(var j=0;j<items.length;j++){if(i===j)continue;var nb=items[j].body,ddx=nb.position.x-b.position.x,ddy=nb.position.y-b.position.y,dist=Math.sqrt(ddx*ddx+ddy*ddy);if(dist<120&&dist>.001){var nnx=ddx/dist,nny=ddy/dist;Body.setVelocity(nb,{x:nb.velocity.x+nnx*2,y:nb.velocity.y+nny*2})}}}}function tick(){if(!alive)return;applyHoverRepel();if(mouseConstraint&&mouseConstraint.body){var dragged=mouseConstraint.body;for(var di=0;di<items.length;di++)if(items[di].body===dragged){var halfW=items[di].w*.5,halfH=items[di].h*.5,clampedX=clamp(dragged.position.x,halfW+2,bounds.w-halfW-2),clampedY=clamp(dragged.position.y,halfH+2,bounds.h-halfH-2);if(clampedX!==dragged.position.x||clampedY!==dragged.position.y)Body.setPosition(dragged,{x:clampedX,y:clampedY}),Body.setVelocity(dragged,{x:0,y:0});break}}Engine.update(engine,1e3/60);var sideLimit=Math.max(120,wallThickness*1.5),bottomLimit=bounds.h+Math.max(160,wallThickness*1.5);for(var i=0;i<items.length;i++){var it0=items[i],b0=it0.body,halfW=it0.w*.5,halfH=it0.h*.5,minX=halfW+2,maxX=bounds.w-halfW-2,rescueY=Math.max(halfH+2,20),floorY=bounds.h-halfH-2,outLeft=b0.position.x<-sideLimit,outRight=b0.position.x>bounds.w+sideLimit,outBottom=b0.position.y>bottomLimit;if(outLeft||outRight||outBottom){var safeX=clamp(b0.position.x,minX,maxX),safeY=clamp(b0.position.y,rescueY,floorY);outBottom&&(safeY=floorY),Body.setPosition(b0,{x:safeX,y:safeY}),Body.setVelocity(b0,{x:0,y:0}),Body.setAngularVelocity(b0,0)}}for(var j=0;j<items.length;j++){var it=items[j],b=it.body;setTransform(it.el,b.position.x-it.w*.5,b.position.y-it.h*.5,b.angle*180/Math.PI)}rafId=requestAnimationFrame(tick)}function resetToNewSize(){if(!started)return;removeWalls();if(!createWalls())return;updateRects();var w=bounds.w,h=bounds.h;for(var i=0;i<items.length;i++){var it=items[i],bw=it.w,bh=it.h,px=clamp(it.body.position.x,bw*.5+2,w-bw*.5-2),py=clamp(it.body.position.y,-2e3,h-bh*.5-2);Body.setPosition(it.body,{x:px,y:py})}}function startSizeObserver(){updateRects(),lastW=bounds.w,lastH=bounds.h;if("ResizeObserver"in window){ro=new ResizeObserver(function(){raf2(function(){updateRects();if(bounds.w!==lastW||bounds.h!==lastH)lastW=bounds.w,lastH=bounds.h,resetToNewSize()})}),ro.observe(area);return}pollTimer=setInterval(function(){updateRects();if(bounds.w!==lastW||bounds.h!==lastH)lastW=bounds.w,lastH=bounds.h,resetToNewSize()},200)}function stopSizeObserver(){ro&&(ro.disconnect(),ro=null),pollTimer&&(clearInterval(pollTimer),pollTimer=null)}function startSpawning(){function check(){if(!alive)return;updateRects();if(!bounds.w||!bounds.h){tries++,tries<40&&setTimeout(check,150);return}bounds.w===prevW&&bounds.h===prevH?stable++:(stable=0,prevW=bounds.w,prevH=bounds.h);if(stable<2){setTimeout(check,150);return}started=!0,removeWalls();if(!createWalls()){started=!1,setTimeout(check,200);return}setupDrag(),setupHoverRepel(),tick();var start=function(){spawnOne(),spawnTimer=setInterval(function(){if(!alive)return;if(spawned>
1=count){clearInterval(spawnTimer),spawnTimer=null;return}spawnOne()},spawnEvery)};startDelay>0?setTimeout(start,startDelay):start()}if(!alive)return;if(started)return;var tries=0,stable=0,prevW=0,prevH=0;check()}function setupViewportTrigger(){if("IntersectionObserver"in window){io=new IntersectionObserver(function(entries){for(var i=0;i<entries.length;i++)if(entries[i].isIntersecting){startSpawning(),once&&io&&(io.disconnect(),io=null);break}},{root:null,rootMargin:rootMargin,threshold:threshold}),io.observe(surface);return}scrollHandler=debounce(function(){var r=surface.getBoundingClientRect(),vh=window.innerHeight||document.documentElement.clientHeight;r.top<vh*.9&&r.bottom>vh*.1&&(startSpawning(),once&&scrollHandler&&(window.removeEventListener("scroll",scrollHandler),scrollHandler=null))},100),window.addEventListener("scroll",scrollHandler),scrollHandler()}options=options||{};var area=options.area,surface=options.surface,images=options.images||[],maxAvailable=images.length,duplicateImages=options.duplicateImages!==!1,count=options.count!=null?options.count:Math.min(18,maxAvailable);!duplicateImages&&count>maxAvailable&&(count=maxAvailable);var sizeMin=options.sizeMin!=null?options.sizeMin:140,sizeMax=options.sizeMax!=null?options.sizeMax:260,spawnEvery=options.spawnEvery!=null?options.spawnEvery:160,startDelay=options.startDelay!=null?options.startDelay:0,gravityY=options.gravityY!=null?options.gravityY:1.25,restitution=options.restitution!=null?options.restitution:.35,frictionAir=options.frictionAir!=null?options.frictionAir:.02,friction=options.friction!=null?options.friction:.25,density=options.density!=null?options.density:.001,wallThickness=options.wallThickness!=null?options.wallThickness:80,floorPadding=options.floorPadding!=null?options.floorPadding:0,rotateRange=options.rotateRange!=null?options.rotateRange:18,once=options.once!==!1,threshold=options.threshold!=null?options.threshold:.25,rootMargin=options.rootMargin||"0px 0px -10% 0px",dragMode=normalizeDragMode(options.enableDrag),enableDrag=dragMode==="drag",enableHoverRepel=dragMode==="hover",dragStiffness=options.dragStiffness!=null?options.dragStiffness:.18,dragDamping=options.dragDamping!=null?options.dragDamping:.06,hoverRadius=options.hoverRadius!=null?options.hoverRadius:260,spawnXMode=String(options.spawnXMode||"random").toLowerCase(),spawnXFixed=options.spawnXFixed!=null?options.spawnXFixed:50,spawnXJitter=options.spawnXJitter!=null?options.spawnXJitter:0;if(!area||!surface||!images.length)return null;var cs=window.getComputedStyle(area);cs.position==="static"&&(area.style.position="absolute"),area.style.left||(area.style.left="0"),area.style.top||(area.style.top="0"),area.style.width||(area.style.width="100%"),area.style.height||(area.style.height="100%"),area.style.pointerEvents=enableDrag?"auto":"none";var engine=Engine.create();engine.enableSleeping=!1,engine.gravity.y=gravityY;var alive=!0,started=!1,bounds={w:0,h:0}
1,walls=null,items=[],spawnTimer=null,spawned=0,ro=null,pollTimer=null,lastW=0,lastH=0,mouseConstraint=null,rafId=0,io=null,scrollHandler=null,dragMousemoveHandler=null,hoverMoveHandler=null,hoverLeaveHandler=null,hoverX=null,hoverY=null,hoverActive=!1;return recalcSpawnSizes(),preloadAll(images),startSizeObserver(),setupViewportTrigger(),function destroy(){alive=!1,rafId&&(cancelAnimationFrame(rafId),rafId=0),stopSizeObserver();if(io){try{io.disconnect()}catch(e){}io=null}scrollHandler&&(window.removeEventListener("scroll",scrollHandler),scrollHandler=null),spawnTimer&&(clearInterval(spawnTimer),spawnTimer=null),dragMousemoveHandler&&(area.removeEventListener("mousemove",dragMousemoveHandler),dragMousemoveHandler=null),hoverMoveHandler&&(area.removeEventListener("mousemove",hoverMoveHandler),hoverMoveHandler=null),hoverLeaveHandler&&(area.removeEventListener("mouseleave",hoverLeaveHandler),hoverLeaveHandler=null),removeWalls(),mouseConstraint&&(World.remove(engine.world,mouseConstraint),mouseConstraint=null);for(var i=0;i<items.length;i++){try{World.remove(engine.world,items[i].body)}catch(e){}items[i].el&&items[i].el.parentNode&&items[i].el.parentNode.removeChild(items[i].el)}items.length=0;var nodes=area.querySelectorAll(".drop-img");for(var n=nodes.length-1;n>=0;n--)nodes[n]&&nodes[n].parentNode&&nodes[n].parentNode.removeChild(nodes[n])}}if(!window.Matter)return;if(typeof __globalDestroy=="function"){try{__globalDestroy()}catch(e){}__globalDestroy=null}var Engine=Matter.Engine,World=Matter.World,Bodies=Matter.Bodies,Body=Matter.Body,Mouse=Matter.Mouse,MouseConstraint=Matter.MouseConstraint,destroyers=[],areas=document.querySelectorAll(".uncode-bg-drop");for(var n=0;n<areas.length;n++){var renderArea=areas[n];if(renderArea.__thumbDropDestroy&&typeof renderArea.__thumbDropDestroy=="function"){try{renderArea.__thumbDropDestroy()}catch(e){}renderArea.__thumbDropDestroy=null}var surface=renderArea.closest?renderArea.closest('.vc_row[data-parent="true"]'):closestPolyfill(renderArea,'.vc_row[data-parent="true"]');if(!surface)continue;var images=getDropImagesFromArea(renderArea);if(!images.length)continue;var rawMin=getDataFromArea(renderArea,"min-width","140px"),rawMax=getDataFromArea(renderArea,"max-width","260px"),minW=cssLengthToPx(rawMin,renderArea,140),maxW=cssLengthToPx(rawMax,renderArea,260);if(maxW<minW){var tmp=minW;minW=maxW,maxW=tmp}renderArea.__thumbDropDestroy=initMatterDrop({area:renderArea,surface:surface,images:images,rawMin:rawMin,rawMax:rawMax,count:toNumber(getDataFromArea(renderArea,"count",14),14),duplicateImages:String(getDataFromArea(renderArea,"unique","no"))!=="yes",sizeMin:minW,sizeMax:maxW,spawnEvery:toNumber(getDataFromArea(renderArea,"interval",160),160),startDelay:toNumber(getDataFromArea(renderArea,"delay",0),0),gravityY:toNumber(getDataFromArea(renderArea,"gravity",1.25),1.25),restitution:toNumber(getDataFromArea(renderArea,"restitution",.35),.35),frictionAir:toNumber(getDataFromArea(renderArea,"friction-air",.02),.02),friction:toNumber(getDataFromArea(renderArea,"friction",.25),.25),density:toNumber(getDataFromArea(renderArea,"density",.001),.001),wallThickness:toNumber(getDataFromArea(renderArea,"wall",80),80),floorPadding:toNumber(getDataFromArea(renderArea,"floor",0),0),rotateRange:toNumber(getDataFromArea(renderArea,"rotate",18),18),once:String(getDataFromArea(renderArea,"once","yes"))!=="no",threshold:toNumber(getDataFromArea(renderArea,"threshold",.25),.25),rootMargin:String(getDataFromArea(renderArea,"root-margin","0px 0px -10% 0px")),enableDrag:String(getDataFromArea(renderArea,"interactive","")),dragStiffness:toNumber(getDataFromArea(renderArea,"drag-stiffness",.18),.18),dragDamping:toNumber(getDataFromArea(renderArea,"drag-damping",.06),.06),hoverRadius:toNumber(getDataFromArea(renderArea,"hover-radius",50),50),spawnXMode:String(getDataFromArea(renderArea,"spawn-x-mode","random")),spawnXFixed:toNumber(getDataFromArea(renderArea,"spawn-x-fixed",50),50),spawnXMode:String(getDataFromArea(renderArea,"spawn-x-mode","random")),spawnXFixed:toNumber(getDataFromArea(renderArea,"spawn-x-fixed",50),50),spawnXJitter:toNumber(getDataFromArea(renderArea,"spawn-x-jitter",13),13)})||null,renderArea.__thumbDropDestroy&&destroyers.push(renderArea.__thumbDropDestroy)}__globalDestroy=function(){for(var i=0;i<destroyers.length;
1i++)try{destroyers[i]()}catch(e){}destroyers.length=0}}}(),UNCODE.preventDoubleTransition=function(){$(".sticky-element .animate_when_almost_visible").each(function(){var $el=$(this).one("webkitAnimationEnd mozAnimationEnd oAnimationEnd animationEnd",function(e){$el.addClass("do_not_reanimate")})})},UNCODE.checkScrollForTabs=function(){var goToSection=window.location.hash.replace("#",""),$index;goToSection=goToSection.replace(/[^-A-Za-z0-9+&@#/%?=~_]/g,""),goToSection=encodeURIComponent(goToSection),$index=$('[data-id="'+goToSection+'"]').closest(".uncode-tabs, .uncode-accordion"),$index.attr("data-parent","parent-"+goToSection),window.location.hash!=undefined&&window.location.hash!=""&&requestTimeout(function(){scrollBody("parent-"+goToSection)},500),$('.page-body a[href^="#"]').not("[data-tab-history]").not(".scroll-top").click(function(e){var hash=e.currentTarget.hash;$('.uncode-tabs a[href="'+hash+'"][data-tab-history]').length&&($('a[href="'+hash+'"][data-tab-history]').click(),scrollBody(hash))});var scrollBody=function(index){var getSection=$('a[href="'+index+'"][data-tab-history]'),scrollTo,safeGap=27;getSection.length||(getSection=$('div[data-parent="'+index+'"]'),getSection.attr("data-target")=="row"&&(getSection=getSection.closest(".vc_row"),safeGap=0));if(typeof getSection=="undefined"||!getSection.length)return;var body=$("html, body"),bodyTop=document.documentElement.scrollTop||document.body.scrollTop,delta=bodyTop-(getSection.length?getSection.offset().top:0),getOffset=UNCODE.get_scroll_offset();if(typeof getSection.offset()=="undefined")return;scrollTo=getSection.offset().top-safeGap,scrollTo-=getOffset;var scrollSpeed=SiteParameters.constant_scroll=="on"?Math.abs(delta)/parseFloat(SiteParameters.scroll_speed):SiteParameters.scroll_speed;scrollSpeed<1e3&&SiteParameters.constant_scroll=="on"&&(scrollSpeed=1e3),index!=0&&(UNCODE.scrolling=!0),scrollSpeed==0?(body.scrollTop(delta>0?scrollTo-.1:scrollTo),UNCODE.scrolling=!1):body.animate({scrollTop:delta>0?scrollTo-.1:scrollTo},scrollSpeed,"easeInOutQuad",function(){requestTimeout(function(){UNCODE.scrolling=!1,getOffset!=UNCODE.get_scroll_offset()&&scrollBody(index)},100)})}},UNCODE.printScreen=function(){function changeMediaStyle(){clearRequestTimeout(setResize),setResize=requestTimeout(function(){var $head=document.getElementsByTagName("head")[0],$newStyle=document.createElement("style"),winW=window.innerWidth,printH=window.innerHeight;$newStyle.setAttribute("type","text/css"),$newStyle.setAttribute("media","print"),$newStyle.appendChild(document.createTextNode("@page { size: "+winW+"px "+printH+"px; margin: 0; }")),inlineMediaStyle!=null?$head.replaceChild($newStyle,inlineMediaStyle):$head.appendChild($newStyle),inlineMediaStyle=$newStyle},1e3)}var inlineMediaStyle=null,setResize;changeMediaStyle(),window.addEventListener("resize",changeMediaStyle)},UNCODE.fullPage=function(){if(!UNCODE.isFullPage&&!UNCODE.isFullPageSnap||SiteParameters.is_frontend_editor)return $("body").removeClass("uncode-fullpage").removeClass("uncode-fullpage-slide").removeClass("fp-waiting"),!1;requestTimeout(function(){window.scrollTo(0,0)},10);var $masthead=$("#masthead"),$logo=$("#logo-container-mobile"),$logolink=$("[data-minheight]",$logo),logoMinScale=$logolink.data("minheight"),logoMaxScale=$("[data-maxheight]",$logo).data("maxheight"),$container=$(".main-container .post-content"),$rows=$container.find(".vc_row[data-parent]").addClass("uncode-scroll-lock fp-auto-height"),$header=$("#page-header").addClass("uncode-scroll-lock fp-auto-height"),headerName=$(".vc_row[data-name]",$header).attr("data-name"),headerLabel=$(".vc_row[data-label]",$header).attr("data-label"),headerWithOpacity=$(".header-scroll-opacity",$header).length,menuHidden=!$("body").hasClass("vmenu")&&$("body").hasClass("uncode-fp-menu-hide")?!0:!1,$footer=$("#colophon").addClass("uncode-scroll-lock fp-auto-height"),scrollBar=!0,effect,animationEndTimeOut,fp_anim_time=900,fp_easing="cubic-bezier(0.37, 0.31, 0.2, 0.85)",is_scrolling=!1,dataNames=[],is_first=!0,no_history=$("body").hasClass("uncode-scroll-no-history"),theres_footer=!0;($("> div",$footer).outerHeight()<2||!$footer.length)&&$("> div",$footer).each(function(index,el){$(el).outerHeight()<2?theres_footer=!1:theres_footer=!0}),$footer.length||(theres_footer=!1),UNCODE.isFullPageSnap||($("body").hasClass("uncode-fullpage-zoom")?effect="scaleDown":$
1("body").hasClass("uncode-fullpage-parallax")?effect="moveparallax":effect="movecurtain"),$("body").hasClass("uncode-fullpage-trid")&&(fp_anim_time*=2),$header.length&&(headerName!==""&&$header.attr("data-name",headerName),headerLabel!==""&&$header.attr("data-label",headerLabel),$container.prepend($header)),theres_footer&&($container.append($footer),$footer.attr("data-anchor",SiteParameters.slide_footer).data("name",SiteParameters.slide_footer),$("aside.widget ul",$footer).addClass("no-list"));var $all=$rows.add($header);theres_footer&&($all=$all.add($footer)),$all.each(function(index,row){index===0&&$(row).addClass("uncode-scroll-active")});var isMobile=SiteParameters.uncode_force_onepage_dots?!1:UNCODE.isMobile;!isMobile&&!$("body").hasClass("uncode-scroll-no-dots")&&$("<ul class='onepage-pagination'></ul>").prependTo("body"),$all.each(function(index,val){var getName=$(val).data("name"),label;if(typeof getName=="undefined"||getName=="undefined")getName=SiteParameters.slide_name+"-"+index;dataNames.indexOf(getName)>0&&(getName+="_"+index,$(val).data("name",getName)),dataNames.push(getName),$(val).attr("data-section",index+1).attr("data-anchor",getName),typeof $(val).attr("data-label")!="undefined"?label=$(val).attr("data-label"):label="";if($(val).is($footer))return;label!=""?(label='<span class="cd-label style-accent-bg border-accent-color">'+label+"</span>",$("ul.onepage-pagination").append("<li><a class='one-dot-link' aria-label='"+label+"' data-index='"+index+"' href='#"+getName+"'><span class='cd-dot-cont'><span class='cd-dot'></span></span>"+label+"</a></li>")):label==""&&$("body").hasClass("uncode-empty-dots")&&$("ul.onepage-pagination").append("<li><a class='one-dot-link' aria-label='"+SiteParameters.uncode_one_dot_label+" "+index+"' data-index='"+index+"' href='#"+getName+"'><span class='cd-dot-cont'><span class='cd-dot'></span></span></a></li>")});var checkVisible=function(el,off){typeof jQuery=="function"&&el instanceof jQuery&&(el=el[0]),off=typeof off=="undefined"?50:off;var rect=el.getBoundingClientRect();return rect.top>=0&&rect.top+off<=(window.innerHeight||document.documentElement.clientHeight)||rect.bottom>=off&&rect.bottom<=(window.innerHeight||document.documentElement.clientHeight)||rect.top<=0&&rect.bottom>=(window.innerHeight||document.documentElement.clientHeight)},animationEndAction=function(index,nextIndex){var $currentSlide=$('.uncode-scroll-lock[data-section="'+index+'"]',$container),$nextSlide=$('.uncode-scroll-lock[data-section="'+nextIndex+'"]',$container),player,iframe;$nextSlide.is($footer)||$(".no-scrolloverflow").removeClass("no-scrolloverflow"),UNCODE.isFullPageSnap||activateKBurns(nextIndex),$("body:not(.uncode-fullpage-zoom) .background-video-shortcode, .uncode-video-container.video",$currentSlide).each(function(index,val){$(this).attr("data-provider")=="vimeo"?(iframe=$(this).find("iframe"),player=new Vimeo.Player(iframe[0]),player.pause()):$(this).attr("data-provider")=="youtube"?youtubePlayers[$(this).attr("data-id")]!=undefined&&youtubePlayers[$(this).attr("data-id")].pauseVideo():$(this).is("video")&&($(this)[0].volume=0,$(this)[0].pause())}),!UNCODE.isMobile&&headerWithOpacity&&$nextSlide.is($header)&&$header.removeClass("header-scrolled");var $otherEl=$(".uncode-scroll-lock:not(.hidden-scroll)",$container).not($nextSlide);$otherEl.each(function(){var $otherThis=$(this),$bgwrapperOther=$(".background-inner",$otherThis);checkVisible($otherThis)||$bgwrapperOther.removeClass("uncode-kburns").removeClass("uncode-zoomout")});if(!checkVisible($currentSlide)){$currentSlide.removeClass("uncode-scroll-visible");var currentScroll=$(".fp-scrollable",$currentSlide).data("iscrollInstance");typeof currentScroll!="undefined"&&!UNCODE.isFullPageSnap&¤tScroll.scrollTo(0,0,0)}clearRequestTimeout(animationEndTimeOut),animationEndTimeOut=requestTimeout(function(){Waypoint.refreshAll(),$(document.body).trigger("uncode_waypoints");var eventFP=new CustomEvent("fp-slide-changed");window.dispatchEvent(eventFP),is_scrolling=!1,is_first&&($("ul.onepage-pagination a").removeClass("is-selected"),$('ul.onepage-pagination a[data-index="'+(nextIndex-1)+'"]').addClass("is-selected"),is_first=!1)},500)},postLeaveActions=function(nextIndex){if(menuHidden&&!UNCODE.isMobile)return!1;var $el=$('.uncode-scroll-lock[data-section="'+nextIndex+'"]',$container),$cols=$(".uncol",$el),anchor=$el.data("anchor");UNCODE.isFullPageSnap||$.each($cols,function(index,val){if($(val).hasClass("style-light"))return $masthead.removeClass("style-dark-override").addClass("style-light-override"),!1;if($(val).hasClass("style-dark"))return $masthead.removeClass("style-light-override").addClass("style-dark-override"),!1}),typeof anchor!="undefined"&&anchor!==""&&$('.menu-item > a[href*="#'+anchor+'"]').length&&($(".menu-item").removeClass("active"),$('.menu-item > a[href*="#'+anchor+'"]').closest(".menu-item").addClass("active")),UNCODE.isFullPageSnap||activateBackWash(nextIndex)},activateBackWash=function(nextIndex){var $el=$('.uncode-scroll-lock[data-section="'+nextIndex+'"]',$container),$bgwrapper;if(!$el.length)return!1;if($el.hasClass("with-zoomout"))$bgwrapper=$(".background-inner:nth-child(1)",$el);else{if(!$(".with-zoomout",$el).length)return!1;$bgwrapper=$(".with-zoomout .background-inner:nth-child(1)",$el)}$bgwrapper.addClass("uncode-zoomout")},activateKBurns=function(nextIndex){var $el=$('.uncode-scroll-lock[data-section="'+nextIndex+'"]',$container),$bgwrapper;if(!$el.length)return!1;if($el.hasClass("with-kburns"))$bgwrapper=$(".background-inner:nth-child(1)",$el);else{if(!$(".with-kburns",$el).length)return!1;$bgwrapper=$(".with-kburns .background-inner:nth-child(1)",$el)}$bgwrapper.addClass("uncode-kburns")},activateParallax=function(nextIndex,direction){var $el=$('.uncode-scroll-lock[data-section="'+nextIndex+'"]',$container),$cell=$(".fp-tableCell",$el),animationEnd="webkitAnimationEnd animationend",cellAnim;switch(direction){case"up":cellAnim="moveFromTopInner";break;default:cellAnim="moveFromBottomInner"}$cell.css({"animation-name":cellAnim,"animation-duration":fp_anim_time+"ms","animation-delay":"","animation-timing-function":fp_easing,"animation-fill-mode":"both"}).off(animationEnd).on(animationEnd,function(event){event.originalEvent.animationName===cellAnim&&$cell.css({"animation-name":"","animation-duration":"","animation-delay":"","animation-timing-function":"","animation-fill-mode":""})})},scrollHashes=function(){var hash=window.location.hash.replace("#","").split("/"),hashInd;hash[0]!==""&&hash[0]!==SiteParameters.slide_footer?$('.uncode-scroll-lock[data-anchor="'+hash[0]+'"]').length&&(hashInd=$('.uncode-scroll-lock[data-anchor="'+hash[0]+'"]').index("[data-anchor]"),$.fn.fullpage.moveTo(hashInd+1)):h
1ash[0]===""&&$.fn.fullpage.moveTo(1)},hideMenu=function(index,nextIndex){if($("body").hasClass("vmenu")||UNCODE.isFullPageSnap||!$("body").hasClass("uncode-fp-menu-hide"))return!1;var hMenu=UNCODE.menuHeight,transTime=hMenu*2;if(index===1&&nextIndex>1)hMenu*=-1;else{if(index===1||nextIndex!==1)return!1;hMenu=0}$masthead.css({"-webkit-transform":"translate3d(0, "+hMenu+"px, 0)",transform:"translate3d(0, "+hMenu+"px, 0)","-webkit-transition":"transform 0.5s ease-in-out",transition:"transform 0.5s ease-in-out"})},shrinkMenu=function(index,nextIndex){if($("body").hasClass("vmenu")||!$("body").hasClass("uncode-fp-menu-shrink"))return!1;if(index===1&&nextIndex>1)$logo.addClass("shrinked"),$("div",$logo).each(function(index,val){$(val).css({height:logoMinScale,"line-height":logoMinScale}),$(val).hasClass("text-logo")&&$(val).css({"font-size":logoMinScale+"px"})}),requestTimeout(function(){UNCODE.menuMobileHeight=$masthead.outerHeight()},300);else{if(index===1||nextIndex!==1)return!1;$logo.removeClass("shrinked"),$("div",$logo).each(function(index,val){$(val).css({height:logoMaxScale,"line-height":logoMaxScale}),$(val).hasClass("text-logo")&&$(val).css({"font-size":logoMaxScale+"px"})}),requestTimeout(function(){UNCODE.menuMobileHeight=$masthead.outerHeight()},300)}},anchorLink=function(){$container.add(".menu-item").find('a[href*="#"]').on("click",function(e){var $this=$(e.currentTarget),hash=e.currentTarget.href.split("#"),current=window.location.href.split("#"),ind,currentMenuOpened=UNCODE.menuOpened,go=!1,hash_url=hash[0].replace(/\/?$/,"/"),current_url=current[0].replace(/\/?$/,"/");(hash_url==current_url||hash_url=="")&&hash[1]!=""&&(hash="#"+hash[1],e.preventDefault(),go=!0),go&&($(hash).length?ind=$(hash).closest(".fp-section").index():(hash=hash.slice(1),ind=$('.fp-section[data-anchor="'+hash+'"]').index(".fp-section")),typeof $this.attr("data-filter")!="undefined"&&$this.attr("data-filter")!=""&&(ind=$this.closest(".fp-section").index()),UNCODE.menuOpened=!1,$.fn.fullpage.moveTo(ind+1),UNCODE.menuOpened=currentMenuOpened,UNCODE.menuOpened&&(UNCODE.wwidth<UNCODE.mediaQuery?window.dispatchEvent(UNCODE.menuMobileTriggerEvent):($(".mmb-container-overlay .overlay-close").trigger("click"),$(".mmb-container .trigger-overlay.close")[0].dispatchEvent(new Event("click")))))}),$(".header-scrolldown").on("click",function(event){event.preventDefault();var scrollDown=$(this),ind=scrollDown.closest(".fp-section").index();$.fn.fullpage.moveTo(ind+2)});var anchor=$(".fp-section.active").data("anchor");typeof anchor!="undefined"&&anchor!==""&&$('.menu-item > a[href="#'+anchor+'"]').length&&($(".menu-item").removeClass("active"),$('.menu-item > a[href="#'+anchor+'"]').closest(".menu-item").addClass("active"))},slideLeave=function(index,nextIndex,direction){var $currentSlide=$('.uncode-scroll-lock[data-section="'+index+'"]',$container),$nextSlide=$('.uncode-scroll-lock[data-section="'+nextIndex+'"]',$container),animationEnd="webkitAnimationEnd animationend",transitionEnd="webkitTransitionEnd transitionend",animOut=effect!="scaleDown"?effect+direction:effect,animIn,isFooter=!1,isFooterNext=!1,footerH=$footer.outerHeight(),timeout,player,iframe,footerCoeff;switch(direction){case"up":animIn="moveFromTop";break;default:animIn="moveFromBottom"}$("body").hasClass("uncode-fullpage-trid")?(animOut=animIn+"trid",animIn=animOut+"In"):UNCODE.isFullPageSnap&&(animIn=animOut="none"),hideMenu(index,nextIndex),shrinkMenu(index,nextIndex),$(".uncode-fullpage-zoom .background-video-shortcode, .uncode-video-container.video",$currentSlide).each(function(index,val){$(this).attr("data-provider")=="vimeo"?(iframe=$(this).find("iframe"),player=new Vimeo.Player(iframe[0]),player.pause()):$(this).attr("data-provider")=="youtube"?youtubePlayers[$(this).attr("data-id")]!=undefined&&youtubePlayers[$(this).attr("data-id")].pauseVideo():$(this).is("video")&&($(this)[0].volume=0,$(this)[0].pause())}),$(".background-video-shortcode, .uncode-video-container.video",$nextSlide).each(function(index,val){$(this).attr("data-provider")=="vimeo"?(iframe=$(this).find("iframe"),iframe.on("load",function(){player=new Vimeo.Player(iframe),player.setVolume(0),player.play()}),player=new Vimeo.Player(iframe),player.setVolume(0),player.play()):$(this).attr("data-provider")=="youtube"?youtubePlayers[$(this).attr("data-id")]!=undefined&&youtubePlayers[$(this).attr("data-id")].playVideo():$(this).is("video")&&($(this)[0].volume=0,$(this)[0].play())}),$currentSlide.is($footer)&&(isFooter=!0),$nextSlide.is($footer)&&(isFooterNext=!0),!UNCODE.isMobile&&headerWithOpacity&&$currentSlide.is($header)&&$header.addClass("header-scrolled"),footerCoeff=footerH;if(UNCODE.isFullPageSnap)postLeaveActions(nextIndex),activateBackWash(nextIndex),activateKBurns(nextIndex),requestTimeout(function(){animationEndAction(index,nextIndex)},fp_anim_time+150);else if(isFooterNext){var $iscrollWrapper=$currentSlide.find(".fp-scrollable");$iscrollWrapper.addClass("no-scrolloverflow"),$nextSlide.add($currentSlide).addClass("uncode-scroll-front").addClass("uncode-scroll-active").addClass("uncode-scroll-visible"),$container.css({"-webkit-transform":"translate3d(0, -"+footerCoeff+"px, 0)",transform:"translate3d(0, -"+footerCoeff+"px, 0)","-webkit-transition":"transform "+footerCoeff*2+"ms "+fp_easing,transition:"transform "+footerCoeff*2+"ms "+fp_easing}).off(transitionEnd).one(transitionEnd,function(){animationEndAction(index,nextIndex)})}else if(isFooter)$('.uncode-scroll-lock[data-section="'+(index-1)+'"]',$container).add($currentSlide).addClass("uncode-scroll-front").addClass("uncode-scroll-active").addClass("uncode-scroll-visible"),$container.css({"-webkit-transform":"translate3d(0, 0, 0)",transform:"translate3d(0, 0, 0)","-webkit-transition":"transform "+footerCoeff*2+"ms "+fp_easing,transition:"transform "+footerCoeff*2+"ms "+fp_easing}).one(transitionEnd,function(){nextIndex!==index-1&&(clearRequestTimeout(timeout),timeout=requestTimeout(function(){$.fn.fullpage.moveTo(nextIndex),slideLeave(index-1,nextIndex,"up"),$container.off(transitionEnd)},50)),animationEndAction(index,nextIndex)});else{postLeaveActions(nextIndex),$("body").hasClass("uncode-fullpage-trid")||activateParallax(nextIndex,direction);var $outBg=$(".background-wrapper",$currentSlide);$nextSlide.addClass("uncode-scroll-front").addClass("uncode-scroll-active").addClass("uncode-scroll-visible").addClass("uncode-scroll-animating-in").css({"z-index":4,"animation-name":animIn,"animation-duration":fp_anim_time+"ms","animation-delay":"","animation-timing-function":fp_easing,"animation-fill-mode":"both",transition:"initial"}).off(animationEnd).on(animationEnd,function(event){event.originalEvent.animationName===animIn&&($(this).addClass("uncode-scroll-already").removeClass("uncode-scroll-front").removeClass("uncode-scroll-animating-in").css({"animation-name":"","animation-duration":"","animation-delay":"","animation-timing-function":"","animation-fill-mode":"",transition:"initial"}),$currentSlide.removeClass("uncode-scroll-active").add($outBg).css({"animation-name":"","animation-duration":"","animation-delay":"","animation-timing-function":"","animation-fill-mode":"",transition:"initial"}),animationEndAction(index,nextIndex)),nextIndex>1?$("body").addClass("window-scrolled"):$("body").removeClass("window-scrolled")}),$currentSlide.addClass("uncode-scroll-animating-out").removeClass("uncode-scroll-front").css({"z-index":"1","animation-name":animOut,"animation-duration":fp_anim_time+"ms","animation-delay":"","animation-timing-function":fp_easing,"animation-fill-mode":"both",transition:"initial","will-change":"auto"}).off(animationEnd).on(animationEnd,function(event){event.originalEvent.animationName===animOut&&$currentSlide.removeClass("uncode-scroll-animating-out")}),$("body").hasClass("uncode-fp-opacity")&&$currentSlide.find("> div").css({"animation-name":"opacityout","animation-duration":fp_anim_time+"ms","animation-delay":"","animation-timing-function":fp_easing,"animation-fill-mode":"both",transition:"initial"}).off(animationEnd).on(animationEnd,function(event){event.originalEvent.animationName==="opacityout"&&$(event.currentTarget).css({"animation-name":"","animation-duration":"","animation-delay":"","animation-timing-function":"","animation-fill-mode":"",transition:""})})}$(".scroll-top").on("click",function(e){return $.fn.fullpage.moveTo(1),!1})},init_fullPage=function(mode){var checkFPeffects;$container.fullpage({sectionSelector:".uncode-scroll-lock",scrollOverflow:!0,scrollOverflowOptions:{click:!1,preventDefaultException:{tagName:/.*/}}
1,normalScrollElements:".masthead-vertical",navigation:!1,scrollBar:scrollBar,scrollingSpeed:fp_anim_time,verticalCentered:!0,anchors:no_history?!1:dataNames,recordHistory:!no_history,afterRender:function(){$("body").removeClass("fp-waiting"),$(".uncode-scroll-lock",$container).not(":visible").each(function(){var $invisible=$(this).addClass("hidden-scroll")}),$(".uncode-scroll-lock.active",$container).filter(":visible").each(function(){var $visible=$(this).addClass("uncode-scroll-visible"),visIndex=$visible.index(".uncode-scroll-lock:not(.hidden-scroll)");$('ul.onepage-pagination a[data-index="'+visIndex+'"]').addClass("is-selected")}),$("ul.onepage-pagination a").on("click",function(e){e.preventDefault();var $a=$(this),toIndex=$a.data("index");$.fn.fullpage.moveTo(toIndex+1)}),requestTimeout(function(){scrollHashes()},1e3),$(window).on("hashchange",function(e){requestTimeout(function(){scrollHashes()},500)}),anchorLink(),$("body").hasClass("uncode-fp-opacity")&&$all.each(function(index,row){var testmatch=$(row)[0].className.match(/\bstyle-.*?-bg\b/g,""),classBg;typeof testmatch!="undefined"&&testmatch!==null&&(classBg=testmatch[0],$(row).removeClass(classBg).find(".fp-tableCell").addClass(classBg))}),!$("body").hasClass("vmenu")&&!$("body").hasClass("menu-offcanvas")&&$(window).on("menuOpen gdprOpen",function(){$.fn.fullpage.setAutoScrolling(!1)}).on("menuClose gdprClose",function(){$.fn.fullpage.setAutoScrolling(!0)}),$(window).on("menuMobileOpen menuCanvasOpen unmodal-open uncode-sidecart-open",function(){requestTimeout(function(){$.fn.fullpage.setAutoScrolling(!1)},1e3)}).on("menuMobileClose menuCanvasClose unmodal-close uncode-sidecart-closed",function(){$.fn.fullpage.setAutoScrolling(!0)}),UNCODE.isFullPageSnap||(clearRequestTimeout(checkFPeffects),checkFPeffects=requestTimeout(function(){activateBackWash(1),activateKBurns(1)},100))},onLeave:function(index,nextIndex,direction){if(UNCODE.menuOpened||is_scrolling)return!1;is_scrolling=!0;var event=new CustomEvent("fp-slide-leave");window.dispatchEvent(event),slideLeave(index,nextIndex,direction);if($(".uncode-scroll-lock",$container).eq(nextIndex-1).hasClass("hidden-scroll"))return direction==="up"?$.fn.fullpage.moveTo(nextIndex-1):$.fn.fullpage.moveTo(nextIndex+1),!1;$("ul.onepage-pagination a").removeClass("is-selected"),$('ul.onepage-pagination a[data-index="'+(nextIndex-1)+'"]').addClass("is-selected")}})};init_fullPage(),$(window).on("load",function(){requestTimeout(function(){$.fn.fullpage.reBuild()},3e3)});var addScrollingClass,removeScrollingClass;window.addEventListener("fp-slide-scroll",function(){addScrollingClass=requestTimeout(function(){$("body").addClass("fp-slide-scrolling")},10),clearRequestTimeout(removeScrollingClass),removeScrollingClass=requestTimeout(function(){$("body").removeClass("fp-slide-scrolling")},150),Waypoint.refreshAll()},!1);var setFPheight=function(){var $body=document.body,$footer=document.getElementById("colophon"),$maincontainer=document.querySelector(".main-wrapper"),$boxcontainer=document.querySelector(".box-container"),$sections=document.querySelectorAll(".fp-section"),rect=$maincontainer.getBoundingClientRect(),rect2=$boxcontainer.getBoundingClientRect(),$masthead=document.getElementById("masthead"),_hideMenu=!1,menuHeight=UNCODE.menuHeight;$body.style.height=UNCODE.wheight+"px",!document.body.classList.contains("vmenu")&&document.body.classList.contains("uncode-fp-menu-hide")&&(_hideMenu=!0);if($masthead.classList.contains("menu-transparent")||_hideMenu===!0)menuHeight=0;theres_footer&&($footer.style.top=(rect.height||rect2.height)+"px");for(var i=0;i<$sections.length;
1i++)$sections[i].style.maxHeight=UNCODE.wheight-menuHeight+"px"};setFPheight(),window.addEventListener("resize",setFPheight,!1),window.addEventListener("orientationchange",setFPheight,!1)},UNCODE.particles=function(){$(".vc-particles-background").each(function(){var $particle=$(this),$parent=$particle.closest("[data-parent]");$parent.prepend($particle)})},UNCODE.readMoreCol=function($el){if(typeof $el=="undefined"||$el===null)$el=$("body");var $readMoreCols=$(".uncont.overflow-hidden-mask[data-ov-height]",$el);$readMoreCols.each(function(){var $uncont=$(this),$row=$uncont.closest(".row-container"),max_h=$uncont.attr("data-ov-height"),max_h_mobile=$uncont.attr("data-ov-height-mobile"),actual_max_h=$uncont.outerHeight(),inner_h,$read_more=$("+ .btn-more-wrap",$uncont),read_more_resize=$read_more.hasClass("trigger-resize"),marginClosedBtn=$uncont.attr("data-margin-closed"),marginClosed=0,marginOpenBtn=$uncont.attr("data-margin-open"),marginOpen=0,anim_t=250,resized=!1;max_h_mobile=typeof max_h_mobile=="undefined"||max_h_mobile===null?"":max_h_mobile;switch(marginClosedBtn){case"sm":marginClosed=18;break;case"std":marginClosed=36;break;case"lg":marginClosed=72;break;case"":default:marginClosed=0}switch(marginOpenBtn){case"sm":marginOpen=18;break;case"std":marginOpen=36;break;case"lg":marginOpen=72;break;case"no":marginOpen=0}var checkToggleMobile=function(){UNCODE.wwidth<=UNCODE.mediaQuery&&max_h_mobile!==""&&(resized=!0,$read_more.hasClass("state-closed")&&($uncont[0].style.height="",$uncont[0].style.maxHeight=max_h_mobile)),resized===!0&&UNCODE.wwidth>UNCODE.mediaQuery&&($read_more.hasClass("state-closed")&&($uncont[0].style.height="",$uncont[0].style.maxHeight=max_h),resized=!1)};checkToggleMobile(),$(window).on("resize",function(){checkToggleMobile()}),$("a",$read_more).on("click",function(e){e.preventDefault();var $a=$(this);if($read_more.hasClass("state-closed"))$read_more.removeClass("state-closed").addClass("state-open"),$uncont.css({"max-height":"none",height:"auto"}),inner_h=parseFloat($uncont.outerHeight()),$uncont.css({height:UNCODE.wwidth<=UNCODE.mediaQuery&&max_h_mobile!==""?max_h_mobile:max_h}),anim_t=inner_h-actual_max_h,anim_t<250?anim_t=250:anim_t>1e3&&(anim_t=1e3),$uncont.css({"transition-duration":anim_t+"ms"}).addClass("overflow-mask-animation").animate({height:inner_h},anim_t,"easeInOutCubic",function(){$uncont.css({height:"auto"}).removeClass("overflow-mask"),read_more_resize===!0&&(window.dispatchEvent(new Event("resize")),typeof ScrollTrigger!="undefined"&&ScrollTrigger!==null&&ScrollTrigger.refresh(!0))}),marginOpen!=""&&$read_more.animate({"margin-top":marginOpen},anim_t,"easeInOutCubic");else{$read_more.removeClass("state-open").addClass("state-closed"),$uncont.addClass("overflow-mask").removeClass("overflow-mask-animation").animate({height:UNCODE.wwidth<=UNCODE.mediaQuery&&max_h_mobile!==""?max_h_mobile:max_h},anim_t,"easeInOutCubic",function(){read_more_resize===!0&&(window.dispatchEvent(new Event("resize")),typeof ScrollTrigger!="undefined"&&ScrollTrigger!==null&&ScrollTrigger.refresh(!0))}),marginClosed!==""&&$read_more.animate({"margin-top":marginClosed},anim_t,"easeInOutCubic");if($a.hasClass("toggle-scroll")){var $masthead=$("#masthead > div:first-child"),headH=$masthead.outerHeight(),rectTop=$row[0].getBoundingClientRect().top,checkNavBar=$a.hasClass("toggle-navbar"),checkNavBarMobile=$a.hasClass("toggle-navbar-mobile"),offCont=$row.offset().top;UNCODE.wwidth<=UNCODE.mediaQuery&&(checkNavBar=checkNavBarMobile),checkNavBar&&(offCont-=headH),rectTop<headH&&$("html, body").on("scroll wheel DOMMouseScroll mousewheel touchmove",function(){$(this).stop()}).animate({scrollTop:offCont},anim_t,"easeInOutCubic")}}})})},UNCODE.filters=function(){var $systems=$(".isotope-system, .cssgrid-system");$systems.each(function(index,val){var $system=$(this),$widget_trgr=$(".uncode-woocommerce-toggle-widgetized-cb__link",$system),$widgets=$(".widgetized-cb-wrapper",$system),$sorting_trgr=$(".uncode-woocommerce-sorting__link",$system),$sorting_dd=$(".uncode-woocommerce-sorting-dropdown",$system),$cats_trigger=$(".menu-smart--filter-cats_mobile-toggle-trigger",$system),$cats_filters=$(".menu-smart--filter-cats-mobile-dropdown",$system);if($system.hasClass("isotope-processed"))return;$cats_trigger.on("click",function(e){$("html").hasClass("screen-sm")||(e.preventDefault(),$widgets.slideUp(400,"easeInOutCirc"))}),$(".filters-toggle-trigger",$system).on("click",function(e){e.preventDefault();var $filters=$(".isotope-filters .menu-horizontal",$system);
1$filters.slideToggle(400,"easeInOutCirc"),$widgets.add($cats_filters).slideUp(400,"easeInOutCirc")}),$widget_trgr.on("click",function(e){e.preventDefault(),$widgets.slideToggle(400,"easeInOutCirc"),$("html").hasClass("screen-sm")||$cats_filters.slideUp(400,"easeInOutCirc"),window.dispatchEvent(new CustomEvent("boxResized"))}),$sorting_trgr.on("click",function(e){e.preventDefault(),$("html").hasClass("screen-sm")||$widgets.add($cats_filters).slideUp(400,"easeInOutCirc")}),$system.addClass("isotope-processed")})},UNCODE.widgets=function(){var widget_collapses=$(".widget-collapse");widget_collapses.each(function(){var widget_collapse=$(this),widget_title=widget_collapse.find(".widget-title"),widget=widget_title.closest(".widget"),content=widget.children().not(".widget-title"),setCTA;widget_collapse.hasClass("widget-tablet-collapse-open")&&UNCODE.wwidth<=UNCODE.mediaQuery&&UNCODE.wwidth>UNCODE.mediaQueryMobile&&widget_title.toggleClass("open"),widget_title.each(function(){var _this=$(this),content=_this.closest(".widget").find(".widget-collapse-content");$(window).on("load resize",function(){clearRequestTimeout(setCTA),setCTA=requestTimeout(function(){content.is(":visible")?_this.addClass("open"):_this.removeClass("open")},10)}),_this.on("click",function(){var icon_content=window.getComputedStyle(_this[0],":after").getPropertyValue("content");if(icon_content==="none"||!icon_content)return!1;_this.toggleClass("open");var isOpen=_this.hasClass("open"),hasBorder=_this.closest(".widget-no-separator").length?9:27;return content.animate({height:"toggle",padding:"toggle",opacity:"toggle",top:isOpen?0:hasBorder},{duration:400,easing:"easeInOutCirc"}),!1})})});var $widgets_without_title=$(".collapse-init").removeClass("collapse-init")},UNCODE.unmodal=function(){$(document).off("click",".open-unmodal").on("click",".open-unmodal",function(){$(".unmodal-overlay").fadeIn(),$(".unmodal-overlay").addClass("loading"),$("body").addClass("uncode-unmodal-overlay-visible"),$(window).trigger("unmodal-open")}),$(document).off("click",".unmodal-overlay").on("click",".unmodal-overlay, .unmodal-close",function(){$(".unmodal-overlay").fadeOut(),$(".unmodal").fadeOut(),$("body").removeClass("uncode-unmodal-overlay-visible"),$("body").removeClass("uncode-unmodal-open"),$("html").removeClass("uncode-unmodal-body-disable-scroll"),$(document).trigger("unmodal-close"),UNCODE.isUnmodalOpen=!1}),$(document).on("uncode-unmodal-show-content",function(){$(".unmodal-overlay").removeClass("loading"),$(".unmodal").show(),$(".unmodal").addClass("show-unmodal-with-animation"),$(".unmodal-content")[0].scrollTop=0,$("body").addClass("uncode-unmodal-open"),UNCODE.isUnmodalOpen=!0,$("body").hasClass("qw-body-scroll-disabled")&&$("html").addClass("uncode-unmodal-body-disable-scroll"),$(".unmodal").hasClass("auto-height")&&set_modal_height()});var set_modal_height=function(){var modal=$(".unmodal").css({height:"auto"}),window_height=$(window).outerHeight(),modal_height=modal.outerHeight();modal.css("height","auto"),modal_height>window_height&&modal.outerHeight(window_height)};if($(".unmodal").hasClass("auto-height")){var setCTA;$(window).on("resize",function(){clearRequestTimeout(setCTA),setCTA=requestTimeout(function(){set_modal_height()},100)})}},UNCODE.bgChanger=function(){var $bg_changers=$(".vc_row[data-bg-changer]:visible"),$bg_first=$(".vc_row[data-bg-remove]"),bg_remove=$bg_first.attr("data-bg-remove"),$first=$bg_changers.first(),$last=$bg_changers.last(),$bg_wrapper=$("#changer-back-color"),$bg_changings=$("div[data-bg-changing]",$bg_wrapper),setCTA,localH=UNCODE.wheight,isScrolling;$bg_first.removeClass(bg_remove);var bgChange=function($col,bgColor,skin,tmbskin){$bg_wrapper.attr("class",bgColor);var menuskin;typeof skin!="undefined"&&(menuskin=skin.replace("style","menu")),$col.length&&($(".uncol[data-skin-change]").each(function(){var $isoFooter=$(".isotope-footer",this);$(this).add($isoFooter).removeClass("style-dark").removeClass("style-light").addClass(skin),menuskin!==""&&$(this).find(".isotope-filters:not(.with-bg)").removeClass("menu-dark").removeClass("menu-light").addClass(menuskin)}),$(".tmb[data-skin-change]").each(function(){$(this).removeClass("tmb-dark").removeClass("tmb-light").addClass(tmbskin)}))},$masthead=$("#masthead"),transDesktop,transMobile,changeSkin,checkTransparencyAndChange=function(skin){transDesktop=$masthead.hasClass("menu-desktop-trans
1parent")&&UNCODE.wwidth>=UNCODE.mediaQuery,transMobile=$masthead.hasClass("menu-mobile-transparent")&&UNCODE.wwidth<UNCODE.mediaQuery,changeSkin=$masthead.hasClass("menu-change-skin");if(!transDesktop&&!transMobile)return!1;if(!changeSkin)return!1;if(skin==="style-light")return $masthead.removeClass("style-dark-override").addClass("style-light-override"),!1;if(skin==="style-dark")return $masthead.removeClass("style-light-override").addClass("style-dark-override"),!1},bg_waypoints=function(){$bg_changers.length&&!SiteParameters.is_frontend_editor&&($.each($bg_changers,function(index,row){var $row=$(row),$col=$(".uncol[data-skin-change]",$row).eq(0),skin,$tmbs,tmbskin,bgColor=$row.attr("data-bg-color");if(!$row.is(":visible"))return!1;$col.length&&(skin=$col.attr("data-skin-change"),$tmbs=$(".tmb[data-skin-change]",$row),tmbskin=skin.replace("style","tmb")),$row.hasClass("unscroll-horizontal")||($row.waypoint(function(dir){if(dir!=="down")return;bgChange($col,bgColor,skin,tmbskin),checkTransparencyAndChange(skin)},{offset:"50%"}),$row.waypoint(function(dir){if(dir!=="up")return;bgChange($col,bgColor,skin,tmbskin),checkTransparencyAndChange(skin)},{offset:function(){var clH=this.element.clientHeight,wH=window.innerHeight,ret=clH>200?-100:clH*-0.5;return wH/2-clH}}))}),$("body").addClass("bg-changer-init"))},body=document.body,edges=!1,throttle=function(fn,wait){var time=Date.now();return function(){time+wait-Date.now()<0&&(fn(),time=Date.now())}},$wrapper=document.querySelector(".main-wrapper"),currentPixel=window.pageYOffset||window.document.documentElement.scrollTop,$title=document.querySelector("#rotating");$title!==null&&($title.style.whiteSpace="nowrap",$title.style.transition="transform 200ms linear"),window.addEventListener("scroll",throttle(function(){window.clearRequestTimeout(isScrolling),isScrolling=requestTimeout(function(){var scrolled=window.pageYOffset||window.document.documentElement.scrollTop,body=document.body,html=document.documentElement,docH=Math.max(body.scrollHeight,body.offsetHeight,html.clientHeight,html.scrollHeight,html.offsetHeight),$row=!1,firstOff,lastOff;if(scrolled<100&&$first.length){firstOff=$first.offset().top;if(firstOff<100)var $row=$first}else if(scrolled+UNCODE.wheight>docH-100&&$last.length){lastOff=$last.offset().top+$last.outerHeight();if(lastOff>docH-100)var $row=$last}if($row.length){var $col=$(".uncol[data-skin-change]",$row).eq(0),skin,$tmbs,tmbskin,bgColor=$row.attr("data-bg-color");$col.length&&(skin=$col.attr("data-skin-change"),$tmbs=$(".tmb[data-skin-change]",$row),tmbskin=skin.replace("style","tmb")),bgChange($col,bgColor,skin,tmbskin),checkTransparencyAndChange(skin),edges=!0}},150),edges===!0&&(bg_waypoints(),Waypoint.refreshAll(),edges=!1)},100),!1),$(window).on("resize",function(){clearRequestTimeout(setCTA),setCTA=requestTimeout(function(){localH!=UNCODE.wheight&&(localH=UNCODE.wheight,bg_waypoints(),Waypoint.refreshAll())},100)}),bg_waypoints()},UNCODE.skewIt=function(){if($("body").hasClass("compose-mode"))return;var justscrolled=!1,loadSkewIt=function(){var $pageHeader=$("#page-header"),$page_body=$(".page-body"),$header_skew=$(".uncode-skew.vc_row[data-parent]",$pageHeader);$header_skew.length&&($pageHeader.addClass("uncode-skew").css({position:"relative",zIndex:1}),$header_skew.removeClass("uncode-skew"),$page_body.css({position:"relative",zIndex:0}));var $skew=$(".uncode-skew"),$horizontal=$skew.hasClass("index-scroll")?$skew:$skew.closest(".index-scroll"),horizontal=$horizontal.length,stopSkewing,lastOffset=0,lastDate=Date.now();if(!$skew.length)return;var dropSkew=function(){if(UNCODE.wwidth<UNCODE.mediaQuery)return;$skew.each(function(){var $this=$(this),$drop=$(".t-entry-drop:not(.drop-parent)",$this);if($drop.length){$this.css({transform:"skew(0)"});var bound=$this[0].getBoundingClientRect();$drop.css({left:bound.x*-1,top:bound.y*-1})}})};dropSkew(),$(window).on("resize",dropSkew),window.addEventListener("scroll",function(){if(justscrolled!==!0){justscrolled=!0;return}window.clearRequestTimeout(stopSkewing);var now=Date.now(),delayInMs=now-lastDate,offset=window.pageYOffset||window.document.documentElement.scrollTop,newOffset=offset-lastOffset,speed=Math.pow(newOffset/delayInMs,3)*-1,body=document.body,html=document.documentElement,docH=Math.max(body.scrollHeight,body.offsetHeight,html.clientHeight,html.scrollHeight,html.offsetHeight),wait=50,maxSpeed=UNCODE.wwidth>UNCODE.mediaQuery?1:2;if(lastDate+wait-now<0){lastDate=now,lastOffset=offset,speed>6?speed=6:speed<-6&&(speed=-6),speed>2&&offset<UNCODE.wheight?speed=2:speed<-2&&offset+UNCODE.wheight*2>
1docH&&(speed=-2);var speedY=speed,speedX=speed*1.25;if(horizontal){speedY=0;if($horizontal.hasClass("row-scroll-no-md")&&UNCODE.wwidth<=UNCODE.mediaQuery){speedX=0;return}if($horizontal.hasClass("row-scroll-no-sm")&&UNCODE.wwidth<=UNCODE.mediaQueryMobile){speedX=0;return}}else speedX=0;$skew.closest(".enter-st").length||(speedX=0),gsap.killTweensOf($skew),gsap.to($skew,{duration:.2,skewY:speedY*maxSpeed+"deg",skewX:speedX*maxSpeed+"deg",ease:Power0.easeNone,transformOrigin:"center"})}stopSkewing=requestTimeout(function(){gsap.killTweensOf($skew),gsap.to($skew,{duration:.5,skewY:"0deg",skewX:"0deg",transformOrigin:"center",ease:Expo.easeOut}),$skew.each(function(){var $this=$(this),$drop=$(".t-entry-drop:not(.drop-parent)",$this);if($drop.length){var bound=$this[0].getBoundingClientRect();$drop.css({left:bound.x*-1,top:bound.y*-1})}})},200)},!1)};$(window).on("load",loadSkewIt)},UNCODE.rotateIt=function(){if($("body").hasClass("compose-mode"))return;var frameRotate=!1,loadRotateIt=function(){var $toRotate=$(".uncode-rotate");$toRotate.each(function(){var $rotate=$(this),deg=0,dir=!0,coeff=1,lastOffset=0,lastDate=Date.now(),checkScroll=function($rotate){var now=Date.now(),delayInMs=now-lastDate,offset=window.pageYOffset||window.document.documentElement.scrollTop,newOffset=offset-lastOffset,speed=newOffset/delayInMs*5,body=document.body,html=document.documentElement,docH=Math.max(body.scrollHeight,body.offsetHeight,html.clientHeight,html.scrollHeight,html.offsetHeight);lastDate=now,lastOffset=offset;if(Math.abs(deg)>359||isNaN(deg))deg=0;if($rotate.hasClass("uncode-rotate-scroll")||$rotate.hasClass("uncode-rotate-speed"))deg=parseFloat(deg)+parseFloat(speed);$rotate.hasClass("uncode-rotate-hover")&&$rotate.hover(function(){coeff=1.75},function(){coeff=1}),$rotate.hasClass("uncode-rotate-scroll")||(deg+=coeff);if($rotate.closest(".un-text-marquee").length&&UNCODE.wwidth<=UNCODE.mediaQuery)return!1;if($rotate.closest(".un-text-marquee").length&&!$rotate.closest(".un-marquee-scroll, .un-marquee-opposite").length){var undeg=deg*-1;$rotate[0].style.transform="rotate("+undeg+"deg)"}else $rotate[0].style.transform="rotate("+deg+"deg)";requestAnimationFrame(function(){if(frameRotate===!0){frameRotate=!1;return}checkScroll($rotate)})};checkScroll($rotate)})};$(window).on("load",loadRotateIt);var checkRotate,resizeRotate=function(){var $inlineRotates=$(".inline-rotate");$inlineRotates.each(function(){$(this).addClass("inline-rotate-standby")}),clearTimeout(checkRotate),checkRotate=setTimeout(function(){$(".inline-rotate").each(function(){$(this).removeClass("inline-rotate-standby"),frameRotate=!0}),loadRotateIt()},500)};$(window).off("resize.inline-rotate",resizeRotate).on("resize.inline-rotate",resizeRotate)};var marqueeAttempts=0,marqueeTO,marqueeCheckResize,initMarquee;UNCODE.textMarquee=function($titles){var isInitMarque=!1,lastMarqueeDocH=Math.round($(document).height()),initTextMarquee=function($titles){typeof $titles=="undefined"&&($titles=$(".un-text-marquee"));if(!$titles.length)return;isInitMarque=!0;var stableHeight=UNCODE.wheight;$titles.each(function(){var $title=$(this),marqueeNS=".textMarquee-"+Math.random().toString(36).slice(2),$span=$("> span, > i > span",$title),txt,first=!0,dataSpeed=parseFloat($title.closest(".heading-text").attr("data-marquee-speed")),dataSpace=parseFloat($title.closest(".heading-text").attr("data-marquee-space")),dataTrigger=$title.closest(".heading-text").attr("data-marquee-trigger"),hasSticky=!1,dataNavBar=$title.closest(".heading-text").attr("data-marquee-navbar"),dataNavBarMobile=$title.closest(".heading-text").attr("data-marquee-navbar-mobile"),newW=UNCODE.wwidth,marqueeTL,inview,isInMenu=$title.closest(".megamenu-block-wrapper").length,getStickyBound=function(){var $sticky=$title.closest(".sticky-trigger, .sticky-element");if($sticky.length){var $pinSpacer=$sticky.closest(".pin-spacer");return $pinSpacer.length?$pinSpacer:$sticky}var $pinSpacerOnly=$title.closest(".pin-spacer");return $pinSpacerOnly.length?$pinSpacerOnly:$title.closest(".vc_row")};if($title.closest(".sticky-trigger").length||$title.closest(".sticky-element").length||$title.closest(".pin-spacer").length)hasSticky=!0,dataTrigger="row";UNCODE.wwidth<=UNCODE.mediaQuery&&(dataNavBar=dataNavBarMobile),dataSpeed=isNaN(dataSpeed)?0:dataSpeed,dataSpace=isNaN(dataSpace)?"default":dataSpace;var dataX=dataSpeed;dataSpeed+=5,$(".marquee-clone-wrap",$title).remove(),txt=$span.html(),$(".marquee-original-core",$span).length?txt=$(".marquee-original-core",$span).html():(txt=$span.html(),$span=$("> span, > i > span",$title).wrapInner('<span class="marquee-original-core" />').addClass("marquee-original"));var spanW,$prepended=$('<span class="marquee-clone-wrap wrap-prepended" />'),$appended=$('<span class="marquee-clone-wrap wrap-appended" />'),speed=10-dataSpeed;$span.prepend($prepended),$span.append($appended);var continuousTextMarquee=function(){var bound=$title.css({transform:"none",opacity:0}
1).offset(),ease="none",xStrt=first||$title.hasClass("un-marquee-infinite")?0:UNCODE.wwidth-bound.left,xEnd=$title.hasClass("un-marquee-infinite")?spanW:spanW+bound.left,xSpeed=(xEnd+xStrt)/(dataSpeed*dataSpeed*dataSpeed)/5*dataSpeed,direction=$title.hasClass("un-marquee-opposite")?1:-1,speedSlow=(xEnd+xStrt)/45,transFormVal,translX;typeof marqueeTL!="undefined"&&marqueeTL!==null&&marqueeTL.kill(),marqueeTL=new TimelineMax({paused:!0,reversed:!0}),marqueeTL.play();var inViewElement=dataTrigger==="row"?hasSticky?getStickyBound()[0]:$title.closest(".vc_row")[0]:$title[0],wayOff=dataTrigger==="row"&&dataNavBar==="yes"?UNCODE.menuHeight:0;isInMenu?($(document).on("un-menu-show.marquee",function(e,$ul){marqueeTL.restart()}),$(document).on("un-menu-hide.marquee",function(e,$ul){marqueeTL.pause()})):inview=new Waypoint.Inview({element:inViewElement,offset:wayOff,enter:function(direction){marqueeTL.play()},exited:function(direction){$title.closest(".pin-spacer").length||marqueeTL.pause()}});if($title.hasClass("un-marquee-hover")){var $column=$title.closest(".wpb_column"),$col_link=$(".col-link",$column),$hover_sel=$title;$col_link.length&&($hover_sel=$title.add($column)),$hover_sel.on("mouseover",function(){ease="power2.out",transFormVal=$title.css("transform").split(/[()]/)[1],translX=transFormVal.split(",")[4],speedSlow=(xEnd+(xStrt-translX))/45,marqueeTL.duration(speedSlow)}).on("mouseout",function(){ease="power2.in",transFormVal=$title.css("transform").split(/[()]/)[1],translX=transFormVal.split(",")[4],speedSlow=(xEnd+(xStrt-translX))/(dataSpeed*dataSpeed*dataSpeed)/5*dataSpeed,marqueeTL.duration(speedSlow)})}gsap.killTweensOf($title),marqueeTL.fromTo($title,{opacity:1,x:xStrt*direction*-1},{duration:xSpeed,x:xEnd*direction,onComplete:function(){first=!1,isInMenu?marqueeTL.restart():continuousTextMarquee()},onUpdate:function(){$title[0].isConnected||(marqueeTL.kill(),initTextMarquee())},ease:ease})},runTextMarquee=function(){var time=Date.now(),textMarqueeScroll=function(){var $row=$title.closest(".vc_row");hasSticky&&($row=getStickyBound());var $bound=dataTrigger==="row"||dataTrigger==="row-middle"?$row:$title;if(!$bound.length)return;var bound=$bound[0].getBoundingClientRect(),wait=100,direction=$title.hasClass("un-marquee-scroll-opposite")?-1:1,dataMove=dataX>=0?1+dataX:-1*5/(dataX-.5)*.25;bound.top===0&&bound.bottom===0&&bound.left===0&&bound.right===0&&bound.height===0&&bound.width===0&&bound.x===0&&bound.y===0&&marqueeAttempts<2&&(clearRequestTimeout(marqueeTO),marqueeTO=requestTimeout(function(){marqueeAttempts++,runTextMarquee()},100));var bound_top=bound.top,gsap_calc=(stableHeight*.35-bound_top)*dataMove*.5*direction;if(dataTrigger==="row"||dataTrigger==="row-middle")dataTrigger==="row-middle"&&(bound_top=bound.top+bound.height*.5-stableHeight*.5),dataNavBar==="yes"&&(bound_top-=UNCODE.menuHeight),gsap_calc=bound_top*dataMove*.5*direction;gsap.killTweensOf($title),gsap.to($title,{duration:.24,x:gsap_calc})};textMarqueeScroll(),$(window).off("load"+marqueeNS+" scroll"+marqueeNS).on("load"+marqueeNS+" scroll"+marqueeNS,function(e){textMarqueeScroll()})},cloneSpan=function($_title,cntnt){$_title.hasClass("un-marquee-infinite")&&$("> span.marquee-clone-wrap",$_title).text(""),gsap.to($_title,{duration:0,x:0}),spanW=$span.outerWidth();if(!spanW)return;var part=Math.ceil(UNCODE.wwidth/spanW)*2,spaceSpan=dataSpace!=="default"?'<span class="marquee-space-'+dataSpace+'"> </span>':" ";if($_title.hasClass("un-marquee-infinite"))for(var i=0;i<part;i++)$prepended.append(cntnt+spaceSpan),$appended.append(cntnt+spaceSpan);if($("body").hasClass("compose-mode")){$(".uncode_fe_safe").remove();return}if($title.closest(".marquee-freezed").length)return;($_title.hasClass("un-marquee")||$_title.hasClass("un-marquee-opposite"))&&continuousTextMarquee(),($_title.hasClass("un-marquee-scroll")||$_title.hasClass("un-marquee-scroll-opposite"))&&runTextMarquee()},marqueeResize=function(e){if(isInMenu)return;var tOut=1e3;isInMenu?(gsap.killTweensOf($title),typeof inview!="undefined"&&inview!==null&&inview.destroy(),typeof marqueeTL!="undefined"&&marqueeTL!==null&&marqueeTL.kill(),first=!0,$(window).off(marqueeNS),$(document).off(marqueeNS),initTextMarquee()):(clearRequestTimeout(marqueeCheckResize),marqueeCheckResize=requestTimeout(function(){newW!==UNCODE.wwidth&&(gsap.killTweensOf($title),typeof inview!="undefined"&&inview!==null&&inview.destroy(),typeof marqueeTL!="undefined"&&marqueeTL!==null&&marqueeTL.kill(),first=!0,$(window).off(marqueeNS),$(document).off(marqueeNS),initTextMarquee(),newW=UNCODE.wwidth)},tOut))};$(window).off("resize",marqueeResize).on("resize",marqueeResize),$(window).off("uncode.re-layout",marqueeResize).on("uncode.re-layout",marqueeResize),cloneSpan($title,txt),$("body").hasClass("compose-mode")&&typeof window.parent.vc!="undefined"&&window.parent.vc.events.on("shortcodeView:updated",function(e){var $_titles=$(".un-text-marquee",e.view.$el);clearRequestTimeout(marqueeCheckResize),marqueeCheckResize=requestTimeout(function(){initTextMarquee($_titles)},1e3)})}),$(window).on("load wwResize",function(e){stableHeight=UNCODE.wheight})};document.addEventListener("DOMContentLoaded",function(){isInitMarque!==!0&&initTextMarquee()}),$(window).on("focus load resize",function(){clearTimeout(initMarquee),initMarquee=setTimeout(function(){isInitMarque!==!0&&initTextMarquee()},500)}),$(document).on("pumAfterOpen pumAfterClose",function(args){initTextMarquee()}),$(document).on("uncode-scrolltrigger-refresh",function(args){var nextDocH=Math.round($(document).height());if(Math.abs(nextDocH-lastMarqueeDocH)<=2)return;lastMarqueeDocH=nextDocH,clearRequestTimeout(marqueeCheckResize),marqueeCheckResize=requestTimeout(function(){initTextMarquee()},250)})},UNCODE.parallax=function(){if(!UNCODE.isFullPage&&!UNCODE.isFullPageSnap&&(UNCODE.wwidth>UNCODE.mediaQuery||SiteParameters.mobile_parallax_animation==="1")&&$(".parallax-el").length>0){var parallax_elements=new Rellax(".parallax-el");$(document.body).trigger("uncode_parallax_done",parallax_elements),window.addEventListener("boxResized",function(e){parallax_elements.refresh()},!1),$(window).on("uncode_wc_variation_gallery_loaded",function(event){requestTimeout(function(){parallax_elements.refresh()},100)}),typeof UNCODE.hDoc=="undefined"&&(UNCODE.hDoc=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight));function paralraf(time){requestAnimationFrame(paralraf);var newHdoc=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight);UNCODE.hDoc!==newHdoc&&(UNCODE.hDoc=newHdoc,parallax_elements.refresh())}requestAnimationFrame(paralraf)}},UNCODE.magicCursor=function(){function delayChangeCursor(cursorType,cursorTitle,cursorBg,delayt_time,dataTitle,fontClass){currentBg!==!1&&cursorBg===!1&&cursorType==="auto"&&($tooltip.css({opacity:0}
1),delayt_time+=400),clearRequestTimeout(setTime),setTime=requestTimeout(function(){$tooltip.css({opacity:""}),$customCursor.find("> span:first-child").add($tooltip).removeClass("tooltip-boing"),cursorTitle!==""?(fromTitle&&dataTitle==="boing"&&setTimeout(function(){$customCursor.find("> span:first-child").add($tooltip).addClass("tooltip-boing")},5),$cursorSpan.attr("class",fontClass).html(cursorTitle)):cursorType!=="auto"&&$cursorSpan.html(""),$cursorSpan.addClass("in-tooltip"),$customCursor.attr("data-cursor",cursorType),fromTitle?$customCursor.addClass("from-tooltip-title"):$customCursor.removeClass("from-tooltip-title"),cursorBg!==!1?$customCursor.attr("data-bg","transparent"):$customCursor.removeAttr("data-bg"),currentBg=cursorBg,cursorTitle!==""?(fromTitle=!0,$customCursor.attr("data-cursor",cursorType),$customCursor.attr("data-title","true"),$cursorSpan.css({width:""})):(fromTitle=!1,$customCursor.removeAttr("data-title")),spanW=$cursorSpan.outerWidth(),spanW>=maxW&&maxW!==!1?($customCursor.find("> span:first-child").add($tooltip).addClass("max-width"),$customCursor.find("> span:first-child").add($tooltip).add($cursorSpan).css({width:maxW}),spanW=maxW):$customCursor.find("> span:first-child").removeClass("max-width"),spanH=$cursorSpan.outerHeight(),spanW&&spanH&&cursorTitle!==""&&cursorType.indexOf("icon-")>=0?$customCursor.find("> span:first-child").add($tooltip).css({width:spanW,height:spanH}):$customCursor.find("> span:first-child").add($tooltip).removeAttr("style"),$customPilot.length&&$customPilot.attr("data-cursor",cursorType)},delayt_time)}function changeCursor($wrap){$wrap=typeof $wrap=="undefined"?$("body"):$wrap;var href=SiteParameters.custom_cursor_selector!=""?SiteParameters.custom_cursor_selector:"[href], a[data-lbox]",$href=$wrap.find(href),cursorType,cursorTitle="",tooltip_class="",cursorBg=!1;$wrap.filter(":not(.cursor-init)").on("mouseenter.cursor",href,function(e){var $this=$(this).addClass("cursor-init"),$tmb=$this.closest(".tmb"),data_cursor=$this.closest("[data-cursor]").attr("data-cursor")||$this.attr("data-cursor"),cursor_bg=$this.closest("[data-cursor]").attr("data-cursor-transparent")||$this.attr("data-cursor-transparent"),data_title=$this.closest("[data-cursor]").attr("data-cursor-title")||$this.attr("data-cursor-title"),data_class=$this.closest("[data-cursor]").attr("data-tooltip-class")||$this.attr("data-tooltip-class"),custom_text=$this.closest("[data-cursor]").attr("data-tooltip-text")||$this.attr("data-tooltip-text"),$title=$(".t-entry-title",$tmb),is_frontend_editor=$this.closest(".vc_controls").length,hasSrcOrClck=$("[src]",$this).length||$(".t-background-cover",$this).length||$this.closest(".tmb-click-row").length,$parent_cursor=$this.closest('[class*="custom-cursor"]');is_frontend_editor?cursorType="auto":typeof data_cursor!="undefined"&&data_cursor!==""&&hasSrcOrClck?cursorType=data_cursor:$parent_cursor.length?$parent_cursor.hasClass("custom-cursor-light")?cursorType="icon-light":$parent_cursor.hasClass("custom-cursor-diff")?cursorType="icon-diff":$parent_cursor.hasClass("custom-cursor-accent")?cursorType="icon-accent":cursorType="icon-dark":cursorType="pointer",typeof data_title!="undefined"&&data_title!==""?typeof custom_text!="undefined"&&custom_text!==""?cursorTitle=custom_text:(cursorTitle=$title.clone(),$("a",cursorTitle).replaceWith(function(){return this.childNodes}),$("*",cursorTitle).replaceWith(function(){return $(this).removeAttr("class")}),cursorTitle=cursorTitle.html()):cursorTitle="",typeof data_class!="undefined"&&data_class!==""?tooltip_class=data_class:tooltip_class="",cursor_bg=="true"?cursorBg=!0:cursorBg=!1,delayChangeCursor(cursorType,cursorTitle,cursorBg,0,data_title,tooltip_class)}).on("mouseleave.cursor",href,function(e){var outTime=150;currentBg!==!1&&cursorBg===!1&&(outTime=0),delayChangeCursor("auto","",!1,outTime,!1,"")}),$(window).on("disable-hover",function(event){document.addEventListener("mousemove",function(e){mouseEvent=e}),delayChangeCursor("auto",cursorTitle,cursorBg,0,!1,"")}),$(window).on("enable-hover",function(event){if(typeof mouseEvent!="undefined"){var x=mouseEvent.clientX,y=mouseEvent.clientY,elements=document.elementsFromPoint(x,y),$element=$(elements[0]);$element.closest(href).trigger("mouseenter")}})}var $customCursor=$("#uncode-custom-cursor"),$customPilot=$("#uncode-custom-cursor-pilot"),$tooltip=$(".title-tooltip",$customCursor),$curs
1orSpan=$("> span",$tooltip),currentBg=!1,fromTitle=!1,setTime,mouseEvent,spanW,spanH,maxW=!1;$(window).on("load uncode-custom-cursor uncode-quick-view-loaded",function(event){changeCursor()}),$(document).ajaxComplete(function(event,xhr,settings){changeCursor()}),$(".isotope-container").on("isotope-layout-complete",function(){var $this=$(this);changeCursor($this)})},UNCODE.magneticCursor=function(){function magneticCursor($wrap){$wrap=typeof $wrap=="undefined"?$("body"):$wrap;var $magnetics=$wrap.find(".tmb-image-anim-magnetic .t-entry-visual").has("img:not(.avatar), .t-background-cover, .dummy.secondary-dummy-image, .t-secondary-background-cover").add($(".magnetic").has(".background-inner, .header-bg"));$magnetics.on("mousemove",function(e){var $this=$(this),$el,bound=e.currentTarget.getBoundingClientRect(),coeff=30,hor=bound.width/2-(e.clientX-bound.left),ver=bound.height/2-(e.clientY-bound.top),toX=hor/bound.width*coeff,toY=ver/bound.height*coeff,scaleX=((bound.width+coeff+5)/bound.width).toFixed(2),scaleY=((bound.height+coeff+5)/bound.height).toFixed(2),toScale=Math.max(scaleX,scaleY);$this.hasClass("magnetic")?$el=$(".background-inner, .header-bg",$this):$el=$("img:not(.avatar), .t-background-cover, .fluid-object, .dummy.secondary-dummy-image, .t-secondary-background-cover",$this),gsap.killTweensOf($el),gsap.to($el,{duration:.75,x:toX,y:toY,scale:toScale,ease:Power1.easeOut,transformPerspective:900,transformOrigin:"center",force3D:!0})}).on("mouseout",function(e){var $this=$(this),$el;$this.hasClass("magnetic")?$el=$(".background-inner, .header-bg",$this):$el=$("img:not(.avatar), .t-background-cover, .fluid-object, .dummy.secondary-dummy-image, .t-secondary-background-cover",$this),gsap.killTweensOf($el),gsap.to($el,{duration:.6,y:0,x:0,scale:1,ease:Power1.easeOut,transformPerspective:900,transformOrigin:"center",force3D:!0})})}$(window).on("load uncode-custom-cursor uncode-quick-view-loaded",function(event){magneticCursor()}),$(document).ajaxComplete(function(event,xhr,settings){magneticCursor()}),$(".isotope-container").on("isotope-layout-complete",function(){var $this=$(this);magneticCursor($this)})},UNCODE.dropImage=function(){function imageHover(){if($("body").hasClass("compose-mode")&&typeof window.parent.vc!="undefined")return;var $postLists=$(".uncode-post-titles");$postLists.each(function(){function manageVideos($el,start){var videoElem=$("video",$el),$iframe=$("iframe",$el),iframeID=$iframe.attr("id");videoElem.length&&(Object.prototype.toString.call(videoElem[0].setCurrentTime)=="[object Function]"?start?(videoElem[0].setCurrentTime(0),videoElem[0].play()):(videoElem[0].pause(),videoElem[0].setCurrentTime(0)):start?(videoElem[0].currentTime=0,videoElem[0].play()):(videoElem[0].pause(),videoElem[0].currentTime=0)),$el.data("active",start);if($el.attr("data-provider")==="vimeo"&&typeof iframeID!="undefined"&&iframeID!==null){var iframeIDv=iframeID.replace("okplayer-",""),optionsV=$(window).data("okoptions-"+iframeIDv),vimeo=$iframe[0],playerV=new Vimeo.Player(vimeo),timeV=0;if(optionsV.time!=null){var timeArr=optionsV.time.replace("t=","").split(/([^\d.-])/);for(var i=0;i<timeArr.length;i++)timeArr[i]==="h"?timeV+=parseFloat(timeArr[i-1])*3600:timeArr[i]==="m"?timeV+=parseFloat(timeArr[i-1])*60:timeArr[i]==="s"&&(timeV+=parseFloat(timeArr[i-1]))}playerV.setCurrentTime(timeV),start?(playerV.setVolume(0),playerV.play()):playerV.pause()}else $el.attr("data-provider")==="youtube"&&(start?$el.trigger("uncode-resume"):$el.trigger("uncode-pause"))}var $list=$(this),timing=parseFloat($list.attr("data-timing")),default_image=$list.hasClass("uncode-post-titles-default-image"),default_title=$list.hasClass("uncode-post-titles-default-title"),$tmbs=$(".tmb",$list),$drop_moves=$(".t-entry-drop:not(.drop-parent)",$tmbs),clientX,clientY,$row_parent=$list.closest(".vc_row"),$drop_row_parents=$(".drop-parent.drop-parent-row",$list),$col_parent=$list.closest(".uncell"),$drop_col_parents=$(".drop-parent.drop-parent-column",$list),stoppedScrolling=!0,setCTA;timing*=.001;var drop_bgs=function(){$drop_row_parents.add($drop_col_parents).filter("[data-bgset]").each(function(e){var $drop=$(this),srcset=$drop.attr("data-bgset"),setArr=srcset.split(","),setArrOrder=[],biggest=0,checkBg=!1,desktopBG=$drop.data("[data-background-image]"),mobileBG=$drop.data("[data-mobile-background-image]");if($drop.hasClass("srcset-bg-async"))if(UNCODE.wwidth<UNCODE.mediaQuery&&typeof mobileBG!="undefined"&&mobileBG!==""||UNCODE.wwidth>=UNCODE.mediaQuery&&typeof desktopBG!="undefined"&&desktopBG!=="")return;if(SiteParameters.uncode_adaptive==1)typeof setArr[0]!="undefined"&&setArr[0]!==null&&$drop.css({"background-image":"url("+setArr[0]+")"});else{for(var i=0;i<setArr.length;i++){var setLoop=setArr[i].trim().split(" ");if(typeof setLoop[1]!="undefined"&&setLoop[1]!==""){var parseSet=parseFloat(setLoop[1]);biggest<parseSet&&(biggest=parseSet),setArrOrder[parseSet]=setLoop[0],screenInfo.width<=parseSet&&typeof setLoop[0]!="undefined"&&setLoop[0]!==null&&(checkBg=!0,$drop.css({"background-image":"url("+setLoop[0]+")"}))}}!checkBg&&typeof setArrOrder[biggest]!="undefined"&&setArrOrder[biggest]!==null&&$drop.css({"background-image":"url("+setArrOrder[biggest]+")"})}})};drop_bgs();var dropMovesSize=function(){if(UNCODE.wwidth<UNCODE.mediaQuery)return;$drop_moves.each(function(){var $drop_move=$(this),dataW=$drop_move.attr("data-w"),$anim_parent=$drop_move.closest(".animate_when_almost_visible:not(.uncode-skew):not
1(.t-inside), .parallax-el");typeof dataW!="undefined"&&dataW!==null&&(dataW=screenInfo.width/12*parseFloat(dataW)),$drop_moves.css({width:dataW}),$anim_parent.length&&$anim_parent.css("transform")!==""&&$anim_parent.css("transform")!=="none"&&$anim_parent.on("animationend",function(){var bound=$anim_parent[0].getBoundingClientRect();$drop_move.css({left:bound.x*-1,top:bound.y*-1})})})};dropMovesSize(),$(window).on("resize",function(){clearRequestTimeout(setCTA),setCTA=requestTimeout(function(){drop_bgs(),dropMovesSize()},100)}),$drop_row_parents.length&&$row_parent.addClass("drop-added"),$drop_row_parents.each(function(index,val){var $drop=$(val);$row_parent.prepend($drop),manageVideos($drop,!1),typeof UNCODE.initVideoComponent!="undefined"&&UNCODE.initVideoComponent($row_parent[0],".uncode-video-container.video, .uncode-video-container.self-video");if(default_image&&index==0){manageVideos($drop,!0);var bgStyle=$drop.css("background-image"),match=bgStyle&&bgStyle.match(/url\(["']?([^"')]+)["']?\)/),bg_img=match?match[1]:null,image_ph=new Image;bg_img&&(image_ph.onload=function(){$drop.addClass("active"),default_title&&($list.addClass("drop-hover"),$tmbs.first().addClass("drop-active"))},image_ph.src=bg_img),typeof bg_img!="undefined"&&bg_img!==null&&(image_ph.onload=function(){$drop.addClass("active"),default_title&&($list.addClass("drop-hover"),$tmbs.first().addClass("drop-active"))},image_ph.src=bg_img)}}),$drop_col_parents.length&&$col_parent.addClass("drop-added"),$drop_col_parents.each(function(index,val){var $drop=$(this);$col_parent.prepend($drop),manageVideos($drop,!1),typeof UNCODE.initVideoComponent!="undefined"&&UNCODE.initVideoComponent($col_parent[0],".uncode-video-container.video, .uncode-video-container.self-video");if(default_image&&index==0){manageVideos($drop,!0);var bg_img=$drop.css("background-image").match(/url\(["']?([^"']*)["']?\)/)[1],image_ph=new Image;typeof bg_img!="undefined"&&bg_img!==null&&(image_ph.onload=function(){$drop.addClass("active"),default_title&&($list.addClass("drop-hover"),$tmbs.first().addClass("drop-active"))},image_ph.src=bg_img)}}),UNCODE.wwidth>=UNCODE.mediaQuery?document.addEventListener("mousemove",function(e){$drop_moves.each(function(){var $drop_move=$(this),duration=.4;$("#uncode-custom-cursor:not(.in-content)").length&&(duration=.8),clientX=e.clientX,clientY=e.clientY,gsap.to($drop_move,{duration:duration,x:clientX,y:clientY,ease:Power1.easeOut})})}):($(window).on("touchend scroll",function(e){$list.removeClass("drop-hover"),$drop_moves.removeClass("active"),$tmbs.removeClass("drop-active")}),$drop_moves.each(function(){var $drop_move=$(this),$tmb=$drop_move.closest(".tmb"),$anim_parent=$drop_move.closest(".animate_when_almost_visible, .uncode-skew, .parallax-el");$anim_parent.hasClass("uncode-skew")&&$anim_parent.css({transform:"skew(0)"}),$tmb.on("touchend",function(e){e.stopPropagation(),$drop_moves.removeClass("active"),$tmbs.removeClass("drop-active"),$list.addClass("drop-hover"),$tmb.addClass("drop-active"),$drop_move.addClass("active"),manageVideos($drop_move,!0),clientX=e.changedTouches[0].clientX,clientY=e.changedTouches[0].clientY;if($anim_parent.length&&$anim_parent.css("transform")!==""&&$anim_parent.css("transform")!=="none"){var bound=$anim_parent[0].getBoundingClientRect();clientX-=bound.x,clientY-=bound.y}$drop_move.css({left:clientX,top:clientY})})})),$tmbs.each(function(e){var $tmb=$(this),$trgr=$tmb,$drop_move=$(".t-entry-drop:not(.drop-parent)",$tmb),$anim_parent=$drop_move.closest(".animate_when_almost_visible:not(.uncode-skew):not(.t-inside), .parallax-el"),$video=$("video",$tmb),$iframe=$("iframe",$tmb),$entryTxt=$(".t-entry-text",$tmb),stopBounding;$entryTxt.add($drop_move).css({"transition-duration":timing+"s"});if($video.length){var vidH=$video[0].videoHeight,vidW=$video[0].videoWidth;$video.css({height:vidH,width:vidW})}if($iframe.length){var vidH=$drop_move.attr("data-height"),vidW=$drop_move.attr("data-width");$iframe.css({height:vidH,width:vidW})}$iframe.each(function(){var $video=$(this),vidH=$video[0].videoHeight,vidW=$video[0].videoWidth;$video.css({height:vidH,width:vidW})}),$drop_move.length&&UNCODE.wwidth>=UNCODE.mediaQuery&&($trgr.on("mouseenter",function(e){$list.addClass("drop-hover"),$tmbs.removeClass("drop-active"),$tmb.addClass("drop-active"),$drop_move.addClass("active"),manageVideos($drop_move,!0);var clientX=e.clientX,clientY=e.clientY;$drop_move.css({transform:"translate3d("+clientX+"px, "+clientY+"px, 0px)"})}).on("mouseleave",function(e){$list.removeClass("drop-hover"),$drop_move.css({"transition-duration":timing*1.25+"s"}),$drop_move.removeClass("active"),$tmb.removeClass("drop-active"),$drop_move.on("transitionend",function(e){$drop_move.off("transitionend"),$drop_move.css({"transition-duration":timing+"s"}),manageVideos($drop_move,!1)})}),document.addEventListener("visibilitychange",function(){document.visibilityState=="hidden"&&$drop_move.data("active")===!0&&($drop_move.css({"transition-duration":"0s"}),$drop_move.removeClass("active"),manageVideos($drop_move,!1))}),document.addEventListener("scroll",function(){window.clearRequestTimeout(stopBounding),stoppedScrolling&&(stoppedScrolling=!1,$drop_move.hasClass("active")&&($list.removeClass("drop-hover"),$tmbs.removeClass("drop-active"),$drop_move.removeClass("active"),$drop_move.on("transitionend",function(e){$drop_move.off("transitionend"),$drop_move.css({"transition-duration":timing+"s"}),manageVideos($drop_move,!1)}))),stopBounding=requestTimeout(function(){if($anim_parent.length&&$anim_parent.css("transform")!==""&&$anim_parent.css("transform")!=="none"){var bound=$anim_parent[0].getBoundingClientRect();
1$drop_move.css({left:bound.x*-1,top:bound.y*-1})}stoppedScrolling=!0},500)}));var datatarget=$trgr.closest("[data-drop-target]").attr("data-drop-target"),$drop=$('[data-drop="'+datatarget+'"]',$row_parent);$drop.css({"transition-duration":timing+"s"}),($drop_row_parents.length||$drop_col_parents.length)&&$drop.length&&($trgr.on("mouseenter",function(e){$row_parent.add($col_parent).addClass("drop-list-loaded"),$list.addClass("drop-hover");if(!$tmb.hasClass("drop-active")){$tmbs.removeClass("drop-active"),$tmb.addClass("drop-active");if(default_image&&!$drop.hasClass("active")){var $prev=$("[data-drop].active",$row_parent);$prev.css({"transition-duration":timing*1.5+"s"}),$prev.removeClass("active"),$prev.on("transitionend",function(e){$prev.off("transitionend"),manageVideos($prev,!1)})}$drop.css({"transition-duration":timing+"s"}),$drop.off("transitionend"),$drop.addClass("active"),manageVideos($drop,!0)}}).on("mouseleave",function(e){if(default_image&&!default_title||!default_image)$list.removeClass("drop-hover"),$tmb.removeClass("drop-active");default_image||($drop.css({"transition-duration":timing*1.5+"s"}),$drop.removeClass("active"),$drop.on("transitionend",function(e){$drop.off("transitionend"),manageVideos($drop,!1)}))}),document.addEventListener("visibilitychange",function(){document.visibilityState=="hidden"&&$drop.data("active")===!0&&!default_image&&($drop.css({"transition-duration":"0s"}),$drop.removeClass("active"),manageVideos($drop,!1))}))})})}$(window).on("load",function(event){imageHover()});var drop_wp_animation=function(){var $postLists=$(".uncode-post-titles");$postLists.each(function(){$.each($(".t-inside.animate_when_almost_visible",$postLists),function(index,val){new Waypoint({context:UNCODE.isUnmodalOpen?document.getElementById("unmodal-content"):window,element:val,handler:function(){var element=$(this.element),parent=element.closest(".tmb"),currentIndex=parent.index(),delay=currentIndex,delayAttr=parseInt(element.attr("data-delay"));isNaN(delayAttr)&&(delayAttr=100);var objTimeout=requestTimeout(function(){element.addClass("start_animation");var nextTimeout=requestTimeout(function(){$(".drop-image-separator",parent).addClass("start_animation")},50)},delay*delayAttr);UNCODE.isUnmodalOpen||this.destroy()},offset:UNCODE.isFullPage?"100%":"90%"})})})},runWaypoints_TO,runWaypoints_delay=0,runWaypoints=function(){typeof runWaypoints_TO!="undefined"&&runWaypoints_TO!==""&&(runWaypoints_delay=400),clearRequestTimeout(runWaypoints_TO),runWaypoints_TO=requestTimeout(function(){drop_wp_animation()},runWaypoints_delay)};runWaypoints(),$(document.body).on("uncode_waypoints",runWaypoints),$("body").hasClass("compose-mode")&&typeof window.parent.vc!="undefined"&&window.parent.vc.events.on("shortcodeView:ready shortcodeView:updated",function(){runWaypoints()})},UNCODE.postTable=function(){var clickRow=function(){var $postLists=$(".uncode-post-table");$postLists.each(function(){var $postList=$(this),$tmbClicks=$(".tmb.tmb-click-row",$postList);$tmbClicks.each(function(){var $tmb=$(this),$click=$(".table-click-row",$tmb);$("*:not(.table-click-row)",$tmb).on("click",function(e){return e.preventDefault(),e.stopPropagation(),$click[0].click(),!1})})})};clickRow();var hoverRow=function(){var $postLists=$(".uncode-post-table.uncode-post-table-hover");$postLists.on("mouseenter",function(){$(this).addClass("post-table-hover")}),$postLists.on("mouseleave",function(){$(this).removeClass("post-table-hover")})};hoverRow();var drop_wp_animation=function(){var $postLists=$(".uncode-post-table");$postLists.each(function(){$.each($(".t-inside.animate_when_almost_visible",$postLists),function(index,val){new Waypoint({context:UNCODE.isUnmodalOpen?document.getElementById("unmodal-content"):window,element:val,handler:function(){var element=$(this.element),parent=element.closest(".tmb"),currentIndex=parent.index(),delay=currentIndex,delayAttr=parseInt(element.attr("data-delay"));isNaN(delayAttr)&&(delayAttr=100);var objTimeout=requestTimeout(function(){element.addClass("start_animation")},delay*delayAttr);UNCODE.isUnmodalOpen||this.destroy()},offset:UNCODE.isFullPage?"100%":"90%"})})})},runWaypoints_TO,runWaypoints_delay=0,runWaypoints=function(){typeof runWaypoints_TO!="undefined"&&runWaypoints_TO!==""&&(runWaypoints_delay=400),clearRequestTimeout(runWaypoints_TO),runWaypoints_TO=requestTimeout(function(){drop_wp_animation()},runWaypoints_delay)};runWaypoints(),$(document.body).on("uncode_waypoints",runWaypoints),$("body").hasClass("compose-mode")&&typeof window.parent.vc!="undefined"&&window.parent.vc.events.on("shortcodeView:ready shortcodeView:updated",function(){runWaypoints()})},UNCODE.rotatingTxt=function($ctxt){if($("body").hasClass("compose-mode"))return;$ctxt=typeof $ctxt=="undefined"?$("body"):$ctxt;var setCTA;$(".el-text",$ctxt).has(".uncode-rotating-text-start[data-text]").each(function(){var $heading=$(this),cycle=0,$trgt,$toMove,$highl,$col=$heading.closest(".uncont"),txt,arrTxt,textFadeIn,textFadeOut,removeWraps,defineObjs=function(){$(".uncode-rotating-text-start[data-text]",$heading).each(function(){var $rtx=$(this),fx=$rtx.attr("data-fx"),wait=$rtx.attr("data-wait"),$prev=$(this).prev().addClass("prev-rotating-start"),splitToMove=[],splitArray=[],lineArray=[],lineIndex=0,lineStart=!0,lineEnd=!1,startSplit=!1,$line_wrap=$rtx.closest(".heading-line-wrap"),same_line=!0,$splits=$rtx.closest(".el-text").find(".split-word").removeClass("empty-span-hidden"),indexRtx=$splits.index($rtx);fx=typeof fx=="undefined"?"":fx,wait=typeof wait=="undefined"?"":wait,$splits.each(function(key,val){var $split=$(this),$new_line_wrap=$split.closest(".heading-line-wrap");$split.text()==""&&!$split.hasClass("uncode-rotating-text-end")&&!$split.hasClass("uncode-rotating-text-start")&&!splitArray.length&&splitArray.push($split),$split.hasClass("uncode-rotating-text-end")&&startSplit===!0&&(startSplit=!1),!$split.hasClass("uncode-rotating-text-end")&&startSplit===!0&&(splitArray.push($split),same_line&&(!$new_line_wrap.length||$line_wrap[0]==$new_line_wrap[0])?same_line=!0:same_line=!1),key==indexRtx&&(/\S/.test($split.text())?(startSplit=!0,$line_wrap=$split.closest(".heading-line-wrap"),splitArray.push($split)):indexRtx++),$line_wrap=$new_line_wrap}),$toMove=$($.map(splitToMove,function(el){return el.get()})),$trgt=$($.map(splitArray,function(el){return el.get()})),same_line&&($trgt.wrapAll('<span class="uncode-rotating-wrap" data-fx="'+fx+'" data-wait="'+wait+'" />'),$trgt.wrapAll('<span class="uncode-rotating-wrap-inner" />')),$prev.hasClass("split-word-empty")&&$rtx.is(":last-child")&&$prev.addClass("empty-span-hidden"),$highl=$(".heading-text-highlight-inner",$trgt),$rtx.attr("data-animated","true");if(cycle==0){$(document.body).trigger("defer-highlights"),cycle++,defineObjs();return}cycle++,txt=$rtx.attr("data-text"),arrTxt=txt.split("|"),textFadeOut($trgt)})};removeWraps=function(){var $wraps=$heading[0].querySelectorAll(".uncode-rotating-wrap, .uncode-rotating-wrap-inner");for(var wrap_k=0;wrap_k<$wraps.length;wrap_k++){var $temp_highl=$($wraps[wrap_k]).find("> .heading-text-highlight-inner").clone(),$splitFlow=$($wraps[wrap_k]).find(".split-word-flow");$($wraps[wrap_k]).find("> .heading-text-highlight-inner").remove(),$splitFlow.each(function(){$(this).append($temp_highl)});var $line_wrap=$wraps[wrap_k],$parent_wrap=$line_wrap.parentNode;if($parent_wrap!==null){while($line_wrap.firstChild)$parent_wrap.insertBefore($line_wrap.firstChild,$line_wrap);$parent_wrap.removeChild($line_wrap)}}defineObjs()};var loop=0;textFadeIn=function($trgt){var word=arrTxt[loop].split(" "),worsSpan="",$wrap=$trgt.closest(".uncode-rotating-wrap"),$wrap_inner=$trgt.closest(".uncode-rotating-wrap-inner"),fx=$trgt.closest(".uncode-rotating-wrap").attr("data-fx");for(var w=0;w<word.length;w++){var highl;$highl.length?highl=$highl[0].outerHTML:highl="",w>0&&(worsSpan+='<span class="split-word"><span class="split-word-flow"><span class="split-word-inner split-empty-inner"> </span>'+highl+"</span></span>");var charachters=word[w].split("");worsSpan+='<span class="split-word"><span class="split-word-flow"><span class="split-word-inner">';if(!SiteParameters.uncode_has_ligatures)for(var c=0;c<charachters.length;c++)worsSpan+='<span class="split-char">'+charachters[c]+"</span>";else worsSpan+=word[w];worsSpan+="</span>"+highl+"</span></span>"}if($wrap.length&&$wrap_inner.length){var words_w=$wrap_inner.outerWidth();$wrap.css({width:words_w}),$highl=$(".heading-text-highlight-inner",$wrap),$highl.prependTo($wrap),$wrap_inner.css({opacity:0}
1),$wrap_inner.html(worsSpan),$(".heading-text-highlight-inner",$wrap_inner).remove(),words_w=$wrap_inner.innerWidth();var duration=.45;$heading.removeClass("auto-width"),words_w>$col.width()&&($heading.addClass("auto-width"),words_w="auto",duration=0),$wrap.css({width:words_w,transition:"width "+duration*1e3+"ms cubic-bezier(0.16, 1, 0.3, 1)"});var $word_inner=$(".split-word-inner",$wrap_inner),$extra_wrap_inner=$wrap_inner.closest(".uncode-rotating-wrap-inner"),$target_fx=fx==="zoom"?$wrap_inner:$word_inner;if(!$target_fx.length)return;gsap.killTweensOf($target_fx);if(fx!=="zoom"){gsap.fromTo($target_fx,{y:fx==="opacity"?"0%":"-10%"},{delay:duration,duration:.25,y:"0%",ease:Circ.easeOut});if(!$wrap_inner.length)return;gsap.fromTo($wrap_inner,{opacity:0},{delay:duration,duration:.25,opacity:1,ease:Circ.easeOut,onComplete:function(){$("> .heading-text-highlight-inner",$wrap).remove(),$wrap_inner.html(worsSpan),removeWraps()}})}else gsap.fromTo($target_fx,{transformOrigin:"50%",opacity:0,scale:.875},{opacity:1,delay:duration,duration:.25,scale:1,ease:Circ.easeOut,onComplete:function(){$("> .heading-text-highlight-inner",$wrap).remove(),$wrap_inner.html(worsSpan),removeWraps()}})}else{if(!$wrap_inner.length)return;gsap.to($wrap_inner,{duration:.4,opacity:0,ease:Power1.easeOut,onComplete:function(){$wrap_inner.html(worsSpan),words_w=$wrap_inner.innerWidth(),gsap.to($wrap_inner,{duration:.2,opacity:1,ease:Power1.easeOut,onComplete:function(){$("> .heading-text-highlight-inner",$wrap).remove(),$wrap_inner.html(worsSpan),removeWraps()}})}})}loop<arrTxt.length-1?loop++:loop=0},textFadeOut=function($trgt){var $word_inner=$(".split-word-inner",$trgt),$wrap=$trgt.closest(".uncode-rotating-wrap"),$wrap_inner=$trgt.closest(".uncode-rotating-wrap-inner"),fx=$trgt.closest(".uncode-rotating-wrap").attr("data-fx"),wait=$trgt.closest(".uncode-rotating-wrap").attr("data-wait");wait=typeof wait=="undefined"||wait===""?3:parseFloat(wait)/1e3;var gsap_param={delay:wait,duration:.25,y:fx===""?"10%":"0%",opacity:0,ease:Circ.easeOut,onStart:function(){$wrap.length&&$wrap_inner.length&&fx==="zoom"&&($highl=$(".heading-text-highlight-inner",$wrap),$highl.prependTo($wrap))},onComplete:textFadeIn,onCompleteParams:[$trgt]},$target_fx=fx==="zoom"?$wrap_inner:$word_inner;fx===""?gsap_param.y="10%":fx==="zoom"&&(gsap_param.scale="1.045");if(!$target_fx.length)return;if($heading.data("waypoint")!==!0)var textInView=new Waypoint.Inview({context:UNCODE.isUnmodalOpen?document.getElementById("unmodal-content"):window,element:$heading[0],enter:function(direction){$heading.data("waypoint",!0),gsap.fromTo($target_fx,{transformOrigin:"50%"},gsap_param)}});else gsap.fromTo($target_fx,{transformOrigin:"50%"},gsap_param)},$("body").hasClass("compose-mode")&&typeof window.parent.vc!="undefined"?window.parent.vc.events.on("shortcodeView:updated shortcodeView:ready",function(model){var $el=model.view.$el,shortcode=model.attributes.shortcode;UNCODE.rotatingTxt($el)}):$heading.hasClass("animate_inner_when_almost_visible")?$heading.on("already-animated",function(){removeWraps(),window.addEventListener("removeOldLines",function(){clearRequestTimeout(setCTA),setCTA=requestTimeout(removeWraps,150)})}):$(window).on("load",function(){removeWraps(),window.addEventListener("removeOldLines",function(){clearRequestTimeout(setCTA),setCTA=requestTimeout(removeWraps,150)})})})},UNCODE.verticalText=function(){$(window).on("menuCanvasOpen",function(){$(".vertical-text--fixed").fadeOut(500),$(".horizontal-text--fixed").fadeOut(500)}).on("menuCanvasClose",function(){$(".vertical-text--fixed").fadeIn(500),$(".horizontal-text--fixed").fadeIn(500)});var hideOnBottomVerticalTexts=$(".vertical-text--vis-hide-bottom"),showOnTopVerticalTexts=$(".vertical-text--vis-show-top"),hideOnBottomHorizontalTexts=$(".horizontal-text--vis-hide-bottom"),showOnTopHorizontalTexts=$(".horizontal-text--vis-show-top");(hideOnBottomVerticalTexts.length>0||showOnTopVerticalTexts.length>0||hideOnBottomHorizontalTexts.length>0||showOnTopHorizontalTexts.length>0)&&window.addEventListener("scroll",function(e){var totalPageHeight=document.body.scrollHeight,scrollPoint=window.scrollY+window.innerHeight;window.scrollY>0?(showOnTopVerticalTexts.fadeOut(),showOnTopHorizontalTexts.fadeOut()):(showOnTopVerticalTexts.fadeIn(),showOnTopHorizontalTexts.fadeIn()),scrollPoint>=totalPageHeight?(hideOnBottomVerticalTexts.fadeOut(),hideOnBottomHorizontalTexts.fadeOut()):(hideOnBottomVerticalTexts.fadeIn(),hideOnBottomHorizontalTexts.fadeIn())},!1)},UNCODE.stickyScroll=function($el){if(typeof $el=="undefined"||$el===null)$el=$("body");var checkVisible=function(el,dir){typeof jQuery=="function"&&el instanceof jQuery&&(el=el[0]);var off=50;dir=typeof dir=="undefined"?"right":dir;var rect=el.getBoundingClientRect();return(rect.top>=0&&rect.top+off<=(window.innerHeight||document.documentElement.clientHeight)||rect.bottom>=off&&rect.bottom<=(window.innerHeight||document.documentElement.clientHeight)||rect.top<=0&&rect.bottom>=(window.innerHeight||document.documentElement.clientHeight))&&(rect.left>=0&&rect.left+(window.innerWidth||document.documentElement.clientWidth)/2<=(window.innerWidth||document.documentElement.clientWidth)||rect.left>=0&&rect.right<=(window.innerWidth||document.documentElement.clientWidth)||rect.right<=window.innerWidth&&rect.right-off>=0||rect.right<=window.innerWidth&&rect.left>=0)},setItemsRelHeight=function(reset){var $_el=$el;if($el.is(".index-scroll"))var $_el=$el.closest(".uncont");$(".index-scroll.hor-scroll-vh .index-row",$_el).each(function(i,item){$.each($(".tmb",item),function(index,val){if(reset===!0)$(val).css("visibility","hidden"),$("img:not(.avatar), picture, .t-background-cover",val).css("height","auto");else{var $rowParent=$(item).closest(".row-parent"),rowRatio=$rowParent.attr("data-height-ratio"),$rowInner=$(item).closest(".row-child"),rowRatioInner=$rowInner.attr("data-height"),paddingRow=parseInt($rowParent.css("padding-top"))+parseInt($rowParent.css("padding-bottom")),$colContainer=$(item).closest(".uncell"),$uncont=$(item).closest(".uncont"),paddingCol=parseInt($colContainer.css("padding-top"))+parseInt($colContainer.css("padding-bottom")),safe_heigth=$(item).data("safe-height"),winHeight=safe_heigth?UNCODE.wheight:$("#vh_layout_help").outerHeight(),offSet=$(item).offset().top-$uncont.offset().top,multiplier_h,data_viewport_h,body_border=$(".body-borders .top-border").outerHeight()*2,remove_menu=$(item).data("vp-menu");rowRatio==="full"||rowRatio===""?rowRatio=1:rowRatio/=100,typeof rowRatioInner=="undefined"||rowRatioInner==="full"||rowRatioInner===""||rowRatioInner==null?rowRatio=rowRatio:rowRatio=rowRatio*rowRatioInner/100,winHeight*=rowRatio,UNCODE.wwidth>=UNCODE.mediaQuery?multiplier_h=parseInt($(item).attr("data-vp-height")):UNCODE.wwidth<UNCODE.mediaQuery&&UNCODE.wwidth>=UNCODE.mediaQueryMobile?multiplier_h=parseInt($(item).attr("data-vp-height-md")):UNCODE.wwidth<UNCODE.mediaQueryMobile&&(multiplier_h=parseInt($(item).attr("data-vp-height-sm"))),typeof multiplier_h!="undefined"&&multiplier_h!==null&&multiplier_h>0?(data_viewport_h=winHeight*(multiplier_h/100)-(paddingRow+paddingCol+body_border+offSet),remove_menu===!0&&(data_viewport_h-=UNCODE.menuHeight),$("img:not(.avatar), picture, .t-background-cover, .fluid-object",val).css("height",data_viewport_h)):$("img:not(.avatar), picture, .t-background-cover, .fluid-object",val).css("height","auto")}})}),$(".index-scroll",$_el).each(function(i,item){var $uncoltable=$(item).closest(".uncoltable"),$rowParent=$(item).closest(".row-parent"),paddingRow=parseInt($rowParent.css("padding-top"))+parseInt($rowParent.css("padding-bottom")),body_border=$(".body-borders .top-border").outerHeight()*2,$index_row=$(".index-row",item),safe_heigth=$index_row.data("safe-height"),winHeight=safe_heigth?UNCODE.wheight:$("#vh_layout_help").outerHeight();if(UNCODE.wwidth<UNCODE.mediaQuery){var data_viewport_h=winHeight-(pa
1ddingRow+body_border);$uncoltable.css({"min-height":data_viewport_h})}else $uncoltable.css({"min-height":"auto"})})};setItemsRelHeight();var $index_scrolls=$(".index-scroll",$el);$index_scrolls.each(function(key,value){var $index=$(this),$parent_row=$index.closest(".vc_row[data-parent]"),$index_row=$(".index-row",$index),dir=$index_row.attr("data-direction");dir=typeof dir=="undefined"?"right":dir,$parent_row.addClass("unscroll-horizontal").attr("data-direction",dir),$(".animate_when_almost_visible",$index).length&&$index.addClass("opacity_0").addClass("scroll-refresh-hidden")});var $horScrolls=$(".unscroll-horizontal",$el);if($horScrolls.length){$("body").addClass("scrolling-trigger"),$horScrolls.each(function(key,value){var $section=$(this),$index_scroll=$(".index-scroll",$section),$index_row=$(".index-row",$index_scroll),dir=$section.attr("data-direction"),wrap=$index_row.attr("data-wrap"),$pinWrap,$pinTrigger;dir=typeof dir=="undefined"?"right":dir,$pinTrigger=$('<div class="pin-trigger" data-direction="'+dir+'" />'),$pinWrap=$('<div class="pin-wrap" />');if(SiteParameters.is_frontend_editor){var gutterClass=$(".index-wrapper",$index_scroll).attr("class").match(/\b([^\s]+)-gutter\b/g,"");$(".index-wrapper",$index_scroll).wrapInner($pinWrap.addClass(gutterClass[0]))}else wrap==="column"?$index_scroll.wrapInner($pinWrap):$("> .row",$section).wrap($pinWrap),$section.wrapInner($pinTrigger)});var $pinWraps=$(".pin-wrap",$el),horScrollSizes=function(){$pinWraps.each(function(key,val){var $pinWrap=$(this).attr("id","pin_wrap_"+key),$pinTrigger=$pinWrap.closest(".pin-trigger"),dir=$pinTrigger.length?$pinTrigger.attr("data-direction"):$pinWrap.closest("[data-direction]").attr("data-direction"),$index_scroll=SiteParameters.is_frontend_editor?$pinWrap.closest(".index-scroll"):$(".index-scroll",$pinTrigger),$boxContainer=$(".box-container"),box_m=$boxContainer.css("margin-left"),st_active=!0,setHorW,horWidth=function(){$index_scroll.each(function(){var $this=$(this),$index_row=$(".index-row",$this),$rowContainer=$index_row.closest(".vc_row"),$rowInner=$index_row.closest(".wpb_row"),$rowParent=$index_row.closest(".row-parent"),$tmbs=$(".tmb",$index_row),padding_tmb=parseFloat($tmbs.first().css("padding-right")),$uncont=$index_row.closest(".uncont"),$parent_col=$index_row.closest(".wpb_column"),col_w=$uncont.width(),data_lg=parseFloat($index_row.attr("data-lg")),data_md=$this.hasClass("row-scroll-no-md")?1:parseFloat($index_row.attr("data-md")),data_sm=$this.hasClass("row-scroll-no-sm")?1:parseFloat($index_row.attr("data-sm")),tmb_w;col_w=col_w>UNCODE.wwidth?UNCODE.wwidth:col_w,tmb_w=(col_w+padding_tmb)/data_lg,typeof data_sm!="undefined"&&data_sm!==""&&UNCODE.wwidth<570?tmb_w=(col_w+padding_tmb)/data_sm:typeof data_md!="undefined"&&data_md!==""&&UNCODE.wwidth>=570&&UNCODE.wwidth<960&&(tmb_w=(col_w+padding_tmb)/data_md),isNaN(tmb_w)||$tmbs.css({width:tmb_w}),$tmbs.css({visibility:"visible"})})};horWidth(),clearRequestTimeout(setHorW),setHorW=requestTimeout(function(){setItemsRelHeight(),horWidth()},100);if(SiteParameters.is_frontend_editor)return;var $vmenu=$("body.vmenu .vmenu-container"),vmenuW=$vmenu.length&&UNCODE.wwidth>UNCODE.mediaQuery?$vmenu.width():0,winWidth=window.innerWidth-vmenuW,$tmb=$(".tmb",$index_scroll).eq(0),paddingRight=parseFloat($tmb.css("padding-right")),stickyScrollLength=$(".index-row",$index_scroll).width()-($index_scroll.width()+paddingRight),remove_menu=$(".index-row",$index_scroll).data("vp-menu"),scroll_anim;$("body").hasClass("rtl")?dir==="left"?scroll_anim=gsap.fromTo($pinWrap,{x:stickyScrollLength},{x:0,ease:"none"}):scroll_anim=gsap.fromTo($pinWrap,{x:0},{x:stickyScrollLength,ease:"none"}):dir==="left"?scroll_anim=gsap.fromTo($pinWrap,{x:-stickyScrollLength},{x:0,ease:"none"}):scroll_anim=gsap.fromTo($pinWrap,{x:0},{x:-stickyScrollLength,ease:"none"}),typeof ScrollTrigger.getById("stickySectionScrolling"+key)!="undefined"&&ScrollTrigger.getById("stickySectionScrolling"+key).kill(!0);var animationIncrease,checkForAnimations=function(){animationIncrease=0,$(".animate_when_almost_visible:not(.start_animation)",$pinTrigger).each(function(){var _this=this;if(ScrollTrigger.isInViewport($pinTrigger[0])&&ScrollTrigger.isInViewport(_this,.5,!0)){var delayAttr=parseFloat($(_this).attr("data-delay"));if(delayAttr==undefined||isNaN(delayAttr))delayAttr=0;requestTimeout(function(){$(_this).addClass("start_animation")},delayAttr+animationIncrease),animationIncrease+=150}$(_this).on(["webkitAnimationEnd","mozAnimationEnd","MSAnimationEnd","oanimationend","animationend"].join(" "),function(e){$(e.currentTarget).removeClass("animate_when_almost_visible")})});var batchTime=0,resetBatch=function(){batchTime=0};ScrollTrigger.isScrolling()&&resetBatch(),$(".tmb-mask-reveal",$pinTrigger).each(function(){var _this=this,$this=$(_this),$inside=$(".t-inside",$this),delay=parseFloat($inside.attr("data-delay")),speed=parseFloat($inside.attr("data-speed")),easing=$inside.attr("data-easing"),bgDelay=parseFloat($inside.attr("data-bg-delay"));delay=isNaN(delay)||delay==null||typeof delay=="undefined"?0:delay/1e3,speed=isNaN(speed)||speed==null||typeof speed=="undefined"?.4:speed/1e3,easing=easing===""||easing==null||typeof easing=="undefined"?CustomEase.create("custom","0.76, 0, 0.24, 1"):easing,bgDelay=isNaN(bgDelay)||bgDelay==null||typeof bgDelay=="undefined"?"":bgDelay,ScrollTrigger.isInViewport($pinTrigger[0])&&ScrollTrigger.isInViewport(_this,.1,!0)&&!$this.hasClass("tmb-mask-init")&&($this.addClass("tmb-mask-init"),$this.hasClass("tmb-has-hex")&&bgDelay!==""?(gsap.to($(".t-entry-v
1isual-tc",$this),speed,{clipPath:"inset(0% 0% 0% 0%)",delay:delay+batchTime,ease:easing}),gsap.to($(".t-entry-visual-cont",$this),speed,{clipPath:"inset(0% 0% 0% 0%)",scale:1,delay:delay+batchTime+speed*bgDelay,ease:easing,onComplete:resetBatch})):gsap.to($(".t-entry-visual-cont",$this),speed,{clipPath:"inset(0% 0% 0% 0%)",scale:1,delay:delay+batchTime,ease:easing,onComplete:resetBatch}),batchTime+=.1)})};checkForAnimations();var start=0,horST=ScrollTrigger.create({id:"stickySectionScrolling"+key,scrub:!0,trigger:$pinTrigger[0],pin:!0,anticipatePin:1,start:function(){return"top top+="+parseFloat($(".top-border").height()+(remove_menu===!0?UNCODE.menuHeight:0))},end:function(){return"+="+stickyScrollLength},animation:scroll_anim,ease:Sine.easeOut,onUpdate:checkForAnimations,invalidateOnRefresh:!0,onEnter:function(){$pinTrigger.addClass("enter-st")},onEnterBack:function(){$pinTrigger.addClass("enter-st")},onLeave:function(){$pinTrigger.removeClass("enter-st")},onLeaveBack:function(){$pinTrigger.removeClass("enter-st")}});window.dispatchEvent(new CustomEvent("dynamic_srcset_load")),window.dispatchEvent(new CustomEvent("boxResized"));var testSecondTrigger=function(){animationIncrease=0,$(".animate_when_almost_visible:not(.start_animation)",$pinTrigger).each(function(){var _this=this;if(checkVisible(_this)){var delayAttr=parseFloat($(_this).attr("data-delay"));if(delayAttr==undefined||isNaN(delayAttr))delayAttr=0;requestTimeout(function(){$(_this).addClass("start_animation")},delayAttr+animationIncrease),animationIncrease+=150}})},verST=ScrollTrigger.create({id:"verticalSectionScrolling"+key,trigger:$pinTrigger[0],start:"top center",end:function(){return"+="+UNCODE.wheight},onUpdate:testSecondTrigger,invalidateOnRefresh:!0}),setCTA,dis_enable_ST=function(){$(".row-scroll-no-md",$pinTrigger).length&&UNCODE.wwidth<=UNCODE.mediaQuery?(horST.kill(),verST.kill(),$pinTrigger.addClass("disabled"),st_active=!1):$(".row-scroll-no-sm",$pinTrigger).length&&UNCODE.wwidth<=UNCODE.mediaQueryMobile&&(horST.kill(),verST.kill(),$pinTrigger.addClass("disabled"),st_active=!1)};$(window).on("resize load",function(){clearRequestTimeout(setCTA),setCTA=requestTimeout(function(){dis_enable_ST(),checkForAnimations()},500)})})};$(window).on("load",function(){horScrollSizes()});var setResize,setReLayout,doubleResize=!0;$(window).on("load",function(){if($(".body-borders .top-border").outerHeight()>0){var $row_inners=document.querySelectorAll(".pin-spacer .row-inner");Array.prototype.forEach.call($row_inners,function(el){el.style.height="",el.style.marginBottom=""}),setItemsRelHeight(),horScrollSizes(),typeof ScrollTrigger!="undefined"&&ScrollTrigger!==null&&$(document).trigger("uncode-scrolltrigger-refresh")}var carousel=document.querySelector(".owl-carousel"),grid=document.querySelector(".isotope-container"),stickyAll=document.querySelectorAll(".index-scroll");if(stickyAll.length)var sticky=stickyAll[stickyAll.length-1];if(typeof sticky!="undefined"){if(typeof carousel!="undefined"&&carousel!==null)var carousel_position=sticky.compareDocumentPosition(carousel);if(typeof grid!="undefined"&&grid!==null)var grid_position=sticky.compareDocumentPosition(grid);(carousel_position===2||grid_position===2)&&setTimeout(function(){typeof ScrollTrigger!="undefined"&&ScrollTrigger!==null&&$(document).trigger("uncode-scrolltrigger-refresh")},500)}});var iPhone=/iPhone/.test(navigator.userAgent)&&!window.MSStream,android=/Android/.test(navigator.userAgent)&&!window.MSStream;$(window).on("resize orientationchange",function(e){if(e.type==="resize"&&(iPhone||android&&Math.max(document.documentElement.clientWidth||0,window.innerWidth||0)<750))return;setItemsRelHeight(!0);var $row_inners=document.querySelectorAll(".pin-spacer .row-inner");Array.prototype.forEach.call($row_inners,function(el){el.style.height="",el.style.marginBottom=""}),clearRequestTimeout(setResize),setResize=requestTimeout(function(){setItemsRelHeight(),horScrollSizes(),typeof ScrollTrigger!="undefined"&&ScrollTrigger!==null&&$(document).trigger("uncode-scrolltrigger-refresh"),doubleResize===!0?(window.dispatchEvent(new Event("resize")),doubleResize=!1):doubleResize=!0,UNCODE.setRowHeight(document.querySelectorAll(".page-wrapper .row-parent"),!1,!0)},100)});var show_pins=function(){$(".index-scroll").css({opacity:"1"})};ScrollTrigger.addEventListener("refresh",show_pins),$(window).on("uncode.re-layout",function(){$(".pin-spacer").each(function(){var space_h=$(this).outerHeight(),$row=$(this).closest(".row-container");$row.css({height:space_h,overflow:"hidden"})}),typeof ScrollTrigger!="undefined"&&ScrollTrigger!==null&&ScrollTrigger.refresh(!0),clearRequestTimeout(setReLayout),setReLayout=requestTimeout(function(){$(".row-container").each(function(){$(this).css({height:"",overflow:""})})},1e3)})}},UNCODE.stickyTrigger=function($el){function clearStickyInstances(){stickyInstances.forEac
1h(function(st){st&&st.kill&&st.kill()}),stickyInstances=[]}function clearStickyObservers(){stickyObservers.forEach(function(observer){try{observer.disconnect()}catch(e){}}),stickyObservers=[]}function getStickyMetrics(){var $firstSticky=$(".sticky-trigger").first();if(!$firstSticky.length)return{rowH:0,uncontH:0};var $row=$firstSticky.closest(".vc_row"),$uncont=$firstSticky.closest(".uncont");return{rowH:$row.length?Math.round($row.outerHeight()):0,uncontH:$uncont.length?Math.round($uncont.outerHeight()):0}}function metricsChanged(nextMetrics){return Math.abs(nextMetrics.rowH-lastStickyMetrics.rowH)>1||Math.abs(nextMetrics.uncontH-lastStickyMetrics.uncontH)>1}function buildSticky(){clearStickyInstances(),clearStickyObservers(),$(".sticky-trigger").each(function(){var $sticky=$(this),$inside=$sticky.children("div").first(),$row=$sticky.closest(".vc_row"),$uncont=$sticky.closest(".uncont");if(!$inside.length||!$row.length||!$uncont.length)return;var st=ScrollTrigger.create({trigger:$sticky[0],start:function(){var insideH=$inside.outerHeight()||0;return"top center-="+insideH/2},endTrigger:$row[0],end:function(){var insideH=$inside.outerHeight()||0,rowBottom=$row.offset().top+$row.outerHeight(),uncontBottom=$uncont.offset().top+$uncont.outerHeight(),diffBottom=rowBottom-uncontBottom;return"bottom center+="+(insideH/2+diffBottom)},anticipatePin:!0,pin:!0,pinSpacing:!1,scrub:!0,invalidateOnRefresh:!0});stickyInstances.push(st);if(typeof ResizeObserver!="undefined"){var ro=new ResizeObserver(function(){if(isRefreshing){pendingRefresh=!0;return}var nextMetrics=getStickyMetrics();if(!metricsChanged(nextMetrics))return;refreshSticky(!0)});try{ro.observe($row[0]),ro.observe($uncont[0]),stickyObservers.push(ro)}catch(e){}}}),lastStickyMetrics=getStickyMetrics()}function refreshSticky(fromObserver){clearRequestTimeout(resizeTimer),resizeTimer=requestTimeout(function(){if(isRefreshing){pendingRefresh=!0;return}isRefreshing=!0,pendingRefresh=!1,fromObserver||buildSticky(),requestTimeout(function(){isRefreshing=!1,lastStickyMetrics=getStickyMetrics(),fromObserver?$(document).trigger("uncode-scrolltrigger-refresh"):$(document).trigger("uncode-scrolltrigger-refresh"),pendingRefresh&&(pendingRefresh=!1,refreshSticky(!0))},120)},fromObserver?160:100)}function maybeDelayedRefresh(){var carousel=document.querySelector(".owl-carousel"),grid=document.querySelector(".isotope-container"),stickyAll=document.querySelectorAll(".sticky-trigger"),sticky=stickyAll.length?stickyAll[stickyAll.length-1]:null,carousel_position,grid_position;if(!sticky)return;carousel&&(carousel_position=sticky.compareDocumentPosition(carousel)),grid&&(grid_position=sticky.compareDocumentPosition(grid)),(carousel_position===2||grid_position===2)&&setTimeout(function(){refreshSticky(!1)},500)}if(SiteParameters.is_frontend_editor)return!1;var resizeTimer,oldW=UNCODE.wwidth,stickyObservers=[],stickyInstances=[],isRefreshing=!1,pendingRefresh=!1,lastStickyMetrics={rowH:0,uncontH:0};$(window).on("load",function(){buildSticky(),maybeDelayedRefresh()}),$(window).on("resize uncode.re-layout",function(e){if(e.type==="resize"&&oldW===UNCODE.wwidth)return;oldW=UNCODE.wwidth,refreshSticky(!1)}),$(document).on("uncode-sticky-refresh uncode-toggle-change",function(){refreshSticky(!1)})},UNCODE.areaTextReveal=function(){if(!$(".text-reveal, .scroll-trigger-el").length)return;if(!SiteParameters.is_frontend_editor){var iPhone=/iPhone/.test(navigator.userAgent)&&!window.MSStream,android=/Android/.test(navigator.userAgent)&&!window.MSStream,prevW=Math.max(document.body.scrollWidth,document.body.offsetWidth,document.documentElement.clientWidth,document.documentElement.scrollWidth,document.documentElement.offsetWidth),prevH=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight),firstObs=!0,isMobileUsing=!1,observer=(new ResizeObserver(function(){var newW=Math.max(document.body.scrollWidth,document.body.offsetWidth,document.documentElement.clientWidth,document.documentElement.scrollWidth,document.documentElement.offsetWidth),newH=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight),set=!1;prevW!==newW&&(iPhone||android&&Math.max(document.documentElement.clientWidth||0,window.innerWidth||0)<750)?(set=!0,prevW=newW):prevH!==newH&&!iPhone&&!(android&&Math.max(document.documentElement.clientWidth||0,window.innerWidth||0)<750)&&(set=!0,prevH=newH);if(set||firstObs)window.dispatchEvent(new CustomEvent("uncode-sticky-trigger-observe")),firstObs=!1})).observe(document.body);if(iPhone||android&&Math.max(document.documentElement.clientWidth||0,window.innerWidth||0)<750)window.scrollTo=function(){return},isMobileUsing=!0,$("html, body").css({"overscroll-behavior":"none"});var setTriggerObserve;ScrollTrigger.observe({trigger:"body",type:"touch,pointer",onUp:function(){ScrollTrigger.update(
1)}})}var textReveal=function(){function headingReveal($sel){txtTrggrStart=!0,$(".text-reveal",$sel).each(function(val,key){var $txtReveal=$(this).attr("data-init-reveal",!0),$trigger=$txtReveal,$rowParent=$txtReveal.closest(".row-container[data-parent]"),hReveal=$txtReveal.outerHeight(),$pin=$txtReveal.closest('.scroll-trigger-el[data-anim-sticky="yes"], .scroll-trigger-el[data-sticky-trigger="inner-rows"]'),$sticky=$txtReveal.closest(".sticky-element"),dataReveal=$("[data-reveal]",$txtReveal).attr("data-reveal"),dataRevealOpacity=$("[data-reveal]",$txtReveal).attr("data-reveal-opacity"),dataTop=parseFloat($("[data-reveal-top]",$txtReveal).attr("data-reveal-top")),$lines=$(".heading-line-wrap",$txtReveal),$words=$(".split-word-inner",$txtReveal),$chars=$(".split-char",$txtReveal),$elToReveal=$words;if($pin.length)return;$sticky.length&&(hReveal=$sticky.parent().outerHeight()-(window.innerHeight-window.innerHeight/100*dataTop),$trigger=$sticky.parent()),dataReveal==="chars"?$elToReveal=$chars:dataReveal==="lines"&&($elToReveal=$lines);var tl=gsap.timeline({scrollTrigger:{trigger:$trigger,start:"top +="+window.innerHeight/100*dataTop+"px",end:"+="+hReveal+"px",id:"txt_reveal_"+key,scrub:!0}});gsap.set($elToReveal,{opacity:dataRevealOpacity}),tl.fromTo($elToReveal,{opacity:dataRevealOpacity,duration:1},{opacity:1,stagger:.05,duration:1}),$(window).on("uncode.tl-refresh",function(){tl!==null&&tl!=="undefined"&&tl.scrollTrigger!==null&&tl.scrollTrigger.refresh()}),$rowParent.one("uncodeWordLines",function(){clearRequestTimeout(setTxtReveal),setTxtReveal=requestTimeout(function(){gsap.set($elToReveal,{clearProps:!0}),tl.kill(!0),typeof ScrollTrigger.getById("txt_reveal_"+key)!="undefined"&&ScrollTrigger.getById("txt_reveal_"+key).kill(!0),headingReveal($sel)},100)})})}if(SiteParameters.is_frontend_editor)return;var setTxtReveal,txtTrggrStart=!1;window.addEventListener("load",function(e){txtTrggrStart||(headingReveal($("body")),$(window).trigger("resize"))}),$(".row-container[data-parent]").each(function(){if(!txtTrggrStart){var $this=$(this);$this.on("uncodeWordLines",function(){headingReveal($this)})}}),$(window).on("uncode-sticky-trigger-observe",function(e){clearRequestTimeout(setTriggerObserve),setTriggerObserve=requestTimeout(function(){$(window).trigger("uncode.tl-refresh")},2e3)})};textReveal();var areaReveal=function(){if(SiteParameters.is_frontend_editor)return;$(".scroll-trigger-el").each(function(){function areaAnimateScrollTl($el,id,last){function headingReveal($el){txtTrggrStart=!0,$(".text-reveal",$el).each(function(_key,_val){var $txtReveal=$(_val),dataReveal=$("[data-reveal]",$txtReveal).attr("data-reveal"),dataRevealOpacity=$("[data-reveal]",$txtReveal).attr("data-reveal-opacity"),$lines=$(".heading-line-wrap",$txtReveal),$words=$(".split-word-inner",$txtReveal),$chars=$(".split-char",$txtReveal),_setTxtReveal,$elToReveal=$words;if(sticky!=="yes"&&!stickyCards)return;easeOut=easeOut!=="none"?easeOut+".out":easeOut,dataReveal==="chars"?$elToReveal=$chars:dataReveal==="lines"&&($elToReveal=$lines);var scrllTrggrTxt=typeof scrllTrggrConds!="undefined"||scrllTrggr;scrllTrggrTxt.id="txt_reveal_"+_key,scrllTrggrTxt.pin=!1,gsap.set($elToReveal,{opacity:dataRevealOpacity});var _tl=gsap.timeline({scrollTrigger:scrllTrggrTxt});_tl.fromTo($elToReveal,{opacity:dataRevealOpacity},{opacity:1,stagger:.05}),$scrollTrgrEl.one("uncodeWordLines",function(){clearRequestTimeout(_setTxtReveal),_setTxtReveal=requestTimeout(function(){gsap.set($elToReveal,{clearProps:!0}),_tl.kill(!0),typeof ScrollTrigger.getById("txt_reveal_"+_key)!="undefined"&&ScrollTrigger.getById("txt_reveal_"+_key).kill(!0),headingReveal($el)},100)})})}alreadyareaAnimateScrollTl=!0;var pTop=parseFloat($row.css("padding-top")),innerGap=pTop+offSetCard*id,scale=_scale,rows_start=animation_rows_start;isMobileUsing&&typeof mobile_rows_start!="undefined"&&(rows_start=mobile_rows_start,innerGap=0+parseFloat(mobile_start_add)),stepScale&&_scale<100&&(scale=_scale+(100-_scale)/cardL*id),els==="content"?$animateTrgrEl=$("> .row",$scrollTrgrEl):els==="bg"?$animateTrgrEl=$("> .row-background, > .uncode-multi-bgs",$scrollTrgrEl):$animateTrgrEl=$el,rotate_alt==="yes"&&(rotate*=-1,perspective*=-1),animation_x_alt==="yes"&&(animation_x*=-1);var $parentDiv=$el.closest("div[data-sticky]"),start_topBottom=topBottom==="bottom"?"bottom bottom-="+window.innerHeight/100*offTop+"px":"top top+="+window.innerHeight/100*offTop+"px",scrllTrggr={trigger:$parentDiv,end:function(){return"+="+(offBottom===0?$scrollTrgrEl.outerHeight()-safe:window.innerHeight/100*offBottom)},start:stickyCards?"top top+="+innerGap:start_topBottom,pin:sticky==="yes"||stickyCards?!0:!1,pinSpacing:(noSpace!=="yes"&&!stickyCards||state!=="end"&&last)&&(!stickyCards||state==="end"||!!animLast||id!==0),scrub:!0,id:"sticky_"+id,anticipatePin:1,invalidateOnRefresh:!0,onToggle:function(){$scrollTrgrEl.attr("data-revealed",!0)}};!stickyLast&&state==="end"&&(last=!1),stickyCards&&(state!=="end"?(rows_start==="center"?(scrllTrggr.start="center center",scrllTrggr.end="bottom bottom-="+window.innerHeight):rows_start==="bottom"?stickyOpts!=="no"&&(scrllTrggr.start="bottom bottom-="+(innerGap-1),scrllTrggr.end="bottom bottom"):scrllTrggr.end="bottom bottom-="+window.innerHeight/2,stickyOpts==="no"?(scrllTrggr.endTrigger=$el,scrllTrggr.end="+=100%"):scrllTrggr.endTrigger=$row):(rows_start==="center"?scrllTrggr.start="center center"
1:rows_start==="bottom"&&(scrllTrggr.start="bottom bottom"),stickyOpts!=="no"?(scrllTrggr.end="top top+="+(pTop+offSetCard*(cardL-1)),scrllTrggr.endTrigger=$lastEl):scrllTrggr.end="bottom bottom"));var tl=gsap.timeline({scrollTrigger:scrllTrggr});if(!stickyCards)var tlConds=tl;else{var scrllTrggrConds={trigger:$parentDiv,end:function(){return"+="+(offBottom===0||stickyCards?window.innerHeight-safe:window.innerHeight/100*offBottom)},pin:state==="end"&&last,pinSpacing:!1,scrub:!0,id:"card_"+id,invalidateOnRefresh:!0};stickyCards?state!=="end"?(stickyOpts===""&&(scrllTrggrConds.end="bottom bottom-=100%",scrllTrggrConds.endTrigger=$row_in),rows_start==="bottom"?stickyOpts!=="no"&&(scrllTrggrConds.start="top top+="+window.innerHeight,scrllTrggrConds.end="bottom bottom"):rows_start==="center"?scrllTrggrConds.start="center center":scrllTrggrConds.start="top top+="+(innerGap+1)):(stickyOpts===""&&(animLast?scrllTrggrConds.end="bottom bottom-=100%":scrllTrggrConds.end="bottom bottom",scrllTrggrConds.endTrigger=$lastEl),rows_start==="bottom"&&stickyOpts!=="no"?UNCODE.wwidth<=UNCODE.mediaQuery?scrllTrggrConds.start="bottom bottom":scrllTrggrConds.start="top top+="+$el.outerHeight():rows_start==="center"?UNCODE.wwidth<=UNCODE.mediaQuery?scrllTrggrConds.start="center center":scrllTrggrConds.start="top+="+$el.outerHeight()/2+" top+="+window.innerHeight/2:UNCODE.wwidth<=UNCODE.mediaQuery?scrllTrggrConds.start="top top":scrllTrggrConds.start="top top+="+(innerGap+1)):scrllTrggrConds.start=start_topBottom;var tlConds=gsap.timeline({scrollTrigger:scrllTrggrConds})}if(!stickyCards||state==="end"||!!animLast||id!==0)target==="mask"?state!=="end"?mask==="auto"?(gsap.set($animateTrgrEl,{clipPath:"inset(0% "+(UNCODE.wwidth-parseFloat(SiteParameters.uncode_limit_width))/2+"px round "+radius+radius_unit+")",opacity:parseFloat(opacity)/100,filter:"blur("+blur+"px)",visibility:"visible"}),tlConds.fromTo($animateTrgrEl,{clipPath:"inset(0% "+(UNCODE.wwidth-parseFloat(SiteParameters.uncode_limit_width))/2+"px round "+radius+radius_unit+")",opacity:parseFloat(opacity)/100,filter:"blur("+blur+"px)",duration:1},{opacity:1,clipPath:"inset(0% 0px round 0"+radius_unit+")",filter:"blur(0px)",duration:1,ease:easeOut})):tlConds.fromTo($animateTrgrEl,{opacity:parseFloat(opacity)/100,clipPath:clip_path,filter:"blur("+blur+"px)",duration:1},{opacity:1,clipPath:"inset(0% 0% 0% 0% round 0"+radius_unit+")",filter:"blur(0px)",duration:1,ease:easeOut}):mask==="auto"?tlConds.fromTo($animateTrgrEl,{opacity:1,clipPath:"inset(0% 0px round 0"+radius_unit+")",filter:"blur(0px)",duration:1},{opacity:parseFloat(opacity)/100,clipPath:"inset(0% "+(UNCODE.wwidth-parseFloat(SiteParameters.uncode_limit_width))/2+"px round "+radius+radius_unit+")",filter:"blur("+blur+"px)",ease:easeOut,duration:1}):tlConds.fromTo($animateTrgrEl,{opacity:1,clipPath:"inset(0% 0% 0% 0% round 0"+radius_unit+")",filter:"blur(0px)",duration:1},{opacity:parseFloat(opacity)/100,clipPath:clip_path,filter:"blur("+blur+"px)",duration:1,ease:easeOut}):state!=="end"?scale==="auto"?radius?(gsap.set($animateTrgrEl,{scaleX:1-(UNCODE.wwidth-parseFloat(SiteParameters.uncode_limit_width))/UNCODE.wwidth,scaleY:1-(UNCODE.wwidth-parseFloat(SiteParameters.uncode_limit_width))/UNCODE.wwidth,x:animation_x+"vw",y:animation_y+"vh",filter:"blur("+blur+"px)",rotation:rotate,rotationX:rotate==0?perspective:0,transformPerspective:"100vw",opacity:parseFloat(opacity)/100,transformOrigin:origin,borderRadius:radius+radius_unit,visibility:"visible"}),tlConds.fromTo($animateTrgrEl,{scaleX:1-(UNCODE.wwidth-parseFloat(SiteParameters.uncode_limit_width))/UNCODE.wwidth,scaleY:1-(UNCODE.wwidth-parseFloat(SiteParameters.uncode_limit_width))/UNCODE.wwidth,x:animation_x+"vw",y:animation_y+"vh",filter:"blur("+blur+"px)",rotation:rotate,rotationX:rotate==0?perspective:0,transformPerspective:"100vw",opacity:parseFloat(opacity)/100,borderRadius:radius+radius_unit,transformOrigin:origin,duration:1},{scaleX:1,scaleY:1,x:0,y:0,filter:"blur(0px)",rotation:0,rotationX:0,opacity:1,borderRadius:0+radius_unit,transformOrigin:origin,duration:1,ease:easeOut})):(gsap.set($animateTrgrEl,{scaleX:1-(UNCODE.wwidth-parseFloat(SiteParameters.uncode_limit_width))/UNCODE.wwidth,scaleY:1-(UNCODE.wwidth-parseFloat(SiteParameters.uncode_limit_width))/UNCODE.wwidth,x:animation_x+"vw",y:animation_y+"vh",filter:"blur("+blur+"px)",rotation:rotate,rotationX:rotate==0?perspective:0,transformPerspective:"100vw",opacity:parseFloat(opacity)/100,transformOrigin:origin,visibility:"visible"}),tlConds.fromTo($animateTrgrEl,{scaleX:1-(UNCODE.wwidth-parseFloat(SiteParameters.uncode_limit_width))/UNCODE.wwidth,scaleY:1-(UNCODE.wwidth-parseFloat(SiteParameters.uncode_limit_width))/UNCODE.wwidth,x:animation_x+"vw",y:animation_y+"vh",filter:"blur("+blur+"px)",rotation:rotate,rotationX:rotate==0?perspective:0,transformPerspective:"100vw",opacity:parseFloat(opacity)/100,transformOrigin:origin,duration:1},{scaleX:1,scaleY:1,x:0,y:0,filter:"blur(0px)",rotation:0,rotationX:0,opacity:1,transformOrigin:origin,duration:1,ease:easeOut})):radius?(gsap.set($animateTrgrEl,{scaleX:parseFloat(scale)/100,scaleY:parseFloat(scale)/100,opacity:parseFloat(opacity)/100,x:animation_x+"vw",y:animation_y+"vh",filter:"blur("+blur+"px)",rotation:rotate,rotationX:rotate==0?perspective:0,transformPerspective:"100vw",transformOrigin:origin,borderRadius:radius+radius_unit,visibility:"visible"}),tlConds.fromTo($animateTrgrEl,{scaleX:parseFloat(scale)/100,scaleY:parseFloat(scale)/100,opacity:parseFloat(opacity)/100,x:animation_x+"vw",y:animation_y+"vh",filter:"blur("+blur+"px)",rotation:rotate,rotationX:rotate==0?perspective:0,transformPerspective:"100vw",borderRadius:radius+radius_unit,transformOrigin:origin,duration:1}
1,{scaleX:1,scaleY:1,opacity:1,x:0,y:0,filter:"blur(0px)",rotation:0,rotationX:0,transformOrigin:origin,ease:easeOut,duration:1,borderRadius:0+radius_unit})):(gsap.set($animateTrgrEl,{scaleX:parseFloat(scale)/100,scaleY:parseFloat(scale)/100,opacity:parseFloat(opacity)/100,x:animation_x+"vw",y:animation_y+"vh",filter:"blur("+blur+"px)",rotation:rotate,rotationX:rotate==0?perspective:0,transformPerspective:"100vw",transformOrigin:origin,visibility:"visible"}),tlConds.fromTo($animateTrgrEl,{scaleX:parseFloat(scale)/100,scaleY:parseFloat(scale)/100,opacity:parseFloat(opacity)/100,x:animation_x+"vw",y:animation_y+"vh",filter:"blur("+blur+"px)",rotation:rotate,rotationX:rotate==0?perspective:0,transformPerspective:"100vw",transformOrigin:origin,duration:1},{scaleX:1,scaleY:1,opacity:1,x:0,y:0,filter:"blur(0px)",rotation:0,rotationX:0,transformOrigin:origin,duration:1,ease:easeOut})):scale==="auto"?tlConds.fromTo($animateTrgrEl,{scaleX:1,scaleY:1,opacity:1,x:0,y:0,filter:"blur(0px)",rotation:0,rotationX:0,transformOrigin:origin,duration:1},{scaleX:1-(UNCODE.wwidth-parseFloat(SiteParameters.uncode_limit_width))/UNCODE.wwidth,scaleY:1-(UNCODE.wwidth-parseFloat(SiteParameters.uncode_limit_width))/UNCODE.wwidth,opacity:parseFloat(opacity)/100,x:animation_x+"vw",y:animation_y+"vh",filter:"blur("+blur+"px)",rotation:rotate,rotationX:rotate==0?perspective:0,transformPerspective:"100vw",transformOrigin:origin,duration:1,ease:easeOut}):tlConds.fromTo($animateTrgrEl,{scaleX:1,scaleY:1,opacity:1,x:0,y:0,filter:"blur(0px)",rotation:0,rotationX:0,transformPerspective:"100vw",transformOrigin:origin,borderRadius:0+radius_unit,duration:1},{scaleX:parseFloat(scale)/100,scaleY:parseFloat(scale)/100,opacity:parseFloat(opacity)/100,x:animation_x+"vw",y:animation_y+"vh",filter:"blur("+blur+"px)",rotation:rotate,rotationX:rotate==0?perspective:0,transformPerspective:"100vw",transformOrigin:origin,borderRadius:radius+radius_unit,duration:1,ease:easeOut});txtTrggrStart||headingReveal($el),$scrollTrgrEl.one("uncodeWordLines",function(){txtTrggrStart||headingReveal($el)});var _height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight),_width=Math.max(document.body.scrollWidth,document.body.offsetWidth,document.documentElement.clientWidth,document.documentElement.scrollWidth,document.documentElement.offsetWidth);$(window).on("uncode-sticky-trigger-observe",function(e){var __height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight),__width=Math.max(document.body.scrollWidth,document.body.offsetWidth,document.documentElement.clientWidth,document.documentElement.scrollWidth,document.documentElement.offsetWidth);$(".pin-spacer, [data-sticky]",$scrollTrgrEl).css({height:!1,maxHeight:!1}),stickyCards&&$(".tmb",$scrollTrgrEl).removeAttr("style");var scrollnow=document.body.scrollTop||document.documentElement.scrollTop;clearRequestTimeout(setTxtReveal),setTxtReveal=requestTimeout(function(){$(document).trigger("uncode-scrolltrigger-refresh"),isMobileUsing?(typeof tl!="undefined"&&tl.scrollTrigger.refresh(),typeof tlConds!="undefined"&&tlConds.scrollTrigger.refresh(),$(window).trigger("scroll"),_width=__width):_width!==__width&&isMobileUsing&&(window.dispatchEvent(new CustomEvent("vc-resize")),typeof window.lenis!="undefined"&&window.lenis!==null?window.lenis.scrollTo(0,{duration:.01,onComplete:function(){typeof tl!="undefined"&&tl.scrollTrigger.refresh(),typeof tlConds!="undefined"&&tlConds.scrollTrigger.refresh(),window.lenis.scrollTo(scrollnow,{duration:.01})}}):(typeof tl!="undefined"&&tl.scrollTrigger.refresh(),typeof tlConds!="undefined"&&tlConds.scrollTrigger.refresh(),$(window).trigger("scroll")),_height=__height)},500)}),$(window).on("load ",function(e){var ___height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight);_height!==___height&&($scrollTrgrEl.attr("data-toggled",!0),$(window).trigger("resize"),typeof tl!="undefined"&&tl.scrollTrigger.refresh(),typeof tlConds!="undefined"&&tlConds.scrollTrigger.refresh(),_height=___height),$(document).trigger("uncode-scrolltrigger-refresh")})}var $scrollTrgrEl=$(this),$row=$("> .row",$scrollTrgrEl),$row_in=$("> .row-inner",$row),cardL=$(".vc_row.row-internal:not(.row-no-card)",$scrollTrgrEl).length,stickyCards=cardL&&$scrollTrgrEl.attr("data-sticky-trigger")==="inner-rows",animLast=$scrollTrgrEl.attr("data-no-anim-last")!=="yes",stickyOpts=stickyCards?$scrollTrgrEl.attr("data-anim-inner-rows-options"):!1,$animateTrgrEl=$scrollTrgrEl,noMobile=$scrollTrgrEl.attr("data-sticky-no-mobile")==="yes",noTablet=$scrollTrgrEl.attr("data-sticky-no-tablet"),els=$scrollTrgrEl.attr("data-anim-els"),sticky=$scrollTrgrEl.attr("data-anim-sticky"),noSpace=$scrollTrgrEl.attr("data-anim-no-space"),state=$scrollTrgrEl.attr("data-anim-state"),target=$scrollTrgrEl.attr("data-anim-target"),origin=$scrollTrgrEl.attr("data-anim-origin"),mask=$scrollTrgrEl.attr("data-anim-mask"),_scale=$scrollTrgrEl.attr("data-anim-scale"),stepScale=stickyCards&&$scrollTrgrEl.attr("data-anim-scale-step")==="yes",opacity=$scrollTrgrEl.attr("data-anim-opacity"),radius=$scrollTrgrEl.attr("data-anim-radius"),radius_unit=$scrollTrgrEl.attr("data-anim-radius-u
1nit"),clip_path=$scrollTrgrEl.attr("data-clip-path"),animation_x=$scrollTrgrEl.attr("data-anim-x"),animation_x_alt=$scrollTrgrEl.attr("data-anim-x-alt"),animation_y=$scrollTrgrEl.attr("data-anim-y"),blur=$scrollTrgrEl.attr("data-anim-blur"),perspective=$scrollTrgrEl.attr("data-anim-perspective"),rotate=$scrollTrgrEl.attr("data-anim-rotate"),rotate_alt=$scrollTrgrEl.attr("data-anim-rotate-alt"),topBottom=$scrollTrgrEl.attr("data-anim-start"),offTop=$scrollTrgrEl.attr("data-anim-top"),offBottom=$scrollTrgrEl.attr("data-anim-bottom"),safe=$scrollTrgrEl.attr("data-anim-safe")==="yes"?window.innerHeight/100*(100-offTop):0,animation_rows_start=$scrollTrgrEl.attr("data-anim-start-point"),mobile_rows_start=$scrollTrgrEl.attr("data-mobile-start-point"),mobile_start_add=$scrollTrgrEl.attr("data-mobile-start-point-add"),easeOut=$scrollTrgrEl.attr("data-anim-ease"),offSetCard=$scrollTrgrEl.attr("data-anim-rows-offset"),stickyLast=$scrollTrgrEl.attr("data-anim-sticky-last")==="yes"&&stickyCards,$lastEl=$(".vc_row.row-internal:not(.row-no-card)",$scrollTrgrEl).last(),setTxtReveal,txtTrggrStart=!1,alreadyareaAnimateScrollTl=!1;_scale=_scale===""?0:parseFloat(_scale),perspective=perspective===""?.001:parseFloat(perspective)+.001,offTop=offTop===""?0:parseFloat(offTop),offBottom=offBottom===""?0:parseFloat(offBottom),offSetCard=offSetCard===""?0:parseFloat(offSetCard);var callAreaAnimateScrollTl=function(){stickyCards?$(".vc_row.row-internal:not(.row-no-card)",$scrollTrgrEl).each(function(key,val){if(key+1<cardL||animLast||state!=="end"){var $this=$(val),last=key+1===cardL;areaAnimateScrollTl($this,key,last)}}):areaAnimateScrollTl($scrollTrgrEl,0,!1)};$(window).on("wwResize",function(){if(!alreadyareaAnimateScrollTl){if(noMobile){if(noTablet&&UNCODE.wwidth<=UNCODE.mediaQuery)return;if(UNCODE.wwidth<=UNCODE.mediaQueryMobile)return}callAreaAnimateScrollTl()}});if(noMobile){if(noTablet&&UNCODE.wwidth<=UNCODE.mediaQuery)return;if(UNCODE.wwidth<=UNCODE.mediaQueryMobile)return}callAreaAnimateScrollTl()})};areaReveal()},UNCODE.thumbsReveal=function(){var recalc=!1,thumbsRevealResizeTO,isTouchDevice=function(){return"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0},resetThumbsReveal=function(){$(".tmb-mask-init").each(function(){var el=this;el._thumbsRevealST&&(el._thumbsRevealST.kill(),el._thumbsRevealST=null),el._thumbsRevealIO&&(el._thumbsRevealIO.disconnect(),el._thumbsRevealIO=null),gsap.set($("img, video, .fluid-object",el),{clearProps:"transform"}),$(el).removeClass("tmb-mask-init")}),revealThumbs()},revealThumbs=function($el){function raf(time){requestAnimationFrame(raf),$(window).trigger("uncode-thumbsreveal-refresh")}if(typeof $el=="undefined"||$el===null||!$el.length)$el=$("body");$(".grid-wrapper, .custom-grid-container, .single-wrapper, .owl-carousel-wrapper, .linear-wrapper",$el).has(".tmb-mask").each(function(){var $container=$(this),$stickys=$(".tmb-mask:not(.tmb-mask-init)",$container),isContainer=!1;(!$("body").hasClass("compose-mode")||typeof window.parent.vc=="undefined")&&$stickys.each(function(){var $sticky=$(this).addClass("tmb-mask-init"),$rellax=$sticky.closest(".parallax-el"),$inside=$(".t-inside",$sticky),$media=$("img, video, .fluid-object",$sticky).attr("loading",""),val=parseFloat($inside.attr("data-scroll-val")),no_device=$inside.attr("data-anim-no-mobile")==="yes";if(no_device&&isTouchDevice()){gsap.set($media,{clearProps:"transform"});return}$rellax.length&&(recalc=!0),val=isNaN(val)||val==null||val==0||typeof val=="undefined"?5:val;if($sticky.hasClass("tmb-mask-scroll")){var zoom=$sticky.hasClass("tmb-mask-scroll-zoom")||$sticky.hasClass("tmb-mask-scroll-both")?val*.05:0,parax=$sticky.hasClass("tmb-mask-scroll-parallax")||$sticky.hasClass("tmb-mask-scroll-both")?val*4:0,extra=$sticky.hasClass("tmb-mask-scroll-parallax")||$sticky.hasClass("tmb-mask-scroll-both")?parax*.01:0,isThumbVisible=!1,lastProgress=0,io=null;typeof IntersectionObserver!="undefined"&&(io=new IntersectionObserver(function(entries){var entry=entries[0];isThumbVisible=!!(entry&&entry.isIntersecting&&entry.intersectionRect&&entry.intersectionRect.width>0&&entry.intersectionRect.height>0),isThumbVisible||gsap.set($media,{yPercent:0,scale:1+extra})},{root:null,threshold:.01}),io.observe($sticky[0]),$sticky[0]._thumbsRevealIO=io);var st=ScrollTrigger.create({trigger:$sticky[0],scrub:!0,start:"top bottom",end:"bottom top",onUpdate:function(self){lastProgress=self.progress;if(!isThumbVisible)return;var currentY=gsap.utils.interpolate(-parax,parax,lastProgress),currentScale=gsap.utils.interpolate(1+zoom+extra,1+extra,lastProgress);gsap.set($media,{yPercent:currentY,scale:currentScale})}});
1$sticky[0]._thumbsRevealST=st,recalc&&$(window).on("uncode-thumbsreveal-refresh",function(){st&&st.refresh()})}});if($container.has(".tmb-mask-reveal")){var $markTrigger=".tmb-mask-reveal .t-entry-visual",staggerTime=.1;$(".t-inside",$container).each(function(){var checkEasing=$(this).attr("data-easing");if(checkEasing===""||checkEasing==null||typeof checkEasing=="undefined")return gsap.registerPlugin(CustomEase),!1}),$container.hasClass("cssgrid-system")&&!$container.hasClass("cssgrid-animate-sequential")&&($markTrigger=$container,isContainer=!0,staggerTime=0),ScrollTrigger.batch($markTrigger,{start:function(el){return"top 96%"},onEnter:function(batch){var $inside=$(batch).closest(".t-inside");isContainer&&($inside=$(batch).find(".t-inside").first());var delay=parseFloat($inside.attr("data-delay")),speed=parseFloat($inside.attr("data-speed")),easing=$inside.attr("data-easing"),bgDelay=parseFloat($inside.attr("data-bg-delay"));delay=isNaN(delay)||delay==null||typeof delay=="undefined"?0:delay/1e3,speed=isNaN(speed)||speed==null||typeof speed=="undefined"?.4:speed/1e3,easing=easing===""||easing==null||typeof easing=="undefined"?CustomEase.create("custom","0.76, 0, 0.24, 1"):easing,bgDelay=isNaN(bgDelay)||bgDelay==null||typeof bgDelay=="undefined"?"":bgDelay,$(batch).closest(".tmb-has-hex").length&&bgDelay!==""?(gsap.to($(".t-entry-visual-tc",batch),speed,{clipPath:"inset(0% 0% 0% 0%)",stagger:staggerTime,delay:delay,ease:easing}),gsap.to($(".t-entry-visual-cont, .uncode-single-media-wrapper",batch),speed,{clipPath:"inset(0% 0% 0% 0%)",stagger:staggerTime,scale:1,delay:delay+speed*bgDelay,ease:easing})):gsap.to($(".t-entry-visual-cont, .uncode-single-media-wrapper",batch),speed,{clipPath:"inset(0% 0% 0% 0%)",stagger:staggerTime,scale:1,delay:delay,ease:easing})}})}}),recalc&&requestAnimationFrame(raf)};$(window).on("load more-items-loaded",function(){revealThumbs()}),$(document).on("uncode-ajax-filtered",function(){revealThumbs()}),$(window).on("resize orientationchange",function(){clearTimeout(thumbsRevealResizeTO),thumbsRevealResizeTO=setTimeout(function(){resetThumbsReveal()},150)}),document.addEventListener("uncode:marquee:ready",function(e){if(!e||!e.detail||!e.detail.baseWrap)return;var parent=e.detail.parent||e.detail.baseWrap,$marquee=$(e.detail.baseWrap);e.detail.leftWrap&&($marquee=$marquee.add(e.detail.leftWrap)),e.detail.rightWrap&&($marquee=$marquee.add(e.detail.rightWrap)),parent._uncodeThumbsRevealT&&clearRequestTimeout(parent._uncodeThumbsRevealT),parent._uncodeThumbsRevealT=requestTimeout(function(){$(".tmb-mask-init",$marquee).removeClass("tmb-mask-init"),revealThumbs($marquee),parent._uncodeThumbsRevealT=null},20)},!1),$("body").hasClass("compose-mode")&&typeof window.parent.vc!="undefined"&&window.parent.vc.events.on("shortcodeView:updated shortcodeView:ready",function(model){var $el=model.view.$el,shortcode=model.attributes.shortcode;$el.is(".custom-grid-container")&&($el=$el.parent()),(shortcode==="uncode_index"||shortcode==="vc_gallery"||shortcode==="vc_single_image")&&revealThumbs($el)})},UNCODE.revslider=function(){var revSlider6In=function(){$("rs-module").each(function(){var $slider=$(this);$slider.on("revolution.slide.onloaded",function(e,data){if($(e.currentTarget).closest(".header-revslider").length){var style=$(e.currentTarget).find("rs-slide").eq(0).attr("data-skin"),scrolltop=$(document).scrollTop();style!=undefined&&UNCODE.switchColorsMenu(scrolltop,style)}}),$slider.on("revolution.slide.onchange",function(e,data){if($(e.currentTarget).closest(".header-revslider").length){var style=$(e.currentTarget).find("rs-slide").eq(data.slideIndex-1).attr("data-skin"),scrolltop=$(document).scrollTop();style!=undefined&&UNCODE.switchColorsMenu(scrolltop,style)}})})};revSlider6In(),$(window).on("load",revSlider6In),document.addEventListener("sr.module.ready",function(e){var $slider=$("#"+e.id),settings=SR7.JSON[e.id];if(typeof settings!="undefined"&&settings!==null&&$slider.closest(".header-revslider").length){var style=settings.slides[1].slide.attr.data,scrolltop=$(document).scrollTop();style=style.match(/data-skin=[\'|\"](.*)[\'|\"]/),style=style[1],style[1]!=undefined&&UNCODE.switchColorsMenu(scrolltop,style)}}),document.addEventListener("sr.slide.afterChange",function(e){var $slider=$("#"+e.id),settings=SR7.JSON[e.id];if(typeof settings!="undefined"&&settings!==null&&$slider.closest(".header-revslider").length){var style=settings.slides[e.current.id].slide.attr.data,scrolltop=$(document).scrollTop();style=style.match(/data-skin=[\'|\"](.*)[\'|\"]/),style=style[1],style!=undefined&&UNCODE.switchColorsMenu(scrolltop,style)}})},UNCODE.layerslider=function(){$(window).on("load",function(){$(".ls-wp-container").on("slideTimelineDidStart",function(event,slider){var slideData=slider.slides.current.data,scrolltop=$(document).scrollTop();slideData&&slideData.skin&&UNCODE.switchColorsMenu(scrolltop,slideData.skin)})})}
1,UNCODE.ajax_filters=function(){function init_filters(){$(document).on("click",".term-filter-link",function(e){var _this=$(this),widget=_this.closest(".uncode_widget"),container=get_filters_container();if(widget.hasClass("widget-ajax-filters--no-ajax"))return!0;e.preventDefault();if(widget.hasClass("widget-ajax-filters--checkbox"))_this.parent().find('input[type="checkbox"]').trigger("click");else{_this.hasClass("term-filter-link--active")?_this.removeClass("term-filter-link--active"):(_this.addClass("term-filter-link--active"),widget.hasClass("widget-ajax-filters--single")&&widget.find(".term-filter-link").not(_this).removeClass("term-filter-link--active"));if(!ajax_filters_button_mode){var url=_this.attr("href");reload_items(container,url,!0)}}}),$(document).on("click",'.term-filter input[type="checkbox"]',function(e){var _this=$(this),widget=_this.closest(".uncode_widget"),link=_this.closest(".term-filter").find(".term-filter-link"),url=link.attr("href"),container=get_filters_container();if(!ajax_filters_button_mode&&widget.hasClass("widget-ajax-filters--no-ajax")){window.location=url;return}widget.hasClass("widget-ajax-filters--single")&&widget.find('input[type="checkbox"]').each(function(){_this.attr("id")!==$(this).attr("id")&&($(this).prop("checked",!1),$(this).closest(".term-filter").find(".term-filter-link").removeClass("term-filter-link--active"))}),_this.prop("checked")?link.addClass("term-filter-link--active"):link.removeClass("term-filter-link--active"),ajax_filters_button_mode||reload_items(container,url,!0)}),$(document).on("change","select.select--term-filters",function(e){var _this=$(this),selected=_this.find("option:selected"),option=$(selected),url=option.attr("data-term-filter-url"),container=get_filters_container(),widget=_this.closest(".uncode_widget");ajax_filters_button_mode||(widget.hasClass("widget-ajax-filters--no-ajax")?window.location=url:reload_items(container,url,!0))}),$(document).on("click",".filter-list__link",function(e){if(SiteParameters.is_frontend_editor)return!1;e.preventDefault();var _this=$(this),container=get_filters_container(),url=_this.attr("href");reload_items(container,url,!0)}),$(".ajax-filter-sidebar__button--clear").on("uncode-ajax-clear-filters",function(e){var _this=$(this),container=get_filters_container(),url=_this.attr("href");reload_items(container,url,!0)}),$(document).on("click",".uncode-woocommerce-sorting-dropdown__link",function(e){var _this=$(this),container=get_filters_container(),url=_this.attr("href");container.length&&(e.preventDefault(),reload_items(container,url,!0))}),$(document).on("click",".uncode_woocommerce_widget--price-filter .button",function(e){var _this=$(this),container=get_filters_container();if(container.length>0){e.preventDefault();var min_price=$("#min_price").val(),max_price=$("#max_price").val(),location=window.location,url=location.href,page_uri=location.origin+location.pathname,is_filtered=page_uri!==url;is_filtered&&(url=remove_parameter_from_url(url,"min_price"),url=remove_parameter_from_url(url,"max_price"));var concat=page_uri===url?"?":"&",params={min_price:min_price,max_price:max_price};url=url+concat+$.param(params),reload_items(container,url,!0)}});if(!ajax_filters_button_mode&&!window._uncode_search_bound){window._uncode_search_bound=!0;var search_timeout=parseInt(SiteParameters.ajax_filter_search_timeout,10);$(document).on("input",".term-filters-search-input",function(){var _this=$(this),container=get_filters_container(),value=_this.val();window._uncode_search_timer&&clearTimeout(window._uncode_search_timer),window._uncode_search_timer=setTimeout(function(){update_search_url(container,value)},search_timeout)})}$(document).on("click",".btn-ajax-filters-trigger",function(e){var container=get_filters_container();if(container.length){e.preventDefault();var paramMap={};$(".term-filter-link--active").each(function(){collect_from_query(paramMap,this.href.split("?")[1]||"")}),$(".select--term-filters").each(function(){var select=$(this),val=select.val();if(!val)return;var selected_option=select.find("option:selected"),qUrl=selected_option.data("term-filter-url")||"";collect_from_query(paramMap,qUrl.split("?")[1]||"")});var search=$(".term-filters-search-input");if(search.length>0){var search_value=search.val().trim();search_value&&(paramMap[SiteParameters.ajax_filter_key_search]={},paramMap[SiteParameters.ajax_filter_key_search][search_value]=1)}var qsParts=[];$.each(paramMap,function(key,valSet){var vals=Object.keys(valSet);qsParts.push(key+"="+vals.join(","))});var final_url=window.location.origin+window.location.pathname;if(qsParts.length>0){qsParts.push("unfilter=1");var qs=qsParts.join("&");final_url="?"+qs}reload_items(container,final_url,!0)}})}
1function collect_from_query(paramMap,query){$.each(query.split("&"),function(_,pair){if(!pair)return;var kv=pair.split("="),key=kv[0],val=kv[1]||"";if(key==="unfilter")return;paramMap[key]||(paramMap[key]={}),paramMap[key][val]=1})}function update_search_url(container,search_value){var location=window.location,url=location.href,page_uri=location.origin+location.pathname,is_filtered=page_uri!==url,key_search=SiteParameters.ajax_filter_key_search,key_unfilter=SiteParameters.ajax_filter_key_unfilter;is_filtered&&(url=remove_parameter_from_url(url,key_search),url=remove_parameter_from_url(url,key_unfilter));if(search_value){var concat=page_uri===url?"?":"&",params={};params[key_search]=search_value,params[key_unfilter]=1,url=url+concat+$.param(params)}else url=remove_parameter_from_url(url,key_search);reload_items(container,url,!0)}function remove_parameter_from_url(url,parameter){return url.replace(new RegExp("[?&]"+parameter+"=[^&#]*(#.*)?$"),"$1").replace(new RegExp("([?&])"+parameter+"=[^&]*&"),"$1")}function get_filters_container(){var container=$(".ajax-grid-system");return container.length==0&&(container=$(".ajax-filters-target")),container}function update_widgets_state(widgets_states,container){for(var i=widgets_states.length-1;i>=0;i--){var state=widgets_states[i];if(!state.collapse)continue;var new_widget=container.find('.uncode_widget[data-id="'+state.id+'"');state.open?(new_widget.find(".widget-title").addClass("open"),state.css&&new_widget.find(".widget-collapse-content").attr("style",state.css)):(new_widget.find(".widget-title").removeClass("open"),state.css&&new_widget.find(".widget-collapse-content").attr("style",state.css))}}function find_filters_container(context){const widget=context.find(".widget-ajax-filters").first();if(!widget.length)return $();const sidebar=widget.closest(".ajax-filters-sidebar");if(sidebar.length)return sidebar.find(".uncol").last();const col=widget.closest(".uncol");return col.length?col:$()}function reload_items(container,url,push){if(isAjaxing)return;isAjaxing=!0,container.addClass("grid-filtering"),$.ajax({url:url,success:function(response){if(!response)return;$(document).trigger("uncode-ajax-pre-filtered");var container_id=container.attr("id"),pagination=$(".row-navigation"),filters_container,isTargetFilterMode=container.hasClass("ajax-filters-target");isTargetFilterMode&&(filters_container=find_filters_container($(document)));if(container_id){var container_to_append=$(response).find("#"+container_id),pagination_to_append=$(response).find(".row-navigation"),filters_to_append,offcanvas_sidebar_wrapper=$(".ajax-filter-sidebar--offcanvas");isTargetFilterMode&&(filters_to_append=find_filters_container($(response)));var widgets=$(".uncode_widget"),widgets_container=widgets.closest(".ajax-filter-sidebar--offcanvas").length>0?$(".ajax-filter-sidebar--offcanvas"):container_to_append,widgets_states=[];widgets.each(function(){var widget=$(this),id=widget.attr("data-id"),state={id:id,collapse:!1,open:!1,css:!1},collapse_wrapper=widget.find(".widget-collapse-content");if(collapse_wrapper.length>0){state.collapse=!0;var collapse_wrapper_css=collapse_wrapper.attr("style"),title=widget.find(".widget-title");state.css=collapse_wrapper_css,title.hasClass("open")?state.open=!0:state.o
1pen=!1}widgets_states.push(state)}),!isTargetFilterMode&&offcanvas_sidebar_wrapper.length===0&&update_widgets_state(widgets_states,container_to_append),container.hasClass("ajax-hide-filters")||container_to_append.removeClass("ajax-hide-filters"),container.hasClass("ajax-hide-filters-blanks")||container_to_append.removeClass("ajax-hide-filters-blanks");var horizontal_sidebar_wrapper=$(".ajax-filter-position-horizontal");if(horizontal_sidebar_wrapper.length>0){var horizontal_sidebar_wrapper=horizontal_sidebar_wrapper.find(".ajax-filter-sidebar"),horizontal_sidebar_wrapper_style=horizontal_sidebar_wrapper.attr("style"),horizontal_sidebar_row=horizontal_sidebar_wrapper.find(".ajax-filter-sidebar-body .vc_row").eq(0),horizontal_sidebar_row_style=horizontal_sidebar_row.attr("style");container_to_append.find(".ajax-filter-position-horizontal .ajax-filter-sidebar").attr("style",horizontal_sidebar_wrapper_style),container_to_append.find(".ajax-filter-position-horizontal .ajax-filter-sidebar-body .vc_row").eq(0).attr("style",horizontal_sidebar_row_style)}container.replaceWith(container_to_append),SiteParameters.dynamic_srcset_active==="1"&&container_to_append.find(".tmb-woocommerce-variable-product").addClass("srcset-lazy-animations"),container_to_append.find("img").attr("loading",""),pagination.length>0?pagination_to_append.length>0?pagination.html(pagination_to_append.html()):pagination.html(""):pagination_to_append.length>0&&$(".post-wrapper").append(pagination_to_append),isTargetFilterMode&&filters_container.length>0&&filters_container.html(filters_to_append.html()),isTargetFilterMode&&filters_container.length>0&&update_widgets_state(widgets_states,filters_container);var offcanvas_sidebar_wrapper=$(".ajax-filter-sidebar--offcanvas");if(offcanvas_sidebar_wrapper.length>0||UNCODE.wwidth<UNCODE.mediaQuery){var sidebar_container=offcanvas_sidebar_wrapper.find(".vc_row").eq(0),sidebar_to_append=$(response).find(".ajax-filter-sidebar-body").find(".vc_row").eq(0);container_to_append.find(".ajax-filter-sidebar-wrapper").after('<span class="ajax-sidebar-placeholder" />'),container_to_append.find(".ajax-filter-sidebar-wrapper").remove(),update_widgets_state(widgets_states,sidebar_to_append),sidebar_container.html(sidebar_to_append.html())}push&&(UNCODE.lastURL=url,window.history.pushState({pageTitle:document.title},"",url)),typeof UNCODE.isotopeLayout!="undefined"&&UNCODE.isotopeLayout(),typeof UNCODE.justifiedGallery!="undefined"&&UNCODE.justifiedGallery(),typeof UNCODE.cssGrid!="undefined"&&UNCODE.cssGrid(),typeof UNCODE.lightbox!="undefined"&&!SiteParameters.lbox_enhanced&&UNCODE.lightbox(),typeof UNCODE.lightgallery!="undefined"&&SiteParameters.lbox_enhanced&&UNCODE.lightgallery(),typeof UNCODE.carousel!="undefined"&&UNCODE.carousel($("body")),UNCODE.animations(),typeof UNCODE.filters!="undefined"&&UNCODE.filters(),typeof UNCODE.widgets!="undefined"&&!(isTargetFilterMode&&filters_container.length>0)&&UNCODE.widgets(),SiteParameters.dynamic_srcset_active==="1"&&UNCODE.refresh_dynamic_srcset_size(),typeof UNCODE.menuSmartInit!="undefined"&&UNCODE.menuSmartInit(),typeof UNCODE.parallax!="undefined"&&UNCODE.parallax(),maybe_scroll_to_top();var woo_select2_cats=$(".dropdown_product_cat");if(woo_select2_cats.length>0){woo_select2_cats.on("change",function(){if($(this).val()!=""){var this_page="",home_url=UncodeWCParameters.uncode_wc_widget_product_categories_home_url;home_url.indexOf("?")>0?this_page=home_url+"&product_cat="+$(this).val():this_page=home_url+"?product_cat="+$(this).val(),location.href=this_page}else location.href=UncodeWCParameters.uncode_wc_widget_product_categories_shop_url});if($().selectWoo){var wc_product_cat_select=function(){woo_select2_cats.selectWoo({placeholder:UncodeWCParameters.uncode_wc_widget_product_categories_placeholder,minimumResultsForSearch:5,width:"100%",allowClear:!0,language:{noResults:function(){return UncodeWCParameters.uncode_wc_widget_product_categories_no_results}}})};wc_product_cat_select()}}$(document).trigger("uncode-ajax-filtered"),$(document.body).trigger("init_price_filter"),window.dispatchEvent(new CustomEvent("uncode-ajax-filtered")),window.document.dispatchEvent(new Event("DOMContentLoaded",{bubbles:!0,cancelable:!0})),isAjaxing=!1}}
1,error:function(){container.removeClass("grid-filtering"),isAjaxing=!1,SiteParameters.enable_debug==1&&console.log("There was an error retrieving the products")}})}function maybe_scroll_to_top(){var offcanvas_sidebar_wrapper=$(".ajax-filter-sidebar--offcanvas");if(offcanvas_sidebar_wrapper.length>0)return;var container=get_filters_container(),bound=container[0].getBoundingClientRect();bound.y<0&&$(window).scrollTop(container.offset().top)}var isAjaxing=!1,clear_clicked=!1,init_ajax_grid=function(){var $grids=$(".ajax-grid-system:not(.init-ajax-grid)");$grids.each(function(index,val){var $body=$("body"),$grid=$(val).addClass("init-ajax-grid"),starting_point=$grid.attr("data-toggle"),$trigger=$(".uncode-toggle-ajax-filters",$grid),$sidebar_wrapper=$(".ajax-filter-sidebar-wrapper",$grid),$isotope_wrapper=$(".isotope-wrapper",$grid),$sidebar=$(".ajax-filter-sidebar",$sidebar_wrapper),$sorting_trgr=$(".uncode-woocommerce-sorting__link",$grid),$footprint=$(".ajax-filter-footprint",$grid),sidebar_w,data_w=parseFloat($sidebar.attr("data-max-width")),$firstCol=$grid.closest(".uncol.style-light, .uncol.style-dark"),skin=$firstCol.hasClass("style-light")?"style-light":"style-dark",$positioned_top=$(".ajax-filter-position-horizontal",$grid),overlay_desktop=$(".ajax-filter-position-left-overlay, .ajax-filter-position-right-overlay",$grid).length,$close_btn=$(".close-ajax-filter-sidebar",$sidebar_wrapper),$vc_row=$(".vc_row",$sidebar_wrapper).eq(0),sidew,$inside_row=$("> .row-parent",$vc_row),bg_row,$side_header=$(".ajax-filter-sidebar-header",$sidebar_wrapper),$side_footer=$(".ajax-filter-sidebar-footer",$sidebar_wrapper),$apply_filters=$(".ajax-filter-sidebar__button",$side_footer),sidebar_overlay=!1,sidebar_hover=!1,switchMobile=!1,scrollTop;$vc_row.attr("class")&&(bg_row=$vc_row.attr("class").match(/style-color-([^-]+)-bg/)),bg_row!=null&&$side_header.add($side_footer).addClass(bg_row[0]),$trigger.add($apply_filters).on("click",function(e){return e.preventDefault(),e.stopPropagation(),$grid=$(".ajax-grid-system").eq(0),$positioned_top=$(".ajax-filter-position-horizontal",$grid),overlay_desktop=$(".ajax-filter-position-left-overlay, .ajax-filter-position-right-overlay",$grid).length,$sidebar_wrapper=$(".ajax-filter-sidebar-wrapper").eq(0),sidebar_w=$sidebar_wrapper.width(),$sidebar=$(".ajax-filter-sidebar",$sidebar_wrapper),$(this).hasClass("ajax-filter-sidebar__button--clear")&&$(this).trigger("uncode-ajax-clear-filters"),$positioned_top.length&&UNCODE.wwidth>=UNCODE.mediaQuery?($grid.toggleClass("ajax-hide-filters-blanks"),$sidebar.slideToggle({duration:400,easing:"easeOutQuad"})):($grid.removeClass("ajax-hide-filters-blanks"),$grid.toggleClass("ajax-hide-filters"),$grid.hasClass("ajax-hide-filters")?$body.addClass("ajax-hide-filters"):(scrollTop=$("html, body").scrollTop(),$body.removeClass("ajax-hide-filters"))),(overlay_desktop||UNCODE.wwidth<UNCODE.mediaQuery)&&$("html, body").scrollTop(scrollTop),!1}),$close_btn.on("click",function(e){e.preventDefault(),$grid=$(".ajax-grid-system").eq(0),$grid.addClass("ajax-hide-filters"),$grid.hasClass("ajax-hide-filters")?$body.addClass("ajax-hide-filters"):(scrollTop=$("html, body").scrollTop(),$body.removeClass("ajax-hide-filters")),$("html, body").scrollTop(scrollTop)}),$sidebar_wrapper.on("mouseover",function(){sidebar_hover=!0}).on("mouseout",function(){sidebar_hover=!1}),$body.off("click.ajax-filter-sidebar").on("click.ajax-filter-sidebar",function(e,from){if($(e.target).closest(".ajax-filter-sidebar").length)return;if(undefined!==from&&from==="select_active_attributes")return;if($(e.target).closest(".select2-container--open").length)return;!$body.hasClass("ajax-hide-filters")&&!sidebar_hover&&$body.hasClass("ajax-filter-sidebar-overlay")&&$grid.add($body).addClass("ajax-hide-filters")}),$sorting_trgr.on("click",function(e){e.preventDefault()});var inside_width=function(){$sidebar_wrapper=$(".ajax-filter-sidebar-wrapper").eq(0),$sidebar=$(".ajax-filter-sidebar",$sidebar_wrapper),$vc_row=$(".vc_row",$sidebar_wrapper).eq(0),$inside_row=$("> .row-parent",$vc_row),UNCODE.wwidth<UNCODE.mediaQuery||overlay_desktop?(sidew=$sidebar.width(),$inside_row.css({width:sidew})):$inside_row.css({width:""})};inside_width();var ajax_sidebar_position=function(e,f_editor){$grid=$(".ajax-grid-system").eq(0),$sidebar_wrapper=$(".ajax-filter-sidebar-wrapper").eq(0),$positioned_top=$(".ajax-filter-position-horizontal",$grid),$sidebar=$(".ajax-filter-sidebar",$sidebar_wrapper),$vc_row=$(".vc_row",$sidebar_wrapper).eq(0),$inside_row=$("> .row-parent",$vc_row),scrollTop=$("html, body").scrollTop();if(f_editor!==!0&&(UNCODE.wwidth<UNCODE.mediaQuery||overlay_desktop)){if(switchMobile!==!0){$grid.add($body).addClass("ajax-hide-filters"),$sidebar_wrapper.after('<span class="ajax-sidebar-placeholder" />'),$body.append($sidebar_wrapper.addClass("main-container ajax-filter-sidebar--offcanvas")),sidebar_overlay=!0,$body.addClass("ajax-filter-sidebar-overlay"),$sidebar_wrapper.addClass(skin);var sideHeadH=$side_header.outerHeight(),sideFooterH=$side_footer.outerHeight();data_w!==""&&data_w>0&&(UNCODE.wwidth>=UNCODE.mediaQuery?$sidebar.css({"max-width":data_w}):$sidebar.css({"max-width":"none"})),$vc_row.css({"padding-top":sideHeadH,"padding-bottom":sideFooterH}).attr("data-lenis-prevent",!0);var sidew=$sidebar.width();$inside_row.css({width:sidew}),switchMobile=!0}}else{if(typeof e!="undefined"&&e.type==="wwResize"&&starting_point==="hidden"||f_editor===!0)scrollTop=$("html, body").scrollTop(),$grid.add($body).removeClass("ajax-hide-filters");typeof e!="undefined"&&e.type==="wwResize"&&$positioned_top.length&&UNCODE.wwidth<UNCODE.mediaQuery&&($grid.addClass("ajax-hide-filters-blanks"),$sidebar.hide()),$(".ajax-sidebar-placeholder",$grid).after($sidebar_wrapper.removeClass("main-container ajax-filter-sidebar--offcanvas")),$(".ajax-sidebar-placeholder",$grid).remove(),sidebar_overlay=!1,$body.removeClass("ajax-filter-sidebar-overlay"),$sidebar_wrapper.removeClass(skin),data_w!==""&&data_w>0&&$sidebar.css({"max-width":"none"}
1),$vc_row.css({"padding-top":0,"padding-bottom":0}).removeAttr("data-lenis-prevent"),$inside_row.css({width:""}),f_editor===!0&&UNCODE.ajax_filters(),switchMobile=!1}(overlay_desktop||UNCODE.wwidth<UNCODE.mediaQuery)&&$("html, body").scrollTop(scrollTop)},sidebar_width=function(){!$body.hasClass("ajax-filter-sidebar-overlay")&&!$positioned_top.length&&UNCODE.wwidth>=UNCODE.mediaQuery?(sidebar_w=$footprint.width(),$sidebar.css({width:sidebar_w})):$sidebar.css({width:""})};sidebar_width(),SiteParameters.is_frontend_editor&&ajax_sidebar_position(),$(window).off("load.ajax_filters wwResize.ajax_filters").on("load.ajax_filters wwResize.ajax_filters",function(e){(!SiteParameters.is_frontend_editor||e.type==="wwResize")&&ajax_sidebar_position(e),sidebar_width()}),$(window).off("uncode.ajax_filters").one("uncode.ajax_filters",function(e){ajax_sidebar_position(e,!0)}),$isotope_wrapper.on("transitionend",function(e){return $(e.target).hasClass("isotope-wrapper")&&window.dispatchEvent(new CustomEvent("boxResized")),!1});if(UNCODE.wwidth<UNCODE.mediaQuery&&$body.hasClass("ajax-hide-filters")){var $grid=$(".ajax-grid-system").eq(0);$grid.addClass("ajax-hide-filters")}})};init_ajax_grid(),$(document).on("uncode-ajax-filtered",init_ajax_grid);var widget_hover_hack=function(){$(".widget, .uncode_widget").each(function(){var $widget=$(this),class_w=$widget.attr("class"),$lis=$("ul:not(.menu-horizontal) > li",$widget).has("a"),$footer=$widget.closest("#colophon");if(class_w.indexOf("widget_yith")>0)return!0;$lis.each(function(){var $li=$(this),$a=$("a",$li),$label=$a.closest("label");$footer.length||$li.addClass("no-evts"),$("span",$a).length||$li.addClass("li-hover"),$("li",$li).hover(function(e){$(e.target).parents("li").each(function(){$(this).addClass("parent-li-hover")})},function(e){$(e.target).parents("li").each(function(key,val){key===0&&$(val).removeClass("parent-li-hover")})}),$li.off("mouseup").on("mouseup",function(e){if(e.which!==3){e.stopPropagation();var $a=$("a",this).first();$a[0].click()}})})})},ajax_filters_button_mode=$("body").hasClass("ajax-filters-button-mode");!ajax_filters_button_mode&&SiteParameters.disable_hover_hack!=="1"&&(widget_hover_hack(),$(document).on("uncode-ajax-filtered",widget_hover_hack)),$(window).on("popstate.ajaxfilters",function(e){var location=window.location,url=location.href,params=UNCODE.getURLParams(window.location),old_params=UNCODE.getURLParams(UNCODE.lastURL,!0);UNCODE.lastURL=url;if(UNCODE.hasEqualURLParams(params,old_params)||$.isEmptyObject(params)&&$.isEmptyObject(old_params)||params.form!==undefined)return;var container=get_filters_container();reload_items(container,url,!1)}),$(window).on("uncode-ajax-pre-filtered",function(){$.fn.infinitescroll&&$(".cssgrid-infinite, .isotope-infinite").infinitescroll("destroy")}),init_filters()},UNCODE.videoThumbs=function(){var checkResize,newW=UNCODE.wwidth,checkForVideos=function(){$(window).on("okevents.y.change",function(e,y){var $video=$(y.target.g),$video_wrap=$video.closest(".fluid-object.is-no-control.play-on-hover"),$mobile_video_wrap=$video.closest(".fluid-object.is-no-control.no-control-mobile-autoplay"),restart=!$video_wrap.hasClass("play-pause"),$tmb=$video.closest(".tmb-all-hover.tmb-content-under").length?$video.closest(".t-inside"):$video.closest(".t-entry-visual, .un-inline-image"),setTime;newW>=UNCODE.mediaQuery?$video_wrap.length&&$video_wrap.data("hovered")!==!0&&($video_wrap.data("hovered",!0),$video_wrap.addClass("played-on"),y.target.pauseVideo(),$tmb.on("mouseenter",function(){restart&&y.target.seekTo(0),y.target.playVideo()}).on("mouseleave",function(){clearTimeout(setTime),setTime=setTimeout(function(){y.target.pauseVideo()},300)})):$mobile_video_wrap.length&&($video_wrap.addClass("played-on"),y.target.playVideo())}),$(window).on("okevents.v.loaded",function(e,playerV){var $video=$(playerV.element),$video_wrap=$video.closest(".fluid-object.is-no-control.play-on-hover"),$mobile_video_wrap=$video.closest(".fluid-object.is-no-control.no-control-mobile-autoplay"),restart=!$video_wrap.hasClass("play-pause"),$tmb=$video.closest(".tmb-all-hover.tmb-content-under").length?$video.closest(".t-inside"):$video.closest(".t-entry-v
1isual, .un-inline-image"),setTime;if(newW>=UNCODE.mediaQuery){if($video_wrap.length){var playPromise=playerV.play();playPromise!==undefined&&playPromise.then(function(value){playerV.pause()}),$video_wrap.addClass("played-on"),$tmb.on("mouseenter",function(){restart&&playerV.setCurrentTime(0),playerV.play()}).on("mouseleave",function(){clearTimeout(setTime),setTime=setTimeout(function(){playerV.pause()},300)})}}else if($mobile_video_wrap.length){var playPromise=playerV.play();playPromise!==undefined&&playPromise.then(function(value){playerV.play()}),$video_wrap.addClass("played-on")}}),$(".fluid-object.self-video.is-no-control video").each(function(key,video){var $video=$(video),$noscript=$("noscript",$video),$video_wrap=$video.closest(".fluid-object.is-no-control.play-on-hover"),restart=!$video_wrap.hasClass("play-pause"),$mobile_video_wrap=$video.closest(".fluid-object.is-no-control.no-control-mobile-autoplay"),$tmb=$video.closest(".tmb-all-hover.tmb-content-under").length?$video.closest(".t-inside"):$video.closest(".t-entry-visual, .un-inline-image"),setTime,manageVideo=function(){video.currentTime=0,video.pause(),newW>=UNCODE.mediaQuery?$video_wrap.length?($video_wrap.addClass("played-on"),$tmb.on("mouseenter",function(){restart&&(video.currentTime=0),video.play()}).on("mouseleave",function(){clearTimeout(setTime),setTime=setTimeout(function(){video.pause()},300)})):video.play():$mobile_video_wrap.length&&($mobile_video_wrap.addClass("played-on"),video.play())};$noscript.length&&newW>=UNCODE.mediaQuery&&$noscript.each(function(key,val){$noscript.after(val.textContent||val.innerText||val.innerHTML),$noscript.remove()}),typeof MediaElement=="function"&&$video.has("source[src]").mediaelementplayer({pauseOtherPlayers:!1}),video.readyState>0?manageVideo():(window.addEventListener("pageshow",function(event){event.persisted&&manageVideo()}),$video.on("loadedmetadata",function(_event){manageVideo()}))})};checkForVideos();var checkVideoResize=function(){clearRequestTimeout(checkResize),checkResize=requestTimeout(function(){newW!==UNCODE.wwidth&&(checkForVideos(),newW=UNCODE.wwidth)},1e3)};$(window).off("resize.videos",checkVideoResize).on("resize.videos",checkVideoResize),$(window).off("more-items-loaded.videos",checkForVideos).on("more-items-loaded.videos",checkForVideos),$(document).off("uncode-ajax-filtered.videos",checkForVideos).on("uncode-ajax-filtered.videos",checkForVideos)},UNCODE.inlineImgs=function(){var linkInlineImgs=function(){$(".un-inline-image").each(function(){var $img=$(this),href=$(this).attr("data-link-href"),dataImg=$img.data();if(dataImg!=""&&href!=null&&href!==""){var class_stra_a="unline-image-link";$(this).hasClass("un-inline-space-over")?class_stra_a+=" un-inline-space-over":$(this).hasClass("un-inline-space-gutter")&&(class_stra_a+=" un-inline-space-gutter");var str_a='<a class="'+class_stra_a+'" ';for(var key in dataImg)dataImg.hasOwnProperty(key)&&key.startsWith("link")&&(str_a+=" "+key.slice(4).toLowerCase()+'="'+dataImg[key]+'"');str_a+=" />",$img.wrap(str_a)}})};$(window).on("load",linkInlineImgs)},UNCODE.lottie=function(){if(SiteParameters.is_frontend_editor){var $lottie_wraps=$("div.uncode-lottie-wrap");$lottie_wraps.each(function(){var $lottie_wrap=$(this),$div_player=$("div.uncode-lottie-player",$lottie_wrap),$player_clone=$div_player.clone(),player_id=$div_player.attr("data-id"),$lottie_players=$("lottie-player",$lottie_wrap).remove();$div_player.attr("data-init")!==!0&&$player_clone.length&&($("#"+player_id).length&&(player_id+="_"+Math.floor(Math.random()*1e16)),$player_clone.attr("id",player_id),$player_clone=$player_clone[0].outerHTML.replace("<div","<lottie-player").replace("</div","</lottie-player"),$div_player.after($player_clone),$div_player.attr("data-init",!0))})}var $players=$(".uncode-lottie-wrap lottie-player");$players.each(function(){var player=this,this_id=$(player).attr("id"),_player=document.getElementById(this_id),trigger=$(player).attr("data-trigger"),pFrames=$(player).attr("data-frames").split(","),srcPlayer=$(player).attr("src");_player.load(srcPlayer),_player.addEventListener("ready",function(){var $_shadow=_player.shadowRoot;$($_shadow).find(".error").remove();var tFrames=_player.getLottie().totalFrames/100,pFrame_from=Math.round(tFrames*pFrames[0]),pFrame_to=Math.round(tFrames*pFrames[1])-1,loop=$(player).attr("loop"),mode,actions;typeof trigger!="undefined"&&typeof LottieInteractivity!="undefined"?(trigger==="scroll"?(mode="scroll",actions=[{visibility:[0,1],type:"seek",frames:[pFrame_from,pFrame_to
1]}]):trigger==="viewport"?(mode="scroll",actions=[{visibility:[.2,1],frames:[pFrame_from,pFrame_to],type:loop?"loop":"play"}]):trigger==="hover"&&($(player).on("mouseenter",function(){_player.play()}).on("mouseleave",function(){_player.pause()}),pFrame_from>0&&pFrame_from<99&&(_player.seek(pFrame_from),_player.addEventListener("frame",function(){_player.getLottie().currentFrame>=pFrame_to&&_player.seek(pFrame_from)}))),LottieInteractivity.create({player:"#"+this_id,mode:mode,actions:actions})):pFrame_from>0&&pFrame_from<99&&(_player.seek(pFrame_from),_player.addEventListener("frame",function(){_player.getLottie().currentFrame>=pFrame_to&&_player.seek(pFrame_from)}))}),$(window).on("unlottie-destroy",function(){_player.destroy()})})},UNCODE.animatedBgGradient=function(_el){var ev;typeof _el=="undefined"||_el===null?(_el=document,ev=!1):(_el=_el[0],ev="shortcode:update");var simplex=new SimplexNoise,Uncode_BG_Animated_Gradient=function(blockOverlay,canvasWrap){this.block=blockOverlay,this.wrap=canvasWrap,this.config(),this.checker(),this.loopRAF(),this.animLoader()},AnimGradient=Uncode_BG_Animated_Gradient.prototype;AnimGradient.config=function(){this.canvas=document.createElement("canvas"),this.wrap.appendChild(this.canvas),this.ctx=this.canvas.getContext("2d"),this.count=0,this.isOrientationChanged=!1,this.res=UNCODE.isMobile?90:110,this.resPercent=100/this.res,this.resAround=this.resPercent/100,this.size=typeof this.block.getAttribute("data-bg-noise-size")!="undefined"&&this.block.getAttribute("data-bg-noise-size")!==null&&this.block.getAttribute("data-bg-noise-size")!==""?this.block.getAttribute("data-bg-noise-size"):1,this.canvas.classList.add("uncode-bg-animated-gradient"),this.canvas.setAttribute("height",this.res),this.canvas.setAttribute("width",this.res),this.canvas.style="height: 100%; position: relative; width:100%;",this.imgdata=this.ctx.getImageData(0,0,this.canvas.width,this.canvas.height),this.cx=this.canvas.width/2,this.cy=this.canvas.height/2,this.data=this.imgdata.data,this.opts={col_1st:typeof this.block.getAttribute("data-bg-noise-1")!="undefined"&&this.block.getAttribute("data-bg-noise-1")!==null&&this.block.getAttribute("data-bg-noise-1")!==""?this.block.getAttribute("data-bg-noise-1"):!1,col_2nd:typeof this.block.getAttribute("data-bg-noise-2")!="undefined"&&this.block.getAttribute("data-bg-noise-2")!==null&&this.block.getAttribute("data-bg-noise-2")!==""?this.block.getAttribute("data-bg-noise-2"):!1,time:typeof this.block.getAttribute("data-bg-noise-speed")!="undefined"&&this.block.getAttribute("data-bg-noise-speed")!==null&&this.block.getAttribute("data-bg-noise-speed")!==""?parseFloat(this.block.getAttribute("data-bg-noise-speed")):250},this.lavaTime=1,this.bg_colors=[];if(this.opts.col_1st===!1&&this.opts.col_2nd===!1)return;if(this.opts.col_1st===this.opts.col_2nd||this.opts.col_2nd==0)this.singleColor=!0;if(this.opts.col_1st){var rgbColor1=this.hexToRGB(this.opts.col_1st);this.bg_colors.push({r:rgbColor1.r,g:rgbColor1.g,b:rgbColor1.b})}if(this.opts.col_2nd){var rgbColor2=this.hexToRGB(this.opts.col_2nd);this.bg_colors.push({r:rgbColor2.r,g:rgbColor2.g,b:rgbColor2.b})}},AnimGradient.checker=function(){var scope=this;this.checkInViewPort(),window.addEventListener("resize",function(){if(UNCODE.isMobile&&!scope.isOrientationChanged)return;scope.ratioCalc()}),window.addEventListener("orientationchange",function(){scope.isOrientationChanged=!0}),this.ratioCalc()},AnimGradient.ratioCalc=function(){var blockW=this.block.clientWidth,blockH=this.block.clientHeight;if(blockH==0||blockW==0)return;var blockRatio=blockH/blockW;blockRatio<1?this.ratioParam={x:1.4,y:blockRatio*1.4}:this.ratioParam={x:blockRatio/3,y:1}},AnimGradient.checkInViewPort=function(){var scope=this;if($(scope.block).closest(".unmenu-inner-ul").length)scope.isInViewport=!0;else if("IntersectionObserver"in window){var observer=new IntersectionObserver(function(entries){entries.forEach(function(entry){entry.isIntersecting?scope.isInViewport=!0:scope.isInViewport=!1})},{root:document});observer.observe(scope.block)}},AnimGradient.hexToRGB=function(hexval){var hexecuted=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hexval);return hexecuted?{r:parseInt(hexecuted[1],16),g:parseInt(hexecuted[2],16),b:parseInt(hexecuted[3],16)}:!1},AnimGradient.factor=function(val_1,val_2,lava){return val_1*(1-lava)+val_2*lava},AnimGradient.factorNoise=function(wave_l,x,y,noise){return this.singleColor?this.bg_colors[0][wave_l]:this.factor(this.bg_colors[0][wave_l],this.bg_colors[1][wave_l],this.lava(x,y,this.count*this.lavaTime)*this.resAround*3.5*noise/2)},AnimGradient.lava=function(x,y,grade){var radians=Math.PI/180*grade,cos=Math.cos(radians),sin=Math.sin(radians),nx=cos*(x-this.cx)+sin*(y-this.cy)+this.cx;return nx},AnimGradient.loopRAF=function(){var scope=this;if(this.isInViewport&&typeof this.ratioParam!="undefined"){for(var x=0;x<this.res;x++)for(var y=0;y<this.res;y++){var noise=simplex.noise3D(x/this.res*this.ratioParam.x*this.size,y/this.res*this.ratioParam.y*this.size,this.count/this.opts.time);this.data[(x+y*this.res)*4+0]=this.factorNoise("r",x,y,noise),this.data[(x+y*this.res)*4+1]=this.factorNoise("g",x,y,noise),this.data[(x+y*this.res)*4+2]=this.factorNoise("b",x,y,noise),this.data[(x+y*this.res)*4+3]=noise*265}this.count++,this.ctx.putImageData(this.imgdata,0,0)}requestAnimationFrame(function(){scope.loopRAF()})},AnimGradient.animLoader=function(){this.wrap.classList.add("uncode-canvas-bg-noise-wrap-loaded")};var anim_init=function(){var bgs=_el.querySelectorAll(".block-bg-overlay");
1bgs.forEach(function(blockOverlay){var canvasWrap=blockOverlay.querySelector(".uncode-canvas-bg-noise-wrap");if(!blockOverlay||!canvasWrap)return;new Uncode_BG_Animated_Gradient(blockOverlay,canvasWrap)})};$(window).on("load",function(){anim_init()}),ev==="shortcode:update"&&anim_init()},UNCODE.multibg=function(){var $bgsWraps=$(".uncode-multi-bgs"),$body=$("body");$bgsWraps.each(function(){var $bgWrap=$(this),transition=$bgWrap.attr("data-transition"),transitionTime=$bgWrap.attr("data-transition-time"),dataPace=$bgWrap.attr("data-transition-pace"),dataThreshold=$bgWrap.attr("data-transition-threshold"),dataTime=$bgWrap.attr("data-carousel-time"),dataMobileCarousel=$bgWrap.attr("data-carousel-mobile"),random=$bgWrap.attr("data-multi-random"),_bgWrap=$bgWrap[0],$multiBgs=$(".multi-background",$bgWrap),imgFirst,bgAmount=$multiBgs.length,isInViewport=!1,lastScrollTop=0,counter=0,totMove=0,autoScroll=typeof dataPace=="undefined"&&transition==="scroll",pace=typeof dataPace!="undefined"&&dataPace!==""?parseFloat(dataPace):transition==="scroll"?20:200,threshold=typeof dataThreshold!="undefined"&&dataThreshold!==""?parseFloat(dataThreshold):0,offX,offY,wait=typeof transitionTime!="undefined"&&transitionTime!==""?parseFloat(transitionTime)+1:250,carouselTime=typeof dataTime!="undefined"&&dataTime!==""?parseFloat(dataTime):5e3,requestCarousel,is_header=$bgWrap.closest("#page-header").length,startTime=new Date;transition=typeof transition=="undefined"?"":transition,random==="true"&&UNCODE.shuffle($multiBgs),$multiBgs.find(".background-inner").attr("data-active","false"),imgFirst=$multiBgs.first().find(".background-inner").attr("data-active","true").css("background-image").replace("url(","").replace(")","").replace(/\"/gi,"");var loadFirst=function(){$multiBgs.first().attr("data-load","loaded").stop(!0,!1).animate({opacity:1},250,"easeInQuad").css({zIndex:1})},loadError=function(){console.log("Multi BG loading error")};imgFirst&&imgFirst!=="none"?UNCODE.checkImgLoad(imgFirst,loadFirst,loadError):loadFirst();var loadSlides=function($thisBg){$thisBg.attr("data-load","loaded")};$multiBgs.not('[data-load="loaded"]').each(function(ind,val){var $thisBg=$(val);if(typeof $thisBg!="undefined"&&$thisBg.length){var _imgBg=$(val).find(".background-inner").css("background-image");typeof _imgBg=="undefined"||_imgBg===""||_imgBg==="none"?$thisBg.attr("data-load","loaded"):(_imgBg=_imgBg.replace("url(","").replace(")","").replace(/\"/gi,""),typeof _imgBg!="undefined"&&UNCODE.checkImgLoad(_imgBg,loadSlides,loadError,$thisBg))}});
1var multiCarousel=function(e){clearRequestTimeout(requestCarousel);var checkTime=new Date;if(checkTime-startTime>=carouselTime&&isInViewport){var $checkEl=$multiBgs.eq((counter+1)%bgAmount);if($checkEl.attr("data-load")!=="loaded"){requestTimeout(function(){multiCarousel()},100);return}counter++,$multiBgs.each(function(ind,val){ind===counter%bgAmount?$(val).stop(!0,!1).animate({opacity:1},wait,"easeInQuad").css({zIndex:1}).find(".background-inner").attr("data-active","true"):$(val).stop(!0,!1).animate({opacity:0},wait,"easeInQuad",function(){$(val).find(".background-inner").attr("data-active","false")}).css({zIndex:0})})}if(transition===""||UNCODE.wwidth<=UNCODE.mediaQueryMobile)requestCarousel=requestTimeout(multiCarousel,carouselTime)},multiMove=function(e){if($body.hasClass("navbar-hover"))return;var checkTime=new Date,bound=$bgWrap[0].getBoundingClientRect(),windowTop=window.clientYOffset||document.documentElement.scrollTop;offX&&(totMove+=Math.sqrt(Math.pow(offY-e.clientY,2)+Math.pow(offX-e.clientX,2))),totMove>=pace&&checkTime-startTime>=wait&&e.clientX<=bound.left+bound.width&&e.clientX>=bound.left&&e.clientY<=bound.top+bound.height&&e.clientY>=bound.top&&(counter++,startTime=checkTime,$multiBgs.each(function(ind,val){ind===counter%bgAmount?$(val).stop(!0,!1).animate({opacity:1},wait,"easeInQuad").css({zIndex:1}).find(".background-inner").attr("data-active","true"):$(val).stop(!0,!1).animate({opacity:0}
1,wait,"easeInQuad",function(){$(val).find(".background-inner").attr("data-active","false")}).css({zIndex:0})}),totMove=0),offX=e.clientX,offY=e.clientY};transition==="mouse"&&UNCODE.wwidth>UNCODE.mediaQueryMobile&&document.addEventListener("mousemove",multiMove),window.addEventListener("resize",function(){transition==="mouse"&&UNCODE.wwidth>UNCODE.mediaQueryMobile&&(document.removeEventListener("mousemove",multiMove),document.addEventListener("mousemove",multiMove))});var lightLoopRAF=function(){var scrollTop=(window.clientYOffset||document.documentElement.scrollTop)-(document.documentElement.clientTop||0),checkTime=new Date,bound=$bgWrap[0].getBoundingClientRect(),thresholdHeader=is_header?100:threshold,rePace=(bound.height-bound.height*threshold/100)/100*pace+(bound.height-bound.height*thresholdHeader/100)/100*pace;Math.abs(lastScrollTop-scrollTop)>=rePace&&(counter++,lastScrollTop=scrollTop,startTime=checkTime,$multiBgs.each(function(ind,val){ind===counter%bgAmount?$(val).stop(!0,!1).animate({opacity:1},wait,"easeInQuad").css({zIndex:1}).find(".background-inner").attr("data-active","true"):$(val).stop(!0,!1).animate({opacity:0}
1,wait,"easeInQuad",function(){$(val).find(".background-inner").attr("data-active","false")}).css({zIndex:0})})),requestAnimationFrame(function(){isInViewport&&lightLoopRAF()})},currentInd=0,loopRAF=function(){var multiBgRotate=function(slideInd){currentInd=slideInd,$multiBgs.each(function(ind,val){ind===slideInd?$(val).stop(!0,!1).animate({opacity:1},wait,"easeInQuad").css({zIndex:1}).find(".background-inner").attr("data-active","true"):$(val).stop(!0,!1).animate({opacity:0},wait,"easeInQuad",function(){$(val).find(".background-inner").attr("data-active","false")}).css({zIndex:0})})},bound=$bgWrap[0].getBoundingClientRect(),thresholdPX=UNCODE.wheight*threshold/100,totMove=UNCODE.wheight+bound.height-thresholdPX*parseFloat(2-is_header),movePX=totMove/bgAmount,moving=UNCODE.wheight-(bound.top+thresholdPX),slideInd=0;UNCODE.wheight-bound.top<thresholdPX&&0!==currentInd?multiBgRotate(0):bound.top+bound.height<thresholdPX&&bgAmount-1!==currentInd?multiBgRotate(bgAmount-1):(slideInd=Math.ceil(moving/movePX)-1,slideInd<0?slideInd=0:slideInd>=bgAmount&&(slideInd=bgAmount-1),slideInd!==currentInd&&multiBgRotate(slideInd)),requestAnimationFrame(function(){isInViewport&&loopRAF()})};if("IntersectionObserver"in window){var observer=new IntersectionObserver(function(entries){entries.forEach(function(entry){entry.isIntersecting?(isInViewport=!0,transition==="scroll"?autoScroll?loopRAF():lightLoopRAF():multiCarousel()):isInViewport=!1})},{root:document,rootMargin:is_header?"-"+threshold+"% 0px 100% 0px":"-"+threshold+"% 0px"});(transition!=="mouse"||transition==="mouse"&&UNCODE.wwidth<=UNCODE.mediaQueryMobile&&dataMobileCarousel==="yes")&&observer.observe(_bgWrap),window.addEventListener("resize",function(){observer.unobserve(_bgWrap),(transition!=="mouse"||transition==="mouse"&&UNCODE.wwidth<=UNCODE.mediaQueryMobile&&dataMobileCarousel==="yes")&&observer.observe(_bgWrap)})}})},UNCODE.owlNav=function(target,ev){target=target.replace(/#\S+/g,"");var $carousel=$("#"+target),$slider=$carousel.closest(".uncode-slider"),$checkNavs=$(".uncode-owl-nav");if(!$checkNavs.length)return;$slider.length&&(target=$slider.attr("id"));var $navs=$('.uncode-owl-nav[data-target="#'+target+'"]'),$row;$navs.length||($row=$carousel.closest(".vc_row.row-container"),$navs=$(".uncode-owl-nav:not([data-target])",$row));if(!$navs.length)return;$navs.each(function(){function counter(event){if(!event.namespace)return;var slides=event.relatedTarget,current=slides._current,loop=SiteParameters.is_frontend_editor&&slides.closest(".uncode-slider").length?!1:slides.settings.loop,item=event.item,page=event.page,countPages=Math.ceil(item.count/page.size),$currentSlide=$carousel.find(".owl-item").eq(current),itemIndex=Math.floor($currentSlide.attr("data-index")),activeSlide=Math.ceil(itemIndex/page.size),$prev=$nav.find(".uncode-nav-prev"),$next=$nav.find(".uncode-nav-next"),$col=$currentSlide.find(".uncol").first();if(totalSlides!=countPages){totalSlides=countPages,$navDots.html("");var nav_html="";for(var sl_ind=0;sl_ind<countPages;sl_ind++){var padN=sl_ind+1;digit&&digit>1&&(padN=String(padN).padStart(digit,"0")),nav_html+='<button class="uncode-nav-index" data-key="'+Math.floor(sl_ind*page.size)+'" tabindex="0"><span>'+padN+"</span></button>"}$navDots.html(nav_html);var totalSlidesDigit=totalSlides;counterDigit&&counterDigit>1&&(totalSlidesDigit=String(totalSlidesDigit).padStart(counterDigit,"0")),$counterTotal.html(totalSlidesDigit)}loop!==!0&&($nav.find(".uncode-nav-disabled").removeClass("uncode-nav-disabled"),itemIndex===1?$prev.addClass("uncode-nav-disabled"):itemIndex-1+page.size>=item.count&&($next.addClass("uncode-nav-disabled"),activeSlide=Math.ceil(item.count/page.size))),$nav.find(".uncode-nav-index").removeClass("active-index").eq(activeSlide-1).addClass("active-index");var activeSlideDigit=activeSlide;counterDigit&&counterDigit>1&&(activeSlideDigit=String(activeSlideDigit).padStart(counterDigit,"0")),$counterIndex.html(activeSlideDigit),skinInherit&&($col.hasClass("style-light")?$nav.removeClass("style-dark").addClass("style-light"):$col.hasClass("style-dark")&&$nav.removeClass("style-light").addClass("style-dark")),$inner.removeClass("uncode-owl-nav-waiting");if($nav.hasClass("outer-width")){var navW=$nav.outerWidth(),nexW=$next.outerWidth(),prevW=$prev.outerWidth(),margins=Math.abs(parseFloat($next.css("margin-left")))+Math.abs(parseFloat($next.css("margin-right")));$nav.hasClass("h-align-justify")?($inner.css({"max-width":"calc(100vw - "+(nexW+prevW+margins*2)+"px)"}),navW+nexW+prevW+margins*2>UNCODE.wwidth?$inner.css({margin:"auto"}):$inner.css({margin:""})):($inner.css({"max-width":"calc(100vw - "+2*(nexW+prevW+margins)+"px)"}),navW+2*(nexW+prevW+margins)>UNCODE.wwidth?$inner.css({margin:"auto"}):$inner.css({margin:""}))}}var $nav=$(this),$outer=$nav.closest(".uncode-owl-nav-out"),$inner=$nav.find(".uncode-owl-nav-in"),$navDots=$(".uncode-nav-dots",$nav),$navCounter=$(".uncode-nav-counter",$nav),$counterIndex=$(".uncode-nav-counter-index",$navCounter),$counterTotal=$(".uncode-nav-counter-total",$navCounter),skinInherit=$nav.hasClass("skin-inherit"),digit=parseFloat($nav.attr("data-digit")),counterDigit=parseFloat($nav.attr("data-counter-digit")),navSpeed=parseFloat($carousel.attr("data-navspeed"));navSpeed=typeof navSpeed!="undefined"&&navSpeed!==""?navSpeed:400,$nav.hasClass("pos-abs")&&($carousel.closest(".owl-carousel-wrapper-nav").length||$carousel.closest(".owl-carousel-wrapper").wrap('<div class="owl-carousel-wrapper-nav" />'),$carousel.closest(".owl-carousel-wrapper-nav").append($outer)),$carousel.on("refreshed.owl.carousel",counter),$carousel.on("resized.owl.carousel",counter),$carousel.on("changed.owl.carousel",counter),$carousel.closest(".un-submenu").length&&$carousel.on("initialized.owl.carousel",counter);var totalSlides=0;$nav.on("click",".uncode-nav-index",function(){var $bullet=$(this),slide_index=parseFloat($bullet.attr("data-key"));$carousel.trigger("to.owl.carousel",[slide_index,navSpeed,!0])}),$nav.on("click",".uncode-nav-prev",function(){$carousel.trigger("prev.owl.carousel",[navSpeed])}),$nav.on("click",".uncode-nav-next",function(){$carousel.trigger("next.owl.carousel",[navSpeed])}),$nav.hasClass("animated-arrows")&&$(".uncode-nav-prev, .uncode-nav-next",$nav).on("mouseenter",function(){$(this).addClass("hover")}).on("animationend",function(){$(this).removeClass("hover")});var positionNav=function(){if($nav.hasClass("window-width")){var navOff=parseFloat($nav.offset().left)*-1;navOff>0?$inner.css({transform:"translateX("+navOff+"px)"}):$inner.css({transform:"none"})}};positionNav(),$(window).on("resize",positionNav),$(document).on("un-menu-show",positionNav)}),$carousel.closest(".owl-carousel-container").find(".uncode-owl-nav").addClass("appended")},UNCODE.init=function(){var wfl_check=!1,wfl_request,waypoint_request;UNCODE.preventDoubleTransition(),UNCODE.betterResize(),UNCODE.utils(),UNCODE.unBlockMenu(),UNCODE.mobileMenuBlockSkins(),UNCODE.magnetic(),typeof UNCODE.accessibility!="undefined"&&UNCODE.accessibility(),typeof UNCODE.rowParallax!="undefined"&&UNCODE.rowParallax(),typeof UNCODE.changeSkinOnScroll!="undefined"&&UNCODE.changeSkinOnScroll(),typeof UNCODE.share!="undefined"&&UNCODE.share(),typeof UNCODE.tooltip!="undefined"&&UNCODE.tooltip(),typeof UNCODE.counters!="undefined"&&UNCODE.counters(),typeof UNCODE.countdowns!="undefined"&&UNCODE.countdowns(),typeof UNCODE.tabs!="undefined"&&UNCODE.tabs(),typeof UNCODE.collapse!="undefined"&&UNCODE.collapse(),typeof UNCODE.bigText!="undefined"&&UNCODE.bigText(),UNCODE.menuSystem(),typeof UNCODE.bgChanger!="undefined"&&UNCODE.bgChanger(),typeof UNCODE.magicCursor!="undefined"&&UNCODE.magicCursor(),typeof UNCODE.magneticCursor!="undefined"&&UNCODE.magneticCursor(),typeof UNCODE.dropImage!="undefined"&&UNCODE.dropImage(),typeof UNCODE.postTable!="undefined"&&UNCODE.postTable(),typeof UNCODE.rotatingTxt!="undefined"&&UNCODE.rotatingTxt(),typeof UNCODE.okvideo!="undefined"&&(UNCODE.okvideo(),window.addEventListener("uncode-more-items-loaded",function(){UNCODE.okvideo("uncode-more-items-loaded")})),typeof UNCODE.backgroundSelfVideos!="undefined"&&UNCODE.backgroundSelfVideos(),UNCODE.tapHover(),typeof UNCODE.isotopeLayout!="undefined"&&UNCODE.isotopeLayout(),typeof UNCODE.justifiedGallery!="undefined"&&UNCODE.justifiedGallery(),typeof UNCODE.cssGrid!="undefined"&&UNCODE.cssGrid(),typeof UNCODE.linearGrid!="undefined"&&UNCODE.linearGrid(),typeof UNCODE.lightbox!="undefined"&&!SiteParameters.lbox_enhanced&&UNCODE.lightbox(),typeof UNCODE.lightgallery!="undefined"&&SiteParameters.lbox_enhanced&&$(window).on("load more-items-loaded",function(){UNCODE.lightgallery()}),typeof UNCODE.carousel!="undefined"&&UNCODE.carousel($("body")),typeof UNCODE.lettering!="undefined"&&UNCODE.lettering(),UNCODE.animations(),typeof UNCODE.stickyElements!="undefined"&&!SiteParameters.is_frontend_editor&&UNCODE.stickyElements(),typeof UNCODE.twentytwenty!="undefined"&&UNCODE.twentytwenty(),UNCODE.disableHoverScroll(),UNCODE.printScreen(),typeof UNCODE.particles!="undefined"&&UNCODE.particles(),typeof UNCODE.filters!="undefined"&&UNCODE.filters(),typeof UNCODE.ajax_filters!="undefined"&&UNCODE.ajax_filters(),typeof UNCODE.widgets!="undefined"&&UNCODE.widgets(),typeof UNCODE.unmodal!="undefined"&&UNCODE.unmodal(),typeof UNCODE.checkScrollForTabs!="undefined"&&(UNCODE.isFullPage||UNCODE.checkScrollForTabs()),typeof UNCODE.onePage!="undefined"&&UNCODE.onePage(UNCODE.isMobile),typeof UNCODE.fullPage!="undefined"&&$(document).ready(function(){UNCODE.fullPage()}),typeof UNCODE.skewIt!="undefined"&&UNCODE.skewIt(),typeof UNCODE.rotateIt!="undefined"&&UNCODE.rotateIt(),typeof UNCODE.textMarquee!="undefined"&&UNCODE.textMarquee(),typeof UNCODE.stickyScroll!="undefined"&&UNCODE.stickyScroll(),typeof UNCODE.stickyTrigger!="undefined"&&UNCODE.stickyTrigger(),typeof UNCODE.areaTextReveal!="undefined"&&UNCODE.areaTextReveal(),typeof UNCODE.thumbsReveal!="undefined"&&UNCODE.thumbsReveal(),typeof UNCODE.verticalText!="undefined"&&UNCODE.verticalText(),typeof UNCODE.videoThumbs!="undefined"&&UNCODE.videoThumbs(),typeof UNCODE.revslider!="undefined"&&UNCODE.revslider(),typeof UNCODE.layerslider!="undefined"&&UNCODE.layerslider(),typeof UNCODE.lottie!="undefined"&&UNCODE.lottie(),typeof UNCODE.inlineImgs!="undefined"&&UNCODE.inlineImgs(),typeof UNCODE.animatedBgGradient!="undefined"&&UNCODE.animatedBgGradient(),typeof UNCODE.readMoreCol!="undefined"&&UNCODE.readMoreCol(),typeof UNCODE.multibg!="undefined"&&UNCODE.multibg(),typeof UNCODE.flexEqual!="undefined"&&UNCODE.flexEqual(),typeof UNCODE.wrapperMarquee!="undefined"&&UNCODE.wrapperMarquee(),typeof UNCODE.wrapperSticky!="undefined"&&UNCODE.wrapperSticky(),typeof UNCODE.mouseTrail!="undefined"&&UNCODE.mouseTrail(),typeof UNCODE.magneticPattern!="undefined"&&UNCODE.magneticPattern(),typeof UNCODE.thumbDrop!="undefined"&&UNCODE.thumbDrop(),$(window).on("load",function(){clearRequestTimeout(waypoint_request),waypoint_request=requestTimeout(function(){Waypoint.refreshAll()},1e3)}),$(window).one("load",function(){typeof UNCODE.parallax!="undefined"&&UNCODE.parallax()})},SiteParameters.is_frontend_editor||UNCODE.init()})(jQuery)
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.