1const r=n=>{const e=Math.floor(n/86400),t=Math.floor(n%86400/3600),i=Math.floor(n%3600/60),o=n%60;return`${e}D ${t}H ${i}M ${o}S`};class s{constructor(e){this.timers=e.map(t=>({element:t,label:t.dataset.label,expirationTime:Number(t.dataset.expirationTime)})).filter(t=>Number.isFinite(t.expirationTime)),this.tick()}tick(){const e=Date.now();this.timers=this.timers.filter(t=>this.render(t,e)),this.timers.length&&setTimeout(()=>this.tick(),1e3-e%1e3)}render(e,t){const{element:i}=e,o=e.expirationTime-t;return o<=0?(i.hidden=!0,!1):(i.textContent=`${e.label} ${r(Math.ceil(o/1e3))}`,!0)}}const E=()=>{const n=Array.from(document.querySelectorAll(".j-promo-countdown"));n.length&&new s(n)};export{E as init};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.