!function(I,H){"use strict";var h,E=false,z,g,u,f,W,B,s,D,V,t=1,m=0,v=0,C=false,L=I("html"),N=I("body"),$=N.hasClass("one-page-site"),R=N.hasClass("output-bg-full-img"),q=I(".pt-header"),F=N.find(".ajax-content"),X=I(".main-content"),K='<div class="pt-mouse-scroll-root"><div class="list-scroller"><div class="list-scroller-target"></div></div></div>';var l=H.ptMobileMaxWidth||1024;if(!!H.ActiveXObject||"ActiveXObject"in H){N.addClass("ie");C=true;if(navigator.userAgent.indexOf("MSIE 10.")>-1){N.addClass("ie-10")}}var se=function(){var e=function(){this._caches=[];this._maxSize=30};var t=e.prototype;t.getData=function(e){var t,s,i=this._caches.length;for(t=0;t<i;t++){s=this._caches[t];if(s&&s.ckey===e){return s.data}}return null};t.setData=function(e,t){var s,i,a=this._caches.length;for(s=0;s<a;s++){i=this._caches[s];if(i&&i.ckey===e){i.data=t;return t}}this._caches.push({ckey:e,data:t});if(this._caches.length>this._maxSize){this._caches.shift()}return t};return new e}.call(this);q.find(".logo-svg > img").each(function(){var t=function(e){if(e.naturalWidth&&e.naturalHeight){I(this).attr({width:e.naturalWidth,height:e.naturalHeight});return{w:e.naturalWidth,h:e.naturalHeight}}return null};var s=this;if(s.complete){t(s)}else{s.onload=function(){var e=t(s);if(e){v=e.w;m=e.h}s.onload=null;ne()}}});if(q.find(".logo img").attr("width")&&q.find(".logo img").attr("height")){m=parseInt(q.find(".logo img").attr("height"));v=parseInt(q.find(".logo img").attr("width"))}function n(){var e=I("body.attachment .text-area > .attachment");if(e.length>0){var t=e.find("img");if(t.length>0){var s;var i=t.attr("srcset");if(i){var a=i.split(",").map(function(e){if(!e){e=""}return e.trim().split(" ")});a.sort(function(e,t){var s=parseFloat(e[1]);var i=parseFloat(t[1]);if(isNaN(s)||isNaN(i)){return 0}return s-i});var l=a.pop();if(Array.isArray(l)){s=l[0]}}if(!s){s=t.attr("src")}t.data("src",s);e.ptImageViewer({itemSelector:"img",fadeTime:600,loop:true,openClass:"iv-for-widgets",skinStyle:"dark"});t.removeAttr("sizes");t.removeAttr("srcset");var n=new Image;I(n).on("load",function(){t.attr("width",this.naturalWidth);t.attr("height",this.naturalHeight)});n.src=s;t.attr("src",s)}}}n();var J=(N.css("direction")||"").toLowerCase()==="rtl";var G=H.__ptDragTweenTime||600;var Q=H.__ptDragEase||"quartOut";var r=H.safari!==undefined;if(r){N.addClass("is-safari")}var U=/Mobi|Tablet|iPad|iPhone|Android/i.test(navigator.userAgent)&&!C;if(U){N.addClass("real-mobile")}var Y=false;if("ontouchstart"in document.documentElement){N.addClass("pt-touch-on");Y=true}else{N.addClass("pt-touch-off");Y=false}var Z=true;if(Y&&!U||N.hasClass("h-drag-enabled")&&!U){Z=false}H.onpageshow=function(e){if(e&&e.persisted){if(N.hasClass("remove-page-loading")){I(".site-loader").addClass("hide")}else{I(".site-loader").addClass("load").fadeOut(200,function(){I(".site-loader").addClass("hide")})}I(H).trigger("resize",[true])}};function ee(){I(".s-btn-prev").on("click",function(){I(this).closest(".pt-slider-root").ptSwipeCall("prev");N.addClass("forPrev");I(this).closest(".pt-slider-root").find(".roll-target li.selected").trigger("click");setTimeout(function(){N.removeClass("forPrev forNext")},900)});I(".s-btn-next").on("click",function(){I(this).closest(".pt-slider-root").ptSwipeCall("next");N.addClass("forNext");I(this).closest(".pt-slider-root").find(".roll-target li.selected").trigger("click");setTimeout(function(){N.removeClass("forPrev forNext")},900)});if(!U){var s;I(".sc-slider").on("mousedown",function(e){I(this).addClass("holding");s=e.originalEvent.x});I(".sc-slider").on("mouseup",function(e){I(this).removeClass("holding");var t=e.originalEvent.x;if(s-t>200){I(this).closest(".pt-slider-root").ptSwipeCall("next")}if(s-t<-200){I(this).closest(".pt-slider-root").ptSwipeCall("prev")}})}}var ie=function(){I(".blog-list .item .pt-category:not(.edited),.single-main-intro .pt-category:not(.edited)").each(function(){I(this).addClass("edited");if(I("a",this).length>5){I(this).addClass("overload").wrapInner('<div class="cate-over-content"></div>');I(this).prepend('<i class="btn call-cate"></i>');I(this).prepend(I(".cate-over-content a",this).eq(0).clone()).prepend(I(".cate-over-content i",this).eq(0));I(".cate-over-content",this).append('<i class="btn close-cate"></i>')}});I(".overload i.btn").on("click",function(){if(I(this).hasClass("call-cate")){I(this).closest(".overload").addClass("show")}else{I(this).closest(".overload").removeClass("show")}});I(".close-cate").on("click",function(){I(this).closest(".overload").removeClass("show")})};var ae=function(){var e=I('.pt-h:not(.font-type-tall),.widget-title:not(.font-type-tall),.title:not(.font-type-tall),.sc-slider:not(.font-type-tall),.sc-textlist li[class*="large"]:not(.font-type-tall)');e.each(function(){var e=I(this).css("font-family");if(e.indexOf("Anton,")>-1||e.indexOf("steelfish-Local")>-1||e.substring(0,4)=="ntf-"||e.indexOf("voga-Local")>-1||e.indexOf("built-Local")>-1||N.hasClass("pt-font-tall")){I(this).addClass("font-type-tall")}})};var te=function(t){var e=I(t).find(".item:not(.show)");if(e.length>0){var s=[];e.each(function(){s.push({target:this,index:parseInt(I(this).data("index"))})});s.sort(function(e,t){return e.index-t.index});var i=I(s[0].target);var a=i.find(".bg-full");var l;if(i.index()==0){i.addClass("first-item")}if(!a.hasClass("editing")&&!I(t).hasClass("jump")){if(a.data("bg")){l=a.data("bg");a.addClass("editing").css("backgroundImage","url("+l+")").imagesLoaded({background:R?".img-bg-full":true},function(e){i.addClass("show").find(".pic-loader").remove();a.removeAttr("data-bg").addClass("show").removeClass("editing");te(t)})}else{i.addClass("show no-bg").find(".pic-loader").remove();a.removeAttr("data-bg").addClass("show").removeClass("editing");te(t)}}if(i.index()==0){setTimeout(function(){if(!I(t).find(".first-item").hasClass("show")){I(t).addClass("jump");I(t).find(".item:not(.first-item)").each(function(){var t=I(this);var s=t.find(".bg-full");var e;if(s.data("bg")&&!s.hasClass("editing")){e=s.data("bg");s.css("backgroundImage","url("+e+")").imagesLoaded({background:R?".img-bg-full":true},function(e){t.addClass("show").find(".pic-loader").remove();s.removeAttr("data-bg").addClass("show")})}})}},8e3)}}else{if(I(t).data("autoplay")==1&&I(t).find(".item.current.has-video:not(.autoplay):not(.pause),.item.current.autoplay:not(.pause)").length==0){I(t).ptSwipeCall("setAutoplay",true)}if(I(t).hasClass("single-header")){I(t).ptSwipeCall("setAutoplay",true)}}};I.fn.extend({PtBgConvert:function(e){this.each(function(){if(I(this).data("bg")&&!I(this).hasClass("editing")){var e=I(this).data("bg");I(this).addClass("editing").css("backgroundImage","url("+e+")").imagesLoaded({background:R?".img-bg-full":true},function(e){var t=e.elements;var s;if(I(t).closest(".bg-full").parent().find(".pic-loader").length>0){s=I(t).closest(".bg-full").parent()}else{s=I(t).closest(".img")}I(t).closest(".bg-full").removeAttr("data-bg").addClass("show").removeClass("editing").siblings(".clone-bg").addClass("show");s.find(".pic-loader").remove()})}});return this}});I.fn.extend({PtHoverBgConvert:function(e){this.each(function(){if(I(this).data("bg")&&!I(this).hasClass("editing")){var e=I(this).data("bg");I(this).addClass("editing").css("backgroundImage","url("+e+")").imagesLoaded({background:R?".img-bg-full":true},function(e){var t=e.elements;var s=I(t).closest(".hover-bg").parent();I(t).closest(".hover-bg").removeAttr("data-bg").addClass("show").removeClass("editing");s.addClass("hover-bg-done")})}});return this}});I.fn.extend({PtImgLoaded:function(e){this.each(function(){if(I(this).attr("src")&&!I(this).hasClass("inited")){I(this).addClass("inited").imagesLoaded(function(e){var t=e.elements;I(t).closest(".img").addClass("img-loaded").find(".pic-loader").remove()})}});return this}});var le=function(){var e=I(".pic-style-02.row-two .pic-main:not(.retina-inited),"+".pic-style-02.row-three .pic-main:not(.retina-inited),"+".sc-gallery.row-three-auto:not(.retina-inited),"+".sc-gallery.row-two-auto:not(.retina-inited),"+".sc-photo-wall:not(.retina-inited):not(.pt-autoplay-on)");if(E){e.each(function(){I(this).find(".bg-full[data-retina-bg]").not(".clone-bg,.clone").each(function(){var e=I(this);var t=e.data("retina-bg");if(t){e.after('<div class="bg-full clone for-retina" data-bg="'+t+'"></div>').removeAttr("data-retina-bg");e.siblings(".bg-full.clone").PtBgConvert();e.parent().addClass("retina-img-wrap")}})});e.addClass("retina-inited")}};var o=function(){if(H.innerWidth<l||U){N.addClass("m-mode").removeClass("pc-mode")}else{N.addClass("pc-mode").removeClass("m-mode")}};o();I(H).on("resize",o);var i=function(){L.addClass("win-v");W=true;E=true;u=0;s=60;q.removeAttr("style");I(".pt-header.menu-style-03:not(.style-edited-03)").addClass("menu-style-01 style-edited-03").removeClass("menu-style-03");I(".pt-header.menu-style-02:not(.style-edited-02)").addClass("menu-style-01 style-edited-02").removeClass("menu-style-02");N.removeClass("for-menu-style-02")};var a=function(){L.removeClass("win-v");W=false;E=false;s=0;I(".pt-header.menu-style-01.style-edited-03").removeClass("menu-style-01 style-edited-03").addClass("menu-style-03");I(".pt-header.menu-style-01.style-edited-02").removeClass("menu-style-01 style-edited-02").addClass("menu-style-02");if(q.hasClass("menu-style-02")){N.addClass("for-menu-style-02")}var e=0;if(q.hasClass("menu-style-03")){if(g>1024){e=100}else{e=80}q.css("width",e)}else{var t=0;q.find(".menu-wrap .depth-1 > a").each(function(){var e=I(this).outerWidth();if(e>t){t=e}});if(q.hasClass("menu-style-02")){e=0}else{e=t+8;q.css("width",e+2)}}u=H.__menuBarWidth!==undefined?H.__menuBarWidth:e};q.find(".main-menu > ul > li").addClass("depth-1");q.find(".main-menu li.depth-1 > .sub-menu > li").addClass("depth-2");if(N.hasClass("admin-bar")){if(H.innerWidth>780){h=32}else{h=46}}else{h=0}z=I(H).height()-h;g=H.innerWidth;if(N.hasClass("menu-bg-transparent")&&q.hasClass("text-white")&&q.hasClass("menu-style-02")){N.addClass("menu-bg-transparent-on");t=0}if(z<480){if(g>z){I(".pt-header.menu-style-01:not(.style-edited-01):not(.style-edited-02):not(.style-edited-02)").addClass("menu-style-03 style-edited-01").removeClass("menu-style-01")}else{I(".pt-header.menu-style-03.style-edited-01").removeClass("menu-style-03 style-edited-01").addClass("menu-style-01")}}else{I(".pt-header.menu-style-03.style-edited-01").removeClass("menu-style-03 style-edited-01").addClass("menu-style-01")}if(!H.ptKeepHorizontal){if(g<=z||g<475){i()}else{a()}}else{if(N.hasClass("m-mode")){i()}else{a()}}if(J){I(".pt-scroll-tips .wrap").css("right",u+60)}else{I(".pt-scroll-tips .wrap").css("left",u+60)}if(q.hasClass("menu-style-02")){if(q.hasClass("menu-height-02")){var e=Math.floor(z*.1);if(e<=60){e=60}f=e;q.height(e);I(".site-root").css("padding-top",e)}else{f=q.height()}}else{f=0}B=z-f*t;D=g-u;H.addEventListener("orientationchange",function(){N.append('<div class="mobile-hack-layer"></div>');I(".mobile-hack-layer").fadeIn(100);setTimeout(function(){I(H).trigger("resize",[true]);I(".mobile-hack-layer").fadeOut(300,function(){I(".mobile-hack-layer").remove()})},500)},false);var d=function(){if(N.hasClass("admin-bar")){if(H.innerWidth>780){h=32}else{h=46}}else{h=0}z=I(H).height()-h;g=H.innerWidth;if(z<480){if(g>z){I(".pt-header.menu-style-01:not(.style-edited-01):not(.style-edited-02):not(.style-edited-02)").addClass("menu-style-03 style-edited-01").removeClass("menu-style-01")}else{I(".pt-header.menu-style-03.style-edited-01").removeClass("menu-style-03 style-edited-01").addClass("menu-style-01")}}else{I(".pt-header.menu-style-03.style-edited-01").removeClass("menu-style-03 style-edited-01").addClass("menu-style-01")}if(!H.ptKeepHorizontal){if(g<=z||g<475){i()}else{a()}}else{if(N.hasClass("m-mode")){i()}else{a()}}if(q.hasClass("menu-style-02")){if(q.hasClass("menu-height-02")){var e=Math.floor(z*.1);if(e<=60){e=60}f=e;q.height(e);I(".site-root").css("padding-top",e)}else{f=q.height()}}else{f=0}B=z-f*t;D=g-u};I(H).on("resize",d);function ne(){var e=I(".site-root");if(E){I(".m-hidden-open .m-close-hidden,.m-menu-open .m-close-menu").fadeIn(100);I(".site-root").after(I(".pt-header:not(.edited)").addClass("edited"));I(".pt-header.text-black:not(.color-edited)").removeClass("text-black").addClass("color-edited text-white")}else{I(".m-close-hidden,.m-close-menu").fadeOut(100);I(".m-header").before(I(".pt-header.edited").removeClass("edited"));I(".pt-header.color-edited").removeClass("text-white color-edited").addClass("text-black")}var t=q.find(".menu-wrap").height()+10,s=q.find(".main-menu > ul").outerHeight(),i=q.find(".logo");var a=Math.round(i.find("a:not(.mobile-logo)").height()||0);if(s>t){I(".pt-header:not(.overload)").addClass("overload")}else{I(".pt-header.overload").removeClass("overload")}e.css(J?"padding-right":"padding-left",u);I(".menu-style-02 .logo img").removeAttr("style");if(q.hasClass("menu-style-02")){if(m<=a){q.find(".logo img").css({height:m,width:v})}else{q.find(".logo img").css({height:a,width:Math.round(a*v/m)})}}else{q.find(".logo img").removeAttr("style");if(C){var l=I(".pt-header a.logo-svg");if(l.length>0){var n=l.width();var r=l.find("img");var o=parseInt(r.attr("width"));var d=parseInt(r.attr("height"));r.css({width:n,height:d*(n/o)})}}}if(J){I(".site-bg").css("margin-right",u-1)}else{I(".site-bg").css("margin-left",u-1)}I(".blog-list").each(function(){var n;var e=I(this);if(I(H).height()<900){if(e.hasClass("large-image")){n=Math.round(B*.84)}else{n=Math.round(B*.6)}}else{if(e.hasClass("large-image")){n=Math.round(B*.7)}else{n=Math.round(B*.5)}}I(this).find(".video-addition .bg-full").closest(".item").addClass("has-item-video");I(this).find(".img-addition .bg-full").closest(".item").addClass("has-hover-image");if(e.hasClass("raw-proportion")){if(e.hasClass("style-01")){e.find(".blog-main .text").css("width",g*.2)}I(".blog-main .item",this).each(function(){var e=I(this),t=e.width(),s=e.data("h"),i=e.data("w");var a=Math.round(n*i/s);var l=Math.round(t*s/i);if(E){I(".img",this).css("height",l)}else{I(".img",this).css({width:a,height:n})}})}var t=parseInt(I(".blog-main .intro").css("line-height"));if(E){I(".blog-main .intro").removeAttr("style")}else{I(".blog-main .intro").css({height:t*2,overflow:"hidden"})}});var c;var h;var f=I(".pic-list");f.find(".pic-main .item:not(.clone-page-header) .img").removeAttr("style");f.each(function(){var e=0;var t=I(this);var s;if((t.hasClass("row-two")||t.hasClass("row-three"))&&t.hasClass("pic-style-02")){if(t.hasClass("gap-small")){if(z>800){e=15}else{e=8}}if(t.hasClass("gap-large")){if(t.hasClass("row-two")){e=Math.round(B*.05)}if(t.hasClass("row-three")){e=Math.round(B*.025)}}if(t.data("user-gap")){e=f.data("user-gap")}if(t.hasClass("row-two")){s=.5}if(t.hasClass("row-three")){if(H.innerHeight>400&&!E){s=.33333}else{s=1}}t.find(".pic-main").css("padding",e);var i=Math.round((B-e*2)*s);t.find(".pic-main .item").css({height:i,padding:e})}if(t.hasClass("pic-style-01")){var a;if(t.hasClass("gap-small")){a=Math.round(B*.64)}else if(t.hasClass("gap-large")){a=Math.round(B*.55)}else{a=Math.round(B*.8)}if(E){I(".pic-style-01 .pic-main,.pic-style-01 .text-project .inner-wrap").removeAttr("style")}else{if(J){t.find(".pic-main .item").css({height:a,"margin-left":g*.08});I(".pic-list.pic-style-01 .pic-main").css("padding-right",g*.08)}else{t.find(".pic-main .item").css({height:a,"margin-right":g*.08});I(".pic-list.pic-style-01 .pic-main").css("padding-left",g*.08)}}}var l=f.find(".pic-main .item:not(.clone-page-header):not(.text-project):not(.hidden) .inner-wrap",this).outerHeight();var n=f.find(".pic-main .item:not(.clone-page-header):not(.text-project):not(.hidden) .inner-wrap",this).width();if(t.hasClass("type-s")){c=Math.round(l);h=Math.round(n)}if(t.hasClass("type-h")){c=Math.round(l*1.52);h=Math.round(n*.66)}if(t.hasClass("type-v")){c=Math.round(l*.75);h=Math.round(n*1.35)}if(!t.hasClass("type-auto")){if(E){t.find(".pic-main .item:not(.clone-page-header) .img").css("height",h)}else{t.find(".pic-main .item:not(.clone-page-header) .img").css("width",c)}}else{t.find(".pic-main .item:not(.clone-page-header)").each(function(){var e=I(this),t=e.data("h"),s=e.data("w"),i=Math.round(n*t/s),a=Math.round(l*s/t);if(E){I(".img",this).css({height:i})}else{I(".img",this).css({width:a})}})}});if(N.hasClass("shop-style-02")||N.hasClass("shop-style-03")){var p;if(N.hasClass("shop-style-02")){p=(B-200)*.35}else{p=(B-200)*.55}if(!E){I("ul.products li.product img.attachment-woocommerce_thumbnail").css("height",p)}else{I("ul.products li.product img.attachment-woocommerce_thumbnail").removeAttr("style")}}}function re(){if(N.hasClass("single")&&I(".single-root.style-01").hasClass("has-type-02")){if(H.innerWidth<1180){I("body:not(.type-edited)").removeClass("single-type-02").addClass("type-edited")}else{I("body.type-edited").addClass("single-type-02").removeClass("type-edited")}}if(I(".single-header:not(.single-item) .item").length==1){I(".single-header").addClass("single-item")}if(I(".single-root.style-01 .raw-proportion").length>0){var i=I(".single-header").width();I(".single-header .item").each(function(){var e=I(this).data("w");var t=I(this).data("h");var s=Math.ceil(i*t/e);I(".img",this).css({height:s})})}if(!N.hasClass("single")&&I(".single-root.style-02 .ptsc,.single-root.style-02 .single-extend .item,.single-root.style-02 .single-header .item").length==0&&I(".single-root.style-02").length>0){I(".single-root.style-02").addClass("only-text style-01").removeClass("style-02")}I(".single-root.style-02:not(.only-text)").not(".inited").each(function(){var e=I(this);var t=e.find(".single-inner");e.addClass("inited");e.wrapInner('<div class="single-roll-wrap"><div class="single-roll-inner"></div></div>');e.find(".single-roll-inner").append(e.find(".single-extend"));if(e.hasClass("main-info-style-02")){e.find(".single-roll-inner").prepend(t.wrapInner('<div class="main-info-style-02-inner"></div>'))}else if(e.hasClass("main-info-style-04")){e.find(".text-area img[data-src]").each(function(){var e=I(this).data("src");if(e){I(this).attr("src",e)}})}else{e.find(".single-roll-inner").prepend('<div class="single02-text-wrap"><div class="single02-info"><i class="btn call-single02-info"></i></div></div>');e.find(".single02-text-wrap").prepend(e.find(".single-main-intro .title"));e.find(".single02-text-wrap .title").each(function(){I(this).wrapInner("<span></span>");if(I("span",this).text().length<=4){I(this).addClass("title-short")}else{var e=I("span",this).html();I(this).append('<span class="clone-text-root"></span>');I(".clone-text-root",this).append('<em class="left"><span>'+e+"</span></em><span>"+e+"</span>")}})}if(e.find(".single-main-content").length>0){if(!e.hasClass("main-info-style-04")){e.find(".single-main-content").append(t.find(".share")).prepend(e.find(".single-main-intro .single-meta"));if(e.hasClass("single-category-on")){if(!e.hasClass("main-info-style-02")){e.find(".single-main-content").prepend(e.find(".single-main-intro .pt-category"))}else{if(e.find(".single-main-content .single-meta").length==0){e.find(".single-main-content").prepend('<div class="single-meta"></div>')}e.find(".single-main-content .single-meta").prepend(e.find(".single-main-intro .pt-category").addClass("item"))}}e.find(".single02-info").append(e.find(".single-main-content"))}else{e.find(".single-main-intro").append(t.find(".share"))}}else{e.find(".single02-info").remove()}e.find(".single-roll-inner").append(e.find(".single-nav"));if(e.hasClass("show-related-and-tags")){e.find(".single-roll-inner").append(e.find(".single-footer").addClass("for-h-layout"))}else{e.find(".single-footer").remove()}});I(".single02-info .single-main-content").css("max-height",B*.7);if(I(".single-root.style-01 .single-extend .item").length>0){var a=I(".single-extend").width();I(".single-extend .item").each(function(){var e=I(this).data("w");var t=I(this).data("h");var s=Math.ceil(a*t/e);I(".img",this).css({height:s})})}var e=0;var t;if(I(".single-root.style-02").length>0){if(I(".single-root").hasClass("gap-small")){e=Math.ceil(B*.06)}else if(I(".single-root").hasClass("gap-large")){e=Math.ceil(B*.12)}if(I('.single-root[class*="gap-"]').hasClass("main-info-style-02")){var s;if(N.hasClass("single")){s=B}else{s=z}I(".single-inner").css({height:s});I(".main-info-style-02-inner").css({"max-height":s})}if(N.hasClass("single")){t=X.width()}else{t=g}if(E){I(".single-header:not(.raw-proportion)").removeAttr("style")}else{I(".single-header:not(.raw-proportion)").css("width",t)}I(".single-root.style-02 .single-header.raw-proportion .item .img,.single-extend .item .img").removeAttr("style");I(".single-root.style-02 .single-header.raw-proportion .item,.single-extend .item").each(function(){var e=I(this).width();var t=I(this).height();var s=I(this).data("w");var i=I(this).data("h");var a=Math.ceil(t*s/i);var l=Math.ceil(e*i/s);if(E){I(".img",this).css({height:l})}else{I(".img",this).css({width:a,height:"100%"})}});I(".single-extend .item").each(function(){if(I(".text p",this).length>0){I(this).addClass("has-info")}if(I(".text h2",this).length>0){I(this).addClass("has-title")}})}I(".single-root .sc-text-carousel .item").css("height",I(".single-roll-inner").height());function l(e){var t=I(e);t.find(".single-main-content").removeAttr("style");t.find(".single-main-content").each(function(){var e=this.scrollWidth+10;I(this).css("width",e);t.closest(".pt-hscroller-element").ptHScrollerCall("resize")})}l(I(".single-root.main-info-style-04 .single-inner"))}var oe=function(){var e=I(".single-root");F.find(".single-root").find("h1,h2,h3,h4,h5,h6").addClass("pt-h");ae();I(".single-header .img,.single-extend .img,.single-related .img").append('<abbr class="pic-loader"><i></i><i></i><i></i></abbr>');if(I(".single-nav div").length==0){I(".single-nav").remove()}if(I(".single-nav .ctrl").length==1){I(".single-nav").addClass("single-ctrl")}if(I(".single-related .item").length==0){I(".single-related").remove()}I(".single-root .ptsc").addClass("for-single");var t;if(e.data("title-color")){t=e.data("title-color");if(t.indexOf("rgba")>-1){var s=t.substring(t.indexOf("(")+1,t.lastIndexOf(","));t="rgb("+s+")"}if(e.hasClass("main-info-style-02")){I(".single-main-intro .title").css("color",t)}else{if(e.find(".single02-text-wrap").children(".title").hasClass("title-short")){e.find(".single02-text-wrap").children(".title").find("span").css("background-color",t)}else{e.find(".single02-text-wrap .clone-text-root span").css({"outline-color":t,"background-color":t})}I(".single-root.style-01 .single-main-intro .title").css("color",t)}}F.find(".bg-color").each(function(){if(I(this).data("color")){var e=I(this).data("color");I(this).css("background",e)}});I(".single-root.single-type-video .single-header .item").addClass("has-video");if(I(".single-extend .item").length==0){I(".single-extend").remove()}I(".single-extend .item").each(function(){if(I(".bg-full",this).data("video-src")||I(".bg-full",this).data("src")){I(this).addClass("has-video");if(I(".bg-full",this).data("volume")==0){I(this).addClass("video-mute")}}});I(".single-footer .bg-full,.single-extend .bg-full").PtBgConvert();if(I(".single-root:not(.single-type-video) .single-header .item").length>1){I(".single-root.style-01 .single-header .img,.single-root.style-02 .single-header:not(.raw-proportion) .img").append('<div class="s-btn s-btn-prev"></div><div class="s-btn s-btn-next"></div>');var i=1;var a=I(".single-header .item").length;var l;var n=true;I(".single-root.style-01 .single-header .item,.single-root.style-02 .single-header:not(.raw-proportion) .item").each(function(){if(I(this).index()>=9){l=""}else{l="0"}I(".img",this).prepend('<div class="slick-count"><i>'+l+i+"</i><em>"+l+a+"</em></div>");i++});if(I(".single-root.style-02").length>0||!I(".single-header").hasClass("raw-proportion")){n=false}I(".single-root.style-01 .single-header > .wrap").slick({dots:false,infinite:true,speed:600,rtl:J,adaptiveHeight:n,autoplay:true,pauseOnDotsHover:true,slidesToShow:1,swipe:Z,touchMove:Z,draggable:Z});I(".single-root.style-02 .single-header:not(.raw-proportion)").addClass("pt-slider-root").ptSwipe({wrapTarget:".wrap",itemTarget:".item",autoplay:false,speed:800,useDrag:W,tweenOutOffset:.98,ease:"cubicInOut",onInit:function(){},onSwipeBefore:function(){},onSwipeAfter:function(){}});if(!I(".single-root.style-02 .single-header").hasClass("raw-proportion")){ee()}if(I(".single-root").hasClass("style-01")){I(".s-btn-prev").on("click",function(){N.addClass("forPrev");I(this).closest(".slick-slider").find(".slick-prev").trigger("click");setTimeout(function(){N.removeClass("forPrev forNext")},500)});I(".s-btn-next").on("click",function(){I(this).closest(".pt-slider-root").ptSwipeCall("next");N.addClass("forNext");I(this).closest(".slick-slider").find(".slick-next").trigger("click");setTimeout(function(){N.removeClass("forPrev forNext")},500)})}}I(".single-header").each(function(){te(this)});I(".single-root.style-02 .single-extend .item.has-title.has-info .text").on("click",function(){I(this).toggleClass("show");I("p",this).slideToggle(300)});if(I(".single-root.style-02").length>0){I(".single-root:not(.ptsc-inited)").each(function(){var e=I(this);if(e.find(".single-nav").length>0){e.find(".single-nav").before(e.find(".ptsc")).before(e.find(".comment-root"))}else{e.find(".single-header").after(e.find(".comment-root")).after(e.find(".ptsc"))}}).addClass("ptsc-inited");I(".single-root").addClass("inited-for-hs").append(K).ptHScroller({contentTarget:".single-roll-wrap",wrapTarget:".single-roll-inner",viewportTarget:".item",viewportAddClass:".inviewport",wheelTarget:I(".single-root"),useScroller:true,needButton:true,buttonScrollPercent:.35,checkWindowSize:!H.ptKeepHorizontal,enableViewport:true,scrollSpeed:500,scrollEase:"quintOut",ignoreScrollerWidth:false,onScroll:function(e,t){I(".single-root .sc-gallery.row-two-auto,.single-root .sc-gallery.row-three-auto").ptFlexRowCall("setScrollPercent",[e,t]);I(".ptsc.sc-images .item.inviewport .bg-full:not(.show),.ptsc.sc-gallery .item.inviewport .bg-full:not(.show),.ptsc.sc-photo-wall .item.inviewport .bg-full:not(.show)").PtBgConvert()}}).ptHDragger({disabled:!N.hasClass("h-drag-enabled"),checkEdge:!N.hasClass("h-drag-uncheck-edge"),dragTweenTime:G,clickTolerance:10,dragEase:Q,speedRatio:.35,ignoreElement:"textarea,input,form,.close-single,.sc-map"});if(!U&&!I(".single-header").hasClass("raw-proportion")){I(".single-root.style-02 .pt-hs-roll-btn").css("display","none")}}I(".single-related .img").addClass("hoverElems").ptElasticHover({target:".bg-full",offset:15,scale:1.1});I(".single-extend .item.has-video .img").append('<div class="v-ctrl call-item-video"></div>');var r='<div class="v-play v-ctrl"></div><div class="v-pause v-ctrl"></div><div class="v-mobile-play v-ctrl"></div>';if(I(".single-root").hasClass("single-type-video")){var o=I(".single-type-video .single-header .bg-full");o.closest(".item").addClass("pause").children(".img").append(r);if(!I(".single-root").hasClass("video-popup")){o.addClass("vTarget").ptMediaPlayer({autoplay:false,full:true,controls:false,ignoreMobile:true,removeVimeoControls:true,onStart:function(){o.closest(".has-video").addClass("v-ready")},onPlayStatus:function(e){if(e=="play"){I(".single-type-video .single-header .item").removeClass("pause")}},loop:true})}else{o.addClass("vTarget").closest(".has-video").addClass("v-ready")}}I(".share i.btn").on("click",function(){I(this).closest(".share").toggleClass("show")});I(".call-single02-info").on("click",function(){I(this).closest(".single02-info").toggleClass("show")});if(!U){X.on("scroll",function(){if(!E&&N.hasClass("single-type-02")){var e=X.scrollTop()*.8;I(".single-header").css("transform","translateY("+e+"px)")}})}};function de(){if(E){I(".sc-slider.mobile-fullscreen").css("height",z-s)}else{I(".sc-slider.mobile-fullscreen").css("height","auto")}I(".sc-text-carousel:not(.inited-for-boxed)").each(function(){if(I(".page-header-02 .title,.page-header-02 .sub-title").length==0){I(this).addClass("boxed")}}).addClass("inited-for-boxed");I(".sc-slider:not(.for-single),.sc-banner:not(.raw-proportion):not(.for-single) > .wrap,.sc-text-carousel:not(.boxed):not(.for-single)").css({width:D});I(".sc-slider.for-single,.sc-banner.for-single:not(.raw-proportion) > .wrap,.sc-text-carousel.for-single:not(.boxed)").css({width:g});I(".sc-banner").each(function(){var e=I(this);e.children(".wrap").removeAttr("style");var t=e.height();var s=g;var i=e.data("w");var a=e.data("h");var l=Math.ceil(t*i/a);var n=Math.ceil(s*a/i);if(i/a<1.33){e.addClass("boxed")}if(E){if(e.hasClass("raw-proportion")){e.find(".bg-full").css({height:n})}else{e.find(".bg-full").css({height:g*.66})}}else{if(e.hasClass("raw-proportion")){e.children(".wrap").removeAttr("style").css({width:l})}else{if(e.hasClass("for-single")){e.children(".wrap").removeAttr("style").css({width:g})}else{e.children(".wrap").removeAttr("style").css({width:D})}}}});I(".sc-slider").each(function(){var e=I(this).data("w");if(!e){e=1}if(I(this).hasClass("for-single")){I(this).css("width",g*e)}else{I(this).css("width",D*e)}});I(".sc-text-carousel.boxed.for-single").css({width:Math.round(g*.5)});I(".sc-text-carousel.boxed:not(.for-single)").css({width:Math.round(D*.5)});I(".sc-subscribers").each(function(){var e=I(this);var t=D*e.data("w");if(I(this).hasClass("for-single")){t=g*e.data("w")}if(t!==0){e.css({width:t})}});I(".sc-textlist.row-two").each(function(){if(I(".item",this).length<2){I(this).removeClass("row-two")}});I(".sc-textlist:not(.row-two) .item").removeAttr("style").css("max-height",B*.8);I(".sc-textlist:not(.row-two) ul").removeAttr("style");I(".sc-textlist.row-two:not(.row-inited)").each(function(){I(this).children(".wrap").append('<div class="row-wrap row-01"></div><div class="row-wrap row-02"></div>');var e=I(".row-01",this);var t=I(".row-02",this);var s=0;I(".item",this).each(function(){if(s===0){e.append(this);s=1}else{t.append(this);s=0}});I(".row-02 .item",this).addClass("for-row-02")}).addClass("row-inited");var e=function(){I(".sc-textlist.row-two .item").removeAttr("style").removeClass("overload");I(".sc-textlist.row-two .row-wrap").each(function(){var e=I(this);var s=0;var i=e.height()-10;var t=parseInt(I(".item",this).css("padding-top"))*2+20;I(".item",this).each(function(e){var t=I(".inner-wrap",this).height();if(t>s){s=t}if(t>i){I(this).addClass("overload")}else{I(this).removeClass("overload")}});if(s>=i){e.find(".item").css("height",i)}else{e.find(".item").css("height",s+t)}})};e();I(".sc-videobox").each(function(){var e=I(this);var t=e.data("w");var s=e.find(".img");s.removeAttr("style");if(E){if(q.hasClass("style-edited-02")){s.css("min-height",s.width()/t*.56-60)}else{s.css("min-height",s.width()/t*.56)}}else{s.css("width",D*t)}});I(".sc-mixbox .item").each(function(){var e=I(this);var t=I(this).closest(".sc-mixbox");var s=e.data("w");var i=parseInt(e.find(".intro").css("line-height"));var a;var l=0;var n=0;var r;var o=D;if(t.hasClass("for-single")){o=g}if(e.find(".text > .btn").length>0){n=60}if(!e.hasClass("fade-set")&&!Y){e.addClass("fade-set").css("transition","opacity 0.4s 0."+Math.floor(Math.random()*5)+"s")}if(s!==0){if((t.hasClass("gap-small")||t.hasClass("gap-large"))&&s==1){l=parseInt(t.css(J?"padding-left":"padding-right"))*2}e.css({width:o*s-l})}var d=B-parseInt(t.css("padding-top"))*4-n;if(e.closest(".sc-mixbox").hasClass("content-center")){if(e.find(".img img").length>0){e.find(".img img").css({"max-height":d*.3,width:"auto"});a=d*.25}else if(e.find(".icon i").length>0){a=d*.25}else{a=d*.5}}else{a=d*.7}r=i*Math.round(a/i);I(".intro",this).css({"max-height":r});if(e.find(".wpcf7-form").length>0){e.addClass("has-wpcf7")}if(I(this).parent().parent().hasClass("pricing-table")){I(".text",this).css("max-height",d*.7)}});I(".sc-banner .intro").each(function(){var e=I(this);var t=e.closest(".ptsc");var s=e.closest(".text");var i=parseInt(e.css("line-height"));var a=i*4+10;var l=e.get(0).scrollHeight;if(l>a){t.addClass("overload");e.css({height:a})}else{e.removeAttr("style");t.removeClass("overload")}});I(".sc-text-carousel").each(function(){var e=I(this);var t=I(this).find(".item");if(!N.hasClass("single")){t.css("height",B)}t.each(function(){var e=I(".inner-wrap",this);var t=I(this);if(E){t.removeClass("overload")}else{if(e.get(0).scrollHeight>B*.7){t.addClass("overload")}else{t.removeClass("overload")}}})});I(".sc-section-title").each(function(){I(".img",this).removeAttr("style");var n=I(this);var e=n.children(".wrap").height();var r=I(".img",this).data("w");var o=I(".img",this).data("h");var t=Math.ceil(e*r/o);var s=I(".sub-title .inner",this);if(n.find("h1 span").text().length>30&&n.find("span br").length==0){n.addClass("text-lots")}if(I(".img",this).data("w")>I(".img",this).data("h")&&n.hasClass("title-raw-proportion")){n.addClass("img-type-h")}if(I(".sub-title",this).length>0){var i=s.get(0).scrollHeight;var a=0;if(n.find("h1").length>0){a=n.find("h1").height()}var l=parseInt((z-a-f)*.6);s.css({"max-height":l});if(i>l){s.addClass("overload")}else{s.removeClass("overload")}}if(I(".img",this).length>0){if(n.hasClass("title-raw-proportion")){if(E){var d=I(".img",this).width();var c=Math.ceil(d*o/r);I(".img",this).css({height:c})}else{I(".img",this).css({width:t})}}else{if(n.hasClass("image-large")&&!n.hasClass("overlap")&&!n.hasClass("no-img")){}else{I(".img",this).css("min-width",e*.55)}}if(n.hasClass("first-sc")&&!n.hasClass("keep-full")&&n.hasClass("pt-fixed")&&n.hasClass("image-large")){setTimeout(function(){var e=n.find(".img").outerWidth();var t=n.find(".img").outerHeight();var s=o/r;var i=t/s;var a=n.find(".img .bg-full");a.css({"background-size":"","background-position":""});if(e<g*.8&&!Y&&!W){if(i<e){a.css({"background-size":e,"background-position":u+"px "+h+"px"})}else{var l=Math.ceil(t*r/o);a.css({"background-size":l,"background-position":(l-e)*-.5+u+"px 100%"})}}},0)}}});I(".sc-images .img").removeAttr("style");I(".sc-images .item").each(function(){var e=I(".img",this).height();var t=I(".img",this).width();var s=I(this).attr("data-w");var i=I(this).attr("data-h");var a=Math.ceil(e*s/i);var l=Math.ceil(t*i/s);if(E){I(".img",this).removeAttr("style").css({height:l})}else{I(".img",this).removeAttr("style").css({width:a})}});I(".sc-photo-wall .img").removeAttr("style");I(".sc-photo-wall .sub-item").each(function(){var e=I(this).height();var t=I(".img",this).attr("data-w");var s=I(".img",this).attr("data-h");var i=I(".img",this).width();var a=Math.ceil(e*t/s);var l=Math.ceil(i*s/t);if(E){I(".img",this).css({height:l})}else{I(".img",this).css({width:a,height:e})}});I(".sc-gallery,.sc-gallery .img,.sc-gallery > .wrap,.sc-gallery .item").removeAttr("style");I(".sc-gallery").each(function(){var e=I(this),t=I(".img",this).height(),s=I(".img",this).width(),i=I(".item",this).length,a,l,n;var r=1;if(e.hasClass("row-two")){r=2}else if(e.hasClass("row-three")){r=3}else if(e.hasClass("row-four")){if(I(H).height()>800){r=4}else{r=3}}if(i%2!==0){e.find(".item").last().addClass("last-child")}e.children(".wrap").removeAttr("style");e.removeAttr("style");I(".item",this).removeAttr("style");if(!E){if(e.hasClass("row-one")||e.hasClass("row-two-auto")||e.hasClass("row-three-auto")){if(e.hasClass("row-two-auto")&&e.hasClass("gap-large")){I(".item",this).css({padding:Math.round(B*.05)});e.css({padding:Math.round(B*.05)})}if(e.hasClass("row-three-auto")&&e.hasClass("gap-large")){I(".item",this).css({padding:Math.round(B*.025)});e.css({padding:Math.round(B*.025)})}var o=I(".img",this).height();if(e.hasClass("row-two-auto")){o=e.children(".wrap").height()*.5-parseInt(I(".item",this).css("padding-top"))*2;I(".item",this).css({height:e.children(".wrap").height()*.5})}if(e.hasClass("row-three-auto")){if(H.innerHeight>400){n=.3333}else{n=1}o=e.children(".wrap").height()*n-parseInt(I(".item",this).css("padding-top"))*2;I(".item",this).css({height:e.children(".wrap").height()*n})}I(".item",this).each(function(){var e=o;var t=I(this).attr("data-w");var s=I(this).attr("data-h");var i=Math.ceil(e*t/s);I(".img",this).removeAttr("style").css({width:i})})}else{if(e.hasClass("type-h")){if(e.hasClass("gallery-wide")){a=Math.ceil(t*1.8)}else{a=Math.ceil(t*1.5)}}else if(e.hasClass("type-v")){a=Math.ceil(t*.6666)}else if(e.hasClass("type-s")){a=Math.ceil(t)}I(".img",this).removeAttr("style").css("width",a);var d=I(".item",this).outerWidth();e.children(".wrap").css("min-width",d*Math.ceil(i/r))}}else{if(e.hasClass("row-one")||e.hasClass("row-two-auto")||e.hasClass("row-three-auto")){I(".item",this).each(function(){var e=I(".img",this).width();var t=I(this).attr("data-w");var s=I(this).attr("data-h");var i=Math.ceil(e*s/t);I(".img",this).removeAttr("style").css({height:i})})}else{if(e.hasClass("type-h")){l=Math.ceil(s*.6666)}else if(e.hasClass("type-v")){l=Math.ceil(s*1.5)}else if(e.hasClass("type-s")){l=Math.ceil(s)}I(".img",this).removeAttr("style").css("height",l)}}});I(".sc-map").each(function(){var e=I(this).data("w");if(I(this).hasClass("for-single")){I(this).css("width",g*e)}else{I(this).css("width",D*e)}});I(".sc-progress.style-01 .bar-wrap").height(B*.5);I(".sc-progress.style-02 .number").css({height:B*.3,width:B*.3});I(".sc-custom-html:not(.not-set-size), .sc-rev-slider:not(.not-set-size)").each(function(){var e=I(this);var t=e.data("w");var s=e.data("h");if(t){e.css("width",D*t)}if((U||H.innerWidth<l)&&s){e.css("height",s*100+"vh")}else{e.css("height","100%")}});setTimeout(function(){I(".sc-mixbox.v-align").each(function(){var t=0;var e=B*.7;I(".inner-wrap",this).removeAttr("style");if(I(".item",this).length>1&&!E){I(".inner-wrap",this).each(function(){var e=I(this).outerHeight();if(e>t){t=e}});if(t<e){I(".item .inner-wrap",this).stop().animate({height:t},300)}else{I(".inner-wrap",this).removeAttr("style")}}})},400);I(".sc-textlist,.sc-text-carousel,.sc-subscribers").each(function(){var e=I(this);var t=e.data("img-h");var s=e.data("img-w");if(e.find(".page-header-02").length==0&&e.hasClass("first-sc")&&!e.hasClass("keep-full")&&e.hasClass("pt-fixed")&&t){var i=e.outerWidth();var a=e.outerHeight();var l=t/s;var n=a/l;var r=e.children(".bg-full");if(e.hasClass("sc-subscribers")){r=e.find(".bg-full")}r.css({"background-size":"","background-position":""});if(i<g*.9&&!Y&&!W){if(n<i){r.css({"background-size":i,"background-position":u+"px "+h+"px"})}else{var o=Math.ceil(a*s/t);r.css({"background-size":o,"background-position":(o-i)*-.5+u+"px 100%"})}}}})}var ce=function(e){if(!e){e=I("body")}e.find(".v-pause").on("click",function(){var e,t,s;e=I(this).closest(".item");t=e.parent().parent();s=e.find(".bg-full");if(t.hasClass("sc-slider")&&t.data("autoplay")==1){t.ptSwipeCall("setAutoplay",true);t.ptSwipeCall("resume")}I('.sc-slider[data-video-autoplay="0"] .item.has-video:not(.pause) .bg-full').ptMediaPlayerCall("unMute");I('.sc-slider[data-video-autoplay="1"]').each(function(){var e=I(this).find(".item.has-video .bg-full:not(.pt-mediaplayer-muted)");if(e.closest(".item").hasClass("js-pause")){e.ptMediaPlayerCall("play");e.closest(".item").removeClass("pause js-pause")}});e.addClass("pause");s.ptMediaPlayerCall("pause")});e.find(".v-play").on("click",function(){var e,t,s;e=I(this).closest(".item");t=e.parent().parent();s=e.find(".bg-full");if(t.hasClass("sc-slider")&&t.data("autoplay")==1){t.ptSwipeCall("pause")}I('.sc-slider[data-video-autoplay="0"] .item.has-video:not(.pause) .bg-full').ptMediaPlayerCall("mute");I('.sc-slider[data-video-autoplay="1"]').each(function(){var e=I(this).find(".item.has-video .bg-full:not(.pt-mediaplayer-muted)");if(!e.closest(".item").hasClass("pause")){e.ptMediaPlayerCall("pause");e.closest(".item").addClass("pause js-pause")}});e.removeClass("pause js-pause");s.ptMediaPlayerCall("play");if(!s.hasClass("pt-mediaplayer-muted")){s.ptMediaPlayerCall("unMute")}});e.find(".call-item-video,.v-mobile-play,.call-video-popup").on("click",function(){var e;if(I(this).hasClass("v-mobile-play")){e=I(this).siblings(".bg-full")}else if(I(this).hasClass("call-video-popup")){e=I(this).closest(".item")}else{e=I(this).parent().parent().find(".bg-full")}var t=I('<div class="bg-full"></div>');var s=e.data();var i=["volume","type","video-src","videoSrc","src"];i.forEach(function(e){if(s.hasOwnProperty(e)){t.data(e,s[e])}});var a=I('<div class="popup-player"><div class="player-wrap"></div><span class="close"></span></div>');a.children(".player-wrap").append(t);N.append(a);var l=I(".popup-player");l.on("click",function(e){if(e.target===I(this).children(".player-wrap").get(0)){e.stopPropagation();I(".popup-player .close").trigger("click")}});I(".sc-slider .item.has-video:not(.pause) .bg-full:not(.pt-mediaplayer-muted),.single-header .bg-full.vTarget").addClass("without-mute-video");I(".without-mute-video").ptMediaPlayerCall("mute");l.fadeIn(0,function(){I(".popup-player .close").addClass("show");l.animate({opacity:1},400,function(){l.find(".bg-full").addClass("show").ptMediaPlayer({autoplay:false,full:false,controls:true,ignoreMobile:false,loop:false,onStart:function(){l.find(".bg-full").ptMediaPlayerCall("play")}})})});I(".popup-player .close").on("click",function(){I(this).removeClass("show");l.find(".bg-full").removeClass("show");l.animate({opacity:0},400,function(){l.find(".bg-full").ptMediaPlayerCall("dispose",true);l.remove()});I(".without-mute-video").ptMediaPlayerCall("unMute").removeClass("without-mute-video")})})};I(function(){if(navigator.userAgent.indexOf("Edge")>-1){N.addClass("edge")}if(navigator.userAgent.indexOf("Firefox")>-1){N.addClass("ff")}if(!navigator.userAgent.match(/window/i)){N.addClass("no-window")}if(N.hasClass("admin-bar")){L.addClass("has-wp-bar")}if(N.css("font-weight")=="500"){N.addClass("font-regular-500")}q.after('<div class="m-header"><div class="wrap"><div class="m-logo"></div><i class="btn m-call-menu"></i></div></div>');if(I("body > .hidden-menu").length>0){I(".m-header > .wrap").append('<i class="btn m-call-hidden"></i>')}X.prepend('<div class="m-header-gap"></div>');if(q.hasClass("text-white")){I(".m-header").addClass("dark")}else{I(".m-header").addClass("light")}I(".m-logo").append(q.find(".logo").html());if(q.hasClass("logo-padding")){I(".m-logo").addClass("logo-padding")}if(q.find(".logo").hasClass("has-mobile-logo")){I(".m-logo").addClass("has-mobile-logo")}I(".site-root").append('<div class="click-layer m-close-hidden"></div><div class="click-layer m-close-menu"></div>');I(".m-call-hidden").on("click",function(){q.addClass("m-nav-index-0");N.addClass("m-hidden-open");I(".m-close-hidden").fadeIn(300)});I(".m-call-menu").on("click",function(){I(".hidden-menu").addClass("m-nav-index-0");N.addClass("m-menu-open");I(".m-close-menu").fadeIn(300)});I(".m-close-hidden").on("click",function(){N.removeClass("m-hidden-open");I(this).fadeOut(300,function(){q.removeClass("m-nav-index-0")})});I(".m-close-menu").on("click",function(){N.removeClass("m-menu-open");I(this).fadeOut(300,function(){I(".hidden-menu").removeClass("m-nav-index-0")})});var e=function(){var e="(-webkit-min-device-pixel-ratio: 1.5), (min--moz-device-pixel-ratio: 1.5), (-o-min-device-pixel-ratio: 3/2), (min-resolution: 1.5dppx)";if(H.devicePixelRatio>1){return true}if(H.matchMedia&&H.matchMedia(e).matches){return true}return false};if(e()){L.addClass("retina");var t=I(".logo img,.m-logo img");t.each(function(){var e=I(this).data("retina");if(e){I(this).attr("src",e)}})}I("body").find("h1,h2,h3,h4,h5,h6").addClass("pt-h");ae();I(".page-other a.btn").addClass("btn-animate-01");if(I("body > .hidden-menu").length>0&&(q.hasClass("menu-style-02")||q.hasClass("style-edited-02"))&&I(".copyright p").text().length>1){I(".hidden-menu .pt-widget-list").append(I("header .copyright"));I(".pt-popup").addClass("no-copyright")}if(I(".site-bg .bg-full").data("bg")){I(".site-root").addClass("has-site-bg");var s=I(".site-bg .bg-full").data("bg");I(".site-bg .bg-full").css("backgroundImage","url("+s+")").imagesLoaded({background:R?".img-bg-full":true},function(e){I(".site-bg .bg-full").removeAttr("data-bg").addClass("show")})}if(I(".site-bg").hasClass("type-patterns")){I(".site-root").addClass("has-site-bg");if(I(".site-bg").hasClass("patterns-01")||I(".site-bg").hasClass("patterns-02")){I(".site-bg .bg-full").append("<i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i>")}if(I(".site-bg").hasClass("patterns-05")&&I(".site-bg").data("patterns")){I(".site-bg .bg-full").css("background-image","url("+I(".site-bg").data("patterns")+")")}}if(I(".single-root.style-02").length>0&&I(".single-root .ptsc,.single-extend .img,.single-header .item").length==0){I(".single-root").removeClass("style-02 main-info-style-02 boxed").addClass("style-01")}if(I(".pt-header .pt-social li").length==0){I(".pt-header .pt-social").remove()}if(I(".single-root").hasClass("style-01")){N.addClass("single-style-01");if(I(".single-root").hasClass("has-widget")){I(".site-root").addClass("post-bg-default")}}if(I(".single-root").hasClass("style-02")){N.addClass("single-style-02")}if(I(".pt-header .copyright p").text().trim()==""){I(".pt-header .copyright").remove()}if(I(".page-header .sc-section-title.pt-margin,.page-header .sc-section-title.pt-margin-right").length>0&&I(".page-header .sc-section-title > .wrap div").length>0){I(".page-header + .blog-list .blog-main").addClass("small-gap")}I(".blog-list").each(function(){var s=I(this);I(".blog-main .item",this).each(function(){var e=I(this).data("h"),t=I(this).data("w");if(t/e>1.1){I(this).addClass("type-h")}else if(t/e>.9){I(this).addClass("type-s")}else{I(this).addClass("type-v")}if(I(this).data("bg-color")&&s.hasClass("style-01")){I(".text",this).css("background",I(this).data("bg-color"))}if(I(this).hasClass("text-post")&&s.hasClass("style-02")){I(".img",this).append(I(".intro",this));if(I(this).data("bg-color")){I(".img",this).css("background",I(this).data("bg-color"))}}});if(s.find(".pages li").length>0){s.addClass("has-pages")}});if(I(".pages li").length>0){I(".blog-list,.pic-list").addClass("has-pages")}var i=I(".single-root.style-01 .single-main-intro .pt-category a").length;if(i>0&&i<=4){I(".single-main-intro .single-meta").append(I(".single-main-intro .pt-category"));I(".single-main-intro .pt-category").removeClass("pt-category").addClass("item new-category")}ie();I(".blog-list.style-02.large-image").removeClass("large-image");I(".pt-filter").each(function(){if(I(this).find(".btn").length==0){I(this).prepend('<i class="btn call-filter"></i>');I(this).find("ul").prepend('<i class="btn close-filter"></i>')}});if(I(".page-header + .pic-list.pic-style-02.header-position-02").length>0&&I(".page-header .ptsc > .wrap div").length>0){var a=I(".page-header .ptsc > .wrap").html();I(".pic-main").prepend('<div class="item clone-page-header"><div class="inner-wrap">'+a+"</div></div>");if(I(".page-header .ptsc").hasClass("text-white")){I(".clone-page-header").addClass("text-white")}if(I(".page-header .sc-section-title").data("color")){I(".clone-page-header .inner-wrap").append('<div class="bg-color" data-color="'+I(".page-header .sc-section-title").data("color")+'"></div>')}if(I(".page-header .sc-section-title img").length>0){I(".clone-page-header").addClass("no-bg-has-img")}if(I(".page-header .sc-section-title .bg-full").length>0){I(".clone-page-header").addClass("has-bg")}I(".page-header").remove()}I(".list-category").not(".inited").each(function(){if(I(this).find("a").length>1){I(this).addClass("lot")}});I(".call-filter").on("click",function(){I(this).closest(".pt-filter").addClass("show")});I(".close-filter").on("click",function(){I(this).closest(".pt-filter").removeClass("show")});I(".pic-list").each(function(){var i=I(this);var e=i.find(".pic-main .item");if(i.find(".pages li").length>0){i.addClass("has-pages")}if(i.hasClass("pic-style-01")){e.find(".inner-wrap").addClass("hoverElems").ptElasticHover({target:".img",offset:10,scale:1})}if(i.hasClass("pic-style-02")){e.find(".inner-wrap").addClass("hoverElems").ptElasticHover({target:".img-main,.img-addition",offset:6,direct:"x",scale:1.03})}e.find("h2").each(function(){var e=I("span",this).html();if(I("span",this).text().length<=4){I(this).closest(".text").addClass("title-short")}I(this).append('<span class="clone-text-root"></span>');I(".clone-text-root",this).append('<em class="left"><span>'+e+"</span></em><span>"+e+"</span>")});if(i.hasClass("type-auto")){e.not(".clone-page-header").each(function(){var e=I(this),t=e.data("h"),s=e.data("w");if(t<s){e.addClass("shape-h")}})}if(i.hasClass("caption-style-02")){i.each(function(){var e=I(this).data("list-title-color");if(e){I(".pic-main",this).find("h2",this).children("span:not(.clone-text-root)").css("color",e);I(".pic-main",this).find(".clone-text-root span",this).css("border-color",e)}})}e.each(function(){var e=I(this);if(e.data("bg-color")){var t=e.data("bg-color");if(t.indexOf("rgba")>-1){var s=t.substring(t.indexOf("(")+1,t.lastIndexOf(","));t="rgb("+s+")"}if(e.hasClass("text-project")){I(".inner-wrap",this).css("background",t)}else if(I(".text",this).hasClass("title-short")){if(i.hasClass("caption-style-02")){I("h2",this).children("span:not(.clone-text-root)").css("color",t)}else{I("h2",this).css("background",t)}}else if(I(this).closest(".pic-list").hasClass("caption-style-02")){I("h2",this).children("span:not(.clone-text-root)").css("color",t);I(".clone-text-root span",this).css("border-color",t)}else{I(".clone-text-root span",this).css({"outline-color":t,"background-color":t})}}if(e.find(".video-addition .bg-full").length>0){e.addClass("has-item-video");I(".img",this).append(I(".img a.full",this))}});if(i.hasClass("video-popup")){e.each(function(){var e=I(this);if(e.data("video-src")||e.data("src")){e.find("a.full").addClass("call-video-popup")}})}});I(".single-root.style-01:not(.has-widget) .single-header.raw-proportion .item").each(function(){var e=I(this).data("w");var t=I(this).data("h");if(e<=t){N.addClass("single-type-02");I(".single-root").addClass("has-type-02");return}});I(".blog-main .item:not(.text-post) .img,.pic-main .item:not(.text-project) .img > div:not(.video-addition)").append('<abbr class="pic-loader"><i></i><i></i><i></i></abbr>');I(".bg-color").each(function(){if(I(this).data("color")){var e=I(this).data("color");I(this).css("background",e)}});if(I(".pt-header .default-menu-list").length>0){I(".pt-header ul.children,.m-header ul.children").addClass("sub-menu")}I(".pt-header .logo").after('<i class="btn btn-menu-03 call-menu-03"><span></span><span></span><span></span></i><i class="btn btn-menu-03 close-menu-03"><span></span><span></span><span></span></i>');I(".site-root").append('<div class="click-layer close-menu-03"></div>');I("header nav .current_page_parent").addClass("current-menu-parent");I("header nav .current-menu-item,header nav .current_page_item").addClass("current_page_item");I("header nav .current_page_ancestor").addClass("current-menu-ancestor");var l=I(".main-menu li a").css("font-family");if(l&&(l.indexOf("Anton,")>-1||l.indexOf("steelfish-Local")>-1||l.substring(0,4)=="ntf-"||l.indexOf("built-Local")>-1)){I(".main-menu li a").addClass("font-type-tall")}I(".main-menu li").each(function(){if(I(this).children(".sub-menu").length>0){I(this).addClass("has-sub").children("a").after('<i class="btn call-sub-btn"></i>')}if(I(this).children(".sub-menu").children("li").length>10){I(this).children(".sub-menu").addClass("lot")}if(I(this).children("a").find("i.icon").length==0||I(this).children("a").find("i.icon").css("display")=="none"){I(this).addClass("no-icon")}});var n=0;I(".main-menu li.depth-1").each(function(){I(this).css({transition:(J?"right":"left")+" 0.6s "+n*.1+"s,opacity 0.6s "+n*.1+"s"});n++});I(".main-menu .sub-menu a i.icon").closest("li").addClass("has-icon");I(".main-menu .call-sub-btn").on("click",function(){if(E||q.hasClass("menu-style-03")){I(this).siblings(".sub-menu").slideToggle(200);I(this).closest("li").toggleClass("open")}else if(q.hasClass("menu-style-01")){var e=I(this).siblings(".sub-menu").html();q.append('<div class="clone-sub"><i class="btn close-clone-sub"></i><ul>'+e+"</ul></div>");q.addClass("show-clone-sub");if(J){I(".clone-sub").animate({right:"0"},600)}else{I(".clone-sub").animate({left:"0"},600)}I(".close-clone-sub").on("click",function(){var e=I(this).closest(".clone-sub");var t=e.outerWidth();q.removeClass("show-clone-sub");if(J){e.animate({right:-t},400,function(){I(".clone-sub").remove()})}else{e.animate({left:-t},400,function(){I(".clone-sub").remove()})}})}});I(".pt-header .call-menu-03").on("click",function(){N.addClass("show-menu-03");I(".close-menu-03.click-layer").fadeIn(300)});I(".close-menu-03").on("click",function(){N.removeClass("show-menu-03");I(".close-menu-03.click-layer").fadeOut(300)});if(I("body > .hidden-menu").length>0){I(".site-root,.hidden-menu .pt-widget-list").append('<div class="click-layer close-hidden-menu"></div>')}else{I(".call-hidden-menu").remove();N.addClass("no-hidden-menu")}I(".call-hidden-menu").on("click",function(){N.addClass("hidden-menu-open");var e=I(".hidden-menu .pt-widget-list").get(0).scrollHeight;I(".hidden-menu .click-layer.close-hidden-menu").css("height",e);setTimeout(function(){I(".site-root .close-hidden-menu").fadeIn(300)},50)});I(".close-hidden-menu").on("click",function(){N.removeClass("hidden-menu-open");I(".site-root .close-hidden-menu").fadeOut(300);I(".hidden-menu .click-layer.close-hidden-menu").removeAttr("style")});I('.widget_nav_menu div[class*="container"] li').each(function(){if(I("ul",this).length>0){I(this).addClass("has-sub").append('<i class="call-widget-sub"></i>')}});I(".call-widget-sub").on("click",function(){I(this).toggleClass("open").siblings("ul").slideToggle(200)});I('.widget_nav_menu div[class*="container"] .has-sub > a[href="#"]').on("click",function(){I(this).siblings(".call-widget-sub").toggleClass("open");I(this).siblings("ul").slideToggle(200)});I(".header-search form").on("mouseenter",function(){I(this).addClass("show")}).on("mouseleave",function(){I(this).removeClass("show")});I(".header-search form input").on("focus",function(){I(this).closest("form").addClass("focus")});I(".header-search form input").on("blur",function(){I(this).closest("form").removeClass("focus")});I('.header-additional i.btn[class*="call-"]:not(.call-hidden-menu)').on("click",function(){I(this).parent().toggleClass("m-show")});var r=function(){if(q.hasClass("menu-style-02")){N.addClass("site-menu-02");I(".pt-header .pt-social").removeClass("hide");I(".pt-header .menu-wrap li.sub-crossed").removeClass("sub-crossed");I(".menu-style-02 .sub-menu").each(function(){var e=I(H).width();var t=I(this).offset();var s=t?t.left:0;var i=s+I(this).outerWidth();if(!J){if(i+50>e){I(this).parent().addClass("sub-crossed")}}else{if(s-50<0){I(this).parent().addClass("sub-crossed")}}});var e=I(".pt-header.menu-style-02 .menu-wrap");var t=e.offset();var s=t?t.left:0;var i=e.width()+s;var a=I(".pt-header .pt-social").offset();var l=a?a.left:0;if(i>=l){I(".pt-header .pt-social").addClass("hide")}}};r();if(N.hasClass("woocommerce-page")){I(".pt-header li.depth-1 li.current-menu-item,.pt-header li.depth-1 li.current-menu-parent").closest("li.depth-1").addClass("current-menu-ancestor")}if(N.hasClass("shop-style-02")||N.hasClass("shop-style-03")){I("#primary").addClass("horizontal");I("#primary > main").prepend('<div class="pt-wc-header"></div>');I(".pt-wc-header").append(I("nav.woocommerce-breadcrumb,header.woocommerce-products-header,p.woocommerce-result-count,form.woocommerce-ordering"));X.not(".inited-for-hs").append(K).ptHScroller({contentTarget:"#primary",wrapTarget:"#main",viewportTarget:".products li",viewportAddClass:".inviewport",wheelTarget:".main-content",useScroller:true,enableViewport:true,needButton:true,buttonScrollPercent:.35,checkWindowSize:!H.ptKeepHorizontal,scrollSpeed:500,scrollEase:"quintOut",ignoreScrollerWidth:false,onScroll:function(e){}}).ptHDragger({disabled:!N.hasClass("h-drag-enabled"),checkEdge:!N.hasClass("h-drag-uncheck-edge"),dragTweenTime:G,clickTolerance:10,dragEase:Q,speedRatio:.35,ignoreElement:".list-widgets-wrap,textarea,input,form,.close-single,.sc-map"}).addClass("inited-for-hs")}I(".related.products:not(.use-raw-size) li").each(function(){var e=I(this).find('a[class*="woocommerce-Loop"]');e.prepend('<div class="wc-related-thumb"><div>').addClass("bg-edited");var t="url("+I("img.attachment-woocommerce_thumbnail",this).attr("src")+")";I(".wc-related-thumb",this).css("background-image",t)});I("ul.products li.product a img,.wc-related-thumb").addClass("hoverElems").ptElasticHover({offset:10,scale:1});ne();I(H).on("resize",r);if(I("body.single").length>0){re();oe()}I(".comment-list.pings").each(function(){if(I(this).find("li").length==0){I(this).remove()}});var o=function(e){var t;if(e=="ajax"){t=F}else{t=X}if(H.devicePixelRatio>1){var s=t.find(".sc-section-title img:not(.retina-inited),.sc-mixbox .img img:not(.retina-inited)");s.each(function(){if(I(this).attr("retina-src")&&I(this).attr("retina-src")!==""){I(this).attr("src",I(this).attr("retina-src")).addClass("retina-inited")}})}ae();I(".text-area a,.comment-area p a,.widget li > a,.sc-textlist li a,.intro a,.sc-section-title a,.textwidget a,.sub-title a").each(function(){if(I(this).children().length==0&&!I(this).attr("class")){I(this).addClass("text-link")}});if(t.find(".ptsc.pt-fixed").length>0){N.addClass("has-fixed-bg")}t.find(".ptsc:not(.sc-custom-html):not(.sc-rev-slider) > .wrap").each(function(){if(I(this).find("div").length==0){I(this).parent().addClass("sc-empty")}});if(I(".page-header .ptsc.sc-empty").length>0){I(".page-header").addClass("empty")}t.find(".sc-mixbox .item,.sc-subscribers").each(function(){var e=.33;if(I(this).data("w")){var e=I(this).data("w")}I(this).css("--data-w",e)});var i=t.find(".sc-section-title").not(".inited");i.each(function(){var e=I(this);var t=e.data("color");var s=e.data("title-color");if(t){I(".text",this).css("background",t)}if(s){I("h1 span",this).css("color",s)}if(I("h1",this).find("br").length>0){I("h1",this).addClass("has-br")}if(e.hasClass("image-large")&&!e.hasClass("overlap")&&!e.hasClass("no-img")){e.find(".img").append(I(".text",this))}});var a=t.find(".sc-textlist").not(".inited");a.each(function(){var e=I(this);e.find(".pt-icon").each(function(){if(I(this).data("color")){I(this).css("color",I(this).data("color"))}});if(e.children(".bg-full,.bg-color").length>0){e.addClass("has-bg")}if(e.find(".wpcf7-form").length>0){e.addClass("has-wpcf7")}e.find(".inner-wrap").each(function(){if(!I(this).hasClass("fade-set")&&!Y){var e=Math.floor(Math.random()*7);I(this).addClass("fade-set").css("transition","opacity 0.4s 0."+e+"s, transform 0.4s 0."+e+"s")}})});t.find(".mc4wp-form-fields:not(.sc-inited)").each(function(){if(I("input",this).length==2&&I('input[type="email"]',this).length==1&&I('input[type="submit"]',this).length==1&&I("p",this).length==2){I(this).addClass("classic");I('input[type="submit"]',this).parent().addClass("has-submit")}I(this).find('input[type="email"],input[type="text"]').each(function(){if(I(this).attr("placeholder")){I(this).closest("p").addClass("hidden-title")}})}).addClass("sc-inited");t.find(".sc-subscribers:not(.sc-inited)").each(function(){if(I(".bg-full",this).data("video-src")||I(".bg-full",this).data("src")){I(this).addClass("has-video")}}).addClass("sc-inited");t.find(".sc-section-title .img:not(.sc-loaded),.sc-slider .img:not(.sc-loaded),.sc-mixbox .img:not(.sc-loaded),.sc-images .img:not(.sc-loaded),.sc-banner.has-bgimg > .wrap:not(.sc-loaded),.sc-gallery .img:not(.sc-loaded),.sc-carousel .img:not(.sc-loaded),.sc-photo-wall .img:not(.sc-loaded)").append('<abbr class="pic-loader"><i></i><i></i><i></i></abbr>').addClass("sc-loaded");t.find(".sc-mixbox a.btn:not(.btn-animate-01),.sc-banner a.btn:not(.btn-animate-01)").addClass("btn-animate-01");t.find(".sc-banner .bg-full:not(.show),.sc-videobox .bg-full:not(.show),.sc-mixbox .bg-full:not(.show),.sc-subscribers .bg-full:not(.show),.sc-section-title .bg-full:not(.show),.ptsc > .bg-full:not(.show)").PtBgConvert();t.find(".wpcf7-form:not(.sc-inited)").each(function(){if(I(this).find('p input:not([type="submit"])').length%2==0){I(this).find('p input:not([type="submit"])').closest("p").addClass("form-col-2")}I(this).find(".wpcf7-acceptance").each(function(){var e=I(this).find('input[type="checkbox"]');var t=I(this).closest("p");if(e.length>0){t.addClass("has-acceptance");if(e.siblings(".wpcf7-list-item-label").length>0){t.addClass("has-label-item")}}})}).addClass("sc-inited");var l=I(".wpcf7-form .wpcf7-col-2");l.each(function(){if(!I(this).closest(".wpcf7-form").hasClass("has-custom-col")){I(this).closest(".wpcf7-form").addClass("has-custom-col")}I(this).closest("p").addClass("pt-wpcf7-col-2")});var n=I('.comment-form input:not([type="submit"]):not([type="hidden"]),.comment-form textarea,.wpcf7 input:not([type="submit"]):not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),.wpcf7 textarea,.wpcf7 select');n.each(function(){if(I(this).hasClass("sc-inited")){return}if(!I(this).closest("form").hasClass("pt-form")){I(this).closest("form").addClass("pt-form")}I(this).parent().wrapInner('<fieldset class="pt-form-item"></fieldset>');var e;if(I(this).attr("placeholder")){e=I(this).attr("placeholder");I(this).removeAttr("placeholder")}else{if(I(this).is("select")){var t=I("<div></div>");if(I(this).siblings("label").length>0){e=I(this).siblings("label").html()}else{e=I(this).closest("label").html()}t.html(e).children().remove();e=t.text().trim()}else{if(I(this).siblings("label").length>0){e=I(this).siblings("label").text().trim()}else{e=I(this).closest("label").text().trim()}}}if(I(this).parent().find(I(".pt-form-title").length==0)){I(this).parent().prepend('<legend class="pt-form-title">'+e+"</legend>")}if(I(this).attr("rows")!==undefined){I(this).attr("rows","4")}}).addClass("sc-inited");I('.comment-form input[type="submit"]:not(.btn-inited),.wpcf7 input[type="submit"]:not(.btn-inited)').addClass("btn-inited").wrap('<p class="has-submit"></p>');n.on("focus",function(){I(this).closest("fieldset").addClass("focus")});n.on("blur",function(){I(this).closest("fieldset").removeClass("focus")});t.find(".sc-mixbox .pt-h").each(function(){if(I(this).attr("data-color")){var e=I(this).data("color");I(this).css("color",e).removeAttr("data-color")}});t.find(".sc-mixbox div.icon:not(.sc-inited)").each(function(){I(this).closest(".item").addClass("has-icon");if(I(this).data("color")){var e=I(this).data("color");I("i",this).css("background",e)}}).addClass("sc-inited");t.find(".sc-mixbox .img:not(.img-loaded) img").PtImgLoaded();t.find(".sc-mixbox:not(.sc-inited)").each(function(){if(I(".item.has-bg-color",this).length==I(".item",this).length||I(this).hasClass("pricing-table")){I(this).addClass("non-bg")}if(I(this).children(".wrap").find("div").length==0){I(this).addClass("null")}if(I(this).data("border-color")){I(this).addClass("has-border");I(".item",this).append('<div class="border-layer" style="border-color:'+I(this).data("border-color")+'"></div>')}I(".item",this).each(function(){if(I(".bg-full",this).data("video-src")||I(".bg-full",this).data("src")){I(this).addClass("has-video")}if(I(".bg-full",this).length>0){I(this).addClass("has-bgimg")}if(I(".text",this).length==0){I(this).addClass("no-text")}})}).addClass("sc-inited");t.find(".sc-mixbox .intro:not(.sc-inited),.pricing-table .text:not(.sc-inited),.sc-banner .intro:not(.sc-inited)").addClass("sc-inited").wrap('<div class="ptbar-outerWrap"><div class="content"></div></div>');I(".ptbar-outerWrap:not(.ptbar-inited)").ptBar({contentTarget:".content"}).addClass("ptbar-inited");t.find(".pricing-table .item:not(.color-inited)").each(function(){var e;if(I(this).data("color")){e=I(this).data("color")}else{e=N.data("color")}I(".price-amount,li i",this).css("color",e)}).addClass("color-inited");t.find(".hover-bg:not(.show)").PtHoverBgConvert();t.find(".sc-slider:not(.step-01-inited)").each(function(){var e;if(I(".item",this).length>1){I(".item .img",this).append('<div class="s-btn s-btn-prev"></div><div class="s-btn s-btn-next"></div>')}else{I(this).addClass("single-item")}I(".item",this).each(function(){if(I(".bg-full",this).data("video-src")||I(".bg-full",this).data("src")){I(this).addClass("has-video");if(I(".bg-full",this).data("volume")==0){I(this).addClass("video-mute")}}});if(I(this).data("video-autoplay")=="1"){I(".item.has-video",this).addClass("autoplay")}}).addClass("step-01-inited");t.find(".sc-slider:not(.single-item):not(.pt-slider-root)").addClass("pt-slider-root").ptSwipe({wrapTarget:".wrap",itemTarget:".item",autoplay:false,speed:800,useDrag:W,tweenOutOffset:.95,ease:"cubicInOut",onInit:function(){var s=this.$element;var e=s.find(".item.current");s.find(".item.current .text").addClass("show");if(s.find(".item.current").hasClass("text-white")){s.find(".pt-swipe-dots").addClass("light")}else{s.find(".pt-swipe-dots").removeClass("light")}var t='<div class="v-play v-ctrl"></div><div class="v-pause v-ctrl"></div><div class="v-mobile-play v-ctrl"></div><div class="volume-btn"></div>';var i=s.find(".has-video .bg-full:not(.btn-inited)");i.addClass("btn-inited").after(t);if(!s.data("video-autoplay")){s.find(".has-video .bg-full").not(".vTarget").addClass("vTarget").ptMediaPlayer({autoplay:false,full:true,controls:false,ignoreMobile:true,removeVimeoControls:true,onStart:function(e){var t=I(e).closest(".item");I(e).addClass("ready");t.addClass("v-ready");s.find(".item.has-video").addClass("pause")},onPlayStatus:function(e,t){if(e=="play"){I(t).closest(".has-video").removeClass("pause")}},loop:true})}else{s.find(".has-video .bg-full").not(".vTarget").addClass("vTarget").ptMediaPlayer({autoplay:true,full:true,controls:false,ignoreMobile:s.hasClass("mobile-list")?true:false,removeVimeoControls:true,volumeBtn:".volume-btn",onStart:function(e){var t=I(e).closest(".item");I(e).addClass("ready");t.addClass("v-ready");I(e).ptMediaPlayerCall("pause").ptMediaPlayerCall("mute");s.find(".current.has-video .vTarget").ptMediaPlayerCall("play")},loop:true})}if(s.find(".item.current.has-video:not(.pause)").length>0){s.ptSwipeCall("pause")}if(s.data("autoplay")){if(e.hasClass("has-video")){if(e.hasClass("pause")){s.ptSwipeCall("setAutoplay",true);s.ptSwipeCall("resume")}else if(this.$element.data("video-autoplay")){this.$element.ptSwipeCall("pause")}}else{this.$element.ptSwipeCall("setAutoplay",true);this.$element.ptSwipeCall("resume")}}},onSwipeBefore:function(){this.$element.find(".vTarget").ptMediaPlayerCall("pause");this.$element.find(".item.has-video:not(.autoplay)").addClass("pause");if(this.$element.find(".item.current").hasClass("text-white")){this.$element.find(".pt-swipe-dots").addClass("light")}else{this.$element.find(".pt-swipe-dots").removeClass("light")}var e=this.$element.find(".item.current").index();if(e>-1){var t=this.$element.find(".pt-swipe-dots ul");if(t.length>0){var s=t.children().eq(e);if(s.length>0){s.trigger("click")}}}},onSwipeAfter:function(){var e=this.$element.find(".item.current");e.find(".text").addClass("show");e.not(".current").find(".text").removeClass("show");if(this.$element.data("autoplay")){if(e.hasClass("has-video")){if(e.hasClass("pause")){this.$element.ptSwipeCall("setAutoplay",true);this.$element.ptSwipeCall("resume")}else if(this.$element.data("video-autoplay")){this.$element.ptSwipeCall("pause")}}else{this.$element.ptSwipeCall("setAutoplay",true);this.$element.ptSwipeCall("resume")}}this.$element.find(".item.current.autoplay.has-video:not(.pause) .vTarget").ptMediaPlayerCall("play")}});t.find(".sc-slider:not(.step-02-inited)").each(function(){var t=0;var s=I(this);var i;var a=1;var l=I(".item",this).length;s.find(".pt-swipe-dots").wrapInner('<div class="roll-target"></div>');if(I(".item",this).length!==I(".pt-h",this).length){s.addClass("normal-nav").removeClass("text-nav")}I(".item",this).each(function(){if(I(this).index()>=9){i=""}else{i="0"}I(".text",this).prepend('<div class="slider-count"><i>'+i+a+"</i><em>"+i+l+"</em></div>");a++;var e=I(".pt-h",this).text();s.find(".pt-swipe-dots li").eq(t).append("<span>"+e+"</span>");if(I("a",this).length>0){s.find(".pt-swipe-dots li").eq(t).append(I("a",this).clone().empty())}t++;if(I(".intro",this).length==0){I(this).addClass("no-intro")}if(I("h2",this).length==0){I(this).addClass("no-title")}});te(this)}).addClass("step-02-inited");t.find('.sc-slider[data-video-autoplay="1"] .volume-btn').not(".click-inited").on("click",function(){var e=I(this).closest(".ptsc");var t=I(this).closest(".item").find(".vTarget");if(t.hasClass("pt-mediaplayer-muted")){e.find(".vTarget").ptMediaPlayerCall("mute")}else{e.find(".vTarget").ptMediaPlayerCall("unMute")}}).addClass("click-inited");var f=900,p=.3;function r(){I(".pt-swipe-dots").removeClass("top-has-distance bottom-has-distance");t.find(".sc-slider").each(function(){var e=I(this);var t=p;if(e.hasClass("normal-nav")){return}if(e.hasClass("text-style-03")){t=.7}var s=e.find(".pt-swipe-dots li").eq(0).outerHeight();var i=Math.ceil(e.children(".wrap").outerHeight()*t/s);var a=s*i;e.find(".roll-target").css("max-height",a);e.find(".roll-target ul").removeAttr("style");e.find(".roll-target li.selected").trigger("click")})}t.find(".sc-slider .roll-target li").on("click",function(){var e=I(this).closest(".sc-slider");var t=p;if(e.hasClass("normal-nav")){return}if(e.hasClass("text-style-03")){t=.7}var s=I(this).parent();var i=I(this).outerHeight();var a=Math.ceil(e.children(".wrap").outerHeight()*t/i);var l=i*a;var n=s.children("li").length;if(n<=a){return}var r=this.parentNode||{};if(r.dotsInCD){return}r.dotsInCD=true;setTimeout(function(){r.dotsInCD=false},f);var o=I(this);var d=o.index();var c=(d+1)*i;var h=l/2-c;h=Math.ceil(h/i)*i;if(h>=0){h=0;I(this).closest(".pt-swipe-dots").removeClass("top-has-distance").addClass("bottom-has-distance")}else if(h<=l-n*i){h=l-n*i;I(this).closest(".pt-swipe-dots").addClass("top-has-distance").removeClass("bottom-has-distance")}else{I(this).closest(".pt-swipe-dots").addClass("top-has-distance bottom-has-distance")}g(r,h,600)});var o=function(e){var t=e.target.target;I(t).css("transform","translate3d(0,"+Math.floor(t._tweenValue)+"px,0)")};var g=function(e,t,s){createjs.Tween.get(e,{override:true,onChange:o}).to({_tweenValue:t},s===undefined?800:s,createjs.Ease.cubicOut)};r();I(H).on("resize",r);ee();var d=t.find(".sc-banner").not(".inited");d.not(".inited").each(function(){var o=I(this);if(o.hasClass("style-01")){o.find(".text").attr({"data-offset":"0.4","data-direct":"0"}).ptElementParallax({container:".sc-banner",type:"h"})}if(o.hasClass("style-02")){o.find(".text").attr({"data-offset":"0.4","data-direct":"1"}).ptElementParallax({container:".sc-banner",type:"h"})}o.find(".intro").append('<div class="text-mask"></div>');if(o.find(".bg-full").data("video-src")||o.find(".bg-full").data("src")){o.addClass("has-video")}if(o.find(".bg-full").length>0){o.addClass("has-bgimg")}var e;if(I(".text",this).length>0){I(".text",this).append('<div class="intro-toggle"><i class="btn call-intro"></i><i class="btn close-intro"></i></div>');e=I(".text",this).css("background-color");e=e.substring(e.indexOf("(")+1);e=e.substring(0,e.indexOf(")"));I(this).find(".text-mask").css({background:"linear-gradient(to bottom, rgba("+e+", 0), rgba("+e+",1))"})}if(I("a.btn",this).length>0){I("a.btn",this).wrap('<div class="btn-wrap"></div')}o.find(".call-intro").on("click",function(){var e=o.find(".intro");var t=o.find(".text");if(o.hasClass("overload")){var s=parseInt(e.css("line-height"));var i=s*4+10;var a=e.get(0).scrollHeight;var l=t.outerHeight();var n=B-(l-i)-100;if(a<n){t.addClass("open");e.stop().animate({height:a},400)}else{var r=Math.round(n/s);t.addClass("open");e.stop().animate({height:s*r},400,function(){o.find(".ptbar-outerWrap").ptBarCall("resize")})}}});o.find(".close-intro").on("click",function(){var e=o.find(".intro");var t=o.find(".text");var s=parseInt(e.css("line-height"));var i=s*4+10;e.stop().animate({height:i},200,function(){t.removeClass("open");o.find(".ptbar-outerWrap").ptBarCall("resize")})})});t.find(".sc-gallery .bg-full[data-video-src],.sc-photo-wall .bg-full[data-video-src]").each(function(){var e=I(this);e.closest('div[class*="item"]').addClass("has-video")});var c=t.find(".sc-gallery").not(".inited");c.each(function(){var e=I(this);if(e.hasClass("lightbox")){e.find("a.full").addClass("iv-link")}if(I(this).data("border-color")){I(".inner-wrap",this).append('<div class="border-layer"></div>');var t=I(this).data("border-color");I(".border-layer",this).css("border-color",t)}var s=I(".item",this).length;if(I(this).hasClass("row-three")){if(s%2!==0){I(".item:last",this).addClass("last")}}if(I(this).hasClass("caption-02")){I(this).find(".caption").each(function(){if(I(this).text().trim()!==""){var e=I(this).text();I(this).after('<div class="text"><p class="has-span"><span>'+e+"</span></p></div>")}})}e.find(".item").each(function(){if(I("a.custom-link",this).length>0){I(this).addClass("has-link")}})});if(!N.hasClass("lightbox-type-02")){I(".site-root:not(.lightbox-inited)").ptImageViewer({itemSelector:".sc-gallery.lightbox .item:not(.has-video) a.full,.sc-photo-wall .sub-item:not(.has-video) .iv-link",fadeTime:600,loop:true,openClass:"iv-for-widgets",skinStyle:"dark"}).addClass("lightbox-inited")}if(N.hasClass("lightbox-type-02")){if(I(".site-root").find(".sc-gallery.lightbox").length>0){I(".site-root:not(.lightbox-inited)").ptImageViewer({itemSelector:".sc-gallery.lightbox .item:not(.has-video) a.full",fadeTime:600,loop:true,openClass:"iv-for-widgets",skinStyle:"dark"}).addClass("lightbox-inited")}I(".site-root .sc-photo-wall.lightbox:not(.lightbox-inited)").ptImageViewer({itemSelector:".sub-item:not(.has-video) a.iv-link",fadeTime:600,loop:true,openClass:"iv-for-widgets",skinStyle:"dark"}).addClass("lightbox-inited")}t.find(".sc-gallery.lightbox .inner-wrap:not(.hoverElems)").addClass("hoverElems").ptElasticHover({target:".bg-full",offset:3,direct:"x",scale:1.03});t.find(".sc-photo-wall .img:not(.hoverElems),.widget_media_image img:not(.hoverElems)").addClass("hoverElems").ptElasticHover({offset:10,scale:1});t.find(".sc-photo-wall p:not(.has-span)").wrapInner("<span></span>").addClass("has-span");if(Y){t.find(".sc-photo-wall.text-style-02 .text").not(".clickInited").on("click",function(){I(this).toggleClass("clicked")}).addClass("clickInited")}t.find(".sc-images a.custom-link").each(function(){I(this).closest(".item").addClass("has-link")});var h;var u=3;var m=false;if(E){h=false;u=1;if(J){m=true}}else{h=true}I(".sc-text-carousel").each(function(){var e=I(this).children(".wrap");var t=I(this);var s=false;if(E&&N.hasClass("text-carousel-adaptive")){s=true}if(I(this).children(".bg-full").not(".has-video").data("video-src")||I(this).children(".bg-full").not(".has-video").data("src")){I(this).addClass("has-video")}if(I(".item",this).length>1){e.addClass("no-single-item");e.slick({dots:true,infinite:true,speed:600,adaptiveHeight:s,autoplay:t.data("autoplay")===undefined?true:t.data("autoplay"),rtl:m,slidesToShow:1,autoplaySpeed:t.data("autoplay-speed")||4e3,vertical:h,verticalSwiping:h,swipe:Z,pauseOnDotsHover:true,touchMove:Z,draggable:Z})}});I(".sc-carousel").each(function(){var s=I(".item",this);var e=I(".img",this);var i=I(this);var t=i.children(".wrap");var a;var l=s.length;var n=1;i.attr("item-length",l);if(l<4){i.addClass("pc-no-swipe")}if(l>2){t.addClass("no-single-item");if(l>=10){a=""}else{a="0"}s.each(function(){I(this).attr("data-index",n);n++});t.on("init",function(e){var t=(B-s.height())*.5;i.find(".slick-track").css("top",t);i.find(".slick-current").addClass("ready")});i.children(".wrap:not(.slick-slider)").slick({dots:false,arrows:true,infinite:true,rtl:m,speed:500,autoplay:false,slidesToShow:u,vertical:h,verticalSwiping:h,swipe:Z,touchMove:Z,draggable:Z});i.append('<div class="sc-carousel-count"><i></i>/<em>'+a+l+"</em></div>");i.find(".sc-carousel-count i").text(a+i.find(".slick-current .item").data("index"));t.on("beforeChange",function(e){i.find(".slick-slide").removeClass("ready")});t.on("afterChange",function(e){i.find(".slick-current").addClass("ready");i.find(".sc-carousel-count i").text(a+i.find(".slick-current .item").data("index"))});I(H).on("resize",function(){var e=(B-s.height())*.5;i.find(".slick-track").css("top",e)});setTimeout(function(){i.find(".bg-full.editing").addClass("show").removeAttr("data-bg").siblings(".pic-loader").remove()},8e3)}});var v=function(){var t=false;if(E&&N.hasClass("text-carousel-adaptive")){t=true}I(".sc-text-carousel > .wrap.slick-slider,.sc-carousel > .wrap.slick-slider").slick("unslick");I(".sc-text-carousel > .wrap.no-single-item").each(function(){var e=I(this).closest(".ptsc");I(this).slick({dots:true,infinite:true,speed:600,autoplay:e.data("autoplay")===undefined?true:e.data("autoplay"),slidesToShow:1,rtl:m,adaptiveHeight:t,autoplaySpeed:e.data("autoplay-speed")||4e3,vertical:h,verticalSwiping:h,swipe:Z,touchMove:Z,draggable:Z})});I(".sc-carousel > .wrap.no-single-item").slick({dots:false,arrows:true,infinite:true,speed:400,autoplay:false,rtl:m,slidesToShow:u,vertical:h,verticalSwiping:h,swipe:Z,touchMove:Z,draggable:Z});I(".sc-text-carousel .item").css("height",B);I(".sc-text-carousel > .wrap.slick-slider").slick("setPosition")};I(H).on("resize",function(){if(E){h=false;u=1;if(J){m=true}if(V!=="Mobile"){V="Mobile";v()}}else{m=false;h=true;u=3;if(V!=="Pc"){V="Pc";v()}}});var C=t.find(".sc-gallery.pt-hover-on,.sc-photo-wall.pt-hover-on").not(".hover-inited");function b(){I(".vTarget",this).ptMediaPlayerCall("play")}function w(){I(".vTarget",this).ptMediaPlayerCall("pause")}C.each(function(){var e=I(this);e.find(".has-video .bg-full[data-video-src]").each(function(){I(this).after(I(this).clone().addClass("clone-bg"))});e.find(".clone-bg").removeAttr("data-video-src data-type data-volume");var t=e.find(".has-video .bg-full").not(".vTarget,.clone-bg,.for-retina");t.addClass("vTarget").ptMediaPlayer({autoplay:true,full:true,controls:false,ignoreMobile:true,removeVimeoControls:true,onStart:function(e){I(e).ptMediaPlayerCall("pause").ptMediaPlayerCall("mute")},loop:true});e.find(".has-video").hoverIntent({timeout:200,sensitivity:200,over:b,out:w})}).addClass("hover-inited");t.find(".sc-photo-wall.pt-video-popup-on .has-video .bg-full,.sc-gallery.pt-hover-on .has-video .bg-full").not(".v-btn-inited,.clone,.clone-bg").after('<div class="call-item-video btn-full"></div>').addClass("v-btn-inited");var y=t.find(".sc-photo-wall.pt-autoplay-on .has-video .bg-full");y.ptMediaPlayer({autoplay:true,full:true,controls:false,ignoreMobile:false,removeVimeoControls:true,loop:true});t.find(".sc-progress .item").each(function(){var e=I(this);var t=parseFloat(I(".number span",this).text()),s=e.data("bar-color"),i=e.data("bar-bgcolor");if(isNaN(t)){e.remove()}else{if(t>100){t=100}if(t<=0){t=0}I(".number",this).attr("data-percent",t);if(I(this).closest(".sc-progress").hasClass("style-01")){if(s){I(".progress-bar",this).css("background",s)}if(i){I(".bar-wrap",this).css("background",i)}}else{I(".text",this).prepend(I('<div class="clone-number">'+t+"</div>"))}}});var x;if(E){x="Mobile"}else{x="Pc"}I(H).on("resize",function(){if(E){if(x!=="Mobile"){x="Mobile";I(".sc-progress.style-01 .item.inited").removeClass("inited")}}else{if(x!=="Pc"){x="Pc";I(".sc-progress.style-01 .item.inited").removeClass("inited")}}});I.fn.extend({PtProgressChange:function(e){var t=this;var o=0;if(!I(".site-bg").hasClass("hide")){o=600}t.each(function(){var e=I(this);var t=e.closest(".ptsc");if(t.hasClass("style-01")){var s=parseFloat(e.find(".number").data("percent"));var i=e.find(".progress-bar");if(E){i.stop().delay(o).animate({width:s+"%"},600)}else{i.stop().delay(o).animate({height:s+"%"},600)}}else if(t.hasClass("style-02")){var a=N.data("color");var l="rgba(166,166,166,.2)";var n=e.data("bar-color");var r=e.data("bar-bgcolor");if(n){a=n}if(r){l=r}e.find(".number").pieChart({size:600,lineWidth:10,barColor:a,trackColor:l})}e.addClass("inited")});return this}});var k=true;var M=false;var S=null;var T=I(".pt-filter");T.each(function(){if(I(this).find("li").length>1){I(this).closest(".ptsc").addClass("pt-has-filter")}I(this).find("li a").each(function(){I(this).after(I(this).clone().addClass("full"))})});var S=I(".pt-has-filter");if(T.length>1){T.remove();console.log("Multiple list has filters are not supported")}if(I(".pic-list.list-justify-off").length>0){k=false}if(S.find(".pt-filter li").length>0&&!U){M=true}if(S.find(".pt-filter").length==1&&U&&!E&&I(".pt-has-filter ~ .ptsc").length>0){I(".pt-filter").addClass("hide")}if(I(".ptsc-list > .wrap .ptsc").length>0){var P=I(".ptsc-list > .wrap > .ptsc").length>1;X.not(".inited-for-hs").append(K).ptHScroller({contentTarget:".ptsc-list",wrapTarget:".wrap",viewportTarget:".item",viewportAddClass:".inviewport",wheelTarget:I(".main-content"),useScroller:true,enableViewport:true,needButton:true,buttonScrollPercent:.35,checkWindowSize:!H.ptKeepHorizontal,scrollSpeed:500,scrollEase:"quintOut",ignoreScrollerWidth:false,onScroll:function(e,t){I(".sc-progress .item.inviewport:not(.inited)").PtProgressChange();I(".sc-images .item.inviewport .bg-full:not(.show),.sc-gallery .item.inviewport .bg-full:not(.show),.sc-photo-wall .item.inviewport .bg-full:not(.show)").PtBgConvert();I(".pic-main .item.inviewport .bg-full:not(.show),.blog-main .item.inviewport .bg-full:not(.show)").PtBgConvert();I(".pic-list.row-two > .wrap,.pic-list.row-three > .wrap,.sc-gallery.row-two-auto,.sc-gallery.row-three-auto").ptFlexRowCall("setScrollPercent",[e,t]);if(M&&P&&!J&&S.position()){var s=S.width();var i=s+S.position().left-D;if(s<D){S.addClass("filter-no-fixed")}else{S.removeClass("filter-no-fixed");if(t.scrollX>i){if(!S.hasClass("filter-hide")){S.addClass("filter-hide")}}else{if(S.hasClass("filter-hide")){S.removeClass("filter-hide")}}}}}}).ptHDragger({disabled:!N.hasClass("h-drag-enabled"),checkEdge:!N.hasClass("h-drag-uncheck-edge"),dragTweenTime:G,clickTolerance:10,dragEase:Q,speedRatio:.35,ignoreElement:"textarea,input,form,.close-single,.sc-map"}).addClass("inited-for-hs");I(".custom-link,a.btn").on("click",function(){var e=I(this).attr("href");if(I(this).attr("target")=="_blank"){return}if(e&&e.indexOf("#move=")===0){var t=parseFloat(e.substring("#move=".length));if(!isNaN(t)){X.filter(".inited-for-hs").ptHScrollerCall("scroll",[t,1])}H.location.hash=""}});I(".pic-list.row-two.pic-style-02 > .wrap:not(.initde-for-flex)").ptFlexRow({wrapClass:".pic-main",itemTarget:".item",viewTarget:I(".main-content>.ptsc-list"),rows:2,alignType:1,useJustified:k,onInit:function(){X.filter(".inited-for-hs").ptHScrollerCall("enableViewport",true)},onResizeAfter:function(e){if(L.hasClass("retina")){j()}if(e){X.filter(".inited-for-hs").ptHScrollerCall("resize")}}}).addClass("initde-for-flex");I(".pic-list.row-three.pic-style-02 > .wrap:not(.initde-for-flex)").ptFlexRow({wrapClass:".pic-main",itemTarget:".item",viewTarget:I(".main-content>.ptsc-list"),rows:3,alignType:1,useJustified:k,onInit:function(){X.filter(".inited-for-hs").ptHScrollerCall("enableViewport",true)},onResizeAfter:function(e){if(L.hasClass("retina")){j()}if(e){X.filter(".inited-for-hs").ptHScrollerCall("resize")}}}).addClass("initde-for-flex")}t.find(".sc-images .item.inviewport .bg-full:not(.show),.sc-gallery .item.inviewport .bg-full:not(.show),.sc-carousel .bg-full:not(.show),.sc-photo-wall .item.inviewport .bg-full:not(.show)").PtBgConvert();I("html:not(.win-v) .sc-progress .item.inviewport:not(.inited),html.win-v .sc-progress .item:not(.inited)").PtProgressChange();I(H).on("resize",function(){I(".sc-progress .item:not(.inited)").PtProgressChange()});t.find(".sc-gallery:not(.initde-for-flex)").each(function(){var e=I(this);var t;if(e.hasClass("row-two-auto")||e.hasClass("row-three-auto")){if(e.hasClass("row-two-auto")){t=2}if(e.hasClass("row-three-auto")){t=3}e.ptFlexRow({wrapClass:".wrap",itemTarget:".item",rows:t,alignType:1,useJustified:k,onInit:function(){X.filter(".inited-for-hs").ptHScrollerCall("enableViewport",true)},onResizeAfter:function(e){if(e){X.filter(".inited-for-hs").ptHScrollerCall("resize")}}})}}).addClass("initde-for-flex");t.find(".sc-gallery:not(.pt-hover-on) .has-video .bg-full:not(.vTarget),.sc-photo-wall:not(.pt-hover-on):not(.pt-autoplay-on) .has-video .bg-full:not(.vTarget)").after('<div class="call-item-video v-ctrl"></div>');var _='<div class="v-mobile-play v-ctrl"></div>';var A=t.find(".sc-mixbox .has-video .bg-full:not(.vTarget),.sc-banner.has-video .bg-full:not(.vTarget),.sc-text-carousel.has-video .bg-full:not(.vTarget),.sc-subscribers.has-video .bg-full:not(.vTarget)");A.after(_);A.addClass("vTarget").ptMediaPlayer({autoplay:true,full:true,controls:false,ignoreMobile:false,removeVimeoControls:true,onStart:function(){A.addClass("ready");A.closest(".has-video").addClass("v-ready")},loop:true});i.addClass("inited");a.addClass("inited");d.addClass("inited");c.addClass("inited")};I(".ptsc").eq(0).addClass("first-sc");de();o("normal");if(I(".single-root.style-02 .ptsc").length>0){I(".single-root.inited-for-hs").ptHScrollerCall("resize")}setTimeout(function(){var t=H.sbi_custom_js;H.sbi_custom_js=function(){if(t){t()}var e=function(){if(E){I(".ptsc #sb_instagram .sbi_item").removeAttr("style")}else{I(".ptsc #sb_instagram .sbi_item").each(function(){var e=I(this).outerHeight();I(this).css("width",e)})}};e();I(H).on("resize",e)}},0);I(".blog-list:not(.style-02) .blog-main .img").addClass("hoverElems").ptElasticHover({offset:10,scale:1});I(".blog-list.style-02 .blog-main .item:not(.has-hover-image):not(.has-item-video) .img").addClass("hoverElems").ptElasticHover({target:".bg-full",offset:4,scale:1.05});I(".blog-list.style-02 .blog-main .item.has-hover-image .img").addClass("hoverElems").ptElasticHover({target:".img-addition",offset:4,scale:1.05});if(I(".ptsc-list").length==0&&I(".blog-list .item").length>0){X.addClass("inited").append('<div class="pt-mouse-scroll-root"><div class="list-scroller"><div class="list-scroller-target"></div></div></div>').ptHScroller({contentTarget:".blog-list",wrapTarget:".wrap",viewportTarget:".item",viewportAddClass:".inviewport",wheelTarget:H,useScroller:true,scrollOffset:0,enableViewport:true,checkWindowSize:!H.ptKeepHorizontal,scrollSpeed:500,scrollEase:"quintOut",ignoreScrollerWidth:false,onScroll:function(e){I(".blog-list .item.inviewport .bg-full:not(.show)").PtBgConvert()}}).ptHDragger({disabled:!N.hasClass("h-drag-enabled"),checkEdge:!N.hasClass("h-drag-uncheck-edge"),dragTweenTime:G,clickTolerance:10,dragEase:Q,speedRatio:.35,ignoreElement:"textarea,input,form,.close-single,.sc-map"})}I(".blog-main .item.inviewport .bg-full:not(.show)").PtBgConvert();function j(){var e;I(".pic-list.row-two:not(.gap-small):not(.gap-large) .pic-main").each(function(){if(I(".item",this).length>0){e=I("item",this).height();if(!E){I(".fr-item-container",this).css("height",e)}else{I(".fr-item-container",this).css("height","auto")}}})}if(I(".pic-main .item").length>0){I(".pic-main .item.inviewport .bg-full:not(.show)").PtBgConvert();I(".pt-filter li").on("click",function(){var e=I(this);var t=I(this).closest(".pt-filter");var s=I(this).closest(".ptsc");t.find("li").removeClass("active");I(this).addClass("active");s.find(".pages").stop().animate({opacity:0},200);s.find(".pic-main").stop().animate({opacity:0},200,function(){if(e.attr("data-filter")=="*"){s.find(".pic-main .item.hidden").removeClass("hidden")}else{var i=e.data("filter");s.find(".pic-main .item:not(.clone-page-header)").each(function(){var e=I(this);var t=I(this).data("filter");var s=t.split(" ");if(s.indexOf(i)>-1){e.removeClass("hidden")}else{e.addClass("hidden")}})}});setTimeout(function(){if(!E){I(H).trigger("resize",[true])}setTimeout(function(){s.find(".pic-main,.pages").stop().animate({opacity:1},200)},50)},250)})}function d(){I(".vTarget",this).ptMediaPlayerCall("play")}function c(){I(".vTarget",this).ptMediaPlayerCall("pause")}if(!Y){I(".video-addition .bg-full:not(.vTarget)").addClass("vTarget").ptMediaPlayer({autoplay:true,full:true,controls:false,ignoreMobile:true,removeVimeoControls:true,onStart:function(e){I(e).ptMediaPlayerCall("pause")},loop:true});I(".pic-main .has-item-video .inner-wrap,.blog-list .has-item-video .img").hoverIntent({timeout:200,sensitivity:200,over:d,out:c})}I(".widget_media_gallery").each(function(){var e=I(".gallery-icon > a",this).attr("href");if(e&&(e.indexOf(".jpg")>-1||e.indexOf(".gif")>-1||e.indexOf(".png")>-1||e.indexOf(".jpeg")>-1)){I(this).addClass("iv");I(".gallery-item",this).each(function(){I(this).attr("data-src",I("a",this).attr("href"));I("a",this).removeAttr("href")})}});I(".widget_media_gallery.iv").ptImageViewer({itemSelector:".gallery-item",fadeTime:600,loop:true,openClass:"iv-for-widgets",skinStyle:"dark"});I(".site-bg.has-bg:not(.video-bg)").ptHParallaxBg({direct:1,fragmentWidth:1e3,fragments:[50,100,150,200,250,300,350,400,450,500],targetClass:".bg-full",scroller:I(".inited-for-hs:not(.for-ajax)")});if(I(".site-bg.video-bg .bg-full").data("video-src")||I(".site-bg.video-bg .bg-full").data("src")){I(".site-bg.video-bg .bg-full").addClass("vTarget").ptMediaPlayer({autoplay:true,full:true,controls:false,ignoreMobile:false,removeVimeoControls:true,loop:true})}X.filter(".inited-for-hs").ptHScrollerCall("resize");I(".pic-list.ajax .pic-main a.full:not(.call-video-popup),.blog-list.ajax .blog-main .pt-h a,.blog-list.ajax .blog-main a.full").addClass("ajax-link");var h=function(e){var t=I(this);e=e||{};var s=this.href||t.data("href");if(t.hasClass("ajax-link")){if(e.ctrlKey&&s){e.preventDefault();e.stopPropagation();H.open(s)}return}if(t.hasClass("call-video-popup")||t.hasClass("ajax_add_to_cart")||t.hasClass("remove_from_cart_button")||t.hasClass("iv-link")||t.hasClass("native-link")){return}if(H.ptPreventLink){H.ptPreventLink=false;return}if(!s||s==="#"||s.indexOf("#move=")>-1){return}var i=decodeURIComponent(s).replace(" ","");if(i.indexOf("t=_blank")>-1||i.indexOf("target=_blank")>-1){e.preventDefault();H.open(s);return}var a=["mailto:","tel:","sms:","intent:"];var l=a.length;for(var n=0;n<l;n++){if(s.indexOf(a[n])===0){return}}if(e.ctrlKey){e.preventDefault();H.open(s);return}if(this.target==="_blank"||t.hasClass("zoom")||t.hasClass("play")){if(!this.href){if(this.target==="_blank"){H.open(s)}else{H.location.href=s}}return}var r=s.lastIndexOf("/");if(r>-1){var o=s.substring(r+1);r=o.indexOf("#");if(r>-1){return}}if($&&O(s)){return}e.preventDefault();if(H.ptRemoveHandleLink||N.hasClass("remove-page-loading")){H.location.href=s}else{I(".site-loader").removeClass("animate-hide").fadeIn(20,"easeOutQuad",function(){if(I(".site-loader .loader-img").length>0){I(".site-loader").addClass("leaving").removeClass("hide");I(".site-loader .loader-img").delay(400).animate({opacity:"1"},200)}else{I(".site-loader").removeClass("hide").addClass("leaving")}});setTimeout(function(){H.location.href=s},600)}};I(".ptsc:not(.sc-custom-html):not(.sc-rev-slider) a, li.product a,"+".pt-header a, .m-header a,"+".hidden-menu a, .pt-popup a,"+".single-nav a, .single-related a, .single-meta a,"+".woocommerce-MyAccount-navigation a, a.woocommerce-Button, a.wc-backward,"+"a[data-href]").not(".comment-reply-link, .not-fade-link").on("click",h);ce();F.children(".ajax-bg").after('<div class="ajax-mask"></div>');var f=function(l){function t(e){var t=F.find(".ajax-target");var s=I(e);t.append(s);N.trigger("ajax-loaded-before",[s,l]);if(F.hasClass("has-gallery")){NProgress.done();var i="dark";if(F.hasClass("ajax-text-black")){i="light"}t.ptImageViewer({itemSelector:".ajax-gallery-image",fadeTime:600,loop:true,showThumb:true,skinStyle:i,closeHandler:function(){I(".close-single").trigger("click")}});t.ptImageViewerCall("open")}else{if(F.hasClass("ajax-text-black")){F.addClass("text-black")}else if(F.hasClass("ajax-text-white")){F.addClass("text-white")}t.find(".single-root").addClass("for-ajax");t.find(".single-root.style-01").removeClass("style-01").addClass("style-02");N.addClass("show-ajax");NProgress.done();re();oe();t.find(".ptsc").eq(0).addClass("first-sc");de();o("ajax");le();if(!N.hasClass("lightbox-type-02")){t.addClass("hasScGallery").ptImageViewer({itemSelector:".sc-gallery.lightbox .item:not(.has-video) a.full,.sc-photo-wall .sub-item:not(.has-video) a[data-src]",fadeTime:600,loop:true,openClass:"iv-for-widgets",skinStyle:"dark"})}if(N.hasClass("lightbox-type-02")){if(t.find(".sc-gallery.lightbox").length>0){t.addClass("hasScGallery").ptImageViewer({itemSelector:".sc-gallery.lightbox .item:not(.has-video) a.full",fadeTime:600,loop:true,openClass:"iv-for-widgets",skinStyle:"dark"})}t.find(".sc-photo-wall.lightbox").ptImageViewer({itemSelector:".sub-item:not(.has-video) .img a[data-src]",fadeTime:600,loop:true,openClass:"iv-for-widgets",skinStyle:"dark"})}F.find(".sc-text-carousel .item").css("height",I(".single-roll-inner").height());F.find(".sc-text-carousel > .wrap.slick-slider").slick("setPosition");if(I(".single-header.raw-proportion").length==0){ee()}I(".single-root.inited-for-hs").ptHScrollerCall("resize");F.find(".sc-banner .text.para-inited").ptElementParallaxCall("resize");t.find(".single-nav a.full,.single-related a.full").addClass("ajax-footer-a for-nav");t.find("a.ajax-footer-a").on("click",function(e){var t=I(this).data("href")||this.href;e.preventDefault();e.stopPropagation();F.children(".ajax-bg").css("background-color","");var s=J?{opacity:0,right:"50px"}:{opacity:0,left:"50px"};I(".single-root").stop().animate(s,400,"easeOutQuad",function(){NProgress.start();NProgress.configure({easing:"ease",speed:500});I(".single-type-video .single-header .bg-full").ptMediaPlayerCall("dispose",true);I(".single-root").remove();N.removeClass("single-type-02");if(!$&&!H.__pt_not_handle_ajax_history){try{var e=history.state;if(e&&e.callAJAX){history.back()}}catch(e){}}setTimeout(function(){f(t)},500)})})}if(s.data("ajax-bg-color")){var a=s.data("ajax-bg-color");F.children(".ajax-bg").css("background-color",a)}ce(s);N.trigger("ajax-loaded",[s,l]);if(!$&&!H.__pt_not_handle_ajax_history){try{history.pushState({callAJAX:true,url:l},"",l)}catch(e){}}}var e=F.hasClass("has-gallery");var s="gallery="+(e?"1":"0")+",url="+l;var i=se.getData(s);if(i){t(i)}else{I.ajax({url:l,type:"get",dataType:"text",data:{single_ajax:1,is_gallery:e},success:function(e){se.setData(s,e);t(e)},error:function(e){console.log("AJAX load single error: "+e);I(".close-single").trigger("click")}})}};I(".ajax-link").on("click",function(e){if(e&&e.ctrlKey){return}I(".ajax-target").empty();var t=I(this).closest(".ptsc");F.removeClass("ajax-text-black ajax-text-white has-gallery");if(t.hasClass("ajax-text-white")){F.addClass("ajax-text-white")}else if(t.hasClass("ajax-text-black")){F.addClass("ajax-text-black")}else{if(N.hasClass("site-dark")){F.addClass("ajax-text-white")}else if(N.hasClass("site-light")){F.addClass("ajax-text-black")}}if(t.hasClass("ajax-gallery")){F.addClass("has-gallery")}e.preventDefault();e.stopPropagation();var s=I(this).data("href")||this.href;if(!s){return}var i=I(this).closest(".item");if(i.data("ajax-bg-color")){var a=i.data("ajax-bg-color");F.children(".ajax-bg").css("background-color",a)}F.fadeIn(20,function(){NProgress.start();NProgress.configure({easing:"ease",speed:500});F.children(".ajax-bg").addClass("show");if(F.hasClass("has-gallery")){N.addClass("single-iv-open")}setTimeout(function(){f(s)},500)})});I(".close-single").on("click",function(){NProgress.done();F.children(".ajax-bg").addClass("temp-trans");setTimeout(function(){F.removeClass("ajax-text-black ajax-text-white has-gallery");N.removeClass("single-iv-open");F.children(".ajax-bg").removeClass("show temp-trans");F.fadeOut(20);F.children(".ajax-bg").css("background-color","")},600);F.find(".single-root").stop().animate({opacity:0,left:"-50px"},400,"easeOutQuad",function(){F.find(".single-type-video .single-header .bg-full").ptMediaPlayerCall("dispose",true);F.find(".ptbar-outerWrap").ptBarCall("dispose");F.find(".single-root").remove();F.find(".ajax-target").empty();N.removeClass("show-ajax single-type-02");N.trigger("ajax-closed")});I(".ajax-content.has-gallery .ajax-target,.ajax-target.hasScGallery,.ajax-target .sc-photo-wall.lightbox").ptImageViewerCall("dispose");I(".ajax-content.has-gallery .ajax-target").empty();if(!$&&!H.__pt_not_handle_ajax_history){try{var e=history.state;if(e&&e.callAJAX){history.back()}}catch(e){}}});X.find(".list-scroller").on("mousedown",function(){N.addClass("pt-mousedown")});I(document).on("mouseup",".pt-mousedown",function(){I("body.pt-mousedown").removeClass("pt-mousedown")});if(!!H.ActiveXObject||"ActiveXObject"in H||navigator.userAgent.indexOf("Edge")>-1){var p=H.__pt_theme_root_url;I(".s-btn.s-btn-prev").css("cursor",'url("'+p+'/data/images/left.ico"),pointer');I(".s-btn.s-btn-next").css("cursor",'url("'+p+'/data/images/right.ico"),pointer');I(".click-layer,.close-single,.close-cate-popup").css("cursor",'url("'+p+'/data/images/close.ico"),pointer')}if(X.hasClass("no-scroll")||I(".single-root").hasClass("no-scroll")){N.removeClass("pt-scroll-guide")}try{if(H.localStorage&&H.localStorage.getItem("pt-scroll-tips-hidden")==="1"){N.removeClass("pt-scroll-guide")}}catch(e){}var g=I(".ptsc.need-wait-load .bg-full");var u=g.length;var m=function(){if(u==0){v()}else{u--;g.imagesLoaded({background:R?".img-bg-full":true},m)}};var v=function(){setTimeout(function(){if(I(".site-loader .loader-img").length>0){I(".site-loader .loader-img").animate({opacity:"0"},200,function(){I(".site-loader").addClass("hide")})}else{I(".site-loader").addClass("hide")}if(U){I(H).trigger("resize",[true])}},250);setTimeout(function(){I(".site-loader").fadeOut(20,"easeOutQuad",function(){I(".site-loader").addClass("animate-hide")});X.filter(".inited-for-hs").ptHScrollerCall("resize");if(N.hasClass("pt-scroll-guide")){var e=I(".pt-scroll-tips .wrap");e.addClass("show-img");e.fadeIn(0,function(){e.animate({bottom:"60px",opacity:"1"},500)});if(e.length>0){var t=I(".pt-scroll-tips").data("timeup");setTimeout(function(){I(".pt-scroll-tips .wrap").fadeOut(200,function(){I(".pt-scroll-tips").remove()})},t)}}},1e3);if(I(".pic-list .clone-page-header").length>0){I(H).trigger("resize",[true])}};var C=function(){I(".pt-scroll-tips .wrap").fadeOut(200,function(){I(".pt-scroll-tips").remove()});try{var e=H.localStorage;if(e){e.setItem("pt-scroll-tips-hidden","1")}}catch(e){}};X.find(".list-scroller").one("mousedown",function(){if(!H.DONT_HIDE_SCROLL_GUIDE_BY_PRESSING_SCROLLER){C()}});I(".close-tips").on("click",function(){C()});var b=function(){var i=[];var e=I(".sc-section-title h1,.clone-page-header h1,.sc-fixed-text .pt-h");if(e.length>0){e.each(function(){var e=I(this).css("font-family");var t=e.replace(/,\s*/g,",").split(",");if(t.length>0){var s=t[0];if(i.indexOf(s)<0){i.push(s)}}})}return i};var w=b();if(w.length>0){var y=3e3;var x=[];w.forEach(function(e){var t=new FontFaceObserver(e);x.push(t.load(null,y))});Promise.all(x).then(function(e){m()}).catch(function(e){m()})}else{m()}I(H).on("keyup",function(e){if(e.keyCode===27){var t=I(".popup-player");if(t.length>0){t.find(".close").trigger("click")}else if(N.hasClass("show-ajax")){I(".close-single").trigger("click")}}});var k;if(N.hasClass("use-pt-popup")){I(".header-additional").append('<div class="pt-popup-btn"><i class="btn call-popup"></i><em></em></div>');if(I(".pt-popup").data("btn-text")){k=I(".pt-popup").data("btn-text");I(".pt-popup-btn em").text(k)}else{I(".pt-popup-btn em").remove()}if(I(".pt-popup").hasClass("icon-style-02")){I(".pt-popup-btn").addClass("icon-02")}if(q.hasClass("icon-style-01")){I(".pt-popup-btn").addClass("icon-outline")}I(".m-call-menu").after(I(".pt-popup-btn").clone());I(".pt-popup").append('<div class="pt-popup-widgets"></div>');I(".pt-popup-widgets").append(I(".header-additional .copyright").clone()).append(I(".header-additional .pt-social").clone())}var M=I(".pt-popup > .wrap"),S=I(".pt-popup"),T;function P(){var e;if(I(".pt-popup .bg").length>0){e=M.outerHeight()+parseInt(S.css("padding-top"))*2;if(e<z){e=z;S.removeClass("overflow")}else{S.addClass("overflow")}I(".pt-popup .bg").css("height",e-10)}}I(H).on("resize",P);if(I(".pt-popup .img .bg-full").length==0){S.addClass("no-img")}if(I(".pt-popup .text").length==0){S.addClass("no-text")}if(S.data("color")){T=S.data("color")}I(".pt-popup-btn,.call-popup-clone").on("click",function(){if(S.data("color")){M.css("background-color",T)}S.fadeIn(0,function(){N.addClass("show-popup")});P()});I(".pt-popup .bg,.close-pt-popup").on("click",function(){M.css("transition","transform 0.4s cubic-bezier(0.9, 0.5, 0.4, 0.9),opacity 0.35s");S.addClass("temp");setTimeout(function(){S.fadeOut(0,function(){N.removeClass("show-popup");S.removeClass("temp");M.removeAttr("style")})},420)});I(".pt-popup .bg-full").PtBgConvert();if(q.find(".header-additional .wpml-ls").not(".inited").length>0&&N.hasClass("pt-default-lang-switcher")){var _=q.find(".header-additional .wpml-ls");_.addClass("inited");q.find(".header-additional").append(_);if(_.find("img.wpml-ls-flag").length==0){_.addClass("no-flag")}if(_.hasClass("wpml-ls-legacy-dropdown")||_.hasClass("wpml-ls-legacy-dropdown-click")){_.append('<ul class="pt-wpml-list"></ul>');var A=_.find(".pt-wpml-list");_.find("li").each(function(){if(I(this).children("a").length>0){A.append(I(this).clone())}});A.find("li ul").remove()}if(_.hasClass("wpml-ls-legacy-dropdown-click")||Y){_.on("click",function(){if(!W){I(this).toggleClass("show-sub")}})}}var O=function(e){if(!e){return true}var t=H.location;var s=t.href;s=s.substring(t.protocol.length);s=s.substring(0,s.length-t.hash.length);if(s.indexOf("#")>-1){s=s.substring(0,s.indexOf("#"))}s=s.replace(/\/*$/g,"");if(e.indexOf("http:")===0){e=e.substring("http:".length)}else if(e.indexOf("https:")===0){e=e.substring("https:".length)}if(e.indexOf("#")>-1){e=e.substring(0,e.indexOf("#"))}e=e.replace(/\/*$/g,"");return s===e};!function(){if(!$){return}var n=function(e,t){if(t===undefined){t=true}var s=X.filter(".pt-hscroller-element");if(s.length===0){s=X.find(".pt-hscroller-element")}if(s.length===0||s.hasClass("no-scroll")){return false}if(e){s.ptHScrollerCall("scrollToElement",[e,t])}else{s.ptHScrollerCall("scrollTo",[0,t])}return true};var r=function(e,t){if(t===undefined){t=true}var s=e?Math.round(I(e).position().top-I(H).height()/4):0;var i=Math.round(X.scrollTop());if(i!==s){X.animate({scrollTop:s+"px"},t?I("body").data("smoothing-scroll-speed")||600:0)}return true};var o=q.find("#main-menu-list > .menu-item");q.find("#main-menu-list").each(function(){var e=I(this).children(".menu-item-home");var t=e.length;if(t>1){var s=[];e.each(function(){var e=I(this).children("a").attr("href")||"";if(e.indexOf("#")>-1&&e.substring(e.indexOf("#")+1)){s.push(this)}});if(s.length===t){s.shift()}s.forEach(function(e){I(e).removeClass("menu-item-home current_page_item current-menu-item current-menu-ancestor")})}});var l=q.find("#main-menu-list > .menu-item-home");var d=function(e){var t=e.closest("nav");t.children("ul").find(".menu-item").removeClass("current_page_item current-menu-item current-menu-ancestor");e.addClass("current_page_item current-menu-item current-menu-ancestor");var s=e;var i=0;while(s.parent().length>0&&s.parent().hasClass("sub-menu")){s=s.parent().closest(".menu-item");s.addClass("current_page_item current-menu-item current-menu-ancestor");if(++i>5){break}}};!function e(){var t=H.location.hash;if(t){var a=t.substring(1);var s=document.getElementById(a);if(s){o.find("a").each(function(e){var t=this.href;if(t.indexOf("#")>-1){var s=t.substring(t.indexOf("#")+1);if(s===a){d(I(this).parent());var i=document.getElementById(a);if(i){n(i,false)||r(i,false)}}}})}}else if($){var i=q.find("#main-menu-list .menu-item.current_page_item.current-menu-item, #main-menu-list .menu-item.current-menu-ancestor");var l=i.length;if(l>1){i.each(function(e){if(e!==0){I(this).removeClass("current_page_item current-menu-item current-menu-ancestor")}})}}}();o.find("a").on("click",function(e){var t=this.href;var s=O(t);if(s&&t.indexOf("#")>-1){e.preventDefault();var i=t.substring(t.indexOf("#")+1);if(i){var a=document.getElementById(i);if(a){try{history.pushState({onepage:true,id:i},"",t)}catch(e){}d(I(this).parent());n(a)||r(a)}}}else if(s){e.preventDefault();try{history.pushState({onepage:true,id:i},"",t)}catch(e){}d(I(this).parent());n()||r()}});I(H).on("popstate",function(e){var t=e.originalEvent;var s=t.state;if(s&&s.callAJAX){return}if(s&&s.onepage){var i=s.id;if(i){var a=document.getElementById(i);if(a){o.find("a").each(function(e){var t=this.href;if(t.indexOf("#")>-1){var s=t.substring(t.indexOf("#")+1);if(s===i){d(I(this).parent())}}});n(a)||r(a)}}else{n()||r();d(l)}}else{n()||r();d(l)}})}();le();I(H).on("resize",le)});I(H).on("resize",function(e,t){if(t||!U){ne();de()}if(I("body.single,.ajax-target div").length>0){re()}if(N.hasClass("hidden-menu-open")){I(".close-hidden-menu").trigger("click")}I(".sc-banner .text.open .close-intro").trigger("click");I("header nav .sub-menu").each(function(){I(this).removeClass("hack-blur");var e=I(this).outerHeight();if(e%2!==0){I(this).addClass("hack-blur")}});setTimeout(function(){I(".ptbar-outerWrap").ptBarCall("resize")},50);I(".pt-swipe-root").ptSwipeCall("useDrag",W)});I(H).on("load",function(){setTimeout(function(){I(".inited-for-hs").ptHScrollerCall("resize")},500);I("header nav .sub-menu").each(function(){I(this).removeClass("hack-blur");var e=I(this).outerHeight();if(e%2!==0){I(this).addClass("hack-blur")}});I(".sc-banner .intro").each(function(){var e=I(this);var t=e.closest(".ptsc");var s=parseInt(e.css("line-height"));var i=s*4+10;var a=e.get(0).scrollHeight;if(a>i){t.addClass("overload");e.css({height:i})}else{e.removeAttr("style");t.removeClass("overload")}})})}(jQuery,window);
!function(c){"use strict";var d=(c("body").css("direction")||"").toLowerCase()==="rtl";c("select#billing_country, select#billing_state, select#shipping_country, select#shipping_state").on("select2:close",function(){c("html, .main-content").off("scroll.select2")});c(function(){var e=c(".m-header");c(".m-call-side").before('<i class="m-call-cart"><span class="cart-count"></span></i>');function t(){var e=c(".widget_shopping_cart_content .woocommerce-mini-cart").first().find("li").length;c(".cart-count").text(e);if(e==0){c(".cart-count").addClass("hide")}else{c(".cart-count").removeClass("hide")}}t();c(".m-call-cart").on("click",function(){e.find(".widget_shopping_cart_content").toggleClass("show")});function n(){if(e.length==0){return}if(c("body.m-mode").length>0){c(".pt-mini-cart.edited").removeClass("edited");c(".m-header-right:not(.edited)").append(c(".pt-mini-cart .widget_shopping_cart_content")).addClass("edited")}else{c(".m-header-right.edited").removeClass("edited");c(".pt-mini-cart:not(.edited)").append(e.find(".widget_shopping_cart_content")).addClass("edited")}}n();c(window).on("resize",n);function i(){c(".flex-control-thumbs:not(.edited)").addClass("edited").wrap('<div class="wc-flex-thumbs-wrap"></div>');c(".woocommerce-message,main#main > .woocommerce-error,.woocommerce-store-notice").on("click",function(){c(this).fadeOut(200)});t();n()}i();c(document.body).on("wc_fragments_loaded wc_fragments_refreshed",i);c(".flex-control-nav > li").on("touchend mouseup",function(e){var t=c(this);var n=this.parentNode.scrollWidth;var i=t.parent().width();var o=i>>1;var r=t.width();var a;if(this.offsetLeft!==undefined){a=this.offsetLeft}else{a=t.offset().left-t.parent().offset().left}var s;if(d){a=i-r-a;s=o-(a+r/2);if(s>0)s=0;if(s<i-n)s=i-n;s=Math.round(s);s=-s}else{s=o-(a+r/2);if(s>0)s=0;if(s<i-n)s=i-n;s=Math.round(s)}if(createjs&&createjs.Tween){if(this.parentNode.__tweenX===undefined)this.parentNode.__tweenX=0;createjs.Tween.get(this.parentNode,{override:true,onChange:function(e){var t=e.target;var n=t.target;c(n).css({transform:"translate3d("+n.__tweenX+"px, 0, 0)"})}}).to({__tweenX:s},600,createjs.Ease.quartOut)}else{t.parent().css({transform:"translate3d("+s+"px, 0, 0)"})}});c(window).on("resize",function(){setTimeout(function(){c("#primary .flex-viewport").height(c(".flex-active-slide a img").height())},400)})})}(jQuery);
!function(){"use strict";if(window.SR7??={},window._tpt??={},SR7.A??={},SR7.F??={},SR7.D??={},void 0!==SR7.A.transitionpack)return;function e(e,a){return"t1"!==a&&"t2"!==a&&(a="random"),"random"===a&&(a=Math.random()>.5?"t1":"t2"),"t1"===a?"1. - uv."+e:"uv."+e}SR7.A.transitionpack={cache:{},init:e=>["THREE","WEBGL"],prepareLayer:(e,a)=>{SR7.M[e];if("slidebg"!==a.subtype)return;const t=[],r=a?.tl?.in?.bg?.all?.[1]?.addOns?.tpack?.ef??void 0,n=a?.tl?.in?.bg?.all?.[1]?.addOns?.tpack?.dplm??1,s=SR7.A.transitionpack.dplmlib[n]?.src??void 0;return void 0!==r&&(t.push(_tpt.getShader("tpack",r,SR7.E.resources.tpackURL+"public/shaders/"+("fadeb"==r?"fade":r)+".glsl")),"hero"==e&&console.log("Load for Texture:",SR7.E.resources.tpackURL+"public/shaders/"+("fadeb"==r?"fade":r)+".glsl")),s&&t.push(new Promise((a=>{_tpt.registerImage(SR7.E.resources.tpackURL+"public/textures/"+s,1,(function(e){try{SR7.A.transitionpack.textures??={},SR7.A.transitionpack.textures[e.params.dplmid]=e.image}catch(e){console.log(e)}a()}),"tpack_textures_"+n+"_"+e+Math.round(100*Math.random()),{dplmid:n})}))),t},dplmlib:{1:{src:"transition/transition1.png"},2:{src:"transition/transition2.png"},3:{src:"transition/transition3.png"},4:{src:"transition/transition4.png"},5:{src:"transition/transition5.png"},6:{src:"transition/transition6.png"},7:{src:"displacement/disp1.jpg"},8:{src:"displacement/disp2.jpg"},9:{src:"displacement/disp3.jpg"},10:{src:"transition/transition7.png"},11:{src:"displacement/cracks.jpg"},12:{src:"displacement/tunnel.jpg"},13:{src:"displacement/waterfall.jpg"},14:{src:"displacement/wire.jpg"},15:{src:"displacement/zigzag.jpg"},16:{src:"displacement/paper.jpg"},17:{src:"transition/transition5v.png"}},addPASS:function(e,a){if(void 0!==SR7.WEBGL.postProcessing){switch(a.pp){case"GlitchPass":case"glitches":a.ppga=parseFloat(a.ppga),a.ppgs=parseFloat(a.ppgs),a.ppgr=parseFloat(a.ppgr),a.ppgl=parseFloat(a.ppgl),e.three.postRendering=SR7.WEBGL.postProcessing("GlitchPass",e.three.renderer,e.three.scene,e.three.camera,{seed:a.ppgs,amount:a.ppga,repeat:a.ppgr,len:a.ppgl});break;case"GlitchNoisePass":case"glitch2":e.three.postRendering=SR7.WEBGL.postProcessing("GlitchNoisePass",e.three.renderer,e.three.scene,e.three.camera,{duration:e.dur,width:e.width/_tpt.dpr,height:e.height/_tpt.dpr});break;case"BlurPass":case"blur":if("motion"===a.ppbt){var t={};"skew"==a.ef&&1==a.sh&&(t.name="m=qinticOut(m, 10.);",t.function="float qinticOut(float t, float power){ return 1.0 - pow(1. - t, power); }"),isNaN(Math.round(a.smartX))||isNaN(Math.round(a.smartY))||(e.three.postRendering=SR7.WEBGL.postProcessing("BlurPass",e.three.renderer,e.three.scene,e.three.camera,{left:Math.round(a.smartX),top:Math.round(a.smartY),width:e.width/_tpt.dpr,height:e.height/_tpt.dpr,intensity:.1,inlineEase:t}))}break;case"FilmPass":case"film":a.ppfn=parseFloat(a.ppfn),a.ppfs=parseFloat(a.ppfs),a.ppfh=parseFloat(a.ppfh),a.ppfbw="true"==a.ppfbw||1==a.ppfbw&&"false"!=a.ppfbw,e.three.postRendering=SR7.WEBGL.postProcessing("FilmPass",e.three.renderer,e.three.scene,e.three.camera,{noise:a.ppfn/100,scale:a.ppfs/100,size:a.ppfh,grayscale:a.ppfbw})}e.three.postRendering&&(e.three.postRendering.type=a.pp)}},fitCameraToObject:function(e,a){e.three.lastDim={width:e.width/_tpt.dpr,height:e.height/_tpt.dpr},e.three.camera.aspect=e.width/e.height,"cubetwist"===a.tpack.ef&&e.height>e.width&&(e.three.camera.aspect=e.height/e.width),e.three.CY=1/e.three.camera.aspect,e.three.camera.updateProjectionMatrix(),e.three.renderer.setSize(e.width/_tpt.dpr,e.height/_tpt.dpr,!1),SR7.D.transitions[e.callFromAnimatedCanvasUpdateEffect].fit(e),e.three.camera.fov=2*Math.atan(e.three.CY/(2*e.three.camera.position.z))*(180/Math.PI),e.three.camera.updateProjectionMatrix()},webGlSceneUpdate:function(e,a){e&&e.three&&e.three.canvas&&e.three.camera&&e.three.canvas.offsetHeight&&(void 0!==e.three.lastDim&&e.three.lastDim.width===e.width&&e.three.lastDim.height===e.height||SR7.A.transitionpack.fitCameraToObject(e,a),e.panzoom&&e._c?.canvas?.drawImg&&e._c.canvas.drawImg(e._c.canvas.cacheAltSrc,_tpt.dpr,!0),e._lC?.canvas?.pan&&e._lC?.canvas?.drawImg&&e._lC.canvas.drawImg(e._lC.canvas.cacheAltSrc,_tpt.dpr,!0),(e.video||e.panzoom)&&(e.three.texture.needsUpdate=!0),e.three.camera.updateProjectionMatrix(),e.three.renderer.render(e.three.scene,e.three.camera),e.three.postRendering&&e.three.postRendering.effectPass&&e.three.postRendering.effectPass.uniforms&&e.three.postRendering.effectPass.uniforms.progress&&(e.three.postRendering.effectPass.uniforms.progress.value=e.three.progress.value),e.three.postRendering&&e.three.postRendering.composer&&e.three.postRendering.composer.render(),e.three.postRendering&&e.three.postRendering.nodepost&&e.postRendering.nodepost.render(e.three.scene,e.three.camera,e.postRendering.frame),"spin"!==a.tpack.ef&&"rings"!==a.tpack.ef&&"perspective"!==a.tpack.ef&&"zoom"!==a.tpack.ef&&"blur"!==a.tpack.ef||void 0===a.tpack.ao||"none"===a.tpack.ao||function(e,a){var t=parseFloat(a.ox)/100,r=parseFloat(a.oy)/100;if("center"===a.ao)t+=(1-t-.5)*e.three.progress.value,r+=(1-r-.5)*e.three.progress.value;else if("inverse"===a.ao)t+=(1-t-t)*e.three.progress.value,r+=(1-r-r)*e.three.progress.value;else{var n="";a.ao,n="M0,0 C0,31 12.502,53.904 21,71.666 23.297,76.474 41.612,87.014 41.612,87.014 41.612,87.014 55.195,91.292 59.191,89.37 65.079,86.535 74.337,76.113 76.821,70.068 79.289,64.058 79.603,50.337 77.786,44.101 76.012,38.014 68.806,26.324 63.206,23.354 58.575,20.897 46.201,21.762 42.33,25.295 38.918,28.407 39.793,39.227 40.895,43.712 41.873,47.695 50.179,57.243 50.179,57.243";var s={x:0,y:0},i=_tpt.gsap.to(s,{motionPath:{path:n},ease:"none"});i.pause().progress(e.three.progress.value),t=s.x/100,r=1-s.y/100,i.kill(),i=null}"perspective"===a.ef&&(e.three.material.uniforms.angle.value=Math.atan2(.5-t,.5-r));e.three.material.uniforms.ox.value=t,e.three.material.uniforms.oy.value=r}(e,a.tpack))}},SR7.D??={},SR7.D.transitions??={},SR7.D.transitions.tpbasic={getBasic:()=>({addOns:{tpack:{sx:1,sy:1,sz:1,o:0,sr:1,rx:180,ry:180,rz:90,col:1,row:1,cgz:250,gz:250,gx:0,gy:0,ie:"power2.inOut",ige:"power2.inOut",pp:"none",ppbf:100,ppbm:4,ppba:20,ppbt:"motion",ppga:90,ppgr:5,ppgs:.3,ppgl:120,ppfn:80,ppfs:82,ppfh:256,ppfbw:!1,ef:"fade",dplm:1,mfl:0,dir:0,dbas:!1,tlt:0,rad:90,w:35,iny:1,x:0,y:0,z:"default",td:1,ref:.4,flo:30,twe:"simple",twa:0,twv:230,twz:30,twd:"left",twdi:30,tws:"rgba(0, 0, 0, 0.7)",twf:"rgba(0, 0, 0, 0.7)",prange:100,stri:30,strs:1,strf:1,sko:0,sh:!1,shx:0,shy:0,shz:0,shr:0,shv:80,roz:-2,ox:50,oy:50,cicl:"rgba(0, 0, 0, 0.3)",cish:0,cispl:4,cimw:!1,cio:"alternate",cico:!1,ciad:!1,chm1:"random",chm2:"random",chm3:"random",chm4:"random"}}}),buildTimeline:(e,a,t,r)=>{r.tpack=r.addOns.tpack,r.tpack.oy=100-parseInt(r.tpack.oy),t.dur=r.dur=r.d/100;let n=SR7.M[e]?.c?.leavingBG??!1;return t._c=a,t._lC=n,t.panzoom=a.canvas.pan,t.video=a.media||n&&n.media,SR7.WEBGL.cleanThree(n?n.el:a.el,t,".sr7-tpack-canvas"),t.three=SR7.WEBGL.getCanvas({class:"sr7-tpack-canvas"}),t.three.ms=r.d/1e3,n?n.el.appendChild(t.three.canvas):a.el.appendChild(t.three.canvas),t.three.planeAspectRatio=16/9,t.three.fov=150,SR7.A.transitionpack.webGlSceneUpdate(t,r),t.callFromAnimatedCanvasUpdateEffect=r.tr,t.three.renderer=new THREE.WebGLRenderer({canvas:t.three.canvas,alpha:!0}),t.three.renderer.setClearColor(16777215,0),t.three.camera=new THREE.PerspectiveCamera(t.three.fov,t.three.canvas.width/t.three.canvas.height,.1,1e3),t.three.camera.position.z=50,t.three.scene=new THREE.Scene,SR7.D.transitions[r.tr].init(t,r,a,e),t.onCompleteCallback=function(e,a,t){e.hideCanvasAnim=_tpt.gsap.to(e.three.canvas,.3,{opacity:0,onStart:function(){let e=SR7.M[t]?.c?.leavingBG??!1;e?e.canvas.canvas.style.display="block":a.canvas.canvas.style.display="block"},onComplete:function(){const r=e.panzoom&&a?.canvas?.pan?{x:a.canvas.pan.x,y:a.canvas.pan.y,rZ:a.canvas.pan.rZ,scale:a.canvas.pan.scale}:null;a.canvas.drawImg(a.canvas.cacheAltSrc,_tpt.dpr,!0),r&&(a.canvas.pan.x=r.x,a.canvas.pan.y=r.y,a.canvas.pan.rZ=r.rZ,a.canvas.pan.scale=r.scale,a.canvas.drawImg(a.canvas.cacheAltSrc,_tpt.dpr,!0));let n=SR7.M[t]?.c?.leavingBG??!1;SR7.M[t].current.id==a.skey&&"in"==e.scene?(SR7.WEBGL.cleanThree(a.el,e,".sr7-tpack-canvas"),n&&SR7.WEBGL.cleanThree(n.el,e,".sr7-tpack-canvas")):SR7.M[t].prev.id==a.skey&&"out"==e.scene?SR7.WEBGL.cleanThree(n.el,e,".sr7-tpack-canvas"):(SR7.A.transitionpack.cache[t]??={},SR7.A.transitionpack.cache[t][a.skey]={el:a.el,T:e}),SR7.D.transitions.tpbasic.fullCleanUp(t)}})},t.onInterruptCallback=(e,a,t)=>{let r=SR7.M[t]?.c?.leavingBG??!1;r?r.canvas.canvas.style.display="block":a.canvas.canvas.style.display="block";const n=e.panzoom&&a?.canvas?.pan?{x:a.canvas.pan.x,y:a.canvas.pan.y,rZ:a.canvas.pan.rZ,scale:a.canvas.pan.scale}:null;a.canvas.drawImg(a.canvas.cacheAltSrc,_tpt.dpr,!0),n&&(a.canvas.pan.x=n.x,a.canvas.pan.y=n.y,a.canvas.pan.rZ=n.rZ,a.canvas.pan.scale=n.scale,a.canvas.drawImg(a.canvas.cacheAltSrc,_tpt.dpr,!0))},_tpt.gsap.timeline({onUpdate:function(){SR7.D.transitions[r.tr].tick(t,a),SR7.A.transitionpack.webGlSceneUpdate(t,r)}})},fullCleanUp:e=>{if(SR7.A.transitionpack.cache[e]){let a=Object.keys(SR7.A.transitionpack.cache[e]);for(let t=0;t<a.length;t++)a[t]!==SR7.M[e].current.id&&a[t]!==SR7.M[e].prev.id&&(SR7.WEBGL.cleanThree(SR7.A.transitionpack.cache[e][a[t]].el,SR7.A.transitionpack.cache[e][a[t]].T,".sr7-tpack-canvas"),delete SR7.A.transitionpack.cache[e][a[t]])}},build:function(e,a,t){const{three:r}=e,{camera:n,scene:s}=r;r.CY=1/n.aspect,s.remove(r.light),s.add(r.light=new THREE.AmbientLight("#ffffff",1)),a.canvas.drawImg(a.canvas.cacheAltSrc,1,!0);let i=r.texture=new THREE.CanvasTexture(a.canvas.canvas);if(i.wrapS=THREE.RepeatWrapping,i.wrapT=THREE.RepeatWrapping,i.repeat.set(1,1),SR7.M[t]?.c?.leavingBG){let e=r.texture_leaving=new THREE.CanvasTexture(SR7.M[t].c.leavingBG.canvas.canvas);e.wrapS=THREE.RepeatWrapping,e.wrapT=THREE.RepeatWrapping,e.repeat.set(1,1),r.material_leaving=new THREE.MeshPhongMaterial({transparent:!0,map:e})}},init:async function(e,a,t,r){a.tpack.ef="fadeb"===a.tpack.ef?"fade":a.tpack.ef,SR7.D.transitions.tpbasic.build(e,t,r);let{uniforms:n,tpack:s}=await SR7.D.transitions.tpbasic.getUniforms(e,a),i=await _tpt.getShader("tpack",a.tpack.ef,SR7.E.resources.tpackURL+"public/shaders/"+s.ef+".glsl");"chaos"===a.tpack.ef&&(i=i.replace("#replaceChaos",n.replace),delete n.replace),n.src1={value:e.three.texture_leaving},n.src2={value:e.three.texture},n.progress={value:0},n.threshold={value:.1},n.resolution={value:new THREE.Vector4},n.displacement?.value&&(n.displacement.value.needsUpdate=!0);const p={extensions:{derivatives:"#extension GL_OES_standard_derivatives:enable"},side:THREE.DoubleSide,defines:n.defines||{},uniforms:n,vertexShader:"varying vec2 vUv;void main(){vUv=uv;gl_Position=projectionMatrix * modelViewMatrix * vec4(position, 1.0);}",fragmentShader:"#if __VERSION__ < 130 \n#define TEXTURE2D texture2D \n#else \n#define TEXTURE2D texture \n#endif\n"+i,uniformsNeedUpdate:!0};delete n.defines,e.three.material=new THREE.ShaderMaterial(p),e.three.material.transparent=void 0!==n.src1.value,SR7.D.transitions.tpbasic.planeAndFit(e,a),SR7.A.transitionpack.addPASS(e,s),SR7.D.transitions.tpbasic.updateResolution(e,s)},getTexture:(e=1)=>{let a=new THREE.Texture(SR7.A.transitionpack.textures[e]);return a.image=SR7.A.transitionpack.textures[e],a},getUniforms:function(e,t){let r=_tpt.extend({},t.tpack);return r.z="default"==r.z?"flat"==r.ef?100:"spin"==r.ef?0:250:r.z,r.smartX=SR7.F.getSpecialValue(r.x,void 0,e.sdir),r.smartY=SR7.F.getSpecialValue(r.y,void 0,e.sdir),r.smartZ=SR7.F.getSpecialValue(r.z,void 0,e.sdir),r.smartTilt=SR7.F.getSpecialValue(r.tlt,void 0,e.sdir),r.smartIntensity=SR7.F.getSpecialValue(r.iny,void 0,e.sdir),1==r.dbas&&(r.dir=1===e.sdir?r.dir:0==r.dir?1:1==r.dir?0:2==r.dir?3:2),{uniforms:a[r.ef]&&a[r.ef](e,r)||{},tpack:r}},planeAndFit:function(e,a){e.three.plane=SR7.WEBGL.getPlane(e.three.material),e.three.scene.add(e.three.plane),SR7.A.transitionpack.fitCameraToObject(e,a)},updateResolution:function(e){e.three.material.uniforms.resolution.value.x=e.width/_tpt.dpr,e.three.material.uniforms.resolution.value.y=e.height/_tpt.dpr,e.three.material.uniforms.resolution.value.z=1,e.three.material.uniforms.resolution.value.w=1,e.three.imageAspect=e.three.texture.image.height/e.three.texture.image.width,e.video||e.panzoom||(e.height/e.width>this.imageAspect?e.three.material.uniforms.resolution.value.z=e.width/e.height*e.three.imageAspect:e.three.material.uniforms.resolution.value.w=e.height/e.width/e.three.imageAspect)},extendTimeLine:function(e,a,t){var r=new _tpt.gsap.timeline;return e.three.progress={value:1},r.add(_tpt.gsap.from(e.three.progress,parseInt(a.d)/1e3,{value:0,delay:.05,ease:a.tpack.ie})),r},tick:function(e,a){e.three.material&&(e.three.material.uniforms.progress.value=e.three.progress.value)},fit:function(e){e.three.plane&&e.three.plane.scale.set(1,e.three.CY)}};const a={fade:(e,{mfl:a,dplm:t})=>{const r=!!a&&(1===a||1!==e.sdir),n=17===t||6===t;return{flipx:{value:!n&&r},flipy:{value:!!n&&r},displacement:{value:SR7.D.transitions.tpbasic.getTexture(t)}}},wave:(e,{rad:a,w:t,dplm:r})=>({radius:{value:parseInt(a)/100,min:.1,max:2},width:{value:parseInt(t)/100,min:0,max:1},displacement:{value:SR7.D.transitions.tpbasic.getTexture(r)}}),burnover:(e,{dplm:a})=>({displacement:{value:SR7.D.transitions.tpbasic.getTexture(a)}}),burn:(e,{dir:a,smartIntensity:t})=>({dir:{value:a},intensity:{value:.03*t}}),chaos:(a,{chm1:t,chm2:r,chm3:n,chm4:s,smartX:i,smartY:p,smartIntensity:l,prange:o})=>{const c=`\n\t\t\tvw.x=${e("y",t)} * ${e("x",r)} * intensity;\n\t\t\tvw.y=${e("x",n)} * ${e("y",s)} * intensity;\n\t\t\t`;return{left:{value:Math.round(i)},top:{value:Math.round(p)},intensity:{value:parseFloat(l)/10},prange:{value:parseInt(o)/100*.5},replace:c}},stretch:(e,{strs:a,smartX:t,smartY:r,smartIntensity:n,stri:s,strf:i})=>{const p=parseInt(a)/10,l=_tpt.gsap.utils.mapRange,o=p<1?l(0,1,100,10,p):l(1,10,10,2,p);return{left:{value:Math.round(t)},top:{value:0===t?Math.round(r):0},dir:{value:0===t?2:1},intensity:{value:n},twistIntensity:{value:parseInt(s)/10},twistSize:{value:o},flipTwist:{value:i?-1:1}}},skew:(e,{smartX:a,smartY:t,smartIntensity:r,sko:n,prange:s,sh:i,shx:p,shy:l,shz:o,shr:c,shv:u})=>{const d=a&&t?0:a?1:2,v=SR7.F.getSpecialValue(c),h=_tpt.gsap.utils.mapRange;return{left:{value:Math.round(a)},top:{value:Math.round(t)},dir:{value:d},intensity:{value:r/100*(d?30:10)},origin:{value:parseInt(n)/100},prange:{value:parseInt(s)/200},sh:{value:i},shx:{value:SR7.F.getSpecialValue(p,void 0,e.sdir)/100},shy:{value:SR7.F.getSpecialValue(l,void 0,e.sdir)/100},shz:{value:SR7.F.getSpecialValue(o,void 0,e.sdir)/50},shr:{value:v?_tpt.DEG2RAD*v:0},shv:{value:h(0,100,6,1,parseInt(u))}}},perspective:(e,{ox:a,oy:t,roz:r,pr:n,prange:s})=>{const i=parseInt(a)/100,p=parseInt(t)/100,l=Math.atan2(.5-i,.5-p),o=SR7.F.getSpecialValue(r,void 0,e.sdir);return{ox:{value:i},oy:{value:p},intensity:{value:parseInt(n)},rotation:{value:_tpt.DEG2RAD*(180*Math.round(o,void 0,e.sdir))},isShort:{value:o%2!=0},angle:{value:l},prange:{value:parseInt(s)/100*.5}}},spin:(e,{ox:a,oy:t,smartIntensity:r,roz:n,smartZ:s,prange:i})=>{const p=Math.round(SR7.F.getSpecialValue(n,void 0,e.sdir)),l=-s;return{ox:{value:parseInt(a)/100},oy:{value:parseInt(t)/100},intensity:{value:0===r?0:r/100},roz:{value:p},zoom:{value:l>0?l/10:l/100},isShort:{value:p%2!=0},prange:{value:parseInt(i)/100*.5}}},cut:(e,{dir:a,w:t,ssx:r,ssy:n,dplm:s})=>({dir:{value:a},width:{value:parseInt(t)/10,min:0,max:10},scaleX:{value:parseInt(r)/100*60,min:.1,max:60},scaleY:{value:parseInt(n)/100*60,min:.1,max:60},displacement:{value:SR7.D.transitions.tpbasic.getTexture(s)}}),flat:(e,{smartX:a,smartY:t,smartTilt:r,smartZ:n,prange:s})=>({left:{value:Math.round(a)},top:{value:Math.round(t)},tilt:{value:r/100},zoom:{value:n/100},prange:{value:parseInt(s)/100*.5}}),pano:(e,{smartX:a,smartY:t,smartTilt:r,smartIntensity:n,smartZ:s,prange:i})=>({left:{value:Math.round(a)},top:{value:Math.round(t)},tilt:{value:r/100},pano:{value:1-n/100},zoomOut:{value:s/100},prange:{value:parseInt(i)/100*.5}}),overroll:(e,{dir:a,smartIntensity:t,dplm:r})=>({dir:{value:a},intensity:{value:.01*t},displacement:{value:SR7.D.transitions.tpbasic.getTexture(r)}}),water:(e,{smartIntensity:a})=>({intensity:{value:a/100*10,min:0,max:10}}),zoomover:(e,{smartIntensity:a})=>({intensity:{value:a/100,min:0,max:3}}),morph:(e,{smartX:a,smartY:t,smartIntensity:r})=>({left:{value:Math.round(a)},top:{value:Math.round(t)},intensity:{value:r/100,min:0,max:1}}),waterdrop:(e,{smartIntensity:a,rad:t})=>({speed:{value:a},amplitude:{value:parseInt(t)},firstIn:{value:!e.notFirstIn}}),mosaic:(e,{smartX:a,smartY:t})=>({endx:{value:a,min:-50,max:50},endy:{value:t,min:-50,max:50}}),mirrorcube:(e,{gz:a,ref:t,flo:r})=>({persp:{value:.7},unzoom:{value:parseFloat(a)/100},reflection:{value:t},floating:{value:parseFloat(r)/10}}),rings:(e,{ox:a,oy:t,smartIntensity:r,roz:n,cio:s,cicl:i,cispl:p,cish:l,cico:o,ciad:c,cimw:u,prange:d})=>{const v=r?11-r/10:0,h=Math.round(SR7.F.getSpecialValue(n,void 0,e.sdir)),m="none"!==s,g="grad"===s?1:"solid"===s?2:0,f=(R=i,3==(R=_tpt.gsap.utils.splitColor(R)).length&&(R[3]=1),R[0]/=255,R[1]/=255,R[2]/=255,R);var R;return{ox:{value:parseInt(a)/100},oy:{value:parseInt(t)/100},iny:{value:v},roz:{value:h},isShort:{value:h%2!=0},Splits:{value:p},iColor:{value:f},s:{value:parseInt(l)/100},useo:{value:m},grado:{value:g},cover:{value:o},altDir:{value:c},cnprog:{value:u},prange:{value:parseInt(d)/200},defines:{splits:p}}},zoom:(e,{ox:a,oy:t,roz:r,zi:n,zo:s,zwo:i,zwi:p,zb:l,prange:o,zre:c})=>{const u=Math.round(SR7.F.getSpecialValue(r,void 0,e.sdir)),d=_tpt.gsap.utils.mapRange,v=e=>parseFloat(e);return s=-s,n=-n,{ox:{value:v(a)/100},oy:{value:v(t)/100},roz:{value:u},isShort:{value:u%2!=0},zOut:{value:v(s)>0?v(s)/10:v(s)/100},zIn:{value:v(n)<0?v(n)/10:v(n)/100},blur:{value:v(l)/100},warpOut:{value:i?d(0,100,10,.5,v(i)):0},warpIn:{value:p?d(0,100,10,.5,v(p)):0},prange:{value:v(o)/100*.15},rEnd:{value:v(c)/100}}},colormelt:(e,{})=>{var a=[.05,.1],t=[.4,.5],r=[.7,.8];return{zoomStrength:{value:.5},amo:{value:15},sd:{value:1.4},Cs:{value:1.7},rMin:{value:a[0]},rMax:{value:a[1]},gMin:{value:t[0]},gMax:{value:t[1]},bMin:{value:r[0]},bMax:{value:r[1]}}},colorflow:(e,{smartX:a,smartY:t,smartIntensity:r,dplm:n})=>({angle:{value:Math.atan2(Math.round(a),Math.round(t))-45*_tpt.DEG2RAD},left:{value:Math.abs(Math.round(t))},top:{value:Math.abs(Math.round(t))},intensity:{value:r/100*3,min:0,max:3},displacement:{value:SR7.D.transitions.tpbasic.getTexture(n)}}),blur:(e,{ox:a,oy:t,roz:r,zo:n,zi:s,smartX:i,smartY:p,smartIntensity:l,prange:o,zre:c})=>{const u=Math.round(SR7.F.getSpecialValue(r,void 0,e.sdir)),d=-parseFloat(s),v=-parseFloat(n);return{left:{value:Math.round(i)},top:{value:Math.round(p)},ox:{value:parseInt(a)/100},oy:{value:parseInt(t)/100},roz:{value:u},isShort:{value:u%2!=0},zOut:{value:v>0?v/10:v/100},zIn:{value:d>0?d/10:d/100},prange:{value:parseInt(o)/100*.3*.5},rEnd:{value:parseFloat(c)/100},intensity:{value:l/100,min:0,max:1}}}};_tpt.R??={},_tpt.R.transitionpack=_tpt.extend?_tpt.extend(_tpt.R.transitionpack,{status:2,version:"1.0"}):{status:2,version:"1.0"},window.dispatchEvent(new CustomEvent("SR7AdvancedTransitionsReady"))}();