(()=>{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";jQuery(document).ready(function(t){const e=t(".site-header").outerHeight()+(t("#wpadminbar").outerHeight()||0);t(window).on("load",function(){const o=t(".best-of-category-post.highlighted-post").first();o.length&&t("html, body").animate({scrollTop:o.offset().top-e},1e3)}),t(".best-of-category-view-all-list-modal-posts-list a").on("click",function(o){o.preventDefault();const s=t(this).data("scroll-to"),a=t(s);a.length&&t("html, body").animate({scrollTop:a.offset().top-e},1e3)});var o=t(".best-of-category-posts").data("category-url");let s=[];t(window).on("scroll",function(){if(!(jQuery("#best-of-search").length>0)){var e=o,a="",i="";t(".best-of-category-post").each(function(){(function(e){const o=(t(".site-header").outerHeight()||0)+(t("#wpadminbar").outerHeight()||0);return t(e).offset().top<=t(window).scrollTop()+o})(this)&&(e=t(this).attr("bestof-url"),a=t(this).data("post-meta-title")||"",i=t(this).data("post-object-id")||"")}),i&&!s.includes(i)&&(s.push(i),window.dataLayer&&window.dataLayer.push({event:"set_page_dimensions",page_type:"TOC",section_vertical:"Best Of",object_id:i})),a&&(document.title=a),window.location.pathname!==e&&history.replaceState(null,"",e)}})}),jQuery(document).ready(function(t){t(".best-of-year-share-button").on("click",function(e){e.preventDefault(),t(this).parent().addClass("active")}),t(".best-of-category-post-share-button").on("click",function(e){e.preventDefault(),e.stopPropagation(),t(this).closest(".best-of-category-post-share-buttons").toggleClass("active")}),t(".best-of-year-share-tools-close").on("click",function(e){e.preventDefault(),e.stopPropagation(),t(".best-of-year-share-buttons").removeClass("active")}),t(".best-of-category-post-share-tools-close").on("click",function(e){e.preventDefault(),e.stopPropagation(),t(this).closest(".best-of-category-post-share-buttons").removeClass("active")}),t(document).on("click",function(e){t(e.target).closest(".best-of-year-share-buttons, .best-of-year-share-tools-close").length||t(".best-of-year-share-buttons").removeClass("active")}),t(document).on("click",function(e){t(e.target).closest(".best-of-category-post-share-buttons").length||t(".best-of-category-post-share-buttons").removeClass("active")}),t(document).on("click",".best-of-year-share-links-copy-link, .best-of-category-post-share-links-copy-link",function(e){e.preventDefault();const o=t(this),s=o.data("clipboard-text");navigator.clipboard.writeText(s),o.text("Copied"),setTimeout(function(){o.text("Copy Link")},1e3)})}),jQuery(document).ready(function(t){t(".best-of-category-view-all > a").on("click",function(e){e.preventDefault(),t(".best-of-category-view-all").addClass("active")}),t(".best-of-category-view-all-list-modal-close-button").on("click",function(){t(".best-of-category-view-all").removeClass("active")}),t(document).on("click",function(e){!t(".best-of-category-view-all").hasClass("active")||t(e.target).closest(".best-of-category-view-all-list-modal-inner").length||t(e.target).closest(".best-of-category-view-all > a").length||t(".best-of-category-view-all").removeClass("active")})}),jQuery(document).ready(function(t){t(document).on("click",".best-of-archive-sidebar-categories-label",function(e){e.preventDefault(),t(".best-of-sticky, .best-of-archive-sidebar-categories").addClass("active")}),t(document).on("click",function(e){t(".best-of-archive-sidebar-categories").hasClass("active")&&!t(e.target).closest(".best-of-archive-sidebar-categories-popup-inner, .best-of-archive-sidebar-categories-label").length&&t(".best-of-sticky, .best-of-archive-sidebar-categories").removeClass("active")}),t(document).on("click",".best-of-archive-close-button",function(e){e.preventDefault(),t(".best-of-sticky, .best-of-archive-sidebar-categories").removeClass("active")})}),jQuery(document).ready(function(t){function e(){var e=(t("#wpadminbar").length?t("#wpadminbar").outerHeight():0)+(t("header.site-header").outerHeight()||0),o=t(".best-of-sticky"),s=o.data("offset-top");o.length&&(s||(s=o.offset().top,o.data("offset-top",s)),t(window).scrollTop()+e>=s?o.addClass("is-fixed").css("top",e+"px"):o.removeClass("is-fixed").css("top",""))}e(),t(window).on("scroll resize",function(){e()})}),jQuery(document).ready(function(t){function e(){t(".best-of-category-post-share-tooltip").each(function(){var e=t(this),o=e.closest(".best-of-category-post-share-buttons");e.removeClass("align-left align-center align-right");var s=t(window).width(),a=o.offset(),i=o.outerWidth(),n=e.outerWidth(),c=a.left,r=a.left+i/2-n/2,l=a.left+i-n;r>=0&&r+n<=s?e.addClass("align-center"):c>=0&&c+n<=s?e.addClass("align-left"):l>=0&&l+n<=s?e.addClass("align-right"):e.addClass("align-center")})}e(),t(window).on("resize scroll",function(){e()}),t(".best-of-category-post-share-buttons").on("mouseenter",function(){setTimeout(e,10)})}),jQuery(document).ready(function(t){t(window).on("resize scroll",function(){t(".best-of-category-post-share-links:visible").each(function(){!function(e){var o=t(e),s=o.closest(".best-of-category-post-share-buttons");o.css({position:"absolute",top:"auto",bottom:"auto",left:"auto",right:"auto",width:"280px"});var a=t(window).width(),i=t(window).height(),n=t(window).scrollTop(),c=s.offset(),r=s.outerHeight(),l=o.outerWidth(),f=o.outerHeight(),u=c.top-n>=f+20,d=i-(c.top-n+r)>=f+20;if(u)o.css({bottom:"calc(100% + 20px)",top:"auto"});else{if(!d){var h=Math.max(20,(i-f)/2+n);return void o.css({position:"fixed",top:h+"px",left:"50%",transform:"translateX(-50%)"})}o.css({top:"calc(100% + 20px)",bottom:"auto"})}c.left+l>a?o.css({right:0,left:"auto"}):o.css({left:0}),l>a-40&&o.css({width:a-40+"px"})}(this)})})})})();;