',darkModeToggle.setAttribute("aria-pressed","true"),darkModeToggle.setAttribute("aria-label","Disable dark mode"),localStorage.setItem("darkMode","enabled")},disableDarkMode=()=>{document.body.classList.remove("darkmode"),darkModeToggle.innerHTML='',darkModeToggle.setAttribute("aria-pressed","false"),darkModeToggle.setAttribute("aria-label","Enable dark mode"),localStorage.setItem("darkMode","disabled")};("enabled"===darkMode||!darkMode&&activeByDefault)&&enableDarkMode(),darkModeToggle.addEventListener("click",(()=>{darkMode=localStorage.getItem("darkMode"),"enabled"!==darkMode?enableDarkMode():disableDarkMode()}))