"""PyScript entrypoint: mount the app, then resume the shared session or show sign-in."""
from pyscript import document, window

from framework import mount
from w76kit import account

from board import store  # noqa: F401  (registers its signed-in / signed-out hooks)
from board.views import App


async def main() -> None:
    mount("#app", App)
    try:
        document.getElementById("splash").remove()   # JsNull when absent: just skip
    except Exception:
        pass
    await account.boot()
    window.__w76BoardReady = True


await main()  # noqa: F704 - PyScript runs this module with top-level await
