/** * sdr-api-shim.js - wires sdr-api-core.js into the page in place of app.py. * * A Static Space serves files and nothing else, so the `http://127.0.0.1:4173` * server upstream's `static/app.js` talks to does not exist. This file answers * those requests in the browser: * * 1. an IndexedDB store standing in for data/reviews.json and uploads/, * 2. an XMLHttpRequest (and fetch) interceptor for every /api/ path, * 3. a click interceptor for the Download button, which upstream implements * as a navigation rather than a request, * 4. a one-line notice, because on a public URL "your documents stay in this * browser" is not what a visitor would assume. * * Nothing here reimplements review logic - that all lives in sdr-api-core.js. * This file is only the environment. * * Loaded by a