import "file:///Users/damien.maillard/dev/perso/jsenv-core/dist/js/new_stylesheet.js";
import mainStyleSheet from "file:///Users/damien.maillard/dev/perso/jsenv-core/packages/related/cli/template-web/src/main.css?as_css_module";
import { initCounter } from "file:///Users/damien.maillard/dev/perso/jsenv-core/packages/related/cli/template-web/src/app/counter.js";
document.adoptedStyleSheets = [...document.adoptedStyleSheets, mainStyleSheet];
const jsenvLogoUrl = new URL("file:///Users/damien.maillard/dev/perso/jsenv-core/packages/related/cli/template-web/src/jsenv_logo.svg", import.meta.url);
document.querySelector("#root").innerHTML = "<h1>Hello world!</h1>\n<img class=\"logo\" src=".concat(jsenvLogoUrl, " alt=\"logo\" />\n<p>\n  <button id=\"counter_button\">Click me!</button>\n  <p>\n    Number of clicks: <span id=\"counter_output\"></span>\n  </p>\n</p>\n<p>\n  Edit <a href=\"javascript:window.fetch('/__open_in_editor__/jsenv_logo.svg')\">jsenv_logo.svg</a> and save to test HMR updates.\n</p>\n<a href=\"https://github.com/jsenv/core\" target=\"_blank\">Documentation</a>");
initCounter();
if (undefined) {
  undefined.accept();
  undefined.dispose(() => {
    document.querySelector("#root").innerHTML = "";
    document.adoptedStyleSheets = document.adoptedStyleSheets.filter(s => s !== mainStyleSheet);
  });
}