diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..218e895 --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1 @@ +ko_fi: A3U028PMFM diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a2d51a0..39955c9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,5 +1,10 @@ name: build +# Push and pull_request start runs on the PUBLIC repo, where Actions minutes are +# free. The private dev repo pays for every minute, so there EVERY job is gated +# on the event being a manual dispatch: a push or a PR there creates a run whose +# jobs are all skipped, which bills nothing. Keep the `if:` on every job you add +# (CiWorkflowLintTests fails a job without it). on: push: branches: [main] @@ -16,8 +21,10 @@ on: permissions: contents: read +# The event is part of the group: on the private repo a push creates a run of +# skipped jobs, and it must never cancel a manual run of the same ref. concurrency: - group: ${{ github.workflow }}-${{ github.ref }} + group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }} cancel-in-progress: true env: @@ -28,6 +35,7 @@ env: jobs: windows: name: windows / native + managed + if: github.event_name == 'workflow_dispatch' || !github.event.repository.private # PINNED, not `windows-latest`. The floating label moves to the next image # on GitHub's schedule and takes the Visual Studio, CMake and Windows SDK # versions with it — a native build that starts failing on a morning nobody @@ -37,8 +45,9 @@ jobs: timeout-minutes: 90 steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 with: + persist-credentials: false submodules: recursive # global-json-file, NOT dotnet-version: "10.x". The floating spec installs @@ -47,7 +56,7 @@ jobs: # different analyzer rule sets. global.json pins 10.0.400 with # rollForward: latestFeature, which is the one place the toolchain is # declared. - - uses: actions/setup-dotnet@v6 + - uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6 with: global-json-file: global.json @@ -59,13 +68,13 @@ jobs: id: tags shell: bash run: | - tags=$(grep -E '^set\((JUCE_TAG|RUBBERBAND_TAG|NEURALAUDIO_TAG|DEMUCS_CPP_TAG) ' \ + tags=$(grep -E '^set\((JUCE|RUBBERBAND|NEURALAUDIO)_(TAG|COMMIT) |^set\(DEMUCS_CPP_TAG ' \ src/JuceSharp.Native/CMakeLists.txt | tr -d ' ') echo "$tags" echo "hash=$(printf '%s' "$tags" | sha256sum | cut -c1-32)" >> "$GITHUB_OUTPUT" - name: Cache FetchContent sources - uses: actions/cache@v6 + uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6 with: path: src/JuceSharp.Native/build/_deps key: deps-windows-${{ steps.tags.outputs.hash }} @@ -91,6 +100,14 @@ jobs: - name: Build managed run: dotnet build JuceSharp.sln -c Release + # A hosted runner has NO audio endpoint, and most engine tests open the + # DEFAULT device (`new JuceAudioEngine()` -> WASAPI default output); without + # one engine_create fails with Device in ~860 cases. This installs the + # VB-CABLE virtual device (LABSN/sound-ci-helpers, pinned to v1.0.4's SHA) + # so those tests run against a real WASAPI endpoint. + - name: Virtual audio device + uses: LABSN/sound-ci-helpers@d08c889a7bba7d9b1b059f8f76dac4672ea3a9cf # v1.0.4 + # The null device gives the engine tests a deterministic callback on a # runner with no sound card. # @@ -119,7 +136,7 @@ jobs: run: dotnet pack JuceSharp.sln -c Release -o artifacts - name: Upload packages - uses: actions/upload-artifact@v6 + uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6 with: name: nupkg path: | @@ -128,28 +145,34 @@ jobs: if-no-files-found: error - name: Upload native binaries - uses: actions/upload-artifact@v6 + uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6 with: name: native-win-x64 path: src/JuceSharp/runtimes/win-x64/native/ if-no-files-found: error - # A MEASUREMENT, not a gate. Nothing here has ever been built for Linux and - # the ASIO/VST3 host paths are Windows-only, so this is expected to fail — - # it exists so the distance to a Linux build is visible and shrinking rather - # than unknown. Flip continue-on-error off the day it goes green. - linux-distance: - name: linux / native only (informational) + # The Linux build of the engine library alone (juce_sharp). It went green + # once the JUCE Linux dependencies below were complete (fontconfig, XInput2), + # so it is a gate now: a change that breaks the Linux compile fails the run. + # Only the library is built; the VST host (Win32 kernel objects), ctest and + # the managed suite stay Windows-only (the windows job above). + linux: + name: linux / native library + if: github.event_name == 'workflow_dispatch' || !github.event.repository.private # Pinned for the same reason as the windows job above. runs-on: ubuntu-24.04 - continue-on-error: true timeout-minutes: 90 steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 with: + persist-credentials: false submodules: recursive + # fontconfig: JUCE looks for 'freetype2;fontconfig' as ONE pkg-config + # set, so without libfontconfig1-dev it drops freetype too and juceaide + # (built at configure time) fails on . libxi-dev: JUCE's + # gui_basics includes unconditionally on Linux. - name: Install JUCE Linux dependencies run: | sudo apt-get update @@ -157,7 +180,12 @@ jobs: libasound2-dev \ libjack-jackd2-dev \ libfreetype6-dev \ + libfontconfig1-dev \ libx11-dev \ + libxext-dev \ + libxi-dev \ + libxcomposite-dev \ + libxrender-dev \ libxrandr-dev \ libxinerama-dev \ libxcursor-dev \ @@ -167,12 +195,12 @@ jobs: - name: Resolve dependency tags id: tags run: | - tags=$(grep -E '^set\((JUCE_TAG|RUBBERBAND_TAG|NEURALAUDIO_TAG|DEMUCS_CPP_TAG) ' \ + tags=$(grep -E '^set\((JUCE|RUBBERBAND|NEURALAUDIO)_(TAG|COMMIT) |^set\(DEMUCS_CPP_TAG ' \ src/JuceSharp.Native/CMakeLists.txt | tr -d ' ') echo "hash=$(printf '%s' "$tags" | sha256sum | cut -c1-32)" >> "$GITHUB_OUTPUT" - name: Cache FetchContent sources - uses: actions/cache@v6 + uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6 with: path: src/JuceSharp.Native/build/_deps key: deps-linux-${{ steps.tags.outputs.hash }} diff --git a/AGENTS.md b/AGENTS.md index 4a3da0c..99d6ec4 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -74,6 +74,14 @@ purpose — an import would re-load the bytes and defeat the point. lowpass. Shares `src/wem/WemVorbisCommon.h` with the decoder. `AbiV44Tests`, `Wem/WemEncoderTests`. → `docs/agents/wem-encoder.md` +- **ABI v48: the note upload names its byte length, and untrusted inputs are + capped:** `dca_engine_chart_source_set_notes_for_player2` checks count x stride + against the buffer; a `.wem` is capped at 256 MiB and is NEVER streamed (a + WEM that does not fit the preload budget is refused); `namamp` dry-bypasses a + capture rate outside [8, 384] kHz instead of terminating on its load thread; + `dca_plugin_save_state` refuses a state over INT32_MAX. `AbiV48Tests`, + `RtWemSourceIsPreloadedNeverStreamed`. → `native-engine-abi.md` + - **ABI v42 decodes Wwise-Vorbis `.wem` NATIVELY (#426):** seven additive `dca_wem_*` exports, and every engine format manager opens a `.wem` as a source (decoded on the load thread, 16-bit preload). The decoder (`src/wem/`) is a @@ -908,7 +916,20 @@ purpose — an import would re-load the bytes and defeat the point. `Directory.Build.targets` packs the LICENSE. `global.json` pins the SDK with `rollForward`, and `.github/workflows/build.yml` installs THAT one (`global-json-file:`), runs on pinned runner images, and scopes the default - token with a top-level `permissions: contents: read`. `CiWorkflowLintTests` + token with a top-level `permissions: contents: read`. It runs on push and + pull_request only on the PUBLIC repo: every job carries + `if: github.event_name == 'workflow_dispatch' || !github.event.repository.private`, + so on the private dev repo those events give a run of skipped jobs (0 paid + minutes) and only the "Run workflow" button runs it. A hosted runner has no + audio endpoint, so the windows job installs the VB-CABLE virtual device + before the managed tests (the default-device engine tests need one), and the + test project sets `DeterministicSourcePaths=false` so the `[CallerFilePath]` + source lints still find the repo under `ContinuousIntegrationBuild`. + Every action is pinned by full commit SHA, every checkout sets + `persist-credentials: false`, the concurrency group includes the event, and + JUCE / Rubber Band / NeuralAudio are fetched by commit (`*_COMMIT`, the + commit their `*_TAG` named). + `CiWorkflowLintTests` parses the YAML — never grep CI YAML, a substring matches the comment that explains why a block is absent. - **A shipped package is UNSIGNED, so an `InternalsVisibleTo` naming an assembly diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 849626c..6960a16 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -45,9 +45,11 @@ python tools/check-doc-links.py CI is [`.github/workflows/build.yml`](.github/workflows/build.yml): it runs the native build, `ctest`, the managed suite (with `DCA_ENABLE_NULL_DEVICE=1` and -`JUCESHARP_REQUIRE_NATIVE=1`), the doc-link check and `dotnet pack`. It is not a -substitute for running the gates locally — the RT gate and the device-dependent -tests behave differently on a runner with no sound card. +`JUCESHARP_REQUIRE_NATIVE=1`), the doc-link check and `dotnet pack`. It runs on +every push to `main` and every pull request here; the private development +repository runs the same workflow only by hand (every job is gated on that). It +is not a substitute for running the gates locally — the RT gate and the +device-dependent tests behave differently on a runner with no sound card. ## The rules that bite hardest diff --git a/Directory.Build.props b/Directory.Build.props index 6622418..6336a40 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -21,7 +21,7 @@ this bump red and taught the reader to revert it). --> - 1.0.0 + 1.1.0 diff --git a/README.md b/README.md index e06ca60..afce997 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,8 @@ # JuceSharp -📖 **Docs:** the GitBook/HonKit source lives under [`docs/`](./docs/) — start at -[`docs/README.md`](./docs/README.md) and [`docs/SUMMARY.md`](./docs/SUMMARY.md). -No site is published today; render locally with HonKit if you want the browsable -version (`cd docs && npm install && npx honkit serve`). +📖 **Docs:** plain Markdown under [`docs/`](./docs/), readable right here on +GitHub — start at [`docs/README.md`](./docs/README.md); the table of contents is +[`docs/SUMMARY.md`](./docs/SUMMARY.md). A reusable .NET wrapper around a JUCE-based native audio engine (`juce_sharp.dll`). Extracted from the @@ -36,7 +35,7 @@ A reusable .NET wrapper around a JUCE-based native audio engine ``` JuceSharp/ ├── JuceSharp.sln standalone solution -├── docs/ GitBook/HonKit documentation source +├── docs/ documentation (Markdown) ├── examples/ six runnable sample projects ├── src/ │ ├── JuceSharp/ managed C# wrapper (PackageId: JuceSharp) diff --git a/SECURITY.md b/SECURITY.md index e126d45..a1a084d 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -9,7 +9,7 @@ and will refuse a mismatched `juce_sharp.dll`. | Version | Supported | |---|---| -| `main` (currently 1.0.0, ABI v47) | ✅ | +| `main` (currently 1.1.0, ABI v48) | ✅ | | Anything older | ❌ — upgrade | ## Reporting a vulnerability diff --git a/THIRD-PARTY-NOTICES.md b/THIRD-PARTY-NOTICES.md index fa42e13..cd5e4bd 100644 --- a/THIRD-PARTY-NOTICES.md +++ b/THIRD-PARTY-NOTICES.md @@ -23,7 +23,7 @@ their source is committed to this repository. ### JUCE -- Version: **9.0.3** (`JUCE_TAG`), +- Version: **9.0.3** (`JUCE_TAG`), fetched as commit be29c81492b6151c8ea8d14c840e1311963b3a83 (`JUCE_COMMIT`), - Copyright (c) Raw Material Software Limited - Linked into: `juce_sharp.dll` and `juce_vst_host.exe` - Licence: **AGPLv3 or the commercial JUCE 9 licence.** JUCE 9.0.3's @@ -45,7 +45,7 @@ their source is committed to this repository. ### Rubber Band Library -- Version: **v4.0.0** (`RUBBERBAND_TAG`), , +- Version: **v4.0.0** (`RUBBERBAND_TAG`), fetched as commit 1d95888bec3ae0a17c0c4af791810d5a63f6bc35 (`RUBBERBAND_COMMIT`), , statically linked through upstream's single-file build (`single/RubberBandSingle.cpp`) - Copyright 2007-2024 Particular Programs Ltd. @@ -102,7 +102,7 @@ the `namamp` module. | Component | Version | Copyright | Licence | |---|---|---|---| -| **NeuralAudio**, | **v0.1.3** (`NEURALAUDIO_TAG`) | Copyright (c) 2024 Mike Oliphant | MIT | +| **NeuralAudio**, | **v0.1.3** (`NEURALAUDIO_TAG`), commit b1137e1db2d43670e7dcf6345ade7808613cac20 (`NEURALAUDIO_COMMIT`) | Copyright (c) 2024 Mike Oliphant | MIT | | NeuralAmpModelerCore (NAM Core), submodule of NeuralAudio | as pinned by NeuralAudio v0.1.3 | Copyright (c) 2023 Steven Atkinson | MIT | | RTNeural, submodule of NeuralAudio | as pinned by NeuralAudio v0.1.3 | Copyright (c) 2020, jatinchowdhury18 | BSD-3-Clause | | math_approx, submodule of NeuralAudio | as pinned by NeuralAudio v0.1.3 | Copyright (c) 2024, jatinchowdhury18 | BSD-3-Clause | @@ -196,22 +196,28 @@ carries `juce_sharp.dll`, so a built example is under the terms in § 1. ### By `JuceSharp.StemSeparation` (the Python sidecar) -Fetched into a per-user cache on first use: +Fetched into a per-user cache on first use, every file pinned by SHA-256 +(`PythonEnvManager.DefaultPythonEmbedSha256`, `DefaultPipWheelSha256`, and the +hash-locked package set `requirements-win_amd64-cp311.lock`, which also lists +each package's own dependencies): - **CPython 3.11.9 embeddable distribution** — Python Software Foundation License, from python.org. +- **pip** — MIT, the wheel from PyPI. - **torch / torchaudio** — BSD-3-Clause. - **demucs** — MIT. - **bs_roformer** — see the project's own terms. - **librosa** — ISC. - **soundfile** — BSD-3-Clause, wrapping **libsndfile** (**LGPL-2.1**). -- **numpy** (BSD-3-Clause), **pyyaml** (MIT), **onnx** (Apache-2.0). +- **numpy** (BSD-3-Clause), **pyyaml** (MIT), **onnx** (Apache-2.0), + **safetensors** (Apache-2.0). ### Model weights -Downloaded by demucs / Hugging Face into their own caches: - -- **htdemucs** checkpoints — Meta, MIT. +- **Demucs bags** (`htdemucs`, `htdemucs_ft`, `htdemucs_6s`, `hdemucs_mmi`, + `mdx`, `mdx_extra`) — Meta, MIT; the safetensors exports in the Hugging Face + repositories `adefossez/*`, fetched by `StemSeparator` at a pinned revision + with a pinned SHA-256 per file (`DemucsWeightPins`). - **htdemucs ggml conversions** fetched by `DemucsGgmlModelCatalog` for the native `demucs.cpp` backend — a third-party re-host of the Meta MIT weights (Hugging Face dataset `Retrobear/demucs.cpp`); each catalogue row carries a diff --git a/docs/.gitignore b/docs/.gitignore deleted file mode 100644 index eff7848..0000000 --- a/docs/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -node_modules/ -_book/ diff --git a/docs/README.md b/docs/README.md index 2946beb..dc040fe 100644 --- a/docs/README.md +++ b/docs/README.md @@ -47,7 +47,7 @@ the library's. ``` JuceSharp/ ├── JuceSharp.sln standalone solution -├── docs/ ← you are here (GitBook/HonKit source) +├── docs/ ← you are here (Markdown docs) ├── examples/ six runnable sample projects ├── src/ │ ├── JuceSharp/ managed wrapper (PackageId: JuceSharp) diff --git a/docs/StemSeparation.md b/docs/StemSeparation.md index 43a9cf1..e3eda6a 100644 --- a/docs/StemSeparation.md +++ b/docs/StemSeparation.md @@ -65,14 +65,14 @@ verbatim; run-time phases are emitted by `StemSeparator` itself. | Phase | Emitted by | What happens | Where the time goes (first run) | | ----- | ---------- | ------------ | ------------------------------- | -| `system` | install | An existing system interpreter was accepted instead of downloading one. | — | | `download` | install | `python-3.11.9-embed-amd64.zip` fetched from python.org. | 5–15 s | | `extract` | install | The archive is unpacked and `._pth` patched. | 1–5 s | -| `pip-download` | install | `get-pip.py` is fetched. | seconds | -| `pip-install` | install | `pip install "torch>=2.1,<2.6" "torchaudio>=2.1,<2.6" "numpy<2" soundfile librosa "demucs>=4.0" "bs_roformer>=1.1.0" pyyaml` — **the bounds are load-bearing**, and `PythonPackagePins` is where they live. torch 2.6 flips `torch.load`'s default to `weights_only=True`, which breaks the demucs / RoFormer checkpoints as published; torchaudio must be co-pinned or pip resolves a build whose native DLLs are ABI-incompatible with the pinned torch (`OSError: [WinError 127]`); numpy 2 breaks the ABI every torch < 2.3 wheel was built against. If you pre-populate an environment by hand, use these strings verbatim. | 60–600 s (mostly torch) | +| `pip-download` | install | The pinned pip wheel (`PythonEnvManager.DefaultPipWheelUrl`) is fetched over https and checked against its SHA-256; a mismatch is refused before anything runs. pip then installs itself from that file with `--no-index`. | seconds | +| `pip-install` | install | `pip install --require-hashes --no-deps --only-binary :all: -r requirements-win_amd64-cp311.lock` — the hash-locked set generated from `PythonPackagePins` (`torch>=2.6,<2.9`, `torchaudio>=2.6,<2.9`, `numpy<2`, `soundfile`, `librosa`, `demucs>=4.1`, `bs_roformer>=1.1.0`, `pyyaml`, `safetensors>=0.4`, `onnx>=1.15`) by `tools/python-lock/generate_lock.py`: every wheel of the closure is pinned to one version and its SHA-256, so the index serves exactly those bytes or the install fails. **Windows x64 only**; other platforms are refused. **The bounds are load-bearing.** The torch floor is a security boundary: the scripts read checkpoints with `torch.load(weights_only=True)`, which could still run code from the file before torch 2.6 (CVE-2025-32434); demucs 4.0.x breaks under torch 2.6's new default; torchaudio must be co-pinned or pip resolves a build whose native DLLs are ABI-incompatible with the pinned torch (`OSError: [WinError 127]`); numpy 2 breaks the ABI every torch < 2.3 wheel was built against. If you pre-populate an environment by hand, install the same lock. | 60–600 s (mostly torch) | | `pip-installed` | install | The pip run finished. | — | | `pip-ready` | install | pip is present and usable. | — | | `ready` | install / run | The environment is usable; also emitted once the model is loaded. | — | +| `weights` | run | Demucs only: the bag's pinned files are checked, and fetched when missing (see §7). | 0 s cached; seconds to minutes first time | | `queued` | run | Waiting on the process-global concurrency gate. | — | | `loading` | run | Sidecar process spawned, model + checkpoint loaded onto the chosen device. | 2–6 s | | `inference` | run | Audio streamed through the model in chunks, progress reported continuously. | depends on duration / GPU | @@ -119,9 +119,9 @@ is unchanged. Either way, every report carries: ```csharp public readonly record struct StemSeparationProgress( - string Phase, // install: "system" | "download" | "extract" + string Phase, // install: "download" | "extract" // "pip-download" | "pip-install" | "pip-installed" | "pip-ready" - // run: "queued" | "loading" | "ready" | "inference" | "stem" | "done" + // run: "weights" | "queued" | "loading" | "ready" | "inference" | "stem" | "done" double Fraction, // 0..1 overall, OR -1 for sub-events with no fraction string Message, // Human-readable, fine for a status line string? Stem, // Stem name if Phase == "stem", else null @@ -348,16 +348,22 @@ if (!separator.IsReady()) That is **LocalApplicationData**, not roaming `%APPDATA%`. Override it with the `rootDirectory` argument to `PythonEnvManager`. -* `python.exe` (or `python3`) plus its standard library — CPython **3.11.9** +* `python.exe` plus its standard library — CPython **3.11.9** (`PythonEnvManager.DefaultPythonVersion`). * `Lib/site-packages/` with torch, demucs, bs_roformer, … * Any `*.tmp.*` files in this directory are **partial downloads** from a crashed boot. They are swept automatically on the next `PythonEnvManager` construction. -Model weights are downloaded by demucs / huggingface into their own -caches (`~/.cache/torch/hub/`, `~/.cache/huggingface/`), **not** into -the embed root. +Demucs weights live in `demucs-weights//` under the embed root +(or `StemSeparationOptions.DemucsWeightsDirectory`): `.yaml` and one +`.safetensors` per model of the bag, fetched by `StemSeparator` from ONE +pinned HuggingFace revision with a full SHA-256 each (`DemucsWeightPins`, +generated by `tools/python-lock/generate_demucs_weights.py`). Every file is +re-hashed before use. The script loads that directory with the hub forced +offline; demucs never downloads anything itself, because its own loader takes +the hub's latest revision unverified, or unpickles a file checked only by a +32-bit hash prefix. --- @@ -392,15 +398,17 @@ Process isolation is the only honest answer. The line-protocol pipe is < 1 µs per update — it is transparent to the managed wrapper. **Q: Can I bring my own Python?** -A: Yes. `PythonEnvManager.Executable` has an `internal` setter -exposed via `InternalsVisibleTo("JuceSharp.Tests")`. For external -consumers, simply pre-populate the embed root with a working -interpreter and skip `EnsureInterpreterAsync`. +A: Not through the public API. `PythonEnvManager.Executable` has an +`internal` setter (tests use it), and the manager never searches PATH for an +interpreter. An embed root you pre-populate yourself is adopted once it +carries the `.interpreter-ready` stamp; install the same package lock into it +and pass `SkipPackageBootstrap = true` with a `DemucsWeightsDirectory`. **Q: Where do model weights download from?** -A: Demucs models come from `dl.fbaipublicfiles.com` via demucs' -built-in downloader. RoFormer models come from the Hugging Face Hub. -Both have their own atomic-swap and resume logic. +A: Demucs bags come from `huggingface.co/adefossez/*` at a pinned revision, +fetched and SHA-256-verified by `StemSeparator` (`DemucsWeightPins`) — never by +demucs' own downloader. A model name with no pin is refused. RoFormer +checkpoints are a file you pass in `ModelPath`. **Q: My GPU has 6 GB and `htdemucs_ft` OOMs. What now?** A: Catch `StemSeparationVramException`, retry with diff --git a/docs/agents/native-engine-abi.md b/docs/agents/native-engine-abi.md index d8a159c..239ee26 100644 --- a/docs/agents/native-engine-abi.md +++ b/docs/agents/native-engine-abi.md @@ -109,6 +109,34 @@ bounded and lossless; sustained back-pressure surfaces as `room == 0`, and the drop is accounted on the PRODUCER side (`dca_engine_get_midi_timing_stats`' `dropped`), which is where a diagnostician should look. +## ABI v48 — the note upload names its byte length + +- **One additive export:** `dca_engine_chart_source_set_notes_for_player2(engine, + player, notes, note_count, note_stride_bytes, notes_byte_length, bends, + bend_count)`. `ChartNoteTable::build` rejects the list whole when + `note_count * note_stride_bytes` (int64) exceeds `notes_byte_length`; a negative + length is `DCA_ERR_INVALID_ARG`. The v38 export is unchanged and still trusts its + caller (it passes -1, "not said"). `JuceAudioEngine.SetChartNotes` calls the v48 + one with `notes.Length * sizeof(DcaChartNote)`. `AbiV48Tests`. +- **Untrusted-input caps that came with it (no ABI change):** + - `namamp` converts only from capture rates in [8 kHz, 384 kHz]; frame counts + are computed in double and capped (`kMaxModelFrames`); arming and the + buffer resize run inside a `try/catch` on the load worker, so a bad capture + publishes as `rateMismatch` (dry bypass) instead of `std::terminate`. + `juce_sharp_nam_lifetime` loads a capture declaring 1e12 Hz. + - `.wem` input is capped at 256 MiB (`dcwem::kMaxWemBytes`) in + `dca_wem_open_file` (checked before the read, read once), `dca_wem_open_memory` + (before the copy) and `WemAudioFormat` (declared length, then running total); + a parallel decode batch holds at most `kMaxBatchPcmBytes` of PCM whatever the + packet table claims. `Wem/WemInputCapTests`. + - **A `.wem` source is never streamed:** `TransportSource::wireReaderToTransport(requirePreload)` + refuses a WEM reader that does not fit the preload budget instead of putting + its allocating decoder behind the read-ahead lock the callback takes. + `RtWemSourceIsPreloadedNeverStreamed`. + - `dca_plugin_save_state` refuses a state over INT32_MAX with `DCA_ERR_PLUGIN` + (`dcabi::copyBlockOut`, native `abi_args` test); the VST host child refuses a + decoded state over `INT_MAX` before `setStateInformation`. + ## ABI v47 — the external process insert - **Six additive exports, one struct, two appended statuses.** diff --git a/docs/agents/rt-safety-and-tests.md b/docs/agents/rt-safety-and-tests.md index 5140d1f..bc0b9b4 100644 --- a/docs/agents/rt-safety-and-tests.md +++ b/docs/agents/rt-safety-and-tests.md @@ -512,7 +512,7 @@ ctest --test-dir build -C Release --output-on-failure --no-tests=error ### The scenario roster — all 47 (76 by 2026-09-27: re-count) -**2026-10-18, ABI v47 appended `RtExternalProcessInsertExchangesWithoutAllocatingAndFallsBackDry`: 94 lines match `run("Rt` / `wanted("Rt` in `rt_main.cpp`; a full run printed 97 summary lines, all PASS.** **2026-10-13, JuceSharp #29 appended `RtCallbackLoadIsMeasuredWithoutAllocating`: 92 lines match `run("Rt` / `wanted("Rt` in `rt_main.cpp` (91 before it).** **2026-10-12, JuceSharp #31 appended `RtSparseOutputMaskIsPackedAndTheMasterBusKeepsLAndRApart`: 88 lines match `run("Rt` / `wanted("Rt` in `rt_main.cpp` (87 before it).** **2026-10-12, JuceSharp #32 appended the three `RtSpeedCrossingUnityIsSeamless*`: 87 lines match `run("Rt` / `wanted("Rt` in `rt_main.cpp` (84 before them).** **2026-10-07, #411 appended `RtPreloadedSourceHoldsSixteenBitPcm`: 82 lines match `run("Rt` / `wanted("Rt` in `rt_main.cpp` (81 before it).** **2026-09-28, the JUCE 9 port appended one (`RtMidiOutputRetriesARefusedSendAsJuce8Did`): a +**2026-10-20, ABI v48 appended `RtWemSourceIsPreloadedNeverStreamed`: 95 lines match `run("Rt` / `wanted("Rt` in `rt_main.cpp`.** **2026-10-18, ABI v47 appended `RtExternalProcessInsertExchangesWithoutAllocatingAndFallsBackDry`: 94 lines match `run("Rt` / `wanted("Rt` in `rt_main.cpp`; a full run printed 97 summary lines, all PASS.** **2026-10-13, JuceSharp #29 appended `RtCallbackLoadIsMeasuredWithoutAllocating`: 92 lines match `run("Rt` / `wanted("Rt` in `rt_main.cpp` (91 before it).** **2026-10-12, JuceSharp #31 appended `RtSparseOutputMaskIsPackedAndTheMasterBusKeepsLAndRApart`: 88 lines match `run("Rt` / `wanted("Rt` in `rt_main.cpp` (87 before it).** **2026-10-12, JuceSharp #32 appended the three `RtSpeedCrossingUnityIsSeamless*`: 87 lines match `run("Rt` / `wanted("Rt` in `rt_main.cpp` (84 before them).** **2026-10-07, #411 appended `RtPreloadedSourceHoldsSixteenBitPcm`: 82 lines match `run("Rt` / `wanted("Rt` in `rt_main.cpp` (81 before it).** **2026-09-28, the JUCE 9 port appended one (`RtMidiOutputRetriesARefusedSendAsJuce8Did`): a full run prints 78 summary lines (75 registered scenarios, `RtRunListOrderIsPinned` and the two meta-assertions).** **Re-counted 2026-09-27 after ABI v37 appended two: 74 lines match `run("Rt` / `wanted("Rt` in `rt_main.cpp`, plus the two meta-scenarios.** The diff --git a/docs/agents/stem-separation-processes.md b/docs/agents/stem-separation-processes.md index 1edda58..952852b 100644 --- a/docs/agents/stem-separation-processes.md +++ b/docs/agents/stem-separation-processes.md @@ -21,8 +21,8 @@ cache, the resource policy, the cache key) is default that is not a 40-hex SHA or a `v*` tag. Bump the SHA deliberately; never put a branch name back. - **pip is invoked through `ProcessStartInfo.ArgumentList`, one element per - argument** (`PythonEnvManager.BuildPipInstallArguments`; the get-pip - bootstrap too). The old `"{pkg}"` string concatenation broke on an embedded + argument** (`PythonEnvManager.BuildPipInstallArguments`; the pip-wheel + bootstrap too, `BuildPipBootstrapArguments`). The old `"{pkg}"` string concatenation broke on an embedded quote and on a wheel path ending in `\`. Pinned by `PythonEnvManagerPipArgumentTests`. - **The ONNX runtime is the DirectML build (`Microsoft.ML.OnnxRuntime.DirectML` @@ -176,17 +176,18 @@ cache, the resource policy, the cache key) is `"Timed out after …"`. `SeparateTrackAsync` keeps its post-run `ThrowIfCancellationRequested()` as a backstop. - **The embed bootstrap is serialised CROSS-PROCESS** by - `PythonEnvManager.AcquireEnvLockAsync(root, ct)` — a named kernel semaphore - per root (`Global\JuceSharp.python-embed.`, `Local\` fallback) taken - by all three `Ensure*`. It is NOT reentrant: `EnsurePackagesAsync` awaits - `EnsurePipAsync` before taking it. `StemSeparator`'s GPU gate is unrelated. - **A named `Semaphore` — unlike a `Mutex` — is NOT released when its owner - dies**, so the wait is bounded by `GlobalEnvLockTimeout` (30 min): on - expiry the manager logs at Warning and proceeds with the process-local gate - alone, and the handle it returns knows it never took the count (releasing - it anyway would raise the kernel semaphore to 2 for ever). Unbounded, one - killed `pip install` left every later `Ensure*` polling for ever with no - diagnostic. + `PythonEnvManager.AcquireEnvLockAsync(root, ct)` — an exclusive + (`FileShare.None`) handle on `/.bootstrap.lock` + (`EnvLockFileName`), taken by all three `Ensure*`. It is NOT reentrant: + `EnsurePackagesAsync` awaits `EnsurePipAsync` before taking it. + `StemSeparator`'s GPU gate is unrelated. **Never put a named kernel object + back**: the old `Global\JuceSharp.python-embed.` semaphore was + nameable — and squattable — by any user, and a semaphore is not released + when its owner dies. The file carries the root's ACL and the OS drops the + handle on exit. The wait is still bounded by `CrossProcessEnvLockTimeout` + (30 min) for a LIVE owner that hangs: on expiry the manager logs at Warning + and proceeds with the process-local gate alone. + `PythonSupplyChainTests` lints both. - **"`python.exe` exists" is NOT "the interpreter is usable".** The extract is a per-file copy into `Root`, and `EnsureInterpreterAsync`'s fast path reads the result BEFORE taking the gate — so a peer could see `python.exe` land @@ -238,8 +239,7 @@ cache, the resource policy, the cache key) is type (W4-S27). The entry RECORDS stay separate (different domain fields, different assemblies, public API) and each keeps its own `ValidateEntry`. **The two doors disagree about an unpinned fetch on PURPOSE** — a catalogue - refuses, the one-URL primitive warns, because get-pip has nothing stable to - pin — and a host that wants the catalogue's refusal for a single URL passes + refuses, the one-URL primitive warns (it has no table to consult) — and a host that wants the catalogue's refusal for a single URL passes `EnsureFileAsync(..., requireHash: true)` rather than either side changing. - **`DemucsGgmlModelCatalog` (`Runtime/`) is the NATIVE backend's table**, the ggml twin of `OnnxModelCatalog`, on the same door. Three entries, all @@ -310,8 +310,8 @@ cache, the resource policy, the cache key) is produces `OperationCanceledException`. - **Length is checked BEFORE the rename, twice.** A clean early close makes `ReadAsync` return 0 and the loop exit normally, so a truncated body used - to be renamed into place and — for `get-pip.py`, whose hash is unset by - default — EXECUTED. The declared `Content-Length` is enforced at the end of + to be renamed into place and — for any caller without a hash — loaded or + executed. The declared `Content-Length` is enforced at the end of the read loop, and `OnnxModelEntry.SizeBytes` now travels into `DownloadAsync` as `expectedSizeBytes` instead of being checked after the file was already at the canonical path. The rename itself no longer @@ -343,10 +343,40 @@ cache, the resource policy, the cache key) is GETs agreed. - **Downloads are checksum-verified before the atomic rename.** The 3.11.9 embed zip is pinned (`PythonEnvManager.DefaultPythonEmbedSha256`) — bump it - whenever `DefaultPythonVersion` moves. `get-pip.py` cannot be pinned upstream - for a supported Python (pypa serves per-version copies only for EOL - interpreters); `GetPipSha256` / `GetPipUrl` are opt-in and an unset hash logs - a Warning. + whenever `DefaultPythonVersion` moves. + - **Everything the Python sidecar downloads is pinned by SHA-256 and fetched + over https** (`PythonSupplyChainTests`): + - **pip is a pinned WHEEL, not `get-pip.py`** (`DefaultPipWheelUrl` / + `DefaultPipWheelSha256`). get-pip.py could not be fixed by pinning it: the + script installs the LATEST pip (and setuptools/wheel on 3.11) from PyPI + with no hash. The wheel is verified, then pip installs itself from it with + `--no-index --no-deps`, run via `-c` with the wheel on `sys.path` (pip + refuses to modify itself when started as `/pip` on Windows). A + blank or malformed `PipWheelSha256` and a non-https `PipWheelUrl` are + refused before any transfer. + - **Packages install from a HASH LOCK**: `PythonScripts/requirements-win_amd64-cp311.lock`, + embedded as a resource (`PythonPackageLock`), installed with + `--require-hashes --no-deps --only-binary :all:`. It is GENERATED from + `PythonPackagePins` by `tools/python-lock/generate_lock.py` (uv resolve for + cp311/win_amd64, then only the installable wheels' PyPI SHA-256s). Change a + pin ⇒ regenerate the lock in the same change; `PythonSupplyChainTests` + fails while a locked version does not satisfy its pin. `EnsurePackagesAsync` + refuses any spec that is not a `PythonPackagePins` value, and any + non-Windows platform. The lock digest is part of the package stamp. + - **Demucs weights never come from demucs.** demucs 4.1's `get_model` takes + the HuggingFace hub's latest revision with no hash (and imports the class + the file's metadata names), falling back to an 8-hex-digit (32-bit) prefix + check plus `weights_only=False`. `StemSeparator` fetches the bag through + `VerifiedDownload` (`requireHash: true`) from the revision and SHA-256 in + `DemucsWeightPins.g.cs` (generated by `tools/python-lock/generate_demucs_weights.py`, + which cross-checks each bag against the hash-locked demucs wheel) and passes + `--weights-dir`; `separate_track.py` refuses a Demucs model without it + (`PINNED_WEIGHTS_REQUIRED`), forces `HF_HUB_OFFLINE`, and only builds + classes from the `demucs.` package. A model name with no pin is an + `ArgumentException` before anything is provisioned. + - **No interpreter from PATH, and no non-Windows bootstrap.** The package + lock is win_amd64 and python.org ships no other embeddable build, so + `EnsureInterpreterAsync` throws `PlatformNotSupportedException` elsewhere. - **`Probe()` no longer spawns a process per call** (cache key: path + mtime + length); `ProbeAsync` / `StemSeparator.IsReadyAsync` exist for UI code. `ResetGlobalGateForTests` must never dispose the gate an in-flight separation diff --git a/docs/api/stem-separation.md b/docs/api/stem-separation.md index 30a1f43..06552d1 100644 --- a/docs/api/stem-separation.md +++ b/docs/api/stem-separation.md @@ -23,7 +23,7 @@ Namespaces: `JuceSharp.StemSeparation.Processing` and | Member | Description | |---|---| | `StemSeparator(PythonEnvManager? env = null, ILogger? logger = null, string? scriptPathOverride = null)` | All three arguments are for testing and embedding. | -| `static IReadOnlyList RequiredPackages` | `torch>=2.1,<2.6`, `torchaudio>=2.1,<2.6`, `numpy<2`, `soundfile`, `librosa`, `demucs>=4.0`, `bs_roformer>=1.1.0`, `pyyaml`. | +| `static IReadOnlyList RequiredPackages` | `torch>=2.6,<2.9`, `torchaudio>=2.6,<2.9`, `numpy<2`, `soundfile`, `librosa`, `demucs>=4.1`, `bs_roformer>=1.1.0`, `pyyaml`, `safetensors>=0.4`. | | `static int GlobalConcurrencyLimit { get; set; }` | The **process-static** gate. **Grow-only** — assigning a lower value throws `InvalidOperationException`. | | `bool IsReady()` · `PythonEnvStatus Probe()` · `Task SeparateTrackAsync(…)` · `IAsyncEnumerable SeparateWithProgressAsync(…)` | the four `IStemSeparator` members. `SeparateWithProgressAsync` has a default interface implementation that bridges `SeparateTrackAsync`, so a backend only has to write the other three. | | `Task ProbeAsync(CancellationToken ct = default)` · `Task IsReadyAsync(CancellationToken ct = default)` | the async forms — prefer them on a UI thread; `Probe()` shells out to the interpreter. | @@ -35,7 +35,7 @@ Namespaces: `JuceSharp.StemSeparation.Processing` and | Property | Default | Notes | |---|---|---| -| `Model` | `"htdemucs"` | `htdemucs`, `htdemucs_ft`, `htdemucs_6s`, `mdx_extra`, `bs_roformer`, … | +| `Model` | `"htdemucs"` | A pinned Demucs bag (`htdemucs`, `htdemucs_ft`, `htdemucs_6s`, `hdemucs_mmi`, `mdx`, `mdx_extra`) or `bs_roformer`; any other name is refused. | | `Device` | `"auto"` | `auto` / `cuda` / `cuda:0` / `mps` / `cpu`. | | `Shifts` | `1` | Demucs equivariant shifts. | | `Overlap` | `0.25` | Chunk overlap. Lower uses less VRAM. | @@ -43,7 +43,8 @@ Namespaces: `JuceSharp.StemSeparation.Processing` and | `ConfigPath` | `null` | RoFormer YAML for a custom checkpoint. | | `Stems` | `null` | Restrict the outputs. | | `Timeout` | **`4 h`** | Hard upper bound on the child process. | -| `SkipPackageBootstrap` | `false` | Skip pip on every call. | +| `SkipPackageBootstrap` | `false` | Skip pip, and the Demucs weight download unless `DemucsWeightsDirectory` is set. | +| `DemucsWeightsDirectory` | `null` | Where the pinned Demucs weights are kept and verified; `null` = `/demucs-weights/`. | | `MaxConcurrentSeparations` | `1` | Grows the process-global gate. | | `static Default` | | A ready-made instance. | @@ -182,7 +183,9 @@ below. | Member | Description | |---|---| | `CkptToOnnxConverter(PythonEnvManager? env = null, ILogger? logger = null, string? scriptPathOverride = null)` | | -| `static IReadOnlyList RequiredPackages` | `torch>=2.1,<2.6`, `numpy<2`, `pyyaml`, `onnx>=1.15`, `bs_roformer>=1.1.0` — a **smaller** set than `StemSeparator`'s. | +| `static IReadOnlyList RequiredPackages` | `torch>=2.6,<2.9`, `numpy<2`, `pyyaml`, `onnx>=1.15`, `bs_roformer>=1.1.0`, `safetensors>=0.4` — a **smaller** set than `StemSeparator`'s. | +| `bool AllowUnsafePickleFallback { get; init; }` | Default `false`. The script reads `.safetensors` without pickle and a `.ckpt` / `.pt` / `.pth` with `torch.load(weights_only=True)`; only when this is `true` may it fall back to a FULL unpickle, which runs code contained in the file. Set it only after the user accepted that risk. | +| `const string UnsafePickleRefusedMarker` | The stderr token for a refused full unpickle; `ConvertAsync` throws `UnsafeCheckpointException` (an `InvalidOperationException`) for it. | | `bool IsReady()` | | | `PythonEnvStatus Probe()` | | | `Task ConvertAsync(string ckptPath, string? yamlPath, string onnxOutputPath, IProgress? progress = null, CancellationToken ct = default)` | | diff --git a/docs/book.json b/docs/book.json deleted file mode 100644 index cef7ecc..0000000 --- a/docs/book.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "title": "JuceSharp", - "description": "Managed C# bindings for the JUCE-based DotCharter audio engine.", - "language": "en", - "gitbook": ">=3.0.0", - "root": ".", - "_comment_ignores": "docs/agents/** are AGENT guides, deliberately absent from SUMMARY.md. Without this ignore a HonKit build renders them as orphan pages.", - "ignores": ["agents/**"], - "structure": { - "readme": "README.md", - "summary": "SUMMARY.md" - }, - "plugins": [ - "expandable-chapters", - "anchors", - "hints", - "-sharing", - "-livereload" - ], - "pluginsConfig": {} -} diff --git a/docs/changelog.md b/docs/changelog.md index 843ca7c..615ae02 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -7,6 +7,41 @@ The version lives in `Directory.Build.props` at the repository root (one it requires, because the managed wrapper demands exact equality and refuses a stale `juce_sharp.dll`. +## 1.1.0 (2026-10-20) + +**ABI v48.** + +- **Untrusted inputs bounded.** A NAM capture declaring an absurd sample rate + dry-bypasses (status `rateMismatch`) instead of terminating the host; `.wem` + input is capped at 256 MiB, read once, and a `.wem` song is never streamed + (it is refused when it does not fit the preload budget); a plugin state over + 2 GiB is refused by `dca_plugin_save_state`; stem names from a model yaml must + be `[A-Za-z0-9_-]+` and stay inside `--out`. +- **`dca_engine_chart_source_set_notes_for_player2`** — the chart note upload + with the byte length of the notes buffer; `JuceAudioEngine.SetChartNotes` + uses it. +- **Python sidecar supply chain pinned end to end** (`JuceSharp.StemSeparation`). + pip is bootstrapped from a SHA-256-pinned wheel instead of `get-pip.py` + (`GetPipUrl` / `GetPipSha256` are replaced by `PipWheelUrl` / + `PipWheelSha256`, both required, https only). Packages install from a + generated hash lock with `--require-hashes --no-deps --only-binary :all:`; + `EnsurePackagesAsync` refuses specs outside `PythonPackagePins` and any + non-Windows platform. Demucs weights are fetched by `StemSeparator` from a + pinned HuggingFace revision with a full SHA-256 per file + (`StemSeparationOptions.DemucsWeightsDirectory`); unpinned model names are + refused and the script never lets demucs download. The interpreter is never + taken from PATH, and the bootstrap gate is a lock file in the root instead of + a machine-wide named semaphore. **Breaking:** no system-Python fallback on + Linux/macOS. +- **Safe checkpoint loading** (`JuceSharp.StemSeparation`). torch is pinned to + >= 2.6 and checkpoints load with `weights_only=True` first; the full pickle + fallback (`CkptToOnnxConverter.AllowUnsafePickleFallback`) runs only when the + caller opts in. `.safetensors` never unpickles. +- **CI on GitHub Actions** — the build and test workflow runs on the public + repository (SHA-pinned actions, read-only token, a virtual audio device for + the device tests); the private-submodule token is optional. +- **Sponsor button** — `FUNDING.yml` (Ko-fi). + ## 1.0.0 (2026-10-20): initial public release **ABI v47.** diff --git a/docs/features.md b/docs/features.md index 7a3dbf4..e608ceb 100644 --- a/docs/features.md +++ b/docs/features.md @@ -26,7 +26,7 @@ it globally and run `juce-stems-diag`, which is the point: QA and on-site debugging need it without a checkout. **No csproj declares a `` at all.** All six packages take it from the -one `` in `Directory.Build.props` at the repository root (**1.0.0**), +one `` in `Directory.Build.props` at the repository root (**1.1.0**), with `AssemblyVersion` derived from it by the SDK, so every package always carries the same version. `PackagingLintTests` asserts both halves, and that `src/JuceSharp.Native/CMakeLists.txt` (which feeds `dca_version_string`) agrees. diff --git a/docs/getting-started/first-sound.md b/docs/getting-started/first-sound.md index aa455c5..92b770b 100644 --- a/docs/getting-started/first-sound.md +++ b/docs/getting-started/first-sound.md @@ -76,7 +76,7 @@ catch (JuceAbiMismatchException ex) } ``` -`NativeVersion` is a log string (`JuceSharp.Native 1.0.0 (ABI 47, JUCE 9.0.3)` +`NativeVersion` is a log string (`JuceSharp.Native 1.1.0 (ABI 48, JUCE 9.0.3)` in shape). Do not parse it for compatibility — the constructor already decided. ## 3. Enumerate devices without opening one diff --git a/docs/getting-started/installation.md b/docs/getting-started/installation.md index 97b9793..cf95038 100644 --- a/docs/getting-started/installation.md +++ b/docs/getting-started/installation.md @@ -69,7 +69,7 @@ using JuceSharp; Console.WriteLine($"Native version: {JuceAudioEngine.NativeVersion}"); ``` -If you see `JuceSharp.Native 1.0.0 (ABI 47, JUCE 9.0.3)` you're good to go. The +If you see `JuceSharp.Native 1.1.0 (ABI 48, JUCE 9.0.3)` you're good to go. The string is generated from the CMake project version and `DCA_ABI_VERSION`, so the numbers here move with the tree — treat the SHAPE as the contract and check the ABI number against `include/dotcharter_audio.h`, not against this line. Use diff --git a/docs/guides/stem-backends.md b/docs/guides/stem-backends.md index 0193430..67723ca 100644 --- a/docs/guides/stem-backends.md +++ b/docs/guides/stem-backends.md @@ -443,9 +443,18 @@ var conv = new CkptToOnnxConverter(); await conv.ConvertAsync(ckptPath, yamlPath, onnxOutputPath, progress, ct); ``` +A `.ckpt` is a pickle, and unpickling runs code contained in the file. The +converter reads `.safetensors` without pickle and anything else with +`torch.load(weights_only=True)` (a real boundary from torch 2.6, the pinned +floor). A checkpoint that needs a full unpickle (a pickled `nn.Module`) fails +with `UnsafeCheckpointException` unless the host sets +`new CkptToOnnxConverter { AllowUnsafePickleFallback = true }` — do that only +after the user has accepted that the file can run code on their machine. +`StemSeparator`'s RoFormer path never unpickles. + It reports through `PythonInstallProgress` and adds one phase of its own, `convert`. Its own `RequiredPackages` list is smaller than `StemSeparator`'s — -torch, numpy, pyyaml, onnx, bs_roformer — so `IsReady()` on the converter and +torch, numpy, pyyaml, onnx, bs_roformer, safetensors — so `IsReady()` on the converter and on the separator are different questions. ## A pragmatic recommendation diff --git a/docs/package-lock.json b/docs/package-lock.json deleted file mode 100644 index 2375efa..0000000 --- a/docs/package-lock.json +++ /dev/null @@ -1,2781 +0,0 @@ -{ - "name": "docs", - "version": "1.0.0", - "lockfileVersion": 3, - "requires": true, - "packages": { - "": { - "name": "docs", - "version": "1.0.0", - "license": "ISC", - "dependencies": { - "gitbook-plugin-anchors": "^0.7.1", - "gitbook-plugin-expandable-chapters": "^0.2.0", - "gitbook-plugin-hints": "^1.0.2", - "honkit": "^6.2.0" - } - }, - "node_modules/@asciidoctor/cli": { - "version": "3.5.0", - "resolved": "https://registry.npmjs.org/@asciidoctor/cli/-/cli-3.5.0.tgz", - "integrity": "sha512-/VMHXcZBnZ9vgWfmqk9Hu0x0gMjPLup0YGq/xA8qCQuk11kUIZNMVQwgSsIUzOEwJqIUD7CgncJdtfwv1Ndxuw==", - "license": "MIT", - "dependencies": { - "yargs": "16.2.0" - }, - "bin": { - "asciidoctor": "bin/asciidoctor", - "asciidoctorjs": "bin/asciidoctor" - }, - "engines": { - "node": ">=8.11", - "npm": ">=5.0.0" - }, - "peerDependencies": { - "@asciidoctor/core": "^2.0.0-rc.1" - } - }, - "node_modules/@asciidoctor/core": { - "version": "2.2.9", - "resolved": "https://registry.npmjs.org/@asciidoctor/core/-/core-2.2.9.tgz", - "integrity": "sha512-tIPRHo1T2SFmAm+j77cDsj0RuaszP7xJxsaVTTAF5CwKyTbazw9TnIVlpIWM5yWfIWAWcAZy92RcnPgMJwny1w==", - "license": "MIT", - "dependencies": { - "asciidoctor-opal-runtime": "0.3.4", - "unxhr": "~1.2" - }, - "engines": { - "node": ">=8.11", - "npm": ">=5.0.0", - "yarn": ">=1.1.0" - } - }, - "node_modules/@honkit/asciidoc": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/@honkit/asciidoc/-/asciidoc-6.2.0.tgz", - "integrity": "sha512-vPF/yi6xu6oY6i94gP3lCNEA6VqbT5qfYI5Lx5m4GyP6fGzx0mNviL0stzYw9GPYv7S+T2zcq0NkpLiljuGGSQ==", - "license": "Apache-2.0", - "dependencies": { - "@honkit/html": "6.2.0", - "asciidoctor": "^2.2.8" - } - }, - "node_modules/@honkit/honkit-plugin-fontsettings": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/@honkit/honkit-plugin-fontsettings/-/honkit-plugin-fontsettings-6.2.0.tgz", - "integrity": "sha512-J0R2xq/igj5Jnnvp/W/ht2SXbRJMPJQU7xvIOevpZbJ8KptoMQ/UABwP/DJiVlbT7BER3oK3D/gkRFYshT2m7g==", - "license": "Apache-2.0", - "engines": { - "gitbook": ">=2.4.0" - } - }, - "node_modules/@honkit/honkit-plugin-highlight": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/@honkit/honkit-plugin-highlight/-/honkit-plugin-highlight-6.2.0.tgz", - "integrity": "sha512-ugGIOuFw+ReQ/NEJOFUtigY8KeaxYnjhgBOdewS+cxjfKzHC+aO7LZsz0ygADDhe4WCdQjJ6byd/nakg1s1YrA==", - "license": "Apache-2.0", - "dependencies": { - "highlight.js": "^11.10.0" - }, - "engines": { - "gitbook": ">=2.4.0" - } - }, - "node_modules/@honkit/honkit-plugin-theme-default": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/@honkit/honkit-plugin-theme-default/-/honkit-plugin-theme-default-6.2.0.tgz", - "integrity": "sha512-AM4cQq6qhvgEYEtszpTJxMVLLit7/jy9ndzYxLnJRXftC0ZC1QRkW7gL+Ic7yzfUfWbEkiApgPg1CgtpfMlIwQ==", - "license": "Apache-2.0", - "engines": { - "gitbook": ">=3.0.0" - } - }, - "node_modules/@honkit/html": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/@honkit/html/-/html-6.2.0.tgz", - "integrity": "sha512-fpJhmRKAxktY3dKg1WZt5H/tys2FT0JKvnRTMPq8LxQg8sF3V1IIyJi5cJViFwXQNjQ/fg6yxHJpoqmFqzhZaA==", - "license": "Apache-2.0", - "dependencies": { - "cheerio": "^1.0.0", - "lodash": "^4.17.23" - } - }, - "node_modules/@honkit/markdown-legacy": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/@honkit/markdown-legacy/-/markdown-legacy-6.2.0.tgz", - "integrity": "sha512-JjF2pBGtq2gXrArYt83iRd3NmhL7xK25FGjx4J0rpj/3/gSov92XwXHEQH32YF7wW5vGKSXtYjBH73XXZoZ6+Q==", - "license": "Apache-2.0", - "dependencies": { - "@honkit/html": "6.2.0", - "kramed": "0.5.6", - "lodash": "^4.17.23" - } - }, - "node_modules/@nodelib/fs.scandir": { - "version": "2.1.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", - "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", - "license": "MIT", - "dependencies": { - "@nodelib/fs.stat": "2.0.5", - "run-parallel": "^1.1.9" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/@nodelib/fs.stat": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", - "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", - "license": "MIT", - "engines": { - "node": ">= 8" - } - }, - "node_modules/@nodelib/fs.walk": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", - "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", - "license": "MIT", - "dependencies": { - "@nodelib/fs.scandir": "2.1.5", - "fastq": "^1.6.0" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/a-sync-waterfall": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/a-sync-waterfall/-/a-sync-waterfall-1.0.1.tgz", - "integrity": "sha512-RYTOHHdWipFUliRFMCS4X2Yn2X8M87V/OpSqWzKKOGhzqyUxzyVmhHDH9sAvG+ZuQf/TAOFsLCpMw09I1ufUnA==", - "license": "MIT" - }, - "node_modules/ansi-colors": { - "version": "4.1.3", - "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.3.tgz", - "integrity": "sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==", - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "license": "MIT", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/anymatch": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", - "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", - "license": "ISC", - "dependencies": { - "normalize-path": "^3.0.0", - "picomatch": "^2.0.4" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "license": "Python-2.0" - }, - "node_modules/array-difference": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/array-difference/-/array-difference-0.0.1.tgz", - "integrity": "sha512-LMXXDKmRSsO+d7N73LyTBWlT+GiLfNUCWeeWmZivzJ1NxSPOobS+w8bIAAfGEV35oVBsk9u9cXii8dDceU5NPw==", - "license": "MIT Expat" - }, - "node_modules/asap": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz", - "integrity": "sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA==", - "license": "MIT" - }, - "node_modules/asciidoctor": { - "version": "2.2.9", - "resolved": "https://registry.npmjs.org/asciidoctor/-/asciidoctor-2.2.9.tgz", - "integrity": "sha512-lzviGTZ/tnnmDLIE+fY/m8aUc6lGTGRNh5rTC1HPevlc89G0iYez+sQFT60oZ87BPzOYllP+TeK1xh0D1wt/6Q==", - "license": "MIT", - "dependencies": { - "@asciidoctor/cli": "3.5.0", - "@asciidoctor/core": "2.2.9" - }, - "bin": { - "asciidoctor": "bin/asciidoctor", - "asciidoctorjs": "bin/asciidoctor" - }, - "engines": { - "node": ">=8.11", - "npm": ">=5.0.0", - "yarn": ">=1.1.0" - } - }, - "node_modules/asciidoctor-opal-runtime": { - "version": "0.3.4", - "resolved": "https://registry.npmjs.org/asciidoctor-opal-runtime/-/asciidoctor-opal-runtime-0.3.4.tgz", - "integrity": "sha512-zqd6zn1LV+PZ69AP/kEbB00zuPHMIAJY3IX8+aZV+X1qOwatYvKGjsMmdMc5ApfhtkjZ4mYkqiTPJWnEnBiMJg==", - "license": "MIT", - "dependencies": { - "fast-glob": "~3.3", - "unxhr": "~1.2" - }, - "engines": { - "node": ">=8.11" - } - }, - "node_modules/balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", - "license": "MIT" - }, - "node_modules/base64-js": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", - "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT" - }, - "node_modules/bash-color": { - "version": "0.0.4", - "resolved": "https://registry.npmjs.org/bash-color/-/bash-color-0.0.4.tgz", - "integrity": "sha512-ZNB4525U7BxT6v9C8LEtywyCgB4Pjnm7/bh+ru/Z9Ecxvg3fDjaJ6z305z9a61orQdbB1zqYHh5JbUqx4s4K0g==", - "license": "MIT" - }, - "node_modules/binary-extensions": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz", - "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==", - "license": "MIT", - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/body": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/body/-/body-5.1.0.tgz", - "integrity": "sha512-chUsBxGRtuElD6fmw1gHLpvnKdVLK302peeFa9ZqAEk8TyzZ3fygLyUEDDPTJvL9+Bor0dIwn6ePOsRM2y0zQQ==", - "dependencies": { - "continuable-cache": "^0.3.1", - "error": "^7.0.0", - "raw-body": "~1.1.0", - "safe-json-parse": "~1.0.1" - } - }, - "node_modules/boolbase": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz", - "integrity": "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==", - "license": "ISC" - }, - "node_modules/brace-expansion": { - "version": "1.1.14", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.14.tgz", - "integrity": "sha512-MWPGfDxnyzKU7rNOW9SP/c50vi3xrmrua/+6hfPbCS2ABNWfx24vPidzvC7krjU/RTo235sV776ymlsMtGKj8g==", - "license": "MIT", - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/braces": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", - "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", - "license": "MIT", - "dependencies": { - "fill-range": "^7.1.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/buffer": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", - "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT", - "dependencies": { - "base64-js": "^1.3.1", - "ieee754": "^1.1.13" - } - }, - "node_modules/bytes": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/bytes/-/bytes-1.0.0.tgz", - "integrity": "sha512-/x68VkHLeTl3/Ll8IvxdwzhrT+IyKc52e/oyHhA2RwqPqswSnjVbSddfPRwAsJtbilMAPSRWwAlpxdYsSWOTKQ==" - }, - "node_modules/call-bind-apply-helpers": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", - "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "function-bind": "^1.1.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/call-bound": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz", - "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==", - "license": "MIT", - "dependencies": { - "call-bind-apply-helpers": "^1.0.2", - "get-intrinsic": "^1.3.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/cheerio": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/cheerio/-/cheerio-1.2.0.tgz", - "integrity": "sha512-WDrybc/gKFpTYQutKIK6UvfcuxijIZfMfXaYm8NMsPQxSYvf+13fXUJ4rztGGbJcBQ/GF55gvrZ0Bc0bj/mqvg==", - "license": "MIT", - "dependencies": { - "cheerio-select": "^2.1.0", - "dom-serializer": "^2.0.0", - "domhandler": "^5.0.3", - "domutils": "^3.2.2", - "encoding-sniffer": "^0.2.1", - "htmlparser2": "^10.1.0", - "parse5": "^7.3.0", - "parse5-htmlparser2-tree-adapter": "^7.1.0", - "parse5-parser-stream": "^7.1.2", - "undici": "^7.19.0", - "whatwg-mimetype": "^4.0.0" - }, - "engines": { - "node": ">=20.18.1" - }, - "funding": { - "url": "https://github.com/cheeriojs/cheerio?sponsor=1" - } - }, - "node_modules/cheerio-select": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/cheerio-select/-/cheerio-select-2.1.0.tgz", - "integrity": "sha512-9v9kG0LvzrlcungtnJtpGNxY+fzECQKhK4EGJX2vByejiMX84MFNQw4UxPJl3bFbTMw+Dfs37XaIkCwTZfLh4g==", - "license": "BSD-2-Clause", - "dependencies": { - "boolbase": "^1.0.0", - "css-select": "^5.1.0", - "css-what": "^6.1.0", - "domelementtype": "^2.3.0", - "domhandler": "^5.0.3", - "domutils": "^3.0.1" - }, - "funding": { - "url": "https://github.com/sponsors/fb55" - } - }, - "node_modules/chokidar": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz", - "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==", - "license": "MIT", - "dependencies": { - "anymatch": "~3.1.2", - "braces": "~3.0.2", - "glob-parent": "~5.1.2", - "is-binary-path": "~2.1.0", - "is-glob": "~4.0.1", - "normalize-path": "~3.0.0", - "readdirp": "~3.6.0" - }, - "engines": { - "node": ">= 8.10.0" - }, - "funding": { - "url": "https://paulmillr.com/funding/" - }, - "optionalDependencies": { - "fsevents": "~2.3.2" - } - }, - "node_modules/cliui": { - "version": "7.0.4", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", - "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", - "license": "ISC", - "dependencies": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.0", - "wrap-ansi": "^7.0.0" - } - }, - "node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "license": "MIT", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "license": "MIT" - }, - "node_modules/commander": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-5.1.0.tgz", - "integrity": "sha512-P0CysNDQ7rtVw4QIQtm+MRxV66vKFSvlsQvGYXZWR3qFU0jlMKHZZZgw8e+8DSah4UDKMqnknRDQz+xuQXQ/Zg==", - "license": "MIT", - "engines": { - "node": ">= 6" - } - }, - "node_modules/concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", - "license": "MIT" - }, - "node_modules/continuable-cache": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/continuable-cache/-/continuable-cache-0.3.1.tgz", - "integrity": "sha512-TF30kpKhTH8AGCG3dut0rdd/19B7Z+qCnrMoBLpyQu/2drZdNrrpcjPEoJeSVsQM+8KmWG5O56oPDjSSUsuTyA==" - }, - "node_modules/cp": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/cp/-/cp-0.2.0.tgz", - "integrity": "sha512-4ftCvShHjIZG/zzomHyunNpBof3sOFTTmU6s6q9DdqAL/ANqrKV3pr6Z6kVfBI4hjn59DFLImrBqn7GuuMqSZA==", - "license": "MIT" - }, - "node_modules/cpr": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/cpr/-/cpr-3.0.1.tgz", - "integrity": "sha512-Xch4PXQ/KC8lJ+KfJ9JI6eG/nmppLrPPWg5Q+vh65Qr9EjuJEubxh/H/Le1TmCZ7+Xv7iJuNRqapyOFZB+wsxA==", - "license": "BSD-3-Clause", - "dependencies": { - "graceful-fs": "^4.1.5", - "minimist": "^1.2.0", - "mkdirp": "~0.5.1", - "rimraf": "^2.5.4" - }, - "bin": { - "cpr": "bin/cpr" - } - }, - "node_modules/cpr/node_modules/mkdirp": { - "version": "0.5.6", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", - "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", - "license": "MIT", - "dependencies": { - "minimist": "^1.2.6" - }, - "bin": { - "mkdirp": "bin/cmd.js" - } - }, - "node_modules/crc": { - "version": "3.8.0", - "resolved": "https://registry.npmjs.org/crc/-/crc-3.8.0.tgz", - "integrity": "sha512-iX3mfgcTMIq3ZKLIsVFAbv7+Mc10kxabAGQb8HvjA1o3T1PIYprbakQ65d3I+2HGHt6nSKkM9PYjgoJO2KcFBQ==", - "license": "MIT", - "dependencies": { - "buffer": "^5.1.0" - } - }, - "node_modules/css-select": { - "version": "5.2.2", - "resolved": "https://registry.npmjs.org/css-select/-/css-select-5.2.2.tgz", - "integrity": "sha512-TizTzUddG/xYLA3NXodFM0fSbNizXjOKhqiQQwvhlspadZokn1KDy0NZFS0wuEubIYAV5/c1/lAr0TaaFXEXzw==", - "license": "BSD-2-Clause", - "dependencies": { - "boolbase": "^1.0.0", - "css-what": "^6.1.0", - "domhandler": "^5.0.2", - "domutils": "^3.0.1", - "nth-check": "^2.0.1" - }, - "funding": { - "url": "https://github.com/sponsors/fb55" - } - }, - "node_modules/css-what": { - "version": "6.2.2", - "resolved": "https://registry.npmjs.org/css-what/-/css-what-6.2.2.tgz", - "integrity": "sha512-u/O3vwbptzhMs3L1fQE82ZSLHQQfto5gyZzwteVIEyeaY5Fc7R4dapF/BvRoSYFeqfBk4m0V1Vafq5Pjv25wvA==", - "license": "BSD-2-Clause", - "engines": { - "node": ">= 6" - }, - "funding": { - "url": "https://github.com/sponsors/fb55" - } - }, - "node_modules/dayjs": { - "version": "1.11.20", - "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.20.tgz", - "integrity": "sha512-YbwwqR/uYpeoP4pu043q+LTDLFBLApUP6VxRihdfNTqu4ubqMlGDLd6ErXhEgsyvY0K6nCs7nggYumAN+9uEuQ==", - "license": "MIT" - }, - "node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "license": "MIT", - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/debug/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "license": "MIT" - }, - "node_modules/depd": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", - "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", - "license": "MIT", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/destroy": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", - "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==", - "license": "MIT", - "engines": { - "node": ">= 0.8", - "npm": "1.2.8000 || >= 1.4.16" - } - }, - "node_modules/direction": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/direction/-/direction-0.1.5.tgz", - "integrity": "sha512-HceXsAluGbXKCz2qCVbXFUH4Vn4eNMWxY5gzydMFMnS1zKSwvDASqLwcrYLIFDpwuZ63FUAqjDLEP1eicHt8DQ==", - "license": "MIT", - "bin": { - "direction": "cli.js" - } - }, - "node_modules/dom-serializer": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-2.0.0.tgz", - "integrity": "sha512-wIkAryiqt/nV5EQKqQpo3SToSOV9J0DnbJqwK7Wv/Trc92zIAYZ4FlMu+JPFW1DfGFt81ZTCGgDEabffXeLyJg==", - "license": "MIT", - "dependencies": { - "domelementtype": "^2.3.0", - "domhandler": "^5.0.2", - "entities": "^4.2.0" - }, - "funding": { - "url": "https://github.com/cheeriojs/dom-serializer?sponsor=1" - } - }, - "node_modules/domelementtype": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.3.0.tgz", - "integrity": "sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/fb55" - } - ], - "license": "BSD-2-Clause" - }, - "node_modules/domhandler": { - "version": "5.0.3", - "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-5.0.3.tgz", - "integrity": "sha512-cgwlv/1iFQiFnU96XXgROh8xTeetsnJiDsTc7TYCLFd9+/WNkIqPTxiM/8pSd8VIrhXGTf1Ny1q1hquVqDJB5w==", - "license": "BSD-2-Clause", - "dependencies": { - "domelementtype": "^2.3.0" - }, - "engines": { - "node": ">= 4" - }, - "funding": { - "url": "https://github.com/fb55/domhandler?sponsor=1" - } - }, - "node_modules/domutils": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/domutils/-/domutils-3.2.2.tgz", - "integrity": "sha512-6kZKyUajlDuqlHKVX1w7gyslj9MPIXzIFiz/rGu35uC1wMi+kMhQwGhl4lt9unC9Vb9INnY9Z3/ZA3+FhASLaw==", - "license": "BSD-2-Clause", - "dependencies": { - "dom-serializer": "^2.0.0", - "domelementtype": "^2.3.0", - "domhandler": "^5.0.3" - }, - "funding": { - "url": "https://github.com/fb55/domutils?sponsor=1" - } - }, - "node_modules/dunder-proto": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", - "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", - "license": "MIT", - "dependencies": { - "call-bind-apply-helpers": "^1.0.1", - "es-errors": "^1.3.0", - "gopd": "^1.2.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/ee-first": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", - "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==", - "license": "MIT" - }, - "node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "license": "MIT" - }, - "node_modules/encodeurl": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz", - "integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==", - "license": "MIT", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/encoding-sniffer": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/encoding-sniffer/-/encoding-sniffer-0.2.1.tgz", - "integrity": "sha512-5gvq20T6vfpekVtqrYQsSCFZ1wEg5+wW0/QaZMWkFr6BqD3NfKs0rLCx4rrVlSWJeZb5NBJgVLswK/w2MWU+Gw==", - "license": "MIT", - "dependencies": { - "iconv-lite": "^0.6.3", - "whatwg-encoding": "^3.1.1" - }, - "funding": { - "url": "https://github.com/fb55/encoding-sniffer?sponsor=1" - } - }, - "node_modules/entities": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz", - "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==", - "license": "BSD-2-Clause", - "engines": { - "node": ">=0.12" - }, - "funding": { - "url": "https://github.com/fb55/entities?sponsor=1" - } - }, - "node_modules/error": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/error/-/error-7.0.2.tgz", - "integrity": "sha512-UtVv4l5MhijsYUxPJo4390gzfZvAnTHreNnDjnTZaKIiZ/SemXxAhBkYSKtWa5RtBXbLP8tMgn/n0RUa/H7jXw==", - "dependencies": { - "string-template": "~0.2.1", - "xtend": "~4.0.0" - } - }, - "node_modules/es-define-property": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", - "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-errors": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", - "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-object-atoms": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", - "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/escalade": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", - "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/escape-goat": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/escape-goat/-/escape-goat-3.0.0.tgz", - "integrity": "sha512-w3PwNZJwRxlp47QGzhuEBldEqVHHhh8/tIPcl6ecf2Bou99cdAt0knihBV0Ecc7CGxYduXVBDheH1K2oADRlvw==", - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/escape-html": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", - "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==", - "license": "MIT" - }, - "node_modules/escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/esprima": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "license": "BSD-2-Clause", - "bin": { - "esparse": "bin/esparse.js", - "esvalidate": "bin/esvalidate.js" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/etag": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", - "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==", - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/extend": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", - "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==", - "license": "MIT" - }, - "node_modules/fast-glob": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.3.tgz", - "integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==", - "license": "MIT", - "dependencies": { - "@nodelib/fs.stat": "^2.0.2", - "@nodelib/fs.walk": "^1.2.3", - "glob-parent": "^5.1.2", - "merge2": "^1.3.0", - "micromatch": "^4.0.8" - }, - "engines": { - "node": ">=8.6.0" - } - }, - "node_modules/fastq": { - "version": "1.20.1", - "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.20.1.tgz", - "integrity": "sha512-GGToxJ/w1x32s/D2EKND7kTil4n8OVk/9mycTc4VDza13lOvpUZTGX3mFSCtV9ksdGBVzvsyAVLM6mHFThxXxw==", - "license": "ISC", - "dependencies": { - "reusify": "^1.0.4" - } - }, - "node_modules/faye-websocket": { - "version": "0.10.0", - "resolved": "https://registry.npmjs.org/faye-websocket/-/faye-websocket-0.10.0.tgz", - "integrity": "sha512-Xhj93RXbMSq8urNCUq4p9l0P6hnySJ/7YNRhYNug0bLOuii7pKO7xQFb5mx9xZXWCar88pLPb805PvUkwrLZpQ==", - "license": "MIT", - "dependencies": { - "websocket-driver": ">=0.5.1" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/fill-range": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", - "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", - "license": "MIT", - "dependencies": { - "to-regex-range": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/flat-cache": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz", - "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==", - "license": "MIT", - "dependencies": { - "flatted": "^3.2.9", - "keyv": "^4.5.4" - }, - "engines": { - "node": ">=16" - } - }, - "node_modules/flatted": { - "version": "3.4.2", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.4.2.tgz", - "integrity": "sha512-PjDse7RzhcPkIJwy5t7KPWQSZ9cAbzQXcafsetQoD7sOJRQlGikNbx7yZp2OotDnJyrDcbyRq3Ttb18iYOqkxA==", - "license": "ISC" - }, - "node_modules/fresh": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", - "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==", - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/front-matter": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/front-matter/-/front-matter-2.3.0.tgz", - "integrity": "sha512-+gOIDsGWHVAiWSDfg3vpiHwkOrwO4XNS3YQH5DMmneLEPWzdCAnbSQCtxReF4yPK1nszLvAmLeR2SprnDQDnyQ==", - "license": "MIT", - "dependencies": { - "js-yaml": "^3.10.0" - } - }, - "node_modules/front-matter/node_modules/argparse": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", - "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "license": "MIT", - "dependencies": { - "sprintf-js": "~1.0.2" - } - }, - "node_modules/front-matter/node_modules/js-yaml": { - "version": "3.14.2", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.2.tgz", - "integrity": "sha512-PMSmkqxr106Xa156c2M265Z+FTrPl+oxd/rgOQy2tijQeK5TxQ43psO1ZCwhVOSdnn+RzkzlRz/eY4BgJBYVpg==", - "license": "MIT", - "dependencies": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/fs.realpath": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", - "license": "ISC" - }, - "node_modules/fsevents": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", - "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", - "hasInstallScript": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" - } - }, - "node_modules/function-bind": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", - "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/get-caller-file": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", - "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", - "license": "ISC", - "engines": { - "node": "6.* || 8.* || >= 10.*" - } - }, - "node_modules/get-intrinsic": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", - "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", - "license": "MIT", - "dependencies": { - "call-bind-apply-helpers": "^1.0.2", - "es-define-property": "^1.0.1", - "es-errors": "^1.3.0", - "es-object-atoms": "^1.1.1", - "function-bind": "^1.1.2", - "get-proto": "^1.0.1", - "gopd": "^1.2.0", - "has-symbols": "^1.1.0", - "hasown": "^2.0.2", - "math-intrinsics": "^1.1.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/get-proto": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", - "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", - "license": "MIT", - "dependencies": { - "dunder-proto": "^1.0.1", - "es-object-atoms": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/gitbook-plugin-anchors": { - "version": "0.7.1", - "resolved": "https://registry.npmjs.org/gitbook-plugin-anchors/-/gitbook-plugin-anchors-0.7.1.tgz", - "integrity": "sha512-uA0agz3Z6Rohs9MfI0kTLeYVjhA16DvxsYd5ao5QOLIWePLoU3YdA2aqGGQf0lUsXbdoD/pQi1m6TuCikPH3VQ==", - "license": "Apache-2.0", - "dependencies": { - "cheerio": "*", - "github-slugid": "1.0.1" - }, - "engines": { - "gitbook": ">=2.5.0" - } - }, - "node_modules/gitbook-plugin-expandable-chapters": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/gitbook-plugin-expandable-chapters/-/gitbook-plugin-expandable-chapters-0.2.0.tgz", - "integrity": "sha512-oEFVR/5UrjQYsu/WWPLiwgB2kUi9V3T+JqifBBzEvC45aPNmV1Jx/zoWSlISYSN9M5f8/l1DPl5zkL5hFSFfgA==", - "license": "Apache 2", - "engines": { - "gitbook": ">=0.4.6" - } - }, - "node_modules/gitbook-plugin-hints": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/gitbook-plugin-hints/-/gitbook-plugin-hints-1.0.2.tgz", - "integrity": "sha512-Zj0ZA38H31TZvhnBvyVjSNIUv30MnhNPcFlAJaAKwenytHY7fNYuOv7x1Hjukk4R4A7HGeCILiCW5a4bXRqWWQ==", - "license": "Apache 2.0", - "engines": { - "gitbook": ">2.x.x" - } - }, - "node_modules/gitbook-plugin-livereload": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/gitbook-plugin-livereload/-/gitbook-plugin-livereload-0.0.1.tgz", - "integrity": "sha512-+5xinicId2ZcbP6jBTFfQBnjz8nhoBgcOuQfKTEM6Yg9fBsmo2mxY6ubrx1b5ozuIMyfDLkSihx97A7+X+EtQQ==", - "license": "Apache 2", - "engines": { - "gitbook": "*" - } - }, - "node_modules/gitbook-plugin-lunr": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/gitbook-plugin-lunr/-/gitbook-plugin-lunr-1.2.0.tgz", - "integrity": "sha512-QBfFLMZmoyOfLzc5aZrlRCkmzb9YcSjzdnyJFiRI/nX+Nd6kK1XyN4DLGnNSMHkRcJchcpWiQ6XGqSqo7e+d+g==", - "license": "Apache-2.0", - "dependencies": { - "gitbook-plugin-search": "*", - "html-entities": "1.2.0", - "lunr": "0.5.12" - }, - "engines": { - "gitbook": ">=3.0.0-pre.0" - } - }, - "node_modules/gitbook-plugin-search": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/gitbook-plugin-search/-/gitbook-plugin-search-2.2.1.tgz", - "integrity": "sha512-oP9jhaKFUVPo756G9ywuuI43YdkZClSjfpFzNKe/a/Rcn3oVsrAM/PjdQ+dt65KfZVo3iW1LY4WdiZnNqzRP8g==", - "license": "Apache-2.0", - "engines": { - "gitbook": ">=3.0.0-pre.0" - } - }, - "node_modules/github-slugid": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/github-slugid/-/github-slugid-1.0.1.tgz", - "integrity": "sha512-L5uVRzSM8jyWTgHUtaHwmymZW8S234JrIaOGotPK+0emNz9XsO6qqgw1KiI5YfP1SyBjG0ApNYU0vpb01teM9Q==", - "license": "Apache-2.0" - }, - "node_modules/glob": { - "version": "7.2.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", - "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", - "deprecated": "Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me", - "license": "ISC", - "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.1.1", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - }, - "engines": { - "node": "*" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "license": "ISC", - "dependencies": { - "is-glob": "^4.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/gopd": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", - "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/graceful-fs": { - "version": "4.2.11", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", - "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", - "license": "ISC" - }, - "node_modules/has-symbols": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", - "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/hasown": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.3.tgz", - "integrity": "sha512-ej4AhfhfL2Q2zpMmLo7U1Uv9+PyhIZpgQLGT1F9miIGmiCJIoCgSmczFdrc97mWT4kVY72KA+WnnhJ5pghSvSg==", - "license": "MIT", - "dependencies": { - "function-bind": "^1.1.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/highlight.js": { - "version": "11.11.1", - "resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-11.11.1.tgz", - "integrity": "sha512-Xwwo44whKBVCYoliBQwaPvtd/2tYFkRQtXDWj1nackaV2JPXx3L0+Jvd8/qCJ2p+ML0/XVkJ2q+Mr+UVdpJK5w==", - "license": "BSD-3-Clause", - "engines": { - "node": ">=12.0.0" - } - }, - "node_modules/honkit": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/honkit/-/honkit-6.2.0.tgz", - "integrity": "sha512-wLenN6ZaLvLlbTnRhg6vw5jFcp3Eiy6kbefL1L6xfRARF8u1bOY12ZfGLQvBSlFdFseMhcdbjmrcuNaGMTc1rw==", - "license": "Apache-2.0", - "dependencies": { - "@honkit/asciidoc": "6.2.0", - "@honkit/honkit-plugin-fontsettings": "6.2.0", - "@honkit/honkit-plugin-highlight": "6.2.0", - "@honkit/honkit-plugin-theme-default": "6.2.0", - "@honkit/html": "6.2.0", - "@honkit/markdown-legacy": "6.2.0", - "bash-color": "^0.0.4", - "cheerio": "^1.0.0", - "chokidar": "^3.6.0", - "commander": "^5.1.0", - "cp": "^0.2.0", - "cpr": "^3.0.1", - "crc": "^3.8.0", - "dayjs": "^1.11.13", - "destroy": "^1.2.0", - "direction": "^0.1.5", - "dom-serializer": "^0.1.1", - "error": "7.0.2", - "escape-html": "^1.0.3", - "escape-string-regexp": "^4.0.0", - "extend": "^3.0.2", - "flat-cache": "^4.0.1", - "front-matter": "^2.3.0", - "gitbook-plugin-livereload": "^0.0.1", - "gitbook-plugin-lunr": "^1.2.0", - "gitbook-plugin-search": "^2.2.1", - "github-slugid": "^1.0.1", - "i18n-t": "^1.0.1", - "ignore": "^5.3.2", - "immutable": "^3.8.3", - "is": "^3.3.0", - "js-yaml": "^4.1.0", - "json-schema-defaults": "^0.1.1", - "jsonschema": "1.1.0", - "juice": "^8.1.0", - "lru_map": "^0.4.1", - "memoize-one": "^5.2.1", - "mkdirp": "^1.0.4", - "nunjucks": "^3.2.4", - "nunjucks-do": "^1.0.0", - "omit-keys": "^0.1.0", - "open": "^7.4.2", - "resolve": "^1.22.8", - "semver": "^7.6.3", - "send": "^0.19.2", - "tiny-lr": "^1.1.1", - "tmp": "0.2.4" - }, - "bin": { - "honkit": "bin/honkit.js" - } - }, - "node_modules/honkit/node_modules/dom-serializer": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-0.1.1.tgz", - "integrity": "sha512-l0IU0pPzLWSHBcieZbpOKgkIn3ts3vAh7ZuFyXNwJxJXk/c4Gwj9xaTJwIDVQCXawWD0qb3IzMGH5rglQaO0XA==", - "license": "MIT", - "dependencies": { - "domelementtype": "^1.3.0", - "entities": "^1.1.1" - } - }, - "node_modules/honkit/node_modules/domelementtype": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-1.3.1.tgz", - "integrity": "sha512-BSKB+TSpMpFI/HOxCNr1O8aMOTZ8hT3pM3GQ0w/mWRmkhEDSFJkkyzz4XQsBV44BChwGkrDfMyjVD0eA2aFV3w==", - "license": "BSD-2-Clause" - }, - "node_modules/honkit/node_modules/entities": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/entities/-/entities-1.1.2.tgz", - "integrity": "sha512-f2LZMYl1Fzu7YSBKg+RoROelpOaNrcGmE9AZubeDfrCEia483oW4MI4VyFd5VNHIgQ/7qm1I0wUHK1eJnn2y2w==", - "license": "BSD-2-Clause" - }, - "node_modules/html-entities": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/html-entities/-/html-entities-1.2.0.tgz", - "integrity": "sha512-0md7tlUUyb0BEQGsZzbqty1CgV6RESOoxdivt94AScqhBhYsPCCQCOaGvur/RospMjYpPJ7iFe3zw4Bu4SVA8g==", - "engines": [ - "node >= 0.4.0" - ], - "license": "MIT" - }, - "node_modules/htmlparser2": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-10.1.0.tgz", - "integrity": "sha512-VTZkM9GWRAtEpveh7MSF6SjjrpNVNNVJfFup7xTY3UpFtm67foy9HDVXneLtFVt4pMz5kZtgNcvCniNFb1hlEQ==", - "funding": [ - "https://github.com/fb55/htmlparser2?sponsor=1", - { - "type": "github", - "url": "https://github.com/sponsors/fb55" - } - ], - "license": "MIT", - "dependencies": { - "domelementtype": "^2.3.0", - "domhandler": "^5.0.3", - "domutils": "^3.2.2", - "entities": "^7.0.1" - } - }, - "node_modules/htmlparser2/node_modules/entities": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/entities/-/entities-7.0.1.tgz", - "integrity": "sha512-TWrgLOFUQTH994YUyl1yT4uyavY5nNB5muff+RtWaqNVCAK408b5ZnnbNAUEWLTCpum9w6arT70i1XdQ4UeOPA==", - "license": "BSD-2-Clause", - "engines": { - "node": ">=0.12" - }, - "funding": { - "url": "https://github.com/fb55/entities?sponsor=1" - } - }, - "node_modules/http-errors": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.1.tgz", - "integrity": "sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==", - "license": "MIT", - "dependencies": { - "depd": "~2.0.0", - "inherits": "~2.0.4", - "setprototypeof": "~1.2.0", - "statuses": "~2.0.2", - "toidentifier": "~1.0.1" - }, - "engines": { - "node": ">= 0.8" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/express" - } - }, - "node_modules/http-parser-js": { - "version": "0.5.10", - "resolved": "https://registry.npmjs.org/http-parser-js/-/http-parser-js-0.5.10.tgz", - "integrity": "sha512-Pysuw9XpUq5dVc/2SMHpuTY01RFl8fttgcyunjL7eEMhGM3cI4eOmiCycJDVCo/7O7ClfQD3SaI6ftDzqOXYMA==", - "license": "MIT" - }, - "node_modules/i18n-t": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/i18n-t/-/i18n-t-1.0.1.tgz", - "integrity": "sha512-2NmZwpsnRTzpZfIP6Rcic16m5QBNVaIwVyU182+iatd6RNbWmGi74LTA/R/oDa58RZ87bHChLgWpmulEAoEruQ==", - "license": "Apache-2.0", - "dependencies": { - "lodash": "^4.13.1" - } - }, - "node_modules/iconv-lite": { - "version": "0.6.3", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", - "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", - "license": "MIT", - "dependencies": { - "safer-buffer": ">= 2.1.2 < 3.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/ieee754": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", - "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "BSD-3-Clause" - }, - "node_modules/ignore": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", - "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", - "license": "MIT", - "engines": { - "node": ">= 4" - } - }, - "node_modules/immutable": { - "version": "3.8.3", - "resolved": "https://registry.npmjs.org/immutable/-/immutable-3.8.3.tgz", - "integrity": "sha512-AUY/VyX0E5XlibOmWt10uabJzam1zlYjwiEgQSDc5+UIkFNaF9WM0JxXKaNMGf+F/ffUF+7kRKXM9A7C0xXqMg==", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/inflight": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", - "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.", - "license": "ISC", - "dependencies": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "node_modules/inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "license": "ISC" - }, - "node_modules/is": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/is/-/is-3.3.2.tgz", - "integrity": "sha512-a2xr4E3s1PjDS8ORcGgXpWx6V+liNs+O3JRD2mb9aeugD7rtkkZ0zgLdYgw0tWsKhsdiezGYptSiMlVazCBTuQ==", - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/is-binary-path": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", - "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", - "license": "MIT", - "dependencies": { - "binary-extensions": "^2.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/is-core-module": { - "version": "2.16.2", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.2.tgz", - "integrity": "sha512-evOr8xfXKxE6qSR0hSXL2r3sd7ALj8+7jQEUvPYcm5sgZFdJ+AYzT6yNmJenvIYQBgIGwfwz08sL8zoL7yq2BA==", - "license": "MIT", - "dependencies": { - "hasown": "^2.0.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-docker": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", - "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==", - "license": "MIT", - "bin": { - "is-docker": "cli.js" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/is-glob": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", - "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", - "license": "MIT", - "dependencies": { - "is-extglob": "^2.1.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-number": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", - "license": "MIT", - "engines": { - "node": ">=0.12.0" - } - }, - "node_modules/is-wsl": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", - "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", - "license": "MIT", - "dependencies": { - "is-docker": "^2.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/isobject": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-0.2.0.tgz", - "integrity": "sha512-VaWq6XYAsbvM0wf4dyBO7WH9D7GosB7ZZlqrawI9BBiTMINBeCyqSKBa35m870MY3O4aM31pYyZi9DfGrYMJrQ==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/js-yaml": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.1.tgz", - "integrity": "sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==", - "license": "MIT", - "dependencies": { - "argparse": "^2.0.1" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/json-buffer": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", - "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", - "license": "MIT" - }, - "node_modules/json-schema-defaults": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/json-schema-defaults/-/json-schema-defaults-0.1.1.tgz", - "integrity": "sha512-6Q5YS7pSDCXUbtS9uAFE+uUgvE45dBHCMyhqe6liJmL+oIa4zbACSS6nr6Lh+73mN+MnWBCExtN3C14S7Jrm7w==", - "license": "MIT" - }, - "node_modules/jsonschema": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/jsonschema/-/jsonschema-1.1.0.tgz", - "integrity": "sha512-nQhT+ioA1XM8CpxJYlBfcUj6HF3f3f2KbLgV3tcxOt85RKpk2b0Do/C5BnCCCfdAarAjWRSFlln0Uanl4tBCHA==", - "license": "MIT", - "engines": { - "node": "*" - } - }, - "node_modules/juice": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/juice/-/juice-8.1.0.tgz", - "integrity": "sha512-FLzurJrx5Iv1e7CfBSZH68dC04EEvXvvVvPYB7Vx1WAuhCp1ZPIMtqxc+WTWxVkpTIC2Ach/GAv0rQbtGf6YMA==", - "license": "MIT", - "dependencies": { - "cheerio": "1.0.0-rc.10", - "commander": "^6.1.0", - "mensch": "^0.3.4", - "slick": "^1.12.2", - "web-resource-inliner": "^6.0.1" - }, - "bin": { - "juice": "bin/juice" - }, - "engines": { - "node": ">=10.0.0" - } - }, - "node_modules/juice/node_modules/cheerio": { - "version": "1.0.0-rc.10", - "resolved": "https://registry.npmjs.org/cheerio/-/cheerio-1.0.0-rc.10.tgz", - "integrity": "sha512-g0J0q/O6mW8z5zxQ3A8E8J1hUgp4SMOvEoW/x84OwyHKe/Zccz83PVT4y5Crcr530FV6NgmKI1qvGTKVl9XXVw==", - "license": "MIT", - "dependencies": { - "cheerio-select": "^1.5.0", - "dom-serializer": "^1.3.2", - "domhandler": "^4.2.0", - "htmlparser2": "^6.1.0", - "parse5": "^6.0.1", - "parse5-htmlparser2-tree-adapter": "^6.0.1", - "tslib": "^2.2.0" - }, - "engines": { - "node": ">= 6" - }, - "funding": { - "url": "https://github.com/cheeriojs/cheerio?sponsor=1" - } - }, - "node_modules/juice/node_modules/cheerio-select": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/cheerio-select/-/cheerio-select-1.6.0.tgz", - "integrity": "sha512-eq0GdBvxVFbqWgmCm7M3XGs1I8oLy/nExUnh6oLqmBditPO9AqQJrkslDpMun/hZ0yyTs8L0m85OHp4ho6Qm9g==", - "license": "BSD-2-Clause", - "dependencies": { - "css-select": "^4.3.0", - "css-what": "^6.0.1", - "domelementtype": "^2.2.0", - "domhandler": "^4.3.1", - "domutils": "^2.8.0" - }, - "funding": { - "url": "https://github.com/sponsors/fb55" - } - }, - "node_modules/juice/node_modules/commander": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/commander/-/commander-6.2.1.tgz", - "integrity": "sha512-U7VdrJFnJgo4xjrHpTzu0yrHPGImdsmD95ZlgYSEajAn2JKzDhDTPG9kBTefmObL2w/ngeZnilk+OV9CG3d7UA==", - "license": "MIT", - "engines": { - "node": ">= 6" - } - }, - "node_modules/juice/node_modules/css-select": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/css-select/-/css-select-4.3.0.tgz", - "integrity": "sha512-wPpOYtnsVontu2mODhA19JrqWxNsfdatRKd64kmpRbQgh1KtItko5sTnEpPdpSaJszTOhEMlF/RPz28qj4HqhQ==", - "license": "BSD-2-Clause", - "dependencies": { - "boolbase": "^1.0.0", - "css-what": "^6.0.1", - "domhandler": "^4.3.1", - "domutils": "^2.8.0", - "nth-check": "^2.0.1" - }, - "funding": { - "url": "https://github.com/sponsors/fb55" - } - }, - "node_modules/juice/node_modules/dom-serializer": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-1.4.1.tgz", - "integrity": "sha512-VHwB3KfrcOOkelEG2ZOfxqLZdfkil8PtJi4P8N2MMXucZq2yLp75ClViUlOVwyoHEDjYU433Aq+5zWP61+RGag==", - "license": "MIT", - "dependencies": { - "domelementtype": "^2.0.1", - "domhandler": "^4.2.0", - "entities": "^2.0.0" - }, - "funding": { - "url": "https://github.com/cheeriojs/dom-serializer?sponsor=1" - } - }, - "node_modules/juice/node_modules/domhandler": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-4.3.1.tgz", - "integrity": "sha512-GrwoxYN+uWlzO8uhUXRl0P+kHE4GtVPfYzVLcUxPL7KNdHKj66vvlhiweIHqYYXWlw+T8iLMp42Lm67ghw4WMQ==", - "license": "BSD-2-Clause", - "dependencies": { - "domelementtype": "^2.2.0" - }, - "engines": { - "node": ">= 4" - }, - "funding": { - "url": "https://github.com/fb55/domhandler?sponsor=1" - } - }, - "node_modules/juice/node_modules/domutils": { - "version": "2.8.0", - "resolved": "https://registry.npmjs.org/domutils/-/domutils-2.8.0.tgz", - "integrity": "sha512-w96Cjofp72M5IIhpjgobBimYEfoPjx1Vx0BSX9P30WBdZW2WIKU0T1Bd0kz2eNZ9ikjKgHbEyKx8BB6H1L3h3A==", - "license": "BSD-2-Clause", - "dependencies": { - "dom-serializer": "^1.0.1", - "domelementtype": "^2.2.0", - "domhandler": "^4.2.0" - }, - "funding": { - "url": "https://github.com/fb55/domutils?sponsor=1" - } - }, - "node_modules/juice/node_modules/entities": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/entities/-/entities-2.2.0.tgz", - "integrity": "sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==", - "license": "BSD-2-Clause", - "funding": { - "url": "https://github.com/fb55/entities?sponsor=1" - } - }, - "node_modules/juice/node_modules/htmlparser2": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-6.1.0.tgz", - "integrity": "sha512-gyyPk6rgonLFEDGoeRgQNaEUvdJ4ktTmmUh/h2t7s+M8oPpIPxgNACWa+6ESR57kXstwqPiCut0V8NRpcwgU7A==", - "funding": [ - "https://github.com/fb55/htmlparser2?sponsor=1", - { - "type": "github", - "url": "https://github.com/sponsors/fb55" - } - ], - "license": "MIT", - "dependencies": { - "domelementtype": "^2.0.1", - "domhandler": "^4.0.0", - "domutils": "^2.5.2", - "entities": "^2.0.0" - } - }, - "node_modules/juice/node_modules/parse5": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/parse5/-/parse5-6.0.1.tgz", - "integrity": "sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw==", - "license": "MIT" - }, - "node_modules/juice/node_modules/parse5-htmlparser2-tree-adapter": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/parse5-htmlparser2-tree-adapter/-/parse5-htmlparser2-tree-adapter-6.0.1.tgz", - "integrity": "sha512-qPuWvbLgvDGilKc5BoicRovlT4MtYT6JfJyBOMDsKoiT+GiuP5qyrPCnR9HcPECIJJmZh5jRndyNThnhhb/vlA==", - "license": "MIT", - "dependencies": { - "parse5": "^6.0.1" - } - }, - "node_modules/keyv": { - "version": "4.5.4", - "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", - "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", - "license": "MIT", - "dependencies": { - "json-buffer": "3.0.1" - } - }, - "node_modules/kramed": { - "version": "0.5.6", - "resolved": "https://registry.npmjs.org/kramed/-/kramed-0.5.6.tgz", - "integrity": "sha512-V4qwQAp8HPQPU6Ph9Q4bc+P+nKQWEGlWYLRDkK7n+CPaMi8/VRm9/R710tRmag4whLsnKR91CO9Ras/Rnff9bw==", - "license": "MIT", - "bin": { - "kramed": "bin/kramed" - } - }, - "node_modules/livereload-js": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/livereload-js/-/livereload-js-2.4.0.tgz", - "integrity": "sha512-XPQH8Z2GDP/Hwz2PCDrh2mth4yFejwA1OZ/81Ti3LgKyhDcEjsSsqFWZojHG0va/duGd+WyosY7eXLDoOyqcPw==", - "license": "MIT" - }, - "node_modules/lodash": { - "version": "4.18.1", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.18.1.tgz", - "integrity": "sha512-dMInicTPVE8d1e5otfwmmjlxkZoUpiVLwyeTdUsi/Caj/gfzzblBcCE5sRHV/AsjuCmxWrte2TNGSYuCeCq+0Q==", - "license": "MIT" - }, - "node_modules/lru_map": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/lru_map/-/lru_map-0.4.1.tgz", - "integrity": "sha512-I+lBvqMMFfqaV8CJCISjI3wbjmwVu/VyOoU7+qtu9d7ioW5klMgsTTiUOUp+DJvfTTzKXoPbyC6YfgkNcyPSOg==", - "license": "MIT" - }, - "node_modules/lunr": { - "version": "0.5.12", - "resolved": "https://registry.npmjs.org/lunr/-/lunr-0.5.12.tgz", - "integrity": "sha512-/EtfOyuNP7BLVKhDvLyKJkFvCup2vwcIwQXCuasZEFk7XUJ4/blztVuefeLapUb1I5uMGsosN9A8J9Mu9A6yBg==", - "license": "MIT" - }, - "node_modules/math-intrinsics": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", - "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/memoize-one": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/memoize-one/-/memoize-one-5.2.1.tgz", - "integrity": "sha512-zYiwtZUcYyXKo/np96AGZAckk+FWWsUdJ3cHGGmld7+AhvcWmQyGCYUh1hc4Q/pkOhb65dQR/pqCyK0cOaHz4Q==", - "license": "MIT" - }, - "node_modules/mensch": { - "version": "0.3.4", - "resolved": "https://registry.npmjs.org/mensch/-/mensch-0.3.4.tgz", - "integrity": "sha512-IAeFvcOnV9V0Yk+bFhYR07O3yNina9ANIN5MoXBKYJ/RLYPurd2d0yw14MDhpr9/momp0WofT1bPUh3hkzdi/g==", - "license": "MIT" - }, - "node_modules/merge2": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", - "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", - "license": "MIT", - "engines": { - "node": ">= 8" - } - }, - "node_modules/micromatch": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", - "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", - "license": "MIT", - "dependencies": { - "braces": "^3.0.3", - "picomatch": "^2.3.1" - }, - "engines": { - "node": ">=8.6" - } - }, - "node_modules/mime": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", - "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", - "license": "MIT", - "bin": { - "mime": "cli.js" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/minimatch": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.5.tgz", - "integrity": "sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==", - "license": "ISC", - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/minimist": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", - "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/mkdirp": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", - "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", - "license": "MIT", - "bin": { - "mkdirp": "bin/cmd.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/ms": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "license": "MIT" - }, - "node_modules/node-fetch": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", - "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", - "license": "MIT", - "dependencies": { - "whatwg-url": "^5.0.0" - }, - "engines": { - "node": "4.x || >=6.0.0" - }, - "peerDependencies": { - "encoding": "^0.1.0" - }, - "peerDependenciesMeta": { - "encoding": { - "optional": true - } - } - }, - "node_modules/normalize-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", - "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/nth-check": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.1.1.tgz", - "integrity": "sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==", - "license": "BSD-2-Clause", - "dependencies": { - "boolbase": "^1.0.0" - }, - "funding": { - "url": "https://github.com/fb55/nth-check?sponsor=1" - } - }, - "node_modules/nunjucks": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/nunjucks/-/nunjucks-3.2.4.tgz", - "integrity": "sha512-26XRV6BhkgK0VOxfbU5cQI+ICFUtMLixv1noZn1tGU38kQH5A5nmmbk/O45xdyBhD1esk47nKrY0mvQpZIhRjQ==", - "license": "BSD-2-Clause", - "dependencies": { - "a-sync-waterfall": "^1.0.0", - "asap": "^2.0.3", - "commander": "^5.1.0" - }, - "bin": { - "nunjucks-precompile": "bin/precompile" - }, - "engines": { - "node": ">= 6.9.0" - }, - "peerDependencies": { - "chokidar": "^3.3.0" - }, - "peerDependenciesMeta": { - "chokidar": { - "optional": true - } - } - }, - "node_modules/nunjucks-do": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/nunjucks-do/-/nunjucks-do-1.0.0.tgz", - "integrity": "sha512-GQwENqZdcSbni0iYfEiNi3hs634JBSQdxnbnd9CetGkMYPnpjG1Jn5DT/qgAaC/STwMc7C4MSIJvLSNertclSg==", - "license": "Apache-2.0" - }, - "node_modules/object-assign": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/object-inspect": { - "version": "1.13.4", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz", - "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==", - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/omit-keys": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/omit-keys/-/omit-keys-0.1.0.tgz", - "integrity": "sha512-JfTw3lVL54592o0Vb1frMN6DpS/wT8Uz/IWg1e0w2ZkjF4yyPYHGJAtdcBcUbp/RMf/LbdMzIz6QZ6ycaRCFUA==", - "dependencies": { - "array-difference": "0.0.1", - "isobject": "^0.2.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/on-finished": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", - "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", - "license": "MIT", - "dependencies": { - "ee-first": "1.1.1" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", - "license": "ISC", - "dependencies": { - "wrappy": "1" - } - }, - "node_modules/open": { - "version": "7.4.2", - "resolved": "https://registry.npmjs.org/open/-/open-7.4.2.tgz", - "integrity": "sha512-MVHddDVweXZF3awtlAS+6pgKLlm/JgxZ90+/NBurBoQctVOOB/zDdVjcyPzQ+0laDGbsWgrRkflI65sQeOgT9Q==", - "license": "MIT", - "dependencies": { - "is-docker": "^2.0.0", - "is-wsl": "^2.1.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/parse5": { - "version": "7.3.0", - "resolved": "https://registry.npmjs.org/parse5/-/parse5-7.3.0.tgz", - "integrity": "sha512-IInvU7fabl34qmi9gY8XOVxhYyMyuH2xUNpb2q8/Y+7552KlejkRvqvD19nMoUW/uQGGbqNpA6Tufu5FL5BZgw==", - "license": "MIT", - "dependencies": { - "entities": "^6.0.0" - }, - "funding": { - "url": "https://github.com/inikulin/parse5?sponsor=1" - } - }, - "node_modules/parse5-htmlparser2-tree-adapter": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/parse5-htmlparser2-tree-adapter/-/parse5-htmlparser2-tree-adapter-7.1.0.tgz", - "integrity": "sha512-ruw5xyKs6lrpo9x9rCZqZZnIUntICjQAd0Wsmp396Ul9lN/h+ifgVV1x1gZHi8euej6wTfpqX8j+BFQxF0NS/g==", - "license": "MIT", - "dependencies": { - "domhandler": "^5.0.3", - "parse5": "^7.0.0" - }, - "funding": { - "url": "https://github.com/inikulin/parse5?sponsor=1" - } - }, - "node_modules/parse5-parser-stream": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/parse5-parser-stream/-/parse5-parser-stream-7.1.2.tgz", - "integrity": "sha512-JyeQc9iwFLn5TbvvqACIF/VXG6abODeB3Fwmv/TGdLk2LfbWkaySGY72at4+Ty7EkPZj854u4CrICqNk2qIbow==", - "license": "MIT", - "dependencies": { - "parse5": "^7.0.0" - }, - "funding": { - "url": "https://github.com/inikulin/parse5?sponsor=1" - } - }, - "node_modules/parse5/node_modules/entities": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/entities/-/entities-6.0.1.tgz", - "integrity": "sha512-aN97NXWF6AWBTahfVOIrB/NShkzi5H7F9r1s9mD3cDj4Ko5f2qhhVoYMibXF7GlLveb/D2ioWay8lxI97Ven3g==", - "license": "BSD-2-Clause", - "engines": { - "node": ">=0.12" - }, - "funding": { - "url": "https://github.com/fb55/entities?sponsor=1" - } - }, - "node_modules/path-is-absolute": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/path-parse": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", - "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", - "license": "MIT" - }, - "node_modules/picomatch": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.2.tgz", - "integrity": "sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==", - "license": "MIT", - "engines": { - "node": ">=8.6" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, - "node_modules/qs": { - "version": "6.15.2", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.15.2.tgz", - "integrity": "sha512-Rzq0KEyX/w/tEybncDgdkZrJgVUsUMk3xjh3t5bv3S1HTAtg+uOYt72+ZfwiQwKdysThkTBdL/rTi6HDmX9Ddw==", - "license": "BSD-3-Clause", - "dependencies": { - "side-channel": "^1.1.0" - }, - "engines": { - "node": ">=0.6" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/queue-microtask": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", - "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT" - }, - "node_modules/range-parser": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", - "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/raw-body": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-1.1.7.tgz", - "integrity": "sha512-WmJJU2e9Y6M5UzTOkHaM7xJGAPQD8PNzx3bAd2+uhZAim6wDk6dAZxPVYLF67XhbR4hmKGh33Lpmh4XWrCH5Mg==", - "deprecated": "No longer maintained. Please upgrade to a stable version.", - "license": "MIT", - "dependencies": { - "bytes": "1", - "string_decoder": "0.10" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/readdirp": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", - "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", - "license": "MIT", - "dependencies": { - "picomatch": "^2.2.1" - }, - "engines": { - "node": ">=8.10.0" - } - }, - "node_modules/require-directory": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", - "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/resolve": { - "version": "1.22.12", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.12.tgz", - "integrity": "sha512-TyeJ1zif53BPfHootBGwPRYT1RUt6oGWsaQr8UyZW/eAm9bKoijtvruSDEmZHm92CwS9nj7/fWttqPCgzep8CA==", - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "is-core-module": "^2.16.1", - "path-parse": "^1.0.7", - "supports-preserve-symlinks-flag": "^1.0.0" - }, - "bin": { - "resolve": "bin/resolve" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/reusify": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.1.0.tgz", - "integrity": "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==", - "license": "MIT", - "engines": { - "iojs": ">=1.0.0", - "node": ">=0.10.0" - } - }, - "node_modules/rimraf": { - "version": "2.7.1", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", - "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==", - "deprecated": "Rimraf versions prior to v4 are no longer supported", - "license": "ISC", - "dependencies": { - "glob": "^7.1.3" - }, - "bin": { - "rimraf": "bin.js" - } - }, - "node_modules/run-parallel": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", - "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT", - "dependencies": { - "queue-microtask": "^1.2.2" - } - }, - "node_modules/safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT" - }, - "node_modules/safe-json-parse": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/safe-json-parse/-/safe-json-parse-1.0.1.tgz", - "integrity": "sha512-o0JmTu17WGUaUOHa1l0FPGXKBfijbxK6qoHzlkihsDXxzBHvJcA7zgviKR92Xs841rX9pK16unfphLq0/KqX7A==" - }, - "node_modules/safer-buffer": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", - "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", - "license": "MIT" - }, - "node_modules/semver": { - "version": "7.8.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.0.tgz", - "integrity": "sha512-AcM7dV/5ul4EekoQ29Agm5vri8JNqRyj39o0qpX6vDF2GZrtutZl5RwgD1XnZjiTAfncsJhMI48QQH3sN87YNA==", - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/send": { - "version": "0.19.2", - "resolved": "https://registry.npmjs.org/send/-/send-0.19.2.tgz", - "integrity": "sha512-VMbMxbDeehAxpOtWJXlcUS5E8iXh6QmN+BkRX1GARS3wRaXEEgzCcB10gTQazO42tpNIya8xIyNx8fll1OFPrg==", - "license": "MIT", - "dependencies": { - "debug": "2.6.9", - "depd": "2.0.0", - "destroy": "1.2.0", - "encodeurl": "~2.0.0", - "escape-html": "~1.0.3", - "etag": "~1.8.1", - "fresh": "~0.5.2", - "http-errors": "~2.0.1", - "mime": "1.6.0", - "ms": "2.1.3", - "on-finished": "~2.4.1", - "range-parser": "~1.2.1", - "statuses": "~2.0.2" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/setprototypeof": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", - "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==", - "license": "ISC" - }, - "node_modules/side-channel": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz", - "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==", - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "object-inspect": "^1.13.3", - "side-channel-list": "^1.0.0", - "side-channel-map": "^1.0.1", - "side-channel-weakmap": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/side-channel-list": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.1.tgz", - "integrity": "sha512-mjn/0bi/oUURjc5Xl7IaWi/OJJJumuoJFQJfDDyO46+hBWsfaVM65TBHq2eoZBhzl9EchxOijpkbRC8SVBQU0w==", - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "object-inspect": "^1.13.4" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/side-channel-map": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz", - "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==", - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.2", - "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.5", - "object-inspect": "^1.13.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/side-channel-weakmap": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz", - "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==", - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.2", - "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.5", - "object-inspect": "^1.13.3", - "side-channel-map": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/slick": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/slick/-/slick-1.12.2.tgz", - "integrity": "sha512-4qdtOGcBjral6YIBCWJ0ljFSKNLz9KkhbWtuGvUyRowl1kxfuE1x/Z/aJcaiilpb3do9bl5K7/1h9XC5wWpY/A==", - "license": "MIT (http://mootools.net/license.txt)", - "engines": { - "node": "*" - } - }, - "node_modules/sprintf-js": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", - "license": "BSD-3-Clause" - }, - "node_modules/statuses": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.2.tgz", - "integrity": "sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==", - "license": "MIT", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/string_decoder": { - "version": "0.10.31", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", - "integrity": "sha512-ev2QzSzWPYmy9GuqfIVildA4OdcGLeFZQrq5ys6RtiuF+RQQiZWr8TZNyAcuVXyQRYfEO+MsoB/1BuQVhOJuoQ==", - "license": "MIT" - }, - "node_modules/string-template": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/string-template/-/string-template-0.2.1.tgz", - "integrity": "sha512-Yptehjogou2xm4UJbxJ4CxgZx12HBfeystp0y3x7s4Dj32ltVVG1Gg8YhKjHZkHicuKpZX/ffilA8505VbUbpw==" - }, - "node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "license": "MIT", - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "license": "MIT", - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/supports-preserve-symlinks-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", - "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/tiny-lr": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/tiny-lr/-/tiny-lr-1.1.1.tgz", - "integrity": "sha512-44yhA3tsaRoMOjQQ+5v5mVdqef+kH6Qze9jTpqtVufgYjYt08zyZAwNwwVBj3i1rJMnR52IxOW0LK0vBzgAkuA==", - "license": "MIT", - "dependencies": { - "body": "^5.1.0", - "debug": "^3.1.0", - "faye-websocket": "~0.10.0", - "livereload-js": "^2.3.0", - "object-assign": "^4.1.0", - "qs": "^6.4.0" - } - }, - "node_modules/tiny-lr/node_modules/debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", - "license": "MIT", - "dependencies": { - "ms": "^2.1.1" - } - }, - "node_modules/tmp": { - "version": "0.2.4", - "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.2.4.tgz", - "integrity": "sha512-UdiSoX6ypifLmrfQ/XfiawN6hkjSBpCjhKxxZcWlUUmoXLaCKQU0bx4HF/tdDK2uzRuchf1txGvrWBzYREssoQ==", - "license": "MIT", - "engines": { - "node": ">=14.14" - } - }, - "node_modules/to-regex-range": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", - "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", - "license": "MIT", - "dependencies": { - "is-number": "^7.0.0" - }, - "engines": { - "node": ">=8.0" - } - }, - "node_modules/toidentifier": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", - "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", - "license": "MIT", - "engines": { - "node": ">=0.6" - } - }, - "node_modules/tr46": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", - "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==", - "license": "MIT" - }, - "node_modules/tslib": { - "version": "2.8.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", - "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==", - "license": "0BSD" - }, - "node_modules/undici": { - "version": "7.25.0", - "resolved": "https://registry.npmjs.org/undici/-/undici-7.25.0.tgz", - "integrity": "sha512-xXnp4kTyor2Zq+J1FfPI6Eq3ew5h6Vl0F/8d9XU5zZQf1tX9s2Su1/3PiMmUANFULpmksxkClamIZcaUqryHsQ==", - "license": "MIT", - "engines": { - "node": ">=20.18.1" - } - }, - "node_modules/unxhr": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/unxhr/-/unxhr-1.2.0.tgz", - "integrity": "sha512-6cGpm8NFXPD9QbSNx0cD2giy7teZ6xOkCUH3U89WKVkL9N9rBrWjlCwhR94Re18ZlAop4MOc3WU1M3Hv/bgpIw==", - "license": "MIT", - "engines": { - "node": ">=8.11" - } - }, - "node_modules/valid-data-url": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/valid-data-url/-/valid-data-url-3.0.1.tgz", - "integrity": "sha512-jOWVmzVceKlVVdwjNSenT4PbGghU0SBIizAev8ofZVgivk/TVHXSbNL8LP6M3spZvkR9/QolkyJavGSX5Cs0UA==", - "license": "MIT", - "engines": { - "node": ">=10" - } - }, - "node_modules/web-resource-inliner": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/web-resource-inliner/-/web-resource-inliner-6.0.1.tgz", - "integrity": "sha512-kfqDxt5dTB1JhqsCUQVFDj0rmY+4HLwGQIsLPbyrsN9y9WV/1oFDSx3BQ4GfCv9X+jVeQ7rouTqwK53rA/7t8A==", - "license": "MIT", - "dependencies": { - "ansi-colors": "^4.1.1", - "escape-goat": "^3.0.0", - "htmlparser2": "^5.0.0", - "mime": "^2.4.6", - "node-fetch": "^2.6.0", - "valid-data-url": "^3.0.0" - }, - "engines": { - "node": ">=10.0.0" - } - }, - "node_modules/web-resource-inliner/node_modules/dom-serializer": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-1.4.1.tgz", - "integrity": "sha512-VHwB3KfrcOOkelEG2ZOfxqLZdfkil8PtJi4P8N2MMXucZq2yLp75ClViUlOVwyoHEDjYU433Aq+5zWP61+RGag==", - "license": "MIT", - "dependencies": { - "domelementtype": "^2.0.1", - "domhandler": "^4.2.0", - "entities": "^2.0.0" - }, - "funding": { - "url": "https://github.com/cheeriojs/dom-serializer?sponsor=1" - } - }, - "node_modules/web-resource-inliner/node_modules/dom-serializer/node_modules/domhandler": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-4.3.1.tgz", - "integrity": "sha512-GrwoxYN+uWlzO8uhUXRl0P+kHE4GtVPfYzVLcUxPL7KNdHKj66vvlhiweIHqYYXWlw+T8iLMp42Lm67ghw4WMQ==", - "license": "BSD-2-Clause", - "dependencies": { - "domelementtype": "^2.2.0" - }, - "engines": { - "node": ">= 4" - }, - "funding": { - "url": "https://github.com/fb55/domhandler?sponsor=1" - } - }, - "node_modules/web-resource-inliner/node_modules/domhandler": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-3.3.0.tgz", - "integrity": "sha512-J1C5rIANUbuYK+FuFL98650rihynUOEzRLxW+90bKZRWB6A1X1Tf82GxR1qAWLyfNPRvjqfip3Q5tdYlmAa9lA==", - "license": "BSD-2-Clause", - "dependencies": { - "domelementtype": "^2.0.1" - }, - "engines": { - "node": ">= 4" - }, - "funding": { - "url": "https://github.com/fb55/domhandler?sponsor=1" - } - }, - "node_modules/web-resource-inliner/node_modules/domutils": { - "version": "2.8.0", - "resolved": "https://registry.npmjs.org/domutils/-/domutils-2.8.0.tgz", - "integrity": "sha512-w96Cjofp72M5IIhpjgobBimYEfoPjx1Vx0BSX9P30WBdZW2WIKU0T1Bd0kz2eNZ9ikjKgHbEyKx8BB6H1L3h3A==", - "license": "BSD-2-Clause", - "dependencies": { - "dom-serializer": "^1.0.1", - "domelementtype": "^2.2.0", - "domhandler": "^4.2.0" - }, - "funding": { - "url": "https://github.com/fb55/domutils?sponsor=1" - } - }, - "node_modules/web-resource-inliner/node_modules/domutils/node_modules/domhandler": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-4.3.1.tgz", - "integrity": "sha512-GrwoxYN+uWlzO8uhUXRl0P+kHE4GtVPfYzVLcUxPL7KNdHKj66vvlhiweIHqYYXWlw+T8iLMp42Lm67ghw4WMQ==", - "license": "BSD-2-Clause", - "dependencies": { - "domelementtype": "^2.2.0" - }, - "engines": { - "node": ">= 4" - }, - "funding": { - "url": "https://github.com/fb55/domhandler?sponsor=1" - } - }, - "node_modules/web-resource-inliner/node_modules/entities": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/entities/-/entities-2.2.0.tgz", - "integrity": "sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==", - "license": "BSD-2-Clause", - "funding": { - "url": "https://github.com/fb55/entities?sponsor=1" - } - }, - "node_modules/web-resource-inliner/node_modules/htmlparser2": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-5.0.1.tgz", - "integrity": "sha512-vKZZra6CSe9qsJzh0BjBGXo8dvzNsq/oGvsjfRdOrrryfeD9UOBEEQdeoqCRmKZchF5h2zOBMQ6YuQ0uRUmdbQ==", - "license": "MIT", - "dependencies": { - "domelementtype": "^2.0.1", - "domhandler": "^3.3.0", - "domutils": "^2.4.2", - "entities": "^2.0.0" - }, - "funding": { - "url": "https://github.com/fb55/htmlparser2?sponsor=1" - } - }, - "node_modules/web-resource-inliner/node_modules/mime": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/mime/-/mime-2.6.0.tgz", - "integrity": "sha512-USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg==", - "license": "MIT", - "bin": { - "mime": "cli.js" - }, - "engines": { - "node": ">=4.0.0" - } - }, - "node_modules/webidl-conversions": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", - "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==", - "license": "BSD-2-Clause" - }, - "node_modules/websocket-driver": { - "version": "0.7.4", - "resolved": "https://registry.npmjs.org/websocket-driver/-/websocket-driver-0.7.4.tgz", - "integrity": "sha512-b17KeDIQVjvb0ssuSDF2cYXSg2iztliJ4B9WdsuB6J952qCPKmnVq4DyW5motImXHDC1cBT/1UezrJVsKw5zjg==", - "license": "Apache-2.0", - "dependencies": { - "http-parser-js": ">=0.5.1", - "safe-buffer": ">=5.1.0", - "websocket-extensions": ">=0.1.1" - }, - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/websocket-extensions": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/websocket-extensions/-/websocket-extensions-0.1.4.tgz", - "integrity": "sha512-OqedPIGOfsDlo31UNwYbCFMSaO9m9G/0faIHj5/dZFDMFqPTcx6UwqyOy3COEaEOg/9VsGIpdqn62W5KhoKSpg==", - "license": "Apache-2.0", - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/whatwg-encoding": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-3.1.1.tgz", - "integrity": "sha512-6qN4hJdMwfYBtE3YBTTHhoeuUrDBPZmbQaxWAqSALV/MeEnR5z1xd8UKud2RAkFoPkmB+hli1TZSnyi84xz1vQ==", - "deprecated": "Use @exodus/bytes instead for a more spec-conformant and faster implementation", - "license": "MIT", - "dependencies": { - "iconv-lite": "0.6.3" - }, - "engines": { - "node": ">=18" - } - }, - "node_modules/whatwg-mimetype": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-4.0.0.tgz", - "integrity": "sha512-QaKxh0eNIi2mE9p2vEdzfagOKHCcj1pJ56EEHGQOVxp8r9/iszLUUV7v89x9O1p/T+NlTM5W7jW6+cz4Fq1YVg==", - "license": "MIT", - "engines": { - "node": ">=18" - } - }, - "node_modules/whatwg-url": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", - "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", - "license": "MIT", - "dependencies": { - "tr46": "~0.0.3", - "webidl-conversions": "^3.0.0" - } - }, - "node_modules/wrap-ansi": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, - "node_modules/wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", - "license": "ISC" - }, - "node_modules/xtend": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", - "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", - "license": "MIT", - "engines": { - "node": ">=0.4" - } - }, - "node_modules/y18n": { - "version": "5.0.8", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", - "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", - "license": "ISC", - "engines": { - "node": ">=10" - } - }, - "node_modules/yargs": { - "version": "16.2.0", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", - "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", - "license": "MIT", - "dependencies": { - "cliui": "^7.0.2", - "escalade": "^3.1.1", - "get-caller-file": "^2.0.5", - "require-directory": "^2.1.1", - "string-width": "^4.2.0", - "y18n": "^5.0.5", - "yargs-parser": "^20.2.2" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/yargs-parser": { - "version": "20.2.9", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", - "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", - "license": "ISC", - "engines": { - "node": ">=10" - } - } - } -} diff --git a/docs/package.json b/docs/package.json deleted file mode 100644 index 92fec45..0000000 --- a/docs/package.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "name": "docs", - "version": "1.0.0", - "description": "HonKit toolchain for the JuceSharp documentation site.", - "private": true, - "main": "index.js", - "scripts": { - "build": "honkit build", - "serve": "honkit serve" - }, - "keywords": [], - "author": "", - "license": "MIT", - "type": "commonjs", - "dependencies": { - "gitbook-plugin-anchors": "^0.7.1", - "gitbook-plugin-expandable-chapters": "^0.2.0", - "gitbook-plugin-hints": "^1.0.2", - "honkit": "^6.2.0" - } -} diff --git a/src/JuceSharp.Native/CMakeLists.txt b/src/JuceSharp.Native/CMakeLists.txt index 71cd29a..500ee1c 100644 --- a/src/JuceSharp.Native/CMakeLists.txt +++ b/src/JuceSharp.Native/CMakeLists.txt @@ -5,7 +5,7 @@ project(JuceSharpNative # sees. It sat at 0.3.0 for five releases while dca_version_string() # hard-coded the same stale number a second time; the string is generated # from this now, so there is one place to bump. - VERSION 1.0.0 + VERSION 1.1.0 DESCRIPTION "JuceSharp native audio engine (JUCE-based)" # C is required as of JUCE 8.0.15 (and by 9.x, which builds its zlib/FLAC as C) — its own CMakeLists hard-errors with # "A C compiler is required to build targets that depend on JUCE" when the @@ -34,9 +34,9 @@ option(JUCESHARP_USE_SYSTEM_JUCE "Alias of DOTCHARTER_USE_SYSTEM_JUCE for the st if(JUCESHARP_USE_SYSTEM_JUCE) set(DOTCHARTER_USE_SYSTEM_JUCE ON) endif() -# p1-13: pin to a tagged release. The tag is immutable in upstream JUCE so a -# fresh FetchContent always resolves to the same tree. Override at configure -# time via -DJUCE_TAG=... if you need a different release. +# p1-13: pin to a tagged release, fetched by the commit that tag names +# (JUCE_COMMIT below: a tag CAN be moved upstream, a commit cannot). Override at +# configure time via -DJUCE_TAG=... -DJUCE_COMMIT=... for a different release. # 9.0.3 (2026-09). A PURE PORT from 8.0.15: same behaviour, no new feature. What # 9.0.x changes underneath THIS engine, read off `git diff 8.0.15 9.0.3`, and # what was done about each: @@ -83,6 +83,11 @@ endif() # JUCESHARP_JUCE_TAG told dca_version_string() "8.0.15". The version check after # FetchContent_MakeAvailable below now refuses that mismatch at configure time. set(JUCE_TAG "9.0.3" CACHE STRING "JUCE git tag/branch to fetch") +# The fetch is pinned by COMMIT, not by the tag (a tag can be moved upstream): +# JUCE_COMMIT is the commit JUCE_TAG named when it was pinned. Override BOTH +# together. JUCE_TAG stays the release name the version check below compares. +# No GIT_SHALLOW: CMake can only shallow-clone a branch or tag, never a SHA. +set(JUCE_COMMIT "be29c81492b6151c8ea8d14c840e1311963b3a83" CACHE STRING "JUCE commit of JUCE_TAG") if(JUCE_TAG MATCHES "^(main|master|develop|HEAD)$") message(WARNING "JuceSharp: JUCE_TAG='${JUCE_TAG}' is a mutable ref; builds are not reproducible. " "Set -DJUCE_TAG= for a pinned build.") @@ -98,8 +103,7 @@ else() FetchContent_Declare( JUCE GIT_REPOSITORY https://github.com/juce-framework/JUCE.git - GIT_TAG ${JUCE_TAG} - GIT_SHALLOW TRUE) + GIT_TAG ${JUCE_COMMIT}) FetchContent_MakeAvailable(JUCE) endif() @@ -141,6 +145,8 @@ endif() # requires the commercial Rubber Band licence — see # https://breakfastquay.com/rubberband/licensing.html set(RUBBERBAND_TAG "v4.0.0" CACHE STRING "Rubber Band git tag") +# Fetched by the commit RUBBERBAND_TAG named when pinned (see JUCE_COMMIT). +set(RUBBERBAND_COMMIT "1d95888bec3ae0a17c0c4af791810d5a63f6bc35" CACHE STRING "Rubber Band commit of RUBBERBAND_TAG") if(RUBBERBAND_TAG MATCHES "^(main|master|default-branch|HEAD)$") message(WARNING "JuceSharp: RUBBERBAND_TAG='${RUBBERBAND_TAG}' is a mutable ref; builds are not reproducible.") endif() @@ -149,8 +155,7 @@ include(FetchContent) FetchContent_Declare( rubberband GIT_REPOSITORY https://github.com/breakfastquay/rubberband.git - GIT_TAG ${RUBBERBAND_TAG} - GIT_SHALLOW TRUE) + GIT_TAG ${RUBBERBAND_COMMIT}) FetchContent_MakeAvailable(rubberband) # --------------------------------------------------------------------------- @@ -520,6 +525,8 @@ option(DOTCHARTER_DSP_NEURAL "Build the namamp neural-capture module (NeuralAudi # upstream tags v0.0.1..v0.1.3, and the old SHA sat 9 days and 15 commits # BEHIND v0.1.3.) Override with -DNEURALAUDIO_TAG=... if needed. set(NEURALAUDIO_TAG "v0.1.3" CACHE STRING "NeuralAudio git sha/tag to fetch") +# Fetched by the commit NEURALAUDIO_TAG named when pinned (see JUCE_COMMIT). +set(NEURALAUDIO_COMMIT "b1137e1db2d43670e7dcf6345ade7808613cac20" CACHE STRING "NeuralAudio commit of NEURALAUDIO_TAG") if(DOTCHARTER_DSP_NEURAL) include(FetchContent) @@ -542,7 +549,7 @@ if(DOTCHARTER_DSP_NEURAL) FetchContent_Declare( neuralaudio GIT_REPOSITORY https://github.com/mikeoliphant/NeuralAudio.git - GIT_TAG ${NEURALAUDIO_TAG} + GIT_TAG ${NEURALAUDIO_COMMIT} GIT_SUBMODULES "deps/NeuralAmpModelerCore;deps/RTNeural;deps/math_approx" GIT_SUBMODULES_RECURSE OFF PATCH_COMMAND git -C deps/RTNeural submodule update --init modules/xsimd diff --git a/src/JuceSharp.Native/include/dotcharter_audio.h b/src/JuceSharp.Native/include/dotcharter_audio.h index 6efc5cc..5edf036 100644 --- a/src/JuceSharp.Native/include/dotcharter_audio.h +++ b/src/JuceSharp.Native/include/dotcharter_audio.h @@ -198,7 +198,11 @@ extern "C" { // the DCA_EXTPROC_STATE_* values and two APPENDED status codes, // DCA_ERR_SAMPLE_RATE = 7 and DCA_ERR_NOT_FOUND = 8. No existing struct or // signature changed. -#define DCA_ABI_VERSION 47 +// v48: dca_engine_chart_source_set_notes_for_player2 -- the note upload with the +// BYTE LENGTH of the notes buffer, so the engine checks count * stride against +// it instead of trusting the caller to have sized the buffer. One additive +// export; the v38 entry point is unchanged. No struct or signature changed. +#define DCA_ABI_VERSION 48 // ---- Per-player live-input rigs (ABI v28) --------------------------------- // The engine hosts DCA_MAX_PLAYERS independent live-input rigs ("seats"). Each @@ -812,6 +816,19 @@ DCA_API dca_status DCA_CALL dca_engine_chart_source_set_notes_for_player(dca_eng int32_t note_stride_bytes, const dca_chart_bend_point* bends, int32_t bend_count); +// v48: the same upload with `notes_byte_length`, the size in bytes of the buffer +// `notes` points to. note_count * note_stride_bytes must not exceed it (computed +// in 64 bits), else DCA_ERR_INVALID_ARG and the previous table stays; a negative +// length is DCA_ERR_INVALID_ARG. Every other rule is the v38 export's. Prefer this +// one: the v38 form can only trust the caller's count and stride. +DCA_API dca_status DCA_CALL dca_engine_chart_source_set_notes_for_player2(dca_engine_t engine, + int32_t player, + const dca_chart_note* notes, + int32_t note_count, + int32_t note_stride_bytes, + int64_t notes_byte_length, + const dca_chart_bend_point* bends, + int32_t bend_count); // OFF at engine start. Enabling builds the selected voice first (loading only // its sample pack). Disabling releases every note through the voice's fast fade // and then (v40, #61) FREES the voice and its pack off the audio thread, so a @@ -1820,7 +1837,8 @@ typedef struct dca_wem_info { // Open a decoder over a .wem file (UTF-8 path; the whole file is read into // memory) or over a caller buffer (COPIED -- the caller may free it on return). // `out` is NULL on every failure. DCA_ERR_INVALID_ARG for a NULL argument, an -// empty buffer or an unknown variant; DCA_ERR_DECODE for a missing file or +// empty buffer or an unknown variant; DCA_ERR_DECODE for a missing file, a file +// or buffer over the 256 MiB cap (refused before it is read or copied) or // anything that is not a decodable .wem (the reason goes to the log callback). DCA_API dca_status DCA_CALL dca_wem_open_file(const char* path, int32_t variant, dca_wem_t* out); DCA_API dca_status DCA_CALL dca_wem_open_memory(const uint8_t* data, size_t length, int32_t variant, dca_wem_t* out); diff --git a/src/JuceSharp.Native/src/AbiArgs.h b/src/JuceSharp.Native/src/AbiArgs.h index fc93b02..a57ebce 100644 --- a/src/JuceSharp.Native/src/AbiArgs.h +++ b/src/JuceSharp.Native/src/AbiArgs.h @@ -20,10 +20,38 @@ // both false for NaN). The engine setters did not. They do now, through this // header, so there is one predicate rather than 30 hand-written `isfinite`s. +#include #include +#include +#include +#include +#include namespace dcabi { +/// True when `n` fits an int32_t out-param or a JUCE `int` size. Check BEFORE +/// the cast: a size_t over INT32_MAX narrows to a negative int32, and a negative +/// count handed to memcpy or a JUCE API becomes a huge size_t again. +inline bool fitsInt32(std::size_t n) noexcept +{ + return n <= (std::size_t) std::numeric_limits::max(); +} + +/// The tail of a "size query + copy" export (dca_plugin_save_state): reports the +/// whole size in *out and copies at most `capacity` bytes of it. A block that +/// does not fit int32 is refused (false, *out = 0) before any cast or copy; a +/// null buffer or a capacity <= 0 copies nothing. +inline bool copyBlockOut(const void* data, std::size_t size, uint8_t* buffer, int32_t capacity, + int32_t* out) noexcept +{ + *out = 0; + if (! fitsInt32(size)) return false; + *out = (int32_t) size; + if (buffer != nullptr && capacity > 0 && size > 0 && data != nullptr) + std::memcpy(buffer, data, std::min((std::size_t) capacity, size)); + return true; +} + /// True when every argument is a finite real number (not NaN, not +/-Inf). inline bool finite(float v) noexcept { return std::isfinite(v); } inline bool finite(double v) noexcept { return std::isfinite(v); } diff --git a/src/JuceSharp.Native/src/AudioEngine.cpp b/src/JuceSharp.Native/src/AudioEngine.cpp index c4dc5ce..1011dd8 100644 --- a/src/JuceSharp.Native/src/AudioEngine.cpp +++ b/src/JuceSharp.Native/src/AudioEngine.cpp @@ -1989,7 +1989,12 @@ juce::String TransportSource::openFile(const juce::File& file) fileSampleRate_ = reader_->sampleRate; storedStep_ = stored.kind == devwav::Kind::Valid ? stored.chunk.step : 0.0f; - wireReaderToTransport(); + if (! wireReaderToTransport(/*requirePreload*/ dcwem::isWemReader(*reader_))) + { + releaseWiring(); + return juce::String("A .wem must be decoded into memory and the preload budget is exhausted: ") + + file.getFullPathName(); + } return {}; } @@ -2063,7 +2068,12 @@ juce::String TransportSource::openMemory(const void* bytes, size_t numBytes, con fileSampleRate_ = reader_->sampleRate; storedStep_ = stored.kind == devwav::Kind::Valid ? stored.chunk.step : 0.0f; - wireReaderToTransport(); + if (! wireReaderToTransport(/*requirePreload*/ dcwem::isWemReader(*reader_))) + { + releaseWiring(); + memoryBytes_.reset(); + return juce::String("A .wem must be decoded into memory and the preload budget is exhausted."); + } return {}; } @@ -2425,9 +2435,14 @@ bool TransportSource::tryWireStreamingResampler(juce::PositionableAudioSource& i // replaced, #411) is a multiply-copy loop with no lock, no allocation and no // I/O, so a preloaded source removes the mechanism outright instead of // shortening the hold. -void TransportSource::wireReaderToTransport() +// A WEM is the exception to "stream what does not fit": its decoder allocates +// (libvorbis state, the packet buffers), and a streamed reader is decoded on the +// read-ahead thread INSIDE the lock the callback takes, so the callback would +// wait on it. A WEM that cannot be preloaded is refused instead (requirePreload). +bool TransportSource::wireReaderToTransport(bool requirePreload) { const bool preloaded = tryPreloadIntoMemory(); + if (! preloaded && requirePreload) return false; if (! preloaded) { @@ -2535,6 +2550,7 @@ void TransportSource::wireReaderToTransport() } if (std::exchange(wasSongClock_, false)) engine_.setSongClockSource(this); + return true; } juce::AudioSource* TransportSource::sourceForMixer() noexcept @@ -3807,7 +3823,8 @@ void AudioEngine::prepareChartSourcesForDevice(double sampleRate, int maxBlock) } bool AudioEngine::setChartNotes(int player, const void* notes, int32_t count, int32_t stride, - const dca_chart_bend_point* bends, int32_t bendCount, std::string& error) + const dca_chart_bend_point* bends, int32_t bendCount, std::string& error, + int64_t notesBytes) { error.clear(); if (! validPlayer(player)) { error = "player out of range"; return false; } @@ -3816,7 +3833,7 @@ bool AudioEngine::setChartNotes(int player, const void* notes, int32_t count, in std::unique_ptr next; if (count != 0) { - next = dcsynth::ChartNoteTable::build(notes, count, stride, bends, bendCount, error); + next = dcsynth::ChartNoteTable::build(notes, count, stride, bends, bendCount, error, notesBytes); if (next == nullptr) return false; } auto& cs = chart_[(size_t) player]; diff --git a/src/JuceSharp.Native/src/AudioEngine.h b/src/JuceSharp.Native/src/AudioEngine.h index 2a952db..ea09861 100644 --- a/src/JuceSharp.Native/src/AudioEngine.h +++ b/src/JuceSharp.Native/src/AudioEngine.h @@ -344,8 +344,11 @@ class AudioEngine bool forgetSongClockSource(TransportSource* source) noexcept; /// Validates and publishes a new note table (count 0 clears). False with /// `error` set when the list breaks a rule; the previous table then stays. + /// `notesBytes` is the size of the `notes` buffer (v48); -1 means the + /// caller did not say (the v38 export), and the count and stride are trusted. bool setChartNotes(int player, const void* notes, int32_t count, int32_t stride, - const dca_chart_bend_point* bends, int32_t bendCount, std::string& error); + const dca_chart_bend_point* bends, int32_t bendCount, std::string& error, + int64_t notesBytes = -1); /// ON builds the selected voice (loading its pack) before it publishes the /// flag; OFF fades the voice out and RELEASES it — and with it the sample /// pack's memory — on the chart reaper thread once it is silent (#61). @@ -3569,7 +3572,9 @@ class TransportSource private: /// Seek the transport and reset the stretcher(s) in front of it. void moveTransportTo(double seconds); - void wireReaderToTransport(); + /// False only when `requirePreload` and the reader could not be decoded into + /// RAM; nothing is wired then (a WEM is never streamed, see the .cpp). + bool wireReaderToTransport(bool requirePreload); /// Decode the whole file into RAM and play from there. See the comment /// on wireReaderToTransport for why this is not merely an optimisation. bool tryPreloadIntoMemory(); diff --git a/src/JuceSharp.Native/src/dotcharter_audio.cpp b/src/JuceSharp.Native/src/dotcharter_audio.cpp index 793036e..00344c6 100644 --- a/src/JuceSharp.Native/src/dotcharter_audio.cpp +++ b/src/JuceSharp.Native/src/dotcharter_audio.cpp @@ -1634,6 +1634,30 @@ DCA_API dca_status DCA_CALL dca_engine_chart_source_set_notes_for_player(dca_eng }); } +DCA_API dca_status DCA_CALL dca_engine_chart_source_set_notes_for_player2(dca_engine_t handle, + int32_t player, + const dca_chart_note* notes, + int32_t note_count, + int32_t note_stride_bytes, + int64_t notes_byte_length, + const dca_chart_bend_point* bends, + int32_t bend_count) +{ + return guard("dca_engine_chart_source_set_notes_for_player2", [&]() -> dca_status { + auto* e = reinterpret_cast(handle); + if (!e || !dotcharter::AudioEngine::validPlayer((int) player)) return DCA_ERR_INVALID_ARG; + if (notes_byte_length < 0) return DCA_ERR_INVALID_ARG; + std::string error; + if (!e->impl.setChartNotes((int) player, notes, note_count, note_stride_bytes, bends, bend_count, error, + notes_byte_length)) + { + emitLog(DCA_LOG_WARN, ("chart_source_set_notes rejected: " + error).c_str()); + return DCA_ERR_INVALID_ARG; + } + return DCA_OK; +}); +} + DCA_API dca_status DCA_CALL dca_engine_chart_source_set_enabled_for_player(dca_engine_t handle, int32_t player, int32_t enabled) @@ -3322,10 +3346,19 @@ DCA_API dca_status DCA_CALL dca_wem_open_file(const char* path, int32_t variant, emitLog(DCA_LOG_ERROR, "wem_open_file: file not found"); return DCA_ERR_DECODE; } - juce::MemoryBlock block; - if (!file.loadFileAsData(block) || block.getSize() == 0) return DCA_ERR_DECODE; - const auto* p = static_cast(block.getData()); - auto bytes = std::make_shared>(p, p + block.getSize()); + // Capped before a byte is read, and read ONCE, straight into the + // buffer the decoder keeps (it used to go through a MemoryBlock first). + const juce::int64 size = file.getSize(); + if (size <= 0) return DCA_ERR_DECODE; + if ((uint64_t) size > (uint64_t) dcwem::kMaxWemBytes) + { + emitLog(DCA_LOG_ERROR, "wem_open_file: file larger than the 256 MiB cap"); + return DCA_ERR_DECODE; + } + juce::FileInputStream in(file); + if (in.failedToOpen()) return DCA_ERR_DECODE; + auto bytes = std::make_shared>((size_t) size); + if (in.read(bytes->data(), (int) size) != (int) size) return DCA_ERR_DECODE; return openWem(std::move(bytes), variant, out); }); } @@ -3335,6 +3368,11 @@ DCA_API dca_status DCA_CALL dca_wem_open_memory(const uint8_t* data, size_t leng if (out) *out = nullptr; if (!data || length == 0 || !out || !validWemVariant(variant)) return DCA_ERR_INVALID_ARG; return guard("dca_wem_open_memory", [&]() -> dca_status { + if (length > dcwem::kMaxWemBytes) + { + emitLog(DCA_LOG_ERROR, "wem_open_memory: buffer larger than the 256 MiB cap"); + return DCA_ERR_DECODE; + } auto bytes = std::make_shared>(data, data + length); return openWem(std::move(bytes), variant, out); }); @@ -4042,11 +4080,12 @@ DCA_API dca_status DCA_CALL dca_plugin_save_state(dca_plugin_t handle, uint8_t* { p->instance->getStateInformation(block); }); - *out = (int32_t) block.getSize(); - if (buffer != nullptr && capacity > 0) + // A state past INT32_MAX cannot be reported through the int32 out-param; + // the cast used to make it negative and memcpy then read it as a huge size. + if (! dcabi::copyBlockOut(block.getData(), block.getSize(), buffer, capacity, out)) { - const int32_t n = std::min(capacity, (int32_t) block.getSize()); - std::memcpy(buffer, block.getData(), (size_t) n); + emitLog(DCA_LOG_ERROR, "plugin_save_state: the plugin's state is larger than 2 GiB"); + return DCA_ERR_PLUGIN; } return DCA_OK; }); diff --git a/src/JuceSharp.Native/src/dsp/NamAmpModule.cpp b/src/JuceSharp.Native/src/dsp/NamAmpModule.cpp index c25297e..fcd2410 100644 --- a/src/JuceSharp.Native/src/dsp/NamAmpModule.cpp +++ b/src/JuceSharp.Native/src/dsp/NamAmpModule.cpp @@ -123,6 +123,16 @@ constexpr float kTrimMaxDb = 24.0f; // 32 frames is ~0.7 ms at 44.1 kHz and swamps a residue of ~3. constexpr int kSrcPrimeFrames = 32; +// The capture rates the module will convert from. A .nam / .aidax names its own +// rate, and a shared capture is untrusted input: a huge finite rate used to +// overflow the frame arithmetic below and size buffers from the overflow. +constexpr double kMinModelRate = 8000.0; +constexpr double kMaxModelRate = 384000.0; +// Upper bound on one block's frames at the MODEL rate. With the rates above and +// any block the engine negotiates this is never reached; past it the capture +// dry-bypasses instead of allocating. +constexpr int kMaxModelFrames = 1 << 20; + // How often the worker wakes to collect retired models while any are parked. // It only has to outlast one audio block, so this is generous. constexpr int kSweepIntervalMs = 4; @@ -588,14 +598,31 @@ class NamAmpModule : public DspModule if (holder->model != nullptr) { - const bool ok = armRateAdaptation(*holder); - if (ok) + // Everything from here to the publish runs on this std::thread, + // where an escaping exception is std::terminate for the whole + // host. Arming allocates sizes that come from the capture file, + // so a failure there is a capture that dry-bypasses with + // "rateMismatch", never a crash. + bool ok = false; + try + { + ok = armRateAdaptation(*holder); + if (ok) + { + // The loader was told a default buffer size derived from an + // assumed 48 kHz capture; re-size for what the capture + // actually reported before it ever sees a block. + holder->model->SetMaxAudioBufferSize( + holder->resample ? holder->modelCap : holder->hostBlock); + } + } + catch (...) { - // The loader was told a default buffer size derived from an - // assumed 48 kHz capture; re-size for what the capture - // actually reported before it ever sees a block. - holder->model->SetMaxAudioBufferSize( - holder->resample ? holder->modelCap : holder->hostBlock); + ok = false; + holder->resample = false; + holder->latency = 0; + std::vector().swap(holder->modelScratch); + std::vector().swap(holder->outFifo); } #if DCA_NAM_TEST_HOOKS if (namLoadTestHook) namLoadTestHook(1); @@ -627,7 +654,7 @@ class NamAmpModule : public DspModule static bool armRateAdaptation(LoadedModel& lm) { const double model = (double) lm.sampleRate; - if (!(model > 1000.0) || !std::isfinite(model)) return false; + if (!std::isfinite(model) || model < kMinModelRate || model > kMaxModelRate) return false; if (std::fabs(lm.hostRate - model) <= 1.0) { @@ -637,6 +664,7 @@ class NamAmpModule : public DspModule return true; } + if (modelFramesFor(lm.hostBlock, lm.hostRate, model) > (double) kMaxModelFrames) return false; lm.modelCap = maxModelFrames(lm.hostBlock, lm.hostRate, model); lm.toModel.prepare(lm.hostRate, model, lm.hostBlock); lm.toHost.prepare(model, lm.hostRate, lm.modelCap); @@ -651,11 +679,21 @@ class NamAmpModule : public DspModule return true; } + /// One host block's frames at the model rate, in double so no rate can + /// overflow it. + static double modelFramesFor(int hostBlock, double hostRate, double modelRate) + { + if (!(hostRate > 0.0) || !(modelRate > 0.0) || !std::isfinite(hostRate) || !std::isfinite(modelRate)) + return (double) hostBlock; + return std::ceil((double) hostBlock * (modelRate / hostRate)) + 32.0; + } + + /// modelFramesFor, clamped to [1, kMaxModelFrames] before the cast. static int maxModelFrames(int hostBlock, double hostRate, double modelRate) { - if (!(hostRate > 0.0) || !(modelRate > 0.0)) return hostBlock; - const double ratio = modelRate / hostRate; - return (int) std::ceil((double) hostBlock * ratio) + 32; + const double frames = modelFramesFor(hostBlock, hostRate, modelRate); + if (!(frames >= 1.0)) return 1; + return frames >= (double) kMaxModelFrames ? kMaxModelFrames : (int) frames; } void shutdownWorker() diff --git a/src/JuceSharp.Native/src/host/VstHostMain.cpp b/src/JuceSharp.Native/src/host/VstHostMain.cpp index 3b8af56..eb8fd09 100644 --- a/src/JuceSharp.Native/src/host/VstHostMain.cpp +++ b/src/JuceSharp.Native/src/host/VstHostMain.cpp @@ -18,6 +18,7 @@ // shm= req= resp= pipe= // sr= block= parent= +#include #include #include #include @@ -992,6 +993,9 @@ class VstHostApplication : public juce::JUCEApplication if (slot == nullptr || slot->instance == nullptr) return false; juce::MemoryOutputStream decoded; if (! juce::Base64::convertFromBase64(decoded, base64)) return false; + // setStateInformation takes an int: refuse what does not fit rather than + // hand the plugin a negative size. + if (decoded.getDataSize() > (size_t) std::numeric_limits::max()) return false; slot->instance->setStateInformation(decoded.getData(), (int) decoded.getDataSize()); return true; } diff --git a/src/JuceSharp.Native/src/synth/ChartNoteTable.h b/src/JuceSharp.Native/src/synth/ChartNoteTable.h index 4acc5b9..00275b0 100644 --- a/src/JuceSharp.Native/src/synth/ChartNoteTable.h +++ b/src/JuceSharp.Native/src/synth/ChartNoteTable.h @@ -107,9 +107,12 @@ struct ChartNoteTable /// Validate and copy an upload. Returns null and fills `error` when ANY rule /// is broken — a list is accepted whole or not at all. `stride` is the /// caller's element size (append-extensible, see dotcharter_audio.h). + /// `noteBytesLength` is the size of the buffer `noteBytes` points to (ABI + /// v48): count * stride must fit in it. -1 means the caller did not say (the + /// v38 export) and the count and stride are trusted. static std::unique_ptr build(const void* noteBytes, int32_t count, int32_t stride, const dca_chart_bend_point* bendPts, int32_t bendCount, - std::string& error) + std::string& error, int64_t noteBytesLength = -1) { error.clear(); if (count < 0 || count > kMaxChartNotes) { error = "note_count out of range"; return nullptr; } @@ -117,6 +120,8 @@ struct ChartNoteTable if (count > 0 && noteBytes == nullptr) { error = "notes is null"; return nullptr; } if (bendCount > 0 && bendPts == nullptr) { error = "bends is null"; return nullptr; } if (stride < DCA_CHART_NOTE_V38_BYTES) { error = "note_stride_bytes below DCA_CHART_NOTE_V38_BYTES"; return nullptr; } + if (noteBytesLength >= 0 && (int64_t) count * (int64_t) stride > noteBytesLength) + { error = "note_count * note_stride_bytes exceeds notes_byte_length"; return nullptr; } auto t = std::make_unique(); t->notes.resize((size_t) count); diff --git a/src/JuceSharp.Native/src/wem/WemAudioFormat.cpp b/src/JuceSharp.Native/src/wem/WemAudioFormat.cpp index b06ed2d..1c7f042 100644 --- a/src/JuceSharp.Native/src/wem/WemAudioFormat.cpp +++ b/src/JuceSharp.Native/src/wem/WemAudioFormat.cpp @@ -45,7 +45,7 @@ class WemAudioFormatReader final : public juce::AudioFormatReader { public: WemAudioFormatReader(juce::InputStream* stream, std::unique_ptr decoder) - : juce::AudioFormatReader(stream, "Wwise Vorbis (WEM)"), decoder_(std::move(decoder)) + : juce::AudioFormatReader(stream, kWemFormatName), decoder_(std::move(decoder)) { const auto& info = decoder_->info(); sampleRate = info.sampleRate; @@ -86,7 +86,7 @@ class WemAudioFormatReader final : public juce::AudioFormatReader } // namespace -WemAudioFormat::WemAudioFormat() : juce::AudioFormat("Wwise Vorbis (WEM)", ".wem") {} +WemAudioFormat::WemAudioFormat() : juce::AudioFormat(kWemFormatName, ".wem") {} WemAudioFormat::~WemAudioFormat() = default; juce::AudioFormatReader* WemAudioFormat::createReaderFor(juce::InputStream* sourceStream, @@ -107,17 +107,22 @@ juce::AudioFormatReader* WemAudioFormat::createReaderFor(juce::InputStream* sour return reject(); sourceStream->setPosition(start); + // Capped BEFORE anything is buffered: a declared length over the cap is + // refused outright, and a stream that does not know its length is refused + // the moment it passes the cap. + const auto total = sourceStream->getTotalLength(); + if (total > 0 && total - start > (juce::int64) kMaxWemBytes) + return reject(); auto bytes = std::make_shared>(); try { - const auto total = sourceStream->getTotalLength(); - if (total > 0 && total - start < (juce::int64) 1 << 31) - bytes->reserve((size_t) (total - start)); + if (total > 0) bytes->reserve((size_t) (total - start)); uint8_t buf[65536]; for (;;) { const int n = sourceStream->read(buf, (int) sizeof(buf)); if (n <= 0) break; + if (bytes->size() + (size_t) n > kMaxWemBytes) return reject(); bytes->insert(bytes->end(), buf, buf + n); } } diff --git a/src/JuceSharp.Native/src/wem/WemAudioFormat.h b/src/JuceSharp.Native/src/wem/WemAudioFormat.h index a36e11f..019ffc2 100644 --- a/src/JuceSharp.Native/src/wem/WemAudioFormat.h +++ b/src/JuceSharp.Native/src/wem/WemAudioFormat.h @@ -45,4 +45,15 @@ class WemAudioFormat final : public juce::AudioFormat /// Cheap header sniff: a RIFF/RIFX WAVE whose fmt chunk says codec 0xFFFF. bool looksLikeWem(const void* data, size_t size); +/// The format name every WEM reader reports (AudioFormatReader::getFormatName). +inline constexpr const char* kWemFormatName = "Wwise Vorbis (WEM)"; + +/// A WEM is decoded into memory on the load thread and NEVER streamed: its +/// decoder allocates, and a streamed reader is decoded under the lock the audio +/// callback takes (TransportSource::wireReaderToTransport). +inline bool isWemReader(const juce::AudioFormatReader& reader) +{ + return reader.getFormatName() == kWemFormatName; +} + } // namespace dcwem diff --git a/src/JuceSharp.Native/src/wem/WemVorbisDecoder.cpp b/src/JuceSharp.Native/src/wem/WemVorbisDecoder.cpp index 449d79e..434df97 100644 --- a/src/JuceSharp.Native/src/wem/WemVorbisDecoder.cpp +++ b/src/JuceSharp.Native/src/wem/WemVorbisDecoder.cpp @@ -564,6 +564,7 @@ std::unique_ptr WemVorbisDecoder::open(std::shared_ptrsize() < 12) { error = "not a WEM file (too short)"; return nullptr; } + if (bytes->size() > kMaxWemBytes) { error = "WEM file larger than the 256 MiB cap"; return nullptr; } struct Attempt { Variant variant; ForcePackets force; }; std::vector attempts; @@ -973,7 +974,14 @@ void WemVorbisDecoder::startBatch(Batch& b, size_t first, bool async) { joinBatch(b); const size_t total = packets_.size(); - const size_t end = std::min(total, first + (size_t) threads_ * (size_t) lanePackets_); + size_t end = std::min(total, first + (size_t) threads_ * (size_t) lanePackets_); + // The packet table is the file's own claim; keep a batch's PCM bounded + // whatever it says (one packet is at most 4096 frames, far below the cap). + const auto batchBytes = [&](size_t e) { + return (size_t) (outStartAt(e) - outStartAt(first)) * (size_t) info_.channels * sizeof(float); + }; + while (end > first + 1 && batchBytes(end) > kMaxBatchPcmBytes) + end = first + (end - first) / 2; const size_t count = end - first; // A short tail uses fewer segments rather than slivers of a few packets. const size_t minSegment = std::max(1, (size_t) lanePackets_ / 4); diff --git a/src/JuceSharp.Native/src/wem/WemVorbisDecoder.h b/src/JuceSharp.Native/src/wem/WemVorbisDecoder.h index 5bbc0c7..f9f06f0 100644 --- a/src/JuceSharp.Native/src/wem/WemVorbisDecoder.h +++ b/src/JuceSharp.Native/src/wem/WemVorbisDecoder.h @@ -51,6 +51,16 @@ namespace dcwem { +/// The largest .wem any entry point accepts (dca_wem_open_*, the engine's +/// juce::AudioFormat). A Rocksmith song is a few MB; past this the file is +/// refused before it is buffered, rather than copied into memory on its own say-so. +inline constexpr size_t kMaxWemBytes = (size_t) 256 << 20; + +/// Upper bound on the decoded PCM one parallel batch holds. Segment buffers are +/// sized from the packet table, i.e. from the file; past this a batch is split +/// into fewer packets instead of allocated. +inline constexpr size_t kMaxBatchPcmBytes = (size_t) 64 << 20; + /// Which codebook source / packet format to use. `Auto` tries DotCharter's /// variant list in order (see the file comment). enum class Variant : int diff --git a/src/JuceSharp.Native/tests/CMakeLists.txt b/src/JuceSharp.Native/tests/CMakeLists.txt index c946b05..5673d66 100644 --- a/src/JuceSharp.Native/tests/CMakeLists.txt +++ b/src/JuceSharp.Native/tests/CMakeLists.txt @@ -166,6 +166,12 @@ if(DOTCHARTER_DSP_NEURAL) set_tests_properties(juce_sharp_nam_lifetime PROPERTIES TIMEOUT 180) endif() +# dcabi::copyBlockOut (dca_plugin_save_state's size narrowing); header-only. +add_executable(juce_sharp_abi_args_test abi_args_test.cpp) +target_include_directories(juce_sharp_abi_args_test PRIVATE ${CMAKE_SOURCE_DIR}/src) +target_compile_features(juce_sharp_abi_args_test PRIVATE cxx_std_17) +add_test(NAME abi_args COMMAND juce_sharp_abi_args_test) + # Pure routing mixer contract; no JUCE engine/device or native DLL required. add_executable(juce_sharp_lane_mixer_test lane_mixer_test.cpp) target_compile_features(juce_sharp_lane_mixer_test PRIVATE cxx_std_17) diff --git a/src/JuceSharp.Native/tests/abi_args_test.cpp b/src/JuceSharp.Native/tests/abi_args_test.cpp new file mode 100644 index 0000000..23507ca --- /dev/null +++ b/src/JuceSharp.Native/tests/abi_args_test.cpp @@ -0,0 +1,66 @@ +// dcabi::copyBlockOut — the tail of dca_plugin_save_state. +// +// A plugin state past INT32_MAX used to be cast to a negative int32_t, and the +// copy length min(capacity, negative) then reached memcpy as a huge size_t. No +// test can make a real plugin produce 2 GiB of state, so the decision lives in +// one pure function and is pinned here: an oversized block is refused before +// any cast or copy, and the ordinary cases still report and copy as before. +// +// Not vacuous: the oversized case passes a data pointer that must never be +// read; a copy would crash the test. + +#include "AbiArgs.h" + +#include +#include +#include + +namespace +{ +int failures = 0; + +void check(bool ok, const char* what) +{ + if (! ok) { std::fprintf(stderr, "FAIL: %s\n", what); ++failures; } +} +} // namespace + +int main() +{ + const std::size_t int32Max = (std::size_t) std::numeric_limits::max(); + + check(dcabi::fitsInt32(0), "0 fits"); + check(dcabi::fitsInt32(int32Max), "INT32_MAX fits"); + check(! dcabi::fitsInt32(int32Max + 1), "INT32_MAX + 1 does not fit"); + + { + // Never dereferenced: the block is refused before the copy. + const auto* poison = reinterpret_cast(std::uintptr_t{ 0x10 }); + uint8_t buffer[8] = {}; + int32_t out = 1234; + check(! dcabi::copyBlockOut(poison, int32Max + 1, buffer, (int32_t) sizeof(buffer), &out), + "a block over INT32_MAX is refused"); + check(out == 0, "a refused block reports size 0"); + } + { + const uint8_t data[5] = { 1, 2, 3, 4, 5 }; + uint8_t buffer[3] = {}; + int32_t out = -1; + check(dcabi::copyBlockOut(data, sizeof(data), buffer, (int32_t) sizeof(buffer), &out), + "a small block is accepted"); + check(out == 5, "the whole size is reported even when the buffer is smaller"); + check(buffer[0] == 1 && buffer[2] == 3, "the first `capacity` bytes are copied"); + } + { + const uint8_t data[4] = { 9, 9, 9, 9 }; + uint8_t buffer[4] = {}; + int32_t out = 0; + check(dcabi::copyBlockOut(data, sizeof(data), buffer, -7, &out) && out == 4 && buffer[0] == 0, + "a negative capacity copies nothing and still reports the size"); + check(dcabi::copyBlockOut(data, sizeof(data), nullptr, 4, &out) && out == 4, + "a size query (null buffer) reports the size"); + } + + if (failures == 0) std::puts("PASS: oversized plugin state is refused before the int32 cast"); + return failures == 0 ? 0 : 1; +} diff --git a/src/JuceSharp.Native/tests/nam/nam_lifetime.cpp b/src/JuceSharp.Native/tests/nam/nam_lifetime.cpp index 63e4860..3626107 100644 --- a/src/JuceSharp.Native/tests/nam/nam_lifetime.cpp +++ b/src/JuceSharp.Native/tests/nam/nam_lifetime.cpp @@ -8,6 +8,11 @@ #include #include #include +#include +#include +#include +#include +#include #include namespace dcrig { extern void (*namLoadTestHook)(int); extern int namNonFiniteTestBlocks; @@ -58,6 +63,56 @@ float runBlock(dcrig::DspModule& module, double& phase) return peak; } +/// A capture names its own sample rate, and a shared capture is untrusted. A +/// huge finite rate overflowed the frame arithmetic in armRateAdaptation and +/// sized the resampler buffers from the overflow; the allocation threw on the +/// load worker's std::thread, where an escaping exception is std::terminate for +/// the whole host. It must load as a capture the module dry-bypasses, with +/// "rateMismatch" saying why, and the process must keep running. +/// +/// Not vacuous: without the range check and the try/catch around the post-load +/// step this process dies inside the wait below. +int anAbsurdCaptureRateBypassesInsteadOfTerminating(const char* fixture) +{ + std::ifstream in(fixture, std::ios::binary); + std::string json((std::istreambuf_iterator(in)), std::istreambuf_iterator()); + const auto brace = json.find('{'); + if (brace == std::string::npos) { std::fprintf(stderr, "fixture is not a JSON capture\n"); return 1; } + json.insert(brace + 1, "\"sample_rate\": 1e12, "); + const auto path = std::filesystem::temp_directory_path() / "juce_sharp_nam_absurd_rate.nam"; + { std::ofstream out(path, std::ios::binary | std::ios::trunc); out << json; } + + auto module = dcrig::createNamAmpModule(); + module->prepare(44100, 256, 1); + module->setStringParam("modelPath", path.u8string().c_str()); + const auto deadline = std::chrono::steady_clock::now() + std::chrono::seconds(60); + while (! loaded(*module) && std::chrono::steady_clock::now() < deadline) + std::this_thread::sleep_for(std::chrono::milliseconds(20)); + + float mismatch = 0.f, resampling = 1.f; + module->getParam("rateMismatch", mismatch); + module->getParam("resampling", resampling); + int rc = 0; + if (! loaded(*module)) + { std::fprintf(stderr, "a capture declaring 1e12 Hz never finished loading\n"); rc = 1; } + else if (mismatch != 1.f || resampling != 0.f) + { std::fprintf(stderr, "a capture declaring 1e12 Hz was armed (rateMismatch %f, resampling %f) " + "instead of dry-bypassed\n", mismatch, resampling); rc = 1; } + else + { + // The bypass is a wire: audio passes untouched and nothing is allocated + // for the absurd rate. + double phase = 0.0; + const float peak = runBlock(*module, phase); + if (! (peak > 0.2f && peak < 0.3f)) + { std::fprintf(stderr, "the bypassed capture did not pass audio dry (peak %f)\n", peak); rc = 1; } + } + module.reset(); + std::error_code ec; + std::filesystem::remove(path, ec); + return rc; +} + /// W4-D34. The neural stage is UNTRUSTED by this engine's own definition, and /// AmpFace::processPost is five recursive Biquads. A non-finite sample out of /// NeuralAudio latched all five permanently — and AmpFace::reset() is only @@ -247,12 +302,15 @@ int main(int argc, char** argv) if (neuralNaNCannotLatchTheAmpFace(*module) != 0) return 1; module.reset(); + if (anAbsurdCaptureRateBypassesInsteadOfTerminating(argv[1]) != 0) return 1; + if (aQueueDestroyedUnderAReaderLeaksRatherThanFrees() != 0) return 1; if (theQueueRaisesItsOverflowFlagPerRetireNotPerExcursion() != 0) return 1; if (theOverflowWarningIsReportedOncePerExcursion() != 0) return 1; std::puts("PASS: NAM clear and superseding requests cannot publish stale prepared captures"); std::puts("PASS: a non-finite sample out of the capture cannot latch the amp face"); + std::puts("PASS: a capture declaring an absurd sample rate dry-bypasses instead of terminating"); std::puts("PASS: a retirement queue destroyed under a reader leaks instead of freeing"); std::puts("PASS: the queue re-raises its overflow flag per retire (its doc says otherwise)"); std::puts("PASS: namamp reports the soft-cap warning once per excursion, and re-arms"); diff --git a/src/JuceSharp.Native/tests/rt/rt_main.cpp b/src/JuceSharp.Native/tests/rt/rt_main.cpp index a17d2a5..4351b78 100644 --- a/src/JuceSharp.Native/tests/rt/rt_main.cpp +++ b/src/JuceSharp.Native/tests/rt/rt_main.cpp @@ -51,6 +51,7 @@ #include "dsp/cores/dcdsp_tremolo.h" #include "dsp/cores/dcdsp_wah.h" #include "dsp/cores/dcdsp_looper.h" +#include "wem/WemVorbisEncoder.h" // 2026-09 drive gear (src/dsp/gear/DriveGear.cpp). #include "dsp/cores/dcdsp_rat.h" #include "dsp/cores/dcdsp_ds1.h" @@ -4240,6 +4241,74 @@ void scenarioPreloadedSourceHoldsSixteenBitPcm() endScenario(); } +// A .wem song is decoded into RAM on the load thread and NEVER streamed. Its +// decoder allocates (libvorbis state, packet buffers), and a streamed reader is +// decoded on the read-ahead thread inside the lock the callback takes, so the +// callback would wait on an allocating decode. This pins both halves: a WEM that +// fits preloads, holds no decoder and plays without allocating; a WEM that does +// NOT fit the budget is refused rather than wired to the streaming path (a WAV in +// the same position still streams -- RtPreloadedSourceAvoidsTheReadAheadLock). +void scenarioWemSourceIsPreloadedNeverStreamed() +{ + beginScenario("RtWemSourceIsPreloadedNeverStreamed"); + Fixture fx; + if (! fx.ok()) { fail("engine did not start: " + fx.error()); endScenario(); return; } + + const int frames = dcwem::kWemEncodeSampleRate * 2; + std::vector pcm((size_t) frames * 2); + for (int i = 0; i < frames; ++i) + pcm[(size_t) i * 2] = pcm[(size_t) i * 2 + 1] + = 0.25f * (float) std::sin(2.0 * 3.14159265358979323846 * 220.0 * i / dcwem::kWemEncodeSampleRate); + std::vector wem; + dcwem::WemEncodeStats stats; + std::string error; + if (! dcwem::encodeVorbisWem(pcm.data(), frames, dcwem::kWemEncodeChannels, dcwem::kWemEncodeSampleRate, + wem, stats, error)) + { fail("could not encode a .wem fixture: " + error); endScenario(); return; } + + TransportSource src(fx.engine()); + const auto err = src.openMemory(wem.data(), wem.size(), "wem"); + if (err.isNotEmpty()) { fail("openMemory(.wem) failed: " + err.toStdString()); endScenario(); return; } + RT_CHECK(src.isPreloaded(), "a 2 s .wem did not preload"); + RT_CHECK(! src.holdsDecoder(), "a preloaded .wem still holds its (allocating) decoder"); + + src.play(); + fx.pumpWarm(8); + auto* dev = nulldev::manualDevice(); + if (dev == nullptr) { fail("no manual null device"); endScenario(); return; } + float peak = 0.0f; + dcrt::reset(); + dcrt::arm(); + for (int b = 0; b < 32; ++b) + { + dcrt::g_currentBlock.store((unsigned) b, std::memory_order_relaxed); + { dcrt::ScopedRtThread rt; nulldev::pump(1); } + for (float v : dev->manualOutputBuffers()[0]) peak = std::max(peak, std::abs(v)); + } + dcrt::disarm(); + reportHeap(".wem preload playback"); + RT_CHECK(peak > 0.05f, "the .wem never became audible (peak " + std::to_string(peak) + + ") -- the allocation check below would be vacuous"); + RT_CHECK(dcrt::allocCount() == 0, + "playing a .wem allocated " + std::to_string(dcrt::allocCount()) + " time(s) on the callback"); + + // Exhaust the budget: the next .wem must be REFUSED, not streamed. + const int64_t remaining = AudioEngine::preloadBudgetBytes() - src.preloadedBytes(); + RT_CHECK(remaining > 0 && fx.engine().reservePreloadBytes(remaining), + "could not reserve the remaining preload budget"); + { + TransportSource streamed(fx.engine()); + const auto err2 = streamed.openMemory(wem.data(), wem.size(), "wem"); + RT_CHECK(err2.isNotEmpty(), "a .wem that could not preload was opened anyway -- it is STREAMING, " + "i.e. decoded under the lock the callback takes"); + RT_CHECK(! streamed.holdsDecoder(), "a refused .wem still holds its decoder"); + RT_CHECK(! streamed.isPreloaded(), "a refused .wem claims a preload"); + } + fx.engine().releasePreloadBytes(remaining); + + endScenario(); +} + // A user slider — master volume, the guitar monitor — publishes a new gain per // UI tick. Applying it as ONE constant for the whole block steps the waveform // at every block boundary while the slider moves: the classic zipper, and the @@ -12659,6 +12728,8 @@ int main(int argc, char** argv) run("RtSandboxMidiLandsOnItsSampleWithoutAllocating", &scenarioSandboxMidiIsSampleAccurate); // ABI v47 (the external process insert), appended last. run("RtExternalProcessInsertExchangesWithoutAllocatingAndFallsBackDry", &scenarioExternalProcessInsert); + // A .wem is preloaded and never streamed (its decoder allocates), appended last. + run("RtWemSourceIsPreloadedNeverStreamed", &scenarioWemSourceIsPreloadedNeverStreamed); // --- meta: the run-list ORDER ----------------------------------------- // Runs under `--only` as well, unlike the two meta-assertions below: it diff --git a/src/JuceSharp.StemSeparation/JuceSharp.StemSeparation.csproj b/src/JuceSharp.StemSeparation/JuceSharp.StemSeparation.csproj index 6100a38..d3cb040 100644 --- a/src/JuceSharp.StemSeparation/JuceSharp.StemSeparation.csproj +++ b/src/JuceSharp.StemSeparation/JuceSharp.StemSeparation.csproj @@ -52,6 +52,14 @@ PackageCopyToOutput="true" PackageFlatten="false" /> + + + + + true + + false diff --git a/tests/JuceSharp.Tests/NativeMethodsTests.cs b/tests/JuceSharp.Tests/NativeMethodsTests.cs index c5caab3..0577fdc 100644 --- a/tests/JuceSharp.Tests/NativeMethodsTests.cs +++ b/tests/JuceSharp.Tests/NativeMethodsTests.cs @@ -146,6 +146,7 @@ public void EveryAbiV34Export_HasABindingNamedAfterIt(string member, string entr [InlineData(nameof(NativeMethods.EngineGetInputInjectionStatusForPlayer), "dca_engine_get_input_injection_status_for_player")] [InlineData(nameof(NativeMethods.EngineSetSongClockSource), "dca_engine_set_song_clock_source")] [InlineData(nameof(NativeMethods.EngineChartSourceSetNotesForPlayer), "dca_engine_chart_source_set_notes_for_player")] + [InlineData(nameof(NativeMethods.EngineChartSourceSetNotesForPlayer2), "dca_engine_chart_source_set_notes_for_player2")] [InlineData(nameof(NativeMethods.EngineChartSourceSetEnabledForPlayer), "dca_engine_chart_source_set_enabled_for_player")] [InlineData(nameof(NativeMethods.EngineChartSourceSetVoiceForPlayer), "dca_engine_chart_source_set_voice_for_player")] [InlineData(nameof(NativeMethods.EngineChartSourceSetParamsForPlayer), "dca_engine_chart_source_set_params_for_player")] diff --git a/tests/JuceSharp.Tests/PreloadFootprintTests.cs b/tests/JuceSharp.Tests/PreloadFootprintTests.cs index 1751323..a8b0401 100644 --- a/tests/JuceSharp.Tests/PreloadFootprintTests.cs +++ b/tests/JuceSharp.Tests/PreloadFootprintTests.cs @@ -45,7 +45,15 @@ private static byte[] StereoWav() public void AMemoryOpenedSong_IsHeldAsSixteenBitPcm() { var logger = new CapturingLogger(); - using var engine = new JuceAudioEngine(new JuceEngineConfig { EnableNullDevice = true }, logger); + // ON the Null device at 48 kHz, not merely with it registered: the held + // length follows the DEVICE rate, and a default device at 44.1 kHz (a CI + // runner's virtual cable) resamples the song down to 3.4 MB. + using var engine = new JuceAudioEngine(new JuceEngineConfig + { + EnableNullDevice = true, + OutputTypeName = "Null", + SampleRate = Rate, + }, logger); using var source = engine.OpenMemory(StereoWav(), "wav"); var line = logger.Records.Select(r => r.Message) @@ -56,8 +64,7 @@ public void AMemoryOpenedSong_IsHeldAsSixteenBitPcm() var mb = double.Parse(Regex.Match(line!, @"preloaded into RAM \(([0-9.]+) MB\)").Groups[1].Value, CultureInfo.InvariantCulture); - // Held at the device rate: the null device may run at 44.1 or 48 kHz, - // and a 48 kHz file is never DOWN-sampled, so the held length is the file's. + // Held at the device rate, which is pinned to the file's 48 kHz above. var int16Mb = (double)Rate * Seconds * 2 * sizeof(short) / (1024 * 1024); Assert.True(Math.Abs(mb - int16Mb) <= 0.1, $"a 20 s 48 kHz stereo song is held as {mb} MB; 16-bit PCM is {int16Mb:0.0} MB and float32 " diff --git a/tests/JuceSharp.Tests/PythonEnvManagerPipArgumentTests.cs b/tests/JuceSharp.Tests/PythonEnvManagerPipArgumentTests.cs index 285b06b..a8fe36a 100644 --- a/tests/JuceSharp.Tests/PythonEnvManagerPipArgumentTests.cs +++ b/tests/JuceSharp.Tests/PythonEnvManagerPipArgumentTests.cs @@ -7,41 +7,70 @@ namespace JuceSharp.Tests; /// /// EnsurePackagesAsync used to build ONE string — /// -m pip install … "pkg1" "pkg2" — and hand it to -/// ProcessStartInfo.Arguments. A local wheel path with an -/// embedded quote, or one ending in a backslash (which escapes the closing -/// quote under the MSVCRT rules), was mis-parsed by the child. The argv is now -/// a list for ProcessStartInfo.ArgumentList, and each spec is -/// passed verbatim; the runtime does the escaping. +/// ProcessStartInfo.Arguments. A path with an embedded quote, or one +/// ending in a backslash (which escapes the closing quote under the MSVCRT +/// rules), was mis-parsed by the child. The argv is a list for +/// ProcessStartInfo.ArgumentList, and every path in it is passed +/// verbatim; the runtime does the escaping. +/// +/// +/// Since the package set became hash-locked, the argv names no package at all: +/// pip reads the lock with --require-hashes, and these tests pin that +/// too — an install without it accepts whatever bytes the index serves. +/// /// public sealed class PythonEnvManagerPipArgumentTests { [Fact] - public void A_wheel_path_with_spaces_a_quote_and_a_trailing_backslash_is_one_verbatim_argument() + public void A_lock_path_with_spaces_a_quote_and_a_trailing_backslash_is_one_verbatim_argument() { - var wheel = @"C:\my wheels\weird ""name"" pkg\"; - var args = PythonEnvManager.BuildPipInstallArguments(new[] { "torch==2.3.0", wheel }); + var lockPath = @"C:\my roots\weird ""name"" root\"; + var args = PythonEnvManager.BuildPipInstallArguments(lockPath); Assert.Equal(new[] { "-m", "pip", "install", "--isolated", "--no-warn-script-location", "--disable-pip-version-check", - "torch==2.3.0", wheel, + "--require-hashes", "--no-deps", "--only-binary", ":all:", + "-r", lockPath, }, args); // Nothing was quoted or escaped by us — that is the runtime's job. Assert.DoesNotContain(args, a => a.StartsWith('"')); - Assert.Same(wheel, args[^1]); + Assert.Same(lockPath, args[^1]); } + /// The three flags that make the install hash-locked, each on its + /// own: --require-hashes (every wheel proves its SHA-256), + /// --no-deps (nothing outside the lock is resolved) and + /// --only-binary :all: (no sdist build script ever runs). [Fact] - public void Blank_specs_are_dropped_before_they_reach_pip() + public void The_pip_install_is_hash_locked() { - var args = PythonEnvManager.BuildPipInstallArguments(new[] { "", " ", "numpy" }); - Assert.Equal("numpy", args[^1]); - Assert.Equal(7, args.Count); + var args = PythonEnvManager.BuildPipInstallArguments("lock.txt"); + Assert.Contains("--require-hashes", args); + Assert.Contains("--no-deps", args); + var ob = args.ToList().IndexOf("--only-binary"); + Assert.True(ob >= 0 && args[ob + 1] == ":all:"); + var r = args.ToList().IndexOf("-r"); + Assert.True(r >= 0 && args[r + 1] == "lock.txt"); + } + + [Fact] + public void The_pip_bootstrap_installs_only_the_verified_wheel_with_no_index() + { + var wheel = @"C:\my roots\pip-26.2.1-py3-none-any.whl"; + var args = PythonEnvManager.BuildPipBootstrapArguments(wheel); + + Assert.Equal("-c", args[0]); + Assert.Contains("'--no-index'", args[1]); + Assert.Contains("'--no-deps'", args[1]); + // The path is its own argv element, never spliced into the code. + Assert.DoesNotContain(wheel, args[1]); + Assert.Same(wheel, args[^1]); } [Fact] - public void EnsurePackagesAsync_no_longer_concatenates_a_quoted_string() + public void EnsurePackagesAsync_runs_pip_on_the_lock_through_the_argument_list() { var source = File.ReadAllText(ManagerSourcePath()); var start = source.IndexOf("public async Task EnsurePackagesAsync(", StringComparison.Ordinal); @@ -52,11 +81,11 @@ public void EnsurePackagesAsync_no_longer_concatenates_a_quoted_string() Assert.DoesNotContain("Append('\"')", body); Assert.DoesNotContain("new StringBuilder(", body); - Assert.Contains("Run(Executable, BuildPipInstallArguments(list)", body); + Assert.Contains("Run(Executable, BuildPipInstallArguments(lockPath)", body); - // And the get-pip bootstrap is on the list overload too — its script - // path lives under the user's config root, which can contain spaces. - Assert.Contains("Run(Executable, new[] { getPip, \"--no-warn-script-location\" }", source); + // And the pip bootstrap is on the list overload too — its wheel path + // lives under the user's config root, which can contain spaces. + Assert.Contains("Run(Executable, BuildPipBootstrapArguments(wheel)", source); } private static string ManagerSourcePath([CallerFilePath] string? thisFile = null) diff --git a/tests/JuceSharp.Tests/Wem/WemInputCapTests.cs b/tests/JuceSharp.Tests/Wem/WemInputCapTests.cs new file mode 100644 index 0000000..83bd25c --- /dev/null +++ b/tests/JuceSharp.Tests/Wem/WemInputCapTests.cs @@ -0,0 +1,98 @@ +using System.Runtime.CompilerServices; +using JuceSharp.Interop; +using Xunit; + +namespace JuceSharp.Tests.Wem; + +/// +/// A .wem is copied into memory whole before it is decoded, so every entry point +/// caps it (dcwem::kMaxWemBytes, 256 MiB) and refuses a bigger one BEFORE +/// it is buffered: dca_wem_open_memory, dca_wem_open_file and the +/// engine's own format reader. Each refusal is paired with the same audio under +/// the cap opening fine, so the trailing padding is not what fails it. +/// +[Collection("NullDevice")] +public sealed class WemInputCapTests : IDisposable +{ + private const int CapBytes = 256 << 20; + private readonly List _files = []; + + public void Dispose() + { + foreach (var f in _files) + { + try { File.Delete(f); } + catch (IOException) { } + } + } + + private static byte[] SmallWem() + { + var pcm = new float[4800 * 2]; + for (var i = 0; i < 4800; i++) + pcm[2 * i] = pcm[2 * i + 1] = 0.25f * MathF.Sin(i * 2f * MathF.PI * 220f / 48000f); + return JuceWemEncoder.EncodeVorbis(pcm); + } + + /// The .wem at the front, zeros after it, + /// bytes in all. The decoder only reads inside the RIFF, so padding alone + /// never makes it fail. + private string PaddedFile(byte[] wem, long length) + { + var path = Path.Combine(Path.GetTempPath(), $"jsw-cap-{Guid.NewGuid():N}.wem"); + _files.Add(path); + using var fs = new FileStream(path, FileMode.CreateNew); + fs.Write(wem); + fs.SetLength(length); + return path; + } + + [NativeAvailableFact] + public void A_buffer_over_the_cap_is_refused_and_one_under_it_opens() + { + var wem = SmallWem(); + var under = new byte[wem.Length + 4096]; + wem.CopyTo(under, 0); + using (JuceWemDecoder.OpenMemory(under)) { } + + var over = new byte[CapBytes + 1]; + wem.CopyTo(over, 0); + Assert.Throws(() => JuceWemDecoder.OpenMemory(over).Dispose()); + } + + [NativeAvailableFact] + public void A_file_over_the_cap_is_refused_and_one_under_it_opens() + { + var wem = SmallWem(); + using (JuceWemDecoder.OpenFile(PaddedFile(wem, wem.Length + 4096))) { } + Assert.Throws(() => JuceWemDecoder.OpenFile(PaddedFile(wem, CapBytes + 1L)).Dispose()); + } + + /// The engine's format reader (every OpenFile of a .wem song) + /// buffers the file too, and is capped the same way. + [NativeAvailableFact] + public void The_engine_refuses_a_wem_source_over_the_cap() + { + var wem = SmallWem(); + using var scope = new NullDeviceScope(); + using var engine = NullDevice.CreateEngine(inputChannels: 1); + using (engine.OpenFile(PaddedFile(wem, wem.Length + 4096))) { } + Assert.ThrowsAny(() => engine.OpenFile(PaddedFile(wem, CapBytes + 1L)).Dispose()); + } + + [Fact] + public void The_cap_this_test_uses_is_the_decoders() + { + var header = File.ReadAllText(NativeSource("src/wem/WemVorbisDecoder.h")); + Assert.Contains("kMaxWemBytes = (size_t) 256 << 20;", header); + Assert.Equal(256 << 20, CapBytes); + } + + private static string NativeSource(string rel, [CallerFilePath] string? thisFile = null) + { + var path = Path.GetFullPath(Path.Combine(Path.GetDirectoryName(thisFile!)!, "..", "..", "..", + "src", "JuceSharp.Native", rel)); + Assert.True(File.Exists(path), path); + return path; + } +} diff --git a/tools/python-lock/generate_demucs_weights.py b/tools/python-lock/generate_demucs_weights.py new file mode 100644 index 0000000..2d526f7 --- /dev/null +++ b/tools/python-lock/generate_demucs_weights.py @@ -0,0 +1,103 @@ +"""Regenerate the pinned Demucs weight table (DemucsWeightPins.g.cs). + + python -I tools/python-lock/generate_demucs_weights.py + +demucs >= 4.1 fetches its pretrained bags from the HuggingFace hub with no +revision and no hash, and falls back to dl.fbaipublicfiles.com with a 32-bit +checksum prefix and a full unpickle. JuceSharp therefore fetches the files +itself, through VerifiedDownload, from ONE pinned revision of each repository +with a full SHA-256, and hands the script a local directory. + +Provenance, per file: + * `.safetensors` -- the LFS SHA-256 HuggingFace reports for the pinned + revision (the LFS object id IS the content SHA-256). + * `.yaml` -- downloaded at the pinned revision; its git blob id must + equal the one the API reports, and its model list must equal the bag the + demucs wheel itself ships in demucs/remote/.yaml (the wheel is pinned + by hash in the package lock). Only then is its SHA-256 recorded. +""" +import hashlib +import json +import sys +import urllib.request +import zipfile +from pathlib import Path + +import yaml # only for the cross-check against the wheel's bag list + +REPO = Path(__file__).resolve().parents[2] +OUT = REPO / "src" / "JuceSharp.StemSeparation" / "Runtime" / "DemucsWeightPins.g.cs" +NAMESPACE = "adefossez" +# The bags the installed packages can run: the diffq-quantised ones need a +# package the lock does not install, so they are left out on purpose. +MODELS = { + "htdemucs": "HTDemucs", + "htdemucs_ft": "HTDemucs-ft", + "htdemucs_6s": "HTDemucs-6s", + "hdemucs_mmi": "Demucs-hdemucs_mmi", + "mdx": "Demucs-mdx", + "mdx_extra": "Demucs-mdx_extra", +} + + +def get_json(url): + with urllib.request.urlopen(url) as r: + return json.load(r) + + +def get_bytes(url): + with urllib.request.urlopen(url) as r: + return r.read() + + +def main() -> int: + if len(sys.argv) != 2: + sys.exit(__doc__) + wheel = zipfile.ZipFile(sys.argv[1]) + rows = [] + for name, repo in MODELS.items(): + info = get_json(f"https://huggingface.co/api/models/{NAMESPACE}/{repo}/revision/main?blobs=true") + rev = info["sha"] + siblings = {s["rfilename"]: s for s in info["siblings"]} + + yaml_name = f"{name}.yaml" + body = get_bytes(f"https://huggingface.co/{NAMESPACE}/{repo}/resolve/{rev}/{yaml_name}") + blob = hashlib.sha1(b"blob %d\0" % len(body) + body).hexdigest() + if blob != siblings[yaml_name]["blobId"]: + sys.exit(f"{repo}/{yaml_name}: git blob id mismatch") + bag = yaml.safe_load(body) + shipped = yaml.safe_load(wheel.read(f"demucs/remote/{yaml_name}")) + if bag["models"] != shipped["models"]: + sys.exit(f"{repo}/{yaml_name}: bag {bag['models']} != wheel {shipped['models']}") + + files = [(yaml_name, hashlib.sha256(body).hexdigest(), len(body))] + for sig in bag["models"]: + s = siblings[f"{sig}.safetensors"] + files.append((f"{sig}.safetensors", s["lfs"]["sha256"], s["size"])) + rows.append((name, repo, rev, files)) + + out = [ + "// ", + "// GENERATED by tools/python-lock/generate_demucs_weights.py. Do not edit by hand.", + "// ", + "namespace JuceSharp.StemSeparation.Runtime;", + "", + "internal static partial class DemucsWeightPins", + "{", + " private static readonly DemucsWeightBag[] Generated =", + " [", + ] + for name, repo, rev, files in rows: + out.append(f' new("{name}", "{NAMESPACE}/{repo}", "{rev}",') + out.append(" [") + for fn, sha, size in files: + out.append(f' new("{fn}", "{sha}", {size}),') + out.append(" ]),") + out += [" ];", "}", ""] + OUT.write_text("\n".join(out), encoding="utf-8", newline="\n") + print(f"wrote {OUT} ({len(rows)} bags)") + return 0 + + +if __name__ == "__main__": + sys.exit(main()) diff --git a/tools/python-lock/generate_lock.py b/tools/python-lock/generate_lock.py new file mode 100644 index 0000000..e4ba5c2 --- /dev/null +++ b/tools/python-lock/generate_lock.py @@ -0,0 +1,98 @@ +"""Regenerate the hash-locked package set the embedded interpreter installs. + + python -I tools/python-lock/generate_lock.py + +Reads every pin from src/JuceSharp.StemSeparation/Runtime/PythonPackagePins.cs +(the one place a pin is written down), resolves them with `uv pip compile` for +CPython 3.11 on Windows x64 with binary wheels only, and keeps, per locked +package, ONLY the hashes of wheels that interpreter can install. The result is +src/JuceSharp.StemSeparation/PythonScripts/requirements-win_amd64-cp311.lock, +which PythonEnvManager installs with `pip install --require-hashes --no-deps`. + +The hashes come from PyPI's JSON API (`digests.sha256` of each release file), +the same values pip checks. Needs network access and `uv` on PATH. +""" +import json +import re +import subprocess +import sys +import tempfile +import urllib.request +from pathlib import Path + +REPO = Path(__file__).resolve().parents[2] +PINS_CS = REPO / "src" / "JuceSharp.StemSeparation" / "Runtime" / "PythonPackagePins.cs" +OUT = REPO / "src" / "JuceSharp.StemSeparation" / "PythonScripts" / "requirements-win_amd64-cp311.lock" + +PY_TAGS = {"py3", "cp311", "py311", "py2.py3", "py3.py2"} +ABI_TAGS = {"none", "cp311", "abi3"} +PLATFORM_TAGS = {"any", "win_amd64"} + + +def read_pins() -> list[str]: + text = PINS_CS.read_text(encoding="utf-8") + pins = re.findall(r'public const string \w+ = "([^"]+)";', text) + if not pins: + sys.exit(f"No pins found in {PINS_CS}") + return pins + + +def wheel_installable(filename: str) -> bool: + if not filename.endswith(".whl"): + return False + parts = filename[:-4].split("-") + if len(parts) < 5: + return False + py, abi, plat = parts[-3], parts[-2], parts[-1] + if not any(t in PLATFORM_TAGS for t in plat.split(".")): + return False + if abi == "abi3": + # Stable-ABI wheels are tagged with the OLDEST CPython they support. + return any(re.fullmatch(r"cp3(\d+)", t) and int(t[3:]) <= 11 for t in py.split(".")) + return (any(t in PY_TAGS for t in py.split(".")) + and any(t in ABI_TAGS for t in abi.split("."))) + + +def pypi_hashes(name: str, version: str) -> list[tuple[str, str]]: + with urllib.request.urlopen(f"https://pypi.org/pypi/{name}/{version}/json") as r: + data = json.load(r) + return sorted((u["digests"]["sha256"], u["filename"]) + for u in data["urls"] if wheel_installable(u["filename"])) + + +def main() -> int: + pins = read_pins() + with tempfile.TemporaryDirectory() as tmp: + req_in = Path(tmp) / "requirements.in" + req_in.write_text("\n".join(pins) + "\n", encoding="utf-8") + compiled = subprocess.run( + ["uv", "pip", "compile", str(req_in), "--python-version", "3.11", + "--python-platform", "x86_64-pc-windows-msvc", "--only-binary", ":all:", + "--no-header", "--no-annotate", "--quiet"], + check=True, capture_output=True, text=True).stdout + + locked = re.findall(r"^([A-Za-z0-9_.\-]+)==([^\s\\]+)", compiled, flags=re.M) + if not locked: + sys.exit("uv produced no pins") + + lines = [ + "# GENERATED by tools/python-lock/generate_lock.py. Do not edit by hand.", + "# CPython 3.11, Windows x64, wheels only. Installed with", + "# `pip install --require-hashes --no-deps --only-binary :all: -r `.", + "# Pins: " + "; ".join(pins), + ] + for name, version in sorted(locked, key=lambda nv: nv[0].lower()): + hashes = pypi_hashes(name, version) + if not hashes: + sys.exit(f"{name}=={version} has no wheel for cp311-win_amd64") + lines.append(f"{name}=={version} \\") + for i, (sha, filename) in enumerate(hashes): + tail = " \\" if i < len(hashes) - 1 else "" + lines.append(f" --hash=sha256:{sha}{tail}") + OUT.write_text("\n".join(lines) + "\n", encoding="utf-8", newline="\n") + print(f"wrote {OUT} ({len(locked)} packages)") + return 0 + + +if __name__ == "__main__": + sys.exit(main())