import{m as t,a as e,b as a,c as r,d as o}from"./vendor-DZ5e5eAs.js";import{s as n,i}from"./Nav/Nav.ts-KxSY6x79.js";import{g as c}from"./cookies-Btke1V1y.js";import"./debouncer-DovBpx4g.js";const s=36e5,l=24*s,u=7*l,p=30*l,d=365*l,m=()=>"undefined"!=typeof window&&window.ffte&&window.ffte.lang?window.ffte.lang:"en-US",f=(t,e=null,a=new Date)=>t>new Date(a).setDate(a.getDate()-3)&&t{const r=a?{timeStyle:"short"}:{};return new Intl.DateTimeFormat(e||m(),{dateStyle:"long",...r}).format(t)},y=(t,e=null,a=Date.now())=>{const r=a-t,o=new Intl.RelativeTimeFormat(e||m(),{numeric:"auto"});return r<6e4?o.format(-Math.round(r/1e3),"second"):r{Array.prototype.forEach.call(t,(function(t){t.innerHTML=e(new Date(t.getAttribute("datetime")))}))},j=Object.freeze(Object.defineProperty({__proto__:null,formatAbsoluteDate:v,formatDate:f,formatRelativeDate:y,updateRelativeDates:()=>{h(document.querySelectorAll("time.relative-date"),(t=>f(t))),h(document.querySelectorAll("time.live-feed-date"),(t=>v(t,null,!0)))}},Symbol.toStringTag,{value:"Module"})),w=["application/javascript","application/ecmascript","application/x-ecmascript","application/x-javascript","text/ecmascript","text/javascript","text/javascript1.0","text/javascript1.1","text/javascript1.2","text/javascript1.3","text/javascript1.4","text/javascript1.5","text/jscript","text/livescript","text/x-ecmascript","text/x-javascript"],g=Object.freeze(Object.defineProperty({__proto__:null,loadLazyIframes:function(t){t.querySelectorAll("iframe[data-lazy-src]").forEach((t=>{!t.src&&t.dataset&&t.dataset.lazySrc&&(t.src=t.dataset.lazySrc)}))},runScripts:function(t){t.querySelectorAll("script").forEach((function(t){const e=t.getAttribute("type");e&&!w.includes(e)||function(t){const e=document.createElement("script");e.type="text/javascript",t.src?e.src=t.src:e.textContent=t.innerText,document.head.appendChild(e),t.parentNode.removeChild(t)}(t)}))}},Symbol.toStringTag,{value:"Module"})),x="data-lazy-src",b=t=>t.isIntersecting;t.plugin(e),t.plugin(a),t.plugin(r),t.plugin(o),window.Alpine=t,window.utils={screenSizes:n,getCookieValue:c,scripts:g,dates:j},(t=>{const e=(a=x,t=>{const e=t.getAttribute(a);return e&&t.setAttribute("src",e),t});var a;const r=new IntersectionObserver(((t,a)=>t.filter(b).map((t=>t.target)).map(e).forEach((t=>a.unobserve(t)))),{threshold:.1});document.querySelectorAll(`iframe[${x}]`).forEach((t=>r.observe(t)))})(),i();