File: /www/wwwroot/healthyton.com/wp-content/cache/minify/caf0d.js
/*! This file is auto-generated */
(()=>{"use strict";var e={n:t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return e.d(n,{a:n}),n},d:(t,n)=>{for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{setup:()=>d,speak:()=>p});const n=window.wp.domReady;var o=e.n(n);const i=window.wp.i18n;function a(e="polite"){const t=document.createElement("div");t.id=`a11y-speak-${e}`,t.className="a11y-speak-region",t.setAttribute("style","position: absolute;margin: -1px;padding: 0;height: 1px;width: 1px;overflow: hidden;clip: rect(1px, 1px, 1px, 1px);-webkit-clip-path: inset(50%);clip-path: inset(50%);border: 0;word-wrap: normal !important;"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions text"),t.setAttribute("aria-atomic","true");const{body:n}=document;return n&&n.appendChild(t),t}let r="";function d(){const e=document.getElementById("a11y-speak-intro-text"),t=document.getElementById("a11y-speak-assertive"),n=document.getElementById("a11y-speak-polite");null===e&&function(){const e=document.createElement("p");e.id="a11y-speak-intro-text",e.className="a11y-speak-intro-text",e.textContent=(0,i.__)("Notifications"),e.setAttribute("style","position: absolute;margin: -1px;padding: 0;height: 1px;width: 1px;overflow: hidden;clip: rect(1px, 1px, 1px, 1px);-webkit-clip-path: inset(50%);clip-path: inset(50%);border: 0;word-wrap: normal !important;"),e.setAttribute("hidden","hidden");const{body:t}=document;t&&t.appendChild(e)}(),null===t&&a("assertive"),null===n&&a("polite")}function p(e,t){!function(){const e=document.getElementsByClassName("a11y-speak-region"),t=document.getElementById("a11y-speak-intro-text");for(let t=0;t<e.length;t++)e[t].textContent="";t&&t.setAttribute("hidden","hidden")}(),e=function(e){return e=e.replace(/<[^<>]+>/g," "),r===e&&(e+=" "),r=e,e}(e);const n=document.getElementById("a11y-speak-intro-text"),o=document.getElementById("a11y-speak-assertive"),i=document.getElementById("a11y-speak-polite");o&&"assertive"===t?o.textContent=e:i&&(i.textContent=e),n&&n.removeAttribute("hidden")}o()(d),(window.wp=window.wp||{}).a11y=t})();
;/*!
* jQuery UI Autocomplete 1.13.3
* https://jqueryui.com
*
* Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
* https://jquery.org/license
*/
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./menu","../keycode","../position","../safe-active-element","../version","../widget"],e):e(jQuery)}(function(o){"use strict";return o.widget("ui.autocomplete",{version:"1.13.3",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,liveRegionTimer:null,_create:function(){var i,s,n,e=this.element[0].nodeName.toLowerCase(),t="textarea"===e,e="input"===e;this.isMultiLine=t||!e&&this._isContentEditable(this.element),this.valueMethod=this.element[t||e?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(e){if(this.element.prop("readOnly"))s=n=i=!0;else{s=n=i=!1;var t=o.ui.keyCode;switch(e.keyCode){case t.PAGE_UP:i=!0,this._move("previousPage",e);break;case t.PAGE_DOWN:i=!0,this._move("nextPage",e);break;case t.UP:i=!0,this._keyEvent("previous",e);break;case t.DOWN:i=!0,this._keyEvent("next",e);break;case t.ENTER:this.menu.active&&(i=!0,e.preventDefault(),this.menu.select(e));break;case t.TAB:this.menu.active&&this.menu.select(e);break;case t.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(e),e.preventDefault());break;default:s=!0,this._searchTimeout(e)}}},keypress:function(e){if(i)i=!1,this.isMultiLine&&!this.menu.element.is(":visible")||e.preventDefault();else if(!s){var t=o.ui.keyCode;switch(e.keyCode){case t.PAGE_UP:this._move("previousPage",e);break;case t.PAGE_DOWN:this._move("nextPage",e);break;case t.UP:this._keyEvent("previous",e);break;case t.DOWN:this._keyEvent("next",e)}}},input:function(e){n?(n=!1,e.preventDefault()):this._searchTimeout(e)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(e){clearTimeout(this.searching),this.close(e),this._change(e)}}),this._initSource(),this.menu=o("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().attr({unselectable:"on"}).menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(e){e.preventDefault()},menufocus:function(e,t){var i,s;this.isNewMenu&&(this.isNewMenu=!1,e.originalEvent)&&/^mouse/.test(e.originalEvent.type)?(this.menu.blur(),this.document.one("mousemove",function(){o(e.target).trigger(e.originalEvent)})):(s=t.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",e,{item:s})&&e.originalEvent&&/^key/.test(e.originalEvent.type)&&this._value(s.value),(i=t.item.attr("aria-label")||s.value)&&String.prototype.trim.call(i).length&&(clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay(function(){this.liveRegion.html(o("<div>").text(i))},100)))},menuselect:function(e,t){var i=t.item.data("ui-autocomplete-item"),s=this.previous;this.element[0]!==o.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=s,this._delay(function(){this.previous=s,this.selectedItem=i})),!1!==this._trigger("select",e,{item:i})&&this._value(i.value),this.term=this._value(),this.close(e),this.selectedItem=i}}),this.liveRegion=o("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(e,t){this._super(e,t),"source"===e&&this._initSource(),"appendTo"===e&&this.menu.element.appendTo(this._appendTo()),"disabled"===e&&t&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(e){var t=this.menu.element[0];return e.target===this.element[0]||e.target===t||o.contains(t,e.target)},_closeOnClickOutside:function(e){this._isEventTargetInWidget(e)||this.close()},_appendTo:function(){var e=this.options.appendTo;return e=(e=(e=e&&(e.jquery||e.nodeType?o(e):this.document.find(e).eq(0)))&&e[0]?e:this.element.closest(".ui-front, dialog")).length?e:this.document[0].body},_initSource:function(){var i,s,n=this;Array.isArray(this.options.source)?(i=this.options.source,this.source=function(e,t){t(o.ui.autocomplete.filter(i,e.term))}):"string"==typeof this.options.source?(s=this.options.source,this.source=function(e,t){n.xhr&&n.xhr.abort(),n.xhr=o.ajax({url:s,data:e,dataType:"json",success:function(e){t(e)},error:function(){t([])}})}):this.source=this.options.source},_searchTimeout:function(s){clearTimeout(this.searching),this.searching=this._delay(function(){var e=this.term===this._value(),t=this.menu.element.is(":visible"),i=s.altKey||s.ctrlKey||s.metaKey||s.shiftKey;e&&(t||i)||(this.selectedItem=null,this.search(null,s))},this.options.delay)},search:function(e,t){return e=null!=e?e:this._value(),this.term=this._value(),e.length<this.options.minLength?this.close(t):!1!==this._trigger("search",t)?this._search(e):void 0},_search:function(e){this.pending++,this._addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:e},this._response())},_response:function(){var t=++this.requestIndex;return function(e){t===this.requestIndex&&this.__response(e),this.pending--,this.pending||this._removeClass("ui-autocomplete-loading")}.bind(this)},__response:function(e){e=e&&this._normalize(e),this._trigger("response",null,{content:e}),!this.options.disabled&&e&&e.length&&!this.cancelSearch?(this._suggest(e),this._trigger("open")):this._close()},close:function(e){this.cancelSearch=!0,this._close(e)},_close:function(e){this._off(this.document,"mousedown"),this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",e))},_change:function(e){this.previous!==this._value()&&this._trigger("change",e,{item:this.selectedItem})},_normalize:function(e){return e.length&&e[0].label&&e[0].value?e:o.map(e,function(e){return"string"==typeof e?{label:e,value:e}:o.extend({},e,{label:e.label||e.value,value:e.value||e.label})})},_suggest:function(e){var t=this.menu.element.empty();this._renderMenu(t,e),this.isNewMenu=!0,this.menu.refresh(),t.show(),this._resizeMenu(),t.position(o.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(),this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var e=this.menu.element;e.outerWidth(Math.max(e.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(i,e){var s=this;o.each(e,function(e,t){s._renderItemData(i,t)})},_renderItemData:function(e,t){return this._renderItem(e,t).data("ui-autocomplete-item",t)},_renderItem:function(e,t){return o("<li>").append(o("<div>").text(t.label)).appendTo(e)},_move:function(e,t){this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(e)||this.menu.isLastItem()&&/^next/.test(e)?(this.isMultiLine||this._value(this.term),this.menu.blur()):this.menu[e](t):this.search(null,t)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(e,t){this.isMultiLine&&!this.menu.element.is(":visible")||(this._move(e,t),t.preventDefault())},_isContentEditable:function(e){var t;return!!e.length&&("inherit"===(t=e.prop("contentEditable"))?this._isContentEditable(e.parent()):"true"===t)}}),o.extend(o.ui.autocomplete,{escapeRegex:function(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(e,t){var i=new RegExp(o.ui.autocomplete.escapeRegex(t),"i");return o.grep(e,function(e){return i.test(e.label||e.value||e)})}}),o.widget("ui.autocomplete",o.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(e){return e+(1<e?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(e){var t;this._superApply(arguments),this.options.disabled||this.cancelSearch||(t=e&&e.length?this.options.messages.results(e.length):this.options.messages.noResults,clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay(function(){this.liveRegion.html(o("<div>").text(t))},100))}}),o.ui.autocomplete});
;(function($){'use strict';var selectors={'wrapper':'div[role=search]','form':'form.g1-searchform-ajax','input':'form.g1-searchform-ajax input.search-field','results':'.g1-searches-ajax','seeAll':'.bimber-see-all-results'};g1.ajaxSearch=function(){if(!$.fn.autocomplete){return;}
var minLength=2;$(selectors.input).each(function(){var $input=$(this);var $form=$input.parents(selectors.form);var $wrapper=$input.parents(selectors.wrapper);$input.autocomplete({'appendTo':$form,'delay':500,'minLength':minLength,'source':function(request){var xhr=$.ajax({'type':'GET','url':g1.config.ajax_url,'dataType':'json','data':{'action':'bimber_search','bimber_term':request.term}});xhr.done(function(res){if(res.status==='success'){$wrapper.find(selectors.results).html(res.html);}});}});$input.on('keyup search',function(){if($(this).val().length<minLength){$wrapper.find(selectors.results).html('');}});$wrapper.on('click',selectors.seeAll,function(e){e.preventDefault();$form.submit();});});};$(document).ready(function(){g1.ajaxSearch();});})(jQuery);;(function($){'use strict';g1.customShareButtons=function(){openCustomSharesInNewWindow();};function openCustomSharesInNewWindow(){$('.mashicon-pinterest, .mashicon-google').click(function(e){var winWidth=750;var winHeight=550;var winTop=(screen.height/2)-(winHeight/2);var winLeft=(screen.width/2)-(winWidth/2);var url=$(this).attr('href');if('#'===url){url=$(this).attr('data-mashsb-url');}
window.open(url,'sharer','top='+winTop+',left='+winLeft+',toolbar=0,status=0,width='+winWidth+',height='+winHeight);e.preventDefault();});}
$('body').on('g1NewContentLoaded',function(){if(typeof lashare_fb=="undefined"&&typeof mashsb!=='undefined'){$('.mashicon-facebook').click(function(mashfb){var winWidth=520;var winHeight=550;var winTop=(screen.height/2)-(winHeight/2);var winLeft=(screen.width/2)-(winWidth/2);var url=$(this).attr('href');window.open(url,'sharer','top='+winTop+',left='+winLeft+',toolbar=0,status=0,width='+winWidth+',height='+winHeight);mashfb.preventDefault(mashfb);return false;});}
if(typeof mashsb!=='undefined'){$('.mashicon-twitter').click(function(e){var winWidth=520;var winHeight=350;var winTop=(screen.height/2)-(winHeight/2);var winLeft=(screen.width/2)-(winWidth/2);var url=$(this).attr('href');if(mashsb.twitter_popup==='1'){window.open(url,'sharer','top='+winTop+',left='+winLeft+',toolbar=0,status=0,width='+winWidth+',height='+winHeight);}
e.preventDefault();return false;});}});})(jQuery);(function($){'use strict';g1.customizeShareButtons=function(){overrideOnOffSwitch();subscribeViaMailbox();};function overrideOnOffSwitch(){var $onoffswitch=$('.onoffswitch');var $onoffswitch2=$('.onoffswitch2');$onoffswitch.off('click');$onoffswitch2.off('click');$onoffswitch.on('click',function(){var $container=$(this).parents('.mashsb-container');$('.onoffswitch',$container).hide();$('.secondary-shares',$container).show();$('.onoffswitch2',$container).show();});$onoffswitch2.on('click',function(){var $container=$(this).parents('.mashsb-container');$('.onoffswitch',$container).show();$('.secondary-shares',$container).hide();});}
function subscribeViaMailbox(){if(typeof mashsb!=='undefined'&&mashsb.subscribe==='content'){return;}
if(typeof mashsb!=='undefined'&&mashsb.subscribe_url!==''){return;}
$('a.mashicon-subscribe').each(function(){var $link=$(this);if($link.attr('href')==='#'){$link.off('click');var postTitle=$('head > title').text();var postUrl=location.href;var subject=g1.config.i18n.newsletter.subscribe_mail_subject_tpl.replace('%subject%',postTitle);var body=postTitle+'%0A%0A'+postUrl;var mailTo='mailto:?subject={subject}&body={body}';mailTo=mailTo.replace('{subject}',subject);mailTo=mailTo.replace('{body}',body);$link.attr('href',mailTo);}});}})(jQuery);(function($){'use strict';g1.shareBarTopOffsetSelectors=['#wpadminbar'];g1.shareBar=function(){var $shareBar=g1.activateShareBar();$('body').on('g1PageHeightChanged',function(){if($shareBar!==false){g1.updateShareBarPosition($shareBar);}});enquire.register('screen and ( min-width: 801px )',{match:function(){if($shareBar!==false){g1.updateShareBarPosition($shareBar);}},unmatch:function(){if($shareBar!==false){g1.updateShareBarPosition($shareBar);}}});};g1.activateShareBar=function(){var $shareBar=$('.g1-sharebar');var $shareButtons=$('.mashsb-main:first');if($shareBar.length===0||$shareButtons.length===0){return false;}
var $shareBarInner=$shareBar.find('.g1-sharebar-inner');if(!$shareBar.is('.g1-sharebar-loaded')){var $clonedShareButtons=$shareButtons.clone(true);if(typeof mashsb!=='undefined'&&mashsb.animate_shares==='1'&&$clonedShareButtons.find('.mashsbcount').length){$clonedShareButtons.find('.mashsbcount').text(mashsb.shares);}
$shareBarInner.append($clonedShareButtons);$shareBar.addClass('g1-sharebar-loaded');g1.updateShareBarPosition($shareBar);}
new Waypoint({element:$('body'),handler:function(direction){if(direction==='down'){$shareBar.addClass('g1-sharebar-on');$shareBar.removeClass('g1-sharebar-off');}else{$shareBar.removeClass('g1-sharebar-on');$shareBar.addClass('g1-sharebar-off');}},offset:function(){return-100;}});return $shareBar;};g1.updateShareBarPosition=function($shareBar){var shareBarWidth=parseInt($shareBar.outerWidth(),10);var cssMediaQueryBreakpoint=800;if(shareBarWidth<=cssMediaQueryBreakpoint){$shareBar.css('top','');}else{var top=0;for(var i=0;i<g1.shareBarTopOffsetSelectors.length;i++){var $element=$(g1.shareBarTopOffsetSelectors[i]);if($element.length>0&&$element.is(':visible')){top+=parseInt($element.outerHeight(),10);}}
$shareBar.css('top',top+'px');}};})(jQuery);(function($){'use strict';g1.loadNextPostConfig={'offset':'500%'};var selectors={'button':'.bimber-load-next-post','urlWaypoint':'.bimber-url-waypoint','elementButton':'.g1-auto-load-button'};g1.loadNextPost=function(){var mainUrl=window.location.href;var autoLoadLimit=g1.config.auto_load_limit;var loadedPosts=0;var loadNextEvent=function(e){e.preventDefault();if(autoLoadLimit>0&&loadedPosts>=autoLoadLimit){$(this).remove();return;}
var $button=$(this);var template='classic';if($('#secondary').length===0){template='row';}
$button.css('position','relative');$button.addClass('g1-collection-more-loading');var postUrl=$('a',this).attr('href');var gaPostUrl=$('a',this).attr('data-bimber-analytics-href');var url=postUrl+'?bimber_auto_load_next_post_template='+template;$('a',this).remove();var xhr=$.get(url);loadedPosts+=1;xhr.done(function(data){var $html=$($.parseHTML(data,document,true));var $content=$html.find('#content');var title=$($content.find('.entry-title')[0]).text();$content.find('#secondary').remove();var $insta=$('script[src="//platform.instagram.com/en_US/embeds.js"]');var mejsLoaded=typeof window.wp!=='undefined'&&typeof window.wp.mediaelement!=='undefined';if(!mejsLoaded){var matches=data.match(/<script(.|\n)*?<\/script>/g);var mejsCode='';matches.forEach(function(match){if(match.indexOf('mejs')>0||match.indexOf('mediaelement')>0){match=match.replace('<script','<script async');mejsCode+=match;}});matches=data.match(/<link(.|\n)*?\/>/g);matches.forEach(function(match){if(match.indexOf('mejs')>0||match.indexOf('mediaelement')>0){mejsCode+=match;}});$button.after(mejsCode);}
$button.before('<div class="g1-divider"></div>');$('body').trigger('g1BeforeNewContentReady',[$content]);var $scope=$($content.html()).insertAfter($button);if($insta.length>0){window.instgrm.Embeds.process();}
$button.remove();$('body').trigger('g1NewContentLoaded',[$scope]);if(typeof window.wp!=='undefined'&&typeof window.wp.mediaelement!=='undefined'){window.wp.mediaelement.initialize();}
if(typeof ga!=='undefined'&&typeof ga.getAll!=='undefined'){ga('create',ga.getAll()[0].get('trackingId'),'auto');ga('set',{location:gaPostUrl,title:title});ga('send','pageview');}
var $nonce=$html.find('#bimber-wpp-nonce');if($nonce.length>0){var nonce=$nonce.attr('data-bimber-wpp-nonce');var postId=$nonce.attr('data-bimber-wpp-id');g1.updatePostViews(nonce,postId);}
bindEvents();});xhr.always(function(){$button.removeClass('g1-collection-more-loading');});};var bindEvents=function(){$(selectors.button).click(loadNextEvent);$(selectors.elementButton).click(function(){window.history.replaceState({},'',mainUrl);});$(selectors.button).waypoint(function(direction){if('down'===direction){$(selectors.button).trigger('click');}},{offset:g1.loadNextPostConfig.offset});$(selectors.urlWaypoint).waypoint(function(direction){var $waypoint=$(this.element);if('up'===direction){var $waypointUp=$waypoint.parent('article').prev('.bimber-url-waypoint');if($waypointUp.length>0){$waypoint=$waypointUp;}}
var url=$waypoint.attr('data-bimber-post-url');var title=$waypoint.attr('data-bimber-post-title');var currentUrl=window.location.href;if(url!==currentUrl){var $article=$waypoint.next('article');var $mashShare=$('.mashsb-container',$article);var $shareBar=$('.g1-sharebar .g1-sharebar-inner');if($mashShare.length>0&&$.trim($shareBar.html())){$shareBar.html($mashShare[0].outerHTML);}
var $essbShare=$('.essb_topbar_inner',$article);var $essbBar=$('.essb_topbar_inner');if($essbShare.length>0&&$.trim($essbBar.html())){$essbBar.html($essbShare[0].outerHTML);}
g1.customizeShareButtons();window.history.replaceState({},'',url);document.title=title;}});};bindEvents();};})(jQuery);(function($){'use strict';var selectors={'wrapper':'.g1-comments','tabs':'.g1-tab-items > li','tab':'.g1-tab-item','currentTab':'.g1-tab-item-current','commentType':'.g1-comment-type'};var classes={'currentTab':'g1-tab-item-current','currentType':'g1-tab-pane-current','type':'g1-tab-pane','loading':'g1-loading','loaded':'g1-loaded'};var $wrapper;g1.comments=function(){$wrapper=$(selectors.wrapper);if($wrapper.length===0){return;}
if($wrapper.find('.cace-comments').length>0){return;}
g1.facebookComments();g1.disqusComments();initTabs();};var initTabs=function(){var $tabs=$wrapper.find(selectors.tabs);var currentType=$tabs.filter(selectors.currentTab).attr('data-bimber-type');if(!currentType){var types=g1.config.comment_types;if(types&&types.length>0){currentType=types[0];}else{currentType='wp';}}
$wrapper.find(selectors.commentType).each(function(){var $type=$(this);$type.addClass(classes.type);});if('dsq'===currentType){setTimeout(function(){selectTab(currentType);},1000);}else{selectTab(currentType);}
$tabs.on('click',function(){var type=$(this).attr('data-bimber-type');selectTab(type);});};var selectTab=function(type){var $tab=$wrapper.find(selectors.tab+'-'+type);var $type=$wrapper.find(selectors.commentType+'-'+type);if('fb'===type){if(!$type.hasClass(classes.loaded)){$type.addClass(classes.loading);}}
$wrapper.find(selectors.commentType).removeClass(classes.currentType);$type.addClass(classes.currentType);$type.trigger('loadComments');$wrapper.find(selectors.tabs).removeClass(classes.currentTab);$tab.addClass(classes.currentTab);};})(jQuery);(function($){'use strict';var selectors={'wrapper':'.g1-comment-type-fb','counter':'.g1-comment-count','list':'.g1-comment-list','tab':'.g1-comments .g1-tab-item-fb'};var classes={'loading':'g1-loading','loaded':'g1-loaded'};var $wrapper;var loaded=false;g1.facebookComments=function(){$wrapper=$(selectors.wrapper);if(!$wrapper.is('.g1-on-demand')){loaded=true;}
if($wrapper.length>0){init();return $wrapper;}else{return false;}};var init=function(){var origFbAsyncInit=window.fbAsyncInit;window.fbAsyncInit=function(){if(typeof FB==='undefined'){return;}
FB.Event.subscribe('xfbml.render',function(){$wrapper.removeClass(classes.loading);$wrapper.addClass(classes.loaded);var $counter=$wrapper.find(selectors.counter);var url=$counter.find('.fb_comments_count').attr('data-bimber-graph-api-url');FB.api('/'+url,'GET',{'fields':'engagement'},function(response){if(response.engagement){var count=response.engagement.comment_plugin_count;$('.fb_comments_count').html(count);}});var realCount=parseInt($counter.find('.fb_comments_count').text(),10);var postCount=parseInt($counter.attr('data-bimber-fb-comment-count'),10);if(realCount!==postCount){save(realCount);}});FB.Event.subscribe('comment.create',function(){changeCommentsNumber(1);});FB.Event.subscribe('comment.remove',function(){changeCommentsNumber(-1);});if(typeof origFbAsyncInit==='function'){origFbAsyncInit();}};$wrapper.on('loadComments',function(){if(loaded){return;}
$wrapper.addClass(classes.loading);loadComments(function(html){g1.resetFacebookSDK();$wrapper.find(selectors.list).html(html);$wrapper.removeClass(classes.loading);});});};var changeCommentsNumber=function(diff){var $counter=$wrapper.find(selectors.counter);var postCount=parseInt($counter.attr('data-bimber-fb-comment-count'),10);postCount+=diff;$wrapper.find('.fb_comments_count').text(postCount);$counter.attr('data-bimber-fb-comment-count',postCount);var $postCommentCount=$wrapper.parents('#content').find('.entry-comments-link strong');var postCommentCount=parseInt($postCommentCount.text(),10);$postCommentCount.text(postCommentCount+diff);var $fbCount=$(selectors.tab).find('a > span');if($fbCount.length>0){var fbCount=parseInt($fbCount.text(),10);$fbCount.text(fbCount+diff);}
save(postCount);};var save=function(newCount){var postId=$wrapper.find(selectors.counter).attr('data-bimber-post-id');var nonce=$wrapper.find(selectors.counter).attr('data-bimber-nonce');$.ajax({'type':'POST','url':g1.config.ajax_url,'dataType':'json','data':{'action':'bimber_update_fb_comment_count','post_id':postId,'security':nonce,'count':newCount}});};var loadComments=function(callback){var postId=$wrapper.find(selectors.counter).attr('data-bimber-post-id');var xhr=$.ajax({'type':'GET','url':g1.config.ajax_url,'data':{'action':'bimber_load_fbcommentbox','post_id':postId}});xhr.done(function(res){callback(res);loaded=true;});};})(jQuery);(function($){'use strict';var selectors={'wrapper':'.g1-comment-type-dsq','counter':'.g1-comment-count','list':'.g1-comment-list','tab':'.g1-comments .g1-tab-item-dsq'};var classes={'loading':'g1-loading'};var $wrapper;var loaded=false;g1.disqusComments=function(){$wrapper=$(selectors.wrapper);if($wrapper.length>0){init();return $wrapper;}else{return false;}};var init=function(){var origDsqConfig=window.disqus_config;window.disqus_config=function(){if(typeof origDsqConfig==='function'){origDsqConfig();$wrapper.removeClass(classes.loading);loaded=true;}
var $counter=$wrapper.find(selectors.counter);var realCount=parseInt($counter.find('.disqus-comment-count').text(),10);var postCount=parseInt($counter.attr('data-bimber-dsq-comment-count'),10);if(realCount!==postCount){save(realCount);}
this.callbacks.onNewComment=[function(){changeCommentsNumber(1);}];};$wrapper.on('loadComments',function(){if(loaded){return;}
$wrapper.addClass(classes.loading);loadComments();});};var changeCommentsNumber=function(diff){var $counter=$wrapper.find(selectors.counter);var postCount=parseInt($counter.attr('data-bimber-dsq-comment-count'),10);postCount+=diff;$wrapper.find('.disqus-comment-count').text(postCount);$counter.attr('data-bimber-dsq-comment-count',postCount);var $postCommentCount=$wrapper.parents('#content').find('.entry-comments-link strong');var postCommentCount=parseInt($postCommentCount.text(),10);$postCommentCount.text(postCommentCount+diff);var $dsqCount=$(selectors.tab).find('a > span');if($dsqCount.length>0){var dsqCount=parseInt($dsqCount.text(),10);$dsqCount.text(dsqCount+diff);}
save(postCount);};var save=function(newCount){var postId=$wrapper.find(selectors.counter).attr('data-bimber-post-id');var nonce=$wrapper.find(selectors.counter).attr('data-bimber-nonce');$.ajax({'type':'POST','url':g1.config.ajax_url,'dataType':'json','data':{'action':'bimber_dsq_update_comment_count','post_id':postId,'security':nonce,'count':newCount}});};var loadComments=function(){var dsq=document.createElement('script');dsq.type='text/javascript';dsq.async=true;dsq.src='https://'+disqus_shortname+'.disqus.com/embed.js';(document.getElementsByTagName('head')[0]||document.getElementsByTagName('body')[0]).appendChild(dsq);};})(jQuery);(function($){'use strict';$(document).ready(function(){g1.customShareButtons();g1.customizeShareButtons();if(g1.config.sharebar==='on'){g1.shareBar();}
g1.comments();g1.loadNextPost();});})(jQuery);;(function($){"use strict";$(document).ready(function(){});$(window).load(function(){});})(jQuery);
;/*!
* WPBakery Page Builder v6.0.0 (https://wpbakery.com)
* Copyright 2011-2021 Michael M, WPBakery
* License: Commercial. More details: http://go.wpbakery.com/licensing
*/
// jscs:disable
// jshint ignore: start
document.documentElement.className+=" js_active ",document.documentElement.className+="ontouchstart"in document.documentElement?" vc_mobile ":" vc_desktop ",function(){for(var prefix=["-webkit-","-moz-","-ms-","-o-",""],i=0;i<prefix.length;i++)prefix[i]+"transform"in document.documentElement.style&&(document.documentElement.className+=" vc_transform ")}(),function($){"function"!=typeof window.vc_js&&(window.vc_js=function(){"use strict";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(),jQuery(document).trigger("vc_js"),window.setTimeout(vc_waypoints,500)}),"function"!=typeof window.vc_plugin_flexslider&&(window.vc_plugin_flexslider=function($parent){($parent?$parent.find(".wpb_flexslider"):jQuery(".wpb_flexslider")).each(function(){var this_element=jQuery(this),sliderTimeout=1e3*parseInt(this_element.attr("data-interval"),10),sliderFx=this_element.attr("data-flex_fx"),slideshow=0==sliderTimeout?!1:!0;this_element.is(":visible")&&this_element.flexslider({animation:sliderFx,slideshow:slideshow,slideshowSpeed:sliderTimeout,sliderSpeed:800,smoothHeight:!0})})}),"function"!=typeof window.vc_googleplus&&(window.vc_googleplus=function(){0<jQuery(".wpb_googleplus").length&&function(){var po=document.createElement("script");po.type="text/javascript",po.async=!0,po.src="https://apis.google.com/js/plusone.js";var s=document.getElementsByTagName("script")[0];s.parentNode.insertBefore(po,s)}()}),"function"!=typeof window.vc_pinterest&&(window.vc_pinterest=function(){0<jQuery(".wpb_pinterest").length&&function(){var po=document.createElement("script");po.type="text/javascript",po.async=!0,po.src="https://assets.pinterest.com/js/pinit.js";var s=document.getElementsByTagName("script")[0];s.parentNode.insertBefore(po,s)}()}),"function"!=typeof window.vc_progress_bar&&(window.vc_progress_bar=function(){void 0!==jQuery.fn.vcwaypoint&&jQuery(".vc_progress_bar").each(function(){var $el=jQuery(this);$el.vcwaypoint(function(){$el.find(".vc_single_bar").each(function(index){var bar=jQuery(this).find(".vc_bar"),val=bar.data("percentage-value");setTimeout(function(){bar.css({width:val+"%"})},200*index)})},{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 $el=jQuery(this);$el.vcwaypoint(function(){$el.addClass("wpb_start_animation animated")},{offset:"85%"})})}),"function"!=typeof window.vc_toggleBehaviour&&(window.vc_toggleBehaviour=function($el){function event(content){content&&content.preventDefault&&content.preventDefault();var element=jQuery(this).closest(".vc_toggle"),content=element.find(".vc_toggle_content");element.hasClass("vc_toggle_active")?content.slideUp({duration:300,complete:function(){element.removeClass("vc_toggle_active")}}):content.slideDown({duration:300,complete:function(){element.addClass("vc_toggle_active")}})}($el?$el.hasClass("vc_toggle_title")?$el.unbind("click"):$el.find(".vc_toggle_title").off("click"):jQuery(".vc_toggle_title").off("click")).on("click",event)}),"function"!=typeof window.vc_tabsBehaviour&&(window.vc_tabsBehaviour=function(ver){var $call,old_version;jQuery.ui&&($call=ver||jQuery(".wpb_tabs, .wpb_tour"),ver=jQuery.ui&&jQuery.ui.version?jQuery.ui.version.split("."):"1.10",old_version=1===parseInt(ver[0],10)&&parseInt(ver[1],10)<9,$call.each(function(index){var interval=jQuery(this).attr("data-interval"),tabs_array=[],$tabs=jQuery(this).find(".wpb_tour_tabs_wrapper").tabs({show:function(event,ui){wpb_prepare_tab_content(event,ui)},activate:function(event,ui){wpb_prepare_tab_content(event,ui)}});if(interval&&0<interval)try{$tabs.tabs("rotate",1e3*interval)}catch(err){window.console&&window.console.warn&&console.warn("tabs behaviours error",err)}jQuery(this).find(".wpb_tab").each(function(){tabs_array.push(this.id)}),jQuery(this).find(".wpb_tabs_nav li").on("click",function(e){return e&&e.preventDefault&&e.preventDefault(),old_version?$tabs.tabs("select",jQuery("a",this).attr("href")):$tabs.tabs("option","active",jQuery(this).index()),!1}),jQuery(this).find(".wpb_prev_slide a, .wpb_next_slide a").on("click",function(length){var index;length&&length.preventDefault&&length.preventDefault(),old_version?(index=$tabs.tabs("option","selected"),jQuery(this).parent().hasClass("wpb_next_slide")?index++:index--,index<0?index=$tabs.tabs("length")-1:index>=$tabs.tabs("length")&&(index=0),$tabs.tabs("select",index)):(index=$tabs.tabs("option","active"),length=$tabs.find(".wpb_tab").length,index=jQuery(this).parent().hasClass("wpb_next_slide")?length<=index+1?0:index+1:index-1<0?length-1:index-1,$tabs.tabs("option","active",index))})}))}),"function"!=typeof window.vc_accordionBehaviour&&(window.vc_accordionBehaviour=function(){jQuery(".wpb_accordion").each(function(index){var $this=jQuery(this),active_tab=($this.attr("data-interval"),!isNaN(jQuery(this).data("active-tab"))&&0<parseInt($this.data("active-tab"),10)&&parseInt($this.data("active-tab"),10)-1),$tabs=!1===active_tab||"yes"===$this.data("collapsible"),$tabs=$this.find(".wpb_accordion_wrapper").accordion({header:"> div > h3",autoHeight:!1,heightStyle:"content",active:active_tab,collapsible:$tabs,navigation:!0,activate:vc_accordionActivate,change:function(event,ui){void 0!==jQuery.fn.isotope&&ui.newContent.find(".isotope").isotope("layout"),vc_carouselBehaviour(ui.newPanel)}});!0===$this.data("vcDisableKeydown")&&($tabs.data("uiAccordion")._keydown=function(){})})}),"function"!=typeof window.vc_teaserGrid&&(window.vc_teaserGrid=function(){var layout_modes={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 $container=jQuery(this),$thumbs=$container.find(".wpb_thumbnails"),layout_mode=$thumbs.attr("data-layout-mode");$thumbs.isotope({itemSelector:".isotope-item",layoutMode:void 0===layout_modes[layout_mode]?"fitRows":layout_modes[layout_mode]}),$container.find(".categories_filter a").data("isotope",$thumbs).on("click",function($thumbs){$thumbs&&$thumbs.preventDefault&&$thumbs.preventDefault();$thumbs=jQuery(this).data("isotope");jQuery(this).parent().parent().find(".active").removeClass("active"),jQuery(this).parent().addClass("active"),$thumbs.isotope({filter:jQuery(this).attr("data-filter")})}),jQuery(window).on("load resize",function(){$thumbs.isotope("layout")})})}),"function"!=typeof window.vc_carouselBehaviour&&(window.vc_carouselBehaviour=function($parent){($parent?$parent.find(".wpb_carousel"):jQuery(".wpb_carousel")).each(function(){var fluid_ul=jQuery(this);!0!==fluid_ul.data("carousel_enabled")&&fluid_ul.is(":visible")&&(fluid_ul.data("carousel_enabled",!0),getColumnsCount(jQuery(this)),jQuery(this).hasClass("columns_count_1"),(fluid_ul=jQuery(this).find(".wpb_thumbnails-fluid li")).css({"margin-right":fluid_ul.css("margin-left"),"margin-left":0}),(fluid_ul=jQuery(this).find("ul.wpb_thumbnails-fluid")).width(fluid_ul.width()+300),jQuery(window).on("resize",function(){screen_size!=(screen_size=getSizeName())&&window.setTimeout(function(){location.reload()},20)}))})}),"function"!=typeof window.vc_slidersBehaviour&&(window.vc_slidersBehaviour=function(){jQuery(".wpb_gallery_slides").each(function(index){var $imagesGrid,sliderTimeout,this_element=jQuery(this);this_element.hasClass("wpb_slider_nivo")?(0===(sliderTimeout=1e3*this_element.attr("data-interval"))&&(sliderTimeout=9999999999),this_element.find(".nivoSlider").nivoSlider({effect:"boxRainGrow,boxRain,boxRainReverse,boxRainGrowReverse",slices:15,boxCols:8,boxRows:4,animSpeed:800,pauseTime:sliderTimeout,startSlide:0,directionNav:!0,directionNavHide:!0,controlNav:!0,keyboardNav:!1,pauseOnHover:!0,manualAdvance:!1,prevText:"Prev",nextText:"Next"})):this_element.hasClass("wpb_image_grid")&&(jQuery.fn.imagesLoaded?$imagesGrid=this_element.find(".wpb_image_grid_ul").imagesLoaded(function(){$imagesGrid.isotope({itemSelector:".isotope-item",layoutMode:"fitRows"})}):this_element.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(err){window.console&&window.console.warn&&window.console.warn("vc_prettyPhoto initialize error",err)}}),"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 vcSkrollrOptions,callSkrollInit,$=window.jQuery;function fullWidthRow(){var $elements=$('[data-vc-full-width="true"]');$.each($elements,function(key,item){var $el=$(this);$el.addClass("vc_hidden");var el_margin_left,el_margin_right,offset,width,padding,paddingRight,$el_full=$el.next(".vc_row-full-width");($el_full=!$el_full.length?$el.parent().next(".vc_row-full-width"):$el_full).length&&(el_margin_left=parseInt($el.css("margin-left"),10),el_margin_right=parseInt($el.css("margin-right"),10),offset=0-$el_full.offset().left-el_margin_left,width=$(window).width(),"rtl"===$el.css("direction")&&(offset-=$el_full.width(),offset+=width,offset+=el_margin_left,offset+=el_margin_right),$el.css({position:"relative",left:offset,"box-sizing":"border-box",width:width}),$el.data("vcStretchContent")||("rtl"===$el.css("direction")?((padding=offset)<0&&(padding=0),(paddingRight=offset)<0&&(paddingRight=0)):(paddingRight=width-(padding=(padding=-1*offset)<0?0:padding)-$el_full.width()+el_margin_left+el_margin_right)<0&&(paddingRight=0),$el.css({"padding-left":padding+"px","padding-right":paddingRight+"px"})),$el.attr("data-vc-full-width-init","true"),$el.removeClass("vc_hidden"),$(document).trigger("vc-full-width-row-single",{el:$el,offset:offset,marginLeft:el_margin_left,marginRight:el_margin_right,elFull:$el_full,width:width}))}),$(document).trigger("vc-full-width-row",$elements)}function fullHeightRow(){var fullHeight,offsetTop,$element=$(".vc_row-o-full-height:first");$element.length&&(fullHeight=$(window).height(),(offsetTop=$element.offset().top)<fullHeight&&(fullHeight=100-offsetTop/(fullHeight/100),$element.css("min-height",fullHeight+"vh"))),$(document).trigger("vc-full-height-row",$element)}$(window).off("resize.vcRowBehaviour").on("resize.vcRowBehaviour",fullWidthRow).on("resize.vcRowBehaviour",fullHeightRow),fullWidthRow(),fullHeightRow(),(0<window.navigator.userAgent.indexOf("MSIE ")||navigator.userAgent.match(/Trident.*rv\:11\./))&&$(".vc_row-o-full-height").each(function(){"flex"===$(this).css("display")&&$(this).wrap('<div class="vc_ie-flexbox-fixer"></div>')}),vc_initVideoBackgrounds(),callSkrollInit=!1,window.vcParallaxSkroll&&window.vcParallaxSkroll.destroy(),$(".vc_parallax-inner").remove(),$("[data-5p-top-bottom]").removeAttr("data-5p-top-bottom data-30p-top-bottom"),$("[data-vc-parallax]").each(function(){var skrollrStart,$parallaxElement,parallaxImage,youtubeId;callSkrollInit=!0,"on"===$(this).data("vcParallaxOFade")&&$(this).children().attr("data-5p-top-bottom","opacity:0;").attr("data-30p-top-bottom","opacity:1;"),skrollrStart=100*$(this).data("vcParallax"),($parallaxElement=$("<div />").addClass("vc_parallax-inner").appendTo($(this))).height(skrollrStart+"%"),parallaxImage=$(this).data("vcParallaxImage"),(youtubeId=vcExtractYoutubeId(parallaxImage))?insertYoutubeVideoAsBackground($parallaxElement,youtubeId):void 0!==parallaxImage&&$parallaxElement.css("background-image","url("+parallaxImage+")"),skrollrStart=-(skrollrStart-100),$parallaxElement.attr("data-bottom-top","top: "+skrollrStart+"%;").attr("data-top-bottom","top: 0%;")}),callSkrollInit&&window.skrollr&&(vcSkrollrOptions={forceHeight:!1,smoothScrolling:!1,mobileCheck:function(){return!1}},window.vcParallaxSkroll=skrollr.init(vcSkrollrOptions),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(el){for(var find=!1,i=1;!1===find;){if(el.hasClass("columns_count_"+i))return find=!0,i;i++}});var screen_size=getSizeName();function getSizeName(){var screen_w=jQuery(window).width();return 1170<screen_w?"desktop_wide":960<screen_w&&screen_w<1169?"desktop":768<screen_w&&screen_w<959?"tablet":300<screen_w&&screen_w<767?"mobile":screen_w<300?"mobile_portrait":""}"function"!=typeof window.wpb_prepare_tab_content&&(window.wpb_prepare_tab_content=function(event,ui){var panel=ui.panel||ui.newPanel,$pie_charts=panel.find(".vc_pie_chart:not(.vc_ready)"),$round_charts=panel.find(".vc_round-chart"),$frame=panel.find(".vc_line-chart"),$google_maps=panel.find('[data-ride="vc_carousel"]');vc_carouselBehaviour(),vc_plugin_flexslider(panel),ui.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").length&&ui.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").each(function(){var grid=jQuery(this).data("vcGrid");grid&&grid.gridBuilder&&grid.gridBuilder.setMasonry&&grid.gridBuilder.setMasonry()}),panel.find(".vc_masonry_media_grid, .vc_masonry_grid").length&&panel.find(".vc_masonry_media_grid, .vc_masonry_grid").each(function(){var grid=jQuery(this).data("vcGrid");grid&&grid.gridBuilder&&grid.gridBuilder.setMasonry&&grid.gridBuilder.setMasonry()}),$pie_charts.length&&jQuery.fn.vcChat&&$pie_charts.vcChat(),$round_charts.length&&jQuery.fn.vcRoundChart&&$round_charts.vcRoundChart({reload:!1}),$frame.length&&jQuery.fn.vcLineChart&&$frame.vcLineChart({reload:!1}),$google_maps.length&&jQuery.fn.carousel&&$google_maps.carousel("resizeAction"),$frame=panel.find(".isotope, .wpb_image_grid_ul"),$google_maps=panel.find(".wpb_gmaps_widget"),0<$frame.length&&$frame.isotope("layout"),$google_maps.length&&!$google_maps.is(".map_ready")&&(($frame=$google_maps.find("iframe")).attr("src",$frame.attr("src")),$google_maps.addClass("map_ready")),panel.parents(".isotope").length&&panel.parents(".isotope").each(function(){jQuery(this).isotope("layout")}),$(document).trigger("wpb_prepare_tab_content",panel)}),"function"!=typeof window.vc_ttaActivation&&(window.vc_ttaActivation=function(){jQuery("[data-vc-accordion]").on("show.vc.accordion",function(e){var $=window.jQuery,ui={};ui.newPanel=$(this).data("vc.accordion").getTarget(),window.wpb_prepare_tab_content(e,ui)})}),"function"!=typeof window.vc_accordionActivate&&(window.vc_accordionActivate=function(event,ui){var $pie_charts,$round_charts,$line_charts,$carousel;ui.newPanel.length&&ui.newHeader.length&&($pie_charts=ui.newPanel.find(".vc_pie_chart:not(.vc_ready)"),$round_charts=ui.newPanel.find(".vc_round-chart"),$line_charts=ui.newPanel.find(".vc_line-chart"),$carousel=ui.newPanel.find('[data-ride="vc_carousel"]'),void 0!==jQuery.fn.isotope&&ui.newPanel.find(".isotope, .wpb_image_grid_ul").isotope("layout"),ui.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").length&&ui.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").each(function(){var grid=jQuery(this).data("vcGrid");grid&&grid.gridBuilder&&grid.gridBuilder.setMasonry&&grid.gridBuilder.setMasonry()}),vc_carouselBehaviour(ui.newPanel),vc_plugin_flexslider(ui.newPanel),$pie_charts.length&&jQuery.fn.vcChat&&$pie_charts.vcChat(),$round_charts.length&&jQuery.fn.vcRoundChart&&$round_charts.vcRoundChart({reload:!1}),$line_charts.length&&jQuery.fn.vcLineChart&&$line_charts.vcLineChart({reload:!1}),$carousel.length&&jQuery.fn.carousel&&$carousel.carousel("resizeAction"),ui.newPanel.parents(".isotope").length&&ui.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(){jQuery("[data-vc-video-bg]").each(function(){var youtubeId,$element=jQuery(this);$element.data("vcVideoBg")?(youtubeId=$element.data("vcVideoBg"),(youtubeId=vcExtractYoutubeId(youtubeId))&&($element.find(".vc_video-bg").remove(),insertYoutubeVideoAsBackground($element,youtubeId)),jQuery(window).on("grid:items:added",function(event,$grid){$element.has($grid).length&&vcResizeVideoBackground($element)})):$element.find(".vc_video-bg").remove()})}),"function"!=typeof window.insertYoutubeVideoAsBackground&&(window.insertYoutubeVideoAsBackground=function($element,youtubeId,counter){if("undefined"==typeof YT||void 0===YT.Player)return 100<(counter=void 0===counter?0:counter)?void console.warn("Too many attempts to load YouTube api"):void setTimeout(function(){insertYoutubeVideoAsBackground($element,youtubeId,counter++)},100);var $container=$element.prepend('<div class="vc_video-bg vc_hidden-xs"><div class="inner"></div></div>').find(".inner");new YT.Player($container[0],{width:"100%",height:"100%",videoId:youtubeId,playerVars:{playlist:youtubeId,iv_load_policy:3,enablejsapi:1,disablekb:1,autoplay:1,controls:0,showinfo:0,rel:0,loop:1,wmode:"transparent"},events:{onReady:function(event){event.target.mute().setLoop(!0)}}}),vcResizeVideoBackground($element),jQuery(window).on("resize",function(){vcResizeVideoBackground($element)})}),"function"!=typeof window.vcResizeVideoBackground&&(window.vcResizeVideoBackground=function($element){var iframeW,iframeH,marginLeft,marginTop,containerW=$element.innerWidth(),containerH=$element.innerHeight();containerW/containerH<16/9?(iframeW=containerH*(16/9),iframeH=containerH,marginLeft=-Math.round((iframeW-containerW)/2)+"px",marginTop=-Math.round((iframeH-containerH)/2)+"px"):(iframeH=(iframeW=containerW)*(9/16),marginTop=-Math.round((iframeH-containerH)/2)+"px",marginLeft=-Math.round((iframeW-containerW)/2)+"px"),iframeW+="px",iframeH+="px",$element.find(".vc_video-bg iframe").css({maxWidth:"1000%",marginLeft:marginLeft,marginTop:marginTop,width:iframeW,height:iframeH})}),"function"!=typeof window.vcExtractYoutubeId&&(window.vcExtractYoutubeId=function(id){if(void 0===id)return!1;id=id.match(/(?:https?:\/{2})?(?:w{3}\.)?youtu(?:be)?\.(?:com|be)(?:\/watch\?v=|\/)([^\s&]+)/);return null!==id&&id[1]}),"function"!=typeof window.vc_googleMapsPointer&&(window.vc_googleMapsPointer=function(){var $=window.jQuery,$wpbGmapsWidget=$(".wpb_gmaps_widget");$wpbGmapsWidget.on("click",function(){$("iframe",this).css("pointer-events","auto")}),$wpbGmapsWidget.on("mouseleave",function(){$("iframe",this).css("pointer-events","none")}),$(".wpb_gmaps_widget iframe").css("pointer-events","none")}),"function"!=typeof window.vc_setHoverBoxPerspective&&(window.vc_setHoverBoxPerspective=function(hoverBox){hoverBox.each(function(){var $this=jQuery(this),perspective=4*$this.width()+"px";$this.css("perspective",perspective)})}),"function"!=typeof window.vc_setHoverBoxHeight&&(window.vc_setHoverBoxHeight=function(hoverBox){hoverBox.each(function(){var hoverBoxHeight=jQuery(this),hoverBoxInner=hoverBoxHeight.find(".vc-hoverbox-inner");hoverBoxInner.css("min-height",0);var frontHeight=hoverBoxHeight.find(".vc-hoverbox-front-inner").outerHeight(),hoverBoxHeight=hoverBoxHeight.find(".vc-hoverbox-back-inner").outerHeight(),hoverBoxHeight=hoverBoxHeight<frontHeight?frontHeight:hoverBoxHeight;hoverBoxHeight<250&&(hoverBoxHeight=250),hoverBoxInner.css("min-height",hoverBoxHeight+"px")})}),"function"!=typeof window.vc_prepareHoverBox&&(window.vc_prepareHoverBox=function(){var hoverBox=jQuery(".vc-hoverbox");vc_setHoverBoxHeight(hoverBox),vc_setHoverBoxPerspective(hoverBox)}),jQuery(document).ready(window.vc_prepareHoverBox),jQuery(window).on("resize",window.vc_prepareHoverBox),jQuery(document).ready(function($){window.vc_js()})}(window.jQuery);
;(function($){'use strict';g1.backToTop=function(){var $scrollToTop=$('.g1-back-to-top');toggleVisibility($scrollToTop);$scrollToTop.on('click',function(e){e.preventDefault();var multipier=200;var durationRange={min:200,max:1000};var winHeight=$(window).height();var docHeight=$(document).height();var proportion=Math.floor(docHeight/winHeight);var duration=proportion*multipier;if(duration<durationRange.min){duration=durationRange.min;}
if(duration>durationRange.max){duration=durationRange.max;}
$('html, body').animate({scrollTop:0},duration);});$(window).scroll(function(){window.requestAnimationFrame(function(){toggleVisibility($scrollToTop);});});};function toggleVisibility($scrollToTop){if($(window).scrollTop()>240){$scrollToTop.addClass('g1-back-to-top-on').removeClass('g1-back-to-top-off');}else{$scrollToTop.addClass('g1-back-to-top-off').removeClass('g1-back-to-top-on');}}
$(document).ready(function(){g1.backToTop();});})(jQuery);