Please update to the latest version",p.textContent="Update",l.append(s),l.append(p),r.append(l),i.append(r);const c=()=>{const e=document.createElement("style");e.textContent=`\n .loaderUpdate {\n margin: auto;\n border: 3px solid ${o};\n border-radius: 50%;\n border-top: 3px solid ${t};\n width: 25px;\n height: 25px;\n -webkit-animation: spinUpdate 1s linear infinite;\n animation: spinUpdate 1s linear infinite;\n }\n \n @-webkit-keyframes spinUpdate {\n 0% {\n -webkit-transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n }\n }\n \n @keyframes spinUpdate {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n }\n `,document.head.appendChild(e),l.removeChild(p);const n=document.createElement("div"),a=document.createElement("div");a.className="loaderUpdate",n.append(a),l.append(n),caches.keys().then(e=>{e.forEach(e=>{caches.delete(e)})}).then(()=>{}).finally(()=>{console.log("Clear Cache Complete"),navigator.serviceWorker.getRegistration().then(e=>{console.log("Get Registration Complete"),e?e.unregister().then(()=>{console.log("Unregister Complete")}).catch(e=>{console.log("Unregister has error",e)}).finally(()=>{window.location.reload(!0)}):window.location.reload(!0)})})};p.onclick=c,setTimeout(c,1e3)}},5e3)})