- Add foliate-js (MIT) as a git submodule, pinned at 78914ae
- Add EPUBRenderer wrapping foliate's <foliate-view> paginator: drives the
existing toolbar (prev/next/jump via relocate's location.current/total) and
maps zoom to font-size reflow; reflowable books use content-based locations
- Register epub/mobi/azw3/azw/kf8 in EXT_MAP; thread file name through for
foliate's format hinting; add format badge + dropzone tags
- Stub foliate's pdf.js (we use our own PDFRenderer) via a Vite resolveId
plugin — it bundles pdf.mjs through a `new URL` glob that breaks vite build
- README + index.html: document EPUB/MOBI and credit foliate-js
Verified: vite build succeeds (modules code-split); EPUB renders, paginates,
navigates and zooms in the dev preview.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>