Файловый менеджер - Редактировать - /home/digitalm/www/zetaworks/wp-content/themes/uncode/library/js/app.min.js
Назад
(function($){"use strict";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))},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).attr("data-title",$(this).attr("title")),$(this).removeAttr("title")}),$(document).on("mouseout","a",function(){$(this).attr("title",$(this).attr("data-title")),$(this).removeAttr("data-title")}),this.get_scroll_offset=function(e){var scroll_offset=0,is_first_link=!1,target,trigger;Number.isInteger(e)!==!0&&typeof e!="undefined"&&typeof e.target!="undefined"&&typeof e.currentTarget!="undefined"&&(target=e.target,trigger=e.currentTarget),($(".menu-hide").length||$(".menu-hide-vertical").length)&&UNCODE.bodyTop>UNCODE.wheight/2&&UNCODE.hideMenu(100);if(!$("body").hasClass("vmenu")||UNCODE.wwidth<UNCODE.mediaQuery)UNCODE.wwidth<UNCODE.mediaQuery&&$("body").hasClass("menu-mobile-transparent")?$(".menu-sticky").length&&!$(".menu-hide").length&&(scroll_offset+=$("#logo-container-mobile").outerHeight()):$(".menu-sticky .menu-container:not(.menu-hide)").length&&!$(".menu-shrink").length?scroll_offset+=$(".menu-sticky .menu-container").outerHeight():$(".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?scroll_offset+=$(".main-menu-container > div:first-child()").height()-2:$(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)',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);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"),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-mobile"),logoH,$menu=$("#masthead .menu-container"),menuH;calc_scroll-=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-sticky .menu-container:not(.menu-hide)").length&&!$(".menu-shrink").length&&!$("body").hasClass("vmenu")&&(logoH=$logo.outerHeight(),menuH=$menu.outerHeight(),calc_scroll<logoH+menuH&&(calc_scroll=0)),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,getOffset!=UNCODE.get_scroll_offset(e)&&(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;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,getOffset!=UNCODE.get_scroll_offset(event)&&(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).toggleClass("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).toggleClass("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=$("#wpadminbar");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},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")};requestTimeout(function(){highlightStill(),$(window).on("resize",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("resize 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.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)}},UNCODE.tooltip=function(){typeof jQuery.fn.tooltip!="undefined"&&$(".btn-tooltip").tooltip()},UNCODE.counters=function(){var $counters=$(".counter:not(.counter-init)");$counters.each(function(){var $counter=$(this).addClass("counter-init");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("%D <small>"+SiteParameters.days+"</small> %H <small>"+SiteParameters.hours+"</small> %M <small>"+SiteParameters.minutes+"</small> %S <small>"+SiteParameters.seconds+"</small>"))})})},UNCODE.tabs=function(){$(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(e){e.preventDefault(),$(this).tab("show"),requestTimeout(function(){window.dispatchEvent(UNCODE.boxEvent)},300)})},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),data=$target.data("bs.collapse"),option=data?"toggle":$this.data(),parent=$this.attr("data-parent"),$parent=parent&&$(parent),$title=$(this).parent();$parent&&($parent.find('[data-toggle="collapse"][data-parent="'+parent+'"]').not($this).addClass("collapsed"),$title.hasClass("active")?$title.removeClass("active"):($parent.find(".panel-title").removeClass("active"),$title[$target.hasClass("in")?"removeClass":"addClass"]("active"))),$this[$target.hasClass("in")?"addClass":"removeClass"]("collapsed")})},UNCODE.bigText=function(el){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.process_shortpixel_image=function(image){var data={action:"shortpixel_manual_optimization",image_id:image,cleanup:!0};$.get(SiteParameters.ajax_url,data)},UNCODE.menuSystem=function(){function menuMobile(){var $body=$("body"),$mobileToggleButton=$(".mobile-menu-button"),$box,$el,$el_transp,elHeight,check,animating=!1,stickyMobile=!1,menuClose=new CustomEvent("menuMobileClose"),menuOpen=new CustomEvent("menuMobileOpen");UNCODE.menuOpened=!1,$mobileToggleButton.on("click",function(event){var btn=this;if($(btn).hasClass("overlay-close"))return;event.preventDefault();if(UNCODE.wwidth<=UNCODE.mediaQuery){$box=$(this).closest(".box-container").find(".main-menu-container"),$el=$(this).closest(".box-container").find(".menu-horizontal-inner:not(.row-brand), .menu-sidebar-inner"),$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").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(){animating||($body.addClass("open-overlay-menu"),window.dispatchEvent(menuOpen),animating=!0,UNCODE.menuOpened=!0,$('body[class*="vmenu-"], body.hmenu-center').length&&$(".menu-hide, .menu-sticky, .menu-transparent").length&&($(".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(.isotope-filters)").css({position:"fixed"}),$(".vmenu-container.menu-container:not(.sticky-element):not(.isotope-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(.isotope-filters)").css({position:"fixed"})),$("body.hmenu-center").length&&$(".menu-hide, .menu-sticky").length&&$(".menu-container:not(.sticky-element):not(.isotope-filters)").css({position:"fixed",top:UNCODE.menuMobileHeight+UNCODE.bodyBorder+UNCODE.adminBarHeight+"px"}),btn.classList.add("close"),$box.addClass("open-items"),$el_transp.length&&$("body.menu-mobile-transparent").length&&$el_transp.addClass("is_mobile_open"),$box.animate({height:elHeight},600,"easeInOutCirc",function(){animating=!1,stickyMobile||$box.css("height","auto")}))},close=function(){animating||(window.dispatchEvent(menuClose),animating=!0,UNCODE.menuOpened=!1,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),$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(.isotope-filters)").css("position","relative"),$body.removeClass("open-overlay-menu")}}))};check=UNCODE.menuOpened?close():open()}}),window.addEventListener("menuMobileTrigged",function(e){$(".mobile-menu-button.close").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, .box-container .menu-sidebar-inner");$($box).length&&$($box).hasClass("open-items")&&$($box).css("height")!="auto"&&$(".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")})}function menuOffCanvas(){var menuClose=new CustomEvent("menuCanvasClose"),menuOpen=new CustomEvent("menuCanvasOpen");$(".menu-primary .menu-button-offcanvas").click(function(event){$(window).width()>UNCODE.mediaQuery&&($(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")})}function menuSmart(){var $menusmart=$('[class*="menu-smart"]'),$masthead=$("#masthead"),$hMenu=$(".menu-horizontal-inner",$masthead),$focus=$(".overlay-menu-focus"),showTimeout=50,hideTimeout=50,showTimeoutFunc,hideTimeoutFunc;$("> li.menu-item-has-children",$menusmart).hover(function(){$(this).data("hover",!0)},function(){$(this).data("hover",!1)});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(".mega-menu-inner"),showFuncCond=function($ul){return $ul.hasClass("mega-menu-inner")}):$("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(){$("body").removeClass("navbar-hover")},hideTimeout*2)})}else showFuncCond=function(){return!1};$menusmart.length>0&&($menusmart.smartmenus({subIndicators:!1,subIndicatorsPos:"append",subIndicatorsText:"",showTimeout:showTimeout,hideTimeout:hideTimeout,showFunction:function($ul,complete){clearRequestTimeout(showTimeoutFunc),$ul.fadeIn(0,"linear",function(){complete(),$ul.hasClass("vc_row")&&$ul.css({display:"table"}),$(".overlay-menu-focus").length&&$ul.hasClass("mega-menu-inner")&&$("body").addClass("open-megamenu"),$(".overlay-menu-focus").length&&showFuncCond($ul)&&$(window).width()>=UNCODE.mediaQuery&&$ul.closest(".main-menu-container").length&&$("body").addClass("navbar-hover")}).addClass("open-animated")},hideFunction:function($ul,complete){$(".overlay-menu-focus").length&&$ul.hasClass("mega-menu-inner")&&$("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")})},collapsibleShowFunction:function($ul,complete){$ul.slideDown(400,"easeInOutCirc",complete)},collapsibleHideFunction:function($ul,complete){$ul.slideUp(200,"easeInOutCirc",complete)},hideOnClick:!0}),$("body").hasClass("menu-accordion-active")&&requestTimeout(function(){$menusmart.addClass("menu-smart-init"),$menusmart.smartmenus("itemActivate",$menusmart.find(".current-menu-item > a").eq(-1))},1e3))}function menuOverlay(){$(".overlay").length&&$(".overlay").removeClass("hidden"),$(".overlay-sequential, .menu-mobile-animated").length>0&&$(".overlay-sequential .menu-smart > li, .menu-sticky .menu-container .menu-smart > li, .menu-hide.menu-container .menu-smart > li, .vmenu-container .menu-smart > li").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 menuAppend(){var $body=$("body"),$menuCont=$(".menu-container"),$cta=$(".navbar-cta"),$socials=$(".navbar-social"),$ul=$(".navbar-main ul.menu-primary-inner"),$ulCta,$ulSocials,$firstMenu=$(".main-menu-container:first-child",$menuCont),$secondMenu=$(".main-menu-container:last-child",$menuCont),$firstNav=$(".navbar-nav:first-child",$firstMenu),$secondNav=$(".navbar-nav:first-child",$secondMenu),$ulFirst=$("> ul",$firstNav),$ulSecond=$("> ul",$secondNav),setCTA,appendCTA=function(){return!0},appendSocials=function(){return!0},appendSplit=function(){return!0};if($body.hasClass("cta-not-appended"))return!1;($body.hasClass("menu-offcanvas")||$body.hasClass("menu-overlay")||$body.hasClass("hmenu-center-split"))&&$cta.length&&($ulCta=$("> ul",$cta),appendCTA=function(){UNCODE.wwidth<UNCODE.mediaQuery?$ul.after($ulCta):$cta.append($ulCta)}),appendCTA(),($body.hasClass("hmenu-center-split")||$body.hasClass("menu-overlay-center"))&&$socials.length&&($ulSocials=$("> ul",$socials),appendSocials=function(){UNCODE.wwidth<UNCODE.mediaQuery?$ul.after($ulSocials):$socials.append($ulSocials)}),appendSocials(),$body.hasClass("hmenu-center-double")&&(appendSplit=function(){UNCODE.wwidth<UNCODE.mediaQuery?($secondNav.length&&$secondNav.prepend($ulFirst),$firstMenu.hide()):($firstNav.append($ulFirst),$firstMenu.css({display:"table-cell"}))}),appendSplit(),$(window).on("resize",function(){clearRequestTimeout(setCTA),setCTA=requestTimeout(function(){appendCTA(),appendSocials(),appendSplit()},10)})}menuMobile(),menuOffCanvas(),menuSmart(),menuAppend(),menuOverlay();var setMenuOverlay;$(window).on("resize",function(){$(".overlay").length&&$(window).width()>1024&&$(".overlay").addClass("hidden"),clearRequestTimeout(setMenuOverlay),setMenuOverlay=requestTimeout(menuOverlay,150)})},UNCODE.okvideo=function(){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){var tag;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){base.insertJS("https://www.youtube.com/player_api")},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+"?background=1&api=1&title=0&byline=0&portrait=0&playbar=0&loop="+base.options.loop+"&autoplay="+(base.options.autoplay===1?1:0)+"&player_id=okplayer-"+base.options.id,jIframe=$('<iframe data-src="'+source+'" frameborder="0" id="okplayer-'+base.options.id+'" style="visibility: hidden;" class="vimeo-background" />');$(window).data("okoptions-"+base.options.id).jobject=jIframe,$("#okplayer-"+base.options.id).replaceWith(jIframe[0]),base.insertJS("//f.vimeocdn.com/js/froogaloop2.min.js",function(){vimeoPlayerReady(base.options.id)})},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()},$.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)})},$(".no-touch .uncode-video-container.video").each(function(index,el){var $this=$(this),url=$this.attr("data-video"),id=$this.attr("data-id"),cloned=$this.closest(".owl-item");(!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)})}}})}),$(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))})})},UNCODE.backgroundSelfVideos=function($ctx){typeof $ctx=="undefined"&&($ctx=$("body"));var backgroundSelfVideosInit=function($ctx){$(".background-video-shortcode",$ctx).each(function(index,el){if(SiteParameters.block_mobile_videos===!0)return!1;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));if(typeof MediaElement=="function")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){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(){}})})};backgroundSelfVideosInit($ctx),$("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;backgroundSelfVideosInit($el)})},UNCODE.is_scrolling=!1,UNCODE.disableHoverScroll=function(){if(!UNCODE.isMobile&&!UNCODE.isFullPage){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=[],$filterItems=[],$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,items){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",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),isotopeId=$isotope.closest(".isotope-system").attr("id"),filters=new Array,$loading_button=$isotope.closest(".isotope-system").find(".loading-button"),$infinite_button=$isotope.closest(".isotope-system").find(".loadmore-button"),$numPages=$("a",$infinite_button).data("pages"),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",$isotope).remove(),$.each($(newElements),function(index,val){$(val).addClass("tmb-iso"),$(val).is("li")&&filters.push($(val)[0])}),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))}),$isotope.isotope("reloadItems",onLayout($isotope,newElements.length));if(typeof UNCODE.lightbox!="undefined"){var getLightbox=UNCODE.lightboxArray["ilightbox_"+isotopeId];typeof getLightbox=="object"&&getLightbox.refresh()}typeof twttr!="undefined"&&twttr.widgets.load(isotopeContainersArray[i])});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")})}}}},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),$(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.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();var filterContainer=$(this).closest(".isotope-system").find(".isotope-filters"),container=$(this).closest(".isotope-system"),calc_scroll=container.closest(".uncol").offset().top,getFilterSpanPadding=filterContainer.hasClass("with-bg")?0:$(".filter-show-all span",filterContainer).css("padding-bottom"),getFilterPadding=filterContainer.hasClass("with-bg")?0:$(".filter-show-all span a",filterContainer).css("padding-bottom"),filterOffset=getFilterSpanPadding!=undefined&&getFilterSpanPadding!=0?parseInt(getFilterSpanPadding.replace("px","")):0;filterOffset+=getFilterPadding!=undefined&&getFilterPadding!=0?parseInt(getFilterPadding.replace("px","")):0,calc_scroll-=filterOffset-1,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;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)),evt.preventDefault()}),$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=[];if(!$filter.hasClass("active")){if(filterContainer.hasClass("filter-scroll")){var calc_scroll=container.closest(".uncol").offset().top,getFilterSpanPadding=filterContainer.hasClass("with-bg")?0:$(".filter-show-all span",filterContainer).css("padding-bottom"),getFilterPadding=filterContainer.hasClass("with-bg")?0:$(".filter-show-all span a",filterContainer).css("padding-bottom"),filterOffset=getFilterSpanPadding!=undefined&&getFilterSpanPadding!=0?parseInt(getFilterSpanPadding.replace("px","")):0;filterOffset+=getFilterPadding!=undefined&&getFilterPadding!=0?parseInt(getFilterPadding.replace("px","")):0,calc_scroll-=filterOffset-1,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;scrollSpeed<1e3&&SiteParameters.constant_scroll=="on"&&(scrollSpeed=1e3),UNCODE.isFullPage||(scrollSpeed==0?($("html, body").scrollTop(calc_scroll),UNCODE.scrolling=!1):$("html, body").animate({scrollTop:calc_scroll},{easing:"easeInOutQuad",duration:scrollSpeed,complete:function(){UNCODE.scrolling=!1}}))}filterValue!==undefined?($.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"),filterable}}),$(".t-inside.zoom-reverse",container).removeClass("zoom-reverse")},delay),container.isotope("once","arrangeComplete",function(){if(typeof UNCODE.lightbox!="undefined"){var getLightbox=UNCODE.lightboxArray[container.data("lbox")];typeof getLightbox=="object"&&getLightbox.refresh()}transitionDuration==0&&requestTimeout(function(){boxAnimation(filterItems,0,!1,container)},100),requestTimeout(function(){Waypoint.refreshAll()},2e3)})):($.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("isotope-loading"),loadIsotope($filter))}evt.preventDefault()}),$(window).on("popstate",function(e){if(e.originalEvent.state===null)return;var params={};if(location.search){var parts=location.search.substring(1).split("&");for(var i=0;i<parts.length;i++){var nv=parts[i].split("=");if(!nv[0])continue;params[nv[0]]=nv[1]||!0}}params.id===undefined?$.each($(".isotope-system"),function(index,val){loadIsotope($(val))}):loadIsotope($("#"+params.id))});var loadIsotope=function($href){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")&&history.pushState({myIsotope:!0},document.title,href),$.ajax({url:href}).done(function(data){var $resultItems=$(data).find("#"+isotopeId+" .isotope-layout").html(),$resultPagination=$(data).find("#"+isotopeId+" .pagination"),$resultCount=$(data).find("#"+isotopeId+" .woocommerce-result-count");isotopeWrapper.addClass("isotope-reloaded"),requestTimeout(function(){isotopeWrapper.removeClass("isotope-loading"),isotopeWrapper.removeClass("isotope-reloaded")},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"){var getLightbox=UNCODE.lightboxArray["ilightbox_"+isotopeContainer.closest(".isotope-system").attr("id")];typeof getLightbox=="object"&&getLightbox.refresh()}}},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(){UNCODE.lightboxArray={},requestTimeout(function(){var groupsArr={};$("[data-lbox^=ilightbox]: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)'),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)',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.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,diffItem=Math.abs(itemIndex-tempIndex)-1;itemIndex>tempIndex&&thiis.data("tempIndex",itemIndex),isNaN(delayAttr)&&(delayAttr=100);if(stagePadding){var objTimeout=requestTimeout(function(){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.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-visual",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){$(".owl-dots, .owl-prev, .owl-next",slider).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,currentIndex,$owlInsideEqual=[];$owlSelector.each(function(){function manageFluidCarouseHeight(){clearRequestTimeout(setFluidResize),setFluidResize=requestTimeout(function(){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];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 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&&$elSelector.find('.owl-item[data-index="'+itendIndex+'"] .counter').each(function(){var $counter=$(this);$counter.addClass("started").counterUp({delay:10,time:1500})})}$elSelector.find(".owl-item.new-indexed").removeClass("new-indexed")},200);tempTimeStamp=event.timeStamp};$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")&&setItemsHeight(thiis),!UNCODE.isMobile&&!$elSelector.closest(".header-wrapper").length&&navHover($elSelector.parent()),thiis.closest(".unequal, .unexpand").length&&UNCODE.setRowHeight(rowParent[0],!0),SiteParameters.dynamic_srcset_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.trigger("stop.autoplay.owl");if(UNCODE.isUnmodalOpen&&!thiis.closest("#unmodal-content"))return;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","false"))},100)}})}),thiis.closest(".isotope-system").length||requestTimeout(function(){animate_thumb($(".t-inside",el),event)},400);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];$(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.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.trigger("stop.owl.autoplay"),thiis.data("stopped","true")}).on("menuClose",function(){}),$(window).on("menuClose",function(){thiis.data("autoplay")&&(thiis.trigger("play.owl.autoplay"),thiis.data("stopped","false"))}),setIndexActive(event,!0)}),$elSelector.on("resized.owl.carousel",function(event){var thiis=$(event.currentTarget);thiis.hasClass("owl-height-equal")&&setItemsHeight(thiis),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")})});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)}),$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").length?!1:!0,autoHeight:$(this).hasClass("owl-height-equal")?!1:values.autoheight,rtl:$("body").hasClass("rtl")?!0:!1,fluidSpeed:!0,navSpeed:values.navspeed,dotsSpeed:values.navspeed/values.items,navClass:["owl-prev"+values.navskin,"owl-next"+values.navskin],navText:['<div class="owl-nav-container btn-default btn-hover-nobg"><i class="fa fa-fw fa-angle-left"></i></div>','<div class="owl-nav-container btn-default btn-hover-nobg"><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=$f(iframe[0]),player.api("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=$f(iframe[0]),player.api("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(){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");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")||(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)}}),window.waypoint_animation=function(ev){$.each($(".animate_when_almost_visible:not(.start_animation):not(.t-inside):not(.drop-image-separator), .tmb-media .animate_when_almost_visible:not(.start_animation), .animate_when_almost_visible.has-rotating-text"),function(index,val){if($(val).hasClass("el-text-split"))return!0;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),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;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),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(),$(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)},UNCODE.tapHover=function(){var $el=$("html.touch .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' 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);$this.on("click",function(evt){$("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)&&(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)").length&&$(window).width()>UNCODE.mediaQuery?$(".menu-sticky .menu-container:not(.menu-hide)").outerHeight():0;return calculateOffset};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;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.animate({scrollTop:delta>0?scrollTo-.1:scrollTo},scrollSpeed,"easeInOutQuad",function(){requestTimeout(function(){UNCODE.scrolling=!1,getOffset!=UNCODE.get_scroll_offset(index)&&scrollBody(index)},100)})};init_onepage()},UNCODE.stickyElements=function(){var isMobile_wide=UNCODE.isMobile&&UNCODE.wwidth<1024;if(!isMobile_wide){var $pageHeader=$("#page-header"),$headerRow=$(".vc_row",$pageHeader),startSticky=!1;$headerRow.hasClass("sticky-element")&&($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;return sideOffset+=UNCODE.bodyBorder,UNCODE.adminBarHeight>0&&(sideOffset+=UNCODE.adminBarHeight),$(".menu-sticky .menu-container:not(.menu-hide)").length&&!$(".menu-wrapper .menu-desktop-transparent").length&&($(".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(){$.each($(".sticky-element"),function(index,element){$(element).stick_in_parent({sticky_class:"is_stucked",offset_top:calculateOffset(element),bottoming:!0,inner_scrolling:SiteParameters.sticky_elements==="on"})})};requestTimeout(function(){$(".sticky-element").length&&($(window).width()>UNCODE.mediaQuery&&(initStickyElement(),startSticky===!0&&$("#page-header").trigger("sticky_kit:recalc")),$(window).on("resize",function(event){$(window).width()>UNCODE.mediaQuery?initStickyElement():$(".sticky-element").trigger("sticky_kit:detach")}))},1e3);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")})})}},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];if(!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},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").twentytwenty(),$(".twentytwenty-container img").on("async-done",function(){$(this).closest(".twentytwenty-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};if($(".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)})}},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),$(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;if(!$filter.hasClass("active")){if(filterContainer.hasClass("filter-scroll")){var calc_scroll=container.closest(".uncol").offset().top,getFilterSpanPadding=filterContainer.hasClass("with-bg")?0:$(".filter-show-all span",filterContainer).css("padding-bottom"),getFilterPadding=filterContainer.hasClass("with-bg")?0:$(".filter-show-all span a",filterContainer).css("padding-bottom"),filterOffset=getFilterSpanPadding!=undefined&&getFilterSpanPadding!=0?parseInt(getFilterSpanPadding.replace("px","")):0;filterOffset+=getFilterPadding!=undefined&&getFilterPadding!=0?parseInt(getFilterPadding.replace("px","")):0,calc_scroll-=filterOffset-1,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;scrollSpeed<1e3&&SiteParameters.constant_scroll=="on"&&(scrollSpeed=1e3),UNCODE.isFullPage||(scrollSpeed==0?($("html, body").scrollTop(calc_scroll),UNCODE.scrolling=!1):$("html, body").animate({scrollTop:calc_scroll},{easing:"easeInOutQuad",duration:scrollSpeed,complete:function(){UNCODE.scrolling=!1}}))}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)),$(".t-inside.zoom-reverse",container).removeClass("zoom-reverse");if(typeof UNCODE.lightbox!="undefined"){var getLightbox=UNCODE.lightboxArray[container.data("lbox")];typeof getLightbox=="object"&&getLightbox.refresh()}transitionDuration==0&&requestTimeout(function(){boxAnimation(filterItems,0,!1,container)},100),requestTimeout(function(){Waypoint.refreshAll()},2e3)},delay)):($.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"))}),container.parent().addClass("justified-loading"))}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.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,index=e.currentTarget.closest(".uncode-tabs");$('.uncode-tabs a[href="'+hash+'"][data-tab-history]').length&&($('a[href="'+hash+'"][data-tab-history]').click(),scrollBody(index))});var scrollBody=function(index){var getSection=$('a[href="'+index+'"][data-tab-history]'),scrollTo;getSection.length||(getSection=$('div[data-parent="'+index+'"]'),getSection.attr("data-target")=="row"&&(getSection=getSection.closest(".vc_row")));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-27,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"),$mainWrapper=$(".main-wrapper")[0],$container=$(".main-container .post-content"),$mobileMenuWrapper=$(".menu-wrapper"),mobMenuPos,$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,menuHeight=$masthead.hasClass("menu-transparent")||menuHidden?0:UNCODE.menuHeight,footerAdd=$("body").hasClass("hmenu")&&$("body").hasClass("uncode-fp-menu-shrink")&&!$masthead.hasClass("menu-transparent")?-18:0,$footer=$("#colophon").addClass("uncode-scroll-lock fp-auto-height"),$scrollTop=$(".scroll-top"),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":$("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")}),!UNCODE.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' 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' 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=$f(iframe[0]),player.api("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)):hash[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*="#"]').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,animInDelay=effect=="scaleDown"?0:0,isFooter=!1,isFooterNext=!1,isHeader=!1,isHeaderNext=!1,containerOff=$container.offset().top,footerH=$footer.outerHeight(),timeout,dataHash=$nextSlide.attr("data-anchor"),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=$f(iframe[0]),player.api("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"),player=$f(iframe[0]),player.api("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:/.*/}},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"),rect=$maincontainer.getBoundingClientRect(),rect2=$boxcontainer.getBoundingClientRect();$body.style.height=UNCODE.wheight+"px",theres_footer&&($footer.style.top=(rect.height||rect2.height)+"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.filters=function(){var $isotopes=$(".isotope-system");$isotopes.each(function(index,val){var $isotope=$(this),$widget_trgr=$(".uncode-woocommerce-toggle-widgetized-cb__link",$isotope),$widgets=$(".widgetized-cb-wrapper",$isotope),$sorting_trgr=$(".uncode-woocommerce-sorting__link",$isotope),$sorting_dd=$(".uncode-woocommerce-sorting-dropdown",$isotope),$cats_trigger=$(".menu-smart--filter-cats_mobile-toggle-trigger",$isotope),$cats_filters=$(".menu-smart--filter-cats-mobile-dropdown",$isotope);if($isotope.hasClass("isotope-processed"))return;$cats_trigger.on("click",function(e){$("html").hasClass("screen-sm")||(e.preventDefault(),$widgets.slideUp(400,"easeInOutCirc"))}),$(".filters-toggle-trigger",$isotope).on("click",function(e){e.preventDefault();var $filters=$(".isotope-filters .menu-horizontal",$isotope);$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")}),$isotope.addClass("isotope-processed")})},UNCODE.widgets=function(){var widget_titles=$(".widget-mobile-collapse").find(".widget-title"),widgets=widget_titles.closest(".widget");widgets.each(function(){var _this=$(this),content=_this.children().not(".widget-title");if(_this.hasClass("widget-mobile-done"))return;content.wrapAll('<div class="widget-collapse-content"></div> '),_this.removeClass("collapse-init"),_this.addClass("widget-mobile-done")});var widgets_without_title=$(".collapse-init");widgets_without_title.removeClass("collapse-init"),widget_titles.on("click",function(){var _this=$(this),content=_this.closest(".widget").find(".widget-collapse-content"),icon_content=window.getComputedStyle(_this[0],":after").getPropertyValue("content");return icon_content==="none"||!icon_content?!1:(_this.toggleClass("open"),content.slideToggle(400,"easeInOutCirc"),!1)})},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"),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)}))},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.waypoint(function(dir){if(dir!=="down")return;bgChange($col,bgColor,skin,tmbskin)},{offset:"50%"}),$row.waypoint(function(dir){if(dir!=="up")return;bgChange($col,bgColor,skin,tmbskin)},{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;if(scrolled<100)var $row=$first;else if(scrolled+UNCODE.wheight>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),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"),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;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>docH&&(speed=-2),gsap.killTweensOf($skew),gsap.to($skew,{duration:.2,skewY:speed*maxSpeed+"deg",ease:Power0.easeNone,transformOrigin:"center"})),stopSkewing=requestTimeout(function(){gsap.killTweensOf($skew),gsap.to($skew,{duration:.5,skewY:"0deg",ease:Power0.easeNone,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 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),$rotate[0].style.transform="rotate("+deg+"deg)",requestAnimationFrame(function(){checkScroll($rotate)})};checkScroll($rotate)})};$(window).on("load",loadRotateIt)};var marqueeAttempts=0,marqueeTO;UNCODE.textMarquee=function($titles){typeof $titles=="undefined"&&($titles=$(".un-text-marquee"));if(!$titles.length)return;$titles.each(function(){var $title=$(this),$span=$("> span",$title),txt,first=!0,newW=UNCODE.wwidth;$(".marquee-clone-wrap",$title).remove(),txt=$title.text(),$(".marquee-original-core",$span).length||($span=$("> span",$title).wrapInner('<span class="marquee-original-core" />').addClass("marquee-original"));var checkResize,spanW,$prepended=$('<span class="marquee-clone-wrap wrap-prepended" />'),$appended=$('<span class="marquee-clone-wrap wrap-appended" />'),clearSpeed,speed=10;$span.prepend($prepended),$span.append($appended);var continuousTextMarquee=function(){var bound=$title.css({transform:"none",opacity:0}).offset(),xStrt=first||$title.hasClass("un-marquee-infinite")?0:UNCODE.wwidth-bound.left,xEnd=$title.hasClass("un-marquee-infinite")?spanW:spanW+bound.left,xSpeed=$title.hasClass("un-marquee-infinite")?spanW+bound.left:xStrt+(UNCODE.wwidth+bound.left),direction=$title.hasClass("un-marquee-opposite")?1:-1,marqueeTL=new TimelineMax({paused:!0,reversed:!0}),inview=new Waypoint.Inview({element:$title[0],enter:function(direction){marqueeTL.play()},exited:function(direction){marqueeTL.pause()}});marqueeTL.fromTo($title,{opacity:1,x:xStrt},{duration:xSpeed/UNCODE.wwidth*speed,x:xEnd*direction,onComplete:function(){first=!1,continuousTextMarquee()},ease:Linear.easeNone})},runTextMarquee=function(){var time=Date.now(),textMarqueeScroll=function(){var bound=bound=$title[0].getBoundingClientRect(),wait=100,direction=$title.hasClass("un-marquee-scroll-opposite")?-1:1;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++,UNCODE.textMarquee()},100)),time+wait-Date.now()<0&&(bound.top>bound.height*-4&&bound.top-bound.height<UNCODE.wheight*2&&(gsap.killTweensOf($title),gsap.to($title,{duration:.5,x:(UNCODE.wheight*.35-bound.top)*.5*direction})),time=Date.now())};textMarqueeScroll(),$(window).on("load scroll",function(){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;if($_title.hasClass("un-marquee-infinite"))for(var i=0;i<part;i++)$prepended[0].textContent+=cntnt+" ",$appended[0].textContent+=cntnt+" ";if($("body").hasClass("compose-mode"))return;($_title.hasClass("un-marquee")||$_title.hasClass("un-marquee-opposite"))&&continuousTextMarquee(),($_title.hasClass("un-marquee-scroll")||$_title.hasClass("un-marquee-scroll-opposite"))&&runTextMarquee()},marqueResize=function(){clearRequestTimeout(checkResize),checkResize=requestTimeout(function(){newW!==UNCODE.wwidth&&(gsap.killTweensOf($title),UNCODE.textMarquee(),newW=UNCODE.wwidth)},1e3)};$(window).off("resize",marqueResize).on("resize",marqueResize),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);UNCODE.textMarquee($_titles)})})},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")},UNCODE.magicCursor=function(){function delayChangeCursor(cursorType,delayt_time){clearRequestTimeout(setTime),setTime=requestTimeout(function(){$customCursor.attr("data-cursor",cursorType),$customPilot.length&&$customPilot.attr("data-cursor",cursorType),currentCursor=cursorType},delayt_time)}function changeCursor($wrap){$wrap=typeof $wrap=="undefined"?$("body"):$wrap;var href=SiteParameters.custom_cursor_selector!=""?SiteParameters.custom_cursor_selector:"[href]",$href=$wrap.find(href),cursorType,setTime,set_delay;$href.hover(function(e){var $this=$(this),data_cursor=$this.closest("[data-cursor]").attr("data-cursor")||$this.attr("data-cursor"),is_frontend_editor=$this.closest(".vc_controls").length,hasSrcOrClck=$("[src]",$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",delayChangeCursor(cursorType,0)},function(){delayChangeCursor("auto",150)}),$(window).on("disable-hover",function(event){document.addEventListener("mousemove",function(e){mouseEvent=e}),delayChangeCursor("auto",0)}),$(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"),$postLists=$(".uncode-post-titles"),currentCursor="auto",setTime,isScrolling,mouseEvent;$(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 $el=$("img:not(.avatar), .t-background-cover, .fluid-object, .dummy.secondary-dummy-image, .t-secondary-background-cover, .background-inner, .header-bg",this),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);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 $el=$("img:not(.avatar), .t-background-cover, .fluid-object, .dummy.secondary-dummy-image, .t-secondary-background-cover, .background-inner, .header-bg",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))),$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=$f(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.api("seekTo",timeV),start?playerV.api("play"):playerV.api("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),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;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(.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 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)}}),$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),$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();$drop_move.css({left:bound.x*-1,top:bound.y*-1})}},200)}));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">';for(var c=0;c<charachters.length;c++)worsSpan+='<span class="split-char">'+charachters[c]+"</span>";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}),$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)}).on("menuCanvasClose",function(){$(".vertical-text--fixed").fadeIn(500)});var hideOnBottomVerticalTexts=$(".vertical-text--vis-hide-bottom"),showOnTopVerticalTexts=$(".vertical-text--vis-show-top");(hideOnBottomVerticalTexts.length>0||showOnTopVerticalTexts.length>0)&&window.addEventListener("scroll",function(e){var totalPageHeight=document.body.scrollHeight,scrollPoint=window.scrollY+window.innerHeight;window.scrollY>0?showOnTopVerticalTexts.fadeOut():showOnTopVerticalTexts.fadeIn(),scrollPoint>=totalPageHeight?hideOnBottomVerticalTexts.fadeOut():hideOnBottomVerticalTexts.fadeIn()},!1)},UNCODE.revslider=function(){$(window).on("load",function(){$(".rev_slider_wrapper, rs-module-wrap").each(function(){var $this=jQuery(this),id_array=$this.attr("id").split("_"),id=id_array[2];id!=undefined&&id!=""&&($.globalEval("revapi"+id+'.bind("revolution.slide.onloaded",function (e, data) { if (jQuery(e.currentTarget).closest(".header-revslider").length) { var style = jQuery(e.currentTarget).find("li, rs-slide").eq(0).attr("data-skin"), scrolltop = jQuery(document).scrollTop(); if (style != undefined) UNCODE.switchColorsMenu(scrolltop, style);}})'),$.globalEval("revapi"+id+'.bind("revolution.slide.onchange",function (e,data) { if (jQuery(e.currentTarget).closest(".header-revslider").length) { var style = jQuery(e.currentTarget).find("li, rs-slide").eq(data.slideIndex - 1).attr("data-skin"), scrolltop = jQuery(document).scrollTop(); if (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)})})},UNCODE.init=function(){var wfl_check=!1,wfl_request,waypoint_request;UNCODE.preventDoubleTransition(),UNCODE.utils(),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(),typeof UNCODE.backgroundSelfVideos!="undefined"&&UNCODE.backgroundSelfVideos(),UNCODE.tapHover(),typeof UNCODE.isotopeLayout!="undefined"&&UNCODE.isotopeLayout(),typeof UNCODE.justifiedGallery!="undefined"&&UNCODE.justifiedGallery(),typeof UNCODE.lightbox!="undefined"&&UNCODE.lightbox(),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.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.verticalText!="undefined"&&UNCODE.verticalText(),typeof UNCODE.revslider!="undefined"&&UNCODE.revslider(),typeof UNCODE.layerslider!="undefined"&&UNCODE.layerslider(),$(window).on("load",function(){clearRequestTimeout(waypoint_request),waypoint_request=requestTimeout(function(){Waypoint.refreshAll()},1e3),typeof UNCODE.parallax!="undefined"&&UNCODE.parallax()})},SiteParameters.is_frontend_editor||UNCODE.init()})(jQuery)
| ver. 1.4 |
Github
|
.
| PHP 8.3.23 | Генерация страницы: 0.04 |
proxy
|
phpinfo
|
Настройка