").append(this.eq(0).clone()).html()},Number.prototype.countDecimals=function(){return Math.floor(this.valueOf())===this.valueOf()?0:this.toString().split(".")[1].length||0};"serviceWorker"in navigator?window.addEventListener("load",(()=>{navigator.serviceWorker.register("/sw.js").then((e=>{console.log("SW successful with scope: ",e.scope),e.installing?(window.serviceWorker=e.installing,console.log("#installing")):e.waiting?(window.serviceWorker=e.waiting,console.log("#waiting")):e.active&&(window.serviceWorker=e.active,console.log("active"),"activated"!==window.serviceWorker.state||navigator.serviceWorker.controller||(window.addEventListener("online",updateOnlineStatus),window.addEventListener("offline",updateOnlineStatus)))}),(e=>{console.log("SW failed: ",e)})).catch((e=>{console.log(e)}))})):console.log("SW not supported");