(function(t){var m={initialize:function(){t("#text-search, #filter-form").on("submit",function(){t("#text-search [name='sp[f]']").val(t("#filter-form [name='sp[f]']").val().replace(/(\d\d)\/(\d\d)\/(\d{4})/,"$3-$1-$2")),t("#text-search [name='sp[t]']").val(t("#filter-form [name='sp[t]']").val().replace(/(\d\d)\/(\d\d)\/(\d{4})/,"$3-$1-$2")),t("#text-search [name='category_name']").val(t("#filter-form [name='category_name']").val()),t("#text-search [name='post_type']").val(t("#filter-form [name='post_type']").val())}),t("#filter-apply").on("click",function(){t("#text-search").trigger("submit")}),t("#filter-apply").on("keydown",function(e){e.key==="Enter"&&t("#text-search").trigger("submit")}),t("#icon-search").on("click",function(){t("#text-search").trigger("submit")}),t("#icon-search").on("keydown",function(e){e.key==="Enter"&&t("#text-search").trigger("submit")}),t("#dates").change(function(){t(this).attr("id")!=="date-all"?(t("#filter-form [name='sp[f]']").val(t(this).val()),t("#filter-form [name='sp[t]']").val(t.datepicker.formatDate("mm/dd/yy",new Date))):(t("#filter-form [name='sp[f]']").val(""),t("#filter-form [name='sp[t]']").val(""))}),t("#categories").change(function(){t(this).attr("id")!=="categories-all"&&t("#filter-form [name='category_name']").val(t(this).val())});var r=t("#date-end"),o=t("#date-start");function i(e,a){const[u,y,b]=e.split("/").map(Number),[v,h,g]=a.split("/").map(Number),k=new Date(b,u-1,y);return new Date(g,v-1,h)document.getElementById(e),c=p("customizer-styles"),d=e=>{if(c){const a=c.textContent.match(new RegExp(`--${e}:\\s*(?#?[\\w\\d]+);`));if(a&&a.groups)return a.groups.color}return`var(--${e})`},s=document.createElement("style");s.id="obit-popup-styles-override",s.textContent=` .ui-datepicker-header { background: ${d("primary")} !important; } .ui-datepicker-prev:hover, .ui-datepicker-next:hover { background-color: ${d("primary-light")} !important; } .ui-datepicker-calendar tbody td:hover { background-color: ${d("primary-light")} !important; } .ui-datepicker-calendar tbody td.ui-datepicker-current-day { background-color: ${d("primary-light")} !important; } `,document.head.appendChild(s);const f=p("obit-remove-filters");f&&f.addEventListener("click",()=>{r.datepicker("option","minDate",null),o.datepicker("option","maxDate",null)})}};t(function(){m.initialize()})})(jQuery); ; (function(o){let t=new Image,i=o(".custom-logo").find("img"),e=i.attr("src");t.onload=function(){i.prop("width",t.width),i.prop("height",t.height)},t.src=e})(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()})(); ;