var __defProp=Object.defineProperty;var __name=(target,value)=>__defProp(target,"name",{value,configurable:!0});(function($){var siteSearch={initialize:__name(function(){$("#text-search, #filter-form").on("submit",function(){$("#text-search [name='sp[f]']").val($("#filter-form [name='sp[f]']").val().replace(/(\d\d)\/(\d\d)\/(\d{4})/,"$3-$1-$2")),$("#text-search [name='sp[t]']").val($("#filter-form [name='sp[t]']").val().replace(/(\d\d)\/(\d\d)\/(\d{4})/,"$3-$1-$2")),$("#text-search [name='category_name']").val($("#filter-form [name='category_name']").val()),$("#text-search [name='post_type']").val($("#filter-form [name='post_type']").val())}),$("#filter-apply").on("click",function(){$("#text-search").trigger("submit")}),$("#filter-apply").on("keydown",function(e){e.key==="Enter"&&$("#text-search").trigger("submit")}),$("#icon-search").on("click",function(){$("#text-search").trigger("submit")}),$("#icon-search").on("keydown",function(e){e.key==="Enter"&&$("#text-search").trigger("submit")}),$("#dates").change(function(){$(this).attr("id")!=="date-all"?($("#filter-form [name='sp[f]']").val($(this).val()),$("#filter-form [name='sp[t]']").val($.datepicker.formatDate("mm/dd/yy",new Date))):($("#filter-form [name='sp[f]']").val(""),$("#filter-form [name='sp[t]']").val(""))}),$("#categories").change(function(){$(this).attr("id")!=="categories-all"&&$("#filter-form [name='category_name']").val($(this).val())});var dateEnd=$("#date-end"),dateStart=$("#date-start");function searchCompareDates(dateStartVal,dateEndVal){const[startMonth,startDay,startYear]=dateStartVal.split("/").map(Number),[endMonth,endDay,endYear]=dateEndVal.split("/").map(Number),startDayCheck=new Date(startYear,startMonth-1,startDay);return new Date(endYear,endMonth-1,endDay)document.getElementById(selector),"byId"),customizerStyles=byId("customizer-styles"),getColor=__name(colorType=>{if(customizerStyles){const match=customizerStyles.textContent.match(new RegExp(`--${colorType}:\\s*(?#?[\\w\\d]+);`));if(match&&match.groups)return match.groups.color}return`var(--${colorType})`},"getColor"),overridePopupStyles=document.createElement("style");overridePopupStyles.id="obit-popup-styles-override",overridePopupStyles.textContent=` .ui-datepicker-header { background: ${getColor("primary")} !important; } .ui-datepicker-prev:hover, .ui-datepicker-next:hover { background-color: ${getColor("primary-light")} !important; } .ui-datepicker-calendar tbody td:hover { background-color: ${getColor("primary-light")} !important; } .ui-datepicker-calendar tbody td.ui-datepicker-current-day { background-color: ${getColor("primary-light")} !important; } `,document.head.appendChild(overridePopupStyles);const removeFiltersButton=byId("obit-remove-filters");removeFiltersButton&&removeFiltersButton.addEventListener("click",()=>{dateEnd.datepicker("option","minDate",null),dateStart.datepicker("option","maxDate",null)})},"initialize")};$(function(){siteSearch.initialize()})})(jQuery); ; (function($){let image=new Image,imgLogo=$(".custom-logo").find("img"),imgSrc=imgLogo.attr("src");image.onload=function(){imgLogo.prop("width",image.width),imgLogo.prop("height",image.height)},image.src=imgSrc})(jQuery); ; (function(){({initialize:function(){let e=this;e.initializeLoadAssets(),document.addEventListener("DOMContentLoaded",function(){e.mutationObserver(),e.REVmutationObserver(),e.STNmutationObserver()})},debug:function(){let e=!1;return typeof DFM_AD_MODS_DEBUG<"u"&&(e=!0),e},initializeLoadAssets:function(){this.debug()&&console.log("DEBUG: initializeLoadAssets success");let e=localStorage.getItem("hhsl");if(typeof MNGAuthentication<"u"&&typeof MNGAuthentication.isUserAdFree=="function"&&MNGAuthentication.isUserAdFree())return this.debug()&&console.log("DEBUG: MNGAuthentication is initialized and indicated that the user is ad free; returning false for ad-free experience. auth via MNGAuthentication"),this.listenForCNX=!0,this.listenForSTN=!0,this.listenForREV=!0,this.addOrRemoveElement("remove"),!1;if(typeof e<"u"&&e==="access")return this.debug()&&console.log('DEBUG: hhsl localstorage is not undefined and does include "access"; returning false for ad-free experience. auth via localStorage'),this.listenForCNX=!0,this.listenForSTN=!0,this.listenForREV=!0,this.addOrRemoveElement("remove"),!1;this.debug()&&console.log("DEBUG: NO access detected, load ad scripts function"),this.listenForCNX=!1,this.listenForSTN=!1,this.listenForREV=!1,this.addOrRemoveElement("add"),this.loadAdsScripts()},loadAdsScripts:function(){this.debug()&&console.log("DEBUG: loadAdsScripts success");let e=document.createElement("script");e.defer=!0,e.type="text/javascript",e.src="https://s.ntv.io/serve/load.js",document.getElementsByTagName("body")[0].appendChild(e),this.debug()&&console.log("DEBUG: nativo script written"),document.getElementById("mobile-adhesion").classList.remove("closed"),this.debug()&&console.log("DEBUG: mobile adhesion banner showing")},addOrRemoveElement:function(e){const i=document.querySelectorAll(".dfp-ad"),n=document.querySelectorAll("[data-stn-player],[data-s2n-api]"),o=document.querySelectorAll(".cnx-main-container"),s=document.querySelectorAll(".revcon-footer");e==="remove"?(i.forEach(function(t){return t.remove()}),n.forEach(function(t){return t.remove()}),o.forEach(function(t){return t.remove()}),s.forEach(function(t){return t.remove()})):(i.forEach(function(t){return t.style.visibility="visible"}),n.forEach(function(t){return t.style.visibility="visible"}),o.forEach(function(t){return t.style.visibility="visible"}),s.forEach(function(t){return t.style.visibility="visible"}))},mutationObserver:function(){var e=new MutationObserver((function(i){i.forEach((function(n){this.listenForCNX&&document.querySelectorAll(".cnx-main-container").length>0&&this.addOrRemoveElement("remove")}).bind(this))}).bind(this));e.observe(document.body,{childList:!0,subtree:!0})},REVmutationObserver:function(){var e=new MutationObserver((function(i){i.forEach((function(n){this.listenForREV&&document.querySelectorAll(".revcon-footer").length>0&&this.addOrRemoveElement("remove")}).bind(this))}).bind(this));e.observe(document.body,{childList:!0,subtree:!0})},STNmutationObserver:function(){var e=new MutationObserver((function(i){i.forEach((function(n){this.listenForSTN&&document.querySelectorAll("[data-stn-player],[data-s2n-api]").length>0&&this.addOrRemoveElement("remove")}).bind(this))}).bind(this));e.observe(document.body,{childList:!0,subtree:!0})}}).initialize()})(); ; (function(){({initialize:function(){this.initializeS2nVideo()},initializeS2nVideo:function(){let i=localStorage.getItem("hhsl"),e=document.querySelector("stn-player");if(e!==null&&typeof e<"u")if(typeof i<"u"&&i==="access"||typeof MNGAuthentication<"u"&&typeof MNGAuthentication.isUserAdFree=="function"&&MNGAuthentication.isUserAdFree())try{e.remove()}catch{}else try{e.style.display="block"}catch{}}}).initialize()})(); ;