/* eslint-disable */
// Главный файл: роутер, тема.
const App = () => {
const hash = useHashRoute();
const [theme, setTheme] = useTheme();
// hashes can be #/ or #/services or #/services#infra (anchor on services).
// We split on second '#'.
const path = hash.replace(/^#/, "");
const [route] = path.split("#");
// After route change, scroll to anchor if any
React.useEffect(() => {
const m = path.match(/#([^?]+)$/);
if (m && m[1]) {
requestAnimationFrame(() => {
const el = document.getElementById(m[1]);
if (el) el.scrollIntoView({ behavior: "auto", block: "start" });
});
}
}, [path]);
let page;
if (route === "/" || route === "" || route === "/home") page =