(()=>{var e={958:()=>{!function(e){"use strict";function t(){const t=e(".site-header"),n=e(".site-header__wrapper"),o=e(".header-top-offset"),i=e("#wpadminbar")||0;let a=n.outerHeight();const s=o.data("offset-top-gap")||0;i.length&&(a+=i.outerHeight()),s&&(a+=s),t.css("padding-top",n.outerHeight()),o.css("top",a)}e(".main-navigation ul li.menu-item-has-children").each(function(){e(this).find(".submenu-toggle").length||e(this).find("> a").after('')}),e(document).on("click",".submenu-toggle",function(t){t.preventDefault(),t.stopPropagation(),e(this).toggleClass("is-active"),e(this).parent().toggleClass("is-active"),e(this).parent().children(".sub-menu").slideToggle()}),e(document).on("click",function(t){e(t.target).closest(".main-navigation").length||(e(".main-navigation li.menu-item-has-children").removeClass("is-active"),e(".submenu-toggle").removeClass("is-active"))}),e(document).on("keydown",".submenu-toggle",function(t){"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),e(this).click())}),function(){const t=e(".site-header"),n=e(".header-top-ad"),o=e("#wpadminbar");let i=!1;function a(){const a=e(window).scrollTop(),s=function(){let e=0;return o.length&&(e+=o.outerHeight()),n.length&&n.is(":visible")&&(e+=n.outerHeight()),e}();a>s&&!i?(i=!0,t.addClass("is-fixed"),e("body").addClass("header-fixed")):a<=s&&i&&(i=!1,t.removeClass("is-fixed"),e("body").removeClass("header-fixed"))}let s=!1;e(window).on("scroll",function(){s||(requestAnimationFrame(function(){a(),s=!1}),s=!0)}),e(window).on("resize",function(){a()}),a()}(),t(),function(){function t(){const t=e(".site-header"),n=e("#wpadminbar");let o=0;return n.length&&(o+=n.outerHeight()),t.length&&(o+=t.outerHeight()),o}function n(t,n){const o=e(window).scrollTop(),i=Math.abs(t-n-o),a=Math.max(500,Math.min(2500,1.2*i));return Math.round(a)}if(window.location.hash){const o=window.location.hash;history.replaceState(null,null,window.location.pathname+window.location.search),e("html, body").scrollTop(0),history.replaceState(null,null,o);const i=o.substring(1),a=e("#"+i);if(a.length){const o=t(),i=a.offset().top,s=n(i,o);e("html, body").animate({scrollTop:i-o-20},s)}}e(document).on("click",'a[href*="#"]',function(o){const i=e(this).attr("href").split("#"),a=i[0],s=i[1];if(!s)return;const r=e("#"+s);if(r.length&&(""===a||a===window.location.pathname||a===window.location.pathname+"/"||a===window.location.pathname.replace(/\/$/,"")||a===window.location.pathname.replace(/\/$/,"")+"/")){o.preventDefault();const i=t(),a=r.offset().top,l=n(a,i);e("html, body").animate({scrollTop:a-i-20},l),history.pushState(null,null,"#"+s)}}),e(window).on("popstate",function(){if(window.location.hash){const o=window.location.hash.substring(1),i=e("#"+o);if(i.length){const o=t(),a=i.offset().top,s=n(a,o);e("html, body").animate({scrollTop:a-o-20},s)}}})}(),e(window).on("resize",function(){t()}),e(document).on("click",".site-header__user-menu-toggle",function(t){t.preventDefault(),e(this).parent().toggleClass("is-active"),e(".site-header__search-toggle").removeClass("is-active"),e(".site-header__search-wrap").removeClass("is-active")}),e(document).on("click",function(t){const n=e(".site-header__user-menu-toggle").parent();e(t.target).closest(".site-header__user-menu-toggle, .site-header__user-menu").length||n.removeClass("is-active")}),e(document).on("click",".site-header__nav-toggle",function(){e(".site-header__mobile").addClass("is-active"),e("html").addClass("off-scroll"),e(".site-header__search-wrap").removeClass("is-active")}),e(document).on("click",".mobile-menu-close",function(){e(".site-header__mobile").removeClass("is-active"),e("html").removeClass("off-scroll")}),e(document).on("click",".site-header__search-toggle",function(){e(this).toggleClass("is-active"),e(".site-header__search-wrap").toggleClass("is-active"),e(".site-header__user-menu-toggle").parent().removeClass("is-active")}),e(document).on("click",".site-header__search-close",function(){e(".site-header__search-wrap").removeClass("is-active")})}(jQuery)},5584:()=>{!function(e){"use strict";let t,n=!1;window.onloadCallback=function(){document.querySelectorAll(".g-recaptcha").forEach(e=>{let t="";t=e.dataset.sitekey?e.dataset.sitekey:siteConfig.google_captcha_sitekey,e.dataset.rendered||(grecaptcha.render(e,{sitekey:t}),e.dataset.rendered=!0)})},document.addEventListener("DOMContentLoaded",function(e){if(n)return;n=!0;const t=document.createElement("script");t.src="https://www.google.com/recaptcha/api.js?onload=onloadCallback&render=explicit",t.defer=!0,t.async=!0,document.head.appendChild(t)}),e(document).on("click","#open-bigidcmp",function(e){e.preventDefault(),bigidcmp.showWidget()}),document.addEventListener("DOMContentLoaded",()=>{const e=new URL(window.location.href),t=new URLSearchParams(e.search);t.has("clear_cache")&&(t.delete("clear_cache"),e.search=t.toString(),window.history.replaceState({},"",e.toString()))}),document.addEventListener("DOMContentLoaded",function(){document.querySelectorAll(".g-recaptcha").forEach(function(e,n){"newsletter-signup"===e.dataset.widgetId&&(t=n)})});const o=e(".global-signup-modal"),i="global-signup-form-submitted",a="global-signup-modal-dismissed",s="global-signup-modal-denied",r="global-signup-modal-permanent";function l(){o.addClass("active")}e(document).ready(function(){e(".footer-top__widget .widget-title").append(''),e(document).on("click",".footer-top__widget .widget-title",function(){e(window).outerWidth()<=767&&(e(this).toggleClass("is-active"),e(this).next('[class*="menu-"]').slideToggle())})}),e(document).on("click",".global-signup-form-button.join-today-btn",function(){const t=e(this).parents(".global-signup-form").find('input[name="newsletterProviderId[]"]:checked').map(function(){return e(this).val()}).get(),n=e(this).parents(".global-signup-form");if(0===t.length)return n.find(".global-signup-form-error").remove(),void n.prepend('Please select at least one newsletter provider
');n.find(".global-signup-form-container.step-1").addClass("hidden"),n.find(".global-signup-form-error").remove(),n.find(".global-signup-form-container.step-2").removeClass("hidden"),n.find(".global-signup-form-container.step-3").addClass("hidden")}),e(document).on("click",".global-signup-form-button.no-thanks-btn",function(){e(this).parents(".global-signup-form").find(".global-signup-form-error").remove();const t=e(this).parents(".global-signup-modal");t.removeClass("active"),t.find(".global-signup-form").find("input").val(""),localStorage.setItem(s,Date.now())}),e(document).on("click",".global-signup-modal-close-btn, .signup-form-widget-close",function(){e(this).parents(".global-signup-form").find(".global-signup-form-error").remove();const t=e(this).parents(".global-signup-modal");t.removeClass("active"),t.find(".global-signup-form").find("input").val(""),localStorage.setItem(a,Date.now())}),e(document).on("click",".global-signup-form-button.back-btn",function(){e(this).parents(".global-signup-form").find(".global-signup-form-error").remove();const t=e(this).parents(".global-signup-form");t.find(".global-signup-form-container.step-2").addClass("hidden"),t.find(".global-signup-form-container.step-1").removeClass("hidden"),t.find(".global-signup-form-container.step-3").addClass("hidden"),t.find(".global-signup-form-error").remove()}),e(document).on("submit",".global-signup-form",function(n){e(this).find(".global-signup-form-error").remove(),n.preventDefault();const o=e(this),a=o.find('input[name="email"]').val(),s=o.find('input[name="zip"]').val(),l=o.find('input[name="first-name"]').val(),c=o.find('input[name="last-name"]').val(),d=o.find('input[name="newsletterProviderId[]"]:checked').map(function(){return e(this).val()}).get(),u=e(window).outerWidth()<=767?"Pop Up-Mobile":"Pop Up",g=o.find('input[name="category"]').val(),p=grecaptcha.getResponse(t);if(!(a&&s&&l&&c))return o.find(".global-signup-form-error").remove(),void o.prepend('Please fill in all fields
');if(""===a.replace(/\s/g,"")||""===s.replace(/\s/g,"")||""===l.replace(/\s/g,"")||""===c.replace(/\s/g,""))return o.find(".global-signup-form-error").remove(),void o.prepend('Please fill in all fields
');if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(a))return o.find(".global-signup-form-error").remove(),void o.prepend('Please enter a valid email address
');if(!p)return o.find(".global-signup-form-error").remove(),void o.prepend('Please complete the reCAPTCHA verification.
');const m={};d.forEach(function(e){m[e]=1});const f=(new Date).getTime(),h={postal_code:`${s}`,first_name:l,last_name:c,full_name:l+" "+c,product_level:"Subscriber",account_created:`${f}`,source_description:`${g}`,source_primary:"Website-Local",source_sub:u};Sailthru.integration("userSignUp",{email:a,lists:m,vars:h,source:`Website-Local|${u}|${g}`,onSuccess:function(e){o.find(".global-signup-form-container.step-2").addClass("hidden"),o.find(".global-signup-form-container.step-3").removeClass("hidden"),o.find(".global-signup-form-error").remove(),localStorage.setItem(i,"true"),localStorage.setItem("global-signup-form-submitted-time",f),localStorage.setItem(r,Date.now())},onError:function(e){o.find(".global-signup-form-error").remove(),o.prepend('Something went wrong. Please try again.
')}})}),jQuery(document).ready(function(){(function(){if(localStorage.getItem(i))return!1;const e=Date.now(),t=localStorage.getItem(a);if(t&&e-parseInt(t,10)<6048e5)return!1;const n=localStorage.getItem(s);if(n&&e-parseInt(n,10)<2592e6)return!1;const o=localStorage.getItem(r);return!(o&&e-parseInt(o,10)<7776e7)})()&&setTimeout(l,5e3)})}(jQuery)}},t={};function n(o){var i=t[o];if(void 0!==i)return i.exports;var a=t[o]={exports:{}};return e[o](a,a.exports,n),a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";n(958),n(5584)})()})();;
(()=>{"use strict";class t{constructor(t={}){this.options={selector:".wp-block-image img, .article-content img",closeOnOverlay:!0,closeOnEscape:!0,enableNavigation:!1,enableKeyboardNav:!1,enableSwipe:!1,enableHoverZoom:!1,showCaption:!0,showCredit:!0,showAltText:!1,galleryMode:!1,...t},this.lightboxElement=null,this.currentIndex=0,this.images=[],this.isOpen=!1,this.touchStartX=0,this.touchStartY=0,this.init()}init(){this.createLightboxHTML(),this.bindEvents(),this.detectImages()}createLightboxHTML(){document.body.insertAdjacentHTML("beforeend",'\n \n
\n
\n
\n
\n
![]()
\n
\n
\n
\n
\n
\n
\n '),this.lightboxElement=document.getElementById("vmg-lightbox")}detectImages(){const t=document.querySelectorAll(this.options.selector);this.images=[],t.forEach((t,e)=>{const i=()=>{const e=t.naturalWidth||t.width,i=t.naturalHeight||t.height;if(e>0&&e<100||i>0&&i<100)return void console.error("VMG Lightbox: Skipping small image",t.src,`${e}x${i}`);const n=this.extractImageData(t);if(n){const e=this.images.length;this.images.push(n),t.style.cursor="zoom-in",t.addEventListener("click",t=>{t.preventDefault(),this.open(e)}),t.setAttribute("data-lightbox-index",e),this.options.enableHoverZoom&&t.classList.add("vmg-lightbox-hover-zoom")}};t.complete&&t.naturalWidth>0?i():(t.addEventListener("load",i,{once:!0}),setTimeout(i,100))})}extractImageData(t){const e=t.closest("figure"),i=t.closest(".wp-block-image");let n="";if(this.options.attribute&&t.hasAttribute(this.options.attribute))n=t.getAttribute(this.options.attribute);else{n=t.src;const e=t.getAttribute("srcset");if(e){const t=e.split(",").map(t=>t.trim());let i=null,o=0;t.forEach(t=>{const e=t.split(" "),n=e[0],s=e[1];if(s&&s.endsWith("w")){const t=parseInt(s.slice(0,-1));t>o&&(o=t,i=n)}}),i?n=i:t.length>0&&(n=t[t.length-1].split(" ")[0])}if(n.includes("-")&&n.match(/-\d+x\d+\./)){const t=n.replace(/-\d+x\d+\./,".");n=t}}let o="",s="",l=t.getAttribute("alt")||"";if(e||i){const t=(e||i).querySelector("figcaption");if(t){const e=t.cloneNode(!0),i=e.querySelector(".vmg-image-credit");i&&i.remove(),o=e.textContent.trim()}}if(e||i){const t=(e||i).querySelector(".wp-element-caption .vmg-image-credit");t&&(s=t.textContent.trim())}return!o&&l&&(o=l),{src:n,title:o,credit:s,altText:l,element:t}}bindEvents(){this.lightboxElement.querySelector(".vmg-lightbox__close").addEventListener("click",()=>{this.close()}),this.options.closeOnOverlay&&this.lightboxElement.addEventListener("click",t=>{t.target===this.lightboxElement&&this.close()}),document.addEventListener("keydown",t=>{if(this.isOpen)switch(t.key){case"Escape":this.options.closeOnEscape&&this.close();break;case"ArrowLeft":this.options.enableKeyboardNav&&this.options.enableNavigation&&this.prev();break;case"ArrowRight":this.options.enableKeyboardNav&&this.options.enableNavigation&&this.next()}}),this.options.enableNavigation&&(this.lightboxElement.querySelector(".vmg-lightbox__nav--prev").addEventListener("click",()=>{this.prev()}),this.lightboxElement.querySelector(".vmg-lightbox__nav--next").addEventListener("click",()=>{this.next()})),this.options.enableSwipe&&this.bindTouchEvents(),window.addEventListener("resize",()=>{this.isOpen&&this.updateLayout()})}bindTouchEvents(){let t=0,e=0;this.lightboxElement.addEventListener("touchstart",i=>{t=i.touches[0].clientX,e=i.touches[0].clientY},{passive:!0}),this.lightboxElement.addEventListener("touchend",i=>{if(!t||!e)return;const n=i.changedTouches[0].clientX,o=i.changedTouches[0].clientY,s=t-n,l=e-o;Math.abs(s)>Math.abs(l)&&Math.abs(s)>50&&(s>0?this.next():this.prev()),t=0,e=0},{passive:!0})}open(t=0){0!==this.images.length&&(this.currentIndex=Math.max(0,Math.min(t,this.images.length-1)),this.isOpen=!0,document.body.classList.add("vmg-lightbox-open"),this.lightboxElement.classList.add("vmg-lightbox--open"),this.loadImage(this.currentIndex),this.updateNavigation(),this.lightboxElement.focus(),this.emit("open",{index:this.currentIndex,image:this.images[this.currentIndex]}))}close(){if(!this.isOpen)return;this.isOpen=!1,this.lightboxElement.classList.remove("vmg-lightbox--open"),document.body.classList.remove("vmg-lightbox-open");const t=this.images[this.currentIndex]?.element;t&&t.focus(),this.emit("close",{index:this.currentIndex})}loadImage(t){const e=this.images[t];if(!e)return;const i=this.lightboxElement.querySelector(".vmg-lightbox__image"),n=this.lightboxElement.querySelector(".vmg-lightbox__loading");this.lightboxElement.querySelector(".vmg-lightbox__caption"),n.style.display="block",i.style.opacity="0";const o=new Image;o.onload=()=>{i.src=o.src,i.alt=e.title||"Lightbox image",n.style.display="none",i.style.opacity="1",this.updateCaption(e)},o.onerror=()=>{n.style.display="none",console.error("Failed to load image:",e.src)},o.src=e.src}updateCaption(t){const e=this.lightboxElement.querySelector(".vmg-lightbox__caption");e.innerHTML="";let i=!1,n={};if(this.options.showCaption&&t.title){const o=document.createElement("div");o.className="vmg-lightbox__caption__title";const s=document.createElement("span");if(s.innerHTML=t.title,o.appendChild(s),this.options.showCredit&&t.credit){const e=document.createElement("em");e.className="vmg-lightbox__caption__credit",e.textContent=t.credit,o.appendChild(e)}e.appendChild(o),n.title=o,i=!0}if(this.options.showAltText&&t.altText&&!t.title){const o=document.createElement("div");o.className="vmg-lightbox__caption__alt",o.textContent=t.altText,e.appendChild(o),n.altText=o,i=!0}e.style.display=i?"block":"none"}updateNavigation(){const t=this.lightboxElement.querySelector(".vmg-lightbox__nav--prev"),e=this.lightboxElement.querySelector(".vmg-lightbox__nav--next");this.options.enableNavigation&&(this.options.galleryMode||this.images.length>1)?(t.style.display="flex",e.style.display="flex"):(t.style.display="none",e.style.display="none")}prev(){!this.options.enableNavigation||this.images.length<=1||(this.currentIndex=this.currentIndex>0?this.currentIndex-1:this.images.length-1,this.loadImage(this.currentIndex),this.emit("change",{index:this.currentIndex,direction:"prev"}))}next(){!this.options.enableNavigation||this.images.length<=1||(this.currentIndex=this.currentIndex{const s=new t({...i,selector:`${e} img`});o.push(s)}),1===o.length?o[0]:o}}window.VMGLightboxConfigs={single:{enableNavigation:!1,enableKeyboardNav:!1,enableSwipe:!1,enableHoverZoom:!1,galleryMode:!1},gallery:{enableNavigation:!0,enableKeyboardNav:!0,enableSwipe:!0,enableHoverZoom:!0,galleryMode:!0},minimal:{enableNavigation:!1,enableKeyboardNav:!1,enableSwipe:!1,enableHoverZoom:!1},mobile:{enableNavigation:!0,enableKeyboardNav:!1,enableSwipe:!0,enableHoverZoom:!1}};const e=t;document.addEventListener("DOMContentLoaded",()=>{try{const t=document.querySelector(".article-content"),i=document.querySelectorAll(".article-content img, .wp-block-image img").length>0;if(t||i){const t={selector:".article-content .wp-block-image img",closeOnOverlay:!0,closeOnEscape:!0,enableNavigation:!1,enableKeyboardNav:!1,enableSwipe:!1,enableHoverZoom:!1,galleryMode:!1,showCaption:!0,showAltText:!0};window.vmgLightbox=new e(t),setTimeout(()=>{window.vmgLightbox&&window.vmgLightbox.refresh()},1e3)}else console.error("VMG Lightbox: No article content or images found, skipping initialization")}catch(t){console.error("VMG Lightbox initialization error:",t)}}),jQuery(document).ready(function(t){let e=!1,i=!1;function n(n,o){const s=t(o).parents("article").attr("id").replace("post-","");e&&i||t.ajax({url:vmgAjax.restUrl+"vmg/v1/"+n+"/"+s,type:"GET",success:function(s){t(o).html(s.html),"latest-posts"===n?e=!0:"trending-posts"===n&&(i=!0)}})}const o=new IntersectionObserver(t=>{e&&i||t.forEach(t=>{if(t.isIntersecting){const e=t.target;"vmg-latest-posts"===e.id&&n("latest-posts","#vmg-latest-posts"),"vmg-trending-posts"===e.id&&n("trending-posts","#vmg-trending-posts"),o.unobserve(e)}})},{threshold:0});o.observe(document.querySelector("#vmg-latest-posts")),o.observe(document.querySelector("#vmg-trending-posts"));const s=document.querySelector("#vmg-latest-posts"),l=document.querySelector("#vmg-trending-posts");s&&o.observe(s),l&&o.observe(l),t(window).on("scroll",function(){let o=t(window).scrollTop();!e&&o>300&&(n("latest-posts","#vmg-latest-posts"),e=!0),!i&&o>300&&(n("trending-posts","#vmg-trending-posts"),i=!0)})})})();;
jQuery(document).ready(function(e){"use strict";e(".vmg-newsletter-form").each(function(){const n=e(this),t=n.find(".vmg-newsletter-form__step1"),i=n.find(".vmg-newsletter-form__step2"),r=n.find(".vmg-newsletter-form__success"),s=n.find(".vmg-newsletter-form__submit"),a=n.find("#sailthru-email");e(document).on("submit",".vmg-newsletter-form__step1 form",function(e){e.preventDefault();const d=a.val(),o=n.find('input[name="newsletters"]').val(),l=n.find('input[name="category"]').val(),m=grecaptcha.getResponse();if(!d||!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(d))return t.find('input[name="sailthru-email"]').removeClass("error"),t.find('input[name="sailthru-email"]').next(".error-message").remove(),t.find('input[name="sailthru-email"]').addClass("error"),void t.find('input[name="sailthru-email"]').after('Please enter a valid email address.
');if(t.find('input[name="sailthru-email"]').removeClass("error"),t.find('input[name="sailthru-email"]').next(".error-message").remove(),!m)return void alert("Please complete the reCAPTCHA verification.");s.prop("disabled",!0).text("SIGNING UP...");const c={[o]:1};Sailthru.integration("userSignUp",{email:d,lists:c,vars:{source_description:l,source_primary:"Website-Local",source_sub:"In-Article Sign Up",product_level:"Subscriber",account_created:`${(new Date).getTime()}`},source:"Website-Local|In-Article Sign Up|"+l,onSuccess:function(e){i.length>0?(i.removeClass("hidden"),r.addClass("hidden"),t.addClass("hidden"),i.find('input[name="newsletterEmail"]').val(d)):(r.removeClass("hidden"),t.addClass("hidden")),s.prop("disabled",!1).text("SIGN UP"),grecaptcha.reset()},onError:function(e){s.prop("disabled",!1).text("SIGN UP"),t.find('input[name="sailthru-email"]').removeClass("error"),t.find(".error-message").remove(),n.find(".vmg-newsletter-form__container").append(''+e.error+"
")}})}),e(document).on("change",'.vmg-newsletter-form__step2 input[name="additional_newsletter"]',function(){e(this).is(":checked")?i.find("#vmg-subscribe-additional").prop("disabled",!1):i.find("#vmg-subscribe-additional").prop("disabled",!0)}),e(document).on("submit",".vmg-newsletter-form__step2 form",function(e){e.preventDefault();const s=i.find('input[name="additional_newsletter"]').val(),a=i.find('input[name="newsletterEmail"]').val();Sailthru.integration("userSignUp",{email:a,lists:{[s]:1},onSuccess:function(e){i.addClass("hidden"),r.removeClass("hidden"),t.addClass("hidden"),i.find("#vmg-subscribe-additional").prop("disabled",!1).text("SUBSCRIBE")},onError:function(e){i.find("#vmg-subscribe-additional").prop("disabled",!1).text("SUBSCRIBE"),n.find(".vmg-newsletter-form__container").append(''+e.error+"
")}})}),e(document).on("click",".vmg-newsletter-form__no-thanks",function(){i.addClass("hidden"),r.removeClass("hidden"),t.addClass("hidden"),i.find("#vmg-subscribe-additional").prop("disabled",!0).text("SUBSCRIBE"),n.find(".error-message").remove()}),e(document).on("click",".vmg-newsletter-form__close-btn",function(){n.fadeOut(1e3)})})});;