%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/projetos/prod.jornalshowdafe.com.br/wp-content/themes/__betheme/js/
Upload File :
Create Path :
Current File : /var/www/projetos/prod.jornalshowdafe.com.br/wp-content/themes/__betheme/js/scripts.min.js

!function(e){"use strict";var t,n,i,a=e("body").hasClass("rtl"),s=e("body").hasClass("style-simple"),o="61px",r=0,l="desktop",c=mfn.mobileInit?mfn.mobileInit:1240;function d(){var t=0;e("body").hasClass("admin-bar")&&(t+=e("#wpadminbar").innerHeight()||0);e("body").hasClass("woocommerce-demo-store")&&(t+=e("body > p.demo_store").innerHeight()||0);return t}function m(){if(!e("body").hasClass("sticky-header"))return!1;if(e("body").hasClass("header-creative")&&window.innerWidth>=768)return!1;var t=r,n=e(window).scrollTop(),i=e("#Top_bar").height()||0;n>t?e("#Top_bar").hasClass("is-sticky")||(e(".header_placeholder").css("height",i),e("#Top_bar").addClass("is-sticky").css("top",-60).animate({top:d()+"px"},300),f(),e(document).trigger("mfn:header:sticky:on")):e("#Top_bar").hasClass("is-sticky")&&(e(".header_placeholder").css("height",0),e("#Top_bar").removeClass("is-sticky").css("top",o),function(){if(window.devicePixelRatio<=1)return!1;var t=e("#Top_bar #logo"),n=e("img.logo-main",t),i=n.data("height");if(!t.hasClass("retina"))return!1;e("body").hasClass("logo-overflow")||i>t.data("height")&&(i=t.data("height"));n.css("max-height",i+"px")}(),f(),e(document).trigger("mfn:header:sticky:off"))}function h(){if(!e("body").hasClass(".mobile-sticky"))return!1;if(e(window).width()>=768)return!1;var t,n=e(window).height()||0,i=e("#Top_bar .logo").height()||0,a=d()+i;!e("#Top_bar").hasClass("is-sticky")&&e("#Action_bar").is(":visible")&&(a+=e("#Action_bar").height()||0),(t=n-a)<176&&(t=176),e("#Top_bar #menu").css("max-height",t+"px")}function f(){var t=e(".top_bar_right").outerWidth()||0;t=Math.ceil(t),e("body").hasClass("header-modern")&&(t+=10);e("#Top_bar .one").width()}function u(){var t=0,n=e(".sticky-header #Top_bar");if(n.length)n.hasClass("is-sticky")?t=e(".sticky-header #Top_bar").innerHeight()||0:(n.addClass("is-sticky"),t=e(".sticky-header #Top_bar").innerHeight()||0,n.removeClass("is-sticky"));else if(e(".mfn-header-tmpl-builder").length){t=(e("#mfn-header-template").outerHeight()||0)+(parseFloat(e("#mfn-header-template").css("top"))||0)}return e(window).width()<c?e(window).width()<768?e("body").hasClass("mobile-sticky")||(t=0):e("body").hasClass("tablet-sticky")||(t=0):e("body").hasClass("header-creative")&&(t=0),t}function p(){if(e(".mcb-sidebar").length){var t=e("#Content .sections_group").outerHeight();e(".mcb-sidebar").each((function(){e(this).css("min-height",0),e(this).height()>t&&(t=e(this).height())})),e(".mcb-sidebar").css("min-height",t+"px"),i&&i.stickySidebar("updateSticky")}}function g(){var t=e(window).height()||0,n=e("#Header_wrapper").height()||0;t=t-n-d(),e("#Intro.full-screen").each((function(){var n=e(this),i=e(".intro-inner",n),a=i.height()||0;n.css("padding",0).css("min-height",t);var s=(t-a)/2;i.css("padding-top",s).css("padding-bottom",s)}))}function b(){var t=e("#Footer").height()||0;if(e(".footer-fixed #Footer, .footer-sliding #Footer").length&&(t-=1,e("#Content").css("margin-bottom",t+"px")),e(".footer-stick #Footer").length){var n=(e("#Header_wrapper").height()||0)+t;e(document).height()-d()<=e(window).height()&&n<=e(window).height()?e("#Footer").addClass("is-sticky"):e("#Footer").removeClass("is-sticky")}}function v(){var t=window.location.hash;if(t){if(t.indexOf("&")>-1||t.indexOf("/")>-1)return!1;if(t.indexOf("wpcf7")>-1&&function(t){if(t&&e(t).length){var n=e(t).closest(".popup-content").attr("id");e('a.popup-link[href="#'+n+'"]:not(.once)').addClass("once").trigger("click")}}(t),e(t).length){var n,i=u(),a=e(t).siblings(".ui-tabs-nav").innerHeight()||0;if(e("body").hasClass("mhb"))i=e(".mhb-view").filter(":visible").height()||0;n=i+d()+a,e("html, body").animate({scrollTop:e(t).offset().top-n},500)}}}mfn.lightbox.disable||mfn.lightbox.disableMobile&&window.innerWidth<768||(n={title:!!mfn.lightbox.title&&mfn.lightbox.title});var w={headerH:0,init:function(){w.headerH=u()+d(),e(".mcb-wrap.sticky.sticky-"+l+":not(.stickied)").each((function(){var t=e(this);if(!("desktop"==l&&t.hasClass("one")||"tablet"==l&&t.hasClass("tablet-one")||"mobile"==l&&t.hasClass("mobile-one"))){var n=t.attr("data-"+l+"-col"),i={top:t.css("padding-top"),right:t.css("padding-right"),bottom:t.css("padding-bottom"),left:t.css("padding-left")};i=Object.values(i).join(" "),t.css("padding",i),t.addClass("stickied").removeClass(n).addClass("one").wrap((function(){return'<div class="mcb-wrap wrap-sticky-spacer '+n+'"><div class="mcb-wrap wrap-sticky-rails"></div></div>'}))}})),w.scroll()},scroll:function(){if(e(".mcb-wrap.sticky.sticky-"+l).length){var t=e(window).scrollTop();e(".mcb-wrap.sticky.sticky-"+l+".stickied").each((function(){var n=e(this),i=n.closest(".wrap-sticky-rails"),a=n.closest(".mcb-section-inner"),s=i.width()||0,o=a.offset().top,r=a.innerHeight(),l=n.outerHeight(),c=t+w.headerH-o,d=c+l-r;n.css("width",s).closest(".wrap-sticky-rails").css("min-height",r+"px"),d>0?n.removeClass("fixed").addClass("stick-bottom").css({top:""}):(n.removeClass("stick-bottom"),c>0?n.addClass("fixed").css({top:w.headerH+"px"}):n.removeClass("fixed").css({top:""}))}))}},reset:function(){e(".wrap-sticky-spacer").length&&(e(".wrap-sticky-spacer").each((function(){e(this).find(".mcb-wrap.sticky").removeClass("stickied one fixed").addClass(e(this).find(".mcb-wrap.sticky").attr("data-"+l+"-col")).css({top:"0",width:""}),e(this).replaceWith(e(this).find(".mcb-wrap.sticky"))})),w.init())}};function y(e,t,n,i=!1){t||(t=5),n||(n=380);var a,s=e.width()||0;return(a=i?Math.floor(s/n):Math.ceil(s/n))<1&&(a=1),a>t&&(a=t),a}function _(t,n,i){var a=document.body.clientHeight;t.attr("data-attr")!==e(n).attr("href")&&"down"===i&&(t.attr("data-attr",e(n).attr("href")),n.click(),setTimeout((function(){document.body.clientHeight-a<249&&_(t,n,i)}),500))}e(document).ready((function(){var t,s,r,m,h,k,O,D,H,P,A,z;function I(){var t=[],i=function(e){return e.match(/youtube\.com\/watch/i)||e.match(/youtube\.com\/embed/i)||e.match(/youtu\.be/i)||e.match(/youtube-nocookie\.com/i)||e.match(/vimeo\.com/i)?"iframe":e.match(/\biframe=true\b/i)||e.match(/\bajax=true\b/i)?"ajax":"#"==e.substr(0,1)?"inline":"image"},a=function(){e('a[rel^="lightbox"]').each((function(){var n=e(this),a=n.attr("href"),s=n.attr("rel");if(n.closest(".wpb_column").length,a){var o=function(e){if(!e)return!1;var t=/\[(?:.*)\]/.exec(e);return!!t&&(t=t[0]).replace("[","").replace("]","")}(s);if(o)return n.attr("data-type","gallery"),function(e){-1==t.indexOf(e)&&t.push(e)}(o),!0;n.attr("data-type",i(a)),"iframe"==i(a)&&n.attr("href",a.replace("&rel=0",""))}}))},s=function(){var i={autoFocusLast:!1,removalDelay:160,image:{titleSrc:function(e){var t=e.el.closest(".image_wrapper, li").find("img").first();return!(!n.title||!t.length)&&t.attr("alt")}}};e('a[rel^="lightbox"][data-type="image"]').magnificPopup({autoFocusLast:i.autoFocusLast,removalDelay:i.removalDelay,type:"image",image:i.image}),e('a[rel^="lightbox"][data-type="iframe"]').magnificPopup({autoFocusLast:i.autoFocusLast,removalDelay:i.removalDelay,type:"iframe",iframe:{patterns:{youtube:{index:"youtube.com/",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1&rel=0"},youtu_be:{index:"youtu.be/",id:"/",src:"//www.youtube.com/embed/%id%?autoplay=1&rel=0"},nocookie:{index:"youtube-nocookie.com/embed/",id:"/",src:"//www.youtube-nocookie.com/embed/%id%?autoplay=1&rel=0"}}}}),e('a[rel^="pdf-lightbox"]').magnificPopup({autoFocusLast:i.autoFocusLast,removalDelay:i.removalDelay,type:"iframe"}),e('a[rel^="lightbox"][data-type="inline"]').magnificPopup({autoFocusLast:i.autoFocusLast,type:"inline",midClick:!0,callbacks:{open:function(){e(".mfp-content").children().addClass("mfp-inline")},beforeClose:function(){e(".mfp-content").children().removeClass("mfp-inline")}}});for(var a=0,s=t.length;a<s;a++){var o="["+t[a]+"]";e(o='a[rel^="lightbox'+o+'"]:visible').magnificPopup({autoFocusLast:i.autoFocusLast,removalDelay:i.removalDelay,type:"image",image:i.image,gallery:{enabled:!0,tCounter:'<span class="mfp-counter">%curr% / %total%</span>'}})}e('.elementor-page a[rel^="lightbox"]:not([data-type="gallery"]):not(.popup-link)').off("click"),setTimeout((function(){var t=e("body"),n=e._data(t[0],"events");if(n&&n.click)for(var i=n.click.length-1;i>=0;i--){var a=n.click[i];a&&a.selector&&-1!==a.selector.indexOf("lightbox")&&e('.wpb_column a[rel^="lightbox"]:not(.popup-link)').off("click")}}),0)},o=function(){e('a[rel^="lightbox"]').off("click"),s()};n&&(function(){e('a[rel^="prettyphoto"], a.prettyphoto, a[rel^="prettyphoto"]').each((function(){var t=e(this),n=t.attr("rel");n=n?n.replace("prettyphoto","lightbox"):"lightbox",t.removeClass("prettyphoto").attr("rel",n)}))}(),a(),s()),e(document).on("isotope:arrange",o),e(document).ajaxComplete((function(){o()}))}e(".promo_bar_slider").length&&e(".promo_bar_slider").each((function(){var t=1e3*parseInt(e(this).attr("data-speed")),n=e(this);function i(){var e=n.find(".pbs_one.pbs-active"),t=n.find(".pbs_one.pbs-active").next();t.length||(t=n.find(".pbs_one").first()),e.addClass("pbs-active-ends"),setTimeout((function(){e.removeClass("pbs-active pbs-active-ends"),t.addClass("pbs-active")}),300)}n.find(".pbs_one").first().addClass("pbs-active"),n.addClass("mfn-initialized"),n.find(".pbs_one").length>1&&setInterval(i,t)})),S.init(),T.init(),e(".mfn-menu-item-megamenu").length&&x.init(),e("#Top_bar").removeClass("loading"),(o=parseInt(e("#Top_bar").css("top"),10))<0&&(o=61),o+="px",function(){var t=u();if(!mfn.sidebarSticky)return!1;i=e(".mcb-sidebar .widget-area").stickySidebar({topSpacing:t})}(),e(".mfn-off-canvas-sidebar").length&&C.init(),e(window).width()<767&&!e(".mfn-off-canvas-sidebar").length?(C.mobile(),l="mobile"):e(window).width()<959&&(l="tablet"),e(window).on("debouncedresize",(function(){e(window).width()<767?l="mobile":e(window).width()<959?l="tablet":e(window).width()>960&&(l="desktop"),S.init(),T.init(),w.reset(),e(window).width()<767&&!e(".mfn-off-canvas-sidebar").length?C.mobile():e("html").removeClass("mfn-ofcs-opened")})),e(".overlay-menu-toggle").on("click",(function(t){t.preventDefault(),e(this).toggleClass("focus"),e("#Overlay").stop(!0,!0).fadeToggle(500);var n=e("#Overlay nav").height()||0;n/=2,e("#Overlay nav").css("margin-top","-"+n+"px")})),e("#Overlay").on("click",".menu-item > a",(function(){e(".overlay-menu-toggle").trigger("click")})),e(".header-overlay").on("keydown",(function(t){27==t.keyCode&&e(".overlay-menu-toggle.focus").trigger("click")})),e(".responsive-menu-toggle").on("click",(function(t){t.preventDefault();var n=e(this),i=e("#Top_bar #menu"),a=i.closest(".top_bar_left");if(n.toggleClass("active"),n.hasClass("is-sticky")&&n.hasClass("active")&&window.innerWidth<768){var s=0;a.length&&(s=a.offset().top-d()),e("body,html").animate({scrollTop:s},200)}i.stop(!0,!0).slideToggle(200)})),e("#Top_bar #menu").on("click","a:not(.menu-toggle)",(function(){var t=e(".responsive-menu-toggle.active");t.length&&setTimeout((function(){t.trigger("click")}),300)})),e("body").hasClass("mobile-side-slide")&&(t=e("#Side_slide"),s=e("#body_overlay"),r=c,m="right",h=-t.data("width"),k=h/2,O=function(){t.hasClass("enabled")||(e("nav#menu").detach().appendTo("#Side_slide .menu_wrapper"),t.addClass("enabled"))},D=function(){t.hasClass("enabled")&&(A(),e("nav#menu").detach().prependTo("#Top_bar .menu_wrapper"),t.removeClass("enabled"))},H=function(){window.innerWidth<r?O():e("body").hasClass("header-shop")?e("#Top_bar").hasClass("is-sticky")?e(document).trigger("mfn:header:sticky:on"):e(document).trigger("mfn:header:sticky:off"):D()},P=function(n){e(".lang-active.active",t).removeClass("active").children("i").attr("class","icon-down-open-mini"),e(".lang-wrapper",t).fadeOut(0),e(".icon.search.active",t).removeClass("active"),e(".search-wrapper",t).fadeOut(0),e(".menu_wrapper, .social",t).fadeIn(n)},A=function(){"left"==m?(t.animate({left:h},300),e("body").animate({right:0},300)):(t.animate({right:h},300),e("body").animate({left:0},300)),s.fadeOut(300),e("body").removeClass("side-slide-is-open"),e("body").hasClass("keyboard-support")&&e("#Side_slide").attr("aria-expanded","false"),e(".rev_slider").length&&setTimeout((function(){e(window).trigger("resize")}),300)},e(".icon.search",t).on("click",(function(n){n.preventDefault();var i=e(this);i.hasClass("active")?(e(".search-wrapper",t).fadeOut(0),e(".menu_wrapper, .social",t).fadeIn(300)):(e(".search-wrapper",t).fadeIn(300),e(".menu_wrapper, .social",t).fadeOut(0),e(".lang-active.active",t).removeClass("active").children("i").attr("class","icon-down-open-mini"),e(".lang-wrapper",t).fadeOut(0)),i.toggleClass("active")})),e("a.submit",t).on("click",(function(t){t.preventDefault(),e("#side-form").submit()})),e(".lang-active",t).on("click",(function(n){n.preventDefault();var i=e(this);i.hasClass("active")?(e(".lang-wrapper",t).fadeOut(0),e(".menu_wrapper, .social",t).fadeIn(300),i.children("i").attr("class","icon-down-open-mini")):(e(".lang-wrapper",t).fadeIn(300),e(".menu_wrapper, .social",t).fadeOut(0),i.children("i").attr("class","icon-up-open-mini"),e(".icon.search.active",t).removeClass("active"),e(".search-wrapper",t).fadeOut(0)),i.toggleClass("active")})),e(".responsive-menu-toggle").off("click"),e(".responsive-menu-toggle").on("click",(function(n){n.preventDefault(),"left"==m?(t.animate({left:0},300),e("body").animate({right:k},300)):(t.animate({right:0},300),e("body").animate({left:k},300)),s.fadeIn(300),e("body").addClass("side-slide-is-open"),P(0)})),s.on("click",(function(e){A()})),e(".close",t).on("click",(function(e){e.preventDefault(),A()})),e(t).on("click",".menu_wrapper a:not(.menu-toggle), .action_button",(function(t){console.log(1),e(this).hasClass("mega-menu-link")||("#"!=e(this).attr("href")?setTimeout((function(){A()}),500):t.preventDefault())})),e(t).on("click",(function(n){e(n.target).is(t)&&P(300)})),e(window).on("debouncedresize",H),e("body").hasClass("header-shop")&&(e(document).on("mfn:header:sticky:on",(function(){window.innerWidth>=r&&(e("#Top_bar .menu_wrapper").css("min-height","70px"),O())})),e(document).on("mfn:header:sticky:off",(function(){window.innerWidth>=r&&D()}))),t.hasClass("left")&&(m="left"),e("body").hasClass("responsive-off")&&(r=0),e("body").hasClass("header-simple")&&(r=9999),e("#Top_bar").hasClass("is-sticky")&&e(document).trigger("mfn:header:sticky:on"),H()),e(".sections_group .gallery, .elementor-section .gallery").each((function(){var t=e(this),n=t.attr("id");e("> br",t).remove(),e(".gallery-icon > a",t).wrap('<div class="image_frame scale-with-grid"><div class="image_wrapper"></div></div>').prepend('<div class="mask"></div>').children("img").css("height","auto").css("width","100%"),t.hasClass("file")&&e(".gallery-icon a",t).attr("rel","prettyphoto["+n+"]").attr("data-elementor-lightbox-slideshow",n),t.hasClass("masonry")&&t.isotope({itemSelector:".gallery-item",layoutMode:"masonry",isOriginLeft:!a})})),e(".sections_group .wp-block-gallery").each((function(t){var n=e(this),i=e(".blocks-gallery-item a",n);/\.(gif|jpg|jpeg|png)$/i.test(i.attr("href"))&&i.attr("rel","prettyphoto[wp5-gallery-"+t+"]")})),e(".widget_media_gallery .gallery").each((function(){var t=e(this),n=t.attr("id");e(".gallery-icon a",t).attr("rel","prettyphoto[widget-"+n+"]")})),e('a[rel^="prettyphoto[portfolio]"]').each((function(){var t=e(this),n=t.closest(".column"),i=e(".column").index(n);t.attr("rel","prettyphoto[portfolio-"+i+"]")})),I(),z=c,(e("body").hasClass("header-simple")||e("#Header_creative.dropdown").length)&&(z=9999),e("#menu > ul.menu").mfnMenu({addLast:!0,arrows:!0,mobileInit:z,responsive:mfn.responsive}),e("#secondary-menu > ul.secondary-menu").mfnMenu({mobileInit:z,responsive:mfn.responsive}),function(){if(!e("body").hasClass("one-page")){var t=e("#menu");t.find("li.scroll").length>1&&(t.find("li.current-menu-item:not(:first)").removeClass("current-menu-item currenet-menu-parent current-menu-ancestor current-page-ancestor current_page_item current_page_parent current_page_ancestor"),t.on("click","a",(function(){e(this).closest("li").siblings("li").removeClass("current-menu-item currenet-menu-parent current-menu-ancestor current-page-ancestor current_page_item current_page_parent current_page_ancestor"),e(this).closest("li").addClass("current-menu-item")})))}}(),function(){if(e("body").hasClass("one-page")){var t,n=e("#menu");e("#mfn-header-template").length&&(n=e("#mfn-header-template .mfn-header-menu.mfn-header-mainmenu")),e("a[href]",n).each((function(){var t=e(this).attr("href");if(t&&t.split("#")[1]){var n="#"+t.split("#")[1];n&&e(n).length&&(e(this).attr("data-hash",n),e(n).attr("data-id",n));var i="#"+t.split("#")[1],a=".vc_row."+t.split("#")[1];a&&e(a).length&&(e(this).attr("data-hash",i),e(a).attr("data-id",i))}}));var i="li.current-menu-item, li.current-menu-parent, li.current-menu-ancestor, li.current-page-ancestor, li.current_page_item, li.current_page_parent, li.current_page_ancestor";if(e(i,n).length)e(i,n).not(":first").removeClass("current-menu-item current-menu-parent current-menu-ancestor current-page-ancestor current_page_item current_page_parent current_page_ancestor"),(t=e(i,n).find("a[data-hash]").attr("data-hash"))&&(e(t='[data-id="'+t+'"]').length&&e(t).visible(!0)||e(i,n).removeClass("current-menu-item current-menu-parent current-menu-ancestor current-page-ancestor current_page_item current_page_parent current_page_ancestor").closest("li").removeClass("current-menu-item current-menu-parent current-menu-ancestor current-page-ancestor current_page_item current_page_parent current_page_ancestor"));else{var a=e("li:first-child",n),s=a.children("a");s.attr("data-hash")&&(t=s.attr("data-hash"),e(t='[data-id="'+t+'"]').length&&e(t).offset().top==d()&&a.addClass("current-menu-item"))}var o=e("#menu a[data-hash]");e("#mfn-header-template").length&&(o=e("#mfn-header-template .mfn-header-menu.mfn-header-mainmenu a[data-hash]")),o.on("click",(function(t){t.preventDefault(),n.find("li").removeClass("current-menu-item"),e(this).closest("li").addClass("current-menu-item").closest(".menu > li").addClass("current-menu-item");var i=e(this).attr("data-hash");i='[data-id="'+i+'"]',window.innerWidth<768&&(e(".responsive-menu-toggle").removeClass("active"),e("#Top_bar #menu").hide());var a=(e(".header-fixed.ab-show #Action_bar").innerHeight()||0)+(e(i).siblings(".ui-tabs-nav").innerHeight()||0)+d(),s=u();e("body").hasClass("header-below")&&e("#Content").length&&e(i).offset().top<e("#Content").offset().top+60&&(s=-1),e("html, body").animate({scrollTop:e(i).offset().top-a-s},500)}))}}();var F,j,M,L="body:not( .header-open ) #Header_creative",W=e(L);function U(t){var n=e(".mfn-header-tmpl-menu-sidebar");n.is(t.target)||0!==n.has(t.target).length||(e(".mfn-header-tmpl-menu-active").removeClass("mfn-header-tmpl-menu-active"),e(document).unbind("click",U),q(),e("html").removeClass("mfn-header-tmpl-burger-sidebar-opened"))}function q(){e(".mfn-bring-to-front").length&&e(".mfn-bring-to-front").removeClass("mfn-bring-to-front")}e(".creative-menu-toggle").on("click",(function(t){t.preventDefault(),W.addClass("active"),e(".creative-menu-toggle, .creative-social",W).fadeOut(500),e("#Action_bar",W).fadeIn(500)})),e(document).on("mouseenter",L,(function(){F=1})),e(document).on("mouseleave",L,(function(){F=null,setTimeout((function(){F||(W.removeClass("active"),e(".creative-menu-toggle, .creative-social",W).fadeIn(500),e("#Action_bar",W).fadeOut(500))}),1e3)})),e(document).on("click",".mfn-header-tmpl .mfn-header-menu-toggle",(function(t){t.preventDefault(),e(this).closest(".mcb-column").hasClass("mfn-header-tmpl-menu-active")?(e(document).unbind("click",U),e(this).closest(".mcb-column").removeClass("mfn-header-tmpl-menu-active"),q(),e("html").removeClass("mfn-header-tmpl-burger-sidebar-opened")):(e(document).bind("click",U),e(this).closest(".mcb-column").addClass("mfn-header-tmpl-menu-active"),e(this).closest(".mcb-column").addClass("mfn-bring-to-front"),e(this).closest(".mcb-wrap").addClass("mfn-bring-to-front"),e(this).closest(".mcb-section").addClass("mfn-bring-to-front"),e("html").addClass("mfn-header-tmpl-burger-sidebar-opened"))})),e(document).on("click",".one-page .mfn-header-tmpl-menu-sidebar .mfn-header-menu .mfn-menu-li a",(function(t){let n=e(this).attr("href");if(e("body").hasClass("one-page")&&n.includes("#")&&e(n).length){t.preventDefault();let i=0;(e(".mfn-header-tmpl.mfn-header-main").hasClass("mfn-header-tmpl-fixed")||e(".mfn-header-tmpl.mfn-header-main").hasClass("mfn-hasSticky"))&&(i=e(".mfn-header-tmpl.mfn-header-main").outerHeight());let a=e(n).offset().top-i;e("body, html").animate({scrollTop:a},500),e(document).unbind("click",U),e(this).closest(".mcb-column").removeClass("mfn-header-tmpl-menu-active"),q()}})),e(document).on("click",".mfn-header-tmpl .mfn-searchbar-toggle, .mfn-header-tmpl .search_wrapper .mfn-close-icon",(function(t){t.preventDefault(),e(this).closest(".mcb-column-inner").hasClass("mfn-searchbar-active")?(e(this).closest(".mcb-column-inner").removeClass("mfn-searchbar-active"),q()):(e(this).closest(".mcb-column-inner").addClass("mfn-searchbar-active"),e(this).closest(".mcb-column").addClass("mfn-bring-to-front"),e(this).closest(".mcb-wrap").addClass("mfn-bring-to-front"),e(this).closest(".mcb-section").addClass("mfn-bring-to-front"),e(this).closest(".mcb-column-inner").find("input.field").length&&e(this).closest(".mcb-column-inner").find("input.field").focus())})),e(".search_button:not(.has-input), #Top_bar .icon_close").on("click",(function(t){if(t.preventDefault(),e(this).closest(".mfn-header-tmpl").length)e(this).closest(".mcb-column").toggleClass("mfn-searchbar-active");else{const t=e(".search_wrapper");"none"===t.css("display")?(t.fadeIn().find(".field").focus(),setTimeout((function(){t.addClass("mfn-loaded")}),300)):t.fadeOut().removeClass("mfn-loaded")}})),e("#menu .menu-item-language:not(.menu-item-language-current)").each((function(){var t=e(this).children("a");t.children("span:not(.icl_lang_sel_bracket)").length||t.wrapInner("<span></span>")})),e("#menu span.icl_lang_sel_bracket").each((function(){var t=e(this);t.replaceWith(t.html())})),j=e(".breadcrumbs.no-link").find("li").last(),M=j.text(),j.html(M),e(".downcount").each((function(){var t=e(this);t.downCount({date:t.attr("data-date"),offset:t.attr("data-offset")})})),e(".tooltip, .hover_box").on("touchstart",(function(){e(this).toggleClass("hover")})).on("touchend",(function(){e(this).removeClass("hover")})),e("#popup_contact .footer_button").on("click",(function(t){t.preventDefault(),e(this).parent().toggleClass("focus")})),"#Header_creative.scroll".length&&window.innerWidth>=1240&&e("#Header_creative.scroll").niceScroll({autohidemode:!1,cursorborder:0,cursorborderradius:5,cursorcolor:"#222222",cursorwidth:0,horizrailenabled:!1,mousescrollstep:40,scrollspeed:60}),e(".sliding-top-control").on("click",(function(t){t.preventDefault(),e("#Sliding-top .widgets_wrapper").slideToggle(),e("#Sliding-top").toggleClass("active")})),e("body").on("click",".alert .close",(function(t){t.preventDefault(),e(this).closest(".alert").hide(300)})),e(".fixed-nav").appendTo("body"),e(".feature_list").each((function(){var t=e(this).attr("data-col")?e(this).attr("data-col"):4;e(this).find("li:nth-child("+t+"n):not(:last-child)").after("<hr />")})),function(){var t=window.navigator.userAgent,n=t.indexOf("MSIE ");n>0&&9==parseInt(t.substring(n+5,t.indexOf(".",n)))&&e("body").addClass("ie")}();var E,B,N,R=navigator.userAgent;function $(){e(".mfn-jplayer").each((function(){var t=e(this).attr("data-m4v"),n=e(this).attr("data-img"),i=e(this).attr("data-swf"),a="#"+e(this).closest(".mfn-jcontainer").attr("id");e(this).jPlayer({ready:function(){e(this).jPlayer("setMedia",{m4v:t,poster:n})},play:function(){e(this).jPlayer("pauseOthers")},size:{cssClass:"jp-video-360p",width:"100%",height:"360px"},swfPath:i,supplied:"m4v",cssSelectorAncestor:a,wmode:"opaque"})}))}function G(t,n){var i=t.attr("data-rel");n.isotope({filter:i}),setTimeout((function(){e(window).trigger("resize")}),50)}!(/WebKit/.test(R)&&/Mobile/.test(R))&&window.innerWidth>=768?"stellar"==mfn.parallax?e.stellar({horizontalScrolling:!1,responsive:!0}):e(window).enllax():e("div[data-enllax-ratio], div[data-stellar-ratio]").css("background-attachment","scroll"),e(".pager_load_more").on("click",(function(t){t.preventDefault();var n=e(this),i=n.closest(".pager_lm"),a=n.attr("href"),s=e(".lm_wrapper").index(n.closest(".isotope_wrapper").find(".lm_wrapper"));n.fadeOut(50),i.addClass("loading"),e.get(a,(function(t){var o=e(".lm_wrapper:eq("+s+")",t).wrapInner("").html(),r=e(o);e(".lm_wrapper:eq("+s+")").hasClass("isotope")?e(".lm_wrapper:eq("+s+")").append(r).isotope("appended",r):r.hide().appendTo(".lm_wrapper:eq("+s+")").fadeIn(1e3),a=e(".lm_wrapper:eq("+s+")",t).next().find(".pager_load_more").attr("href"),i.removeClass("loading"),a&&(n.fadeIn(),n.attr("href",a)),$(),I(),e(".lm_wrapper.isotope").imagesLoaded().progress((function(){e(".lm_wrapper.isotope").isotope()}))}))})),e(".filters_buttons .open").on("click",(function(t){t.preventDefault();var n=e(this).closest("li").attr("class");e(".filters_wrapper").show(200),e(".filters_wrapper ul."+n).show(200),e(".filters_wrapper ul:not(."+n+")").hide()})),e(".filters_wrapper .close a").on("click",(function(t){t.preventDefault(),e(".filters_wrapper").hide(200)})),e(".portfolio_next_js").on("click",(function(t){t.preventDefault();var n=e(this).closest(".portfolio-item").next();n.length&&e("html, body").animate({scrollTop:n.offset().top-u()},500)})),e(".portfolio_prev_js").on("click",(function(t){t.preventDefault();var n=e(this).closest(".portfolio-item").prev();n.length&&e("html, body").animate({scrollTop:n.offset().top-u()},500)})),e("body").on("click",".scroll > a, a.scroll, .mcb-column.scroll a",(function(t){location.href.replace(/#.*/,"")==this.href.replace(/#.*/,"")&&t.preventDefault();var n=this.hash,i=(e(".header-fixed.ab-show #Action_bar").innerHeight()||0)+(e(n).siblings(".ui-tabs-nav").innerHeight()||0)+d();e(this).parents(".table_of_content").length&&(i+=30),n&&e(n).length&&e("html, body").animate({scrollTop:e(n).offset().top-i-u()},500)})),e(".jq-tabs").tabs(),e(".fake-tabs > ul").on("click","a",(function(t){t.preventDefault();var n=e(this).closest("li"),i=n.data("tab");n.hasClass("active")||(n.addClass("active").siblings().removeClass("active"),e(".tab-"+i).addClass("active").attr("tabindex",0).siblings(".tab").removeClass("active").attr("tabindex",-1),e(window).trigger("resize"))})),e(".mfn-acc").each((function(){var t=e(this);if(t.hasClass("openAll"))t.find(".question").addClass("active").children(".answer").show();else{var n=t.attr("data-active-tab");t.hasClass("open1st")&&(n=1),n&&t.find(".question").eq(n-1).addClass("active").children(".answer").show()}})),e(".mfn-acc .question > .title").on("click",(function(){e(this).parent().hasClass("active")?e(this).parent().removeClass("active").children(".answer").slideToggle(100):(e(this).closest(".mfn-acc").hasClass("toggle")||e(this).parents(".mfn-acc").children().each((function(){e(this).hasClass("active")&&e(this).removeClass("active").children(".answer").slideToggle(100)})),e(this).parent().addClass("active"),e(this).next(".answer").slideToggle(100)),setTimeout((function(){e(window).trigger("resize")}),50)})),e(".wpb_wrapper .vc_tta-panel-title").on("click","a",(function(){setTimeout((function(){e(window).trigger("resize")}),50)})),e(".helper .link.toggle").on("click",(function(t){t.preventDefault();var n=e(this),i=n.attr("data-rel"),a=n.closest(".helper");n.hasClass("active")?(n.removeClass("active"),a.find(".helper_content > .item-"+i).slideUp(200),setTimeout((function(){a.find(".helper_content > .item-"+i).removeClass("active")}),200)):(a.find(".links > .link.active").removeClass("active"),a.find(".helper_content > .item.active").slideUp(200),n.addClass("active"),a.find(".helper_content > .item-"+i).addClass("active").hide().slideDown(200)),setTimeout((function(){e(window).trigger("resize")}),50)})),$(),e("body").on("click",".mfn-love",(function(){var t=e(this);if(t.hasClass("loved"))return!1;t.addClass("loved");var n={action:"mfn_love",post_id:t.attr("data-id")};return e.post(mfn.ajax,n,(function(e){t.find(".label").html(e)})),!1})),e("#back_to_top").on("click",(function(){return e("body,html").animate({scrollTop:0},500),!1})),e(".section .section-nav").on("click",(function(){var t=e(this),n=t.closest(".section"),i=u()+d();t.hasClass("prev")?n.prev().length&&e("html, body").animate({scrollTop:n.prev().offset().top-i},500):n.next().length&&e("html, body").animate({scrollTop:n.next().offset().top-i},500)})),e("#Intro .intro-next").on("click",(function(){var t=e(this).closest("#Intro");t.next().length&&e("html, body").animate({scrollTop:t.next().offset().top-u()-d()},500)})),e(".widget_mfn_menu ul.submenus-click").each((function(){var t=e(this);e("a",t).on("click",(function(t){var n=e(this).closest("li");n.hasClass("hover")||!n.hasClass("menu-item-has-children")||(t.preventDefault(),n.siblings("li").removeClass("hover").find("li").removeClass("hover"),e(this).closest("li").addClass("hover"))}))})),e("body").on("click",".add_to_cart_button",(function(){e(this).closest(".product").addClass("adding-to-cart").removeClass("added-to-cart")})),e("body").on("added_to_cart",(function(){e(".adding-to-cart").removeClass("adding-to-cart").addClass("added-to-cart")})),e(".woocommerce-product-rating").on("click",(function(){var t;e(".product_tabs_wrapper.fake-tabs").length?(t=e(".product_tabs_wrapper.fake-tabs"),e('li[data-tab="reviews"] a',t).trigger("click")):e(".woocommerce-content .jq-tabs").length?(t=e(".woocommerce-content .jq-tabs"),e('.ui-tabs-nav a[href="#tab-reviews"]',t).trigger("click")):(t=e(".woocommerce-content .accordion"),e("#reviews").closest(".question:not(.active)").children(".title").trigger("click"));var n=(e(".header-fixed.ab-show #Action_bar").innerHeight()||0)+d();e("html, body").animate({scrollTop:t.offset().top-n-u()},500)})),e("body").on("click",".quantity-change",(function(t){t.preventDefault();var n=e(this),i=e(this).siblings("input"),a=parseFloat(i.attr("step"))||1,s=i.attr("min"),o=void 0!==s&&!1!==s?parseFloat(s):1,r=parseFloat(i.attr("max"))||9999,l=i.val()?parseFloat(i.val()):o,c=0;n.hasClass("plus")?(c=l+a)>r&&(c=l):(c=l-a)<o&&(c=l),c=Math.round(10*c)/10,i.val(c).trigger("change")})),e(document).ajaxComplete((function(){setTimeout((function(){e(window).trigger("resize"),p()}),100)})),e(".isotope-filters .filters_wrapper").find("li:not(.close) a").on("click",(function(t){t.preventDefault();var n=e(".isotope"),i=e(this).closest(".isotope-filters"),a=i.attr("data-parent");a&&(n=(a=i.closest("."+a)).find(".isotope").first()),i.find("li").removeClass("current-cat"),e(this).closest("li").addClass("current-cat"),G(e(this),n),setTimeout((function(){e(document).trigger("isotope:arrange")}),500)})),e(".isotope-filters .filters_buttons").find("li.reset a").on("click",(function(t){t.preventDefault(),e(".isotope-filters .filters_wrapper").find("li").removeClass("current-cat"),G(e(this),e(".isotope"))})),e(window).on("debouncedresize",(function(){e(".masonry.isotope, .masonry.gallery").isotope(),b(),f(),p(),g(),e("body").hasClass("header-creative")&&window.innerWidth>=768&&e("#Top_bar").hasClass("is-sticky")&&e("#Top_bar").removeClass("is-sticky"),w.init()})),E=function(e,t){return"<a>"+t+"</a>"},e(".blog_slider_ul").each((function(){var t=e(this),n=4,i=t.closest(".blog_slider").data("count"),s=t.closest(".blog_slider").hasClass("single_post_mode");n>i&&(n=i)<1&&(n=1),s&&(n=1),t.slick({cssEase:"ease-out",dots:!0,infinite:!0,touchThreshold:10,speed:300,prevArrow:'<a class="button the-icon slider_prev" href="#"><span class="button_icon"><i class="icon-left-open-big" aria-label="previous slide"></i></span></a>',nextArrow:'<a class="button the-icon slider_next" href="#"><span class="button_icon"><i class="icon-right-open-big" aria-label="next slide"></i></span></a>',appendArrows:t.siblings(".blog_slider_header").children(".slider_navigation"),appendDots:t.siblings(".slider_pager"),customPaging:E,rtl:!!a,autoplay:!!mfn.slider.blog,autoplaySpeed:mfn.slider.blog?mfn.slider.blog:5e3,slidesToShow:y(t,n),slidesToScroll:y(t,n)}),e(window).on("debouncedresize",(function(){t.slick("slickSetOption","slidesToShow",y(t,n),!1),t.slick("slickSetOption","slidesToScroll",y(t,n),!0)}))})),e(".clients_slider_ul").each((function(){var t=e(this),n=t.closest(".clients_slider").attr("data-client-per-slide")?parseInt(t.closest(".clients_slider").attr("data-client-per-slide")):4,i="content"==(t.closest(".clients_slider").attr("data-navigation-position")||!1)?t:t.siblings(".blog_slider_header").children(".slider_navigation"),s=400,o=()=>y(t,n,s-40*n,!0);t.slick({cssEase:"ease-out",dots:!1,infinite:!0,touchThreshold:10,speed:300,prevArrow:'<a class="button the-icon slider_prev" href="#"><span class="button_icon"><i class="icon-left-open-big" aria-label="previous slide"></i></span></a>',nextArrow:'<a class="button the-icon slider_next" href="#"><span class="button_icon"><i class="icon-right-open-big" aria-label="next slide"></i></span></a>',appendArrows:i,rtl:!!a,autoplay:!!mfn.slider.clients,autoplaySpeed:mfn.slider.clients?mfn.slider.clients:5e3,slidesToShow:o(),slidesToScroll:o()}),e(window).on("debouncedresize",(function(){t.slick("slickSetOption","slidesToShow",o(),!1),t.slick("slickSetOption","slidesToScroll",o(),!0)}))})),e(".offer_ul").each((function(){var t=e(this);t.slick({cssEase:"ease-out",dots:!1,infinite:!0,touchThreshold:10,speed:300,prevArrow:'<a class="slider_prev" href="#"><span class="button_icon"><i class="icon-up-open-big" aria-label="previous slide"></i></span></a>',nextArrow:'<a class="slider_next" href="#"><span class="button_icon"><i class="icon-down-open-big" aria-label="next slide"></i></span></a>',adaptiveHeight:!0,rtl:!!a,autoplay:!!mfn.slider.offer,autoplaySpeed:mfn.slider.offer?mfn.slider.offer:5e3,slidesToShow:1,slidesToScroll:1}),t.siblings(".slider_pagination").addClass("show"),t.on("afterChange",(function(e,n,i,a){t.siblings(".slider_pagination").find(".current").text(i+1)}))})),function(){var t=function(t,n){return"<a>"+e(t.$slides[n]).find(".thumbnail:first").html()+"</a>"};e(".offer_thumb_ul").each((function(){var n=e(this);n.slick({cssEase:"ease-out",arrows:!1,dots:!0,infinite:!0,touchThreshold:10,speed:300,adaptiveHeight:!0,appendDots:n.siblings(".slider_pagination"),customPaging:t,rtl:!!a,autoplay:!!mfn.slider.offer,autoplaySpeed:mfn.slider.offer?mfn.slider.offer:5e3,slidesToShow:1,slidesToScroll:1})}))}(),function(){var t=function(e,t){return"<a>"+t+"</a>"};e(".shop_slider_ul").each((function(){var n=e(this),i=4,s=n.closest(".shop_slider").data("count");i>s&&(i=s)<1&&(i=1),n.slick({cssEase:"ease-out",dots:!0,infinite:!0,touchThreshold:10,speed:300,prevArrow:'<a class="button the-icon slider_prev" href="#"><span class="button_icon"><i class="icon-left-open-big" aria-label="previous slide"></i></span></a>',nextArrow:'<a class="button the-icon slider_next" href="#"><span class="button_icon"><i class="icon-right-open-big" aria-label="next slide"></i></span></a>',appendArrows:n.siblings(".blog_slider_header").children(".slider_navigation"),appendDots:n.siblings(".slider_pager"),customPaging:t,rtl:!!a,autoplay:!!mfn.slider.shop,autoplaySpeed:mfn.slider.shop?mfn.slider.shop:5e3,slidesToShow:y(n,i),slidesToScroll:y(n,i)}),e(window).on("debouncedresize",(function(){n.slick("slickSetOption","slidesToShow",y(n,i),!1),n.slick("slickSetOption","slidesToScroll",y(n,i),!0)}))}))}(),e(".portfolio_slider_ul").each((function(){var t=e(this),n=380,i=5;t.closest(".portfolio_slider").data("size")&&(n=t.closest(".portfolio_slider").data("size")),t.closest(".portfolio_slider").data("size")&&(i=t.closest(".portfolio_slider").data("scroll")),t.slick({cssEase:"ease-out",dots:!1,infinite:!0,touchThreshold:10,speed:300,prevArrow:'<a class="slider_nav slider_prev themebg" href="#"><i class="icon-left-open-big" aria-label="previous slide"></i></a>',nextArrow:'<a class="slider_nav slider_next themebg" href="#"><i class="icon-right-open-big" aria-label="next slide"></i></a>',rtl:!!a,autoplay:!!mfn.slider.portfolio,autoplaySpeed:mfn.slider.portfolio?mfn.slider.portfolio:5e3,slidesToShow:y(t,5,n),slidesToScroll:y(t,i,n)}),e(window).on("debouncedresize",(function(){t.slick("slickSetOption","slidesToShow",y(t,5,n),!1),t.slick("slickSetOption","slidesToScroll",y(t,i,n),!0)}))})),function(){var t=function(t,n){return"<a>"+e(t.$slides[n]).find(".single-photo-img").html()+"</a>"};e(".testimonials_slider_ul").each((function(){var n=e(this);n.slick({cssEase:"ease-out",dots:!0,infinite:!0,touchThreshold:10,speed:300,prevArrow:'<a class="button the-icon slider_prev" href="#"><span class="button_icon"><i class="icon-left-open-big" aria-label="previous slide"></i></span></a>',nextArrow:'<a class="button the-icon slider_next" href="#"><span class="button_icon"><i class="icon-right-open-big" aria-label="next slide"></i></span></a>',adaptiveHeight:!0,appendDots:n.siblings(".slider_pager"),customPaging:t,rtl:!!a,autoplay:!!mfn.slider.testimonials,autoplaySpeed:mfn.slider.testimonials?mfn.slider.testimonials:5e3,slidesToShow:1,slidesToScroll:1})}))}(),b(),f(),p(),g(),v(),function(){if(""!==document.cookie){var t=document.cookie.split(/; */);for(var n of t){var[i]=n.split("=");if("mfn-gdpr"===i)return}}e("#mfn-gdpr").addClass("show")}(),B=e(".mfn-infinite-load-button"),N=e(".mfn-infinite-load-button a"),e(B).waypoint({handler:function(e){_(B,N,e)},offset:function(){return-(e(this)[0].element.scrollHeight-window.innerHeight/1.2)}}),e("html, .column_blog").waypoint({handler:function(e){_(B,N,e)},offset:"bottom-in-view"}),function(){var t=e(".mfn-infinite-load-button"),n=e(".mfn-infinite-load-button a");e(t).waypoint({handler:function(e){_(t,n,e)},offset:function(){return-(e(this)[0].element.scrollHeight-window.innerHeight/1.2)}}),e("html, .column_portfolio").waypoint({handler:function(e){_(t,n,e)},offset:"bottom-in-view"})}(),function(){const t=e(".table_of_content");let n,i=0,a=e(".table_of_content_wrapper").find("a");if(n=t.attr("data-tags")){n=n.split(/[ ,]+/).join(",");let t=e(".mfn-builder-content .column_column, .mfn-builder-content .column_heading, .mfn-builder-content .column_fancy_heading, .the_content_wrapper:not(.is-elementor), .elementor-widget:not(.elementor-widget-mfn_table_of_contents)");e(t).each(((t,s)=>{let o=e(s).find(n);e(o).each(((t,n)=>{if(e(n).attr("id")){const t="#"+e(n).attr("id");e(a[i]).attr("href",t)}else{let t=e(a[i]).attr("href");e(n).attr("id",t.substr(1))}i++}))}))}}()})),e(window).on("scroll",(function(){m(),h(),function(){if(e("#back_to_top.sticky.scroll").length){var n=e("#back_to_top.sticky.scroll");t&&(window.clearTimeout(t),t=null),n.addClass("focus"),t=window.setTimeout((function(){n.removeClass("focus")}),1500)}}(),function(){if(e("body").hasClass("one-page")){var t=e(".sticky-header #Top_bar").innerHeight()||0;e("#mfn-header-template").length&&(t=e("#mfn-header-template").innerHeight()||0);var n=e(window).scrollTop()+t+d()+1,i=!1;e("[data-id]:not(.elementor-element), section[data-id]").each((function(){if(e(this).attr("data-id")&&-1==e(this).attr("data-id").indexOf("#"))return!0;if(e(this).visible(!0)&&(i?e(this).offset().top<n&&e(this).offset().top>i.offset().top&&(i=e(this)):i=e(this)),i){var t=i.attr("data-id"),a='[data-hash="'+t+'"]';if(t){var s=e("#menu, .mhb-menu");e("#mfn-header-template").length&&(s=e("#mfn-header-template .mfn-header-menu.mfn-header-mainmenu")),s.find("li").removeClass("current-menu-item current-menu-parent current-menu-ancestor current_page_item current_page_parent current_page_ancestor"),e(a,s).closest("li").addClass("current-menu-item").closest(".menu > li").addClass("current-menu-item")}}}))}}(),w.scroll()})),e(window).on("load",(function(){var t,i;k(),function(){if(!e("body").hasClass("one-page"))return!1;setTimeout((function(){var t=e(document),n=e("a[href*='#']").length?e._data(t[0],"events"):null;if(n&&n.click)for(var i=n.click.length-1;i>=0;i--){var a=n.click[i];a&&"mPS2id"!=a.namespace&&'a[href*="#"]'===a.selector&&t.off("click",a.handler)}}),300)}(),e(".column_livesearch").each((function(){e(this).closest(".mcb-wrap").addClass("has-live-search-element").closest(".mcb-section").addClass("has-live-search-element")})),setTimeout((function(){!function(){if(window.devicePixelRatio<=1)return!1;var t,n,i,a=e("#Top_bar #logo"),s=a.data("height"),o={init:35,noPadding:60,overflow:110},r={mini:50,miniNoPadding:60},l={init:50,noPadding:60,overflow:80};e("#Top_bar #logo img").each((function(c){t=e(this),n=t.data("retina"),i=t.height()||0,t.hasClass("logo-main")&&(e("body").hasClass("logo-overflow")||i>s&&(i=s)),t.hasClass("logo-sticky")&&(e("body").hasClass("logo-overflow")?i>o.overflow&&(i=o.overflow):e("body").hasClass("logo-no-sticky-padding")?i>o.noPadding&&(i=o.noPadding):i>o.init&&(i=o.init)),t.hasClass("logo-mobile")&&e("body").hasClass("mobile-header-mini")&&(a.data("padding")>0?i>r.mini&&(i=r.mini):i>r.miniNoPadding&&(i=r.miniNoPadding)),t.hasClass("logo-mobile-sticky")&&(e("body").hasClass("logo-no-sticky-padding")?i>l.noPadding&&(i=l.noPadding):i>l.init&&(i=l.init)),n&&(t.parent().addClass("retina"),t.attr("src",n).css("max-height",i+"px"))}))}()}),0),e(".blog_wrapper .isotope:not( .masonry ), .portfolio_wrapper .isotope:not( .masonry-flat, .masonry-hover, .masonry-minimal )").isotope({itemSelector:".isotope-item",layoutMode:"fitRows",isOriginLeft:!a}),e(".portfolio_wrapper .masonry-flat").isotope({itemSelector:".isotope-item",percentPosition:!0,masonry:{columnWidth:1},isOriginLeft:!a}),e(".isotope.masonry, .isotope.masonry-hover, .isotope.masonry-minimal").isotope({itemSelector:".isotope-item",layoutMode:"masonry",isOriginLeft:!a}),t=e(".isotope-filters .filters_wrapper"),(i=t.attr("data-cat"))&&(t.find("li."+i).addClass("current-cat"),e(".isotope").isotope({filter:".category-"+i})),e(".sections_group .chart, .elementor-section .chart").waypoint({offset:"100%",triggerOnce:!0,handler:function(){var t=e(this.element).length?e(this.element):e(this),n=s?4:8;t.easyPieChart({animate:1e3,lineCap:"circle",lineWidth:n,size:140,scaleColor:!1}),void 0!==this.destroy&&e.isFunction(this.destroy)&&this.destroy()}}),e(".bars_list").waypoint({offset:"100%",triggerOnce:!0,handler:function(){(e(this.element).length?e(this.element):e(this)).addClass("hover"),void 0!==this.destroy&&e.isFunction(this.destroy)&&this.destroy()}}),e(".progress_icons").waypoint({offset:"100%",triggerOnce:!0,handler:function(){var t=e(this.element).length?e(this.element):e(this),n=t.attr("data-active"),i=t.attr("data-color"),a=t.find(".progress_icon");a.each((function(t){t<n&&setTimeout((function(){e(a[t]).addClass("themebg").css("background-color",i)}),200*(t+1))})),void 0!==this.destroy&&e.isFunction(this.destroy)&&this.destroy()}}),e(".animate-math .number").waypoint({offset:"100%",triggerOnce:!0,handler:function(){var t=e(this.element).length?e(this.element):e(this),n=Math.floor(1e3*Math.random()+1e3),i=t.attr("data-to");e({property:0}).animate({property:i},{duration:n,easing:"linear",step:function(){t.text(Math.floor(this.property))},complete:function(){t.text(this.property)}}),void 0!==this.destroy&&e.isFunction(this.destroy)&&this.destroy()}}),e(".before_after.twentytwenty-container").each((function(){var t=e(this);t.imagesLoaded().done((function(e,n){setTimeout((function(){t.twentytwenty()}),500)}))})),n&&e('a[data-rel^="prettyPhoto"]:not(.popup-link), a[rel^="lightbox"]:not(.popup-link)').each((function(){e(this).off("click.prettyphoto")})),function(){var t=e("#Top_bar").innerHeight()||0;if(e("body").hasClass("header-below")){var n=e(".mfn-main-slider").innerHeight()||0;r=t+n}else{var i=e("#Action_bar").innerHeight()||0;r=t+i}}(),m(),h(),g(),setTimeout((function(){var t;e(window).trigger("resize"),p(),t=function(e,t){return"<a>"+t+"</a>"},e(".content_slider_ul").each((function(){var i=e(this),s=1,o=!1;i.closest(".content_slider").hasClass("carousel")&&(s=y(i),e(window).on("debouncedresize",(function(){i.slick("slickSetOption","slidesToShow",y(i),!1),i.slick("slickSetOption","slidesToScroll",y(i),!0)}))),i.closest(".content_slider").hasClass("center")&&(o=!0),i.slick({cssEase:"cubic-bezier(.4,0,.2,1)",dots:!0,infinite:!0,touchThreshold:10,speed:300,centerMode:o,centerPadding:"20%",prevArrow:'<a class="button the-icon slider_prev" href="#"><span class="button_icon"><i class="icon-left-open-big" aria-label="previous slide"></i></span></a>',nextArrow:'<a class="button the-icon slider_next" href="#"><span class="button_icon"><i class="icon-right-open-big" aria-label="next slide"></i></span></a>',adaptiveHeight:!0,appendDots:i.siblings(".slider_pager"),customPaging:t,rtl:!!a,autoplay:!!mfn.slider.slider,autoplaySpeed:mfn.slider.slider?mfn.slider.slider:5e3,slidesToShow:s,slidesToScroll:s});var r=!1;i.on("dragstart",'.slick-slide a[rel="lightbox"]',(function(t){if(n){var i=e._data(this,"events");i&&Object.prototype.hasOwnProperty.call(i,"click")&&(r=i.click[0],e(this).addClass("off-click").off("click"))}})),i.on("afterChange",(function(t,a,s,o){n&&e('a.off-click[rel="lightbox"]',i).removeClass("off-click").on("click",r)}))})),v(),w.init(),e(".isotope").isotope()}),0)})),e(document).on("mouseup",(function(t){e(".widget_mfn_menu ul.submenus-click").length&&0===e(".widget_mfn_menu ul.submenus-click").has(t.target).length&&e(".widget_mfn_menu ul.submenus-click li").removeClass("hover"),e(".menu_wrapper").length&&0===e(".menu_wrapper").has(t.target).length&&e(".responsive-menu-toggle").hasClass("active")&&e(".responsive-menu-toggle").trigger("click"),e("#popup_contact").length&&0===e("#popup_contact").has(t.target).length&&e("#popup_contact").hasClass("focus")&&e("#popup_contact .footer_button").trigger("click"),e("html").hasClass("mfn-ofcs-opened")&&!e(".mfn-off-canvas-sidebar").is(t.target)&&0===e(".mfn-off-canvas-sidebar").has(t.target).length&&e("html").removeClass("mfn-ofcs-opened")})),e(".mfn-gdpr-button").on("click",(function(){var t=e(".mfn-gdpr-button").attr("data-animation"),n=e("#mfn-gdpr").attr("data-aligment");switch(!0){case"none"===t:e("#mfn-gdpr").css("display","none");break;case"fade"===t:e("#mfn-gdpr").fadeOut(300);break;case"slide"===t&&"top"===n:e("#mfn-gdpr").slideUp(300);break;default:e("#mfn-gdpr").slideToggle(300)}setTimeout((function(){e("#mfn-gdpr").removeClass("show"),function(){if(navigator.cookieEnabled){var t=e(".mfn-gdpr-button").attr("data-cookiedays")||365,n=new Date,i="";n.setTime(n.getTime()+24*t*60*60*1e3),i+="mfn-gdpr=1",i+="; expires="+n.toUTCString()+";",i+="; path="+mfn.home_url+"/",document.cookie=i}}()}),300)})),e("body").on("click",".table_of_content .toggle",(function(t){t.preventDefault(),e(".table_of_content").hasClass("hide")?(e(".table_of_content").removeClass("hide"),e(".table_of_content_wrapper").slideDown({duration:400,always:function(){e(".table_of_content").removeClass("hide_on_start")}})):(e(".table_of_content_wrapper").slideUp({duration:400}),e(".table_of_content").addClass("hide"))}));var C={init:function(){e(document).on("click",".mfn-off-canvas-switcher",(function(t){t.preventDefault(),e("html").hasClass("mfn-ofcs-opened")?e("html").removeClass("mfn-ofcs-opened"):e("html").addClass("mfn-ofcs-opened")}))},mobile:function(){if(e(".sidebar .widget-area").length&&e("body").hasClass("ofcs-mobile")){e(".mfn-off-canvas-sidebar").length||e("body").append('<div class="mfn-off-canvas-overlay"></div><div class="mfn-off-canvas-sidebar"><div class="mfn-off-canvas-switcher"><i class="icon-list" aria-label="off-canvas sidebar toggle"></i></div><div class="mfn-off-canvas-content-wrapper"><div class="mfn-off-canvas-content"></div></div></div>'),e("body").hasClass("woocommerce-shop")&&!e(".mfn-woo-filters-wrapper .mfn-off-canvas-switcher").length&&e(".mfn-woo-filters-wrapper").append('<a class="open-filters mfn-off-canvas-switcher" href="#"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" aria-label="off-canvas sidebar toggle"><defs><style>.path{fill:none;stroke:#000;stroke-miterlimit:10;}</style></defs><g><line x1="8" y1="11" x2="14" y2="11" class="path"></line><line x1="2" y1="11" x2="4" y2="11" class="path"></line><line x1="12" y1="5" x2="14" y2="5" class="path"></line><line x1="2" y1="5" x2="8" y2="5" class="path"></line><circle cx="6" cy="11" r="2" class="path"></circle><circle cx="10" cy="5" r="2" class="path"></circle></g></svg></a>');var t=e(".mfn-off-canvas-sidebar .mfn-off-canvas-content-wrapper .mfn-off-canvas-content");t.empty(),e(".sidebar .widget-area").each((function(){t.append(e(this))})),C.init()}}};function k(){var t=0;e(".mfn-align-heights").length&&e(".mfn-align-heights").each((function(){var n=0,i="mfn-align-cont-"+t;e(this).addClass(i),e("<style type='text/css'> ."+i+" .mfn-align-me{ height: auto;} </style>").appendTo("body"),e("."+i+" .mfn-align-me").each((function(){e(this).outerHeight()>n&&(n=e(this).outerHeight())})),e("<style type='text/css'> ."+i+" .mfn-align-me{ height: "+n+"px;} </style>").appendTo("body"),t++}))}e(window).on("debouncedresize",k);var x={init:function(){e(".mfn-megamenu-menu.mfn-mm-submenu-toggled li.menu-item-has-children").length&&e(".mfn-megamenu-menu.mfn-mm-submenu-toggled li.menu-item-has-children > a").on("click",(function(t){let n=e(this).attr("href");e(this).parent("li").hasClass("mfn-li-childrens-show")?""!=n&&"#"!=n||(t.preventDefault(),t.stopPropagation(),e(this).siblings("ul").slideUp(300),e(this).parent("li").removeClass("mfn-li-childrens-show")):(t.preventDefault(),t.stopPropagation(),e(this).siblings("ul").slideDown(300),e(this).parent("li").addClass("mfn-li-childrens-show"))})),e(".column_megamenu_menu ul.mfn-mm-menu-horizontal.mfn-mm-submenu-on-click li").length&&e(".column_megamenu_menu ul.mfn-mm-menu-horizontal.mfn-mm-submenu-on-click li > a").on("click",(function(t){e(this).closest("li").hasClass("menu-item-has-children")&&!e(this).closest("li").hasClass("mfn-li-hover")&&(t.preventDefault(),t.stopPropagation(),e(this).closest("li").addClass("mfn-li-hover"))})),e("ul.mfn-menu-submenu-on-hover li.mfn-menu-item-has-megamenu, li.mfn-theme-options-menu.mfn-menu-item-has-megamenu").length&&e("ul.mfn-menu-submenu-on-hover li.mfn-menu-item-has-megamenu, li.mfn-theme-options-menu.mfn-menu-item-has-megamenu").on("mouseenter",(function(){(e(this).find(".mfn-megamenu-full-width").length||e(this).find(".mfn-megamenu-grid").length)&&x.setLeft(e(this))})),e("ul.mfn-menu-submenu-on-click li.mfn-menu-item-has-megamenu").length&&e("ul.mfn-menu-submenu-on-click li.mfn-menu-item-has-megamenu > a.mfn-menu-link").on("click",(function(t){let n=e(this).attr("href");(e(this).closest("li").find(".mfn-megamenu-full-width").length||e(this).closest("li").find(".mfn-megamenu-grid").length)&&x.setLeft(e(this).closest("li")),""==n||"#"==n?(t.preventDefault(),t.stopPropagation(),e(this).closest("li").hasClass("mfn-li-hover")?(e(this).closest("li").removeClass("mfn-li-hover"),e(document).unbind("click",S.bindUnclick),e("body").removeClass("mfn-content-gray mfn-content-blur mfn-content-overlay")):(e(this).closest("li").addClass("mfn-li-hover"),e(document).bind("click",S.bindUnclick),S.animContentAddClass())):e(this).closest("li").hasClass("mfn-li-hover")||(t.preventDefault(),t.stopPropagation(),e(".mfn-header-tmpl ul li.mfn-li-hover").removeClass("mfn-li-hover"),e(this).closest(".mfn-megamenu-menu").length||e(this).closest("li.mfn-li-hover").length||e(".mfn-megamenu-menu.mfn-mm-submenu-toggled li.menu-item-has-children.mfn-li-childrens-show").length&&(e(".mfn-megamenu-menu.mfn-mm-submenu-toggled li.menu-item-has-children.mfn-li-childrens-show ul").slideUp(),e(".mfn-megamenu-menu.mfn-mm-submenu-toggled li.menu-item-has-children.mfn-li-childrens-show").removeClass("mfn-li-childrens-show")),S.animContentAddClass(),e(this).parent("li").addClass("mfn-li-hover"),e(document).bind("click",S.bindUnclick))}))},setLeft:function(t){var n=t.find(".mfn-menu-item-megamenu"),i=t.offset().left;n.css("width",e(window).width()+"px"),n.css("left","-"+i+"px")}},T={init:function(){e("body").hasClass("mfn-footer-stick")&&T.isSticky(),(e("body").hasClass("mfn-footer-sliding")||e("body").hasClass("mfn-footer-fixed"))&&T.isSliding()},isSticky:function(){e(".mfn-footer-tmpl").offset().top+e(".mfn-footer-tmpl").outerHeight()<e(window).height()?e(".mfn-footer-tmpl").addClass("is-sticky"):e(".mfn-footer-tmpl").removeClass("is-sticky")},isSliding:function(){var t=e(".mfn-footer-tmpl").outerHeight();e("#Content").css("margin-bottom",t)}},S={hasSticky:!1,isMobile:!1,offsetScroll:60,hasBodyOffset:!1,height:0,type:"default",animContentOnHover:function(){e(".mfn-header-tmpl.mfn-header-main .mfn-header-menu.mfn-header-mainmenu").hasClass("mfn-menu-submenu-on-hover")&&e(".mfn-header-tmpl.mfn-header-main .mfn-header-menu.mfn-header-mainmenu.mfn-menu-submenu-on-hover > li.mfn-menu-item-has-megamenu, .mfn-header-tmpl.mfn-header-main .mfn-header-menu.mfn-header-mainmenu.mfn-menu-submenu-on-hover > li.menu-item-has-children").on("mouseenter",(function(){S.animContentAddClass()})),e(".mfn-header-tmpl.mfn-header-main .mfn-header-menu.mfn-header-mainmenu.mfn-menu-submenu-on-hover > li.mfn-menu-item-has-megamenu, .mfn-header-tmpl.mfn-header-main .mfn-header-menu.mfn-header-mainmenu.mfn-menu-submenu-on-hover > li.menu-item-has-children").on("mouseleave",(function(){e("body").removeClass("mfn-content-gray mfn-content-blur mfn-content-overlay")}))},animContentAddClass:function(){e(".mfn-header-tmpl.mfn-header-main").hasClass("mfn-header-content-blur")?e("body").addClass("mfn-content-blur"):e(".mfn-header-tmpl.mfn-header-main").hasClass("mfn-header-content-gray")?e("body").addClass("mfn-content-gray"):e(".mfn-header-tmpl.mfn-header-main").hasClass("mfn-header-content-overlay")&&e("body").addClass("mfn-content-overlay")},openOnClick:function(){e(".mfn-header-tmpl .mfn-header-menu.mfn-menu-submenu-on-click li.menu-item-has-children > a.mfn-menu-link").off().on("click",(function(t){let n=e(this).attr("href");(e(this).closest("li").find(".mfn-megamenu-full-width").length||e(this).closest("li").find(".mfn-megamenu-grid").length)&&x.setLeft(e(this).closest("li")),""==n||"#"==n?(t.preventDefault(),t.stopPropagation(),e(this).closest("li").hasClass("mfn-li-hover")?(e(this).closest("li").removeClass("mfn-li-hover"),e(document).unbind("click",S.bindUnclick),e("body").removeClass("mfn-content-gray mfn-content-blur mfn-content-overlay")):(e(this).closest("li").addClass("mfn-li-hover"),e(document).bind("click",S.bindUnclick),S.animContentAddClass())):e(this).closest("li").hasClass("mfn-li-hover")||(t.preventDefault(),t.stopPropagation(),S.animContentAddClass(),e(this).parent("li").addClass("mfn-li-hover"),e(document).bind("click",S.bindUnclick))}))},bindUnclick:function(t){var n=e(".mfn-header-tmpl ul li.mfn-li-hover");n.is(t.target)||(n.removeClass("mfn-li-hover"),e("body").removeClass("mfn-content-gray mfn-content-blur mfn-content-overlay"),e(document).unbind("click",S.bindUnclick))},closeable:function(){e(".mfn-header-tmpl .close-closeable-section").on("click",(function(){var t=e(this).closest(".mcb-section");if(t.addClass("closeable-hidden").slideUp(300,(function(){S.resetOffset(),S.offset()})),void 0!==t.attr("data-close-days")&&"0"!=t.attr("data-close-days")){var n=t.attr("data-close-days"),i=t.attr("data-uid"),a=new Date;a.setTime(a.getTime()+24*parseInt(n)*60*60*1e3);var s="; expires="+a.toGMTString();document.cookie="mfn_closed_section="+i+s+"; path=/"}}))},resetOffset:function(){"default"!=S.type&&S.hasBodyOffset&&e("#Wrapper").css({"padding-top":e(".mfn-header-tmpl").outerHeight()})},offset:function(){if(!S.hasSticky||S.isMobile){S.offsetScroll=0;var t="default";e(window).width()<767&&(t="header-mobile"),e(".mfn-header-tmpl .mfn-"+t+"-section.hide-on-scroll:not(.closeable-hidden)").each((function(){S.offsetScroll+=e(this).outerHeight()}))}},init:function(){S.hasBodyOffset=!1,e(window).width()<767&&e(".mfn-header-tmpl").hasClass("mfn-hasMobile")?(S.isMobile=!0,S.type=e(".mfn-header-tmpl").attr("data-mobile-type"),e(".mfn-header-tmpl").hasClass("mfn-mobile-header-body-offset")?S.hasBodyOffset=!0:S.hasBodyOffset=!1):(S.isMobile=!1,S.type=e(".mfn-header-tmpl").attr("data-type"),e(".mfn-header-tmpl").hasClass("mfn-header-body-offset")?S.hasBodyOffset=!0:S.hasBodyOffset=!1),e(".mfn-header-tmpl .mfn-menu-submenu-on-click").length&&S.openOnClick(),(e(".mfn-header-tmpl").hasClass("mfn-header-content-blur")||e(".mfn-header-tmpl").hasClass("mfn-header-content-gray")||e(".mfn-header-tmpl").hasClass("mfn-header-content-overlay"))&&S.animContentOnHover(),e(".mfn-header-tmpl").hasClass("mfn-hasSticky")?S.hasSticky=!0:S.hasSticky=!1,e("body style.tmp-mfn-header-template").length&&e("body style.tmp-mfn-header-template").remove(),e(".mfn-header-tmpl .close-closeable-section").length&&S.closeable(),e("body").hasClass("mfn-header-scrolled")&&!e(".mfn-builder-active").length&&e("body").removeClass("mfn-header-scrolled"),S.getHeight(),S.offset(),S.scroll(),e(window).scrollTop()>10&&e(window).trigger("scroll")},scroll:function(){e(".mfn-header-tmpl").hasClass("mfn-header-tmpl-default")&&S.hasSticky&&e("body").append('<style class="tmp-mfn-header-template">html body.mfn-header-scrolled{padding-top: '+S.height+"px;}</style>"),e(window).scroll((function(){var t=e(this).scrollTop(),n=S.offsetScroll;S.hasSticky&&(n=S.height),t>n?(e("body").addClass("mfn-header-scrolled"),e(".mfn-header-tmpl").hasClass("mfn-header-tmpl-fixed")&&e(".mfn-header-tmpl .hide-on-scroll:not(.closeable-hidden)").length&&(S.hasSticky?e(".mfn-header-tmpl").css({top:0}):e(".mfn-header-tmpl").css({top:"-"+S.offsetScroll+"px"}))):(e("body").removeClass("mfn-header-scrolled"),e(".mfn-header-tmpl").hasClass("mfn-header-tmpl-fixed")&&e(".mfn-header-tmpl .hide-on-scroll:not(.closeable-hidden)").length&&e(".mfn-header-tmpl").css({top:"-"+t+"px"}))}))},getHeight:function(){S.height=e(".mfn-header-tmpl").outerHeight(),"default"!=S.type&&S.hasBodyOffset?e("#Wrapper").css({"padding-top":S.height}):e("#Wrapper").removeAttr("style"),e(".mfn-header-tmpl").removeAttr("style")}}}(jQuery);

Zerion Mini Shell 1.0