function queryLoopMasonry(){
jQuery('.mfn-query-loop-masonry:not(.mfn-initialized)').each(function(){
let $masonry=jQuery(this);
$masonry.imagesLoaded(function(){
$masonry.isotope({
itemSelector: '.mfn-queryloop-item-wrapper',
layoutMode: 'masonry',
isOriginLeft: jQuery('body').hasClass('rtl') ? false:true
});
$masonry.addClass('mfn-initialized');
});
});
}
function msnryGalleryInit(){
jQuery('.gallery.equal-heights:not(.mfn-images-loaded)').each(function(){
var $el=jQuery(this);
$el.imagesLoaded(function(){
$el.addClass('mfn-images-loaded');
});
});
jQuery('.sections_group .gallery, .mcb-section .gallery, .elementor-section .gallery').each(function(){
var $el=jQuery(this);
var id=$el.attr('id');
if($el.hasClass('mfn-initialized')) return;
$el.children('br').remove();
$el.find('.gallery-icon').children('a')
.wrap('<div class="image_frame scale-with-grid"><div class="image_wrapper"></div></div>')
.prepend('<div class="mask"></div>')
.children('img')
;
if($el.hasClass('file')){
$el.find('.gallery-icon a')
.attr('rel', 'prettyphoto[' + id + ']')
.attr('data-elementor-lightbox-slideshow', id);
}
$el.find('.gallery-item').each(function(){
var title=jQuery(this).data('title');
var description=jQuery(this).data('description');
jQuery('.gallery-icon a', jQuery(this))
.attr('data-elementor-lightbox-title', title)
.attr('data-elementor-lightbox-description', description);
});
if($el.hasClass('masonry')){
$el.imagesLoaded(function(){
$el.isotope({
itemSelector: '.gallery-item',
layoutMode: 'masonry',
isOriginLeft: jQuery('body').hasClass('rtl') ? false:true
});
$el.addClass('mfn-initialized');
});
}});
}
function redrawAllRevolutionSliders(){
let slidersFound=false;
for (const prop in window){
if(prop.startsWith('revapi')&&typeof window[prop]==='object'&&window[prop]!==null){
const revapiInstance=window[prop];
if(typeof revapiInstance.revredraw==='function'){
slidersFound=true;
setTimeout(function(){
revapiInstance.revredraw();
console.log(`Revolution Slider instance (${prop}) redrawn.`);
}, 50);
}}
}}
(function($){
"use strict";
var scrollTicker, lightboxAttr, sidebar,
body=$('body'),
rtl=$('body').hasClass('rtl'),
simple=$('body').hasClass('style-simple'),
isBlocks=$('body').hasClass('builder-blocks'),
topBarTop='0',
headerH=0,
currWidth=$(window).width(),
newWidth=$(window).width(),
screen='desktop',
mobileInitW=mfn.mobileInit ? mfn.mobileInit:1240,
consents={};
if(! mfn.lightbox.disable){
if(!(mfn.lightbox.disableMobile&&(window.innerWidth < 768) )){
lightboxAttr={
title: mfn.lightbox.title ? mfn.lightbox.title:false,
};}}
var cookies={
get: function(name){
if(document.cookie!==""){
var cookies=document.cookie.split(/; */);
for (var cookie of cookies){
var [ cookieName, cookieVal ]=cookie.split("=");
if(cookieName===name){
return decodeURIComponent(cookieVal);
}}
}
return false;
},
set: function(name, value, expires){
if(navigator.cookieEnabled){
var cookieDate=new Date();
var cookieText='';
expires=expires||365;
value=encodeURIComponent(value);
cookieDate.setTime(cookieDate.getTime() + (expires * 24 * 60 * 60 * 1000));
cookieText +=name +"="+ value;
cookieText +="; expires=" + cookieDate.toUTCString() + ';';
cookieText +="; path=" + mfn.home_url + '/';
document.cookie=cookieText;
}},
};
var consent={
popup:$('#mfn-consent-mode'),
tabs:function($el, id){
var $li;
if($el){
$li=$el.closest('li');
id=$li.data('id');
}else{
$li=$('.tab[data-id="'+ id +'"]');
}
$li.addClass('is-active')
.siblings().removeClass('is-active');
$('#'+ id).addClass('is-active')
.siblings().removeClass('is-active');
$('.mfn-cookies').attr('data-tab',id);
},
open:function(){
if(! this.popup.length){
return;
}
if($('body').hasClass('mfn-ui')) return;
consents=cookies.get('mfnConsent');
try {
consents=JSON.parse(consents);
if(! consents){
throw new Error('');
}
gtag('consent', 'update', consents);
} catch (e){
consents={
'ad_storage': 'denied',
'ad_user_data': 'denied',
'ad_personalization': 'denied',
'analytics_storage': 'denied'
}
body.addClass('mfn-cookies-open');
if(body.hasClass('gdpr2-scroll-disable')){
$('html').addClass('mfn-popup-browser-scroll-disabled');
}}
},
reopen:function(){
if($('body').hasClass('mfn-ui')) return;
body.addClass('mfn-cookies-open');
this.popup.show()
.children().show();
if(body.hasClass('gdpr2-scroll-disable')){
$('html').addClass('mfn-popup-browser-scroll-disabled');
}},
close:function(){
var closeAnimation=this.popup.attr('data-animation');
switch(true){
case 'fade'===closeAnimation:
this.popup.fadeOut(300);
break;
case 'slide'===closeAnimation:
this.popup.fadeOut(300);
this.popup.children().slideUp(300);
break;
default:
body.removeClass('mfn-cookies-open');
}
setTimeout(function(){
body.removeClass('mfn-cookies-open');
if(body.hasClass('gdpr2-scroll-disable')){
$('html').removeClass('mfn-popup-browser-scroll-disabled');
}
$(document).trigger('mfn:gdpr2:close');
}, 300);
},
set:function(){
var expires=this.popup.attr('data-expires');
expires=parseInt(expires)||365;
gtag('consent', 'update', consents);
cookies.set('mfnConsent', JSON.stringify(consents), expires);
consent.close();
},
all:function(){
consents={
'ad_storage': 'granted',
'ad_user_data': 'granted',
'ad_personalization': 'granted',
'analytics_storage': 'granted'
}
consent.set();
},
selected:function(){
if($('#cookies_analytics').is(":checked")){
consents.analytics_storage='granted';
}
if($('#cookies_marketing').is(":checked")){
consents.ad_storage='granted';
consents.ad_user_data='granted';
consents.ad_personalization='granted';
}
consent.set();
},
deny:function(){
consents={
'ad_storage': 'denied',
'ad_user_data': 'denied',
'ad_personalization': 'denied',
'analytics_storage': 'denied'
}
consent.set();
},
};
function topBarTopPosition(){
topBarTop=parseInt($('#Top_bar').css('top'), 10);
var scrollPos=$(window).scrollTop();
if(scrollPos > 0){
window.scrollTo(0, 0);
$(window).scrollTop(0);
topBarTop=parseInt($('#Top_bar').css('top'), 10);
window.scrollTo(0, scrollPos);
}
if(topBarTop < 0){
topBarTop=0;
}
topBarTop=topBarTop + 'px';
}
function adminBarH(){
var height=0;
if($('body').hasClass('admin-bar')){
var actionBarH=$('#wpadminbar').innerHeight()||0;
height +=actionBarH;
}
if($('body').hasClass('woocommerce-demo-store')){
var demoStoreH=$('body > p.demo_store').innerHeight()||0;
height +=demoStoreH;
}
return height;
}
function mfnSticky(){
if(! $('body').hasClass('sticky-header')){
return false;
}
if($('body').hasClass('header-creative')&&window.innerWidth >=768){
return false;
}
var startY=headerH;
var windowY=$(window).scrollTop();
var topBarH=$('#Top_bar').height()||0;
if(windowY > startY){
if(!($('#Top_bar').hasClass('is-sticky')) ){
$('.header_placeholder').css('height', topBarH);
$('#Top_bar')
.addClass('is-sticky')
.css('top', -60)
.animate({
'top': adminBarH() + 'px'
}, 300);
headerWidth();
$(document).trigger('mfn:header:sticky:on');
}}else{
if($('#Top_bar').hasClass('is-sticky')){
$('.header_placeholder').css('height', 0);
$('#Top_bar').stop()
.removeClass('is-sticky')
.css('top', topBarTop);
stickyLogo();
headerWidth();
$(document).trigger('mfn:header:sticky:off');
}}
}
function stickyLogo(){
if(window.devicePixelRatio <=1){
return false;
}
var parent=$('#Top_bar #logo'),
el=$('img.logo-main', parent),
height=el.data('height');
if(! parent.hasClass('retina')){
return false;
}
if($('body').hasClass('logo-overflow')){
}else if(height > parent.data('height')){
height=parent.data('height');
}
el.css('max-height', height + 'px');
}
function mfnStickyH(){
var topBarH=$('#Top_bar').innerHeight()||0;
if($('body').hasClass('header-below')){
var sliderH=$('.mfn-main-slider').innerHeight()||0;
headerH=topBarH + sliderH;
}else{
var actionBarH=$('#Action_bar').innerHeight()||0;
headerH=topBarH + actionBarH;
}}
function mfnMobileSticky(){
if(! $('body').hasClass('.mobile-sticky')){
return false;
}
if($(window).width() >=768){
return false;
}
var menuH,
windowH=$(window).height()||0,
logoH=$('#Top_bar .logo').height()||0,
offset=adminBarH() + logoH;
if(( ! $('#Top_bar').hasClass('is-sticky'))&&$('#Action_bar').is(':visible')){
offset +=$('#Action_bar').height()||0;
}
menuH=windowH - offset;
if(menuH < 176){
menuH=176;
}
$('#Top_bar #menu').css('max-height', menuH + 'px');
}
function headerWidth(){
var rightW=$('.top_bar_right').outerWidth()||0;
rightW=Math.ceil(rightW);
if($('body').hasClass('header-modern')){
rightW +=10;
}
var parentW=$('#Top_bar .one').width()||0;
var leftW=parentW - rightW;
}
function fixStickyHeaderH(){
var stickyH=0;
var topBar=$('.sticky-header #Top_bar');
if(topBar.length){
if(topBar.hasClass('is-sticky')){
stickyH=$('.sticky-header #Top_bar').innerHeight()||0;
}else{
topBar.addClass('is-sticky');
stickyH=$('.sticky-header #Top_bar').innerHeight()||0;
topBar.removeClass('is-sticky');
}}else if($('.mfn-header-tmpl-builder').length){
var height=15;
var shift=0;
if($('#mfn-header-template').hasClass('mfn-hasSticky')){
height=$('#mfn-header-template').outerHeight();
shift=parseFloat($('#mfn-header-template').css('top'));
}else if($('#mfn-header-template').hasClass('mfn-header-tmpl-fixed')){
height=$('#mfn-header-template').outerHeight();
shift=parseFloat($('#mfn-header-template').css('top'));
}else if($('#mfn-header-template').hasClass('mfn-mobile-header-tmpl-fixed')&&$(window).width() < 767){
height=$('#mfn-header-template').outerHeight();
shift=parseFloat($('#mfn-header-template').css('top'));
}
stickyH=height + shift;
return stickyH;
}
if($(window).width() < mobileInitW){
if($(window).width() < 768){
if(!$('body').hasClass('mobile-sticky')){
stickyH=0;
}}else{
if(!$('body').hasClass('tablet-sticky')){
stickyH=0;
}}
}else{
if($('body').hasClass('header-creative')){
stickyH=0;
}}
return stickyH;
}
function mfnSidebar(){
if($('.mcb-sidebar').length){
var maxH=$('#Content .sections_group').outerHeight();
$('.mcb-sidebar').each(function(){
$(this).css('min-height', 0);
if($(this).height() > maxH){
maxH=$(this).height();
}});
$('.mcb-sidebar').css('min-height', maxH + 'px');
if(sidebar){
sidebar.stickySidebar('updateSticky');
}}
}
function mfnIntroH(){
var windowH=$(window).height()||0;
var headerWrapperH=$('#Header_wrapper').height()||0;
windowH=windowH - headerWrapperH - adminBarH();
$('#Intro.full-screen').each(function(){
var el=$(this),
inner=$('.intro-inner', el),
innerH=inner.height()||0;
el.css('padding', 0).css('min-height', windowH);
var padding=(windowH - innerH) / 2;
inner.css('padding-top', padding).css('padding-bottom', padding);
});
}
function mfnFooter(){
var footerH=$('#Footer').height()||0;
if($('.footer-fixed #Footer, .footer-sliding #Footer').length){
footerH=footerH - 1;
$('#Content').css('margin-bottom', footerH + 'px');
}
if($('.footer-stick #Footer').length){
var headerWrapperH=$('#Header_wrapper').height()||0;
var headerFooterH=headerWrapperH + footerH;
var documentH=$(document).height() - adminBarH();
if(( documentH <=$(window).height())&&(headerFooterH <=$(window).height()) ){
$('#Footer').addClass('is-sticky');
}else{
$('#Footer').removeClass('is-sticky');
}}
}
function backToTopSticky(){
if($('#back_to_top.sticky.scroll').length){
var el=$('#back_to_top.sticky.scroll');
if(scrollTicker){
window.clearTimeout(scrollTicker);
scrollTicker=null;
}
el.addClass('focus');
scrollTicker=window.setTimeout(function(){
el.removeClass('focus');
}, 1500);
}}
function preloader(){
$('body.preloader').animate({
opacity: 1
}, 100, function(){
$('html').removeClass('preloading');
});
}
function hashNav(){
var hash=window.location.hash;
if(hash){
if(hash.indexOf("&") > -1||hash.indexOf("/") > -1||hash.indexOf("?") > -1){
return false;
}
if(hash.indexOf("wpcf7") > -1){
cf7popup(hash);
}
if($(hash).length){
$(window).scrollTop(0, 0);
setTimeout(function(){
var offset=0,
headerH=fixStickyHeaderH(),
tabH=$(hash).siblings('.ui-tabs-nav').innerHeight()||0;
if($('body').hasClass('mhb')){
var currentView=$('.mhb-view').filter(':visible');
headerH=currentView.height()||0;
}
offset=headerH + tabH;
$('html, body').animate({
scrollTop: $(hash).offset().top - offset
}, 500);
}, 500);
}}
}
function onePageActive(){
if($('body').hasClass('one-page')){
var stickyH=$('.sticky-header #Top_bar').innerHeight()||0;
if($('#mfn-header-template').length) stickyH=$('#mfn-header-template').innerHeight()||0;
var windowT=$(window).scrollTop();
var start=windowT + stickyH + adminBarH() + 1;
var first=false;
$('[data-id]:not(.elementor-element), section[data-id]').each(function(){
if($(this).attr('data-id')&&(-1==$(this).attr('data-id').indexOf('#')) ){
return true;
}
if($(this).visible(true)){
if(!first){
first=$(this);
}else if(($(this).offset().top < start)&&($(this).offset().top > first.offset().top)){
first=$(this);
}}
if(first){
var newActive=first.attr('data-id');
var active='[data-hash="' + newActive + '"]';
if(newActive){
var menu=$('#menu, .mhb-menu');
if($('#mfn-header-template').length) menu=$('#mfn-header-template .mfn-header-menu');
menu.find('li').removeClass('current-menu-item current-menu-parent current-menu-ancestor current_page_item current_page_parent current_page_ancestor');
$(active, menu)
.closest('li').addClass('current-menu-item')
.closest('.menu > li').addClass('current-menu-item');
}}
});
}}
function cf7popup(hash){
if(hash&&$(hash).length){
var id=$(hash).closest('.popup-content').attr('id');
$('a.popup-link[href="#' + id + '"]:not(.once)')
.addClass('once')
.trigger('click');
}}
$(document).on('mfnPopupInit', function(){
if($('.mfn-popup-tmpl.mfn-popup-active .chart:not(.mfn-initialized)').length){
$('.mfn-popup-tmpl.mfn-popup-active .chart:not(.mfn-initialized)').each(function(){
var lineW=simple ? 4:8;
$(this).addClass('mfn-initialized');
$(this).easyPieChart({
animate: 1000,
lineCap: 'circle',
lineWidth: lineW,
size: 140,
scaleColor: false
});
});
}
if($('.mfn-popup-tmpl.mfn-popup-active .before_after.twentytwenty-container:not(.mfn-initialized)').length){
$('.mfn-popup-tmpl.mfn-popup-active .before_after.twentytwenty-container:not(.mfn-initialized)').each(function(){
var el=$(this);
el.addClass('mfn-initialized');
el.imagesLoaded().done(function(instance, image){
queueMicrotask(()=> el.twentytwenty());
});
});
}
if($('.mfn-popup-tmpl.mfn-popup-active .downcount:not(.mfn-initialized)').length){
$('.mfn-popup-tmpl.mfn-popup-active .downcount:not(.mfn-initialized)').each(function(){
var el=$(this);
el.addClass('mfn-initialized');
el.downCount({
date: el.attr('data-date'),
offset: el.attr('data-offset')
});
});
}
if($('.mfn-popup-tmpl.mfn-popup-active .animate-math .number:not(.mfn-initialized)').length){
$('.mfn-popup-tmpl.mfn-popup-active .animate-math .number:not(.mfn-initialized)').each(function(){
var el=$(this);
var duration=Math.floor((Math.random() * 1000) + 1000);
var to=el.attr('data-to');
el.addClass('mfn-initialized');
$({
property: 0
}).animate({
property: to
}, {
duration: duration,
easing: 'linear',
step: function(){
el.text(Math.floor(this.property));
},
complete: function(){
el.text(this.property);
}});
});
}});
$(document).on('mfn:ajax:refresh', function(){
if($('.mfn-looped-items-slider').length){
queryLoopSlider();
}
bannerBox.init();
mfnReadMore.prepare();
mfnTabber.sliding_bg();
if($('.mfn-advanced-filters').length) mfnAdvancedFilters.prepare();
if($('.mfn-floating-placeholder').length){
$('.mfn-floating-placeholder .mfn-input-wrapper input').each(function(){
if($(this).val().length){
$(this).closest('.mfn-input-wrapper').addClass('mfn-not-empty');
}else{
$(this).closest('.mfn-input-wrapper').removeClass('mfn-not-empty');
}});
}
$('.downcount:not(.mfn-initialized)').each(function(){
var el=$(this);
el.addClass('mfn-initialized');
el.downCount({
date: el.attr('data-date'),
offset: el.attr('data-offset')
});
});
})
$(document).ready(function(){
if($('.mfn-off-canvas-sidebar').length){
offCanvasSidebar.init();
}
if($('.mfn-advanced-filters').length){
mfnAdvancedFilters.init();
}
mfnTabber.init();
if($(window).width() < 767&&!$('.mfn-off-canvas-sidebar').length){
offCanvasSidebar.mobile();
screen='mobile';
}else if($(window).width() < 959){
screen='tablet';
}
if($('.mfn-floating-placeholder').length){
$(document).on('blur change', '.mfn-floating-placeholder .mfn-input-wrapper input', function(){
if($(this).val().length){
$(this).closest('.mfn-input-wrapper').addClass('mfn-not-empty');
}else{
$(this).closest('.mfn-input-wrapper').removeClass('mfn-not-empty');
}});
$('.mfn-floating-placeholder .mfn-input-wrapper input').each(function(){
if($(this).val().length){
$(this).closest('.mfn-input-wrapper').addClass('mfn-not-empty');
}else{
$(this).closest('.mfn-input-wrapper').removeClass('mfn-not-empty');
}});
}
if($('body').hasClass('single-post')&&$('.mfn-tmp-elementor-content').length&&$('.column.column_post_content').length){
$('.column.column_post_content .mcb-item-post_content-inner').html($('.mfn-tmp-elementor-content').html());
$('.mfn-tmp-elementor-content').remove();
}
if($('.mfn-share-post-copy-link').length){
$('.mfn-share-post-copy-link').on('click', function(e){
e.preventDefault();
var $link=$(this);
navigator.clipboard.writeText(window.location.href);
$link.addClass('tooltip').attr('data-tooltip', mfn.translation.success_message);
setTimeout(function(){
$link.removeClass('tooltip').removeAttr('data-tooltip');
}, 2000);
});
}
if($('.mfn-image-hotspot').length){
mfn_hotspot.init();
}
if($('.mfn-go-to').length){
$(document).on('click', '.mfn-go-to', function(e){
e.preventDefault();
let target=$(this).attr('data-mfngoto');
let offset=0;
if(target=='last'){
offset=$('#Content .mfn-builder-content > .section').last().offset().top;
}else if(target=='prev'){
if(!$(this).closest('.section').prev('.section').length){console.error('BeTheme: Prev section doesnt exists'); return; }
offset=$(this).closest('.section').prev('.section').offset().top;
}else{
if(!$(this).closest('.section').next('.section').length){console.error('BeTheme: Next section doesnt exists'); return; }
offset=$(this).closest('.section').next('.section').offset().top;
}
offset=offset -(fixStickyHeaderH() + adminBarH());
$('html,body').animate({ scrollTop: offset }, 500);
});
}
let js_tooltip={
button: false,
offset_top: false,
offset_left: false,
init: function(){
$('.js-tooltip').on('mouseenter', function(){
js_tooltip.button=$(this);
if(typeof js_tooltip.button.attr('data-tooltip')=='undefined') return;
$('body').append('<span class="js-tooltip-txt">'+js_tooltip.button.attr('data-tooltip')+'</span>');
js_tooltip.position();
}).on('mouseleave', function(){
if($('.js-tooltip-txt').length) $('.js-tooltip-txt').remove();
js_tooltip.button=false;
});
$(window).on('scroll', function(){
if(js_tooltip.button) js_tooltip.position();
});
},
position: function(){
let offset=js_tooltip.button.offset();
js_tooltip.offset_top=offset.top - $(window).scrollTop() - 8;
js_tooltip.offset_left=offset.left + (js_tooltip.button.outerWidth()/2);
if(js_tooltip.button&&$('.js-tooltip-txt').length) $('.js-tooltip-txt').css({ top: js_tooltip.offset_top+'px', left: js_tooltip.offset_left+'px' });
}}
if($('.js-tooltip').length) js_tooltip.init();
if($('.mfn-copy-to-clipboard').length){
$(document).on('click', '.mfn-copy-to-clipboard', function(e){
e.preventDefault();
let code=$(this).attr('data-mfncopycode');
let button=$(this);
let org_label=button.find('.button_label').text();
let copied_txt=button.attr('data-mfncopyconfirm');
navigator.clipboard.writeText(code);
if(button.hasClass('js-tooltip')){
org_label=button.attr('data-tooltip');
button.attr('data-tooltip', copied_txt);
if($('.js-tooltip-txt').length) $('.js-tooltip-txt').remove();
button.trigger('mouseenter');
}else{
button.find('.button_label').text(copied_txt);
}
button.on('mouseleave', function(){
button.blur();
});
setTimeout(function(){
if(button.hasClass('js-tooltip')){
button.attr('data-tooltip', org_label);
if($('.js-tooltip-txt').length) $('.js-tooltip-txt').remove();
button.trigger('mouseenter');
}else{
button.find('.button_label').text(org_label);
}}, 2000);
});
}
if($('.mfn-language-switcher-dropdown:not(.mfn-initialized)').length){
$('.mfn-language-switcher-dropdown:not(.mfn-initialized)').each(function(){
let that=$(this);
that.addClass('mfn-initialized');
let $ul=that.find('ul');
let $current=$ul.find('li.wpml-ls-current-language');
$current.append($ul.clone());
$ul.children('li:not(.wpml-ls-current-language)').remove();
$current.find('ul li.wpml-ls-current-language').remove();
if(that.hasClass('mfn-language-switcher-dropdown-icon')){
let icon_html='';
if(that.attr('data-icon')=='image'){
icon_html='<span class="mfn-arrow-icon"><img src="'+that.attr('data-path')+'" alt=""></span>';
}else if(that.attr('data-icon')=='icon'){
icon_html='<span class="mfn-arrow-icon"><i class="'+that.attr('data-path')+'"></i></span>';
}
$current.children('a').append(icon_html);
}});
$(document).on('click', '.mfn-language-switcher-dropdown ul li.wpml-ls-current-language > a', function(e){
if($(window).width() < 1240) e.preventDefault();
$(this).parent('li').toggleClass('hover');
}).on('mouseleave', '.mfn-language-switcher-dropdown ul li.wpml-ls-current-language.hover', function(e){
$('.mfn-language-switcher-dropdown ul li.hover').removeClass('hover');
});
}
class Isotope {
constructor(){
this.runIsotopes=this.runIsotopes.bind(this);
this.itemToModify={};
this.ajaxObjects=[];
}
get getList(){
return [
{
name: 'Portfolio - Isotope',
location: '.blog_wrapper .isotope:not(.masonry), .portfolio_wrapper .isotope:not(.masonry-flat, .masonry-hover, .masonry-minimal)',
beforeActive: ()=> null,
afterActive: ()=> null,
settings: {
itemSelector: '.isotope-item',
layoutMode: 'fitRows',
isOriginLeft: rtl ? false:true
}},
{
name: 'Portfolio - Masonry Flat',
location: '.portfolio_wrapper .masonry-flat',
beforeActive: ()=> null,
afterActive: ()=> null,
settings: {
itemSelector: '.isotope-item',
percentPosition: true,
masonry: { columnWidth: 1 },
isOriginLeft: rtl ? false:true
}},
{
name: 'Blog & Portfolio & Shop - Masonry',
location: '.isotope.masonry, .isotope.masonry-hover, .isotope.masonry-minimal',
beforeActive: ()=> null,
afterActive: ()=> null,
settings: {
itemSelector: '.isotope-item',
layoutMode: 'masonry',
isOriginLeft: rtl ? false:true
}},
{
name: 'Filters - Isotope Event on Click',
location: 'body:not(.tax-portfolio-types,.archive.category,.archive.tag,.archive.author) .isotope-filters .filters_wrapper',
beforeActive: ()=> null,
afterActive: ({location})=> {
const filterButtons=$(location).find('li:not(.close) a');
filterButtons.on('click', (e)=> {
e.preventDefault();
const buttonClicked=$(e.target);
let isoWrapper=$('.isotope'),
filters=buttonClicked.closest('.isotope-filters'),
parent=filters.attr('data-parent');
if(parent){
parent=filters.closest('.' + parent);
isoWrapper=parent.find('.isotope').first();
}
filters.find('li').removeClass('current-cat');
buttonClicked.closest('li').addClass('current-cat');
this.isotopeFilter(buttonClicked, isoWrapper);
})
},
settings: 'do-not-run'
},
...this.ajaxObjects
]
}
addEventListener(onEvent, doWhat){
return $(document).on(`isotope:${onEvent}`, doWhat)
}
queryIsotopeAPI(location, apiAction, actionToPass){
return $(location).isotope(apiAction, actionToPass);
};
triggerIsotopeEvent(doWhat){
return $(document).trigger(`isotope:${doWhat}`)
}
addIsotopeLocation(payload){
if(!payload.location) return console.error('MfnIsotope Error: No Location Provided!');
this.ajaxObjects.push({
name: payload.name ? payload.name:'No name applied - Dynamic Isotope Function',
location: payload.location,
beforeActive: payload.beforeActive ? payload.beforeActive:()=> null,
afterActive: payload.afterActive ? payload.afterActive:()=> null,
settings: payload.settings ? payload.settings:{}}
);
$(payload.location).isotope(payload.settings)
}
isotopeFilter(domEl, isoWrapper){
if(!domEl||!isoWrapper) return console.error('MfnIsotope Error: isotopeFilter, missing one of the values!');
const filter=domEl.attr('data-rel');
isoWrapper.isotope({ filter });
queueMicrotask(()=> $(window).trigger('resize'));
setTimeout(function(){
mfnIsotope.triggerIsotopeEvent('arrange');
}, 500);
}
runIsotopes(resize=true){
const isotopeList=this.getList;
isotopeList.map(item=> {
if($(item.location).length){
item.beforeActive(item)
if(resize){
$(window).trigger('resize');
}
if('do-not-run'!==item.settings){
queueMicrotask(()=> $(item.location).isotope(item.settings));
}
item.afterActive(item);
}});
}}
const mfnIsotope=new Isotope;
mfnIsotope.runIsotopes();
class Waypoints {
constructor(){
this.runWaypoints=this.runWaypoints.bind(this);
}
get getList(){
return [
{
name: 'Chart',
location: '.sections_group .chart, .elementor-section .chart',
beforeActive: ()=> {},
afterActive: ()=> {},
settings: ()=> {
return {
offset: '100%',
triggerOnce: true,
handler: function(){
var el=$(this.element).length ? $(this.element):$(this);
var lineW=simple ? 4:8;
el.easyPieChart({
animate: 1000,
lineCap: 'circle',
lineWidth: lineW,
size: 140,
scaleColor: false
});
if(typeof this.destroy!=='undefined'&&$.isFunction(this.destroy)){
this.destroy();
}}
}}
},
{
name: 'Progress Icons',
location: '.progress_icons',
beforeActive: ()=> {},
afterActive: ()=> {},
settings: ()=> {
return {
offset: '100%',
triggerOnce: true,
handler: function(){
var el=$(this.element).length ? $(this.element):$(this);
var active=el.attr('data-active');
var color=el.attr('data-color');
var transparent=el.hasClass('transparent');
var icon=el.find('.progress_icon');
var timeout=200;
icon.each(function(i){
if(i < active){
var time=(i + 1) * timeout;
setTimeout(function(){
$(icon[i]).addClass('themebg');
if(transparent){
$(icon[i]).css('color', color);
}else{
$(icon[i]).css('background-color', color);
}}, time);
}});
if(typeof this.destroy!=='undefined'&&$.isFunction(this.destroy)){
this.destroy();
}}
}}
},
{
name: 'Animate Math | Counter, Quick Fact, etc.',
location: '#Wrapper .animate-math .number',
beforeActive: ()=> {},
afterActive: ()=> {},
settings: ()=> {
return {
offset: '100%',
triggerOnce: true,
handler: function(){
var el=$(this.element).length ? $(this.element):$(this);
var duration=el.attr('data-duration') * 1||Math.floor((Math.random() * 1000) + 1000);
var thousands_separator=el.attr('data-thousands-separator')||0;
var to=el.attr('data-to');
$({
property: 0
}).animate({
property: to
}, {
duration: duration,
easing: 'linear',
step: function(){
if('comma'==thousands_separator){
el.text(Math.floor(this.property).toString().replace(/\B(?=(\d{3})+(?!\d))/g, ","))
}else if('dot'==thousands_separator){
el.text(Math.floor(this.property).toString().replace(/\B(?=(\d{3})+(?!\d))/g, "."))
}else if('space'==thousands_separator){
el.text(Math.floor(this.property).toString().replace(/\B(?=(\d{3})+(?!\d))/g, " "))
}else{
el.text(Math.floor(this.property));
}},
complete: function(){
if('comma'==thousands_separator){
el.text(Math.floor(this.property).toString().replace(/\B(?=(\d{3})+(?!\d))/g, ","))
}else if('dot'==thousands_separator){
el.text(Math.floor(this.property).toString().replace(/\B(?=(\d{3})+(?!\d))/g, "."))
}else if('space'==thousands_separator){
el.text(Math.floor(this.property).toString().replace(/\B(?=(\d{3})+(?!\d))/g, " "))
}else{
el.text(Math.floor(this.property));
}}
});
if(typeof this.destroy!=='undefined'&&$.isFunction(this.destroy)){
this.destroy();
}}
}}
},
{
name: 'Infinite Scroll | Blog & Portfolio',
location: '.mfn-infinite-load-button',
infiniteLoadButton: $('.mfn-infinite-load-button a'),
beforeActive: ()=> {},
afterActive: ({infiniteLoadButton})=> {
},
settings: ({infiniteLoadButton, location})=> {
return {
handler: function(direction){
infiniteScrollFunction($(location), infiniteLoadButton, direction);
},
offset: function(){
var offsetPosition=-(($(this)[0].element.scrollHeight) - (window.innerHeight / 1.2));
return offsetPosition;
}}
}},
{
name: 'Bars List',
location: '.bars_list',
beforeActive: ()=> {},
afterActive: ({infiniteLoadButton})=> {},
settings: ()=> {
return {
offset: '100%',
triggerOnce: true,
handler: function(){
var el=$(this.element).length ? $(this.element):$(this);
el.addClass('hover');
if(typeof this.destroy!=='undefined'&&$.isFunction(this.destroy)){
this.destroy();
}}
}}
}
]
}
runWaypoints(){
const waypoints=this.getList;
waypoints.map(item=> {
if($(item.location).length){
item.beforeActive(item)
queueMicrotask(()=> $(item.location).waypoint(item.settings(item)));
item.afterActive(item);
}})
}}
const mfnWaypoints=new Waypoints;
mfnWaypoints.runWaypoints();
$(document).on('mfn:waypoints', function(){
mfnWaypoints.runWaypoints();
})
if($('.promo_bar_slider').length){
promoBarSlider();
}
if($('.mfn-looped-items-slider').length){
queryLoopSlider();
}
headerTemplate.init();
footerTemplate.init();
bannerBox.init();
mfnSideMenu.init();
mfnReadMore.init();
if($('.mfn-menu-item-megamenu').length){
headerMegamenu.init();
}
function sidebarSticky(){
var spacing=fixStickyHeaderH();
if(! mfn.sidebarSticky){
return false;
}
if($('.woocommerce-store-notice').length){
spacing +=$('.woocommerce-store-notice').outerHeight()||0;
}
sidebar=$('.mcb-sidebar .widget-area').stickySidebar({
topSpacing: spacing
});
}
sidebarSticky();
$(window).on('debouncedresize', function(){
if($(window).width() < 767){
screen='mobile';
}else if($(window).width() < 959){
screen='tablet';
}else if($(window).width() > 960){
screen='desktop';
}
bannerBox.init();
newWidth=$(window).width();
if(newWidth!=currWidth){
currWidth=$(window).width();
headerTemplate.init();
footerTemplate.init();
}
if($(window).width() < 767&&!$('.mfn-off-canvas-sidebar').length){
offCanvasSidebar.mobile();
}else{
$('html').removeClass('mfn-ofcs-opened');
}});
$('.overlay-menu-toggle').on('click',function(e){
e.preventDefault();
$(this).toggleClass('focus');
$('#Overlay').stop(true, true).fadeToggle(500);
var menuH=$('#Overlay nav').height()||0;
menuH=menuH / 2;
$('#Overlay nav').css('margin-top', '-' + menuH + 'px');
});
$('#Overlay').on('click', '.menu-item > a', function(){
$('.overlay-menu-toggle').trigger('click');
});
$('.header-overlay').on('keydown', function(event){
if(27==event.keyCode){
$('.overlay-menu-toggle.focus').trigger('click');
}});
$('.responsive-menu-toggle').on('click', function(e){
e.preventDefault();
var el=$(this);
var menu=$('#Top_bar #menu');
var menuWrap=menu.closest('.top_bar_left');
el.toggleClass('active');
if(el.hasClass('is-sticky')&&el.hasClass('active')&&(window.innerWidth < 768)){
var top=0;
if(menuWrap.length){
top=menuWrap.offset().top - adminBarH();
}
$('body,html').animate({
scrollTop: top
}, 200);
}
menu.stop(true, true).slideToggle(200);
});
$('#Top_bar #menu').on('click', 'a:not(.menu-toggle)', function(){
var $menuButton=$('.responsive-menu-toggle.active');
if($menuButton.length){
setTimeout(function(){
$menuButton.trigger('click');
},300);
}});
function sideSlide(){
var slide=$('#Side_slide');
var overlay=$('#body_overlay');
var ssMobileInitW=mobileInitW;
var pos='right';
var shiftSlide=-slide.data('width');
var shiftBody=shiftSlide / 2;
var constructor=function(){
if(!slide.hasClass('enabled')){
$('nav#menu').detach().appendTo('#Side_slide .menu_wrapper');
slide.addClass('enabled');
}};
var destructor=function(){
if(slide.hasClass('enabled')){
close();
$('nav#menu').detach().prependTo('#Top_bar .menu_wrapper');
slide.removeClass('enabled');
}};
var reload=function(){
if(window.innerWidth < ssMobileInitW){
constructor();
}else if($('body').hasClass('header-shop')){
if($('#Top_bar').hasClass('is-sticky')){
$(document).trigger('mfn:header:sticky:on');
}else{
$(document).trigger('mfn:header:sticky:off');
}}else{
destructor();
}};
var init=function(){
if(slide.hasClass('left')){
pos='left';
}
if($('body').hasClass('responsive-off')){
ssMobileInitW=0;
}
if($('body').hasClass('header-simple')){
ssMobileInitW=9999;
}
if($('#Top_bar').hasClass('is-sticky')){
$(document).trigger('mfn:header:sticky:on');
}
reload();
};
var reset=function(time){
$('.lang-active.active', slide).removeClass('active').children('i').attr('class', 'icon-down-open-mini');
$('.lang-wrapper', slide).fadeOut(0);
$('.icon.search.active', slide).removeClass('active');
$('.search-wrapper', slide).fadeOut(0);
$('.menu_wrapper, .social', slide).fadeIn(time);
};
var button=function(){
if(pos=='left'){
slide.animate({
'left': 0
}, 300);
$('body').animate({
'right': shiftBody
}, 300);
}else{
slide.animate({
'right': 0
}, 300);
$('body').animate({
'left': shiftBody
}, 300);
}
overlay.fadeIn(300);
$('body').addClass('side-slide-is-open');
reset(0);
};
var close=function(){
if(pos=='left'){
slide.animate({
'left': shiftSlide
}, 300);
$('body').animate({
'right': 0
}, 300);
}else{
slide.animate({
'right': shiftSlide
}, 300);
$('body').animate({
'left': 0
}, 300);
}
overlay.fadeOut(300);
$('body').removeClass('side-slide-is-open');
if($('body').hasClass('keyboard-support')){
$('#Side_slide').attr('aria-expanded', 'false');
}
if($('rs-module').length){
setTimeout(function(){
$(window).trigger('resize');
redrawAllRevolutionSliders();
}, 310);
}};
$('.icon.search', slide).on('click', function(e){
e.preventDefault();
var el=$(this);
if(el.hasClass('active')){
$('.search-wrapper', slide).fadeOut(0);
$('.menu_wrapper, .social', slide).fadeIn(300);
}else{
$('.search-wrapper', slide).fadeIn(300);
$('.menu_wrapper, .social', slide).fadeOut(0);
$('.lang-active.active', slide).removeClass('active').children('i').attr('class', 'icon-down-open-mini');
$('.lang-wrapper', slide).fadeOut(0);
}
el.toggleClass('active');
});
$('a.submit', slide).on('click', function(e){
e.preventDefault();
$('#side-form').submit();
});
$('.lang-active', slide).on('click', function(e){
e.preventDefault();
var el=$(this);
if(el.hasClass('active')){
$('.lang-wrapper', slide).fadeOut(0);
$('.menu_wrapper, .social', slide).fadeIn(300);
el.children('i').attr('class', 'icon-down-open-mini');
}else{
$('.lang-wrapper', slide).fadeIn(300);
$('.menu_wrapper, .social', slide).fadeOut(0);
el.children('i').attr('class', 'icon-up-open-mini');
$('.icon.search.active', slide).removeClass('active');
$('.search-wrapper', slide).fadeOut(0);
}
el.toggleClass('active');
});
$('.responsive-menu-toggle').off('click');
$('.responsive-menu-toggle').on('click', function(e){
e.preventDefault();
button();
});
overlay.on('click', function(e){
close();
});
$('.close', slide).on('click', function(e){
e.preventDefault();
close();
});
$(slide).on('click', '.menu_wrapper a:not(.menu-toggle), .action_button', function(e){
if($(this).hasClass('mega-menu-link')){
return;
}
if('#'==$(this).attr('href')){
e.preventDefault();
return;
}
setTimeout(function(){
close();
},500);
});
$(slide).on('click', function(e){
if($(e.target).is(slide)){
reset(300);
}});
$(window).on('debouncedresize', reload);
if($('body').hasClass('header-shop')){
$(document).on('mfn:header:sticky:on', function(){
if(window.innerWidth >=ssMobileInitW){
$('#Top_bar .menu_wrapper').css('min-height', '70px');
constructor();
}});
$(document).on('mfn:header:sticky:off', function(){
if(window.innerWidth >=ssMobileInitW){
destructor();
}});
}
init();
}
if($('body').hasClass('mobile-side-slide')){
sideSlide();
}
msnryGalleryInit();
$('.sections_group .wp-block-gallery').each(function(index){
var el=$(this);
var link=$('.blocks-gallery-item a, .wp-block-image a', el);
if((/\.(gif|jpg|jpeg|png)$/i).test(link.attr('href'))){
link.attr('rel', 'prettyphoto[wp5-gallery-' + index + ']');
}});
$('.widget_media_gallery .gallery').each(function(){
var el=$(this);
var id=el.attr('id');
$('.gallery-icon a', el).attr('rel', 'prettyphoto[widget-' + id + ']');
});
$('a[rel^="prettyphoto[portfolio]"]').each(function(){
var el=$(this);
var parent=el.closest('.column');
var index=$('.column').index(parent);
el.attr('rel', 'prettyphoto[portfolio-' + index + ']');
});
$('.elementor-page .woocommerce-product-gallery .woocommerce-product-gallery__image a').attr('href','');
function lightbox(){
var galleries=[];
var init=function(){
if(lightboxAttr){
compatibility();
setType();
constructor();
}};
var compatibility=function(){
$('a[rel^="prettyphoto"], a.prettyphoto, a[rel^="prettyphoto"]').each(function(){
var el=$(this);
var rel=el.attr('rel');
if(rel){
rel=rel.replace('prettyphoto', 'lightbox');
}else{
rel='lightbox';
}
el.removeClass('prettyphoto').attr('rel', rel);
});
};
var isGallery=function(rel){
if(!rel){
return false;
}
var regExp=/\[(?:.*)\]/;
var gallery=regExp.exec(rel);
if(gallery){
gallery=gallery[0];
gallery=gallery.replace('[', '').replace(']', '');
return gallery;
}
return false;
};
var setGallery=function(gallery){
if(galleries.indexOf(gallery)==-1){
galleries.push(gallery);
return true;
}
return false;
};
var getType=function(src){
if(src.match(/youtube\.com\/watch/i)||src.match(/youtube\.com\/embed/i)||src.match(/youtu\.be/i)){
return 'iframe';
}else if(src.match(/youtube-nocookie\.com/i)){
return 'iframe';
}else if(src.match(/vimeo\.com/i)){
return 'iframe';
}else if(src.match(/\biframe=true\b/i)){
return 'ajax';
}else if(src.match(/\bajax=true\b/i)){
return 'ajax';
}else if(src.match(/\.mp4/i)){
return 'mp4';
}else if(src.substr(0, 1)=='#'){
return 'inline';
}else{
return 'image';
}};
var setType=function(){
$('a[rel^="lightbox"]').each(function(){
var el=$(this);
var href=el.attr('href');
var rel=el.attr('rel');
if(el.closest('.wpb_column').length){
}
if(href){
var gallery=isGallery(rel);
if(gallery){
el.attr('data-lightbox-type', 'gallery');
setGallery(gallery);
return true;
}
el.attr('data-lightbox-type', getType(href));
if(getType(href)=='iframe'){
el.attr('href', href.replace('&rel=0', ''));
}}
});
};
var constructor=function(){
if(!galleries.length
&& !$('a[rel^="lightbox"][data-lightbox-type="image"]').length
&& !$('a[rel^="lightbox"][data-lightbox-type="iframe"]').length
&& !$('a[rel^="lightbox"][data-lightbox-type="inline"]').length
&& !$('a[rel^="lightbox"][data-lightbox-type="mp4"]').length
&& !$('a[rel^="pdf-lightbox"]').length
) return;
var attr={
autoFocusLast: false,
removalDelay: 160,
image: {
titleSrc: function(item){
var img=item.el.closest('.image_wrapper, li').find('img').first();
if(lightboxAttr.title&&img.length){
return img.attr('alt');
}else{
return false;
}}
}};
$('a[rel^="lightbox"][data-lightbox-type="image"]').magnificPopup({
autoFocusLast: attr.autoFocusLast,
removalDelay: attr.removalDelay,
type: 'image',
image: attr.image
});
$('a[rel^="lightbox"][data-lightbox-type="iframe"]').magnificPopup({
autoFocusLast: attr.autoFocusLast,
removalDelay: attr.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'
}}
}});
$('a[rel^="lightbox"][data-lightbox-type="mp4"]').magnificPopup({
autoFocusLast: attr.autoFocusLast,
removalDelay: attr.removalDelay,
type: 'iframe',
iframe: {
markup: '<div class="mfp-mp4 popup-content">'+
'<video controls mute autoplay>'+
'<source class="mfp-source" type="video/mp4">'+
'</video>'+
'<div class="mfp-close"></div>'+
'</div>',
patterns: {
mp4: {
src: '%id%',
}},
srcAction: 'source_src',
}});
$('a[rel^="pdf-lightbox"]').magnificPopup({
autoFocusLast: attr.autoFocusLast,
removalDelay: attr.removalDelay,
type: 'iframe'
});
$('a[rel^="lightbox"][data-lightbox-type="inline"]').magnificPopup({
autoFocusLast: attr.autoFocusLast,
type: 'inline',
midClick: true,
callbacks: {
open: function(){
$('.mfp-content').children().addClass('mfp-inline')
},
beforeClose: function(){
$('.mfp-content').children().removeClass('mfp-inline');
}}
});
for (var i=0, len=galleries.length; i < len; i++){
var gallery='[' + galleries[i] + ']';
gallery='a[rel^="lightbox' + gallery + '"]:visible';
$(gallery).magnificPopup({
autoFocusLast: attr.autoFocusLast,
removalDelay: attr.removalDelay,
type: 'image',
image: attr.image,
gallery: {
enabled: true,
tCounter: '<span class="mfp-counter">%curr% / %total%</span>'
}});
}
$('.elementor-page a[rel^="lightbox"]:not(.popup-link):not(.rs-layer):not([data-lightbox-type="iframe"])').off('click');
setTimeout(function(){
var $doc=$('body');
var $events=$._data($doc[0],"events");
if($events&&$events.click){
for(var i=$events.click.length-1; i>=0; i--){
var handler=$events.click[i];
if(handler&&handler.selector&&handler.selector.indexOf('lightbox')!==-1){
$('.wpb_column a[rel^="lightbox"]:not(.popup-link)').off('click');
}}
}},0);
};
var reload=function(){
$('a[rel^="lightbox"]').off('click');
constructor();
};
init();
mfnIsotope.addEventListener('arrange', reload);
$(document).ajaxComplete(function(){
reload();
});
}
lightbox();
$(document).on('mfnPopupInit', function(){
lightbox();
});
$(document).on('mfn:tabber:open', function(){
lightbox();
});
function mainMenu(){
var mmMobileInitW=mobileInitW;
if($('body').hasClass('header-simple')||$('#Header_creative.dropdown').length){
mmMobileInitW=9999;
}
$('#menu > ul.menu').mfnMenu({
addLast: true,
arrows: true,
mobileInit: mmMobileInitW,
responsive: mfn.responsive
});
$('#secondary-menu > ul.secondary-menu').mfnMenu({
mobileInit: mmMobileInitW,
responsive: mfn.responsive
});
}
mainMenu();
function onePageScroll(){
if(!$('body').hasClass('one-page')){
var menu=$('#menu');
if(menu.find('li.scroll').length > 1){
menu.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');
menu.on('click','a',function(){
$(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');
$(this).closest('li').addClass('current-menu-item');
});
}}
}
onePageScroll();
function onePageMenu(){
if($('body').hasClass('one-page')){
var menu=$('#menu');
if($('#mfn-header-template').length) menu=$('#mfn-header-template .mfn-header-menu');
$('a[href]', menu).each(function(){
var url=$(this).attr('href');
if(url&&url.split('#')[1]){
var hash='#' + url.split('#')[1];
if(hash&&$(hash).length){
$(this).attr('data-hash', hash);
$(hash).attr('data-id', hash);
}
var vcHash='#' + url.split('#')[1];
var vcClass='.vc_row.' + url.split('#')[1];
if(vcClass&&$(vcClass).length){
$(this).attr('data-hash', vcHash);
$(vcClass).attr('data-id', vcHash);
}}
});
var hash;
var activeSelector='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';
var activeClasses='current-menu-item current-menu-parent current-menu-ancestor current-page-ancestor current_page_item current_page_parent current_page_ancestor';
if($(activeSelector, menu).length){
$(activeSelector, menu)
.not(':first').removeClass(activeClasses);
hash=$(activeSelector, menu).find('a[data-hash]').attr('data-hash');
if(hash){
hash='[data-id="' + hash + '"]';
if($(hash).length&&$(hash).visible(true)){
}else{
$(activeSelector, menu).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{
}}else{
var first=$('li:first-child', menu);
var firstA=first.children('a');
if(firstA.attr('data-hash')){
hash=firstA.attr('data-hash');
hash='[data-id="' + hash + '"]';
if($(hash).length&&($(hash).offset().top==adminBarH())){
first.addClass('current-menu-item');
}}
}
var menu_item=$('#menu a[data-hash]');
if($('#mfn-header-template').length) menu_item=$('#mfn-header-template .mfn-header-menu a[data-hash]');
menu_item.on('click', function(e){
e.preventDefault();
if($('html').hasClass('mfn-header-tmpl-burger-sidebar-opened')){
$('html').removeClass('mfn-header-tmpl-burger-sidebar-opened scrollbar-hidden');
}
menu.find('li').removeClass('current-menu-item');
$(this)
.closest('li').addClass('current-menu-item')
.closest('.menu > li').addClass('current-menu-item');
var hash=$(this).attr('data-hash');
hash='[data-id="' + hash + '"]';
if(window.innerWidth < 768){
$('.responsive-menu-toggle').removeClass('active');
$('#Top_bar #menu').hide();
}
var headerFixedAbH=$('.header-fixed.ab-show #Action_bar').innerHeight()||0;
var tabsHeaderH=$(hash).siblings('.ui-tabs-nav').innerHeight()||0;
var offset=headerFixedAbH + tabsHeaderH + adminBarH();
var stickyH=fixStickyHeaderH();
if($('body').hasClass('header-below')&&$('#Content').length){
if($(hash).offset().top < ($('#Content').offset().top + 60)){
stickyH=-1;
}}
$('html, body').animate({
scrollTop: $(hash).offset().top - offset - stickyH
}, 500);
if($(this).closest('.column_header_burger').length){
$('body').trigger('click');
}});
}}
onePageMenu();
var cHeader='body:not(.header-open) #Header_creative',
cHeaderEl=$(cHeader),
cHeaderCurrnet;
function creativeHeader(){
$('.creative-menu-toggle').on('click', function(e){
e.preventDefault();
cHeaderEl.addClass('active');
$('.creative-menu-toggle, .creative-social', cHeaderEl).fadeOut(500);
$('#Action_bar', cHeaderEl).fadeIn(500);
});
}
creativeHeader();
$(document).on('mouseenter', cHeader, function(){
cHeaderCurrnet=1;
});
$(document).on('mouseleave', cHeader, function(){
cHeaderCurrnet=null;
setTimeout(function(){
if(!cHeaderCurrnet){
cHeaderEl.removeClass('active');
$('.creative-menu-toggle, .creative-social', cHeaderEl).fadeIn(500);
$('#Action_bar', cHeaderEl).fadeOut(500);
}}, 1000);
});
function creativeHeaderFix(){
if($('body').hasClass('header-creative')&&window.innerWidth >=768){
if($('#Top_bar').hasClass('is-sticky')){
$('#Top_bar').removeClass('is-sticky');
}}
}
$(document).on("click", ".mfn-header-tmpl .mfn-header-menu-toggle", function(e){
e.preventDefault();
if($(this).closest('.mcb-column').hasClass('mfn-header-tmpl-menu-active')){
$(document).unbind('click', hideSidebarTmplBurger);
$(this).closest('.mcb-column').removeClass('mfn-header-tmpl-menu-active');
removeBringToFront();
if($('.mfn-header-tmpl-classic-menu').length) $('.mfn-header-tmpl-classic-menu').remove();
$(this).closest('.mcb-column-inner').find('.mfn-header-tmpl-menu-sidebar').attr('aria-expanded', false);
$('html').removeClass('mfn-header-tmpl-burger-sidebar-opened scrollbar-hidden');
}else{
$(document).bind('click', hideSidebarTmplBurger);
$(this).closest('.mcb-column').addClass('mfn-header-tmpl-menu-active');
$(this).closest('.mcb-column').addClass('mfn-bring-to-front');
$(this).closest('.mcb-wrap').addClass('mfn-bring-to-front');
$(this).closest('.mcb-section').addClass('mfn-bring-to-front');
$(this).closest('.mcb-column-inner').find('.mfn-header-tmpl-menu-sidebar').attr('aria-expanded', true);
if($(this).closest('.mcb-column-inner').find('.mfn-header-classic-mobile-menu').length){
var offset_top=$(this).closest('.section').offset().top + $(this).closest('.section').outerHeight() - $(window).scrollTop();
$('body').append('<style class="mfn-header-tmpl-classic-menu">.mfn-header-tmpl-menu-sidebar.mfn-header-classic-mobile-menu{ top: '+offset_top+'px; max-height: '+($(window).height() - offset_top)+'px} .column_header_burger.mfn-header-tmpl-menu-active:before{ top: '+offset_top+'px; max-height: '+($(window).height() - offset_top)+'px}</style>');
}
$('html').addClass('mfn-header-tmpl-burger-sidebar-opened');
var htmlW=$('html').width();
if($('html').width()!=htmlW){
$('html').addClass('scrollbar-hidden');
}}
});
$(document).on("click", ".mfn-header-tmpl-menu-sidebar .mfn-header-menu .mfn-menu-li a", function (e){
if($(this).closest('#mfn-header-template').length) return;
const $a=$(this);
const href=$a.attr("href")||"";
const $html=$("html");
const $header=$(".mfn-header-tmpl.mfn-header-main");
if(href==="#"){
e.preventDefault();
$a.closest("li").toggleClass("current-menu-item");
return;
}
let hash="";
const hashIndex=href.indexOf("#");
if(hashIndex!==-1) hash=href.slice(hashIndex + 1);
if(!hash) return;
const $target=$("#" + CSS.escape(hash));
if(!$target.length) return;
e.preventDefault();
const isFixedOrSticky =
$header.hasClass("mfn-header-tmpl-fixed")||$header.hasClass("mfn-hasSticky");
const headerH=isFixedOrSticky ? $header.outerHeight():0;
const $li=$a.closest("li");
$li.closest("ul").find("li.current-menu-item").removeClass("current-menu-item");
$li.addClass("current-menu-item");
const scrollOffset=$target.offset().top - headerH;
$("html, body").stop(true).animate({ scrollTop: scrollOffset }, 500);
$(document).off("click", hideSidebarTmplBurger);
$a.closest(".mcb-column").removeClass("mfn-header-tmpl-menu-active");
removeBringToFront();
if($html.hasClass("mfn-header-tmpl-burger-sidebar-opened")){
$html.removeClass("mfn-header-tmpl-burger-sidebar-opened scrollbar-hidden");
}}
);
$(document).on("click", ".mfn-off-canvas-sidebar .widget_nav_menu ul.menu li a", function(e){
let href=$(this).attr('href');
if($(href).length&&href.startsWith("#")){
e.preventDefault();
let header_h=0;
if($('.mfn-header-tmpl.mfn-header-main').hasClass('mfn-header-tmpl-fixed')||$('.mfn-header-tmpl.mfn-header-main').hasClass('mfn-hasSticky')){
header_h=$('.mfn-header-tmpl.mfn-header-main').outerHeight();
}
$(this).closest('ul').find('li.current-menu-item').removeClass('current-menu-item');
$(this).closest('li').addClass('current-menu-item');
let scroll_offset=$(href).offset().top - header_h;
$('body, html').animate({ scrollTop: scroll_offset }, 500);
if($('html').hasClass('mfn-ofcs-opened')){
$('html').removeClass('mfn-ofcs-opened');
}}
});
function hideSidebarTmplBurger(e){
var div=$('.mfn-header-tmpl-menu-sidebar');
if(!div.is(e.target)&&div.has(e.target).length===0){
$('.mfn-header-tmpl-menu-active').removeClass('mfn-header-tmpl-menu-active');
div.attr('aria-expanded', 'false');
$(document).unbind('click', hideSidebarTmplBurger);
removeBringToFront();
if($('.mfn-header-tmpl-classic-menu').length) $('.mfn-header-tmpl-classic-menu').remove();
$('html').removeClass('mfn-header-tmpl-burger-sidebar-opened scrollbar-hidden');
}}
function removeBringToFront(){
if($('.mfn-bring-to-front').length){
$('.mfn-bring-to-front').removeClass('mfn-bring-to-front');
}}
$(document).on("click", "body:not(.mfn-ui) .mfn-sidemenu-tmpl .mfn-searchbar-toggle, body:not(.mfn-ui) .mfn-header-tmpl .mfn-searchbar-toggle, .mfn-header-tmpl .search_wrapper .mfn-close-icon, .mfn-sidemenu-tmpl .search_wrapper .mfn-close-icon", function(e){
e.preventDefault();
if($(this).closest('.mcb-column-inner').hasClass('mfn-searchbar-active')){
$(this).closest('.mcb-column-inner').removeClass('mfn-searchbar-active');
$('html').removeClass('mfn-popup-browser-scroll-disabled');
$('body').removeClass('search-overlay-opened');
removeBringToFront();
}else{
$(this).closest('.mcb-column-inner').addClass('mfn-searchbar-active');
$(this).closest('.mcb-column').addClass('mfn-bring-to-front');
$(this).closest('.mcb-wrap').addClass('mfn-bring-to-front');
$(this).closest('.mcb-section').addClass('mfn-bring-to-front');
if($(this).closest('.mcb-column-inner').find('input.field').length){
$(this).closest('.mcb-column-inner').find('input.field').focus();
}
if($('body').hasClass('search-scroll-disable')){
$('html').addClass('mfn-popup-browser-scroll-disabled');
}
$('body').addClass('search-overlay-opened');
}});
$(".search_button:not(.has-input), #Top_bar .icon_close").on('click', function(e){
e.preventDefault();
if($(this).closest('.mfn-header-tmpl').length){
$(this).closest('.mcb-column').toggleClass('mfn-searchbar-active');
}else{
const search=$('.search_wrapper')
if(search.css('display')==='none'){
search.fadeIn().find('.field').focus();
if($('body').hasClass('search-scroll-disable')){
$('html').addClass('mfn-popup-browser-scroll-disabled');
}
$('body').addClass('search-overlay-opened');
setTimeout(function(){ search.addClass('mfn-loaded') }, 300);
}else{
search.fadeOut().removeClass('mfn-loaded');
$('html').removeClass('mfn-popup-browser-scroll-disabled');
$('body').removeClass('search-overlay-opened');
}}
});
$(document).on('keydown', function(e){
if(e.key==='Escape'&&$('.search_wrapper').is(':visible')&&$('body').hasClass('search-overlay-opened')){
$('.search_wrapper .icon_close').trigger('click');
}});
function mfnWPML(){
$('#menu .menu-item-language:not(.menu-item-language-current)').each(function(){
var el=$(this).children('a');
if(!el.children('span:not(.icl_lang_sel_bracket)').length){
el.wrapInner('<span></span>');
}});
$('#menu span.icl_lang_sel_bracket').each(function(){
var el=$(this);
el.replaceWith(el.html());
});
}
mfnWPML();
function breadcrumbsRemoveLastLink(){
if(!$('.breadcrumbs.no-link').length) return;
$('.breadcrumbs.no-link').each(function(){
var el=$(this).find('li').last();
var text=el.text();
el.html(text);
});
}
breadcrumbsRemoveLastLink();
$('.downcount:not(.mfn-initialized)').each(function(){
var el=$(this);
el.addClass('mfn-initialized');
el.downCount({
date: el.attr('data-date'),
offset: el.attr('data-offset')
});
});
$('.tooltip, .hover_box')
.on('touchstart', function(){
$(this).toggleClass('hover');
})
.on('touchend', function(){
$(this).removeClass('hover');
});
$("#popup_contact .footer_button").on('click', function(e){
e.preventDefault();
$(this).parent().toggleClass('focus');
});
if($('#Header_creative.scroll').length&&window.innerWidth >=1240){
$('#Header_creative.scroll').niceScroll({
autohidemode: false,
cursorborder: 0,
cursorborderradius: 5,
cursorcolor: '#222222',
cursorwidth: 0,
horizrailenabled: false,
mousescrollstep: 40,
scrollspeed: 60
});
}
$('.sliding-top-control').on('click', function(e){
e.preventDefault();
$('#Sliding-top .widgets_wrapper').slideToggle();
$('#Sliding-top').toggleClass('active');
});
$('body').on('click', '.alert .close', function(e){
e.preventDefault();
$(this).closest('.alert').hide(300);
});
$('.fixed-nav').appendTo('body');
$('.feature_list').each(function(){
var col=$(this).attr('data-col') ? $(this).attr('data-col'):4;
$(this).find('li:nth-child(' + col + 'n):not(:last-child)').after('<hr />');
});
function checkIE(){
var ua=window.navigator.userAgent;
var msie=ua.indexOf("MSIE ");
if(msie > 0&&parseInt(ua.substring(msie + 5, ua.indexOf(".", msie)))==9){
$("body").addClass("ie");
}}
checkIE();
var ua=navigator.userAgent,
isMobileWebkit=/WebKit/.test(ua)&&/Mobile/.test(ua);
if(! isMobileWebkit&&window.innerWidth >=768){
if(mfn.parallax=='stellar'){
$.stellar({
horizontalScrolling: false,
responsive: true
});
}else{
$(window).enllax();
}}else{
$('div[data-enllax-ratio], div[data-stellar-ratio]').css('background-attachment', 'scroll');
}
if($('.mfn-query-pagination-infiniteload .next').length){
var mfnQueryPaginationWaypoint=new Waypoint({
element: $('.mfn-query-pagination-infiniteload .next'),
handler: function(direction){
$(this.element).trigger('click');
},
offset: '100%'
})
}
if($('.mfn-query-pagination-loadmore .next').length){
$(document).on('click', '.mfn-query-pagination-loadmore .next', function(e){
e.preventDefault();
if($(this).hasClass('loading')) return;
let button=$(this);
let wrapper='.'+button.closest('.mcb-section').attr('class').replaceAll('  ', '.').replaceAll(' ', '.');
let href=button.attr('href');
button.addClass('loading');
$.get(href, function(data){
$(wrapper+' .section_wrapper').append($(wrapper+' .section_wrapper', data).html());
if($(wrapper+' .mfn-query-pagination', data).length) $(wrapper+' .mfn-query-pagination').replaceWith($(wrapper+' .mfn-query-pagination', data));
if($(wrapper+' .isotope').length){
$(wrapper+' .isotope').imagesLoaded().progress(function(){
$(wrapper+' .isotope').isotope('reloadItems');
});
}
lightbox();
if($(wrapper).find('.mfn-query-loop-masonry').length){
queryLoopMasonry();
}
if($(wrapper+' .mfn-query-pagination').hasClass('mfn-query-pagination-infiniteload')){
mfnQueryPaginationWaypoint.destroy();
$(wrapper).imagesLoaded(function(){
$(window).trigger('resize');
if($('.mfn-query-pagination-infiniteload .next').length){
mfnQueryPaginationWaypoint=new Waypoint({
element: $('.mfn-query-pagination-infiniteload .next'),
handler: function(direction){
$(this.element).trigger('click');
},
offset: '100%'
})
}});
}});
});
}
$(document).on('click', '.pager_load_more', function(e){
e.preventDefault();
var el=$(this);
var pager=el.closest('.pager_lm');
var href=el.attr('href');
var index=$('.content_wrapper .lm_wrapper').index(el.closest('.mcb-column-inner').find('.lm_wrapper'));
el.fadeOut(50);
pager.addClass('loading');
$.get(href, function(data){
var content=$('.content_wrapper .lm_wrapper', data).eq(index).html();
var $content;
if(content.indexOf('<')===-1){
$content=$('<div>').text(content);
}else{
$content=$(content);
}
href=$('.content_wrapper .lm_wrapper:eq(' + index + ')', data).next().find('.pager_load_more').attr('href');
if($('.content_wrapper .lm_wrapper:eq(' + index + ')').hasClass('isotope')){
const location='.content_wrapper .lm_wrapper:eq(' + index + ')';
$(location).append($content);
mfnIsotope.queryIsotopeAPI(location, 'appended', $content);
mfnIsotope.addIsotopeLocation({ name: 'Load More - Ajax', location });
if($(location).find('.isotope-item').length){
$(location).imagesLoaded().progress(function(){
$(location).isotope('reloadItems');
});
}}else if($('.content_wrapper .lm_wrapper:eq(' + index + ')').hasClass('mfn-woo-products')){
if(typeof href==='undefined'){
href=$('.content_wrapper .lm_wrapper:eq(' + index + ') .pager_load_more', data).attr('href');
}
$('.content_wrapper .lm_wrapper:eq(' + index + ') ul.products').append($content.html());
var $listing=$('.content_wrapper .lm_wrapper:eq(' + index + ') ul.products.isotope');
if($listing.length){
$listing.imagesLoaded().progress(function(){
$listing.isotope('reloadItems');
});
}}else{
$content.hide().appendTo('.content_wrapper .lm_wrapper:eq(' + index + ')').fadeIn(1000);
}
pager.removeClass('loading');
if(href){
el.fadeIn();
el.attr('href', href);
}
lightbox();
if($('.lm_wrapper.isotope').length){
$('.lm_wrapper.isotope').imagesLoaded().progress(function(){
mfnIsotope.queryIsotopeAPI('.lm_wrapper.isotope');
});
}});
});
$('.filters_buttons .open').on('click', function(e){
e.preventDefault();
var type=$(this).closest('li').attr('class');
$('.filters_wrapper').show(200);
$('.filters_wrapper ul.' + type).show(200);
$('.filters_wrapper ul:not(.' + type + ')').hide();
});
$('.filters_wrapper .close a').on('click', function(e){
e.preventDefault();
$('.filters_wrapper').hide(200);
});
$('.portfolio_next_js').on('click', function(e){
e.preventDefault();
var item=$(this).closest('.portfolio-item').next();
if(item.length){
$('html, body').animate({
scrollTop: item.offset().top - fixStickyHeaderH()
}, 500);
}});
$('.portfolio_prev_js').on('click', function(e){
e.preventDefault();
var item=$(this).closest('.portfolio-item').prev();
if(item.length){
$('html, body').animate({
scrollTop: item.offset().top - fixStickyHeaderH()
}, 500);
}});
$('body').on('click', '.scroll > a, a.scroll, .mcb-column.scroll a', function(e){
var urlL=location.href.replace(/#.*/, '');
var urlT=this.href.replace(/#.*/, '');
if(urlL==urlT){
e.preventDefault();
}
var hash=this.hash;
var headerFixedAbH=$('.header-fixed.ab-show #Action_bar').innerHeight()||0;
var tabsHeaderH=$(hash).siblings('.ui-tabs-nav').innerHeight()||0;
var offset=headerFixedAbH + tabsHeaderH + adminBarH();
if($(this).parents('.table_of_content').length){
offset +=30;
}
if(hash&&$(hash).length){
$('html, body').animate({
scrollTop: $(hash).offset().top - offset - fixStickyHeaderH()
}, 500);
}});
$('.jq-tabs').tabs();
$('.fake-tabs > ul').on('click', 'a', function(e){
e.preventDefault();
var $li=$(this).closest('li');
var tab=$li.data('tab');
if($li.hasClass('active')){
return;
}
$li.addClass('active')
.siblings().removeClass('active');
$('.tab-'+ tab).addClass('active').attr('tabindex', 0)
.siblings('.tab').removeClass('active').attr('tabindex', -1);
$(window).trigger('resize');
});
$('body').on('click', '.mfn-toggle .toggle-bar', function(){
var $parent=$(this).parent(),
$toggle=$(this).closest('.mfn-toggle');
var speed=100;
if($parent.hasClass('active')){
if($toggle.is('.mfn-toggle-open-all')){
return;
}
$parent.removeClass('active')
.children('.toggle-content').slideUp(speed);
}else{
$parent.addClass('active')
.children('.toggle-content').slideDown(speed);
if(! $toggle.is('.mfn-toggle-open-more')){
$parent.siblings().removeClass('active')
.children('.toggle-content').slideUp(speed);
}}
setTimeout(function(){
$(window).trigger('resize');
}, speed);
});
$('.mfn-acc').each(function(){
var el=$(this);
if(el.hasClass('openAll')||el.find('.wpb_toggle_title_active').length){
el.find('.question')
.addClass('active')
.children(".answer")
.show();
}else{
var activeTab=el.attr('data-active-tab');
if(el.hasClass('open1st')) activeTab=1;
if(activeTab){
el.find('.question').eq(activeTab - 1)
.addClass('active')
.children(".answer")
.show();
}}
});
$('.mfn-acc .question > .title').on('click', function(){
if($(this).parent().hasClass('active')){
$(this).parent().removeClass('active').children(".answer").slideToggle(100);
}else{
if(!$(this).closest('.mfn-acc').hasClass('toggle')){
$(this).parents(".mfn-acc").children().each(function(){
if($(this).hasClass('active')){
$(this).removeClass('active').children(".answer").slideToggle(100);
}});
}
$(this).parent().addClass('active');
$(this).next(".answer").slideToggle(100);
}
setTimeout(function(){
$(window).trigger('resize');
}, 50);
});
$('.wpb_wrapper .vc_tta-panel-title').on('click', 'a', function(){
setTimeout(function(){
$(window).trigger('resize');
}, 50);
});
$('.helper .link.toggle').on('click', function(e){
e.preventDefault();
var el=$(this);
var id=el.attr('data-rel');
var parent=el.closest('.helper');
if(el.hasClass('active')){
el.removeClass('active');
parent.find('.helper_content > .item-' + id).slideUp(200);
setTimeout(function(){
parent.find('.helper_content > .item-' + id).removeClass('active');
}, 200);
}else{
parent.find('.links > .link.active').removeClass('active');
parent.find('.helper_content > .item.active').slideUp(200);
el.addClass('active');
parent.find('.helper_content > .item-' + id).addClass('active').hide().slideDown(200);
}
setTimeout(function(){
$(window).trigger('resize');
}, 50);
});
$(document).on('click', '.mfn-love', function(e){
e.preventDefault();
var el=$(this);
if(el.hasClass('loved')){
return false;
}
el.addClass('loved');
var post={
action: 'mfn_love',
post_id: el.attr('data-id')
};
$.post(mfn.ajax, post, function(data){
el.find('.label').html(data);
});
return false;
});
$('#back_to_top').on('click', function(){
$('body,html').animate({
scrollTop: 0
}, 500);
return false;
});
$('.section .section-nav').on('click', function(){
var el=$(this);
var section=el.closest('.section');
var offset=fixStickyHeaderH() + adminBarH();
if(el.hasClass('prev')){
if(section.prev().length){
$('html, body').animate({
scrollTop: section.prev().offset().top - offset
}, 500);
}}else{
if(section.next().length){
$('html, body').animate({
scrollTop: section.next().offset().top - offset
}, 500);
}}
});
$('#Intro .intro-next').on('click', function(){
var intro=$(this).closest('#Intro');
if(intro.next().length){
$('html, body').animate({
scrollTop: intro.next().offset().top - fixStickyHeaderH() - adminBarH()
}, 500);
}});
$('.widget_mfn_menu ul.submenus-click, .widget_mfn_menu ul.submenus-click-mobile').each(function(){
var el=$(this);
if(el.is('.submenus-click-mobile')&&$(window).width() > 767){
return;
}
$('a', el).on('click', function(e){
var li=$(this).closest('li');
if(li.hasClass('hover')||!li.hasClass('menu-item-has-children')){
}else{
e.preventDefault();
li.siblings('li').removeClass('hover')
.find('li').removeClass('hover');
$(this).closest('li').addClass('hover');
}});
});
function addToCart(){
$('body').on('click', '.add_to_cart_button', function(){
$(this)
.closest('.product')
.addClass('adding-to-cart')
.removeClass('added-to-cart');
});
$('body').on('added_to_cart', function(){
$('.adding-to-cart')
.removeClass('adding-to-cart')
.addClass('added-to-cart');
});
}
addToCart();
$('.woocommerce-product-rating').on('click', function(){
var el;
if($('.product_tabs_wrapper.fake-tabs').length){
el=$('.product_tabs_wrapper.fake-tabs');
$('li[data-tab="reviews"] a', el).trigger('click');
}else if($('.woocommerce-content .jq-tabs').length){
el=$('.woocommerce-content .jq-tabs');
$('.ui-tabs-nav a[href="#tab-reviews"]', el).trigger('click');
}else{
el=$('.woocommerce-content .accordion');
$('#reviews').closest('.question:not(.active)').children('.title').trigger('click');
}
var actionBarH=$('.header-fixed.ab-show #Action_bar').innerHeight()||0;
var offset=actionBarH + adminBarH();
$('html, body').animate({
scrollTop: el.offset().top - offset - fixStickyHeaderH()
}, 500);
});
$('body').on('click', '.quantity-change', function(e){
e.preventDefault();
var $el=$(this),
$input=$(this).siblings('input');
var step=parseFloat($input.attr('step'))||1,
minAttr=$input.attr('min'),
min=typeof minAttr!==typeof undefined&&minAttr!==false ? parseFloat(minAttr):1,
max=parseFloat($input.attr('max'))||9999,
current=$input.val() ? parseFloat($input.val()):min,
val=0;
if($el.hasClass('plus')){
val=current + step;
if(val > max){
val=current;
}}else{
val=current - step;
if(val < min){
val=current;
}}
val=Math.round(val * 10) / 10;
$input.val(val).trigger('change');
});
$(document).ajaxComplete(function(){
setTimeout(function(){
$(window).trigger('resize');
mfnSidebar();
}, 100);
});
$(window).on('debouncedresize', function(){
mfnIsotope.runIsotopes(false);
mfnFooter();
headerWidth();
mfnSidebar();
mfnIntroH();
creativeHeaderFix();
});
$('.mfn-cookies').on('click','.cookies-tab-nav a', function(e){
e.preventDefault();
consent.tabs($(this), false);
});
$('.mfn-cookies').on('click','#consent_customize', function(e){
e.preventDefault();
consent.tabs(false, 'details');
});
$('.mfn-cookies').on('click','#consent_allow', function(e){
e.preventDefault();
consent.all();
});
$('.mfn-cookies').on('click','#consent_selected', function(e){
e.preventDefault();
consent.selected();
});
$('.mfn-cookies').on('click','#consent_deny', function(e){
e.preventDefault();
consent.deny();
});
$('.mfn-cookies-reopen').on('click', function(e){
consent.reopen();
});
mfnSliderBlog();
mfnSliderClients();
mfnSliderOffer();
mfnSliderOfferThumb();
mfnSliderShop();
sliderPortfolio();
sliderTestimonials();
mfnFooter();
headerWidth();
mfnSidebar();
mfnIntroH();
hashNav();
gdpr();
consent.open();
tableContentAttachId();
topBarTopPosition();
if(!$('body').hasClass('mfn-ui')) mfnPopup.init();
});
$(window).on('scroll', function(){
mfnSticky();
mfnMobileSticky();
backToTopSticky();
onePageActive();
});
$(window).on('load', function(){
preloader();
queryLoopMasonry();
alignHeights();
function elementorDisableOnePage(){
if(! $('body').hasClass('one-page')){
return false;
}
setTimeout(function(){
var doc=$(document),
$events=$("a[href*='#']").length ? $._data(doc[0],"events"):null;
if($events&&$events.click){
for(var i=$events.click.length-1; i>=0; i--){
var handler=$events.click[i];
if(handler&&handler.namespace!="mPS2id"&&handler.selector==='a[href*="#"]') doc.off("click",handler.handler);
}}
}, 300);
}
elementorDisableOnePage();
function liveSearchItemZindex(){
$('.column_livesearch').each(function(){
$(this).closest('.mcb-wrap').addClass('has-live-search-element')
.closest('.mcb-section').addClass('has-live-search-element');
});
}
liveSearchItemZindex();
function retinaLogo(){
if(window.devicePixelRatio <=1){
return false;
}
var el, src, height,
parent=$('#Top_bar #logo'),
parentH=parent.data('height');
var maxH={
sticky: {
init: 35,
noPadding: 60,
overflow: 110
},
mobile: {
mini: 50,
miniNoPadding: 60
},
mobileSticky: {
init: 50,
noPadding: 60,
overflow: 80
}};
$('#Top_bar #logo img').each(function(index){
el=$(this);
src=el.data('retina');
height=el.height()||0;
if(el.hasClass('logo-main')){
if($('body').hasClass('logo-overflow')){
}else if(height > parentH){
height=parentH;
}}
if(el.hasClass('logo-sticky')){
if($('body').hasClass('logo-overflow')){
if(height > maxH.sticky.overflow){
height=maxH.sticky.overflow;
}}else if($('body').hasClass('logo-no-sticky-padding')){
if(height > maxH.sticky.noPadding){
height=maxH.sticky.noPadding;
}}else if(height > maxH.sticky.init){
height=maxH.sticky.init;
}}
if(el.hasClass('logo-mobile')){
if($('body').hasClass('mobile-header-mini')){
if(parent.data('padding') > 0){
if(height > maxH.mobile.mini){
height=maxH.mobile.mini;
}}else{
if(height > maxH.mobile.miniNoPadding){
height=maxH.mobile.miniNoPadding;
}}
}}
if(el.hasClass('logo-mobile-sticky')){
if($('body').hasClass('logo-no-sticky-padding')){
if(height > maxH.mobileSticky.noPadding){
height=maxH.mobileSticky.noPadding;
}}else if(height > maxH.mobileSticky.init){
height=maxH.mobileSticky.init;
}}
if(src){
el.parent().addClass('retina');
el.attr('src', src).css('max-height', height + 'px');
}});
}
setTimeout(function(){
retinaLogo();
}, 0);
$('#Wrapper .before_after.twentytwenty-container:not(.mfn-initialized)').each(function(){
var el=$(this);
el.addClass('mfn-initialized');
el.imagesLoaded().done(function(instance, image){
queueMicrotask(()=> el.twentytwenty());
});
});
if(lightboxAttr){
$('a[data-rel^="prettyPhoto"]:not(.popup-link), a[rel^="lightbox"]:not(.popup-link)').each(function(){
$(this).off('click.prettyphoto');
});
}
mfnStickyH();
mfnSticky();
mfnMobileSticky();
mfnIntroH();
setTimeout(function(){
$(window).trigger('resize');
mfnSidebar();
sliderSlider();
}, 0);
});
$(document).on('mouseup',function(e){
if($('.widget_mfn_menu ul.submenus-click').length&&($('.widget_mfn_menu ul.submenus-click').has(e.target).length===0)){
$('.widget_mfn_menu ul.submenus-click li').removeClass('hover');
}
if($('.menu_wrapper').length&&($('.menu_wrapper').has(e.target).length===0)){
if($('.responsive-menu-toggle').hasClass('active')){
$('.responsive-menu-toggle').trigger('click');
}}
if($('#popup_contact').length&&($('#popup_contact').has(e.target).length===0)){
if($('#popup_contact').hasClass('focus')){
$('#popup_contact .footer_button').trigger('click');
}}
if($('html').hasClass('mfn-ofcs-opened')&&!$('.mfn-off-canvas-sidebar').is(e.target)&&$('.mfn-off-canvas-sidebar').has(e.target).length===0){
$('html').removeClass('mfn-ofcs-opened');
}});
function slickAutoResponsive(slider, max, size, round=false){
if(!max){
max=5;
}
if(!size){
size=380;
}
var width=slider.width()||0;
var count;
if(round){
count=Math.floor(width / size);
}else{
count=Math.ceil(width / size);
}
if(count < 1) count=1;
if(count > max) count=max;
return count;
}
function mfnSliderOfferThumb(){
var pager=function(el, i){
var img=$(el.$slides[i]).find('.thumbnail:first').html();
return '<a>' + img + '</a>';
};
$('.offer_thumb_ul').each(function(){
var slider=$(this);
slider.slick({
cssEase: 'ease-out',
arrows: false,
dots: true,
infinite: true,
touchThreshold: 10,
speed: 300,
adaptiveHeight: true,
appendDots: slider.siblings('.slider_pagination'),
customPaging: pager,
rtl: rtl ? true:false,
autoplay: mfn.slider.offer ? true:false,
autoplaySpeed: mfn.slider.offer ? mfn.slider.offer:5000,
slidesToShow: 1,
slidesToScroll: 1
});
$(window).on('debouncedresize', function(){
var height=slider.siblings('.slider_pagination').height();
slider.closest('.offer_thumb ').css('min-height',height);
});
});
}
function mfnSliderOffer(){
$('.offer_ul').each(function(){
var slider=$(this);
slider.slick({
cssEase: 'ease-out',
dots: false,
infinite: true,
touchThreshold: 10,
speed: 300,
prevArrow: '<a class="slider_prev" href="#" aria-label="previous slide"><span class="button_icon"><i class="icon-up-open-big"></i></span></a>',
nextArrow: '<a class="slider_next" href="#" aria-label="next slide"><span class="button_icon"><i class="icon-down-open-big"></i></span></a>',
adaptiveHeight: true,
rtl: rtl ? true:false,
autoplay: mfn.slider.offer ? true:false,
autoplaySpeed: mfn.slider.offer ? mfn.slider.offer:5000,
slidesToShow: 1,
slidesToScroll: 1
});
slider.siblings('.slider_pagination').addClass('show');
slider.on('afterChange', function(event, slick, currentSlide, nextSlide){
slider.siblings('.slider_pagination').find('.current').text(currentSlide + 1);
});
});
}
function mfnSliderShop(){
var pager=function(el, i){
return '<a>' + i + '</a>';
};
$('.shop_slider_ul').each(function(){
var slider=$(this);
var slidesToShow=4;
var count=slider.closest('.shop_slider').data('count');
if(slidesToShow > count){
slidesToShow=count;
if(slidesToShow < 1){
slidesToShow=1;
}}
slider.slick({
cssEase: 'ease-out',
dots: true,
infinite: true,
touchThreshold: 10,
speed: 300,
prevArrow: '<a class="button the-icon slider_prev" href="#" aria-label="previous slide"><i class="icon-left-open-big"></i></a>',
nextArrow: '<a class="button the-icon slider_next" href="#" aria-label="next slide"><i class="icon-right-open-big"></i></a>',
appendArrows: slider.siblings('.blog_slider_header').children('.slider_navigation'),
appendDots: slider.siblings('.slider_pager'),
customPaging: pager,
rtl: rtl ? true:false,
autoplay: mfn.slider.shop ? true:false,
autoplaySpeed: mfn.slider.shop ? mfn.slider.shop:5000,
slidesToShow: slickAutoResponsive(slider, slidesToShow),
slidesToScroll: slickAutoResponsive(slider, slidesToShow)
});
$(window).on('debouncedresize', function(){
slider.slick('slickSetOption', 'slidesToShow', slickAutoResponsive(slider, slidesToShow), false);
slider.slick('slickSetOption', 'slidesToScroll', slickAutoResponsive(slider, slidesToShow), true);
});
});
}
function mfnSliderBlog(){
var pager=function(el, i){
return '<a>' + i + '</a>';
};
$('.blog_slider_ul').each(function(){
var slider=$(this);
var slidesToShow=4;
var count=slider.closest('.blog_slider').data('count');
var singlePostMode=slider.closest('.blog_slider').hasClass('single_post_mode');
if(slidesToShow > count){
slidesToShow=count;
if(slidesToShow < 1){
slidesToShow=1;
}}
if(singlePostMode){
slidesToShow=1;
}
slider.slick({
cssEase: 'ease-out',
dots: true,
infinite: true,
touchThreshold: 10,
speed: 300,
prevArrow: '<a class="button the-icon slider_prev" href="#" aria-label="previous slide"><i class="icon-left-open-big"></i></a>',
nextArrow: '<a class="button the-icon slider_next" href="#" aria-label="next slide"><i class="icon-right-open-big"></i></a>',
appendArrows: slider.siblings('.blog_slider_header').children('.slider_navigation'),
appendDots: slider.siblings('.slider_pager'),
customPaging: pager,
rtl: rtl ? true:false,
autoplay: mfn.slider.blog ? true:false,
autoplaySpeed: mfn.slider.blog ? mfn.slider.blog:5000,
slidesToShow: slickAutoResponsive(slider, slidesToShow),
slidesToScroll: slickAutoResponsive(slider, slidesToShow)
});
$(window).on('debouncedresize', function(){
slider.slick('slickSetOption', 'slidesToShow', slickAutoResponsive(slider, slidesToShow), false);
slider.slick('slickSetOption', 'slidesToScroll', slickAutoResponsive(slider, slidesToShow), true);
});
});
}
function mfnSliderClients(){
$('.clients_slider_ul').each(function(){
var slider=$(this);
var clientsPerSlide=slider.closest('.clients_slider').attr('data-client-per-slide') ? parseInt(slider.closest('.clients_slider').attr('data-client-per-slide')):4;
var navigationPosition=slider.closest('.clients_slider').attr('data-navigation-position')||false;
var appendArrows=(navigationPosition=='content') ? slider:slider.siblings('.blog_slider_header').children('.slider_navigation');
var size=400;
var calc=()=> slickAutoResponsive(slider, clientsPerSlide, size - (clientsPerSlide * 40), true);
var calcScroll=calc;
var slidesToScroll=slider.closest('.clients_slider').attr('data-slides-to-scroll') ? parseInt(slider.closest('.clients_slider').attr('data-slides-to-scroll')):calc();
if(1===slidesToScroll){
calcScroll=()=> slickAutoResponsive(slider, 1, size - (clientsPerSlide * 40), true);
}
slider.slick({
cssEase: 'ease-out',
dots: false,
infinite: true,
touchThreshold: 10,
speed: 300,
prevArrow: '<a class="button the-icon slider_prev" href="#" aria-label="previous slide"><i class="icon-left-open-big"></i></a>',
nextArrow: '<a class="button the-icon slider_next" href="#" aria-label="next slide"><i class="icon-right-open-big"></i></a>',
appendArrows: appendArrows,
rtl: rtl ? true:false,
autoplay: mfn.slider.clients ? true:false,
autoplaySpeed: mfn.slider.clients ? mfn.slider.clients:5000,
slidesToShow: calc(),
slidesToScroll: calcScroll()
});
$(window).on('debouncedresize', function(){
slider.slick('slickSetOption', 'slidesToShow', calc(), false);
slider.slick('slickSetOption', 'slidesToScroll', calcScroll(), true);
});
});
}
function sliderPortfolio(){
$('.portfolio_slider_ul').each(function(){
var slider=$(this);
var size=380;
var scroll=5;
if(slider.closest('.portfolio_slider').data('size')){
size=slider.closest('.portfolio_slider').data('size');
}
if(slider.closest('.portfolio_slider').data('size')){
scroll=slider.closest('.portfolio_slider').data('scroll');
}
slider.slick({
cssEase: 'ease-out',
dots: false,
infinite: true,
touchThreshold: 10,
speed: 300,
prevArrow: '<a class="slider_nav slider_prev themebg" href="#" aria-label="previous slide"><i class="icon-left-open-big"></i></a>',
nextArrow: '<a class="slider_nav slider_next themebg" href="#" aria-label="next slide"><i class="icon-right-open-big"></i></a>',
rtl: rtl ? true:false,
autoplay: mfn.slider.portfolio ? true:false,
autoplaySpeed: mfn.slider.portfolio ? mfn.slider.portfolio:5000,
slidesToShow: slickAutoResponsive(slider, 5, size),
slidesToScroll: slickAutoResponsive(slider, scroll, size)
});
$(window).on('debouncedresize', function(){
slider.slick('slickSetOption', 'slidesToShow', slickAutoResponsive(slider, 5, size), false);
slider.slick('slickSetOption', 'slidesToScroll', slickAutoResponsive(slider, scroll, size), true);
});
});
}
function promoBarSlider(){
$('.promo_bar_slider').each(function(){
var $slider=$(this);
if($slider.hasClass('mfn-initialized')) return;
$slider.addClass('mfn-initialized');
var speedAttr=$slider.attr('data-speed');
var speed=parseInt(speedAttr, 10);
if(isNaN(speed)||speed <=0) speed=5;
speed *=1000;
var $slides=$slider.find('.pbs_one');
if(!$slides.length) return;
$slides.removeClass('pbs-active pbs-active-ends');
$slides.first().addClass('pbs-active');
var transitionDuration=300;
function changeSlide(){
var $current=$slider.find('.pbs_one.pbs-active');
var $next=$current.next('.pbs_one');
if(!$next.length) $next=$slides.first();
$current.addClass('pbs-active-ends');
setTimeout(function(){
$current.removeClass('pbs-active pbs-active-ends');
$next.addClass('pbs-active');
}, transitionDuration);
}
if($slides.length > 1){
setInterval(changeSlide, speed);
}});
}
function queryLoopSlider(){
$('body:not(.mfn-ui) .mfn-looped-items-slider').each(function(i){
const swipers=[];
var $slider=$(this);
let swiperClass='mfn-ql-slider-'+i;
$slider.addClass(swiperClass);
var swiperParams={
spaceBetween: parseInt($slider.attr('data-space_mobile')),
slidesPerView: $slider.hasClass('mfn-slider-linear') ? 'auto':parseInt($slider.attr('data-columns-mobile')),
};
if(typeof $slider.attr('data-dots')!=='undefined'&&$slider.attr('data-dots')=='1'){
$slider.parent().append('<div class="swiper-pagination mfn-swiper-pagination-'+i+'"></div>');
swiperParams['pagination']={
el: ".mfn-swiper-pagination-"+i,
clickable: true,
};
if($slider.attr('data-dots-count')=='dynamic'){
swiperParams['pagination']['dynamicBullets']=true;
}}
if($slider.closest('.mfn-looped-items').hasClass('mfn-ql-slider-wrapper-offset')&&$slider.attr('data-infinity')=='1'){
swiperParams['loop']=true;
swiperParams['centeredSlides']=true;
$slider.parent().css({ 'max-width': '100%'});
}else if($slider.attr('data-infinity')=='1'){
swiperParams['loop']=true;
}
swiperParams['speed']=parseFloat($slider.attr('data-speed'));
if($slider.attr('data-arrows')=='1'){
$slider.parent().append('<div class="swiper-button-next mfn-swiper-arrow mfn-swiper-button-next-'+i+'"><i class="'+$slider.attr('data-arrownext')+'"></i></div><div class="swiper-button-prev mfn-swiper-arrow mfn-swiper-button-prev-'+i+'"><i class="'+$slider.attr('data-arrowprev')+'"></i></div>');
swiperParams['navigation']={
nextEl: ".mfn-swiper-button-next-"+i,
prevEl: ".mfn-swiper-button-prev-"+i,
};}
if(!$('body').hasClass('mfn-ui')&&typeof $slider.attr('data-autoplay')!=='undefined'&&parseFloat($slider.attr('data-autoplay')) > 0){
swiperParams['autoplay']={
delay: $slider.hasClass('mfn-slider-linear') ? 0.1:parseFloat($slider.attr('data-autoplay')),
disableOnInteraction: true,
};
if($slider.attr('data-pausehover')=='1'){
swiperParams['autoplay']['pauseOnMouseEnter']=true;
}else{
swiperParams['autoplay']['pauseOnMouseEnter']=false;
}}
if(!$('body').hasClass('mfn-ui')&&typeof $slider.attr('data-mousewheel')!=='undefined'&&$slider.attr('data-mousewheel') > 0){
swiperParams['mousewheel']=true;
}
if($('body').hasClass('mfn-ui')){
swiperParams['allowTouchMove']=true;
}
if($slider.closest('.mfn-popup-tmpl').length){
swiperParams['observer']=true;
swiperParams['observeParents']=true;
}
swiperParams['breakpoints']={
768: {
spaceBetween: $slider.attr('data-animationtype')=='cube' ? 0:parseInt($slider.attr('data-space_desktop')),
slidesPerView: $slider.hasClass('mfn-slider-linear') ? 'auto':parseInt($slider.attr('data-columns-tablet'))
},
960: {
spaceBetween: $slider.attr('data-animationtype')=='cube' ? 0:parseInt($slider.attr('data-space_desktop')),
slidesPerView: $slider.hasClass('mfn-slider-linear') ? 'auto':parseInt($slider.attr('data-columns-laptop'))
},
1441: {
spaceBetween: $slider.attr('data-animationtype')=='cube' ? 0:parseInt($slider.attr('data-space_desktop')),
slidesPerView: $slider.hasClass('mfn-slider-linear') ? 'auto':parseInt($slider.attr('data-columns'))
}};
if($slider.attr('data-animationtype')!='slide'){
swiperParams['effect']=$slider.attr('data-animationtype');
swiperParams['grabCursor']=true;
if($slider.attr('data-animationtype')=='fade'){
swiperParams['fadeEffect']={ crossFade: true };
swiperParams['centeredSlides']=true;
}}
swipers[i]=new Swiper('.'+swiperClass, swiperParams);
swipers[i].on('slideChange', function (){
$(window).trigger('scroll');
});
if(($slider.attr('data-animationtype')=='cube'||$slider.attr('data-animationtype')=='flip'||$slider.attr('data-animationtype')=='cards')&&$slider.closest('.mfn-looped-items-slider-wrapper').hasClass('mfn-arrows-standard')){
let sw_arr_wi=$slider.closest('.mfn-looped-items-slider-wrapper').find('.mfn-swiper-arrow').outerWidth()+'px';
$('body').append('<style>.mfn-ql-slider-'+i+'{ --mfn-swiper-arrow-width: '+sw_arr_wi+' }</style>')
$(window).trigger('resize');
}});
}
function sliderSlider(){
var pager=function(el, i){
return '<a>' + i + '</a>';
};
$('.content_slider_ul').each(function(){
var slider=$(this);
var count=1;
var centerMode=false;
if(slider.closest('.content_slider').hasClass('carousel')){
count=slickAutoResponsive(slider);
$(window).on('debouncedresize', function(){
slider.slick('slickSetOption', 'slidesToShow', slickAutoResponsive(slider), false);
slider.slick('slickSetOption', 'slidesToScroll', slickAutoResponsive(slider), true);
});
}
if(slider.closest('.content_slider').hasClass('center')){
centerMode=true;
}
slider.slick({
cssEase: 'cubic-bezier(.4,0,.2,1)',
dots: true,
infinite: true,
touchThreshold: 10,
speed: 300,
centerMode: centerMode,
centerPadding: '20%',
prevArrow: '<a class="button the-icon slider_prev" href="#" aria-label="previous slide"><i class="icon-left-open-big"></i></a>',
nextArrow: '<a class="button the-icon slider_next" href="#" aria-label="next slide"><i class="icon-right-open-big"></i></a>',
adaptiveHeight: true,
appendDots: slider.siblings('.slider_pager'),
customPaging: pager,
rtl: rtl ? true:false,
autoplay: mfn.slider.slider ? true:false,
autoplaySpeed: mfn.slider.slider ? mfn.slider.slider:5000,
slidesToShow: count,
slidesToScroll: count
});
var clickEvent=false;
slider.on('dragstart', '.slick-slide a[rel="lightbox"]', function(event){
if(lightboxAttr){
var events=$._data(this,'events');
if(events&&Object.prototype.hasOwnProperty.call(events, 'click')){
clickEvent=events.click[0];
$(this).addClass('off-click').off('click');
}}
});
slider.on('afterChange', function(event, slick, currentSlide, nextSlide){
if(lightboxAttr){
$('a.off-click[rel="lightbox"]', slider).removeClass('off-click').on('click', clickEvent);
}});
});
}
function sliderTestimonials(){
var pager=function(el, i){
var img=$(el.$slides[i]).find('.single-photo-img').html();
return '<a>' + img + '</a>';
};
$('.testimonials_slider_ul').each(function(){
var slider=$(this);
slider.slick({
cssEase: 'ease-out',
dots: true,
infinite: true,
touchThreshold: 10,
speed: 300,
prevArrow: '<a class="button the-icon slider_prev" href="#" aria-label="previous slide"><i class="icon-left-open-big"></i></a>',
nextArrow: '<a class="button the-icon slider_next" href="#" aria-label="next slide"><i class="icon-right-open-big"></i></a>',
adaptiveHeight: true,
appendDots: slider.siblings('.slider_pager'),
customPaging: pager,
rtl: rtl ? true:false,
autoplay: mfn.slider.testimonials ? true:false,
autoplaySpeed: mfn.slider.testimonials ? mfn.slider.testimonials:5000,
slidesToShow: 1,
slidesToScroll: 1
});
});
}
let mfnTabber={
init: function(){
$(document).on('mouseover', '.mfn-tabber-open-on-hover .mfn-tabber-nav li a', function(e){
if(!$(this).parent('li').hasClass('active')){
let tab=$(this).attr('data-tab');
$(this).parent('li').siblings('li').removeClass('active');
$(this).closest('.mfn-section-tabber').find('.mfn-tabber-content.active').removeClass('active');
$(this).parent('li').addClass('active');
$(this).closest('.mfn-section-tabber').find(tab).addClass('active');
$(document).trigger('mfn:tabber:open');
$(window).trigger('resize');
}}).on('click', '.mfn-tabber-nav li a', function(e){
if(!$(this).parent('li').hasClass('active')){
e.preventDefault();
let tab=$(this).attr('data-tab');
$(this).parent('li').siblings('li').removeClass('active');
$(this).closest('.mfn-section-tabber').find('.mfn-tabber-content.active').removeClass('active');
$(this).parent('li').addClass('active');
$(this).closest('.mfn-section-tabber').find(tab).addClass('active');
$(document).trigger('mfn:tabber:open');
$(window).trigger('resize');
}else if($(this).attr('href')=='#'||$('body').hasClass('mfn-ui')){
e.preventDefault();
}});
if($('body').hasClass('mfn-ui')){
setTimeout(mfnTabber.sliding_bg, 800);
}else{
setTimeout(mfnTabber.sliding_bg, 300);
}},
sliding_bg: function(){
if(!$('.mfn-tabber-nav.mfn-tabber-nav-hover-sliding').length) return;
$('.mfn-tabber-nav.mfn-tabber-nav-hover-sliding').each(function(){
let wrapper=$(this);
let li=wrapper.find('li.active');
let helper=wrapper.find('.mfn-tabber-nav-slide-helper');
let offset_left=li.position().left;
let offset_top=li.position().top;
helper.css({ top: offset_top, left: offset_left, width: li.outerWidth(), height: li.outerHeight() });
});
$('.mfn-tabber-open-on-click .mfn-tabber-nav.mfn-tabber-nav-hover-sliding li').on('click', function(){
let li=$(this);
let helper=li.closest('ul').find('.mfn-tabber-nav-slide-helper');
let offset_left=li.position().left;
let offset_top=li.position().top;
helper.css({ top: offset_top, left: offset_left, width: li.outerWidth(), height: li.outerHeight() });
});
$('.mfn-tabber-open-on-hover .mfn-tabber-nav.mfn-tabber-nav-hover-sliding li').on('mouseover', function(){
let li=$(this);
let helper=li.closest('ul').find('.mfn-tabber-nav-slide-helper');
let offset_left=li.position().left;
let offset_top=li.position().top;
helper.css({ top: offset_top, left: offset_left, width: li.outerWidth(), height: li.outerHeight() });
});
if($('.mfn-tabber-nav.mfn-tabber-nav-hover-sliding li.active').length){
$('.mfn-tabber-nav.mfn-tabber-nav-hover-sliding li.active')
}}
}
let mfnAdvancedFilters={
form: false,
init: function(){
if(!$('.mfn-advanced-filters').length) return;
this.prepare();
$(document).on('click', '.mfn-advanced-filters .mfn-advanced-filters-expand', function(e){
e.preventDefault();
if($(this).hasClass('mfn-expanded')){
$(this).removeClass('mfn-expanded');
$(this).text($(this).attr('data-more'));
$(this).closest('.mfn-form-row-wrapper').find('li.mfn-opt-expandable').addClass('mfn-opt-hidden').removeClass('mfn-opt-expandable');
}else{
$(this).addClass('mfn-expanded');
$(this).text($(this).attr('data-less'));
$(this).closest('.mfn-form-row-wrapper').find('li.mfn-opt-hidden').removeClass('mfn-opt-hidden').addClass('mfn-opt-expandable');
}});
$(document).on('click', '.mfn-advanced-filters-accordion .mfn-advanced-filters-group-label', function(e){
e.preventDefault();
let row=$(this).closest('.mfn-form-row');
if(row.hasClass('open')){
row.removeClass('open');
$(this).siblings('.mfn-form-row-wrapper').slideUp(300);
}else{
row.addClass('open');
$(this).siblings('.mfn-form-row-wrapper').slideDown(300);
}})
if($('.mfn-advanced-filters .mfn-advanced-filters-rate')){
$(document).on('click', '.mfn-advanced-filters .mfn-advanced-filters-rate li', function(){
$(this).toggleClass('active');
let helper_arr=[];
$(this).closest('.mfn-advanced-filters-rate').find('li.active').each(function(el){
helper_arr.push($(this).attr('data-rate'));
});
$(this).closest('.mfn-advanced-filters-rate').find('.mfn-advanced-rate-input').val(helper_arr.join(',')).trigger('change');
});
}
$(document).on('change', 'form.mfn-active-filters input', function(e){
mfnAdvancedFilters.ajax($(this).closest('form'));
});
$(document).on('change', 'form.mfn-advanced-filters-auto-submit input, form.mfn-advanced-filters-auto-submit select', function(e){
mfnAdvancedFilters.ajax($(this).closest('form'));
}).on('submit', 'form.mfn-advanced-filters-auto-submit', function(e){
e.preventDefault();
mfnAdvancedFilters.ajax($(this));
});
$(document).on('submit', 'form.mfn-advanced-filters-ajax-submit', function(e){
e.preventDefault();
mfnAdvancedFilters.ajax($(this));
});
$(document).on('click', '.mfn-active-filters .mfn-reset-filters', function(e){
e.preventDefault();
$(this).closest('form').empty();
mfnAdvancedFilters.ajax($(this).closest('form'));
});
},
prepare: function(){
if($('.mfn-active-filters .mfn-active-filters-find-title').length){
$('.mfn-active-filters .mfn-active-filters-find-title:not(.initialized)').each(function(i, el){
$(el).addClass('initialized');
let selector='[name="'+$(el).find('input').attr('name')+'"]';
let searched_input=$('.mfn-advanced-filters '+selector);
if($(el).find('input').val().length){
let label=searched_input.closest('.mfn-form-row').find('.mfn-advanced-filters-label-name').length ? searched_input.closest('.mfn-form-row').find('.mfn-advanced-filters-label-name').first().text():'';
if(typeof searched_input.attr('placeholder')!='undefined'&&searched_input.closest('.mfn-floating-placeholder').length){
if(label.length) $(el).append(label+' ');
$(el).append(searched_input.attr('placeholder')+': '+$(el).find('input').val());
}else if(searched_input.hasClass('mfn-advanced-rate-input')&&label.length){
if(label.length) $(el).append(label+': ');
$(el).append($(el).find('input').val());
}else{
$(el).append(searched_input.closest('.mfn-form-row').find('.mfn-advanced-filters-group-label h4').first().text()+': '+$(el).find('input').val());
}}else{
$(el).remove();
}});
}
$('.mfn-advanced-filters:not(.initialized)').each(function(i, el){
mfnAdvancedFilters.form=$(el);
mfnAdvancedFilters.form.addClass('initialized');
if(mfnAdvancedFilters.form.find('.mfn-advanced-filters-slider').length){
mfnAdvancedFilters.slider();
}
if(mfnAdvancedFilters.form.find('.mfn-advanced-filters-range-slider').length){
mfnAdvancedFilters.slider_range();
}});
},
ajax: ($form)=> {
var url=$form.attr('action')||location.origin + location.pathname;
var method=($form.attr('method')||'GET').toUpperCase();
var data=$form.serialize();
if($form.closest('.mfn-sidemenu-tmpl.mfn-sidemenu-active').length){
$form.closest('.mfn-sidemenu-tmpl.mfn-sidemenu-active').find('.mfn-sidemenu-closebutton').trigger('click');
}
var $content=$('#Content');
$content.addClass('is-loading');
$form.find('input,select,button').prop('disabled', true);
$form.find('button.mfn-btn').addClass('loading disabled');
if($('.mfn-archive-product-tmpl-builder .mfn-woo-list-perpage li.active input').length&&$('.mfn-archive-product-tmpl-builder .mfn-woo-list-perpage li.active input').val().length) data +='&per_page='+$('.mfn-archive-product-tmpl-builder .mfn-woo-list-perpage li.active input').val();
if($('.mfn-archive-product-tmpl-builder .woocommerce-ordering select').length&&$('.mfn-archive-product-tmpl-builder .woocommerce-ordering select').val().length) data +='&orderby='+$('.mfn-archive-product-tmpl-builder .woocommerce-ordering select').val();
if($('.mfn-archive-product-tmpl-builder .mfn-woo-list-style li.active input').length&&$('.mfn-archive-product-tmpl-builder .mfn-woo-list-style li.active input').val().length) data +='&layout='+$('.mfn-archive-product-tmpl-builder .mfn-woo-list-style li.active input').val();
$.ajax({
url: url,
type: method,
data: data,
dataType: 'html'
}).done(function(html){
var $html=$('<div>').append($.parseHTML(html));
var $newContent=$html.find('#Content');
if($newContent.length){
$content.replaceWith($newContent);
if($('.mfn-sidemenu-tmpl').length){
$('.mfn-sidemenu-tmpl').each(function(){
let id=$(this).attr('id');
$(this).replaceWith($html.find('#'+id));
});
}
if(method==='GET'){
var newUrl=url + (url.indexOf('?')>-1 ? '&':'?') + data;
window.history.replaceState({}, '', newUrl);
}}else{
window.location.href=method==='GET' ? (url + (url.indexOf('?')>-1?'&':'?') + data):url;
}}).fail(function(){
window.location.href=method==='GET' ? (url + (url.indexOf('?')>-1?'&':'?') + data):url;
}).always(function(){
$form.find('input,select,button').prop('disabled', false);
$('#Content').removeClass('is-loading');
$form.find('button.mfn-btn').removeClass('loading disabled');
$(document).trigger('mfn:ajax:refresh');
});
},
slider: function(){
mfnAdvancedFilters.form.find('.mfn-advanced-filters-slider').each(function(i, slider){
let input=$(this).closest('.mfn-form-row-wrapper').find('input.mfn-ui-slider-input');
let min=input.attr('min').length ? input.attr('min'):'0';
let max=input.attr('max').length ? input.attr('max'):'500';
let val=input.val().length ? input.val():'';
$(this).slider({
step: 1,
min: parseFloat(min),
max: parseFloat(max),
range: "min",
value: val,
create: function (){
$(this).find(".ui-slider-handle").append('<span class="mfn-ui-tip"></span>');
$(this).find(".mfn-ui-tip").text($(this).slider("value"));
},
slide: function(event, ui){
input.val(ui.value);
if(!input.parent('.mfn-input-wrapper').hasClass('mfn-not-empty')) input.parent('.mfn-input-wrapper').addClass('mfn-not-empty');
$(this).find(".mfn-ui-tip").text(ui.value);
},
stop: function(){
input.trigger('change');
}});
});
},
slider_range: function(){
mfnAdvancedFilters.form.find('.mfn-advanced-filters-range-slider').each(function(i, slider){
let input_min=$(this).closest('.mfn-advanced-filters-slider-wrapper').find('input.mfn-ui-slider-input-min');
let input_max=$(this).closest('.mfn-advanced-filters-slider-wrapper').find('input.mfn-ui-slider-input-max');
let min=typeof input_min.attr('min')!='undefined' ? input_min.attr('min'):'0';
let max=typeof input_max.attr('max')!='undefined' ? input_max.attr('max'):'500';
let val_min=input_min.val().length ? input_min.val():min;
let val_max=input_max.val().length ? input_max.val():max;
$(this).slider({
range: true,
step: 1,
min: parseFloat(min),
max: parseFloat(max),
values: [ parseFloat(val_min), parseFloat(val_max) ],
create: function (event, ui){
$(this).find(".ui-slider-handle").append('<span class="mfn-ui-tip"></span>');
$(this).find(".mfn-ui-tip").first().text(val_min);
$(this).find(".mfn-ui-tip").last().text(val_max);
},
slide: function(event, ui){
$(ui.handle).closest('.mfn-form-row-wrapper').find('input.mfn-ui-slider-input-min').val(ui.values[ 0 ]);
$(ui.handle).closest('.mfn-form-row-wrapper').find('input.mfn-ui-slider-input-max').val(ui.values[ 1 ]);
if(!$(ui.handle).closest('.mfn-form-row-wrapper').find('.mfn-input-wrapper').hasClass('mfn-not-empty')) $(ui.handle).closest('.mfn-form-row-wrapper').find('.mfn-input-wrapper').addClass('mfn-not-empty');
$(ui.handle).find(".mfn-ui-tip").text(ui.value);
},
stop: function(){
input_min.trigger('change');
}});
});
}}
$(document).on('click', '.mfn-gdpr-button', function(){
var closeAnimation=$('.mfn-gdpr-button').attr('data-animation');
var barAligment=$('#mfn-gdpr').attr('data-aligment');
switch(true){
case 'none'===closeAnimation:
$('#mfn-gdpr').css('display', 'none');
break;
case 'fade'===closeAnimation:
$('#mfn-gdpr').fadeOut(300);
break;
case 'slide'===closeAnimation&&'top'===barAligment:
$('#mfn-gdpr').slideUp(300);
break;
default:
$('#mfn-gdpr').slideToggle(300);
break;
}
setTimeout(function(){
$('#mfn-gdpr').removeClass('show');
gdpr_set_cookie();
}, 300);
});
function gdpr_set_cookie(){
if(navigator.cookieEnabled){
var cookieDays=$('.mfn-gdpr-button').attr('data-cookiedays')||365;
var cookieDate=new Date();
var cookieText='';
cookieDate.setTime(cookieDate.getTime() + (cookieDays * 24 * 60 * 60 * 1000));
cookieText +="mfn-gdpr=1";
cookieText +="; expires=" + cookieDate.toUTCString() + ';';
cookieText +="; path=" + mfn.home_url + '/';
document.cookie=cookieText;
}}
function gdpr(){
if(document.cookie!==""){
var cookies=document.cookie.split(/; */);
for (var cookie of cookies){
var [ cookieName ]=cookie.split("=");
if(cookieName==='mfn-gdpr'){
return;
}}
}
$('#mfn-gdpr').addClass('show');
}
function infiniteScrollFunction(infiniteLoadContainer, infiniteLoadButton, scrollDirection){
var screenHeight=document.body.clientHeight;
if(infiniteLoadContainer.attr('data-attr')===$(infiniteLoadButton).attr('href')){
return;
}else if(scrollDirection==='down'){
infiniteLoadContainer.attr('data-attr', $(infiniteLoadButton).attr('href'));
infiniteLoadButton.click();
setTimeout(function(){
var heightAfterLoadDifference=(document.body.clientHeight - screenHeight);
if(heightAfterLoadDifference < 249){
infiniteScrollFunction(infiniteLoadContainer, infiniteLoadButton, scrollDirection);
}}, 500);
}}
/*  function infiniteScrollPortfolio(){
var infiniteLoadContainer=$('.mfn-infinite-load-button');
var infiniteLoadButton=$('.mfn-infinite-load-button a');
$(infiniteLoadContainer).waypoint({
handler: function(direction){
infiniteScrollFunction(infiniteLoadContainer, infiniteLoadButton, direction);
},
offset: function(){
var offsetPosition=-(($(this)[0].element.scrollHeight) - (window.innerHeight / 1.2));
return offsetPosition;
}});
} */
$('body').on('click', ".table_of_content .toggle", function(e){
e.preventDefault();
if($('.table_of_content').hasClass('hide')){
$('.table_of_content').removeClass('hide');
$('.table_of_content_wrapper').slideDown({
duration: 400,
always: function(){
$('.table_of_content').removeClass('hide_on_start');
}});
}else{
$('.table_of_content_wrapper').slideUp({
duration: 400
});
$('.table_of_content').addClass('hide');
}});
function tableContentAttachId(){
const container=$('.table_of_content');
let tags;
let anchorNumber=0;
let anchorDom=$('.table_of_content_wrapper').find('a');
if(tags=container.attr('data-tags')){
tags=tags.split(/[ ,]+/).join(',');
let columns=$('#Content .mfn-builder-content .column_column, #Content .mfn-builder-content .column_post_content, #Content .mfn-builder-content .column_heading, #Content .mfn-builder-content .column_fancy_heading, .the_content_wrapper:not(.is-elementor), .elementor-widget:not(.elementor-widget-mfn_table_of_contents)');
if($('#Content .mfn-single-post-tmpl-builder .column_post_content').length){
columns=$('#Content .mfn-single-post-tmpl-builder .column_post_content .column_column, #Content .mfn-single-post-tmpl-builder .column_post_content, #Content .mfn-single-post-tmpl-builder .column_post_content .column_heading, #Content .mfn-single-post-tmpl-builder .column_post_content .column_fancy_heading, .the_content_wrapper:not(.is-elementor), .elementor-widget:not(.elementor-widget-mfn_table_of_contents)');
}else if($('#Content .mfn-single-portfolio-tmpl-builder .column_post_content').length){
columns=$('#Content .mfn-single-portfolio-tmpl-builder .column_post_content .column_column, #Content .mfn-single-portfolio-tmpl-builder .column_post_content, #Content .mfn-single-portfolio-tmpl-builder .column_post_content .column_heading, #Content .mfn-single-portfolio-tmpl-builder .column_post_content .column_fancy_heading, .the_content_wrapper:not(.is-elementor), .elementor-widget:not(.elementor-widget-mfn_table_of_contents)');
}
$(columns).each(( index, element)=> {
let headingsNoticed=$(element).find(tags);
$(headingsNoticed).each(( index, element)=> {
if($(element).attr('id')){
const idSet='#'+$(element).attr('id');
$(anchorDom[anchorNumber]).attr('href', idSet);
}else{
let id=$(anchorDom[anchorNumber]).attr('href');
if(typeof id!=='undefined') $(element).attr('id', id.substr(1));
}
anchorNumber++;
})
})
}}
var offCanvasSidebar={
init: function(){
$(document).on('click', '.mfn-off-canvas-switcher', function(e){
e.preventDefault();
if($('html').hasClass('mfn-ofcs-opened')){
$('html').removeClass('mfn-ofcs-opened');
}else{
$('html').addClass('mfn-ofcs-opened');
}});
},
mobile: function(){
if($('.sidebar .widget-area').length&&$('body').hasClass('ofcs-mobile')){
if(!$('.mfn-off-canvas-sidebar').length){
$('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>');
}
if($('body').hasClass('woocommerce-shop')&&!$('.mfn-woo-filters-wrapper .mfn-off-canvas-switcher').length){
$('.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 $ofcs=$('.mfn-off-canvas-sidebar .mfn-off-canvas-content-wrapper .mfn-off-canvas-content');
$ofcs.empty();
$('.sidebar .widget-area').each(function(){
$ofcs.append($(this));
});
offCanvasSidebar.init();
}}
}
function alignHeights(){
var i=0;
if(!$('.mfn-align-heights').length) return;
$('.mfn-align-heights').each(function(){
var max=0;
var newclass='mfn-align-cont-'+i;
$(this).addClass(newclass);
$("<style type='text/css'> ."+newclass+" .mfn-align-me{ height: auto;} </style>").appendTo("body");
$("."+newclass+" .mfn-align-me").each(function(){
if($(this).outerHeight() > max){max=$(this).outerHeight();}});
$("<style type='text/css'> ."+newclass+" .mfn-align-me{ height: "+max+"px;} </style>").appendTo("body");
i++;
});
}
$(window).on('debouncedresize', alignHeights);
var headerMegamenu={
init: function(){
if($('.mfn-megamenu-menu.mfn-mm-submenu-toggled li.menu-item-has-children').length){
$('.mfn-megamenu-menu.mfn-mm-submenu-toggled li.menu-item-has-children > a').on('click', function(e){
let href=$(this).attr('href');
if(!$(this).parent('li').hasClass('mfn-li-childrens-show')){
e.preventDefault();
e.stopPropagation();
$(this).siblings('ul').slideDown(300);
$(this).parent('li').addClass('mfn-li-childrens-show');
}else if(href==''||href=='#'){
e.preventDefault();
e.stopPropagation();
$(this).siblings('ul').slideUp(300);
$(this).parent('li').removeClass('mfn-li-childrens-show');
}});
}
if($('.column_megamenu_menu ul.mfn-mm-menu-horizontal.mfn-mm-submenu-on-click li').length){
$('.column_megamenu_menu ul.mfn-mm-menu-horizontal.mfn-mm-submenu-on-click li > a').on('click', function(e){
if($(this).closest('li').hasClass('menu-item-has-children')&&!$(this).closest('li').hasClass('mfn-li-hover')){
e.preventDefault();
e.stopPropagation();
$(this).closest('li').addClass('mfn-li-hover');
}});
}
if($('ul.mfn-menu-submenu-on-hover li.mfn-menu-item-has-megamenu, li.mfn-theme-options-menu.mfn-menu-item-has-megamenu').length){
$('ul.mfn-menu-submenu-on-hover li.mfn-menu-item-has-megamenu, li.mfn-theme-options-menu.mfn-menu-item-has-megamenu').on('mouseenter mousemove', function(){
if($(this).find('.mfn-megamenu-full-width').length||$(this).find('.mfn-megamenu-grid').length){
headerMegamenu.setLeft($(this));
}});
}
if($('ul.mfn-menu-submenu-on-click li.mfn-menu-item-has-megamenu').length){
$('ul.mfn-menu-submenu-on-click li.mfn-menu-item-has-megamenu > a.mfn-menu-link').on('click', function(e){
let href=$(this).attr('href');
if($(this).closest('li').find('.mfn-megamenu-full-width').length||$(this).closest('li').find('.mfn-megamenu-grid').length){
headerMegamenu.setLeft($(this).closest('li'));
}
if(href==''||href=='#'){
e.preventDefault();
e.stopPropagation();
if($(this).closest('li').hasClass('mfn-li-hover')){
$(this).closest('li').removeClass('mfn-li-hover');
$(document).unbind('click', headerTemplate.bindUnclick);
$('body').removeClass('mfn-content-gray mfn-content-blur mfn-content-overlay');
}else{
$('ul.mfn-menu-submenu-on-click li.mfn-menu-item-has-megamenu.mfn-li-hover').removeClass('mfn-li-hover');
$(this).closest('li').addClass('mfn-li-hover');
$(document).bind('click', headerTemplate.bindUnclick);
headerTemplate.animContentAddClass();
}}else if(!$(this).closest('li').hasClass('mfn-li-hover')){
e.preventDefault();
e.stopPropagation();
if(!$(this).closest('li.mfn-li-hover').length){
$('.mfn-header-tmpl ul li.mfn-li-hover').removeClass('mfn-li-hover');
}else if($(this).closest('li.mfn-li-hover').find('li.mfn-li-hover').length){
$(this).closest('li.mfn-li-hover').find('li.mfn-li-hover').removeClass('mfn-li-hover');
}
if(!$(this).closest('.mfn-megamenu-menu').length&&!$(this).closest('li.mfn-li-hover').length){
if($('.mfn-megamenu-menu.mfn-mm-submenu-toggled li.menu-item-has-children.mfn-li-childrens-show').length){
$('.mfn-megamenu-menu.mfn-mm-submenu-toggled li.menu-item-has-children.mfn-li-childrens-show ul').slideUp();
$('.mfn-megamenu-menu.mfn-mm-submenu-toggled li.menu-item-has-children.mfn-li-childrens-show').removeClass('mfn-li-childrens-show');
}}
headerTemplate.animContentAddClass();
$(this).parent('li').addClass('mfn-li-hover');
$(document).bind('click', headerTemplate.bindUnclick);
}
headerMegamenu.afterShow();
});
}},
afterShow: function(){
bannerBox.init();
$(window).trigger('resize');
},
setLeft: function($li){
var $mm=$li.find('.mfn-menu-item-megamenu');
var left=$li.offset().left;
$mm.css('width', $(window).width()+'px');
$mm.css('left', '-'+left+'px');
$mm.addClass('mfn-mm-grid-set');
}}
var footerTemplate={
init: function(){
if($('body').hasClass('mfn-footer-stick')){
footerTemplate.isSticky();
}
if($('body').hasClass('mfn-footer-sliding')||$('body').hasClass('mfn-footer-fixed')){
setTimeout(footerTemplate.isSliding(), 300);
}
return;
},
isSticky: function(){
var offsetTop=$('.mfn-footer-tmpl').offset().top + $('.mfn-footer-tmpl').outerHeight();
if(offsetTop < $(window).height()){
$('.mfn-footer-tmpl').addClass('is-sticky');
}else{
$('.mfn-footer-tmpl').removeClass('is-sticky');
}},
isSliding: function(){
var footer=$('.mfn-footer-tmpl').outerHeight();
$('#Content').css('margin-bottom', footer);
}}
var bannerBox={
init: function(){
setTimeout(bannerBox.set, 300);
},
set: function(){
if($('body').hasClass('mfn-ui')) return;
if(!$('.column_banner_box .hidden-desc').length) return;
if($(".mfn-banner-box .last-visible-el").length){
$(".mfn-banner-box .last-visible-el").removeClass('last-visible-el');
$('.hidden-wrapper .hidden-desc').removeAttr('style');
}
$(".mfn-banner-box").each(function(){
if($(this).find('.hidden-desc').length){
if($(this).find('.hidden-desc').prev().length) $(this).find('.hidden-desc').prev().addClass("last-visible-el");
var hd_h=$(this).find('.hidden-wrapper').outerHeight();
$(this).find('.hidden-desc').css({ '--mfn-banner-box-height': hd_h + 'px' });
}});
}};
var mfn_hotspot={
init: function(){
if($(window).width() >=960){
mfn_hotspot.hover();
}else{
mfn_hotspot.click();
}},
hover: function(e){
$('.mfn-image-hotspot .hotspot-point').on('mouseenter', function(){
$(this).addClass('is-active');
}).on('mouseleave', function(){
$(this).removeClass('is-active');
});
$('.mfn-image-hotspot').on('mouseleave', function(){
$('.mfn-image-hotspot .hotspot-point.is-active').removeClass('is-active');
});
},
click: function(){
$('.mfn-image-hotspot .hotspot-point').on('click', function(){
if($('.mfn-image-hotspot .hotspot-point.is-active').length) $('.mfn-image-hotspot .hotspot-point.is-active').removeClass('is-active');
$(this).addClass('is-active');
$(document).bind('click', mfn_hotspot.bindUnclick);
})
},
bindUnclick: function(e){
if(!$('.mfn-image-hotspot .hotspot-point').is(e.target)&&$('.mfn-image-hotspot .hotspot-point').has(e.target).length===0){
if($('.mfn-image-hotspot .hotspot-point.is-active').length) $('.mfn-image-hotspot .hotspot-point.is-active').removeClass('is-active');
$(document).unbind('click', mfn_hotspot.bindUnclick);
}}
};
var headerTemplate={
hasSticky: false,
isMobile: false,
offsetScroll: 60,
hasBodyOffset: false,
height: 0,
type: 'default',
animContentOnHover: function(){
if($('.mfn-header-tmpl.mfn-header-main .mfn-header-menu.mfn-header-mainmenu').hasClass('mfn-menu-submenu-on-hover')){
$('.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 mousemove', function(){
headerTemplate.animContentAddClass();
}).on('mouseenter', function(){
$(window).trigger('resize');
});
}
$('.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(){
$('body').removeClass('mfn-content-gray mfn-content-blur mfn-content-overlay');
});
},
animContentAddClass: function(){
if($('.mfn-header-tmpl.mfn-header-main').hasClass('mfn-header-content-blur')){
$('body').addClass('mfn-content-blur');
}else if($('.mfn-header-tmpl.mfn-header-main').hasClass('mfn-header-content-gray')){
$('body').addClass('mfn-content-gray');
}else if($('.mfn-header-tmpl.mfn-header-main').hasClass('mfn-header-content-overlay')){
$('body').addClass('mfn-content-overlay');
}},
openOnClick: function(){
$(document).on('click', '.mfn-header-tmpl .mfn-header-menu.mfn-menu-submenu-on-click li.menu-item-has-children > a.mfn-menu-link', function(e){
let href=$(this).attr('href');
if($(this).closest('li').find('.mfn-megamenu-full-width').length||$(this).closest('li').find('.mfn-megamenu-grid').length){
headerMegamenu.setLeft($(this).closest('li'));
}
if(href==''||href=='#'){
e.preventDefault();
e.stopPropagation();
if($(this).closest('li').hasClass('mfn-li-hover')){
$(this).closest('li').removeClass('mfn-li-hover');
$(document).unbind('click', headerTemplate.bindUnclick);
$('body').removeClass('mfn-content-gray mfn-content-blur mfn-content-overlay');
}else{
$(this).closest('li').siblings('li').removeClass('mfn-li-hover');
$(this).closest('li').addClass('mfn-li-hover');
$(document).bind('click', headerTemplate.bindUnclick);
headerTemplate.animContentAddClass();
}}else if(!$(this).closest('li').hasClass('mfn-li-hover')){
e.preventDefault();
e.stopPropagation();
$(this).closest('li').siblings('li').removeClass('mfn-li-hover');
headerTemplate.animContentAddClass();
$(this).parent('li').addClass('mfn-li-hover');
$(document).bind('click', headerTemplate.bindUnclick);
}
$(window).trigger('resize')
});
},
bindUnclick: function(e){
var $li=$('.mfn-header-tmpl ul li.mfn-li-hover');
if(!$li.is(e.target)&&!$li.find(e.target).length){
$li.removeClass('mfn-li-hover');
$('body').removeClass('mfn-content-gray mfn-content-blur mfn-content-overlay');
$(document).unbind('click', headerTemplate.bindUnclick);
}},
closeable: function(){
if($('body').hasClass('mfn-ui')) return;
$('.mfn-header-tmpl .close-closeable-section').on('click', function(){
var $section=$(this).closest('.mcb-section');
$section.addClass('closeable-hidden').slideUp(300, function(){
headerTemplate.resetOffset();
headerTemplate.offset();
});
if(typeof $section.attr('data-close-days')!=='undefined'&&$section.attr('data-close-days')!='0'){
var days=$section.attr('data-close-days');
var uid=$section.attr('data-uid');
var date=new Date();
date.setTime(date.getTime()+(parseInt(days)*24*60*60*1000));
var expires="; expires="+date.toGMTString();
document.cookie="mfn_closed_section_"+uid+"=1"+expires+"; path=/"
}});
},
resetOffset: function(){
if(headerTemplate.type!='default'&&headerTemplate.hasBodyOffset){
$('#Wrapper').css({ 'padding-top': $('.mfn-header-tmpl').outerHeight() });
}},
detectHover: function(){
$('.mfn-header-tmpl .mfn-menu-submenu-on-hover .mfn-menu-item-has-megamenu.mfn-menu-li').on('mouseenter', function(){
headerMegamenu.afterShow();
});
},
offset: function(){
if(headerTemplate.hasSticky&&!headerTemplate.isMobile) return;
headerTemplate.offsetScroll=0;
var _screen='default';
if(headerTemplate.isMobile) _screen='header-mobile';
$('.mfn-header-tmpl .mfn-'+_screen+'-section.hide-on-scroll:not(.closeable-hidden)').each(function(){
headerTemplate.offsetScroll +=$(this).outerHeight();
});
},
init: function(){
headerTemplate.hasBodyOffset=false;
if(!$('body').hasClass('mfn-ui')&&$('.mfn-header-tmpl').find('.section.closeable-active').length){
$('.mfn-header-tmpl').find('.section.closeable-active').each(function(){
if(headerTemplate.readcookie('mfn_closed_section_'+$(this).attr('data-uid'))||headerTemplate.readcookie('mfn_closed_section')==$(this).attr('data-uid')){
$(this).remove();
}else{
$(this).removeClass('mfn-temporary-hidden');
}});
}
if($(window).width() < 767&&$('.mfn-header-tmpl').hasClass('mfn-hasMobile')){
headerTemplate.isMobile=true;
headerTemplate.type=$('.mfn-header-tmpl').attr('data-mobile-type');
if($('.mfn-header-tmpl').hasClass('mfn-mobile-header-body-offset')){
headerTemplate.hasBodyOffset=true;
}else{
headerTemplate.hasBodyOffset=false;
}}else{
headerTemplate.isMobile=false;
headerTemplate.type=$('.mfn-header-tmpl').attr('data-type');
if($('.mfn-header-tmpl').hasClass('mfn-header-body-offset')){
headerTemplate.hasBodyOffset=true;
}else{
headerTemplate.hasBodyOffset=false;
}}
if($('.mfn-header-tmpl .mfn-menu-submenu-on-click:not(.initialized)').length){
$('.mfn-header-tmpl .mfn-menu-submenu-on-click').addClass('initialized');
headerTemplate.openOnClick();
}
if($('.mfn-header-tmpl .mfn-menu-submenu-on-hover .mfn-menu-item-has-megamenu.mfn-menu-li').length){
headerTemplate.detectHover();
}
if($('.mfn-header-tmpl').hasClass('mfn-header-content-blur')||$('.mfn-header-tmpl').hasClass('mfn-header-content-gray')||$('.mfn-header-tmpl').hasClass('mfn-header-content-overlay')){
headerTemplate.animContentOnHover();
}
if($('.mfn-header-tmpl').hasClass('mfn-hasSticky')){
headerTemplate.hasSticky=true;
}else{
headerTemplate.hasSticky=false;
}
if($('body style.tmp-mfn-header-template').length) $('body style.tmp-mfn-header-template').remove();
if($('.mfn-header-tmpl .close-closeable-section').length) headerTemplate.closeable();
if($('body').hasClass('mfn-header-scrolled')&&!$('.mfn-builder-active').length) $('body').removeClass('mfn-header-scrolled');
headerTemplate.getHeight();
headerTemplate.offset();
headerTemplate.scroll();
if($(window).scrollTop() > 10){
$(window).trigger('scroll');
}
if($('#wpadminbar').length){
let admin_bar_h=$('#wpadminbar').outerHeight();
if($('.mfn-header-tmpl.mfn-header-tmpl-fixed').length) $('.mfn-header-tmpl.mfn-header-tmpl-fixed').css({'margin-top': admin_bar_h});
if($(window).width() < 767&&$('.mfn-header-tmpl.mfn-mobile-header-tmpl-fixed').length) $('.mfn-header-tmpl.mfn-mobile-header-tmpl-fixed').css({'margin-top': admin_bar_h});
}},
scroll: function(){
if($('.mfn-header-tmpl').hasClass('mfn-header-tmpl-default')&&headerTemplate.hasSticky&&!headerTemplate.isMobile){
$('body').append('<style class="tmp-mfn-header-template">html body.mfn-header-scrolled{padding-top: '+headerTemplate.height+'px;}</style>');
}
$(window).scroll(function(){
var scrolled=$(this).scrollTop();
var scroll_offset=headerTemplate.offsetScroll;
if(headerTemplate.hasSticky&&!headerTemplate.isMobile) scroll_offset=headerTemplate.height;
if(scrolled > scroll_offset){
$('body').addClass('mfn-header-scrolled');
if(($('.mfn-header-tmpl').hasClass('mfn-header-tmpl-fixed')&&!headerTemplate.isMobile)||($('.mfn-header-tmpl').hasClass('mfn-mobile-header-tmpl-fixed')&&headerTemplate.isMobile)&&$('.mfn-header-tmpl .hide-on-scroll:not(.closeable-hidden)').length){
if(headerTemplate.hasSticky&&!headerTemplate.isMobile){
$('.mfn-header-tmpl').css({'top': 0});
}else{
$('.mfn-header-tmpl').css({'top': '-'+headerTemplate.offsetScroll+'px'});
}}
}else{
$('body').removeClass('mfn-header-scrolled');
if(($('.mfn-header-tmpl').hasClass('mfn-header-tmpl-fixed')&&!headerTemplate.isMobile)||($('.mfn-header-tmpl').hasClass('mfn-mobile-header-tmpl-fixed')&&headerTemplate.isMobile)&&$('.mfn-header-tmpl .hide-on-scroll:not(.closeable-hidden)').length){
$('.mfn-header-tmpl').css({'top': '-'+scrolled+'px'});
}
if($('#wpadminbar').length){
let admin_bar_h=$('#wpadminbar').outerHeight();
if($('.mfn-header-tmpl.mfn-header-tmpl-fixed').length) $('.mfn-header-tmpl.mfn-header-tmpl-fixed').css({'margin-top': admin_bar_h});
if($(window).width() < 767&&$('.mfn-header-tmpl.mfn-mobile-header-tmpl-fixed').length) $('.mfn-header-tmpl.mfn-mobile-header-tmpl-fixed').css({'margin-top': admin_bar_h});
}}
});
},
getHeight: function(){
headerTemplate.height=$('.mfn-header-tmpl').outerHeight();
if(headerTemplate.type!='default'&&headerTemplate.hasBodyOffset){
$('#Wrapper').css({ 'padding-top':headerTemplate.height });
}else{
$('#Wrapper').removeAttr('style');
}
$('.mfn-header-tmpl').removeAttr('style');
},
readcookie: function(name){
var nameEQ=name+"=";
var ca=document.cookie.split(';');
for(var i=0;i<ca.length;i++){
var c=ca[i];
while(c.charAt(0)==' ')c=c.substring(1,c.length);
if(c.indexOf(nameEQ)==0) return c.substring(nameEQ.length,c.length)
}
return null
},
}
let mfnMarqueeText={
win_width: 1920,
init: function(){
if(!$('.mfn-marquee-text-wrapper').length) return;
this.win_width=$(window).width();
setTimeout(function(){
mfnMarqueeText.set();
}, 100);
},
set: function(){
$('.mfn-marquee-text-wrapper:not(.initialized)').each(function(i, el){
if(!$(this).find('.mfn-marquee-text').length) return;
$(this).addClass('initialized');
let track=$(this).find('.mfn-marquee-text');
let width=track.outerWidth();
document.body.style.display='table';
document.body.offsetHeight;
document.body.style.display='';
if(width==0) return;
let divi=Math.round((mfnMarqueeText.win_width / width)) + 1;
let iter=Math.round(Math.ceil(divi / 2) * 2);
if(iter < 2) return;
let track_html=track.html();
for (var j=1; j <=iter; j++){
track.append(track_html);
}
let count=track.find('.mfn-marquee-item').length;
if(count % 2!==0){
track.append(track_html);
}});
}}
mfnMarqueeText.init();
$(document).on('mfn:ajax:refresh', mfnMarqueeText.init);
let mfnReadMore={
init: function(){
if($('body').hasClass('mfn-ui')) return false;
if(!$('.mfn-read-more').length) return false;
mfnReadMore.prepare();
mfnReadMore.click();
},
prepare: function(){
if($('body').hasClass('mfn-ui')) return false;
$('.mfn-read-more').each(function(){
let this_wrapper=$(this).closest('.column');
let copy=this_wrapper.nextAll('.column').addClass('mfn-read-more-hidden');
if(copy.length){
$.each(copy, function(i, item){
this_wrapper.before(item);
});
}});
},
click: function(){
$(document).on('click', '.mfn-read-more', function(e){
e.preventDefault();
let icon=false;
let box=$(this);
let wrapper=box.closest('.mcb-wrap');
let label1=box.attr('data-title1');
let label2=box.attr('data-title2');
let icon1=box.attr('data-icon1');
let icon2=box.attr('data-icon2');
let label=box.find(box.attr('data-label_path'));
icon=box.find(box.attr('data-icon_path'));
if(wrapper.hasClass('mfn-read-more-expanded')){
wrapper.find('.mfn-read-more-hidden').removeClass('showed').slideUp(500);
wrapper.removeClass('mfn-read-more-expanded');
label.html(label1);
if(icon1!=''&&icon.length){
icon.html('<i class="'+icon1+'"></i>');
}else{
icon.remove();
}}else{
wrapper.find('.mfn-read-more-hidden').addClass('showed').slideDown(500);
wrapper.addClass('mfn-read-more-expanded');
label.html(label2);
if(icon2!=''){
if(icon.length){
icon.html('<i class="'+icon2+'"></i>');
}else{
if(box.find('.mfn-icon-box').length){
box.find('.mfn-icon-box').prepend('<span class="'+box.attr('data-icon_path').replace('.', '')+'"><i class="'+icon2+'"></i></span>');
}else{
box.prepend('<span class="'+box.attr('data-icon_path').replace('.', '')+'"><i class="'+icon2+'"></i></span>');
}}
}}
$(window).trigger('resize');
setTimeout(function(){
$(window).trigger('resize');
}, 600);
});
}}
let mfnPopup={
init: function(){
if($('body').hasClass('elementor-editor-active')) return;
$(document).on('click', '.open-mfn-popup', function(e){
e.preventDefault();
let popup_id=$(this).attr('data-mfnpopup');
if(popup_id=='popup_id_required'){
alert('Popup ID id required');
}else if(!$(popup_id).length){
alert('We cannot find popup with inserted ID');
}else{
mfnPopup.showPopup($(popup_id));
}});
if(!$('body').hasClass('mfn-cookies-open')) mfnPopup.open();
$(document).on('click', '.exit-mfn-popup', function(e){
e.preventDefault();
let $popup=$(this).closest('.mfn-popup-tmpl');
mfnPopup.hidePopup($popup);
});
},
open: function(){
if($('.mfn-popup-tmpl.mfn-popup-tmpl-display-on-scroll').length) mfnPopup.showOnScroll();
if($('.mfn-popup-tmpl.mfn-popup-tmpl-display-start-delay').length) mfnPopup.showOnDelay();
if($('.mfn-popup-tmpl.mfn-popup-tmpl-display-on-exit').length) mfnPopup.showOnExit();
if($('.mfn-popup-tmpl.mfn-popup-tmpl-display-scroll-to-element').length) mfnPopup.showOnScrollToElement();
if($('.mfn-popup-tmpl.mfn-popup-tmpl-display-on-start').length) mfnPopup.showOnStart();
},
hidePopup: function($popup){
if($popup.find('video').length) $popup.find('video').get(0).pause();
if($popup.find('iframe').length){
var popup_iframe=$popup.find('iframe')[0];
var ifr_src=$(popup_iframe).attr('src');
if(typeof ifr_src!='undefined'){
if(ifr_src.includes('youtu')) popup_iframe.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}', '*');
if(ifr_src.includes('vimeo')){
$(popup_iframe).attr('src', ifr_src);
}}
}
$popup.removeClass('mfn-popup-active');
$('html').removeClass('mfn-popup-browser-scroll-disabled');
if($('style.mfn-popup-tmpl-blur-'+$popup.attr('data-id')).length){
$('style.mfn-popup-tmpl-blur-'+$popup.attr('data-id')).remove();
}
if($popup.hasClass('mfn-popup-tmpl-display-cookie-based')||$popup.hasClass('mfn-popup-tmpl-display-one')){
let days=365;
if($popup.hasClass('mfn-popup-tmpl-display-cookie-based')) days=parseInt($popup.attr('data-cookie'));
let cookie_name='mfn_popup_'+$popup.attr('data-id');
mfnPopup.addCookie(days, cookie_name);
}},
showPopup: function($popup){
let cookie_name='mfn_popup_'+$popup.attr('data-id');
if(mfnPopup.checkCookie(cookie_name)) return;
if(typeof $popup.attr('data-blur')!=='undefined'){
$('body').append('<style class="mfn-popup-tmpl-blur-'+$popup.attr('data-id')+'">#Wrapper{ filter: blur('+$popup.attr('data-blur')+'px) }</style>');
}
if(!$popup.hasClass('mfn-popup-active')) $popup.addClass('mfn-popup-active mfn-popup-showed');
if($popup.hasClass('mfn-popup-tmpl-hide-automatically-delay')) mfnPopup.hideAutomatically($popup);
if($popup.hasClass('mfn-popup-tmpl-close-button-show-delay')) mfnPopup.showExitButton($popup);
if(!$('body').hasClass('mfn-ui')&&$popup.hasClass('mfn-popup-close-on-overlay-click')){
$popup.bind('click',  mfnPopup.closeOverlayClick);
}
if(!$popup.hasClass('mfn-popup-browser-scroll-enabled')){
$('html').addClass('mfn-popup-browser-scroll-disabled');
}
bannerBox.set();
if($popup.find('.slick-initialized').length){
$popup.find('.slick-initialized').slick('refresh');
}
$(document).trigger('mfnPopupInit');
},
closeOverlayClick: function(e){
var div=$(e.delegateTarget).find('.mfn-popup-tmpl-content-wrapper');
if(!div.is(e.target)&&div.has(e.target).length===0){
mfnPopup.hidePopup($(e.delegateTarget));
$(e.delegateTarget).unbind('click', mfnPopup.closeOverlayClick);
}},
hideAutomatically: function($popup){
if($('body').hasClass('mfn-ui')) return;
let delay=parseInt($popup.attr('data-hidedelay'));
setTimeout(function(){ mfnPopup.hidePopup($popup); }, delay);
},
showExitButton: function($popup){
let delay=parseInt($popup.attr('data-closebuttondelay'));
setTimeout(function(){ $popup.addClass('mfn-closebutton-active'); }, delay);
},
showOnScroll: function(){
$('.mfn-popup-tmpl.mfn-popup-tmpl-display-on-scroll').each(function(){
let $popup=$(this);
let scroll_offset=parseInt($popup.attr('data-display'));
$(window).on('scroll', function(){
if($(window).scrollTop() > scroll_offset&&!$popup.hasClass('mfn-popup-showed')) mfnPopup.showPopup($popup);
});
});
},
showOnScrollToElement: function(){
$('body').imagesLoaded(function(){
$('.mfn-popup-tmpl.mfn-popup-tmpl-display-scroll-to-element').each(function(){
let $popup=$(this);
let scroll_offset=$($popup.attr('data-display')).length ? parseInt($($popup.attr('data-display')).offset().top):100;
$(window).on('scroll', function(){
if($(window).scrollTop() > scroll_offset&&!$popup.hasClass('mfn-popup-showed')) mfnPopup.showPopup($popup);
});
});
});
},
showOnDelay: function(){
$('.mfn-popup-tmpl.mfn-popup-tmpl-display-start-delay').each(function(){
let $popup=$(this);
let delay=parseInt($popup.attr('data-display'));
setTimeout(function(){
mfnPopup.showPopup($popup)
}, delay);
});
},
showOnExit: function(){
$('.mfn-popup-tmpl.mfn-popup-tmpl-display-on-exit').each(function(){
let $popup=$(this);
$(document).on('mouseleave', function(){
mfnPopup.showPopup($popup)
});
});
},
showOnStart: function(){
$('.mfn-popup-tmpl.mfn-popup-tmpl-display-on-start').each(function(){
let $popup=$(this);
mfnPopup.showPopup($popup)
});
},
addCookie(days, cookie_name){
let date=new Date();
date.setTime(date.getTime()+(parseInt(days)*24*60*60*1000));
let expires="; expires="+date.toGMTString();
document.cookie=cookie_name+"=true"+expires+"; path=/";
},
checkCookie(cookie_name){
var nameEQ=cookie_name+"=";
var ca=document.cookie.split(';');
for(var i=0;i<ca.length;i++){
var c=ca[i];
while(c.charAt(0)==' ') c=c.substring(1,c.length);
if(c.indexOf(nameEQ)==0) return c.substring(nameEQ.length,c.length)
}
return null
}}
$(document).on('mfn:gdpr2:close', function(){
mfnPopup.open();
});
var mfnReadMoreTermDesc=function($el){
var $el=$el.closest('.mfn-desc-expandable');
var start=$el.css('max-height'),
height;
$el.css('max-height','unset');
height=$el.outerHeight();
$el.css('max-height',start);
$el.animate({
'maxHeight': height + 'px'
},500);
$el.find('.read-more').animate({
'opacity': 0
},500,function(){
$(this).hide();
});
};
$(document).on('click', '.mfn-desc-expandable .read-more .read-more-button', function(e){
e.preventDefault();
mfnReadMoreTermDesc($(this));
});
var mfnSideMenu={
id: '',
wrapper: false,
hash: false,
submenu: false,
backup: {},
init: function(){
if($('.mfn-menu-tabs-wrapper').length) mfnSideMenu.menutabs();
if($('.mfn-sidemenu-menu.mfn-menu-submenu-on.mfn-menu-submenu-toggled').length) mfnSideMenu.toggleSubmenu();
if($('.mfn-sidemenu-menu.mfn-menu-submenu-on.mfn-menu-submenu-replace').length) mfnSideMenu.replaceSubmenu();
if($('a.mfn-open-sidebar').length){
mfnSideMenu.click();
mfnSideMenu.closeClick();
}
$(document).on('click', '.mfn-sidemenu-menu li a', function(e){
var href=$(this).attr('href');
if(href=='#'&&$(this).siblings('.outer-menu-sub').length){
e.preventDefault();
$(this).siblings('.outer-menu-sub').trigger('click');
}else if(href.includes('#')){
var href_split=href.split('#');
if(!$('#'+href_split[1]).length) return;
e.preventDefault();
$(this).closest('li').addClass('current-menu-item').siblings('li').removeClass('current-menu-item');
var offset=$('#'+href_split[1]).offset().top;
offset=offset -(fixStickyHeaderH() + adminBarH());
$('body, html').animate({scrollTop: offset}, 500);
mfnSideMenu.id=$(this).closest('.mfn-sidemenu-tmpl').attr('data-id');
mfnSideMenu.hide();
}});
},
closeClick: function(){
$(document).on('click', '.mfn-sidemenu-closebutton', function(e){
e.preventDefault();
mfnSideMenu.id=$(this).closest('.mfn-sidemenu-tmpl').attr('data-id');
mfnSideMenu.hide();
});
},
hide: function(){
$('#mfn-sidemenu-tmpl-'+mfnSideMenu.id).removeClass('mfn-sidemenu-active');
$('html').addClass('mfn-closing-sidemenu-'+mfnSideMenu.id);
$('html').removeClass('mfn-sidemenu-'+mfnSideMenu.id+'-active');
$('html').removeClass('mfn-sidemenu-move-content-'+$('#mfn-sidemenu-tmpl-'+mfnSideMenu.id).attr('data-align'));
$('html').removeClass('mfn-sidemenu-bodyscroll-'+$('#mfn-sidemenu-tmpl-'+mfnSideMenu.id).attr('data-bodyscroll'));
$('html').removeClass('mfn-sidemenu-entrance-'+$('#mfn-sidemenu-tmpl-'+mfnSideMenu.id).attr('data-entrance'));
setTimeout(function(){
$('html').removeClass('mfn-closing-sidemenu-'+mfnSideMenu.id);
redrawAllRevolutionSliders();
}, 310);
if(!$('body').hasClass('mfn-ui')&&$('#mfn-sidemenu-tmpl-'+mfnSideMenu.id).hasClass('mfn-sidemenu-close-on-overlay-click')){
$(document).unbind('click', mfnSideMenu.closeOverlayClick);
}},
click: function(){
$(document).on('click', 'a.mfn-open-sidebar', function(e){
e.preventDefault();
mfnSideMenu.id=String($(this).attr('data-sidemenu'));
if(!$('#mfn-sidemenu-tmpl-'+mfnSideMenu.id).length) return;
$('#mfn-sidemenu-tmpl-'+mfnSideMenu.id).addClass('mfn-sidemenu-active');
$('html').addClass('mfn-sidemenu-entrance-'+$('#mfn-sidemenu-tmpl-'+mfnSideMenu.id).attr('data-entrance'));
$('html').addClass('mfn-sidemenu-'+mfnSideMenu.id+'-active');
if($('#mfn-sidemenu-tmpl-'+mfnSideMenu.id).attr('data-entrance')=='move-content'){
$('html').addClass('mfn-sidemenu-move-content-'+$('#mfn-sidemenu-tmpl-'+mfnSideMenu.id).attr('data-align'));
}
if(!$('body').hasClass('mfn-ui')&&$('#mfn-sidemenu-tmpl-'+mfnSideMenu.id).hasClass('mfn-sidemenu-close-on-overlay-click')){
$(document).bind('click',  mfnSideMenu.closeOverlayClick);
}
setTimeout(function(){
$('html').addClass('mfn-sidemenu-bodyscroll-'+$('#mfn-sidemenu-tmpl-'+mfnSideMenu.id).attr('data-bodyscroll'));
},300);
});
},
closeOverlayClick: function(e){
var div=$('.mfn-sidemenu-tmpl');
if(!div.is(e.target)&&div.has(e.target).length===0&&!$(e.target).closest('.mfn-menu-wrapper').length){
mfnSideMenu.hide();
}},
menutabs: function(){
$(document).on('click', '.mfn-menu-tabs-wrapper ul.mfn-menu-tabs-nav li a', function(e){
e.preventDefault();
if($(this).parent('li').hasClass('active')){
return;
}else{
$(this).closest('.mfn-menu-tabs-wrapper').find('.active').removeClass('active');
}
let id=$(this).attr('href');
$(this).parent('li').addClass('active');
$(this).closest('.mfn-menu-tabs-wrapper').find(id).addClass('active');
});
},
toggleSubmenu: function(){
$(document).on('click', '.mfn-sidemenu-menu.mfn-menu-submenu-on.mfn-menu-submenu-toggled li.menu-item-has-children .outer-menu-sub', function(e){
e.preventDefault();
if(!$(this).closest('li').hasClass('current-menu-item')&&!$(this).closest('li').hasClass('current-menu-ancestor')){
$(this).closest('li').addClass('current-menu-ancestor');
}else if($(this).closest('li').hasClass('current-menu-ancestor')){
$(this).closest('li').removeClass('current-menu-ancestor');
}else{
$(this).closest('li').toggleClass('current-menu-item');
}});
},
replaceSubmenu: function(){
$(document).on('click', '.mfn-sidemenu-menu.mfn-menu-submenu-on.mfn-menu-submenu-replace li.menu-item-has-children .outer-menu-sub', function(e){
e.preventDefault();
mfnSideMenu.wrapper=$(this).closest('.mfn-menu-wrapper');
mfnSideMenu.hash=mfnSideMenu.wrapper.attr('data-hash');
mfnSideMenu.submenu=$(this).closest('li').find('ul.sub-menu').first().html();
if(typeof mfnSideMenu.backup[mfnSideMenu.hash]==='undefined'){
mfnSideMenu.backup[mfnSideMenu.hash]=[];
}
let newest={};
newest.label=$(this).closest('li').find('a.mfn-menu-link .menu-label').html();
newest.ul=mfnSideMenu.wrapper.children('ul').html();
mfnSideMenu.backup[mfnSideMenu.hash].push(newest);
if(!mfnSideMenu.wrapper.hasClass('mfn-sidemenu-replaced')) mfnSideMenu.wrapper.addClass('mfn-sidemenu-replaced');
setTimeout(mfnSideMenu.updateMenu, 10);
});
mfnSideMenu.breadcrumbsClick();
},
updateMenu: function(){
if(mfnSideMenu.wrapper.find('.mfn-sidemenu-back').length) mfnSideMenu.wrapper.find('.mfn-sidemenu-breadcrumbs').remove();
mfnSideMenu.wrapper
.find('.mfn-sidemenu-menu').html(mfnSideMenu.submenu);
if(mfnSideMenu.backup[mfnSideMenu.hash].length > 0){
mfnSideMenu.wrapper.prepend('<div class="mfn-sidemenu-breadcrumbs"></div>');
mfnSideMenu.backup[mfnSideMenu.hash].map(function(el, i){
mfnSideMenu.wrapper.find('.mfn-sidemenu-breadcrumbs').append('<span class="mfn-sidemenu-breadcrumbs-separator"><i class="icon-left-open"></i></span><a data-index="'+i+'" class="mfn-sidemenu-back" href="#">'+el.label+'</a>');
});
}},
breadcrumbsClick: function(){
$(document).on('click', '.mfn-sidemenu-back', function(e){
e.preventDefault();
mfnSideMenu.wrapper=$(this).closest('.mfn-menu-wrapper');
mfnSideMenu.hash=mfnSideMenu.wrapper.attr('data-hash');
let index=$(this).attr('data-index');
let choosed=mfnSideMenu.backup[mfnSideMenu.hash][index];
mfnSideMenu.submenu=choosed.ul;
mfnSideMenu.backup[mfnSideMenu.hash]=mfnSideMenu.backup[mfnSideMenu.hash].filter((item,i)=> { return i < index });
setTimeout(mfnSideMenu.updateMenu, 10);
});
}}
document.addEventListener('DOMContentLoaded', ()=> {
const images=Array.from(document.querySelectorAll('img.mfn-lazy'));
if('IntersectionObserver' in window){
const imageObserver=new IntersectionObserver((entries, observer)=> {
entries.forEach(entry=> {
if(entry.isIntersecting){
const image=entry.target;
image.src=image.dataset.src;
imageObserver.unobserve(image);
window.dispatchEvent(new Event('resize'));
}});
});
images.forEach(img=> imageObserver.observe(img));
}});
})(jQuery);
(function(){
let lastZoom=1;
function getZoom(){
return window.outerWidth / window.innerWidth;
}
function checkZoomReset(){
const currentZoom=getZoom();
if(Math.abs(currentZoom - 1) < 0.02&&lastZoom!==1){
window.scrollTo({ left: 0, top: window.scrollY, behavior: 'instant' });
}
lastZoom=currentZoom;
}
window.addEventListener('resize', checkZoomReset);
})();
document.addEventListener("touchstart", function(){}, true);
document.documentElement.className+=" js_active ",document.documentElement.className+="ontouchstart"in document.documentElement?" vc_mobile ":" vc_desktop ",(()=>{for(var e=["-webkit-","-moz-","-ms-","-o-",""],t=0;t<e.length;t++)e[t]+"transform"in document.documentElement.style&&(document.documentElement.className+=" vc_transform ")})(),(c=>{"function"!=typeof window.vc_js&&(window.vc_js=function(){vc_toggleBehaviour(),vc_tabsBehaviour(),vc_accordionBehaviour(),vc_teaserGrid(),vc_carouselBehaviour(),vc_slidersBehaviour(),vc_prettyPhoto(),vc_pinterest(),vc_progress_bar(),vc_plugin_flexslider(),vc_gridBehaviour(),vc_rowBehaviour(),vc_prepareHoverBox(),vc_googleMapsPointer(),vc_ttaActivation(),vc_ttaToggleBehaviour(),jQuery(document).trigger("vc_js"),window.setTimeout(vc_waypoints,500)}),"function"!=typeof window.vc_plugin_flexslider&&(window.vc_plugin_flexslider=function(e){(e?e.find(".wpb_flexslider"):jQuery(".wpb_flexslider")).each(function(){var e=jQuery(this),t=1e3*parseInt(e.attr("data-interval"),10),o=e.attr("data-flex_fx"),i=0==t?!1:!0;e.is(":visible")&&setTimeout(function(){e.flexslider({animation:o,slideshow:i,slideshowSpeed:t,sliderSpeed:800,smoothHeight:!0})},1)})}),"function"!=typeof window.vc_googleplus&&(window.vc_googleplus=function(){var e,t;0<jQuery(".wpb_googleplus").length&&((e=document.createElement("script")).type="text/javascript",e.async=!0,e.src="https://apis.google.com/js/plusone.js",(t=document.getElementsByTagName("script")[0]).parentNode.insertBefore(e,t))}),"function"!=typeof window.vc_pinterest&&(window.vc_pinterest=function(){var e,t;0<jQuery(".wpb_pinterest").length&&((e=document.createElement("script")).type="text/javascript",e.async=!0,e.src="https://assets.pinterest.com/js/pinit.js",(t=document.getElementsByTagName("script")[0]).parentNode.insertBefore(e,t))}),"function"!=typeof window.vc_progress_bar&&(window.vc_progress_bar=function(){void 0!==jQuery.fn.vcwaypoint&&jQuery(".vc_progress_bar").each(function(){var e=jQuery(this);e.vcwaypoint(function(){e.find(".vc_single_bar").each(function(e){var t=jQuery(this).find(".vc_bar"),o=t.data("percentage-value");setTimeout(function(){t.css({width:o+"%"})},200*e)})},{offset:"85%"})})}),"function"!=typeof window.vc_waypoints&&(window.vc_waypoints=function(){void 0!==jQuery.fn.vcwaypoint&&jQuery(".wpb_animate_when_almost_visible:not(.wpb_start_animation)").each(function(){var e=jQuery(this);e.vcwaypoint(function(){e.addClass("wpb_start_animation animated")},{offset:"85%"})})}),"function"!=typeof window.vc_toggleBehaviour&&(window.vc_toggleBehaviour=function(e){function t(e){e&&e.preventDefault&&e.preventDefault();var t=jQuery(this).closest(".vc_toggle"),e=t.find(".vc_toggle_content");t.hasClass("vc_toggle_active")?e.slideUp({duration:300,complete:function(){t.removeClass("vc_toggle_active")}}):e.slideDown({duration:300,complete:function(){t.addClass("vc_toggle_active")}})}(e?e.hasClass("vc_toggle_title")?e.unbind("click"):e.find(".vc_toggle_title").off("click"):jQuery(".vc_toggle_title").off("click")).on("click",t)}),"function"!=typeof window.vc_ttaToggleBehaviour&&(window.vc_ttaToggleBehaviour=function(e){function t(){var e=jQuery(this);e.toggleClass("wpb-tta-toggle-active"),e.parent().parent().parent().find(".vc_pagination-item").each(function(){if(!c(this).hasClass("vc_active"))return c(this).find("a").click(),!1})}(e?e.find(".wpb-tta-toggle"):jQuery(".wpb-tta-toggle")).off("click").on("click",t),setTimeout(function(){jQuery(".wpb-tta-toggle").each(function(){var e=jQuery(this);e.parent().parent().parent().find(".vc_tta-panels-container .vc_pagination li:first").hasClass("vc_active")||e.addClass("wpb-tta-toggle-active")})},1e3)}),"function"!=typeof window.vc_tabsBehaviour&&(window.vc_tabsBehaviour=function(e){var t,i;jQuery.ui&&(e=e||jQuery(".wpb_tabs, .wpb_tour"),t=jQuery.ui&&jQuery.ui.version?jQuery.ui.version.split("."):"1.10",i=1===parseInt(t[0],10)&&parseInt(t[1],10)<9,e.each(function(){var e=jQuery(this).attr("data-interval"),t=[],o=jQuery(this).find(".wpb_tour_tabs_wrapper").tabs({show:function(e,t){wpb_prepare_tab_content(e,t)},activate:function(e,t){wpb_prepare_tab_content(e,t)}});if(e&&0<e)try{o.tabs("rotate",1e3*e)}catch(e){window.console&&window.console.warn&&console.warn("tabs behaviours error",e)}jQuery(this).find(".wpb_tab").each(function(){t.push(this.id)}),jQuery(this).find(".wpb_tabs_nav li").on("click",function(e){return e&&e.preventDefault&&e.preventDefault(),i?o.tabs("select",jQuery("a",this).attr("href")):o.tabs("option","active",jQuery(this).index()),!1}),jQuery(this).find(".wpb_prev_slide a, .wpb_next_slide a").on("click",function(e){var t;e&&e.preventDefault&&e.preventDefault(),i?(t=o.tabs("option","selected"),jQuery(this).parent().hasClass("wpb_next_slide")?t++:t--,t<0?t=o.tabs("length")-1:t>=o.tabs("length")&&(t=0),o.tabs("select",t)):(t=o.tabs("option","active"),e=o.find(".wpb_tab").length,t=jQuery(this).parent().hasClass("wpb_next_slide")?e<=t+1?0:t+1:t-1<0?e-1:t-1,o.tabs("option","active",t))})}))}),"function"!=typeof window.vc_accordionBehaviour&&(window.vc_accordionBehaviour=function(){jQuery(".wpb_accordion").each(function(){var e=jQuery(this),t=(e.attr("data-interval"),!isNaN(jQuery(this).data("active-tab"))&&0<parseInt(e.data("active-tab"),10)&&parseInt(e.data("active-tab"),10)-1),o=!1===t||"yes"===e.data("collapsible"),t=e.find(".wpb_accordion_wrapper").accordion({header:"> div > h3",autoHeight:!1,heightStyle:"content",active:t,collapsible:o,navigation:!0,activate:vc_accordionActivate,change:function(e,t){void 0!==jQuery.fn.isotope&&t.newContent.find(".isotope").isotope("layout"),vc_carouselBehaviour(t.newPanel)}});!0===e.data("vcDisableKeydown")&&(t.data("uiAccordion")._keydown=function(){})})}),"function"!=typeof window.vc_teaserGrid&&(window.vc_teaserGrid=function(){var i={fitrows:"fitRows",masonry:"masonry"};jQuery(".wpb_grid .teaser_grid_container:not(.wpb_carousel), .wpb_filtered_grid .teaser_grid_container:not(.wpb_carousel)").each(function(){var e=jQuery(this),t=e.find(".wpb_thumbnails"),o=t.attr("data-layout-mode");t.isotope({itemSelector:".isotope-item",layoutMode:void 0===i[o]?"fitRows":i[o]}),e.find(".categories_filter a").data("isotope",t).on("click",function(e){e&&e.preventDefault&&e.preventDefault();e=jQuery(this).data("isotope");jQuery(this).parent().parent().find(".active").removeClass("active"),jQuery(this).parent().addClass("active"),e.isotope({filter:jQuery(this).attr("data-filter")})}),jQuery(window).on("load resize",function(){t.isotope("layout")})})}),"function"!=typeof window.vc_carouselBehaviour&&(window.vc_carouselBehaviour=function(e){(e?e.find(".wpb_carousel"):jQuery(".wpb_carousel")).each(function(){var e=jQuery(this);!0!==e.data("carousel_enabled")&&e.is(":visible")&&(e.data("carousel_enabled",!0),getColumnsCount(jQuery(this)),jQuery(this).hasClass("columns_count_1"),(e=jQuery(this).find(".wpb_thumbnails-fluid li")).css({"margin-right":e.css("margin-left"),"margin-left":0}),(e=jQuery(this).find("ul.wpb_thumbnails-fluid")).width(e.width()+300))})}),"function"!=typeof window.vc_slidersBehaviour&&(window.vc_slidersBehaviour=function(){jQuery(".wpb_gallery_slides").each(function(){var e,t,o=jQuery(this);o.hasClass("wpb_slider_nivo")?(0===(t=1e3*o.attr("data-interval"))&&(t=9999999999),o.find(".nivoSlider").nivoSlider({effect:"boxRainGrow,boxRain,boxRainReverse,boxRainGrowReverse",slices:15,boxCols:8,boxRows:4,animSpeed:800,pauseTime:t,startSlide:0,directionNav:!0,directionNavHide:!0,controlNav:!0,keyboardNav:!1,pauseOnHover:!0,manualAdvance:!1,prevText:"Prev",nextText:"Next"})):o.hasClass("wpb_image_grid")&&o.find(".wpb_image_grid_ul")&&o.find(".wpb_image_grid_ul").isotope&&(jQuery.fn.imagesLoaded?e=o.find(".wpb_image_grid_ul").imagesLoaded(function(){e.isotope({itemSelector:".isotope-item",layoutMode:"fitRows"})}):o.find(".wpb_image_grid_ul").isotope({itemSelector:".isotope-item",layoutMode:"fitRows"}))})}),"function"!=typeof window.vc_prettyPhoto&&(window.vc_prettyPhoto=function(){try{jQuery&&jQuery.fn&&jQuery.fn.prettyPhoto&&jQuery('a.prettyphoto, .gallery-icon a[href*=".jpg"]').prettyPhoto({animationSpeed:"normal",hook:"data-rel",padding:15,opacity:.7,showTitle:!0,allowresize:!0,counter_separator_label:"/",hideflash:!1,deeplinking:!1,modal:!1,callback:function(){-1<location.href.indexOf("#!prettyPhoto")&&(location.hash="")},social_tools:""})}catch(e){window.console&&window.console.warn&&window.console.warn("vc_prettyPhoto initialize error",e)}}),"function"!=typeof window.vc_google_fonts&&(window.vc_google_fonts=function(){return window.console&&window.console.warn&&window.console.warn("function vc_google_fonts is deprecated, no need to use it"),!1}),window.vcParallaxSkroll=!1,"function"!=typeof window.vc_rowBehaviour&&(window.vc_rowBehaviour=function(){var s=window.jQuery;function e(){var e;void 0!==window.wpb_disable_full_width_row_js&&window.wpb_disable_full_width_row_js||(e=s('[data-vc-full-width="true"]'),s.each(e,function(){var e,t,o,i,n,a,r,c=s(this),d=(c.addClass("vc_hidden"),c.next(".vc_row-full-width"));(d=d.length?d:c.parent().next(".vc_row-full-width")).length&&(e=parseInt(c.css("margin-left"),10),t=parseInt(c.css("margin-right"),10),o=0-d.offset().left-e,i=s(window).width(),n={position:"relative",left:o="rtl"===c.css("direction")?(o=o-d.width()+i)+e+t:o,"box-sizing":"border-box",width:i,"max-width":i},c.css(n),c.data("vcStretchContent")||("rtl"===c.css("direction")?((a=o)<0&&(a=0),(r=o)<0&&(r=0)):(r=i-(a=(a=-1*o)<0?0:a)-d.width()+e+t)<0&&(r=0),c.css({"padding-left":a+"px","padding-right":r+"px"})),c.attr("data-vc-full-width-init","true"),c.removeClass("vc_hidden"),s(document).trigger("vc-full-width-row-single",{el:c,offset:o,marginLeft:e,marginRight:t,elFull:d,width:i,maxWidth:i}))}),s(document).trigger("vc-full-width-row",e))}function t(){var e,t,o=s(".vc_row-o-full-height:first");o.length&&(e=s(window).height(),(t=o.offset().top)<e)&&o.css("min-height",100-t/(e/100)+"vh"),s(document).trigger("vc-full-height-row",o)}s(window).off("resize.vcRowBehaviour").on("resize.vcRowBehaviour",e).on("resize.vcRowBehaviour",t),e(),t(),(0<window.navigator.userAgent.indexOf("MSIE ")||navigator.userAgent.match(/Trident.*rv\:11\./))&&s(".vc_row-o-full-height").each(function(){"flex"===s(this).css("display")&&s(this).wrap('<div class="vc_ie-flexbox-fixer"></div>')}),vc_initVideoBackgrounds();var n=!1;if(window.vcParallaxSkroll&&window.vcParallaxSkroll.destroy(),s(".vc_parallax-inner").remove(),s("[data-5p-top-bottom]").removeAttr("data-5p-top-bottom data-30p-top-bottom"),s("[data-vc-parallax]").each(function(){var e,t,o,i;n=!0,"on"===s(this).data("vcParallaxOFade")&&s(this).children().attr("data-5p-top-bottom","opacity:0;").attr("data-30p-top-bottom","opacity:1;"),e=100*s(this).data("vcParallax"),(t=s("<div />").addClass("vc_parallax-inner").appendTo(s(this))).height(e+"%"),o=s(this).data("vcParallaxImage"),(i=vcExtractYoutubeId(o))?insertYoutubeVideoAsBackground(t,i):void 0!==o&&t.css("background-image","url("+o+")"),t.attr("data-bottom-top","top: "+-(e-100)+"%;").attr("data-top-bottom","top: 0%;")}),n&&window.skrollr)window.vcParallaxSkroll=skrollr.init({forceHeight:!1,smoothScrolling:!1,mobileCheck:function(){return!1}}),window.vcParallaxSkroll}),"function"!=typeof window.vc_gridBehaviour&&(window.vc_gridBehaviour=function(){jQuery.fn.vcGrid&&jQuery("[data-vc-grid]").vcGrid()}),"function"!=typeof window.getColumnsCount&&(window.getColumnsCount=function(e){for(var t=!1,o=1;!1===t;){if(e.hasClass("columns_count_"+o))return t=!0,o;o++}}),"function"!=typeof window.wpb_prepare_tab_content&&(window.wpb_prepare_tab_content=function(e,t){var o=t.panel||t.newPanel,i=o.find(".vc_pie_chart:not(.vc_ready)"),n=o.find(".vc_round-chart"),a=o.find(".vc_line-chart"),r=o.find('[data-ride="vc_carousel"]');vc_carouselBehaviour(),vc_plugin_flexslider(o),t.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").length&&t.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").each(function(){var e=jQuery(this).data("vcGrid");e&&e.gridBuilder&&e.gridBuilder.setMasonry&&e.gridBuilder.setMasonry()}),o.find(".vc_masonry_media_grid, .vc_masonry_grid").length&&o.find(".vc_masonry_media_grid, .vc_masonry_grid").each(function(){var e=jQuery(this).data("vcGrid");e&&e.gridBuilder&&e.gridBuilder.setMasonry&&e.gridBuilder.setMasonry()}),i.length&&jQuery.fn.vcChat&&i.vcChat(),n.length&&jQuery.fn.vcRoundChart&&n.vcRoundChart({reload:!1}),a.length&&jQuery.fn.vcLineChart&&a.vcLineChart({reload:!1}),r.length&&jQuery.fn.carousel&&r.carousel("resizeAction"),t=o.find(".isotope, .wpb_image_grid_ul"),i=o.find(".wpb_gmaps_widget"),0<t.length&&t.isotope("layout"),i.length&&!i.is(".map_ready")&&((n=i.find("iframe")).attr("src",n.attr("src")),i.addClass("map_ready")),o.parents(".isotope").length&&o.parents(".isotope").each(function(){jQuery(this).isotope("layout")}),c(document).trigger("wpb_prepare_tab_content",o)}),"function"!=typeof window.vc_ttaActivation&&(window.vc_ttaActivation=function(){jQuery("[data-vc-accordion]").on("show.vc.accordion",function(e){var t=window.jQuery,o={};o.newPanel=t(this).data("vc.accordion").getTarget(),window.wpb_prepare_tab_content(e,o)})}),"function"!=typeof window.vc_accordionActivate&&(window.vc_accordionActivate=function(e,t){var o,i,n,a;t.newPanel.length&&t.newHeader.length&&(o=t.newPanel.find(".vc_pie_chart:not(.vc_ready)"),i=t.newPanel.find(".vc_round-chart"),n=t.newPanel.find(".vc_line-chart"),a=t.newPanel.find('[data-ride="vc_carousel"]'),void 0!==jQuery.fn.isotope&&t.newPanel.find(".isotope, .wpb_image_grid_ul").isotope("layout"),t.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").length&&t.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").each(function(){var e=jQuery(this).data("vcGrid");e&&e.gridBuilder&&e.gridBuilder.setMasonry&&e.gridBuilder.setMasonry()}),vc_carouselBehaviour(t.newPanel),vc_plugin_flexslider(t.newPanel),o.length&&jQuery.fn.vcChat&&o.vcChat(),i.length&&jQuery.fn.vcRoundChart&&i.vcRoundChart({reload:!1}),n.length&&jQuery.fn.vcLineChart&&n.vcLineChart({reload:!1}),a.length&&jQuery.fn.carousel&&a.carousel("resizeAction"),t.newPanel.parents(".isotope").length)&&t.newPanel.parents(".isotope").each(function(){jQuery(this).isotope("layout")})}),"function"!=typeof window.initVideoBackgrounds&&(window.initVideoBackgrounds=function(){return window.console&&window.console.warn&&window.console.warn("this function is deprecated use vc_initVideoBackgrounds"),vc_initVideoBackgrounds()}),"function"!=typeof window.vc_initVideoBackgrounds&&(window.vc_initVideoBackgrounds=function(){c(".vc_video-bg").remove(),c("[data-vc-video-bg]").each(function(){var e,o=jQuery(this);o.data("vcVideoBg")?(e=o.data("vcVideoBg"),(e=vcExtractYoutubeId(e))&&(o.find(".vc_video-bg").remove(),insertYoutubeVideoAsBackground(o,e)),jQuery(window).on("grid:items:added",function(e,t){o.has(t).length&&vcResizeVideoBackground(o)})):o.find(".vc_video-bg").remove()})}),"function"!=typeof window.insertYoutubeVideoAsBackground&&(window.insertYoutubeVideoAsBackground=function(e,t,o){if("undefined"==typeof YT||void 0===YT.Player)return 100<(o=void 0===o?0:o)?void console.warn("Too many attempts to load YouTube api"):void setTimeout(function(){insertYoutubeVideoAsBackground(e,t,o++)},100);var i=e.prepend('<div class="vc_video-bg"><div class="inner"></div></div>').find(".inner");new YT.Player(i[0],{width:"100%",height:"100%",videoId:t,playerVars:{playlist:t,iv_load_policy:3,enablejsapi:1,disablekb:1,autoplay:1,controls:0,showinfo:0,rel:0,loop:1,mute:1,wmode:"transparent"},events:{onReady:function(e){e.target.mute().setLoop(!0)}}}),vcResizeVideoBackground(e),jQuery(window).on("resize",function(){vcResizeVideoBackground(e)})}),"function"!=typeof window.vcResizeVideoBackground&&(window.vcResizeVideoBackground=function(e){var t,o,i,n,a=e.innerWidth(),r=e.innerHeight();a/r<16/9?(t=r*(16/9),o=r,i=-Math.round((t-a)/2)+"px",n=-Math.round((o-r)/2)+"px"):(o=(t=a)*(9/16),n=-Math.round((o-r)/2)+"px",i=-Math.round((t-a)/2)+"px"),t+="px",o+="px",e.find(".vc_video-bg iframe").css({maxWidth:"1000%",marginLeft:i,marginTop:n,width:t,height:o})}),"function"!=typeof window.vcExtractYoutubeId&&(window.vcExtractYoutubeId=function(e){return void 0!==e&&null!==(e=e.match(/(?:https?:\/{2})?(?:w{3}\.)?youtu(?:be)?\.(?:com|be)(?:\/watch\?v=|\/)([^\s&]+)/))&&e[1]}),"function"!=typeof window.vc_googleMapsPointer&&(window.vc_googleMapsPointer=function(){var e=window.jQuery,t=e(".wpb_gmaps_widget");t.on("click",function(){e("iframe",this).css("pointer-events","auto")}),t.on("mouseleave",function(){e("iframe",this).css("pointer-events","none")}),e(".wpb_gmaps_widget iframe").css("pointer-events","none")}),"function"!=typeof window.vc_setHoverBoxPerspective&&(window.vc_setHoverBoxPerspective=function(e){e.each(function(){var e=jQuery(this),t=e.width();e.css("perspective",4*t+"px")})}),"function"!=typeof window.vc_setHoverBoxHeight&&(window.vc_setHoverBoxHeight=function(e){e.each(function(){var e=jQuery(this),t=e.find(".vc-hoverbox-inner"),o=(t.css("min-height",0),e.find(".vc-hoverbox-front-inner").outerHeight()),e=e.find(".vc-hoverbox-back-inner").outerHeight(),o=e<o?o:e;t.css("min-height",(o=o<250?250:o)+"px")})}),"function"!=typeof window.vc_prepareHoverBox&&(window.vc_prepareHoverBox=function(){var e=jQuery(".vc-hoverbox");vc_setHoverBoxHeight(e),vc_setHoverBoxPerspective(e)}),jQuery(document).ready(window.vc_prepareHoverBox),jQuery(window).on("resize",window.vc_prepareHoverBox),jQuery(document).ready(function(){window.vc_js()})})(window.jQuery);
(t=>{t.fn.bsf_appear=function(p,e){let h=t.extend({data:void 0,one:!0,accX:0,accY:0},e);return this.each(function(){let l=t(this);if(l.bsf_appeared=!1,p){let i=t(window),a=function(){var e,a,p,t,f,r,s,n,c,o;l.is(":visible")&&(e=i.scrollLeft(),a=i.scrollTop(),p=(t=l.offset()).left,t=t.top,f=h.accX,r=h.accY,s=l.height(),n=i.height(),c=l.width(),o=i.width(),a<=t+s+r)&&t<=a+n+r&&e<=p+c+f&&p<=e+o+f?l.bsf_appeared||l.trigger("bsf_appear",h.data):l.bsf_appeared=!1};var e=function(){var e;l.bsf_appeared=!0,h.one&&(i.off("scroll",a),0<=(e=t.inArray(a,t.fn.bsf_appear.checks)))&&t.fn.bsf_appear.checks.splice(e,1),p.apply(this,arguments)};h.one?l.one("bsf_appear",h.data,e):l.bind("bsf_appear",h.data,e),i.on("scroll",a),t.fn.bsf_appear.checks.push(a),a()}else l.trigger("bsf_appear",h.data)})},t.extend(t.fn.bsf_appear,{checks:[],timeout:null,checkAll(){let e=t.fn.bsf_appear.checks.length;if(0<e)for(;e--;)t.fn.bsf_appear.checks[e]()},run(){t.fn.bsf_appear.timeout&&clearTimeout(t.fn.bsf_appear.timeout),t.fn.bsf_appear.timeout=setTimeout(t.fn.bsf_appear.checkAll,20)}}),t.each(["append","prepend","after","before","attr","removeAttr","addClass","removeClass","toggleClass","remove","css","show","hide"],function(e,a){let p=t.fn[a];p&&(t.fn[a]=function(){var e=p.apply(this,arguments);return t.fn.bsf_appear.run(),e})})})(jQuery);
(B=>{function N(){return!!jQuery("body").hasClass("rtl")}jQuery(document).ready(function(){function E(){/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)||jQuery(".enable-on-viewport").each(function(t,e){var a=jQuery(this).isVdoOnScreen();jQuery(this).hasClass("hosted-video")&&!jQuery(this).hasClass("override-controls")&&(a?(jQuery(this)[0].play(),jQuery(this).parent().parent().parent().find(".video-controls").attr("data-action","play"),jQuery(this).parent().parent().parent().find(".video-controls").html('<i class="ult-vid-cntrlpause"></i>')):(jQuery(this)[0].pause(),jQuery(this).parent().parent().parent().find(".video-controls").attr("data-action","pause"),jQuery(this).parent().parent().parent().find(".video-controls").html('<i class="ult-vid-cntrlplay"></i>')))})}function W(a,r){var o=a.data("seperator");let s=a.data("seperator-type"),i=a.data("seperator-shape-size");var l=a.data("seperator-background-color"),d=a.data("seperator-border"),p=a.data("seperator-border-color"),n=a.data("seperator-border-width"),c=a.data("seperator-svg-height"),u=a.data("seperator-full-width");let v=a.data("seperator-position"),h=(void 0!==v&&""!=v||(v="top_seperator"),a.data("icon")),_=(h=void 0===h?"":'<div class="separator-icon">'+h+"</div>",seperator_class=seperator_border_css=seperator_border_line_css=seperator_css="");if(void 0!==o&&"true"==o.toString()){o=shape_css=svg=inner_html=seperator_css=shape_css="";let t=!1;var b,g="uvc-seperator-"+Math.floor(9999999999999*Math.random()),m=(void 0!==i&&""!=i&&"undefined"!=i||(i=0),(i=parseInt(i))/2);let e=0;if("triangle_seperator"==s)seperator_class="ult-trinalge-seperator";else if("circle_seperator"==s)seperator_class="ult-circle-seperator";else if("diagonal_seperator"==s)seperator_class="ult-double-diagonal";else if("triangle_svg_seperator"==s)seperator_class="ult-svg-triangle",svg='<svg class="uvc-svg-triangle" xmlns="http://www.w3.org/2000/svg" version="1.1" fill="'+l+'" width="100%" height="'+c+'" viewBox="0 0 0.156661 0.1"><polygon points="0.156661,3.93701e-006 0.156661,0.000429134 0.117665,0.05 0.0783307,0.0999961 0.0389961,0.05 -0,0.000429134 -0,3.93701e-006 0.0783307,3.93701e-006 "/></svg>',t=!0;else if("circle_svg_seperator"==s)seperator_class="ult-svg-circle",svg='<svg class="uvc-svg-circle" xmlns="http://www.w3.org/2000/svg" version="1.1" fill="'+l+'" width="100%" height="'+c+'" viewBox="0 0 0.2 0.1"><path d="M0.200004 0c-3.93701e-006,0.0552205 -0.0447795,0.1 -0.100004,0.1 -0.0552126,0 -0.0999921,-0.0447795 -0.1,-0.1l0.200004 0z"/></svg>',t=!0;else if("xlarge_triangle_seperator"==s)seperator_class="ult-xlarge-triangle",svg='<svg class="uvc-x-large-triangle" xmlns="http://www.w3.org/2000/svg" version="1.1" fill="'+l+'" width="100%" height="'+c+'" viewBox="0 0 4.66666 0.333331" preserveAspectRatio="none"><path class="fil0" d="M-0 0.333331l4.66666 0 0 -3.93701e-006 -2.33333 0 -2.33333 0 0 3.93701e-006zm0 -0.333331l4.66666 0 0 0.166661 -4.66666 0 0 -0.166661zm4.66666 0.332618l0 -0.165953 -4.66666 0 0 0.165953 1.16162 -0.0826181 1.17171 -0.0833228 1.17171 0.0833228 1.16162 0.0826181z"/></svg>',t=!0;else if("xlarge_triangle_left_seperator"==s)seperator_class="ult-xlarge-triangle-left",svg='<svg class="uvc-x-large-triangle-left" xmlns="http://www.w3.org/2000/svg" version="1.1" fill="'+l+'" width="100%" height="'+c+'" viewBox="0 0 2000 90" preserveAspectRatio="none"><polygon xmlns="http://www.w3.org/2000/svg" points="535.084,64.886 0,0 0,90 2000,90 2000,0 "></polygon></svg>',t=!0;else if("xlarge_triangle_right_seperator"==s)seperator_class="ult-xlarge-triangle-right",svg='<svg class="uvc-x-large-triangle-right" xmlns="http://www.w3.org/2000/svg" version="1.1" fill="'+l+'" width="100%" height="'+c+'" viewBox="0 0 2000 90" preserveAspectRatio="none"><polygon xmlns="http://www.w3.org/2000/svg" points="535.084,64.886 0,0 0,90 2000,90 2000,0 "></polygon></svg>',t=!0;else if("xlarge_circle_seperator"==s)seperator_class="ult-xlarge-circle",svg='<svg class="uvc-x-large-circle" xmlns="http://www.w3.org/2000/svg" version="1.1" fill="'+l+'" width="100%" height="'+c+'" viewBox="0 0 4.66666 0.333331" preserveAspectRatio="none"><path class="fil1" d="M4.66666 0l0 7.87402e-006 -3.93701e-006 0c0,0.0920315 -1.04489,0.166665 -2.33333,0.166665 -1.28844,0 -2.33333,-0.0746339 -2.33333,-0.166665l-3.93701e-006 0 0 -7.87402e-006 4.66666 0z"/></svg>',t=!0;else if("curve_up_seperator"==s)seperator_class="ult-curve-up-seperator",svg='<svg class="curve-up-inner-seperator uvc-curve-up-seperator" xmlns="http://www.w3.org/2000/svg" version="1.1" fill="'+l+'" width="100%" height="'+c+'" viewBox="0 0 4.66666 0.333331" preserveAspectRatio="none"><path class="fil0" d="M-7.87402e-006 0.0148858l0.00234646 0c0.052689,0.0154094 0.554437,0.154539 1.51807,0.166524l0.267925 0c0.0227165,-0.00026378 0.0456102,-0.000582677 0.0687992,-0.001 1.1559,-0.0208465 2.34191,-0.147224 2.79148,-0.165524l0.0180591 0 0 0.166661 -7.87402e-006 0 0 0.151783 -4.66666 0 0 -0.151783 -7.87402e-006 0 0 -0.166661z"/></svg>',t=!0;else if("curve_down_seperator"==s)seperator_class="ult-curve-down-seperator",svg='<svg class="curve-down-inner-seperator uvc-curve-down-seperator" xmlns="http://www.w3.org/2000/svg" version="1.1" fill="'+l+'" width="100%" height="'+c+'" viewBox="0 0 4.66666 0.333331" preserveAspectRatio="none"><path class="fil0" d="M-7.87402e-006 0.0148858l0.00234646 0c0.052689,0.0154094 0.554437,0.154539 1.51807,0.166524l0.267925 0c0.0227165,-0.00026378 0.0456102,-0.000582677 0.0687992,-0.001 1.1559,-0.0208465 2.34191,-0.147224 2.79148,-0.165524l0.0180591 0 0 0.166661 -7.87402e-006 0 0 0.151783 -4.66666 0 0 -0.151783 -7.87402e-006 0 0 -0.166661z"/></svg>',t=!0;else if("tilt_left_seperator"==s)seperator_class="ult-tilt-left-seperator",svg='<svg class="uvc-tilt-left-seperator" xmlns="http://www.w3.org/2000/svg" version="1.1" fill="'+l+'" width="100%" height="'+c+'" viewBox="0 0 4 0.266661" preserveAspectRatio="none"><polygon class="fil0" points="4,0 4,0.266661 -0,0.266661 "/></svg>',t=!0;else if("tilt_right_seperator"==s)seperator_class="ult-tilt-right-seperator",svg='<svg class="uvc-tilt-right-seperator" xmlns="http://www.w3.org/2000/svg" version="1.1" fill="'+l+'" width="100%" height="'+c+'" viewBox="0 0 4 0.266661" preserveAspectRatio="none"><polygon class="fil0" points="4,0 4,0.266661 -0,0.266661 "/></svg>',t=!0;else if("waves_seperator"==s)seperator_class="ult-wave-seperator",svg='<svg class="wave-inner-seperator uvc-wave-seperator" xmlns="http://www.w3.org/2000/svg" version="1.1" fill="'+l+'" width="100%" height="'+c+'" viewBox="0 0 6 0.1" preserveAspectRatio="none"><path d="M0.199945 0c3.93701e-006,0.0552205 0.0447795,0.1 0.100004,0.1l-0.200008 0c-0.0541102,0 -0.0981929,-0.0430079 -0.0999409,-0.0967008l0 0.0967008 0.0999409 0c0.0552244,0 0.1,-0.0447795 0.100004,-0.1zm0.200004 0c7.87402e-006,0.0552205 0.0447874,0.1 0.1,0.1l-0.2 0c0.0552126,0 0.0999921,-0.0447795 0.1,-0.1zm0.200004 0c3.93701e-006,0.0552205 0.0447795,0.1 0.100004,0.1l-0.200008 0c0.0552244,0 0.1,-0.0447795 0.100004,-0.1zm0.200004 0c7.87402e-006,0.0552205 0.0447874,0.1 0.1,0.1l-0.2 0c0.0552126,0 0.0999921,-0.0447795 0.1,-0.1zm0.200004 0c3.93701e-006,0.0552205 0.0447795,0.1 0.100004,0.1l-0.200008 0c0.0552244,0 0.1,-0.0447795 0.100004,-0.1zm0.200004 0c7.87402e-006,0.0552205 0.0447874,0.1 0.1,0.1l-0.2 0c0.0552126,0 0.0999921,-0.0447795 0.1,-0.1zm0.200004 0c3.93701e-006,0.0552205 0.0447795,0.1 0.100004,0.1l-0.200008 0c0.0552244,0 0.1,-0.0447795 0.100004,-0.1zm0.200004 0c7.87402e-006,0.0552205 0.0447874,0.1 0.1,0.1l-0.2 0c0.0552126,0 0.0999921,-0.0447795 0.1,-0.1zm0.200004 0c3.93701e-006,0.0552205 0.0447795,0.1 0.100004,0.1l-0.200008 0c0.0552244,0 0.1,-0.0447795 0.100004,-0.1zm0.200004 0c7.87402e-006,0.0552205 0.0447874,0.1 0.1,0.1l-0.2 0c0.0552126,0 0.0999921,-0.0447795 0.1,-0.1zm2.00004 0c7.87402e-006,0.0552205 0.0447874,0.1 0.1,0.1l-0.2 0c0.0552126,0 0.0999921,-0.0447795 0.1,-0.1zm-0.1 0.1l-0.200008 0c-0.0552126,0 -0.0999921,-0.0447795 -0.1,-0.1 -7.87402e-006,0.0552205 -0.0447874,0.1 -0.1,0.1l0.2 0c0.0552244,0 0.1,-0.0447795 0.100004,-0.1 3.93701e-006,0.0552205 0.0447795,0.1 0.100004,0.1zm-0.400008 0l-0.200008 0c-0.0552126,0 -0.0999921,-0.0447795 -0.1,-0.1 -7.87402e-006,0.0552205 -0.0447874,0.1 -0.1,0.1l0.2 0c0.0552244,0 0.1,-0.0447795 0.100004,-0.1 3.93701e-006,0.0552205 0.0447795,0.1 0.100004,0.1zm-0.400008 0l-0.200008 0c-0.0552126,0 -0.0999921,-0.0447795 -0.1,-0.1 -7.87402e-006,0.0552205 -0.0447874,0.1 -0.1,0.1l0.2 0c0.0552244,0 0.1,-0.0447795 0.100004,-0.1 3.93701e-006,0.0552205 0.0447795,0.1 0.100004,0.1zm-0.400008 0l-0.200008 0c-0.0552126,0 -0.0999921,-0.0447795 -0.1,-0.1 -7.87402e-006,0.0552205 -0.0447874,0.1 -0.1,0.1l0.2 0c0.0552244,0 0.1,-0.0447795 0.100004,-0.1 3.93701e-006,0.0552205 0.0447795,0.1 0.100004,0.1zm-0.400008 0l-0.200008 0c0.0552244,0 0.1,-0.0447795 0.100004,-0.1 3.93701e-006,0.0552205 0.0447795,0.1 0.100004,0.1zm1.90004 -0.1c3.93701e-006,0.0552205 0.0447795,0.1 0.100004,0.1l-0.200008 0c0.0552244,0 0.1,-0.0447795 0.100004,-0.1zm0.200004 0c7.87402e-006,0.0552205 0.0447874,0.1 0.1,0.1l-0.2 0c0.0552126,0 0.0999921,-0.0447795 0.1,-0.1zm0.200004 0c3.93701e-006,0.0552205 0.0447795,0.1 0.100004,0.1l-0.200008 0c0.0552244,0 0.1,-0.0447795 0.100004,-0.1zm0.200004 0c7.87402e-006,0.0552205 0.0447874,0.1 0.1,0.1l-0.2 0c0.0552126,0 0.0999921,-0.0447795 0.1,-0.1zm0.200004 0c3.93701e-006,0.0552205 0.0447795,0.1 0.100004,0.1l-0.200008 0c0.0552244,0 0.1,-0.0447795 0.100004,-0.1zm0.200004 0c7.87402e-006,0.0552205 0.0447874,0.1 0.1,0.1l-0.2 0c0.0552126,0 0.0999921,-0.0447795 0.1,-0.1zm0.200004 0c3.93701e-006,0.0552205 0.0447795,0.1 0.100004,0.1l-0.200008 0c0.0552244,0 0.1,-0.0447795 0.100004,-0.1zm0.200004 0c7.87402e-006,0.0552205 0.0447874,0.1 0.1,0.1l-0.2 0c0.0552126,0 0.0999921,-0.0447795 0.1,-0.1zm0.200004 0c3.93701e-006,0.0552205 0.0447795,0.1 0.100004,0.1l-0.200008 0c0.0552244,0 0.1,-0.0447795 0.100004,-0.1zm0.199945 0.00329921l0 0.0967008 -0.0999409 0c0.0541102,0 0.0981929,-0.0430079 0.0999409,-0.0967008z"/></svg>',t=!0;else if("clouds_seperator"==s)seperator_class="ult-cloud-seperator",svg='<svg class="cloud-inner-seperator uvc-cloud-seperator" xmlns="http://www.w3.org/2000/svg" version="1.1" fill="'+l+'" width="100%" height="'+c+'" viewBox="0 0 2.23333 0.1" preserveAspectRatio="none"><path class="fil0" d="M2.23281 0.0372047c0,0 -0.0261929,-0.000389764 -0.0423307,-0.00584252 0,0 -0.0356181,0.0278268 -0.0865354,0.0212205 0,0 -0.0347835,-0.00524803 -0.0579094,-0.0283701 0,0 -0.0334252,0.0112677 -0.0773425,-0.00116929 0,0 -0.0590787,0.0524724 -0.141472,0.000779528 0,0 -0.0288189,0.0189291 -0.0762362,0.0111535 -0.00458268,0.0141024 -0.0150945,0.040122 -0.0656811,0.0432598 -0.0505866,0.0031378 -0.076126,-0.0226614 -0.0808425,-0.0308228 -0.00806299,0.000854331 -0.0819961,0.0186969 -0.111488,-0.022815 -0.0076378,0.0114843 -0.059185,0.0252598 -0.083563,-0.000385827 -0.0295945,0.0508661 -0.111996,0.0664843 -0.153752,0.019 -0.0179843,0.00227559 -0.0571181,0.00573622 -0.0732795,-0.0152953 -0.027748,0.0419646 -0.110602,0.0366654 -0.138701,0.00688189 0,0 -0.0771732,0.0395709 -0.116598,-0.0147677 0,0 -0.0497598,0.02 -0.0773346,-0.00166929 0,0 -0.0479646,0.0302756 -0.0998937,0.00944094 0,0 -0.0252638,0.0107874 -0.0839488,0.00884646 0,0 -0.046252,0.000775591 -0.0734567,-0.0237087 0,0 -0.046252,0.0101024 -0.0769567,-0.00116929 0,0 -0.0450827,0.0314843 -0.118543,0.0108858 0,0 -0.0715118,0.0609803 -0.144579,0.00423228 0,0 -0.0385787,0.00770079 -0.0646299,0.000102362 0,0 -0.0387559,0.0432205 -0.125039,0.0206811 0,0 -0.0324409,0.0181024 -0.0621457,0.0111063l-3.93701e-005 0.0412205 2.2323 0 0 -0.0627953z"/></svg>',t=!0;else if("multi_triangle_seperator"==s){seperator_class="ult-multi-trianle";f=(f=l).replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(t,e,a,r){return e+e+a+a+r+r});var f=(f=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(f))?{r:parseInt(f[1],16),g:parseInt(f[2],16),b:parseInt(f[3],16)}:null;svg='<svg class="uvc-multi-triangle-svg" xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 100 100" preserveAspectRatio="none" width="100%" height="'+c+'">\t\t\t\t            <path class="large left" d="M0 0 L50 50 L0 100" fill="rgba('+f.r+","+f.g+","+f.b+', .1)"></path>\t\t\t\t            <path class="large right" d="M100 0 L50 50 L100 100" fill="rgba('+f.r+","+f.g+","+f.b+', .1)"></path>\t\t\t\t            <path class="medium left" d="M0 100 L50 50 L0 33.3" fill="rgba('+f.r+","+f.g+","+f.b+', .3)"></path>\t\t\t\t            <path class="medium right" d="M100 100 L50 50 L100 33.3" fill="rgba('+f.r+","+f.g+","+f.b+', .3)"></path>\t\t\t\t            <path class="small left" d="M0 100 L50 50 L0 66.6" fill="rgba('+f.r+","+f.g+","+f.b+', .5)"></path>\t\t\t\t            <path class="small right" d="M100 100 L50 50 L100 66.6" fill="rgba('+f.r+","+f.g+","+f.b+', .5)"></path>\t\t\t\t            <path d="M0 99.9 L50 49.9 L100 99.9 L0 99.9" fill="rgba('+f.r+","+f.g+","+f.b+', 1)"></path>\t\t\t\t            <path d="M48 52 L50 49 L52 52 L48 52" fill="rgba('+f.r+","+f.g+","+f.b+', 1)"></path>\t\t\t\t        </svg>',t=!0}else if("round_split_seperator"==s){let t=temp_border_before=temp_border_after=temp_border_line="";temp_padding=0,seperator_class="ult-rounded-split-seperator-wrapper";var y,w,x,j,Q,z,k,C,M,I,P,A,L;jQuery(a).outerHeight();0!=i&&(f=parseInt(jQuery(a).css("padding-bottom")),jQuery(a).css({"padding-bottom":i+"px"}),0==f)&&(temp_padding=i),"top_seperator"==v?(Q="top-split-seperator",y="0px",w="auto",x="border-radius: 0 0 "+i+"px 0 !important;",j="border-radius: 0 0 0 "+i+"px !important;"):"bottom_seperator"==v?(Q="bottom-split-seperator",y="auto",w="0px",x="border-radius: 0 "+i+"px 0 0 !important;",j="border-radius: "+i+"px 0 0 0 !important;"):(Q="top-bottom-split-seperator",C=k="auto",M=z="0px",I="border-radius: 0 0 "+i+"px 0 !important;",P="border-radius: 0 0 0 "+i+"px !important;",A="border-radius: 0 "+i+"px 0 0 !important;",L="border-radius: "+i+"px 0 0 0 !important;"),inner_html='<div class="ult-rounded-split-seperator '+Q+'"></div>',"none"!=d&&(temp_border_line=n+"px "+d+" "+p,temp_border_before="border-top: "+temp_border_line+"; border-right: "+temp_border_line+";",temp_border_after="border-top: "+temp_border_line+"; border-left: "+temp_border_line+";"),"top_seperator"==v||"bottom_seperator"==v?(t="<style>."+g+" .ult-rounded-split-seperator."+Q+":before { background-color:"+l+"; height:"+i+"px !important; top:"+y+"; bottom:"+w+"; "+temp_border_before+" "+x+" } ."+g+" .ult-rounded-split-seperator."+Q+":after { background-color:"+l+"; left: 50%; height:"+i+"px !important; top:"+y+"; bottom:"+w+"; "+temp_border_after+" "+j+" }</style>",jQuery("head").append(t)):(t="<style>."+g+".top_seperator .ult-rounded-split-seperator:before { background-color:"+l+"; height:"+i+"px !important; top:"+z+"; bottom:"+k+"; "+temp_border_before+" "+I+" } ."+g+".top_seperator .ult-rounded-split-seperator:after { background-color:"+l+"; left: 50%; height:"+i+"px !important; top:"+z+"; bottom:"+k+"; "+temp_border_after+" "+P+" }</style>",temp_css_bottom="<style>."+g+".bottom_seperator .ult-rounded-split-seperator:before { background-color:"+l+"; height:"+i+"px !important; top:"+C+"; bottom:"+M+"; "+temp_border_before+" "+A+" } ."+g+".bottom_seperator .ult-rounded-split-seperator:after { background-color:"+l+"; left: 50%; height:"+i+"px !important; top:"+C+"; bottom:"+M+"; "+temp_border_after+" "+L+" }</style>",jQuery("head").append(t+temp_css_bottom))}else seperator_class="ult-no-shape-seperator";void 0!==n&&""!=n&&0!=n&&(e=parseInt(n)),shape_css='content: "";width:'+i+"px; height:"+i+"px; bottom: -"+(m+e)+"px;",""!=l&&(shape_css+="background-color:"+l+";"),"none"!=d&&"ult-rounded-split-seperator-wrapper"!=seperator_class&&0==t&&(seperator_border_line_css=n+"px "+d+" "+p,shape_css+="border-bottom:"+seperator_border_line_css+"; border-right:"+seperator_border_line_css+";",seperator_css+="border-bottom:"+seperator_border_line_css+";",_="bottom:"+n+"px !important"),"ult-no-shape-seperator"!=seperator_class&&"ult-rounded-split-seperator-wrapper"!=seperator_class&&0==t&&(o="<style>."+g+" .ult-main-seperator-inner:after { "+shape_css+" }</style>",jQuery("head").append(o)),1==t&&(inner_html=svg),"top_bottom_seperator"==v?(b='<div class="ult-vc-seperator top_seperator '+seperator_class+" "+g+'" data-full-width="'+u+'" data-border="'+d+'" data-border-width="'+n+'"><div class="ult-main-seperator-inner">'+inner_html+"</div>"+h+"</div>",b+='<div class="ult-vc-seperator bottom_seperator '+seperator_class+" "+g+'" data-full-width="'+u+'" data-border="'+d+'" data-border-width="'+n+'"><div class="ult-main-seperator-inner">'+inner_html+"</div>"+h+"</div>"):b='<div class="ult-vc-seperator '+v+" "+seperator_class+" "+g+'" data-full-width="'+u+'" data-border="'+d+'" data-border-width="'+n+'"><div class="ult-main-seperator-inner">'+inner_html+"</div>"+h+"</div>",r.prepend(b),seperator_css="<style>."+g+" .ult-main-seperator-inner { "+seperator_css+" }</style>",""!=_&&(_="<style>."+g+" .ult-main-seperator-inner { "+_+" }</style>",seperator_css+=_),""!=h&&(a=c/2,"none_seperator"==s||"circle_svg_seperator"==s||"triangle_svg_seperator"==s?seperator_css+="<style>."+g+" .separator-icon { -webkit-transform: translate(-50%, -50%); -moz-transform: translate(-50%, -50%); -ms-transform: translate(-50%, -50%); -o-transform: translate(-50%, -50%); transform: translate(-50%, -50%); }</style>":seperator_css+="<style>."+g+".top_seperator .separator-icon { -webkit-transform: translate(-50%, calc(-50% + "+a+"px)); -moz-transform: translate(-50%, calc(-50% + "+a+"px)); -ms-transform: translate(-50%, calc(-50% + "+a+"px)); -o-transform: translate(-50%, calc(-50% + "+a+"px)); transform: translate(-50%, calc(-50% + "+a+"px)); } ."+g+".bottom_seperator .separator-icon { -webkit-transform: translate(-50%, calc(-50% - "+a+"px)); -moz-transform: translate(-50%, calc(-50% - "+a+"px)); -ms-transform: translate(-50%, calc(-50% - "+a+"px)); -o-transform: translate(-50%, calc(-50% - "+a+"px)); transform: translate(-50%, calc(-50% - "+a+"px)); }</style>"),1==t&&(jQuery("."+g).find("svg").css("height",c),setTimeout(function(){"multi_triangle_seperator"==s&&jQuery(".ult-multi-trianle").each(function(t,e){var a=B(e).find("svg").height();B(e).hasClass("top_seperator")||B(e).hasClass("bottom_seperator")&&B(e).css("bottom",a-1)})},300)),jQuery("head").append(seperator_css)}}/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&B("html").addClass("ult-remove-fixed-background"),jQuery(window).scroll(function(){E()}),jQuery(window).on("load",function(){E()}),jQuery.fn.isVdoOnScreen=function(){var t=jQuery(window),e={top:t.scrollTop(),left:t.scrollLeft()},t=(e.right=e.left+t.width(),e.bottom=e.top+t.height()-200,this.parent().offset());return t.right=t.left+this.parent().outerWidth(),t.bottom=t.top+this.parent().outerHeight()-300,!(e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom)},jQuery.fn.ultimate_video_bg=function(T){return jQuery(this).each(function(){let r=jQuery(this),t=r.data("ultimate-video");var e=r.data("ultimate-video2");let a=r.data("ultimate-video-muted"),o=r.data("ultimate-video-loop");var s=r.data("ultimate-video-autoplay"),i=r.data("ultimate-video-poster");let l=r.data("bg-override");var d=r.data("start-time");let p=r.data("stop-time");var n=r.data("upb-bg-animation"),c=r.data("overlay"),u=r.data("overlay-color"),v=r.data("overlay-pattern"),h=r.data("overlay-pattern-opacity");let _=r.data("overlay-pattern-size");var b=r.data("overlay-pattern-attachment"),g=r.data("viewport-video"),m=r.data("controls"),f=r.data("controls-color"),y=r.data("fadeout"),w=r.data("fadeout-percentage"),x=r.data("parallax-content"),S=r.data("parallax-content-sense"),R=r.data("row-effect-mobile-disable"),j=r.data("hide-row"),Q=r.data("rtl"),H=r.data("video_fixer");let z="",k="",C=r.data("custom-vc-row");r.data("vc");let M=r.data("theme-support"),I=r.data("is_old_vc"),P=(void 0!==C&&""!==C||(C="wpb_row"),void 0===I&&(I=!1),void 0===M&&(M="disable"),r.data("multi-color-overlay")&&(z=r.data("multi-color-overlay"),k=r.data("multi-color-overlay-opacity")),overlay_color_html=overlay_pattern_html=overlay_multi_color_html=overlay_pattern_attachment_css="");void 0!==c&&"true"===c.toString()&&(""!=v&&(""!=_&&(_="background-size:"+_+"px;"),void 0!==b&&""!=b&&(overlay_pattern_attachment_css="background-attachment:"+b+";"),overlay_pattern_html='<div class="upb_bg_overlay_pattern" style="background-image:url('+v+"); opacity:"+h+"; "+_+"; "+overlay_pattern_attachment_css+'"></div>'),""!=u&&(overlay_color_html='<div class="upb_bg_overlay" style="background-color:'+u+';"></div>'),""!=z&&(overlay_multi_color_html='<div class="upb_bg_overlay '+z+'" style="opacity:'+k+';"></div>'),P=overlay_color_html+overlay_pattern_html+overlay_multi_color_html),p=0!=p?p:"",(c=1==I||"enable"==M?(r.prev().is("p")||r.prev().is("style")?r.prev():r).prev():r.prevAll("."+C+":first")).css("position","relative");var A,b=c.attr("class"),v=r;r=c;{let t,e,a;if(a=r,resize_selector=a.find(".upb_video-bg"),"full"==l&&(a=jQuery("body")),"ex-full"==l&&(a=jQuery("html")),!isNaN(l))for(let t=0;t<l&&"HTML"!=a.prop("tagName");t++)a=a.parent();e=resize_selector.parents("upb_video_class").outerHeight(),t=a.outerWidth(),"browser_size"==l&&(e=jQuery(window).height(),t=jQuery(window).width(),a.css("min-height",e+"px")),resize_selector.css({"min-height":e+"px","min-width":t+"px"}),a.offset()&&(a.offset().left,resize_selector.offset())&&resize_selector.offset().left;var L,h=t,u=e,c=resize_selector.find(".upb_vimeo_iframe");youvideoplayer=resize_selector.find(".upb_utube_iframe"),embeddedvideoplayer=resize_selector.find(".upb_video-src"),c&&(h/(16/9)<u?(L=Math.ceil(u*(16/9)),c.width(L).height(u).css({left:(h-L)/2,top:0})):(L=Math.ceil(h/(16/9)),c.width(h).height(L).css({left:0,top:(u-L)/2}))),embeddedvideoplayer&&(h/(16/9)<resize_selector.height()?(embeddedvideoplayer.css("width","auto"),embeddedvideoplayer.css("height","100%")):(embeddedvideoplayer.css("width","100%"),embeddedvideoplayer.css("height","auto")))}""!=j&&(r.addClass("ult-vc-hide-row"),r.attr("data-hide-row",j)),r.attr("data-rtl",Q),r.addClass("upb_video_class"),r.attr("data-row-effect-mobile-disable",R),"fadeout_row_value"==y&&(r.addClass("vc-row-fade"),r.attr("data-fadeout-percentage",w)),r.attr("data-upb_br_animation",n),t&&(-1!=t.indexOf("youtube.com")?T="youtube":-1!=t.indexOf("vimeo.com")&&(T="vimeo"));let B="",O=("display_control"==m&&(c=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?(A="ult-vid-cntrlplay","pause"):(A="ult-vid-cntrlpause","play"),B='<span class="video-controls" data-action="'+c+'" style="color:'+f+'"><i class="'+A+'"></i></span>'),"browser_size"==l&&(r.wrapInner('<div class="upb_video-text-wrapper"><div class="upb_video-text"></div></div>'),r.find(".upb_video-text-wrapper").find(".upb_video-text").addClass(b)),"parallax_content_value"==x&&(r.addClass("vc-row-translate"),r.attr("data-parallax-content-sense",S),r.wrapInner('<div class="vc-row-translate-wrapper '+b+'"></div>'),u=r.css("padding-top"),L=r.css("padding-bottom"),r.find(".vc-row-translate-wrapper").css({"padding-top":u,"padding-bottom":L}),r[0].style.setProperty("padding-top","0px","important"),r[0].style.setProperty("padding-bottom","0px","important")),"");if("true"==H.toString()&&(O="uvc-video-fixer"),"youtube"==T||"vimeo"==T?r.prepend('<div class="upb_video-wrapper '+O+'"><div class="upb_video-bg utube" data-rtl="'+Q+'" data-bg-override="'+l+'" data-row="'+C+'" data-theme-support="'+M+'">'+P+"</div></div>"):r.prepend(' <div class="upb_video-wrapper"><div class="upb_video-bg" data-bg-override="'+l+'" data-rtl="'+Q+'" data-row="'+C+'" data-theme-support="'+M+'"><video class="upb_video-src"></video>'+B+P+"</div></div>"),W(v,r),v.remove(),"youtube"==T){t=t.substring(t.indexOf("watch?v=")+8,t.indexOf("watch?v=")+19);var N=r.find(".upb_video-bg");"loop"==o&&(o=!0),"muted"==a&&(a=!0),N.attr("data-vdo",t),N.attr("data-loop",o),N.attr("data-poster",i),N.attr("data-muted",a),N.attr("data-start",d),N.attr("data-stop",p),!0===g&&(N.addClass("enable-on-viewport"),N.addClass("youtube-video"),E())}else if("vimeo"==T)t=t.substring(t.indexOf("vimeo.com/")+10,t.indexOf("vimeo.com/")+18),(N=r.find(".upb_video-bg")).html('<iframe class="upb_vimeo_iframe" src="https://player.vimeo.com/video/'+t+'?portrait=0&amp;byline=0&amp;title=0&amp;badge=0&amp;loop=0&amp;autoplay=1&amp;api=1&amp;rel=0&amp;" height="1600" width="900" frameborder=""></iframe>');else{N=r.find(".upb_video-src");if(hosted_wrapper=N.parent(),/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&"display_control"!=m)"display_control"!=m&&(""!=i&&N.parent().find(".video-controls").hide(),N.remove());else{if(jQuery("<source/>",{type:"video/mp4",src:t}).appendTo(N),void 0!==e&&""!==e){let t="";e.match(/.ogg/i)?t="video/ogg":e.match(/.webm/i)&&(t="video/webm"),""!=t&&jQuery("<source/>",{type:t,src:e}).appendTo(N)}"muted"==a&&N.attr({"data-mute":"muted"}),"loop"==o&&N.attr({loop:o}),N.attr({preload:"auto"}),!0===g?(N.addClass("enable-on-viewport"),N.addClass("hosted-video"),E()):"autoplay"==s&&N.attr({autoplay:s})}}""!=i&&(N.is(".utube")?N:hosted_wrapper).css({"background-image":"url("+i+")"}),jQuery(".upb_video-src").each(function(t,e){let a=jQuery(e).attr("data-mute");"muted"===(a=void 0===a?!1:a)&&(jQuery(e)[0].muted="muted")})}),this},jQuery.fn.ultimate_bg_shift=function(){return jQuery(this).each(function(){let s=jQuery(this);var t=s.data("ultimate-bg"),e=s.data("ultimate-bg-style"),a=s.prev().css("background-color"),r=s.data("bg-img-repeat"),o=s.data("bg-img-size"),i=s.data("bg-img-position"),l=s.data("parallx_sense");let d=s.data("bg-override");var p=s.data("bg_img_attach"),n=s.data("upb-bg-animation"),c=s.data("overlay"),u=s.data("overlay-color"),v=s.data("overlay-pattern"),h=s.data("overlay-pattern-opacity");let _=s.data("overlay-pattern-size");var b=s.data("overlay-pattern-attachment"),g=s.data("fadeout"),m=s.data("fadeout-percentage"),f=s.data("parallax-content"),y=s.data("parallax-content-sense"),w=s.data("bg-animation"),x=s.data("bg-animation-type"),j=s.data("animation-repeat"),Q=s.data("row-effect-mobile-disable"),z=s.data("img-parallax-mobile-disable"),k=s.data("hide-row"),C=s.data("rtl");let M="",I="",P=s.data("custom-vc-row");s.data("vc");let A=s.data("theme-support"),L=s.data("is_old_vc"),B=(void 0!==P&&""!==P||(P="wpb_row"),void 0===L&&(L=!1),void 0===A&&(A="disable"),s.data("multi-color-overlay")&&(M=s.data("multi-color-overlay"),I=s.data("multi-color-overlay-opacity")),overlay_color_html=overlay_pattern_html=overlay_multi_color_html=overlay_pattern_attachment_css="");void 0!==c&&"true"===c.toString()&&(""!=v&&(""!=_&&(_="background-size:"+_+"px;"),void 0!==b&&""!=b&&(overlay_pattern_attachment_css="background-attachment:"+b+";"),overlay_pattern_html='<div class="upb_bg_overlay_pattern" style="background-image:url('+v+"); opacity:"+h+"; "+_+"; "+overlay_pattern_attachment_css+'"></div>'),""!=u&&(overlay_color_html='<div class="upb_bg_overlay" style="background-color:'+u+';"></div>'),""!=M&&(overlay_multi_color_html='<div class="upb_bg_overlay '+M+'" style="opacity:'+I+';"></div>'),B=overlay_color_html+overlay_pattern_html+overlay_multi_color_html),(c=1==L||"enable"==A?(s.prev().is("p")||s.prev().is("style")?s.prev():s).prev():s.prevAll("."+P+":first")).css("position","relative");b=c.attr("class");"browser_size"==d&&(c.wrapInner('<div class="upb-background-text-wrapper"><div class="upb-background-text"></div></div>'),s.parent().find(".upb-background-text-wrapper").addClass("full-browser-size"),s.parent().find(".upb-background-text-wrapper").find(".upb-background-text").addClass(b)),"parallax_content_value"==f&&(c.addClass("vc-row-translate"),c.attr("data-parallax-content-sense",y),c.wrapInner('<div class="vc-row-translate-wrapper '+b+'"></div>'),v=c.css("padding-top"),h=c.css("padding-bottom"),c.find(".vc-row-translate-wrapper").css({"padding-top":v,"padding-bottom":h}),void 0!==c[0])&&""!==c&&(c[0].style.setProperty("padding-top","0px","important"),c[0].style.setProperty("padding-bottom","0px","important")),""!=k&&(c.addClass("ult-vc-hide-row"),c.attr("data-hide-row",k)),c.attr("data-rtl",C),c.prepend('<div class="upb_row_bg">'+B+"</div>"),s.remove(),W(s,c),(s=c).attr("data-row-effect-mobile-disable",Q),s.attr("data-img-parallax-mobile-disable",z),"fadeout_row_value"==g&&(s.addClass("vc-row-fade"),s.attr("data-fadeout-percentage",m)),s.css("background-image",""),(s=s.find(".upb_row_bg")).attr("data-upb_br_animation",n),"automatic"!=o?s.css({"background-size":o}):s.addClass("upb_bg_size_automatic"),s.css({"background-repeat":r,"background-position":i,"background-color":a}),"vcpb-fs-jquery"==e||"vcpb-mlvp-jquery"==e?s.attr("data-img-array",t):s.css({"background-image":t,"background-attachment":p}),s.attr("data-parallax_sense",l),s.attr("data-bg-override",d),s.attr("data-bg-animation",w),s.attr("data-bg-animation-type",x),s.attr("data-animation-repeat",j),s.addClass(e);function O(){let t,e,a,r;if(e=s.parent(),"full"==d&&(e=jQuery("body"),a=0),"ex-full"==d&&(e=jQuery("html"),a=0),!isNaN(d)){for(let t=0;t<d&&"HTML"!=e.prop("tagName");t++)e=e.parent();a=e.offset().left}var o;wh=jQuery(window).height(),s.parent().outerHeight(),t=e.outerWidth(),s.css({"min-width":t+"px"}),void 0!==s.offset()&&(r=s.offset().left),1==N()?s.css({right:-Math.abs(a-r)+"px"}):s.css({left:-Math.abs(a-r)+"px"}),"browser_size"==d&&((o=s.parent().find(".upb-background-text").height())>wh&&(wh=o),s.parent().css("height",wh+"px"),s.parent().find(".upb-background-text-wrapper").css("height",wh+"px"))}O(),jQuery(window).on("load",function(){O()}),jQuery(window).resize(function(){O()})}),this},jQuery.fn.ultimate_grad_shift=function(){return jQuery(this).each(function(){let s=jQuery(this),t=s.data("grad");s.data("grad-type"),s.data("grad-custom-degree");let i=jQuery(this).data("bg-override");var e=s.data("overlay"),a=s.data("overlay-color"),r=s.data("overlay-pattern"),o=s.data("overlay-pattern-opacity");let l=s.data("overlay-pattern-size");var d=s.data("overlay-pattern-attachment"),p=s.data("upb-bg-animation"),n=s.data("fadeout"),c=s.data("fadeout-percentage"),u=s.data("parallax-content"),v=s.data("parallax-content-sense"),h=s.data("row-effect-mobile-disable"),_=s.data("hide-row"),b=s.data("rtl");let g="",m="",f=s.data("custom-vc-row");var y;s.data("vc");let w=s.data("theme-support"),x=s.data("is_old_vc");void 0!==f&&""!==f||(f="wpb_row"),void 0===x&&(x=!1),void 0===w&&(w="disable"),s.data("multi-color-overlay")&&(g=s.data("multi-color-overlay"),m=s.data("multi-color-overlay-opacity")),(y=1==x||"enable"==w?(s.prev().is("p")||s.prev().is("style")?s.prev():s).prev():s.prevAll("."+f+":first")).css("position","relative");var j=y.attr("class");s.remove();let Q=overlay_color_html=overlay_pattern_html=overlay_multi_color_html=overlay_pattern_attachment_css="";void 0!==e&&"true"===e.toString()&&(""!=r&&(""!=l&&(l="background-size:"+l+"px;"),void 0!==d&&""!=d&&(overlay_pattern_attachment_css="background-attachment:"+d+";"),overlay_pattern_html='<div class="upb_bg_overlay_pattern" style="background-image:url('+r+"); opacity:"+o+"; "+l+"; "+overlay_pattern_attachment_css+'"></div>'),""!=a&&(overlay_color_html='<div class="upb_bg_overlay" style="background-color:'+a+';"></div>'),""!=g&&(overlay_multi_color_html='<div class="upb_bg_overlay '+g+'" style="opacity:'+m+';"></div>'),Q=overlay_color_html+overlay_pattern_html+overlay_multi_color_html),"browser_size"==i&&(y.wrapInner('<div class="upb-background-text-wrapper"><div class="upb-background-text"></div></div>'),y.find(".upb-background-text-wrapper").find(".upb-background-text").addClass(j),y.addClass("full-browser-size")),"parallax_content_value"==u&&(y.addClass("vc-row-translate"),y.attr("data-parallax-content-sense",v),y.wrapInner('<div class="vc-row-translate-wrapper '+j+'"></div>'),e=y.css("padding-top"),d=y.css("padding-bottom"),y.find(".vc-row-translate-wrapper").css({"padding-top":e,"padding-bottom":d}),void 0!==y[0])&&""!==y&&(y[0].style.setProperty("padding-top","0px","important"),y[0].style.setProperty("padding-bottom","0px","important")),""!=_&&(y.addClass("ult-vc-hide-row"),y.attr("data-hide-row",_)),y.attr("data-rtl",b),y.prepend('<div class="upb_row_bg">'+Q+"</div>"),W(s,y),(s=y).attr("data-row-effect-mobile-disable",h),"fadeout_row_value"==n&&(s.addClass("vc-row-fade"),s.attr("data-fadeout-percentage",c)),s.css("background-image",""),(s=s.find(".upb_row_bg")).attr("data-upb_br_animation",p);r=(t=t.replace("url(data:image/svg+xml;base64,","")).indexOf(";");t=t.substring(r+1),s.attr("style",t),s.attr("data-bg-override",i),"browser_size"==i&&s.parent().find(".upb-background-text-wrapper").addClass("full-browser-size");function z(){let t,e,a,r;if(e=s.parent(),"full"==i&&(e=jQuery("body"),a=0),"ex-full"==i&&(e=jQuery("html"),a=0),!isNaN(i)){for(let t=0;t<i&&"HTML"!=e.prop("tagName");t++)e=e.parent();a=e.offset().left}var o;wh=jQuery(window).height(),s.parent().outerHeight(),t=e.outerWidth(),s.css({"min-width":t+"px"}),r=s.offset().left,1==N()?s.css({right:-Math.abs(a-r)+"px"}):s.css({left:-Math.abs(a-r)+"px"}),"browser_size"==i&&((o=s.parent().find(".upb-background-text").height())>wh&&(wh=o),s.parent().css("height",wh+"px"),s.parent().find(".upb-background-text-wrapper").css("height",wh+"px"))}z(),jQuery(window).on("load",function(){z()}),jQuery(window).resize(function(){z()})}),this},jQuery.fn.ultimate_bg_color_shift=function(){return jQuery(this).each(function(){let s=jQuery(this),i=jQuery(this).data("bg-override");var t=jQuery(this).data("bg-color"),e=s.data("fadeout"),a=s.data("fadeout-percentage"),r=s.data("parallax-content"),o=s.data("parallax-content-sense"),l=s.data("row-effect-mobile-disable"),d=s.data("overlay"),p=s.data("overlay-color"),n=s.data("overlay-pattern"),c=s.data("overlay-pattern-opacity");let u=s.data("overlay-pattern-size");var v=s.data("overlay-pattern-attachment"),h=s.data("hide-row"),_=s.data("rtl");let b="",g="";var m;s.data("vc");let f=s.data("theme-support"),y=s.data("custom-vc-row"),w=s.data("is_old_vc");void 0!==y&&""!==y||(y="wpb_row"),void 0===w&&(w=!1),void 0===f&&(f="disable"),s.data("multi-color-overlay")&&(b=s.data("multi-color-overlay"),g=s.data("multi-color-overlay-opacity")),(m=1==w||"enable"==f?(s.prev().is("p")||s.prev().is("style")?s.prev():s).prev():s.prevAll("."+y+":first")).css("position","relative");var x=m.attr("class");let j=overlay_color_html=overlay_pattern_html=overlay_multi_color_html=overlay_pattern_attachment_css="";if(void 0!==d&&"true"===d.toString()&&(""!=n&&(""!=u&&(u="background-size:"+u+"px;"),void 0!==v&&""!=v&&(overlay_pattern_attachment_css="background-attachment:"+v+";"),overlay_pattern_html='<div class="upb_bg_overlay_pattern" style="background-image:url('+n+"); opacity:"+c+"; "+u+"; "+overlay_pattern_attachment_css+'"></div>'),""!=p&&(overlay_color_html='<div class="upb_bg_overlay" style="background-color:'+p+';"></div>'),""!=b&&(overlay_multi_color_html='<div class="upb_bg_overlay '+b+'" style="opacity:'+g+';"></div>'),j=overlay_color_html+overlay_pattern_html+overlay_multi_color_html),"browser_size"==i&&(m.wrapInner('<div class="upb-background-text-wrapper"><div class="upb-background-text"></div></div>'),m.find(".upb-background-text-wrapper").find(".upb-background-text").addClass(x)),""!=h&&(m.addClass("ult-vc-hide-row"),m.attr("data-hide-row",h)),m.attr("data-rtl",_),"parallax_content_value"==r&&(m.addClass("vc-row-translate"),m.wrapInner('<div class="vc-row-translate-wrapper '+x+'"></div>'),m.attr("data-parallax-content-sense",o),d=m.css("padding-top"),v=m.css("padding-bottom"),m.find(".vc-row-translate-wrapper").css({"padding-top":d,"padding-bottom":v}),void 0!==m[0])&&""!==m&&(m[0].style.setProperty("padding-top","0px","important"),m[0].style.setProperty("padding-bottom","0px","important")),m.prepend('<div class="upb_row_bg">'+j+"</div>"),W(s,m),s.remove(),(s=m).attr("data-row-effect-mobile-disable",l),"fadeout_row_value"==e&&(s.addClass("vc-row-fade"),s.attr("data-fadeout-percentage",a)),s.css("background-image",""),(s=s.find(".upb_row_bg")).css({background:t}),s.attr("data-bg-override",i),"browser_size"==i&&s.parent().find(".upb-background-text-wrapper").addClass("full-browser-size"),0!==s.length){let t=function(){let t,e,a,r;if(e=s.parent(),"full"==i&&(e=jQuery("body"),a=0),"ex-full"==i&&(e=jQuery("html"),a=0),!isNaN(i)){for(let t=0;t<i&&"HTML"!=e.prop("tagName");t++)e=e.parent();a=e.offset().left}var o;wh=jQuery(window).height(),s.parent().outerHeight(),t=e.outerWidth(),s.css({"min-width":t+"px"}),r=s.offset().left,1==N()?s.css({right:-Math.abs(a-r)+"px"}):s.css({left:-Math.abs(a-r)+"px"}),"browser_size"==i&&((o=s.parent().find(".upb-background-text").height())>wh&&(wh=o),s.parent().css("height",wh+"px"),s.parent().find(".upb-background-text-wrapper").css("height",wh+"px"))};t(),jQuery(window).on("load",function(){t()}),jQuery(window).resize(function(){t()})}}),this},jQuery.fn.ultimate_parallax_animation=function(i){let l=jQuery(window).height(),d=function(t){return t.height()},t=jQuery(this),p=jQuery(window).scrollTop();function e(){let o;let s=jQuery(window).scrollTop();t.each(function(){var t,e,a,r;"upb_fade_animation"==jQuery(this).data("upb_br_animation")&&(o=jQuery(this).offset().top,(a=(t=jQuery(this)).offset().top)+(t=d(t))<s||a>s+l-100||(e=p-s,a+t-l<s&&(a=e/l,"parent"==i&&(r=parseInt(jQuery(this).css("opacity")),r+=a/2.3,jQuery(this).parents(".wpb_row").css({opacity:r})),"self"==i)&&(r=parseInt(jQuery(this).css("opacity")),r+=a/2.3,jQuery(this).css({opacity:r})),p=s))})}jQuery(window).bind("scroll",e).resize(e),e()};function t(){jQuery(".upb_row_bg").each(function(){var e=jQuery(this).data("bg-override"),t=jQuery(this).data("theme-support"),a=jQuery(this).data("row");let r,o;if((o=void 0!==t&&"enable"!==t?jQuery(this).parents("."+a+":first"):jQuery(this).parent()).addClass("vc_row-has-fill"),"browser_size"==e&&(r=jQuery("html")),"ex-full"==e)r=jQuery("html");else if("full"==e)r=jQuery("body");else if(!isNaN(e)){r=o;for(let t=0;t<e&&!r.is("html");t++)r=r.parent()}var s,t=parseInt(r.css("paddingLeft"))+parseInt(r.css("paddingRight"))+r.width(),a=-(o.offset().left-r.offset().left);0<a&&(left=0),1==N()?jQuery(this).css({width:t,right:a}):jQuery(this).css({width:t,left:a}),"browser_size"==e&&(r.width(),r.height(),o.width(),t=o.height(),a=o.find(".upb-background-text").height(),s=jQuery(window).height(),t=t<a?a:s,o.css("min-height",t+"px"),o.find(".upb-background-text-wrapper").css("min-height",t+"px"))}),jQuery(".upb_video-bg").each(function(t,e){var a=jQuery(this).data("bg-override"),r=jQuery(this).attr("data-rtl"),o=jQuery(this).data("theme-support"),s=jQuery(this).data("row");let i,l;if("true"==(l=void 0!==o&&"enable"!==o?jQuery(this).parents("."+s+":first"):jQuery(this).parent()).attr("data-vc-full-width")||1==l.attr("data-vc-full-width")?l.addClass("uvc-vc-full-width"):l.addClass("uvc-row"),"browser_size"==a)i=jQuery("html"),jQuery(this).parents(".upb_video_class").css("overflow","visible");else if("ex-full"==a)i=jQuery("html"),jQuery(this).parents(".upb_video_class").css("overflow","visible");else if("full"==a)i=jQuery("body"),jQuery(this).parents(".upb_video_class").css("overflow","visible");else if(isNaN(a)||0==a)i=l;else{i=l;for(let t=1;t<=a&&!i.is("html");t++)i=i.parent()}parseInt(i.css("paddingLeft")),parseInt(i.css("paddingRight")),parseInt(i.css("marginLeft"));let d=i.outerWidth();var o=d,s=jQuery(this).offset().left,p=jQuery(this).position().left;let n=i.offset().left-s;p<0&&(n=p+n),0==t&&(c=p),0<(n=0<c?c:n)&&(n=0),void 0===r||!0!==r&&"true"!==r?jQuery(this).css({width:d,"min-width":d,left:n}):jQuery(this).css({width:d,"min-width":d,right:n});jQuery(window).width();s=jQuery(window).height(),l.find("video").height(),t=("browser_size"==a?l.find(".upb_video-text"):l).height(),d<960&&(d=16/9*t+d),pHeight=Math.ceil(d/(16/9)),(children=jQuery(this).children()).removeClass("ult-make-full-height"),o<t&&children.addClass("ult-make-full-height"),p=jQuery(this).css("background-image");/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?void 0!==p&&"none"!=p||(children.css({"max-height":"auto",height:"auto"}),l.css("min-height","auto")):"browser_size"==a&&(r=s<t?t:s,l.addClass("video-browser-size"),l.find(".upb-background-text-wrapper").addClass("full-browser-size"),l.css("min-height",r+"px"),0<l.find(".upb_video-text-wrapper").length)&&(l.find(".upb_video-text-wrapper").addClass("full-browser-size"),l.find(".upb_video-text-wrapper").css("min-height",r+"px"))})}let c=0;(jQuery(".upb_content_video, .upb_content_iframe").prev().is("p")?jQuery(".upb_content_video, .upb_content_iframe").prev():jQuery(".upb_content_video, .upb_content_iframe")).prev().css("background-image","").css("background-repeat",""),jQuery(".upb_content_video").ultimate_video_bg(),jQuery(".upb_bg_img").ultimate_bg_shift(),jQuery(".upb_content_iframe").ultimate_video_bg(),jQuery(".upb_grad").ultimate_grad_shift(),jQuery(".upb_color").ultimate_bg_color_shift(),jQuery(".upb_no_bg").each(function(t,e){var a=jQuery(e).attr("data-fadeout"),r=jQuery(e).data("fadeout-percentage"),o=jQuery(e).data("parallax-content"),s=jQuery(e).data("parallax-content-sense"),i=jQuery(e).data("row-effect-mobile-disable");let l=jQuery(e).data("custom-vc-row"),d=jQuery(e).data("vc"),p=jQuery(e).data("theme-support");if(void 0!==l&&""!==l||(l="wpb_row"),void 0===d&&(d=0),void 0===p&&(p="disable"),(e=(d=parseFloat(d))<4.4||"enable"==p?(jQuery(e).prev().is("p")||jQuery(e).prev().is("style")?jQuery(e).prev():jQuery(e)).prev():jQuery(e).prevAll("."+l+":first")).css("position","relative"),void 0===e[0])return!1;e.attr("row-effect-mobile-disable",i),"fadeout_row_value"==a&&(e.addClass("vc-row-fade"),e.data("fadeout-percentage",r)),"parallax_content_value"==o&&(e.addClass("vc-row-translate"),e.attr("data-parallax-content-sense",s),e.wrapInner('<div class="vc-row-translate-wrapper"></div>'),i=e.css("padding-top"),a=e.css("padding-bottom"),e.find(".vc-row-translate-wrapper").css({"padding-top":i,"padding-bottom":a}),void 0!==e[0])&&""!==e&&(e[0].style.setProperty("padding-top","0px","important"),e[0].style.setProperty("padding-bottom","0px","important"))}),jQuery(".upb_no_bg").remove();function e(){jQuery(".ult-vc-seperator").each(function(t,e){var a=jQuery(this).data("full-width");let r=jQuery(this).parent().data("rtl");void 0===r&&(r="false");var o=jQuery(this).parent().find(".upb_row_bg").data("bg-override");if(("ex-full"==(o=void 0===o?jQuery(this).parent().find(".upb_video-bg").data("bg-override"):o)||"full"==o||"browser_size"==o)&&1==a){let t=jQuery("html").width();jQuery(this).hasClass("ult-rounded-split-seperator-wrapper")&&(o=jQuery(this).data("border"),a=jQuery(this).data("border-width"),void 0!==o)&&"none"!=o&&"undefined"!=o&&(t-=a);o=jQuery(this).offset().left;jQuery(this).find(".ult-main-seperator-inner").width(t),"true"==r.toString()?jQuery(this).find(".ult-main-seperator-inner").css({"margin-right":-o+"px"}):jQuery(this).find(".ult-main-seperator-inner").css({"margin-left":-o+"px"})}})}t(),jQuery(window).on("load",function(){t(),e()}),jQuery(window).resize(function(){t(),e()}),jQuery(document).ajaxComplete(function(t,e,a){(jQuery(".upb_content_video, .upb_content_iframe").prev().is("p")?jQuery(".upb_content_video, .upb_content_iframe").prev():jQuery(".upb_content_video, .upb_content_iframe")).prev().css("background-image","").css("background-repeat",""),jQuery(".upb_content_video").ultimate_video_bg(),jQuery(".upb_bg_img").ultimate_bg_shift(),jQuery(".upb_content_iframe").ultimate_video_bg(),jQuery(".upb_grad").ultimate_grad_shift(),jQuery(".upb_color").ultimate_bg_color_shift()}),jQuery(".video-controls").click(function(t){var e=jQuery(this).attr("data-action"),a=jQuery(this).parent().find(".upb_video-src");"pause"==e?(jQuery(this).attr("data-action","play"),a[0].play(),jQuery(this).html('<i class="ult-vid-cntrlpause"></i>')):(jQuery(this).attr("data-action","pause"),a[0].pause(),jQuery(this).html('<i class="ult-vid-cntrlplay"></i>')),a.hasClass("enable-on-viewport")&&a.addClass("override-controls")}),jQuery(".ult-vc-hide-row").each(function(t,e){var a=jQuery(e).data("hide-row");""!=a&&jQuery(e).addClass(a)}),e(),jQuery(".vcpb-animated").each(function(t,o){var s=jQuery(o).data("animation-repeat");jQuery(this).css({"background-repeat":s});let e=jQuery(o).parent().attr("data-img-parallax-mobile-disable");if(e=void 0===e?"false":e.toString(),"false"==("true"==(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?"true":"false")&&"true"==e?"true":"false")){let t=10;t=100-(t=""!=jQuery(this).attr("data-parallax_sense")?jQuery(this).attr("data-parallax_sense"):t);s=jQuery(this).attr("data-bg-animation-type");let e=jQuery(this).attr("data-bg-animation"),a=0,r=s;setInterval(function(t){"right-animation"==e||"bottom-animation"==e?--a:a+=1,jQuery(o).css("backgroundPosition","h"==r?a+"px 0":"0 "+a+"px")},t)}})})})(jQuery);
(c=>{function s(t,e){var i,r;r=(i=parseInt(e.outerHeight()))/2,t.css("padding-top",r+"px"),t.parent().css("margin-top",r+20+"px"),e.css("top",-i+"px")}function o(t){0<t.find(".timeline-icon-block").length&&c(".timeline-block").each(function(t,e){var i=c(this).find(".timeline-header-block"),r=c(this).find(".timeline-icon-block"),s=(r.css({position:"absolute"}),r.outerHeight()),o=r.outerWidth(),a=-o/2,a=(parseInt(i.find(".timeline-header").css("padding-left").replace(/[^\d.]/g,"")),c(this).hasClass("timeline-post-left")?(r.css({left:a,right:"auto"}),jQuery("body").hasClass("rtl")&&r.css({left:"auto",right:a})):c(this).hasClass("timeline-post-right")&&(r.css({left:"auto",right:a}),jQuery("body").hasClass("rtl"))&&r.css({left:a,right:"auto"}),i.height()),a=(r.css({top:a/2-s/2}),r.offset().left),s=c(window).width();(a<0||s<a+o)&&(r.css({position:"relative",top:"auto",left:"auto",right:"auto","text-align":"center"}),r.children().children().css({margin:"10px auto"}),i.css({padding:"0"}))})}function i(){jQuery(".ult-animation").each(function(){if(jQuery(this).attr("data-animate")){var r=jQuery(this).children("*");let s=jQuery(this).attr("data-animate"),t=jQuery(this).attr("data-animation-duration")+"s",e=jQuery(this).attr("data-animation-iteration"),i=jQuery(this).attr("data-animation-delay"),o=(jQuery(this).attr("data-opacity_start_effect"),"opacity:1;-webkit-animation-delay:"+i+"s;-webkit-animation-duration:"+t+";-webkit-animation-iteration-count:"+e+"; -moz-animation-delay:"+i+"s;-moz-animation-duration:"+t+";-moz-animation-iteration-count:"+e+"; animation-delay:"+i+"s;animation-duration:"+t+";animation-iteration-count:"+e+";");var a="opacity:1;-webkit-transition-delay: "+i+"s; -moz-transition-delay: "+i+"s; transition-delay: "+i+"s;";if(n(jQuery(this))){let t=jQuery(this).attr("style");"opacity:0;"==(t=(t=void 0===t?"test":t).replace(/ /g,""))&&0!==t.indexOf(a)&&jQuery(this).attr("style",a),jQuery.each(r,function(t,e){e=jQuery(e);let i=e.attr("style"),r=(void 0===i&&(i="test"),"");r=0==i.indexOf(o)?i:o+i,e.attr("style",r),n(e)&&e.addClass("animated").addClass(s)})}}})}function n(t){var e,i=jQuery(window).scrollTop(),r=jQuery(window).height();e=void 0===(e=jQuery(t).hasClass("ult-animate-viewport")?jQuery(t).data("opacity_start_effect"):e)||""==e?2:100-e,jQuery(t).outerHeight();return jQuery(t).offset().top-i<=r-r*(e/100)}function a(){jQuery(".ult-new-ib").each(function(t,e){var i,r,s=jQuery(this);s.hasClass("ult-ib-resp")&&(i=jQuery(document).width(),r=s.data("min-width"),i<=s.data("max-width")&&r<=i?s.find(".ult-new-ib-content").hide():s.find(".ult-new-ib-content").show())})}c.fn.vc_translate_row=function(){let u=c(window).scrollTop(),l=c(window).height();c(this).each(function(t,e){let i=c(e).attr("data-row-effect-mobile-disable");if(i=void 0===i?"false":i.toString(),"false"==("true"==(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?"true":"false")&&"true"==i?"true":"false")){var r=c(e).outerHeight(),s=c(e).offset().top-u,o=s+r,a=c(e).attr("data-parallax-content-sense")/100,n=0;o<=l-0*l&&s<=0&&!((n=r>l?(l-o)*a:-s*a)<0)||(n=0);c(e).find(".vc-row-translate-wrapper").children().each(function(t,e){jQuery(e).is(".upb_row_bg,.upb_video-wrapper,.ult-vc-seperator,.ult-easy-separator-wrapper")||c(e).css({transform:"translate3d(0,"+n+"px,0)","-webkit-transform":"translate3d(0,"+n+"px,0)","-ms-transform":"translate3d(0,"+n+"px,0)"})})}})},c.fn.vc_fade_row=function(){let a=c(window).scrollTop(),n=c(window).height();c(this).each(function(t,e){let i=c(e).attr("data-row-effect-mobile-disable");if(i=void 0===i?"false":i.toString(),"false"==("true"==(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?"true":"false")&&"true"==i?"true":"false")){var r=100-c(e).data("fadeout-percentage"),s=c(e).outerHeight(),s=c(e).offset().top-a+s;let i=1;var r=n-n*(r/100),o=(r-s)/r*1;0<o&&(i=1-o),s<=r?(i<0?i=0:1<i&&(i=1),c(e).children().each(function(t,e){c(e).is(".upb_row_bg,.upb_video-wrapper,.ult-vc-seperator")||c(e).css({opacity:i})})):c(e).children().each(function(t,e){c(e).css({opacity:i})})}})},jQuery(document).ready(function(){{let n="";c(".ult-spacer").each(function(t,e){var i=c(e).data("id"),r=(c("body").width(),c(e).data("height-mobile")),s=c(e).data("height-mobile-landscape"),o=c(e).data("height-tab"),a=c(e).data("height-tab-portrait"),e=c(e).data("height");""!=e&&(n+=" .spacer-"+i+" { height:"+e+"px } "),""==o&&"0"!=o&&0!=o||(n+=" @media (max-width: 1199px){ .spacer-"+i+" { height:"+o+"px }} "),void 0===a||""==a&&"0"!=a&&0!=a||(n+=" @media (max-width: 991px){ .spacer-"+i+" { height:"+a+"px }} "),void 0===s||""==s&&"0"!=s&&0!=s||(n+=" @media (max-width: 767px){ .spacer-"+i+" { height:"+s+"px }} "),""==r&&"0"!=r&&0!=r||(n+=" @media (max-width: 479px){ .spacer-"+i+" { height:"+r+"px }} ")}),""!=n&&(n="<style>"+n+"</style>",c("head").append(n))}}),jQuery(window).on("scroll",function(){var t=jQuery(".ult-no-mobile").length;/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&1<=t?jQuery(".ult-animation").css("opacity",1):i(),c(".vc-row-fade").vc_fade_row(),c(".vc-row-translate").vc_translate_row()}),jQuery(window).on("load",function(){jQuery(".ult-banner-block-custom-height").each(function(t,e){var i=jQuery(this).find("img"),r=jQuery(this).width(),s=jQuery(this).height();i.width();s<r&&i.css({width:"100%",height:"auto"})}),jQuery(".ult-new-ib").each(function(t,e){("ontouchstart"in window||0<navigator.MaxTouchPoints||0<navigator.msMaxTouchPoints)&&jQuery(this).find(".ult-new-ib-link").click(function(t){t.preventDefault();let e=jQuery(this).attr("href"),i=jQuery(this).data("touch-delay");null==i&&(i=200),setTimeout(function(){window.location=e},i)})});function i(){jQuery(".ifb-jq-height").each(function(){jQuery(this).find(".ifb-back").css("height","auto"),jQuery(this).find(".ifb-front").css("height","auto");var t=parseInt(jQuery(this).find(".ifb-front > div").outerHeight(!0)),e=parseInt(jQuery(this).find(".ifb-back > div").outerHeight(!0)),t=e<t?t:e;jQuery(this).find(".ifb-front").css("height",t+"px"),jQuery(this).find(".ifb-back").css("height",t+"px"),(jQuery(this).hasClass("vertical_door_flip")||jQuery(this).hasClass("horizontal_door_flip")||jQuery(this).hasClass("style_9"))&&jQuery(this).find(".ifb-flip-box").css("height",t+"px")}),jQuery(".ifb-auto-height").each(function(){var t,e;(jQuery(this).hasClass("horizontal_door_flip")||jQuery(this).hasClass("vertical_door_flip"))&&(e=parseInt(jQuery(this).find(".ifb-front > div").outerHeight()),e=(t=parseInt(jQuery(this).find(".ifb-back > div").outerHeight()))<e?e:t,jQuery(this).find(".ifb-flip-box").css("height",e+"px"))})}let t=0,e=0;-1!=navigator.userAgent.indexOf("Safari")&&-1==navigator.userAgent.indexOf("Chrome")?setTimeout(function(){i()},500):i(),jQuery(document).on("ultAdvancedTabClicked",function(t,e){i()}),jQuery(window).on("resize",function(){t++,setTimeout(function(){e++,t==e&&i()},500)});let r=0;jQuery(window).on("resize",function(){a(),jQuery(".csstime.smile-icon-timeline-wrap").each(function(){o(jQuery(this))}),c(".jstime .timeline-wrapper").each(function(){o(jQuery(this))}),"none"==jQuery(".smile-icon-timeline-wrap.jstime .timeline-line").css("display")?0===r&&(c(".jstime .timeline-wrapper").masonry("destroy"),r=1):1==r&&(jQuery(".jstime .timeline-wrapper").masonry({itemSelector:".timeline-block"}),setTimeout(function(){jQuery(".jstime .timeline-wrapper").masonry({itemSelector:".timeline-block",width:"401px"}),jQuery(this).find(".timeline-block").each(function(){jQuery(this).css("left","initial"),"0px"==jQuery(this).css("left")?jQuery(this).addClass("timeline-post-left"):jQuery(this).addClass("timeline-post-right")}),r=0},300))}),c(".smile-icon-timeline-wrap").each(function(){var t=jQuery(this).data("timeline-cutom-width"),t=(t&&jQuery(this).css("width",2*t+40+"px"),parseInt(jQuery(this).width()),parseInt(jQuery(this).find(".timeline-block").width()),c(".jstime .timeline-wrapper").each(function(){jQuery(this).masonry({itemSelector:".timeline-block"})}),setTimeout(function(){c(".jstime .timeline-wrapper").each(function(){jQuery(this).find(".timeline-block").each(function(){"0px"==jQuery(this).css("left")?jQuery(this).addClass("timeline-post-left"):jQuery(this).addClass("timeline-post-right"),o(jQuery(this))}),jQuery(".timeline-block").each(function(){var t=parseInt(jQuery(this).css("top"))-parseInt(jQuery(this).next().css("top"));t<14&&0<t||0==t?jQuery(this).next().addClass("time-clash-right"):-14<t&&jQuery(this).next().addClass("time-clash-left")})}),jQuery(".timeline-post-right").each(function(){var t=jQuery(this).find(".timeline-icon-block").clone();jQuery(this).find(".timeline-icon-block").remove(),jQuery(this).find(".timeline-header-block").after(t)}),jQuery(".smile-icon-timeline-wrap").each(function(){var t=jQuery(this).data("time_block_bg_color");jQuery(this).find(".timeline-block").css("background-color",t),jQuery(this).find(".timeline-post-left.timeline-block l").css("border-left-color",t),jQuery(this).find(".timeline-post-right.timeline-block l").css("border-right-color",t),jQuery(this).find(".feat-item").css("background-color",t),0<jQuery(this).find(".feat-item").find(".feat-top").length?jQuery(this).find(".feat-item l").css("border-top-color",t):jQuery(this).find(".feat-item l").css("border-bottom-color",t),jQuery(".jstime.timeline_preloader").remove(),jQuery(this).find("div").hasClass("timeline-wrapper")?jQuery(this).css("opacity","1"):jQuery(this).remove()})},1e3),jQuery(this).find(".timeline-line ").next().hasClass("timeline-separator-text")||jQuery(this).find(".timeline-line").prepend("<span></span>"),jQuery(this).data("time_sep_color")),e=jQuery(this).data("time_sep_bg_color"),i=jQuery(".smile-icon-timeline-wrap .timeline-line").css("border-right-color");jQuery(this).find(".timeline-dot").css("background-color",e),jQuery(this).find(".timeline-line span").css("background-color",e),jQuery(this).find(".timeline-line span").css("background-color",e),jQuery(this).find(".timeline-separator-text").css("color",t),jQuery(this).find(".timeline-separator-text .sep-text").css("background-color",e),jQuery(this).find(".ult-timeline-arrow s").css("border-color","rgba(255, 255, 255, 0) "+i),jQuery(this).find(".feat-item .ult-timeline-arrow s").css("border-color",i+" rgba(255, 255, 255, 0)"),jQuery(this).find(".timeline-block").css("border-color",i),jQuery(this).find(".feat-item").css("border-color",i)})}),jQuery(document).ready(function(t){var e=jQuery(".ult-no-mobile").length,e=(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&1<=e?jQuery(".ult-animation").css("opacity",1):i(),a(),jQuery(".ubtn").on("mouseenter",function(){let t=jQuery(this),e=(t.find(".ubtn-text").css("color",t.data("hover")),t.find(".ubtn-hover").css("background",t.data("hover-bg")).addClass("ubtn-hover-active"),""!=t.data("hover-bg")&&t.data("hover-bg")),i=(setTimeout(function(){!1!==e&&t.hasClass(".ubtn-fade-bg")&&t.css("background",t.data("hover-bg"))},150),t.attr("style"));var r;""!=t.data("shadow-hover")&&(t.css("box-shadow"),i+="box-shadow:"+t.data("shadow-hover")),t.attr("style",i),""!=t.data("border-hover")&&t.css("border-color",t.data("border-hover")),"none"!=t.data("shadow-click")&&(r=t.data("shd-shadow")-3,""!=t.is(".shd-left")?t.css({right:r}):""!=t.is(".shd-right")?t.css({left:r}):""!=t.is(".shd-top")?t.css({bottom:r}):""!=t.is(".shd-bottom")&&t.css({top:r}))}).on("mouseleave",function(){var t=jQuery(this),e=(t.find(".ubtn-text").removeAttr("style"),t.find(".ubtn-hover").removeClass("ubtn-hover-active"),t.css("background",t.data("bg")),t.data("border-color"));let i=t.attr("style");""!=t.data("shadow-hover")&&(i+="box-shadow:"+t.data("shadow")),t.attr("style",i),""!=t.data("border-hover")&&t.css("border-color",e),"none"!=t.data("shadow-click")&&(t.removeClass("no-ubtn-shadow"),""!=t.is(".shd-left")?t.css({right:"auto"}):""!=t.is(".shd-right")?t.css({left:"auto"}):""!=t.is(".shd-top")?t.css({bottom:"auto"}):""!=t.is(".shd-bottom")&&t.css({top:"auto"}))}),jQuery(".ubtn").on("focus blur mousedown mouseup",function(t){let e=jQuery(this);"none"!=e.data("shadow-click")&&setTimeout(function(){e.is(":focus")?(e.addClass("no-ubtn-shadow"),""!=e.is(".shd-left")?e.css({right:e.data("shd-shadow")+"px"}):""!=e.is(".shd-right")?e.css({left:e.data("shd-shadow")+"px"}):""!=e.is(".shd-top")?e.css({bottom:e.data("shd-shadow")+"px"}):""!=e.is(".shd-bottom")&&e.css({top:e.data("shd-shadow")+"px"})):(e.removeClass("no-ubtn-shadow"),""!=e.is(".shd-left")?e.css({right:"auto"}):""!=e.is(".shd-right")?e.css({left:"auto"}):""!=e.is(".shd-top")?e.css({bottom:"auto"}):""!=e.is(".shd-bottom")&&e.css({top:"auto"}))},0)}),jQuery(".ubtn").on("focusout",function(){var t=jQuery(this);t.removeClass("no-ubtn-shadow"),""!=t.is(".shd-left")?t.css({right:"auto"}):""!=t.is(".shd-right")?t.css({left:"auto"}):""!=t.is(".shd-top")?t.css({bottom:"auto"}):""!=t.is(".shd-bottom")&&t.css({top:"auto"})}),jQuery(".smile-icon-timeline-wrap.jstime").css("opacity","0"),jQuery(".jstime.timeline_preloader").css("opacity","1"),jQuery(".smile-icon-timeline-wrap.csstime .timeline-wrapper").each(function(){jQuery(".csstime .timeline-block:even").addClass("timeline-post-left"),jQuery(".csstime .timeline-block:odd").addClass("timeline-post-right")}),jQuery(".csstime .timeline-post-right").each(function(){jQuery(this).css("float","right"),jQuery("<div style='clear:both'></div>").insertAfter(jQuery(this))}),jQuery(".csstime.smile-icon-timeline-wrap").each(function(){var t=jQuery(this).data("time_block_bg_color");jQuery(this).find(".timeline-block").css("background-color",t),jQuery(this).find(".timeline-post-left.timeline-block l").css("border-left-color",t),jQuery(this).find(".timeline-post-right.timeline-block l").css("border-right-color",t),jQuery(this).find(".feat-item").css("background-color",t),0<jQuery(this).find(".feat-item").find(".feat-top").length?jQuery(this).find(".feat-item l").css("border-top-color",t):jQuery(this).find(".feat-item l").css("border-bottom-color",t),o(jQuery(this))}),jQuery(".aio-icon, .aio-icon-img, .flip-box, .ultb3-info, .icon_list_icon, .ult-banner-block, .uavc-list-icon, .ult_tabs, .icon_list_connector").each(function(){if(jQuery(this).attr("data-animation")){let e=jQuery(this).attr("data-animation"),i="delay-"+jQuery(this).attr("data-animation-delay");if(void 0===e||""===e)return!1;t(this).bsf_appear(function(){var t=jQuery(this);t.addClass("animated").addClass(e),t.addClass("animated").addClass(i)})}}),jQuery(".stats-block").each(function(){t(this).bsf_appear(function(){var t=parseFloat(jQuery(this).find(".stats-number").data("counter-value")),e=jQuery(this).find(".stats-number").data("counter-value")+" ",i=parseInt(jQuery(this).find(".stats-number").data("speed")),r=jQuery(this).find(".stats-number").data("id"),s=jQuery(this).find(".stats-number").data("separator");let o=jQuery(this).find(".stats-number").data("decimal"),a=e.split("."),n=(a=a[1]?a[1].length-1:0,!0);"none"==o&&(o="");e={useEasing:!0,useGrouping:n="none"!=s,separator:s,decimal:o};let u=new countUp(r,0,t,a,i,e);setTimeout(function(){u.start()},500)})}),/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?jQuery(".ifb-flip-box").on("click",function(t){var e=jQuery(this);e.hasClass("ifb-hover")?e.removeClass("ifb-hover"):e.addClass("ifb-hover")}):jQuery(document).on("mouseenter mouseleave",".ifb-flip-box",function(t){var e=jQuery(this);e.hasClass("ifb-hover")?e.removeClass("ifb-hover"):e.addClass("ifb-hover")}),jQuery(".ifb-flip-box").each(function(t,e){jQuery(this).parent().hasClass("style_9")&&(jQuery(this).on("mouseenter",function(){jQuery(this).addClass("ifb-door-hover")}).on("mouseleave",function(){jQuery(this).removeClass("ifb-door-hover")}),jQuery(this).on("click",function(){jQuery(this).toggleClass("ifb-door-right-open"),jQuery(this).removeClass("ifb-door-hover")}))}),jQuery(document).on("click",".ifb-flip-box",function(t){t.stopPropagation(),jQuery(document).trigger("ultFlipBoxClicked",jQuery(this))}),jQuery(".vertical_door_flip .ifb-front").each(function(){jQuery(this).wrap('<div class="v_door ifb-multiple-front ifb-front-1"></div>'),jQuery(this).parent().clone().removeClass("ifb-front-1").addClass("ifb-front-2").insertAfter(jQuery(this).parent())}),jQuery(".reverse_vertical_door_flip .ifb-back").each(function(){jQuery(this).wrap('<div class="rv_door ifb-multiple-back ifb-back-1"></div>'),jQuery(this).parent().clone().removeClass("ifb-back-1").addClass("ifb-back-2").insertAfter(jQuery(this).parent())}),jQuery(".horizontal_door_flip .ifb-front").each(function(){jQuery(this).wrap('<div class="h_door ifb-multiple-front ifb-front-1"></div>'),jQuery(this).parent().clone().removeClass("ifb-front-1").addClass("ifb-front-2").insertAfter(jQuery(this).parent())}),jQuery(".reverse_horizontal_door_flip .ifb-back").each(function(){jQuery(this).wrap('<div class="rh_door ifb-multiple-back ifb-back-1"></div>'),jQuery(this).parent().clone().removeClass("ifb-back-1").addClass("ifb-back-2").insertAfter(jQuery(this).parent())}),jQuery(".style_9 .ifb-front").each(function(){jQuery(this).wrap('<div class="new_style_9 ifb-multiple-front ifb-front-1"></div>'),jQuery(this).parent().clone().removeClass("ifb-front-1").addClass("ifb-front-2").insertAfter(jQuery(this).parent())}),jQuery(".style_9 .ifb-back").each(function(){jQuery(this).wrap('<div class="new_style_9 ifb-multiple-back ifb-back-1"></div>'),jQuery(this).parent().clone().removeClass("ifb-back-1").addClass("ifb-back-2").insertAfter(jQuery(this).parent())}),/^((?!chrome).)*safari/i.test(navigator.userAgent));e&&(jQuery(".vertical_door_flip").each(function(t,e){var i=jQuery(this).find(".flip_link").outerHeight();jQuery(this).find(".flip_link").css("top",-i/2+"px"),jQuery(this).find(".ifb-multiple-front").css("width","50.2%")}),jQuery(".horizontal_door_flip").each(function(t,e){var i=jQuery(this).find(".flip_link").outerHeight();jQuery(this).find(".flip_link").css("top",-i/2+"px"),jQuery(this).find(".ifb-multiple-front").css("height","50.2%")}),jQuery(".reverse_vertical_door_flip").each(function(t,e){var i=jQuery(this).find(".flip_link").outerHeight();jQuery(this).find(".flip_link").css("top",-i/2+"px")}),jQuery(".reverse_horizontal_door_flip").each(function(t,e){var i=jQuery(this).find(".flip_link").outerHeight();jQuery(this).find(".flip_link").css("top",-i/2+"px"),jQuery(this).find(".ifb-back").css("position","inherit")})),jQuery(".square_box-icon").each(function(t,e){let i=jQuery(this);var r;(0<jQuery(this).find(".aio-icon-img").length?(r=jQuery(this).find(".aio-icon-img"),s(i,r),r.find(".img-icon")):(r=jQuery(this).find(".aio-icon"),s(i,r),jQuery(window))).on("load",function(){s(i,r)})})})})(jQuery),jQuery(document).ready(function(){function t(){jQuery(".ult-new-ib").each(function(t,e){var i,r=jQuery(this).data("min-height")||"";jQuery(this).find(".ult-new-ib-img").data("min-height"),jQuery(this).find(".ult-new-ib-img").data("max-width");""!=r&&(jQuery(this).addClass("ult-ib2-min-height"),jQuery(this).css("height",r),jQuery(this).find(".ult-new-ib-img").removeClass("ult-ib2-toggle-size"),jQuery(this).find(".ult-new-ib-img").width(),i=jQuery(this).find(".ult-new-ib-img").height(),jQuery(this).width()<=r||i<r)&&jQuery(this).find(".ult-new-ib-img").addClass("ult-ib2-toggle-size"),jQuery(this).on("mouseenter",function(){jQuery(this).find(".ult-new-ib-img").css("opacity",jQuery(this).data("hover-opacity"))}).on("mouseleave",function(){jQuery(this).find(".ult-new-ib-img").css("opacity",jQuery(this).data("opacity"))})})}jQuery(".ult-new-ib").css("opacity","1"),t(),jQuery(window).on("load",function(){t()}),jQuery(window).on("resize",function(){t()})}),jQuery(document).ready(function(){function i(){jQuery(".ultimate-map-wrapper").each(function(t,e){var i=jQuery(e).attr("id");if(void 0===i||""===i)return!1;var e=jQuery(e).find(".ultimate_google_map").attr("id"),r=jQuery("#"+e).attr("data-map_override");let s="true",o=(jQuery("#"+e).css({"margin-left":0}),jQuery("#"+e).css({right:0}),jQuery("#"+i).parent());o;if("full"==r&&(o=jQuery("body"),s="false"),"ex-full"==r&&(o=jQuery("html"),s="false"),!isNaN(r))for(t=0;t<r&&"HTML"!=o.prop("tagName");t++)o=o.parent();i=0==r||"0"==r?o.width():o.outerWidth();var a=o.offset().left-jQuery("#"+e).offset().left;jQuery("#"+e).css({width:i}),0==r&&"0"==r||jQuery("#"+e).css({"margin-left":a}),"full"==r&&jQuery("body").hasClass("rtl")&&(i=jQuery("#"+e),a=jQuery(window).width()-(i.offset().left+i.outerWidth()),jQuery("#"+e).css({right:-a}))})}i(),jQuery(window).on("load",function(){i()}),jQuery(window).on("resize",function(){i()}),jQuery(".ui-tabs").on("tabsactivate",function(t,e){0<jQuery(this).find(".ultimate-map-wrapper").length&&i()}),jQuery(".ui-accordion").on("accordionactivate",function(t,e){0<jQuery(this).find(".ultimate-map-wrapper").length&&i()}),jQuery(document).on("onUVCModalPopupOpen",function(){i()}),jQuery(document).on("UVCMapResize",function(){i()})});
!function(t,e){"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,(function(){function t(){}let e=t.prototype;return e.on=function(t,e){if(!t||!e)return this;let i=this._events=this._events||{},s=i[t]=i[t]||[];return s.includes(e)||s.push(e),this},e.once=function(t,e){if(!t||!e)return this;this.on(t,e);let i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this},e.off=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;let s=i.indexOf(e);return-1!=s&&i.splice(s,1),this},e.emitEvent=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;i=i.slice(0),e=e||[];let s=this._onceEvents&&this._onceEvents[t];for(let n of i){s&&s[n]&&(this.off(t,n),delete s[n]),n.apply(this,e)}return this},e.allOff=function(){return delete this._events,delete this._onceEvents,this},t})),
function(t,e){"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter")):t.imagesLoaded=e(t,t.EvEmitter)}("undefined"!=typeof window?window:this,(function(t,e){let i=t.jQuery,s=t.console;function n(t,e,o){if(!(this instanceof n))return new n(t,e,o);let r=t;var h;("string"==typeof t&&(r=document.querySelectorAll(t)),r)?(this.elements=(h=r,Array.isArray(h)?h:"object"==typeof h&&"number"==typeof h.length?[...h]:[h]),this.options={},"function"==typeof e?o=e:Object.assign(this.options,e),o&&this.on("always",o),this.getImages(),i&&(this.jqDeferred=new i.Deferred),setTimeout(this.check.bind(this))):s.error(`Bad element for imagesLoaded ${r||t}`)}n.prototype=Object.create(e.prototype),n.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)};const o=[1,9,11];n.prototype.addElementImages=function(t){"IMG"===t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);let{nodeType:e}=t;if(!e||!o.includes(e))return;let i=t.querySelectorAll("img");for(let t of i)this.addImage(t);if("string"==typeof this.options.background){let e=t.querySelectorAll(this.options.background);for(let t of e)this.addElementBackgroundImages(t)}};const r=/url\((['"])?(.*?)\1\)/gi;function h(t){this.img=t}function d(t,e){this.url=t,this.element=e,this.img=new Image}return n.prototype.addElementBackgroundImages=function(t){let e=getComputedStyle(t);if(!e)return;let i=r.exec(e.backgroundImage);for(;null!==i;){let s=i&&i[2];s&&this.addBackground(s,t),i=r.exec(e.backgroundImage)}},n.prototype.addImage=function(t){let e=new h(t);this.images.push(e)},n.prototype.addBackground=function(t,e){let i=new d(t,e);this.images.push(i)},n.prototype.check=function(){if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length)return void this.complete();let t=(t,e,i)=>{setTimeout((()=>{this.progress(t,e,i)}))};this.images.forEach((function(e){e.once("progress",t),e.check()}))},n.prototype.progress=function(t,e,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount===this.images.length&&this.complete(),this.options.debug&&s&&s.log(`progress: ${i}`,t,e)},n.prototype.complete=function(){let t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){let t=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](this)}},h.prototype=Object.create(e.prototype),h.prototype.check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.img.crossOrigin&&(this.proxyImage.crossOrigin=this.img.crossOrigin),this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.currentSrc||this.img.src)},h.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},h.prototype.confirm=function(t,e){this.isLoaded=t;let{parentNode:i}=this.img,s="PICTURE"===i.nodeName?i:this.img;this.emitEvent("progress",[this,s,e])},h.prototype.handleEvent=function(t){let e="on"+t.type;this[e]&&this[e](t)},h.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},h.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},h.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},d.prototype=Object.create(h.prototype),d.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},d.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},d.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},n.makeJQueryPlugin=function(e){(e=e||t.jQuery)&&(i=e,i.fn.imagesLoaded=function(t,e){return new n(this,t,e).jqDeferred.promise(i(this))})},n.makeJQueryPlugin(),n}));
(()=>{var e=0,r={};function i(t){if(!t)throw new Error("No options passed to Waypoint constructor");if(!t.element)throw new Error("No element option passed to Waypoint constructor");if(!t.handler)throw new Error("No handler option passed to Waypoint constructor");this.key="waypoint-"+e,this.options=i.Adapter.extend({},i.defaults,t),this.element=this.options.element,this.adapter=new i.Adapter(this.element),this.callback=t.handler,this.axis=this.options.horizontal?"horizontal":"vertical",this.enabled=this.options.enabled,this.triggerPoint=null,this.group=i.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.context=i.Context.findOrCreateByElement(this.options.context),i.offsetAliases[this.options.offset]&&(this.options.offset=i.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),r[this.key]=this,e+=1}i.prototype.queueTrigger=function(t){this.group.queueTrigger(this,t)},i.prototype.trigger=function(t){this.enabled&&this.callback&&this.callback.apply(this,t)},i.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete r[this.key]},i.prototype.disable=function(){return this.enabled=!1,this},i.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this},i.prototype.next=function(){return this.group.next(this)},i.prototype.previous=function(){return this.group.previous(this)},i.invokeAll=function(t){var e,i=[];for(e in r)i.push(r[e]);for(var o=0,n=i.length;o<n;o++)i[o][t]()},i.destroyAll=function(){i.invokeAll("destroy")},i.disableAll=function(){i.invokeAll("disable")},i.enableAll=function(){for(var t in i.Context.refreshAll(),r)r[t].enabled=!0;return this},i.refreshAll=function(){i.Context.refreshAll()},i.viewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight},i.viewportWidth=function(){return document.documentElement.clientWidth},i.adapters=[],i.defaults={context:window,continuous:!0,enabled:!0,group:"default",horizontal:!1,offset:0},i.offsetAliases={"bottom-in-view":function(){return this.context.innerHeight()-this.adapter.outerHeight()},"right-in-view":function(){return this.context.innerWidth()-this.adapter.outerWidth()}},window.VcWaypoint=i})(),(()=>{function e(t){window.setTimeout(t,1e3/60)}var i=0,o={},u=window.VcWaypoint,t=window.onload;function n(t){this.element=t,this.Adapter=u.Adapter,this.adapter=new this.Adapter(t),this.key="waypoint-context-"+i,this.didScroll=!1,this.didResize=!1,this.oldScroll={x:this.adapter.scrollLeft(),y:this.adapter.scrollTop()},this.waypoints={vertical:{},horizontal:{}},t.waypointContextKey=this.key,o[t.waypointContextKey]=this,i+=1,u.windowContext||(u.windowContext=!0,u.windowContext=new n(window)),this.createThrottledScrollHandler(),this.createThrottledResizeHandler()}n.prototype.add=function(t){var e=t.options.horizontal?"horizontal":"vertical";this.waypoints[e][t.key]=t,this.refresh()},n.prototype.checkEmpty=function(){var t=this.Adapter.isEmptyObject(this.waypoints.horizontal),e=this.Adapter.isEmptyObject(this.waypoints.vertical),i=this.element==this.element.window;t&&e&&!i&&(this.adapter.off(".vcwaypoints"),delete o[this.key])},n.prototype.createThrottledResizeHandler=function(){var t=this;function e(){t.handleResize(),t.didResize=!1}this.adapter.on("resize.vcwaypoints",function(){t.didResize||(t.didResize=!0,u.requestAnimationFrame(e))})},n.prototype.createThrottledScrollHandler=function(){var t=this;function e(){t.handleScroll(),t.didScroll=!1}this.adapter.on("scroll.vcwaypoints",function(){t.didScroll&&!u.isTouch||(t.didScroll=!0,u.requestAnimationFrame(e))})},n.prototype.handleResize=function(){u.Context.refreshAll()},n.prototype.handleScroll=function(){var t,e,i={},o={horizontal:{newScroll:this.adapter.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.adapter.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}};for(t in o){var n,r=o[t],s=r.newScroll>r.oldScroll?r.forward:r.backward;for(n in this.waypoints[t]){var a,l,h=this.waypoints[t][n];null!==h.triggerPoint&&(a=r.oldScroll<h.triggerPoint,l=r.newScroll>=h.triggerPoint,a&&l||!a&&!l)&&(h.queueTrigger(s),i[h.group.id]=h.group)}}for(e in i)i[e].flushTriggers();this.oldScroll={x:o.horizontal.newScroll,y:o.vertical.newScroll}},n.prototype.innerHeight=function(){return this.element==this.element.window?u.viewportHeight():this.adapter.innerHeight()},n.prototype.remove=function(t){delete this.waypoints[t.axis][t.key],this.checkEmpty()},n.prototype.innerWidth=function(){return this.element==this.element.window?u.viewportWidth():this.adapter.innerWidth()},n.prototype.destroy=function(){var t,e=[];for(t in this.waypoints)for(var i in this.waypoints[t])e.push(this.waypoints[t][i]);for(var o=0,n=e.length;o<n;o++)e[o].destroy()},n.prototype.refresh=function(){var t,e,i=this.element==this.element.window,o=i?void 0:this.adapter.offset(),n={};for(e in this.handleScroll(),t={horizontal:{contextOffset:i?0:o.left,contextScroll:i?0:this.oldScroll.x,contextDimension:this.innerWidth(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:i?0:o.top,contextScroll:i?0:this.oldScroll.y,contextDimension:this.innerHeight(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}}){var r,s=t[e];for(r in this.waypoints[e]){var a,l=this.waypoints[e][r],h=l.options.offset,p=l.triggerPoint,c=0,d=null==p;l.element!==l.element.window&&(c=l.adapter.offset()[s.offsetProp]),"function"==typeof h?h=h.apply(l):"string"==typeof h&&(h=parseFloat(h),-1<l.options.offset.indexOf("%"))&&(h=Math.ceil(s.contextDimension*h/100)),a=s.contextScroll-s.contextOffset,l.triggerPoint=Math.floor(c+a-h),c=p<s.oldScroll,a=l.triggerPoint>=s.oldScroll,h=!c&&!a,!d&&(c&&a)?(l.queueTrigger(s.backward),n[l.group.id]=l.group):(!d&&h||d&&s.oldScroll>=l.triggerPoint)&&(l.queueTrigger(s.forward),n[l.group.id]=l.group)}}return u.requestAnimationFrame(function(){for(var t in n)n[t].flushTriggers()}),this},n.findOrCreateByElement=function(t){return n.findByElement(t)||new n(t)},n.refreshAll=function(){for(var t in o)o[t].refresh()},n.findByElement=function(t){return o[t.waypointContextKey]},window.onload=function(){t&&t(),n.refreshAll()},u.requestAnimationFrame=function(t){(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||e).call(window,t)},u.Context=n})(),(()=>{function r(t,e){return t.triggerPoint-e.triggerPoint}function s(t,e){return e.triggerPoint-t.triggerPoint}var e={vertical:{},horizontal:{}},i=window.VcWaypoint;function o(t){this.name=t.name,this.axis=t.axis,this.id=this.name+"-"+this.axis,this.waypoints=[],this.clearTriggerQueues(),e[this.axis][this.name]=this}o.prototype.add=function(t){this.waypoints.push(t)},o.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}},o.prototype.flushTriggers=function(){for(var t in this.triggerQueues){var e=this.triggerQueues[t];e.sort("up"===t||"left"===t?s:r);for(var i=0,o=e.length;i<o;i+=1){var n=e[i];!n.options.continuous&&i!==e.length-1||n.trigger([t])}}this.clearTriggerQueues()},o.prototype.next=function(t){this.waypoints.sort(r);t=i.Adapter.inArray(t,this.waypoints);return t===this.waypoints.length-1?null:this.waypoints[t+1]},o.prototype.previous=function(t){this.waypoints.sort(r);t=i.Adapter.inArray(t,this.waypoints);return t?this.waypoints[t-1]:null},o.prototype.queueTrigger=function(t,e){this.triggerQueues[e].push(t)},o.prototype.remove=function(t){t=i.Adapter.inArray(t,this.waypoints);-1<t&&this.waypoints.splice(t,1)},o.prototype.first=function(){return this.waypoints[0]},o.prototype.last=function(){return this.waypoints[this.waypoints.length-1]},o.findOrCreate=function(t){return e[t.axis][t.name]||new o(t)},i.Group=o})(),(()=>{var i=window.jQuery,t=window.VcWaypoint;function o(t){this.$element=i(t)}i.each(["innerHeight","innerWidth","off","offset","on","outerHeight","outerWidth","scrollLeft","scrollTop"],function(t,e){o.prototype[e]=function(){var t=Array.prototype.slice.call(arguments);return this.$element[e].apply(this.$element,t)}}),i.each(["extend","inArray","isEmptyObject"],function(t,e){o[e]=i[e]}),t.adapters.push({name:"jquery",Adapter:o}),t.Adapter=o})(),(()=>{var n=window.VcWaypoint;function t(o){return function(){var e=[],i=arguments[0];return o.isFunction(arguments[0])&&((i=o.extend({},arguments[1])).handler=arguments[0]),this.each(function(){var t=o.extend({},i,{element:this});"string"==typeof t.context&&(t.context=o(this).closest(t.context)[0]),e.push(new n(t))}),e}}window.jQuery&&(window.jQuery.fn.vcwaypoint=t(window.jQuery)),window.Zepto&&(window.Zepto.fn.vcwaypoint=t(window.Zepto))})();
(n=>{var t=function(t){this.grid=t,this.settings=t.settings,this.filterValue=null,this.$el=!1,this.$content=!1,this.isLoading=!1,this.$loader=n('<div class="vc_grid-loading"></div>'),this.init()};t.prototype.init=function(){_.bindAll(this,"addItems","showItems","setIsLoading")},t.prototype.render=function(){this.$el=this.grid.$el,this.$content=this.$el,this.$content.find(".vc_grid-item").length?(this.grid.initFilter(),this.filter(),this.showItems(),this.filterValue=-1,window.vc_prettyPhoto()):(_.defer(this.setIsLoading),this.grid.ajax({},this.addItems))},t.prototype.setIsLoading=function(){this.$content.append(this.$loader),this.isLoading=!0},t.prototype.unsetIsLoading=function(){this.isLoading=!1,this.$loader&&this.$loader.remove()},t.prototype.filter=function(t){if(t=_.isUndefined(t)||"*"===t?"":t,this.filterValue==t)return!1;var i=this.$content.closest(".vc_grid-container").data("initial-loading-animation");window.vcGridSettings.addItemsAnimation=i,this.$content.find(".vc_visible-item").removeClass("vc_visible-item "+window.vcGridSettings.addItemsAnimation+" animated"),this.filterValue=t,_.defer(this.showItems)},t.prototype.showItems=function(){var t=this.$content.find(".vc_grid-item"+this.filterValue),i=(this.setIsLoading(),this.$content.closest(".vc_grid-container").data("initial-loading-animation"));window.vcGridSettings.addItemsAnimation=i,t.addClass("vc_visible-item "+("none"!==window.vcGridSettings.addItemsAnimation?window.vcGridSettings.addItemsAnimation+" animated":"")),this.unsetIsLoading(),n(window).trigger("grid:items:added",this.$el)},t.prototype.addItems=function(t){t&&t.length&&(t=n(t),this.$el.html(t),this.unsetIsLoading(),this.$content=t.find('[data-vc-grid-content="true"]'),this.grid.initFilter(),this.filter(),window.vc_prettyPhoto())},window.vcGridStyleAll=t})(window.jQuery);
(n=>{var t=function(t){this.grid=t,this.settings=t.settings,this.$loadMoreBtn=!1,this.$el=!1,this.filterValue=null,this.$content=!1,this.isLoading=!1,this.$loader=n('<div class="vc_grid-loading"></div>'),this.init()};t.prototype.setIsLoading=function(){this.$loadMoreBtn&&this.$loadMoreBtn.hide(),this.isLoading=!0},t.prototype.unsetIsLoading=function(){this.isLoading=!1,this.setLoadMoreBtn()},t.prototype.init=function(){_.bindAll(this,"addItems")},t.prototype.render=function(){this.$el=this.grid.$el,this.$content=this.$el,this.grid.initFilter(),this.filter(void 0,!0),this.showItems(!0),this.filterValue=-1,window.vc_prettyPhoto(),this.$content.append(this.$loader),this.grid.ajax({},this.addItems)},t.prototype.showItems=function(t){var i=this.$content.find(".vc_grid_filter-item:not(.vc_visible-item):lt("+this.settings.items_per_page+")"),e=(this.setIsLoading(),this.$content.closest(".vc_grid-container").data("initial-loading-animation"));window.vcGridSettings.addItemsAnimation=e,i.addClass("vc_visible-item"),t&&i.addClass(window.vcGridSettings.addItemsAnimation+" animated"),this.unsetIsLoading(),n(window).trigger("grid:items:added",this.$el)},t.prototype.filter=function(t,i){if(t=_.isUndefined(t)||"*"===t?"":t,this.filterValue==t)return!1;this.$content.find(".vc_visible-item, .vc_grid_filter-item").removeClass("vc_visible-item vc_grid_filter-item "),this.filterValue=t,this.$content.find(".vc_grid-item"+this.filterValue).addClass("vc_grid_filter-item"),this.showItems(i)},t.prototype.addItems=function(t){var i;t&&t.length&&(t=n(t),this.$el.html(t),this.unsetIsLoading(),this.$content=t.find('[data-vc-grid-content="true"]'),this.$loadMoreBtn=t.find('[data-vc-grid-load-more-btn="true"] .vc_btn3'),this.$loadMoreBtn.length||(this.$loadMoreBtn=t.find('[data-vc-grid-load-more-btn="true"] .vc_btn')),(i=this).$loadMoreBtn.on("click",function(t){t.preventDefault(),i.showItems(!0)}),this.$loadMoreBtn.hide(),this.grid.initFilter(),this.filter(),this.$loader.remove(),window.vc_prettyPhoto())},t.prototype.setLoadMoreBtn=function(){n('.vc_grid_filter-item:not(".vc_visible-item")',this.$content).length&&n(".vc_grid_filter-item",this.$content).length?this.$loadMoreBtn&&this.$loadMoreBtn.show():this.$loadMoreBtn&&this.$loadMoreBtn.hide()},window.vcGridStyleLoadMore=t})(window.jQuery);
(n=>{var t,e,s;e=window.jQuery,s=window.VcWaypoint,window.VcGridInfinite=function(i,t){var n=e.extend({},window.VcWaypoint.defaults,{container:"auto",items:".infinite-item",offset:"bottom-in-view"},t);n.element=i,n.handler=function(t){"down"!==t&&"right"!==t||(i.data("vcWaypoint")&&i.data("vcWaypoint").destroy(),n.handle.load.call(this,n))},i.data("vcWaypoint",new s(n))},(t=function(t){this.grid=t,this.settings=t.settings,this.$el=!1,this.filterValue=null,this.$content=!1,this.isLoading=!1,this.$loader=n('<div class="vc_grid-loading"></div>'),this.init()}).prototype.setIsLoading=function(){this.$content.append(this.$loader),this.isLoading=!0},t.prototype.unsetIsLoading=function(){this.isLoading=!1,this.$loader&&this.$loader.remove()},t.prototype.init=function(){_.bindAll(this,"addItems","showItems","setIsLoading")},t.prototype.render=function(){this.$el=this.grid.$el,this.$content=this.$el,this.grid.initFilter(),this.filter(),this.showItems(),this.filterValue=-1,window.vc_prettyPhoto(),_.defer(this.setIsLoading),this.grid.ajax({},this.addItems)},t.prototype.showItems=function(){var t=this.$content.find(".vc_grid_filter-item:not(.vc_visible-item):lt("+this.settings.items_per_page+")"),i=(this.setIsLoading(),this.$content.closest(".vc_grid-container").data("initial-loading-animation"));vcGridSettings.addItemsAnimation=i,t.addClass("vc_visible-item "+vcGridSettings.addItemsAnimation+" animated"),this.unsetIsLoading(),n(window).trigger("grid:items:added",this.$el)},t.prototype.filter=function(t){if(t=_.isUndefined(t)||"*"===t?"":t,this.filterValue==t)return!1;var i=this.$content.closest(".vc_grid-container").data("initial-loading-animation");vcGridSettings.addItemsAnimation=i,this.$content.find(".vc_visible-item, .vc_grid_filter-item").removeClass("vc_visible-item vc_grid_filter-item "+("none"!==vcGridSettings.addItemsAnimation?vcGridSettings.addItemsAnimation+" animated":"")),this.filterValue=t,this.$content.find(".vc_grid-item"+this.filterValue).addClass("vc_grid_filter-item"),_.defer(this.showItems),this.initScroll()},t.prototype.addItems=function(t){t&&t.length&&(t=n(t),this.$el.html(t),this.unsetIsLoading(),this.$content=t.find('[data-vc-grid-content="true"]'),this.grid.initFilter(),this.filter(),window.vc_prettyPhoto())},t.prototype.initScroll=function(){var i=this;this.$content.unbind(".vcwaypoint"),new window.VcGridInfinite(this.$content,{container:"auto",items:".vc_grid-item",handle:{load:function(t){i.showItems(),i.checkNext(t)}}})},t.prototype.checkNext=function(t){var i;this.$content.find('.vc_grid_filter-item:not(".vc_visible-item")').length&&(i=this,_.defer(function(){return i.$content.vcwaypoint(t)}))},window.vcGridStyleLazy=t})(window.jQuery);
(a=>{var t=function(t){this.grid=t,this.settings=t.settings,this.$el=!1,this.$content=!1,this.filterValue=null,this.isLoading=!1,this.htmlCache=!1,this.$loader=a('<div class="vc_grid-loading"></div>'),this.init()};t.prototype.init=function(){_.bindAll(this,"addItems","initCarousel")},t.prototype.setIsLoading=function(){this.$loader.show(),this.isLoading=!0},t.prototype.unsetIsLoading=function(){this.isLoading=!1,this.$loader.hide()},t.prototype.render=function(){this.$el=this.grid.$el,this.$content=this.$el,this.$content.append(this.$loader),this.setIsLoading(),this.grid.ajax({},this.addItems)},t.prototype.filter=function(t){var i;return t=_.isUndefined(t)||"*"===t?"":t,this.filterValue!=t&&!(!this.htmlCache||!this.htmlCache.length)&&(this.$content.data("owl.vccarousel")&&(this.$content.off("initialized.owl.vccarousel"),this.$content.off("changed.owl.vccarousel"),this.$content.data("vcPagination")&&this.$content.data("vcPagination").twbsPagination("destroy"),this.$content.data("owl.vccarousel").destroy()),this.$content.empty(),i=a(".vc_grid-item",this.htmlCache),""!==t&&(i=i.filter(t)),this.filterValue=t,void this.buildSlides(i.addClass("vc_visible-item")))},t.prototype.buildSlides=function(t){for(var i,s=parseInt(this.settings.items_per_page,10),e=0,n=t.length;e<n;e+=s)i=t.slice(e,e+s),a('<div class="vc_pageable-slide-wrapper">').append(a(i)).appendTo(this.$content);this.$content.find(".vc_pageable-slide-wrapper:first").imagesLoaded(this.initCarousel)},t.prototype.addItems=function(t){this.$el.append(t),!1===this.htmlCache&&(this.htmlCache=t),this.unsetIsLoading(),this.$content=this.$el.find('[data-vc-pageable-content="true"]'),this.$content.addClass("owl-carousel vc_grid-owl-theme"),this.grid.initFilter(),this.filter(),window.vc_prettyPhoto()},t.prototype.initCarousel=function(){var n,t;a.fn.vcOwlCarousel&&((t=(n=this).$content.data("owl.vccarousel"))&&t.destroy(),this.$content.on("initialized.owl.vccarousel",function(t){var i,s=t.relatedTarget,t=s.items(),e=n.$content.closest(".vc_grid-container").data("initial-loading-animation");t.forEach(function(t){jQuery(t).find(".vc_grid-item").addClass(e+" animated")}),-1<n.settings.paging_design.indexOf("pagination")&&(t=s.items().length,(i=a("<div></div>").addClass("vc_grid-pagination").appendTo(n.$el)).twbsPagination({totalPages:t,visiblePages:n.settings.visible_pages,onPageClick:function(t,i){s.to(i-1),window.setTimeout(function(){var t=s.$element.find(".owl-item.active");t.length&&t.offset().top<a(window).scrollTop()&&a("html, body").animate({scrollTop:t.offset().top-100},500)},16)},paginationClass:"vc_grid-pagination-list vc_grid-"+n.settings.paging_design+" vc_grid-pagination-color-"+n.settings.paging_color,nextClass:"vc_grid-next",first:20<t&&" ",last:20<t&&" ",prev:5<t&&" ",next:5<t&&" ",prevClass:"vc_grid-prev",lastClass:"vc_grid-last",loop:n.settings.loop,firstClass:"vc_grid-first",pageClass:"vc_grid-page",activeClass:"vc_grid-active",disabledClass:"vc_grid-disabled"}),a(this).data("vcPagination",i),n.$content.on("changed.owl.vccarousel",function(t){var i=a(this).data("vcPagination").data("twbsPagination");i.render(i.getPages(1+t.page.index)),i.setupEvents()}),window.vc_prettyPhoto())}).vcOwlCarousel({items:1,loop:this.settings.loop,margin:10,nav:!0,navText:["",""],navContainerClass:"vc_grid-owl-nav vc_grid-owl-nav-color-"+this.settings.arrows_color,dotClass:"vc_grid-owl-dot",dotsClass:"vc_grid-owl-dots vc_grid-"+this.settings.paging_design+" vc_grid-owl-dots-color-"+this.settings.paging_color,navClass:["vc_grid-owl-prev "+this.settings.arrows_design+" vc_grid-nav-prev-"+this.settings.arrows_position,"vc_grid-owl-next "+this.settings.arrows_design.replace("_left","_right")+" vc_grid-nav-next-"+this.settings.arrows_position],animateIn:"none"!==this.settings.animation_in&&this.settings.animation_in,animateOut:"none"!==this.settings.animation_out&&this.settings.animation_out,autoHeight:!0,autoplay:!0===this.settings.auto_play,autoplayTimeout:this.settings.speed,autoplayHoverPause:!0,callbacks:!0,onTranslated:function(){setTimeout(function(){a(window).trigger("grid:items:added",n.$el)},750)},onRefreshed:function(){setTimeout(function(){a(window).trigger("grid:items:added",n.$el)},750)}}))},window.vcGridStylePagination=t})(window.jQuery);
(n=>{var t=function(t){this.grid=t,this.settings=t.settings,this.filterValue=null,this.$el=!1,this.$content=!1,this.isLoading=!1,this.filtered=!1,this.$loader=n('<div class="vc_grid-loading"></div>'),this.masonryEnabled=!1,_.bindAll(this,"setMasonry"),this.init()};t.prototype=_.extend({},window.vcGridStyleAll.prototype,{render:function(){this.$el=this.grid.$el,this.$content=this.$el,_.defer(this.setIsLoading),this.grid.ajax({},this.addItems)},showItems:function(){var t=this.$content.find(".vc_grid-item"+this.filterValue),i=this;this.setIsLoading(),t.imagesLoaded(function(){t.addClass("vc_visible-item"),i.setItems(t),i.filtered&&(i.filtered=!1,i.setMasonry()),i.unsetIsLoading(),window.vc_prettyPhoto(),n(window).trigger("grid:items:added",i.$el)})},filter:function(t){if(t=_.isUndefined(t)||"*"===t?"":t,this.filterValue==t)return!1;this.filterValue=t,this.$content.data("masonry")&&this.$content.masonry("destroy"),this.masonryEnabled=!1,this.$content.find(".vc_visible-item").removeClass("vc_visible-item"),this.$content.find(".vc_grid-item"+this.filterValue),this.filtered=!0,n(window).on("resize",this.setMasonry),this.setMasonry(),this.showItems()},setIsLoading:function(){this.$el.append(this.$loader),this.isLoading=!0},unsetIsLoading:function(){this.isLoading=!1,this.$loader&&this.$loader.remove()},setItems:function(t){this.masonryEnabled?this.$content.masonry("appended",t):this.setMasonry()},setMasonry:function(t){var i,n,e,s;window.innerWidth<window.vcGridSettings.mobileWindowWidth?(this.$content.data("masonry")&&this.$content.masonry("destroy"),this.masonryEnabled=!1):this.masonryEnabled?(i=this).$content.imagesLoaded(function(){i.$content[0].style.display="none",i.$content[0].style.display="block",setTimeout(function(){i.$content.masonry("reloadItems"),i.$content.masonry("layout"),setTimeout(function(){i.$content.masonry("layout")},500)},200)}).progress(function(){i.$content.masonry("layout")}):(e=this.$content.closest(".vc_grid-container").data("initial-loading-animation"),s={itemSelector:".vc_visible-item",isResizeBound:!1},"none"===e?(s.hiddenStyle={visibility:"hidden",transition:"none"},s.visibleStyle={visibility:"visible",transition:"none"}):"fadeIn"===e?(s.hiddenStyle={opacity:0},s.visibleStyle={opacity:1}):(s.hiddenStyle={opacity:0,transform:"scale(0.001)"},s.visibleStyle={opacity:1,transform:"scale(1)"}),this.$content.masonry(s),t||(n=this,setTimeout(function(){n.$content.masonry(s)},100)),this.masonryEnabled=!0)}}),window.vcGridStyleAllMasonry=t})(window.jQuery);
(e=>{var i=function(i){this.grid=i,this.settings=i.settings,this.$el=!1,this.filterValue=null,this.filtered=!1,this.$content=!1,this.isLoading=!1,this.$loader=e('<div class="vc_grid-loading"></div>'),this.masonryEnabled=!1,_.bindAll(this,"setMasonry"),this.init()};i.prototype=_.extend({},window.vcGridStyleLazy.prototype,{render:function(){this.$el=this.grid.$el,this.$content=this.$el,this.setIsLoading(),this.grid.ajax({},this.addItems)},showItems:function(){if(!0===this.isLoading)return!1;this.setIsLoading();var i=this.$content.find(".vc_grid_filter-item:not(.vc_visible-item):lt("+this.settings.items_per_page+")"),t=this;i.imagesLoaded(function(){i.addClass("vc_visible-item"),t.setItems(i),t.filtered&&(t.filtered=!1,t.setMasonry(),t.initScroll(),window.vc_prettyPhoto()),t.unsetIsLoading(),e(window).trigger("grid:items:added",t.$el)})},setIsLoading:function(){this.$el.append(this.$loader),this.isLoading=!0},filter:function(i){if(i=_.isUndefined(i)||"*"===i?"":i,this.filterValue==i)return!1;this.$content.data("masonry")&&this.$content.masonry("destroy"),this.masonryEnabled=!1,this.$content.find(".vc_visible-item, .vc_grid_filter-item").removeClass("vc_visible-item vc_grid_filter-item"),this.filterValue=i,this.$content.find(".vc_grid-item"+this.filterValue).addClass("vc_grid_filter-item"),this.filtered=!0,e(window).on("resize",this.setMasonry),this.setMasonry(),_.defer(this.showItems)},setItems:function(i){this.masonryEnabled?this.$content.masonry("appended",i):this.setMasonry()},setMasonry:function(i){var t,e,s;window.innerWidth<window.vcGridSettings.mobileWindowWidth?(this.$content.data("masonry")&&this.$content.masonry("destroy"),this.masonryEnabled=!1):this.masonryEnabled?(this.$content.masonry("reloadItems"),this.$content.masonry("layout")):(e=this.$content.closest(".vc_grid-container").data("initial-loading-animation"),s={itemSelector:".vc_visible-item",isResizeBound:!1},"none"===e?(s.hiddenStyle={visibility:"hidden"},s.visibleStyle={visibility:"visible"}):"fadeIn"===e?(s.hiddenStyle={opacity:0},s.visibleStyle={opacity:1}):(s.hiddenStyle={opacity:0,transform:"scale(0.001)"},s.visibleStyle={opacity:1,transform:"scale(1)"}),this.$content.masonry(s),i||(t=this,setTimeout(function(){t.$content.masonry(s)},100)),this.masonryEnabled=!0)}}),window.vcGridStyleLazyMasonry=i})(window.jQuery);
(e=>{var t=function(t){this.grid=t,this.settings=t.settings,this.$loadMoreBtn=!1,this.$el=!1,this.filterValue=null,this.$content=!1,this.isLoading=!1,this.filtered=!1,this.$loader=e('<div class="vc_grid-loading"></div>'),this.masonryEnabled=!1,_.bindAll(this,"setMasonry"),this.init()};t.prototype=_.extend({},window.vcGridStyleLoadMore.prototype,{render:function(){this.$el=this.grid.$el,this.$content=this.$el,this.setIsLoading(),this.grid.ajax({},this.addItems)},showItems:function(){if(!0===this.isLoading)return!1;this.setIsLoading();var t=this.$content.find(".vc_grid_filter-item:not(.vc_visible-item):lt("+this.settings.items_per_page+")"),i=this;t.imagesLoaded(function(){t.addClass("vc_visible-item"),i.setItems(t),i.filtered&&(i.filtered=!1,i.setMasonry(),window.vc_prettyPhoto()),i.unsetIsLoading(),e(window).trigger("grid:items:added",i.$el),setTimeout(function(){i.$content.masonry(i.settings)},100)})},filter:function(t){if(t=_.isUndefined(t)||"*"===t?"":t,this.filterValue==t)return!1;this.$content.data("masonry")&&this.$content.masonry("destroy"),this.masonryEnabled=!1,this.$content.find(".vc_visible-item, .vc_grid_filter-item").removeClass("vc_visible-item vc_grid_filter-item"),this.filterValue=t,this.$content.find(".vc_grid-item"+this.filterValue).addClass("vc_grid_filter-item"),this.filtered=!0,e(window).on("resize",this.setMasonry),this.setMasonry(),this.showItems()},setIsLoading:function(){this.$el.append(this.$loader),this.$loadMoreBtn&&this.$loadMoreBtn.hide(),this.isLoading=!0},unsetIsLoading:function(){this.isLoading=!1,this.$loader&&this.$loader.remove(),this.setLoadMoreBtn()},setItems:function(t){this.masonryEnabled?this.$content.masonry("appended",t):this.setMasonry()},setMasonry:function(t){var i,e,s;window.innerWidth<window.vcGridSettings.mobileWindowWidth?(this.$content.data("masonry")&&this.$content.masonry("destroy"),this.masonryEnabled=!1):this.masonryEnabled?(this.$content.masonry("reloadItems"),this.$content.masonry("layout")):(e=this.$content.closest(".vc_grid-container").data("initial-loading-animation"),s={itemSelector:".vc_visible-item",isResizeBound:!1},"none"===e?(s.hiddenStyle={visibility:"hidden"},s.visibleStyle={visibility:"visible"}):"fadeIn"===e?(s.hiddenStyle={opacity:0},s.visibleStyle={opacity:1}):(s.hiddenStyle={opacity:0,transform:"scale(0.001)"},s.visibleStyle={opacity:1,transform:"scale(1)"}),this.$content.masonry(s),t||(i=this,setTimeout(function(){i.$content.masonry(s)},100)),this.masonryEnabled=!0)}}),window.vcGridStyleLoadMoreMasonry=t})(window.jQuery);
(s=>{var n,a={addItemsAnimation:"zoomIn",mobileWindowWidth:768,itemAnimationSpeed:1e3,itemAnimationDelay:[],clearAnimationDelays:function(){_.each(this.itemAnimationDelay,function(i){window.clearTimeout(i)}),this.itemAnimationDelay=[]}};(n=function(i){this.$el=s(i),this.settings={},this.$filter=!1,this.gridBuilder=!1,this.init()}).prototype.init=function(){_.bindAll(this,"filterItems","filterItemsDropdown"),this.setSettings(),this.initStyle(),this.initHover(),this.initZoneLink()},n.prototype.setSettings=function(){this.settings=s.extend({visible_pages:5},this.$el.data("vcGridSettings")||{})},n.prototype.initStyle=function(){var i=!!this.settings.style&&s.camelCase("vc-grid-style-"+this.settings.style);i&&!_.isUndefined(window[i])&&window[i].prototype.render&&(this.gridBuilder=new window[i](this),this.gridBuilder.render())},n.prototype.initFilter=function(){this.$filter=this.$el.find("[data-vc-grid-filter]"),this.$filterDropdown=this.$el.find("[data-vc-grid-filter-select]"),this.$filter.length&&this.$filter.find(".vc_grid-filter-item").off("click.vc-grid").on("click.vc-grid",this.filterItems),this.$filterDropdown.length&&this.$filterDropdown.off("change.vc-grid").on("change.vc-grid",this.filterItemsDropdown)},n.prototype.initHover=function(){this.$el.off("mouseover.vc-grid").off("mouseleave.vc-grid").on("mouseover.vc-grid",".vc_grid-item-mini",function(){s(this).addClass("vc_is-hover")}).on("mouseleave.vc-grid",".vc_grid-item-mini",function(){s(this).removeClass("vc_is-hover")})},n.prototype.initZoneLink=function(){window.vc_iframe?(this.$el.off("click.zonePostLink").on("click.zonePostLink","[data-vc-link]",function(){s(this);var i=s(this).data("vcLink");window.open(i)}),this.$el.off("click.vc-grid-zone").on("click.vc-grid-zone",".vc_gitem-link",function(i){i&&i.prevenDefault&&i.preventDefault();i=s(this);i.hasClass("vc-gitem-link-ajax")||i.hasClass("prettyphoto")||window.open(i.attr("href"))})):(this.$el.off("click.zonePostLink").on("click.zonePostLink","[data-vc-link]",function(){var i=s(this),t=s(this).data("vcLink");"_blank"===i.data("vcTarget")?window.open(t):window.location.href=t}),this.$el.off("click.vc-grid-zone").on("click.vc-grid-zone",".vc_gitem-link",function(i){var t,e,n,a=s(this);a.hasClass("vc-gitem-link-ajax")&&(i.preventDefault(),t=new XMLHttpRequest,a.addClass("vc-spinner"),t.open("GET",a.attr("href"),!0),t.send(),e=function(){a.removeClass("vc-spinner vc-spinner-complete vc-spinner-failed")},n=0,t.onreadystatechange=function(){XMLHttpRequest.DONE===t.readyState&&(n=(200===t.status?a.addClass("vc-spinner-complete"):a.addClass("vc-spinner-failed"),n&&(window.clearTimeout(n),n=0),window.setTimeout(e,500)))})}))},n.prototype.initHover_old=function(){this.$el.on("mouseover",".vc_grid-item",function(){var n=s(this);n.hasClass("vc_is-hover")||(a.clearAnimationDelays(),n.addClass("vc_is-hover vc_is-animated"),n.find(".vc_grid-item-row-animate").each(function(){var i=s(this),t=i.data("animationIn"),e=i.data("animationOut");i.removeClass(e).addClass(t),a.itemAnimationDelay.push(_.delay(function(){i.removeClass(t),n.removeClass("vc_is-animated")},a.itemAnimationSpeed))}))}).on("mouseleave",".vc_grid-item",function(){var n=s(this);a.clearAnimationDelays(),n.addClass("vc_is-animated").removeClass("vc_is-hover"),n.find(".vc_grid-item-row-animate").each(function(){var i=n.find(".vc_grid-item-row-animate"),t=i.data("animationOut"),e=i.data("animationIn");i.addClass(t),a.itemAnimationDelay.push(_.delay(function(){i.removeClass(t+" "+e),n.removeClass("vc_is-animated")},a.itemAnimationSpeed-1))})})},n.prototype.filterItems=function(i){var t;if(i&&i.preventDefault&&i.preventDefault(),this.style&&s.camelCase("filter-"+this.style),t=(i=s(i.currentTarget).find("[data-vc-grid-filter-value]")).data("vcGridFilterValue"),i.hasClass("vc_active"))return!1;this.$filter.find(".vc_active").removeClass("vc_active"),this.$filterDropdown.find(".vc_active").removeClass("vc_active"),this.$filterDropdown.find('[value="'+t+'"]').addClass("vc_active").attr("selected","selected"),i.parent().addClass("vc_active"),this.gridBuilder.filter(t)},n.prototype.filterItemsDropdown=function(){var i=this.$filterDropdown.find(":selected"),t=i.val();if(i.hasClass("vc_active"))return!1;this.$filterDropdown.find(".vc_active").removeClass("vc_active"),this.$filter.find(".vc_active").removeClass("vc_active"),this.$filter.find('[data-vc-grid-filter-value="'+t+'"]').parent().addClass("vc_active"),i.addClass("vc_active"),this.gridBuilder.filter(t)},n.prototype.ajax=function(i,t){_.isUndefined(i)&&(i={}),i=_.extend({action:"vc_get_vc_grid_data",vc_action:"vc_get_vc_grid_data",tag:this.settings.tag,data:this.settings,vc_post_id:this.$el.data("vcPostId"),_vcnonce:this.$el.data("vcPublicNonce")},i),s.ajax({type:"POST",dataType:"html",url:this.$el.data("vcRequest"),data:i}).done(t)},s.fn.vcGrid=function(e){return this.each(function(){var i=s(this),t=i.data("vcGrid");t||i.data("vcGrid",t=new n(this)),"string"==typeof e&&t[e]()})},s.fn.vcGrid.Constructor=n,s(document).ready(function(){s("[data-vc-grid-settings]").vcGrid()}),window.VcGrid=n,window.vcGridSettings=a})(window.jQuery);