HEIC source and build notes

The distributed decoder is the unmodified libheif-js 1.23.5 classic browser
bundle (SHA-256 074b2b55ef3de477ba9f794ca381f3f0324c1cba8c91b4af07395f39c22d54cc).

Pinned upstream chain:
* libheif-js: d8ec4bc3bc5bf8055975577bccbbc7e1d7313c2d (npm tag 1.23.5)
* libheif-emscripten: 5c8968a44e9c68ae677e24790d77d001ed7fe7cc (tag v1.23.5)
* its libheif gitlink: 413e2a87e6a70b3eccc3a3adc5801179dd2d9e00 (1.23.5)
* libde265: official libde265-1.0.15.tar.gz, preseeded into native build
* Emscripten 3.1.61; upstream environment Ubuntu 22.04, Node 24, TypeScript 5
The original source archives, original build scripts and licenses are preserved.
Checksums/origins are in the adjacent source-manifest.json.

1. Extract this archive into an empty working directory. Run:
     bash build/rebuild.sh
   This unpacks the original source trees and creates work/. It does not change
   any installed site. General build tools required: Linux shell, tar, curl,
   Python 3, CMake, make, pkg-config and autotools if configure is regenerated.
2. Obtain the general-purpose Emscripten SDK 3.1.61 using emsdk and source its
   emsdk_env.sh (see the upstream scripts/install-emscripten.sh). Install Node
   and TypeScript as needed for Emscripten's --emit-tsd option. The included
   emscripten-runtime archive preserves runtime source/notices, not a complete
   preinstalled SDK. Full compiler/runtime upstream source is publicly at:
     https://github.com/emscripten-core/emscripten/tree/3.1.61
3. In work/libheif, after sourcing the SDK environment, build:
     USE_WASM=1 USE_UNSAFE_EVAL=0 USE_TYPESCRIPT=1 ENABLE_LIBDE265=1 \
     LIBDE265_VERSION=1.0.15 ENABLE_AOM=0 ENABLE_OPENJPEG=0 \
     ENABLE_WEBCODECS=0 ENABLE_UNCOMPRESSED=0 bash ./build-emscripten.sh .
   This compiles the matching native libraries. Library-specific configuration,
   sources, interface bindings and generated export list logic are in the
   original build-emscripten.sh, post.js and source tree. Optional unrelated
   encoders/AV1/JPEG2000 are not enabled in this decoder build.
4. Arrange outputs as libheif/ and libheif-wasm/ using the upstream native
   dist-prep.sh (review its paths first), or stage the WASM build directly as
   libheif-wasm/{libheif.js,libheif.wasm,libheif.d.ts,LICENSE}. Tar that directory.
   The original libheif-js install.js accepts this tar as a local argument.
5. In work/libheif-js, install the locked bundling tools using npm ci, then run:
     node scripts/install.js /absolute/path/to/native-output.tar.gz
   This emits libheif-wasm/libheif-bundle.js. For a bundling-only reproduction,
   use the included verification-inputs/native-release.tar.gz instead of
   compiling native sources again. It is an original precompiled upstream
   input for verification, not a substitute for the included native source.
6. Follow RELINK.txt to replace the decoder in a local copy of the site.

Verification performed by the distributor:
* npm package SHA-512 matched registry metadata and decoder SHA-256 matched.
* Embedded WASM matched the upstream native release byte-for-byte.
* Runtime version exports reported libheif 1.23.5 and libde265 1.0.15.
* Running the original JS install/bundling script with the native release
  and the supplied dependency lock reproduced the exact distributed JS hash.
* A full local native compilation / native bit-reproducibility was NOT tested.
Bundler dependencies are general build tools and are installed via the lock;
their source URLs/integrity are recorded there. No application server, paid
service or access credentials are required to obtain or modify the libraries.
