<head>
    <meta charset="utf-8"/>
    <title>{{Name}}</title>
    <script data-cfasync="false">
      (function() {
        const root = document.documentElement;
        const savedTheme = localStorage.getItem("theme");
        const theme = savedTheme || (window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light");
        root.setAttribute("color-scheme", theme);
        window.__clangDocTheme = theme;
      })();
    </script>
    {{#Stylesheets}}
        <link rel="stylesheet" type="text/css" href="{{.}}"/>
    {{/Stylesheets}}
    {{#Scripts}}
        <script src="{{.}}"></script>
    {{/Scripts}}
    {{! Highlight.js dependency for syntax highlighting }}
    <link id="hljs-light-theme" rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/default.min.css" />
    <link id="hljs-dark-theme" rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/dark.min.css" />
    <script>
      const root = document.documentElement;
      const hlLight = document.getElementById("hljs-light-theme");
      const hlDark = document.getElementById("hljs-dark-theme");

      function changeHighlightJS(theme) {
        if (theme === "dark") {
          hlDark.disabled = false;
          hlLight.disabled = true;
        } else {
          hlDark.disabled = true;
          hlLight.disabled = false;
        }
      }

      changeHighlightJS(window.__clangDocTheme);
      const themeQuery = window.matchMedia("(prefers-color-scheme: dark)");
      // Listen to system theme changes.
      // If the user manually toggles the theme, the theme wont change according
      // to system changes.
      themeQuery.addEventListener("change", (event) => {
        if (localStorage.getItem("theme") !== null) {
          return;
        }

        const theme = event.matches ? "dark" : "light";
        root.setAttribute("color-scheme", theme);
        changeHighlightJS(theme);
      });
    </script>
    <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@24,400,0,0&icon_names=routine" />
    <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/languages/cpp.min.js"></script>
</head>
