Darkmode = 'auto' === localStorage.getItem('darkmode');
      if ((autoDarkmode || localStorage.getItem('darkmode') === null) && window.matchMedia) {
        const e = (e) => {
          e
            ? (localStorage.setItem('theme', 'dark'), document.documentElement.setAttribute('data-theme', 'dark'))
            : (localStorage.setItem('theme', 'light'), document.documentElement.setAttribute('data-theme', 'light'));
        };
        window.matchMedia('(prefers-color-scheme: dark)').matches ? e(!0) : e(!