import{D as o,fa as s}from"./chunk-AZDFANJY.js";var c=(()=>{class t{constructor(){this.theme=s("light")}initTheme(){let e=localStorage.getItem("THEME");e?this.theme.set(e):this.theme.set(window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),document.body.classList.toggle("dark",this.theme()==="dark")}toggleTheme(){this.theme.update(e=>e==="dark"?"light":"dark"),localStorage.setItem("THEME",this.theme()),document.body.classList.toggle("dark",this.theme()==="dark")}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275prov=o({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();export{c as a};
