Skip to content

A full-featured download manager.

feat(bridge): ship the MBP1 extension control plane (#2021)

Dr_rOot0217d3b275ea
diff --git a/.claude/rules/bridge.md b/.claude/rules/bridge.md
index b45b94c7..4e467da2 100644
--- a/.claude/rules/bridge.md
+++ b/.claude/rules/bridge.md
@@ -1,6 +1,6 @@
---
description: MDXP bridge lifecycle, authorization, transports, and protocol boundaries
-paths: ["src/core/bridge/**", "src/core/bridge-receiver/**", "src/main/bridge/**", "src/server/bridge/**", "src/shared/protocol/bridge.ts", "src/shared/config/native-messaging-extensions.json", "packages/native-host/**", "package.json"]
+paths: ["src/core/bridge/**", "src/core/bridge-receiver/**", "src/main/bridge/**", "src/server/bridge/**", "src/shared/protocol/bridge.ts", "src/shared/schemas/bridge-settings.ts", "src/shared/config/native-messaging-extensions.json", "packages/native-host/**", "docs/bridge-pairing-protocol.md", "package.json"]
---
# Bridge (MDXP / JSON-RPC 2.0)
@@ -14,18 +14,27 @@ Import `ErrorCodes` and `makeMdxpError` from the package.
## Pairing and session lifecycle
-- Extension WebSockets use `/pair?nonce=...` for first-time pairing and
- `/v1?token=...` for authenticated reconnects. Valid MDXP clients make
- `motrix/initialize` their first request on either route.
+- Extension WebSockets speak MBP1 (`docs/bridge-pairing-protocol.md`), which
+ authenticates *below* MDXP. `/pair?nonce=...` runs the §6 first-pair
+ handshake and `/v1` the §8 challenge–response; `/v1` carries **no**
+ credential in its URL and a `?token=` query is ignored. Only once a route
+ authenticates does MDXP start, inside the §10 AEAD envelope, and
+ `motrix/initialize` is the client's first request there.
- `WebSocketBridgeServer` always owns and registers `motrix/initialize`.
Shell-provided download handlers are registered separately and must be wired
before `server.start()`; never expose a listener with incomplete handlers.
-- Authorization and readiness are different states. A `/pair` connection is
- unauthorized until initialize completes an approved pairing; `/v1` is
- authorized when its token passes the upgrade gate. On extension WebSockets,
- all control-plane and download methods other than initialize and
- `system/ping` use `authorizedDispatch`; unary HTTP separately requires its
- bearer-token and agent-facing gates.
+- Authorization and readiness are different states. Every extension WebSocket
+ session is authorized **at the transport**: `adoptAuthenticatedSession` marks
+ the connection before registering a handler, and `motrix/initialize` is a
+ capabilities exchange that grants nothing and never returns a `pairToken`.
+ The `authorizedDispatch` gate over control-plane and download methods stays
+ as defence in depth. Unary HTTP separately requires its bearer-token and
+ agent-facing gates.
+- The six MBP1 `BridgeServerOptions` (`instanceId`, `serverGeneration`,
+ `appVersion`, `credentials`, `isOfficialId`, `queueMbp1Dialog`) resolve as a
+ unit. A server missing any one of them has no extension WebSocket surface at
+ all: both upgrades are refused rather than falling back to an
+ unauthenticated one.
- A connection becomes ready only after the peer sends the
`motrix/initialized` notification. Providers passed to
`UrlResolutionService` must filter to ready connections before sending
@@ -33,10 +42,124 @@ Import `ErrorCodes` and `makeMdxpError` from the package.
- The connection close handler removes its own current session and disposes the
connection. Do not mutate the server's session map from feature code.
+Approval is proven by typing the pairing code, never by clicking an Allow
+button. The dialog shows an 8-symbol Crockford-alphabet code grouped
+`XXXX-XXXX` (`mbp1/pairing-code.ts`), lives 120 seconds, and *is* the SPAKE2
+password: it never travels a network channel and MUST NOT be logged at any
+level (§7.1). A pairing session resolves to one of three identities —
+`official`, `attested-non-official`, `unverified` — and `official` is decided
+by the immutable allowlist only, never the NM manifest set and never the
+user-added trusted-extension registry (§5).
+
Pair nonces are one-shot, expire after 60 seconds, and are consumed only by
-`/pair`. Never persist them. `endpoint.json` contains discovery information and
-a separate local CLI bearer token; the native host obtains a fresh nonce from
-`GET /nonce`.
+`/pair` — before the route does anything else, so a refused upgrade never
+reaches a session or a dialog. Never persist them. `endpoint.json` contains
+discovery information and the local CLI bearer token, `localToken`, which is
+now dual-purpose: the native-messaging host also derives its §9.2 ticket-MAC
+key from it (`ticketKey = HKDF(UTF8(localToken), "MBP1/nm-ticket/v1", "mac",
+32)`) but MUST NOT expose it to the extension. `localToken` persists across
+bridge restarts — only `serverGeneration` rotates on every start
+(`loadOrCreateBridgeIdentity`) — so an NM ticket minted before a restart takes
+the §9.2 semantic-downgrade path instead of aborting on a stale-generation MAC
+mismatch: the ticket then contributes nothing, and identity falls back to what
+the verified origin alone establishes (§9.2 only-raise — a stale ticket is
+never worse than presenting none). The nonce route is now `POST /nonce` and requires
+`X-Motrix-Bridge: 1`; the former `GET /nonce` is gone and 404s.
+
+While bound to a loopback host, every route and upgrade rejects a `Host` header
+that is not `127.0.0.1`, `localhost`, or `[::1]` with the bound port — the §4.3
+DNS-rebinding guard. It is inert for a non-loopback bind, which keeps its
+existing token + reverse-proxy model.
+
+`GET /discovery` additionally reports unauthenticated compatibility hints:
+`runtime`, `extensionPairing: { protocol: 'mbp1', versions: [1] }`, and
+`applicationProtocols: { mdxp: ['1.0'] }`. They may drive an upgrade message,
+but never trust, downgrade, or a port pin; authenticated initialization remains
+authoritative. The WebSocket parser caps messages at the largest valid active
+envelope (1 MiB plaintext + 24 bytes framing), while the state machines retain
+their stricter 16 KiB pre-authentication check.
+
+Nothing SPAKE2-adjacent may be logged at any level: the pairing code, `w`, any
+PAKE intermediate, derived keys, MACs, or NM tickets (§11). A `pairError` frame
+carries only its nine-code vocabulary (`unsupportedVersion`, `busy`,
+`rateLimited`, `codeMismatch`, `expired`, `aborted`, `authFailed`,
+`protocolViolation`, `pairingFailed`) and never a step-identifying detail.
+
+The bridge tries the candidate port range 16802–16806 in order and falls back
+to an ephemeral port, reported as `degraded`, once every candidate is taken.
+`bridge.fixedPort` pins a single port instead and is applied by restarting the
+runtime. `endpoint.json` stays the authoritative discovery record for both the
+CLI and the Native Messaging host regardless of which port was chosen. The
+server shell deliberately keeps its own explicit configured host and port and
+never walks the candidate range.
+
+## MBP1 module map
+
+`src/core/bridge/mbp1/` implements `docs/bridge-pairing-protocol.md`:
+`canonical.ts` (§2 encoding primitives), `scrypt-w.ts` (§6.2 password-to-scalar
+derivation), `pairing-code.ts` (§7.1 code generation/display/normalization),
+`spake2-core.ts` (§6.3–6.6 the generic SPAKE2 core), `transcript.ts` (§6.4
+transcript construction), `reconnect-mac.ts` (§8 reconnect MAC),
+`reconnect-rate-limit.ts` (§8 per-origin and global reconnect rate limiting,
+deliberately separate from `flood-control.ts`'s §7.3 counters),
+`envelope.ts` + `envelope-message-stream.ts` (§10 AEAD framing),
+`ticket-verify.ts` (§9 NM ticket verification), `frames.ts` (§6.1/§11 wire
+frame schemas and the `pairError` vocabulary), `nonce-service.ts` (§4.2
+one-shot pairing nonces), `flood-control.ts` (§7.3 pairing admission limits),
+`pre-auth-table.ts` (§4 pre-authentication bookkeeping), `pair-session.ts`
+(§6 the `/pair` state machine), `reconnect-session.ts` (§8 the `/v1` state
+machine). Alongside it: `../credential-store.ts` (§6.7 durable MBP1
+credentials), `../bridge-identity.ts` (§9.2 the persistent `localToken` /
+rotating `serverGeneration` loader), and `../endpoint-file-writer.ts` (the
+`endpoint.json` writer).
+
+## Envelope close codes
+
+Once §10 AEAD framing is active, envelope faults are classified by a
+three-state discriminated union — `peer-violation`, `usage-limit`, `internal`
+— and by direction. The direction matters: the same `EnvelopeViolationError`
+from inbound `open()` means the peer sent something §10 forbids, but from
+outbound `seal()` it means our code tried to seal a frame over the 1 MiB
+plaintext cap, so it is `internal` rather than the peer's fault.
+
+The close codes are:
+
+- **`1002` (protocol error)**: a §11 protocol violation (bad frame, tampering,
+ replay, a post-activation text frame). The peer sent something §10 forbids.
+- **`4001` (usage limit)**: a direction reached its §10 frame- or block-count
+ usage bound (2^24 frames or 2^30 encrypted AES blocks per direction). This
+ is neither side's fault — §10 requires the closure before either bound is
+ exceeded, and the remedy — reconnect and derive fresh keys (§8) — is the
+ same whichever direction tripped it. RFC 6455 §7.4.2 reserves 4000–4999 for
+ exactly this: private use "by prior agreement" between applications. `1002`
+ and `1011` cannot be reused: `1002` would accuse the peer of a violation when
+ none occurred, `1011` would claim an internal crash for a routine,
+ spec-mandated transition. A conforming client reconnects on any established
+ channel close (regardless of code) via §8 and derives fresh keys.
+- **`1011` (internal error)**: this process is broken (a bug, not a protocol
+ event), including an outbound attempt to seal a plaintext over the 1 MiB
+ limit. Such a refused write closes the session rather than leaving
+ application state half-delivered.
+
+The extension client cannot mirror this table: a browser's `WebSocket.close`
+refuses every code outside 1000/3000–4999, so the client sends `4001` for a
+usage bound (either direction) and a bare close for everything else (§11).
+
+An explicit extension revoke first marks the live `BridgeConnection`
+unauthorized and not-ready, then durably removes every committed/provisional
+credential for its verified Origin before updating `PairingService`. The
+same Origin's pending `/pair` and `/v1` sessions are synchronously cancelled,
+and new upgrades are refused for the whole durable-revocation critical section.
+The best-effort `PairRevoked` notification may drain briefly, but dispatch is
+already denied; the underlying WebSocket is then closed and its session-map
+entry removed.
+
+On-disk state lives under `<userData>/bridge/`: `pairing.json`,
+`registry.json`, `endpoint.json` (mode 0600), `local-token` (mode 0600), and
+`mbp1-credentials.json`. The writers request 0600 on every platform, but
+Node's `chmod` on Windows manipulates only the read-only bit — see the
+attestation-root passage under **Native Messaging host** for what that means
+for what the host can attest there.
## Dispatch and transport exposure
@@ -64,7 +187,13 @@ For every new MDXP method:
Paired extensions may use the WebSocket control plane for `task/list`,
`task/get`, `task/pause`, `task/resume`, `task/remove`, `stats/get`, and
-`engine/status`; keep the `dispatcher.has()` and authorization gates.
+`engine/status`, plus the user-gesture-only `task/reveal`; keep the
+`dispatcher.has()` and authorization gates. `task/reveal` accepts only a
+public task id, derives the path inside the Electron shell, is not agent-facing,
+and must never be exposed by unary `/mdxp`. The headless server does not
+register it, and `motrix/initialize.capabilities.taskReveal` must be derived
+from the dispatcher's actual registration so older/headless peers report it as
+unsupported rather than advertising a dead method.
`download/add` is unary-only, while extensions submit through
`download/submit`. Renderer-only plural task commands must not enter MDXP.
Unary `/mdxp` admits only methods marked agent-facing; dispatcher registration
@@ -79,13 +208,70 @@ main owns its `CancellationTokenSource`, and the matching cancel query aborts it
## Native Messaging host
`packages/native-host/` is a standalone Rust executable spawned by Chromium or
-Firefox. It reads only the endpoint port, calls loopback `GET /nonce`, and
-returns `{ action: 'requestPair', port, nonce }`. It must not expose the local
-CLI token or depend on system Node.js or Electron. Production extension IDs
-come from `src/shared/config/native-messaging-extensions.json`; development IDs
-may be added only through `MOTRIX_DEV_TRUSTED_EXTENSIONS` and must never ship as
+Firefox. It reads `endpoint.json`, probes `GET /discovery` for liveness
+(§4.1), and fetches exactly one `POST /nonce` with `X-Motrix-Bridge: 1`
+(§4.2) once liveness succeeds — the launch-poll loop probes liveness every
+~200ms but never fetches more than one nonce per resolution attempt. A
+successful liveness probe settles the resolution either way: if the nonce
+fetch then fails, `resolve_endpoint` reports `NotRunning` rather than
+falling through to a launch, because `fetch_nonce` answers `None` for any
+non-2xx — including the 429/503 the §4.2 outstanding-nonce cap and issuance
+rate limit return — and retrying there would amplify exactly the load that
+caused the refusal.
+
+The **broker** path cannot yet reach one nonce per resolution. `NotRunning`
+is all the versioned stdio contract can say, so a live bridge that refuses a
+nonce is indistinguishable to the companion from one that is down: it
+launches and calls `WaitForEndpoint`, fetching a second nonce. Bounded at two
+per resolution and never a loop, but real — separating the two states needs a
+broker-protocol response the current contract cannot express without
+breaking older companions. It
+must not expose the local CLI token itself to the extension or depend on
+system Node.js or Electron. Production extension IDs come from
+`src/shared/config/native-messaging-extensions.json`; development IDs may
+be added only through `MOTRIX_DEV_TRUSTED_EXTENSIONS` and must never ship as
production defaults.
+For a `bootstrap` request, the host also mints a §9.2 NM attestation ticket
+(`mint_ticket_for_bootstrap` in `main.rs`), returned as `nmTicket` in
+`{ action: 'requestPair', protocolVersion: 1, port, nonce, nmTicket? }` —
+`protocolVersion` is always emitted, by both `request_pair` and
+`request_pair_with_ticket`, and §9.1 makes it normative — whenever every trusted
+input is available: an argv-extracted caller identity, an owner-checked
+`localToken` and ASCII `generation` from `endpoint.json`, and the
+extension's `bindingPub`. A missing input degrades to a ticketless reply
+rather than fabricating one — ticketless resolves to `unverified` on the
+server, the same outcome as presenting no ticket at all, which is safer
+than a structurally broken ticket (§9.2 aborts on that). `localToken`
+itself never reaches the wire, only the MAC key it derives.
+
+`endpoint.json`'s `localToken`/`generation` are trusted for minting only
+when the file passes `is_owner_only` on the already-open handle (§9.1); a
+file that fails it still yields a port, but those two fields are dropped. On
+Unix that is a 0600 owner-and-mode check. On Windows it is the deliberately
+weaker analogue documented on `is_owner_only` itself: owner = current process
+user, and every DACL entry either a deny-family ACE or a plain allow ACE for
+that user, `LocalSystem`, or `BUILTIN\Administrators` — any other ACE type
+(the conditional/object allow variants included) fails the check closed and
+drops the fields. SYSTEM and Administrators are admitted because they can
+already rewrite anything the user owns, which means an administrator can
+*read* `localToken` on Windows — do not read the ticket-minting path above
+as attesting anything stronger than that there.
+
+On Flatpak, only the **broker** (`motrix-native-host-broker`) speaks HTTP:
+`probe_bridge` reaches `probe.rs` through `resolve_endpoint`, so the broker
+inherits the `POST /nonce` / `X-Motrix-Bridge: 1` migration. The companion
+(`motrix-flatpak-native-host`) makes **no** HTTP calls of its own — it has no
+reference to `probe_liveness` or `fetch_nonce` — and reaches the bridge only by
+spawning the broker over stdio. Both are ticketless by design; neither calls
+`mint_ticket`. That scope decision stands.
+
+**Do not "simplify" this by giving the companion a direct probe call.** The
+indirection is the sandbox boundary: the companion runs outside the Flatpak
+sandbox and the broker inside it, and routing every bridge request through the
+stdio contract is what keeps that boundary a single, auditable seam. A direct
+call would read as removing a pointless hop.
+
## Verification
Run the global gate in `commit-and-quality.md`, then the scoped bridge checks;
diff --git a/.claude/rules/code-style.md b/.claude/rules/code-style.md
index 5c61f51c..fec18d72 100644
--- a/.claude/rules/code-style.md
+++ b/.claude/rules/code-style.md
@@ -38,3 +38,20 @@ shared schema is the source of truth for its runtime constraints, inferred
type, and defaults; do not create parallel interfaces or hand-written
validators for the same contract. Pure cross-layer schemas belong in
`src/shared/schemas/`; host-specific validation stays in its owning layer.
+
+## Comments Describe What Exists
+
+A comment in the present tense is a claim about the current code, and readers
+act on it. Describe an intended-but-unwritten consumer in the conditional, or
+as a `TODO`, and say plainly that nothing does it yet.
+
+This matters most for comments that assert a safety property. Two distinct
+bugs shipped behind such comments: a writer documented a "backstop" that
+reported failures which nothing reported, and a socket wedged silently
+forever; and a getter pair was documented as being read by a wiring layer that
+decided when to reconnect, when the only readers were tests. In both cases the
+comment was the reason no one looked.
+
+When a guard's justification depends on a case, check that it covers every
+case the code now reaches — a rationale that was true when written and is
+false for a later-added branch argues for the bug.
diff --git a/.github/workflows/flatpak.yml b/.github/workflows/flatpak.yml
index f7ca61c0..a200de88 100644
--- a/.github/workflows/flatpak.yml
+++ b/.github/workflows/flatpak.yml
@@ -377,13 +377,26 @@ jobs:
from http.server import BaseHTTPRequestHandler, HTTPServer
from pathlib import Path
- body = b'{"nonce":"AbCdEfGhIjKlMnOpQrStUv"}'
+ discovery_body = (
+ b'{"app":"motrix-bridge","apiVersion":1,'
+ b'"instanceId":"flatpak-smoke","appVersion":"0.0.0-ci"}'
+ )
+ nonce_body = b'{"nonce":"AbCdEfGhIjKlMnOpQrStUv"}'
class Handler(BaseHTTPRequestHandler):
def do_GET(self):
- if self.path != '/nonce':
+ if self.path != '/discovery':
self.send_error(404)
return
+ self.send_json(discovery_body)
+
+ def do_POST(self):
+ if self.path != '/nonce' or self.headers.get('X-Motrix-Bridge') != '1':
+ self.send_error(404)
+ return
+ self.send_json(nonce_body)
+
+ def send_json(self, body):
self.send_response(200)
self.send_header('Content-Type', 'application/json')
self.send_header('Content-Length', str(len(body)))
@@ -396,6 +409,7 @@ jobs:
server = HTTPServer(('127.0.0.1', 55809), Handler)
Path(sys.argv[1]).write_text('ready', encoding='utf-8')
server.handle_request()
+ server.handle_request()
PY
nonce_server_pid=$!
@@ -414,7 +428,7 @@ jobs:
tr -d ' \n'
)"
test "$native_host_hex" = \
- '460000007b22616374696f6e223a227265717565737450616972222c22706f7274223a35353830392c226e6f6e6365223a224162436445664768496a4b6c4d6e4f70517253745576227d'
+ '5a0000007b22616374696f6e223a227265717565737450616972222c2270726f746f636f6c56657273696f6e223a312c22706f7274223a35353830392c226e6f6e6365223a224162436445664768496a4b6c4d6e4f70517253745576227d'
wait "$nonce_server_pid"
nonce_server_pid=''
diff --git a/THIRD_PARTY_LICENSES/rust-base64-LICENSE-APACHE b/THIRD_PARTY_LICENSES/rust-base64-LICENSE-APACHE
new file mode 100644
index 00000000..16fe87b0
--- /dev/null
+++ b/THIRD_PARTY_LICENSES/rust-base64-LICENSE-APACHE
@@ -0,0 +1,201 @@
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+END OF TERMS AND CONDITIONS
+
+APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+Copyright [yyyy] [name of copyright owner]
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
diff --git a/THIRD_PARTY_LICENSES/rust-base64-LICENSE-MIT b/THIRD_PARTY_LICENSES/rust-base64-LICENSE-MIT
new file mode 100644
index 00000000..7bc10f80
--- /dev/null
+++ b/THIRD_PARTY_LICENSES/rust-base64-LICENSE-MIT
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2015 Alice Maz
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/THIRD_PARTY_LICENSES/rust-block-buffer-LICENSE-APACHE b/THIRD_PARTY_LICENSES/rust-block-buffer-LICENSE-APACHE
new file mode 100644
index 00000000..78173fa2
--- /dev/null
+++ b/THIRD_PARTY_LICENSES/rust-block-buffer-LICENSE-APACHE
@@ -0,0 +1,201 @@
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+END OF TERMS AND CONDITIONS
+
+APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+Copyright [yyyy] [name of copyright owner]
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
diff --git a/THIRD_PARTY_LICENSES/rust-block-buffer-LICENSE-MIT b/THIRD_PARTY_LICENSES/rust-block-buffer-LICENSE-MIT
new file mode 100644
index 00000000..502cee6e
--- /dev/null
+++ b/THIRD_PARTY_LICENSES/rust-block-buffer-LICENSE-MIT
@@ -0,0 +1,25 @@
+Copyright (c) 2018-2019 The RustCrypto Project Developers
+
+Permission is hereby granted, free of charge, to any
+person obtaining a copy of this software and associated
+documentation files (the "Software"), to deal in the
+Software without restriction, including without
+limitation the rights to use, copy, modify, merge,
+publish, distribute, sublicense, and/or sell copies of
+the Software, and to permit persons to whom the Software
+is furnished to do so, subject to the following
+conditions:
+
+The above copyright notice and this permission notice
+shall be included in all copies or substantial portions
+of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
+ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
+TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
+SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
+IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+DEALINGS IN THE SOFTWARE.
diff --git a/THIRD_PARTY_LICENSES/rust-cfg-if-LICENSE-MIT b/THIRD_PARTY_LICENSES/rust-cfg-if-LICENSE-MIT
new file mode 100644
index 00000000..39e0ed66
--- /dev/null
+++ b/THIRD_PARTY_LICENSES/rust-cfg-if-LICENSE-MIT
@@ -0,0 +1,25 @@
+Copyright (c) 2014 Alex Crichton
+
+Permission is hereby granted, free of charge, to any
+person obtaining a copy of this software and associated
+documentation files (the "Software"), to deal in the
+Software without restriction, including without
+limitation the rights to use, copy, modify, merge,
+publish, distribute, sublicense, and/or sell copies of
+the Software, and to permit persons to whom the Software
+is furnished to do so, subject to the following
+conditions:
+
+The above copyright notice and this permission notice
+shall be included in all copies or substantial portions
+of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
+ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
+TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
+SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
+IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+DEALINGS IN THE SOFTWARE.
diff --git a/THIRD_PARTY_LICENSES/rust-cpufeatures-LICENSE-MIT b/THIRD_PARTY_LICENSES/rust-cpufeatures-LICENSE-MIT
new file mode 100644
index 00000000..0cd648f7
--- /dev/null
+++ b/THIRD_PARTY_LICENSES/rust-cpufeatures-LICENSE-MIT
@@ -0,0 +1,25 @@
+Copyright (c) 2020-2025 The RustCrypto Project Developers
+
+Permission is hereby granted, free of charge, to any
+person obtaining a copy of this software and associated
+documentation files (the "Software"), to deal in the
+Software without restriction, including without
+limitation the rights to use, copy, modify, merge,
+publish, distribute, sublicense, and/or sell copies of
+the Software, and to permit persons to whom the Software
+is furnished to do so, subject to the following
+conditions:
+
+The above copyright notice and this permission notice
+shall be included in all copies or substantial portions
+of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
+ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
+TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
+SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
+IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+DEALINGS IN THE SOFTWARE.
diff --git a/THIRD_PARTY_LICENSES/rust-crypto-common-LICENSE-MIT b/THIRD_PARTY_LICENSES/rust-crypto-common-LICENSE-MIT
new file mode 100644
index 00000000..efb0b5f8
--- /dev/null
+++ b/THIRD_PARTY_LICENSES/rust-crypto-common-LICENSE-MIT
@@ -0,0 +1,25 @@
+Copyright (c) 2021 RustCrypto Developers
+
+Permission is hereby granted, free of charge, to any
+person obtaining a copy of this software and associated
+documentation files (the "Software"), to deal in the
+Software without restriction, including without
+limitation the rights to use, copy, modify, merge,
+publish, distribute, sublicense, and/or sell copies of
+the Software, and to permit persons to whom the Software
+is furnished to do so, subject to the following
+conditions:
+
+The above copyright notice and this permission notice
+shall be included in all copies or substantial portions
+of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
+ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
+TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
+SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
+IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+DEALINGS IN THE SOFTWARE.
diff --git a/THIRD_PARTY_LICENSES/rust-digest-LICENSE-MIT b/THIRD_PARTY_LICENSES/rust-digest-LICENSE-MIT
new file mode 100644
index 00000000..8dcb85b3
--- /dev/null
+++ b/THIRD_PARTY_LICENSES/rust-digest-LICENSE-MIT
@@ -0,0 +1,25 @@
+Copyright (c) 2017 Artyom Pavlov
+
+Permission is hereby granted, free of charge, to any
+person obtaining a copy of this software and associated
+documentation files (the "Software"), to deal in the
+Software without restriction, including without
+limitation the rights to use, copy, modify, merge,
+publish, distribute, sublicense, and/or sell copies of
+the Software, and to permit persons to whom the Software
+is furnished to do so, subject to the following
+conditions:
+
+The above copyright notice and this permission notice
+shall be included in all copies or substantial portions
+of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
+ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
+TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
+SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
+IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+DEALINGS IN THE SOFTWARE.
diff --git a/THIRD_PARTY_LICENSES/rust-generic-array-LICENSE-MIT b/THIRD_PARTY_LICENSES/rust-generic-array-LICENSE-MIT
new file mode 100644
index 00000000..6d318946
--- /dev/null
+++ b/THIRD_PARTY_LICENSES/rust-generic-array-LICENSE-MIT
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2015 Bartłomiej Kamiński
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
\ No newline at end of file
diff --git a/THIRD_PARTY_LICENSES/rust-hkdf-LICENSE-APACHE b/THIRD_PARTY_LICENSES/rust-hkdf-LICENSE-APACHE
new file mode 100644
index 00000000..53b7ccd8
--- /dev/null
+++ b/THIRD_PARTY_LICENSES/rust-hkdf-LICENSE-APACHE
@@ -0,0 +1,201 @@
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+END OF TERMS AND CONDITIONS
+
+APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+Copyright [yyyy] [name of copyright owner]
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
\ No newline at end of file
diff --git a/THIRD_PARTY_LICENSES/rust-hkdf-LICENSE-MIT b/THIRD_PARTY_LICENSES/rust-hkdf-LICENSE-MIT
new file mode 100644
index 00000000..c0d07816
--- /dev/null
+++ b/THIRD_PARTY_LICENSES/rust-hkdf-LICENSE-MIT
@@ -0,0 +1,26 @@
+Copyright (c) 2015-2018 Vlad Filippov
+Copyright (c) 2018-2021 RustCrypto Developers
+
+Permission is hereby granted, free of charge, to any
+person obtaining a copy of this software and associated
+documentation files (the "Software"), to deal in the
+Software without restriction, including without
+limitation the rights to use, copy, modify, merge,
+publish, distribute, sublicense, and/or sell copies of
+the Software, and to permit persons to whom the Software
+is furnished to do so, subject to the following
+conditions:
+
+The above copyright notice and this permission notice
+shall be included in all copies or substantial portions
+of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
+ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
+TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
+SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
+IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+DEALINGS IN THE SOFTWARE.
diff --git a/THIRD_PARTY_LICENSES/rust-libc-LICENSE-MIT b/THIRD_PARTY_LICENSES/rust-libc-LICENSE-MIT
new file mode 100644
index 00000000..f4095b2f
--- /dev/null
+++ b/THIRD_PARTY_LICENSES/rust-libc-LICENSE-MIT
@@ -0,0 +1,25 @@
+Copyright (c) The Rust Project Developers
+
+Permission is hereby granted, free of charge, to any
+person obtaining a copy of this software and associated
+documentation files (the "Software"), to deal in the
+Software without restriction, including without
+limitation the rights to use, copy, modify, merge,
+publish, distribute, sublicense, and/or sell copies of
+the Software, and to permit persons to whom the Software
+is furnished to do so, subject to the following
+conditions:
+
+The above copyright notice and this permission notice
+shall be included in all copies or substantial portions
+of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
+ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
+TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
+SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
+IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+DEALINGS IN THE SOFTWARE.
diff --git a/THIRD_PARTY_LICENSES/rust-sha2-LICENSE-MIT b/THIRD_PARTY_LICENSES/rust-sha2-LICENSE-MIT
new file mode 100644
index 00000000..66cf7556
--- /dev/null
+++ b/THIRD_PARTY_LICENSES/rust-sha2-LICENSE-MIT
@@ -0,0 +1,27 @@
+Copyright (c) 2006-2009 Graydon Hoare
+Copyright (c) 2009-2013 Mozilla Foundation
+Copyright (c) 2016 Artyom Pavlov
+
+Permission is hereby granted, free of charge, to any
+person obtaining a copy of this software and associated
+documentation files (the "Software"), to deal in the
+Software without restriction, including without
+limitation the rights to use, copy, modify, merge,
+publish, distribute, sublicense, and/or sell copies of
+the Software, and to permit persons to whom the Software
+is furnished to do so, subject to the following
+conditions:
+
+The above copyright notice and this permission notice
+shall be included in all copies or substantial portions
+of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
+ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
+TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
+SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
+IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+DEALINGS IN THE SOFTWARE.
diff --git a/THIRD_PARTY_LICENSES/rust-subtle-LICENSE b/THIRD_PARTY_LICENSES/rust-subtle-LICENSE
new file mode 100644
index 00000000..9e2751f8
--- /dev/null
+++ b/THIRD_PARTY_LICENSES/rust-subtle-LICENSE
@@ -0,0 +1,29 @@
+Copyright (c) 2016-2017 Isis Agora Lovecruft, Henry de Valence. All rights reserved.
+Copyright (c) 2016-2024 Isis Agora Lovecruft. All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are
+met:
+
+1. Redistributions of source code must retain the above copyright
+notice, this list of conditions and the following disclaimer.
+
+2. Redistributions in binary form must reproduce the above copyright
+notice, this list of conditions and the following disclaimer in the
+documentation and/or other materials provided with the distribution.
+
+3. Neither the name of the copyright holder nor the names of its
+contributors may be used to endorse or promote products derived from
+this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
+IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
+TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/THIRD_PARTY_LICENSES/rust-typenum-LICENSE-APACHE b/THIRD_PARTY_LICENSES/rust-typenum-LICENSE-APACHE
new file mode 100644
index 00000000..4bf355c3
--- /dev/null
+++ b/THIRD_PARTY_LICENSES/rust-typenum-LICENSE-APACHE
@@ -0,0 +1,201 @@
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+END OF TERMS AND CONDITIONS
+
+APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+Copyright 2014 Paho Lurie-Gregg
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
\ No newline at end of file
diff --git a/THIRD_PARTY_LICENSES/rust-typenum-LICENSE-MIT b/THIRD_PARTY_LICENSES/rust-typenum-LICENSE-MIT
new file mode 100644
index 00000000..e567a4d2
--- /dev/null
+++ b/THIRD_PARTY_LICENSES/rust-typenum-LICENSE-MIT
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2014 Paho Lurie-Gregg
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/THIRD_PARTY_LICENSES/rust-version_check-LICENSE-MIT b/THIRD_PARTY_LICENSES/rust-version_check-LICENSE-MIT
new file mode 100644
index 00000000..dfc0e73b
--- /dev/null
+++ b/THIRD_PARTY_LICENSES/rust-version_check-LICENSE-MIT
@@ -0,0 +1,19 @@
+The MIT License (MIT)
+Copyright (c) 2017-2018 Sergio Benitez
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of
+this software and associated documentation files (the "Software"), to deal in
+the Software without restriction, including without limitation the rights to
+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
+the Software, and to permit persons to whom the Software is furnished to do so,
+subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
+FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
+COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/THIRD_PARTY_NOTICES.md b/THIRD_PARTY_NOTICES.md
index 9d37f781..d8ef3cb2 100644
--- a/THIRD_PARTY_NOTICES.md
+++ b/THIRD_PARTY_NOTICES.md
@@ -179,9 +179,19 @@ listed because they are included in the Windows native-host build.
| Crate | Version | SPDX license expression | Repository |
| --- | --- | --- | --- |
+| base64 | 0.22.1 | `MIT OR Apache-2.0` | <https://github.com/marshallpierce/rust-base64> |
+| block-buffer | 0.10.4 | `MIT OR Apache-2.0` | <https://github.com/RustCrypto/utils> |
+| cfg-if | 1.0.4 | `MIT OR Apache-2.0` | <https://github.com/rust-lang/cfg-if> |
+| cpufeatures | 0.2.17 | `MIT OR Apache-2.0` | <https://github.com/RustCrypto/utils> |
+| crypto-common | 0.1.7 | `MIT OR Apache-2.0` | <https://github.com/RustCrypto/traits> |
+| digest | 0.10.7 | `MIT OR Apache-2.0` | <https://github.com/RustCrypto/traits> |
+| generic-array | 0.14.7 | `MIT` | <https://github.com/fizyk20/generic-array> |
+| hkdf | 0.12.4 | `MIT OR Apache-2.0` | <https://github.com/RustCrypto/KDFs> |
+| hmac | 0.12.1 | `MIT OR Apache-2.0` | <https://github.com/RustCrypto/MACs> |
| home | 0.5.12 | `MIT OR Apache-2.0` | <https://github.com/rust-lang/cargo> |
| humantime | 2.4.0 | `MIT OR Apache-2.0` | <https://github.com/chronotope/humantime> |
| itoa | 1.0.18 | `MIT OR Apache-2.0` | <https://github.com/dtolnay/itoa> |
+| libc | 0.2.189 | `MIT OR Apache-2.0` | <https://github.com/rust-lang/libc> |
| memchr | 2.8.3 | `Unlicense OR MIT` | <https://github.com/BurntSushi/memchr> |
| proc-macro2 | 1.0.107 | `MIT OR Apache-2.0` | <https://github.com/dtolnay/proc-macro2> |
| quote | 1.0.47 | `MIT OR Apache-2.0` | <https://github.com/dtolnay/quote> |
@@ -189,8 +199,12 @@ listed because they are included in the Windows native-host build.
| serde_core | 1.0.229 | `MIT OR Apache-2.0` | <https://github.com/serde-rs/serde> |
| serde_derive | 1.0.229 | `MIT OR Apache-2.0` | <https://github.com/serde-rs/serde> |
| serde_json | 1.0.151 | `MIT OR Apache-2.0` | <https://github.com/serde-rs/json> |
+| sha2 | 0.10.9 | `MIT OR Apache-2.0` | <https://github.com/RustCrypto/hashes> |
+| subtle | 2.6.1 | `BSD-3-Clause` | <https://github.com/dalek-cryptography/subtle> |
| syn | 3.0.3 | `MIT OR Apache-2.0` | <https://github.com/dtolnay/syn> |
+| typenum | 1.20.1 | `MIT OR Apache-2.0` | <https://github.com/paholg/typenum> |
| unicode-ident | 1.0.24 | `(MIT OR Apache-2.0) AND Unicode-3.0` | <https://github.com/dtolnay/unicode-ident> |
+| version_check | 0.9.5 | `MIT/Apache-2.0` | <https://github.com/SergioBenitez/version_check> |
| windows-link | 0.2.1 | `MIT OR Apache-2.0` | <https://github.com/microsoft/windows-rs> |
| windows-sys | 0.61.2 | `MIT OR Apache-2.0` | <https://github.com/microsoft/windows-rs> |
| zmij | 1.0.23 | `MIT` | <https://github.com/dtolnay/zmij> |
@@ -199,13 +213,30 @@ Each license file below is copied byte-for-byte from a locked crate source.
Common texts are reused only where the license terms are the same;
crate-specific notices are preserved separately:
+- `THIRD_PARTY_LICENSES/rust-base64-LICENSE-APACHE`
+- `THIRD_PARTY_LICENSES/rust-base64-LICENSE-MIT`
+- `THIRD_PARTY_LICENSES/rust-block-buffer-LICENSE-APACHE`
+- `THIRD_PARTY_LICENSES/rust-block-buffer-LICENSE-MIT`
+- `THIRD_PARTY_LICENSES/rust-cfg-if-LICENSE-MIT`
- `THIRD_PARTY_LICENSES/rust-common-LICENSE-APACHE`
- `THIRD_PARTY_LICENSES/rust-common-LICENSE-MIT`
+- `THIRD_PARTY_LICENSES/rust-cpufeatures-LICENSE-MIT`
+- `THIRD_PARTY_LICENSES/rust-crypto-common-LICENSE-MIT`
+- `THIRD_PARTY_LICENSES/rust-digest-LICENSE-MIT`
+- `THIRD_PARTY_LICENSES/rust-generic-array-LICENSE-MIT`
+- `THIRD_PARTY_LICENSES/rust-hkdf-LICENSE-APACHE`
+- `THIRD_PARTY_LICENSES/rust-hkdf-LICENSE-MIT`
- `THIRD_PARTY_LICENSES/rust-humantime-LICENSE-MIT`
+- `THIRD_PARTY_LICENSES/rust-libc-LICENSE-MIT`
- `THIRD_PARTY_LICENSES/rust-memchr-COPYING`
- `THIRD_PARTY_LICENSES/rust-memchr-LICENSE-MIT`
- `THIRD_PARTY_LICENSES/rust-memchr-UNLICENSE`
+- `THIRD_PARTY_LICENSES/rust-sha2-LICENSE-MIT`
+- `THIRD_PARTY_LICENSES/rust-subtle-LICENSE`
+- `THIRD_PARTY_LICENSES/rust-typenum-LICENSE-APACHE`
+- `THIRD_PARTY_LICENSES/rust-typenum-LICENSE-MIT`
- `THIRD_PARTY_LICENSES/rust-unicode-ident-LICENSE-UNICODE`
+- `THIRD_PARTY_LICENSES/rust-version_check-LICENSE-MIT`
- `THIRD_PARTY_LICENSES/rust-windows-rs-LICENSE-MIT`
---
diff --git a/THIRD_PARTY_NOTICES.zh-CN.md b/THIRD_PARTY_NOTICES.zh-CN.md
index 3b58c1ba..cc261c5d 100644
--- a/THIRD_PARTY_NOTICES.zh-CN.md
+++ b/THIRD_PARTY_NOTICES.zh-CN.md
@@ -155,9 +155,19 @@ Windows native-host 构建会包含它们。
| Crate | 版本 | SPDX 许可证表达式 | 源码仓库 |
| --- | --- | --- | --- |
+| base64 | 0.22.1 | `MIT OR Apache-2.0` | <https://github.com/marshallpierce/rust-base64> |
+| block-buffer | 0.10.4 | `MIT OR Apache-2.0` | <https://github.com/RustCrypto/utils> |
+| cfg-if | 1.0.4 | `MIT OR Apache-2.0` | <https://github.com/rust-lang/cfg-if> |
+| cpufeatures | 0.2.17 | `MIT OR Apache-2.0` | <https://github.com/RustCrypto/utils> |
+| crypto-common | 0.1.7 | `MIT OR Apache-2.0` | <https://github.com/RustCrypto/traits> |
+| digest | 0.10.7 | `MIT OR Apache-2.0` | <https://github.com/RustCrypto/traits> |
+| generic-array | 0.14.7 | `MIT` | <https://github.com/fizyk20/generic-array> |
+| hkdf | 0.12.4 | `MIT OR Apache-2.0` | <https://github.com/RustCrypto/KDFs> |
+| hmac | 0.12.1 | `MIT OR Apache-2.0` | <https://github.com/RustCrypto/MACs> |
| home | 0.5.12 | `MIT OR Apache-2.0` | <https://github.com/rust-lang/cargo> |
| humantime | 2.4.0 | `MIT OR Apache-2.0` | <https://github.com/chronotope/humantime> |
| itoa | 1.0.18 | `MIT OR Apache-2.0` | <https://github.com/dtolnay/itoa> |
+| libc | 0.2.189 | `MIT OR Apache-2.0` | <https://github.com/rust-lang/libc> |
| memchr | 2.8.3 | `Unlicense OR MIT` | <https://github.com/BurntSushi/memchr> |
| proc-macro2 | 1.0.107 | `MIT OR Apache-2.0` | <https://github.com/dtolnay/proc-macro2> |
| quote | 1.0.47 | `MIT OR Apache-2.0` | <https://github.com/dtolnay/quote> |
@@ -165,8 +175,12 @@ Windows native-host 构建会包含它们。
| serde_core | 1.0.229 | `MIT OR Apache-2.0` | <https://github.com/serde-rs/serde> |
| serde_derive | 1.0.229 | `MIT OR Apache-2.0` | <https://github.com/serde-rs/serde> |
| serde_json | 1.0.151 | `MIT OR Apache-2.0` | <https://github.com/serde-rs/json> |
+| sha2 | 0.10.9 | `MIT OR Apache-2.0` | <https://github.com/RustCrypto/hashes> |
+| subtle | 2.6.1 | `BSD-3-Clause` | <https://github.com/dalek-cryptography/subtle> |
| syn | 3.0.3 | `MIT OR Apache-2.0` | <https://github.com/dtolnay/syn> |
+| typenum | 1.20.1 | `MIT OR Apache-2.0` | <https://github.com/paholg/typenum> |
| unicode-ident | 1.0.24 | `(MIT OR Apache-2.0) AND Unicode-3.0` | <https://github.com/dtolnay/unicode-ident> |
+| version_check | 0.9.5 | `MIT/Apache-2.0` | <https://github.com/SergioBenitez/version_check> |
| windows-link | 0.2.1 | `MIT OR Apache-2.0` | <https://github.com/microsoft/windows-rs> |
| windows-sys | 0.61.2 | `MIT OR Apache-2.0` | <https://github.com/microsoft/windows-rs> |
| zmij | 1.0.23 | `MIT` | <https://github.com/dtolnay/zmij> |
@@ -174,13 +188,30 @@ Windows native-host 构建会包含它们。
下列许可证文件均从锁定版本的 crate 源码逐字节复制。仅当许可证条款一致时
复用通用文本;包含特定归属声明或附加条款的文件会单独保留:
+- `THIRD_PARTY_LICENSES/rust-base64-LICENSE-APACHE`
+- `THIRD_PARTY_LICENSES/rust-base64-LICENSE-MIT`
+- `THIRD_PARTY_LICENSES/rust-block-buffer-LICENSE-APACHE`
+- `THIRD_PARTY_LICENSES/rust-block-buffer-LICENSE-MIT`
+- `THIRD_PARTY_LICENSES/rust-cfg-if-LICENSE-MIT`
- `THIRD_PARTY_LICENSES/rust-common-LICENSE-APACHE`
- `THIRD_PARTY_LICENSES/rust-common-LICENSE-MIT`
+- `THIRD_PARTY_LICENSES/rust-cpufeatures-LICENSE-MIT`
+- `THIRD_PARTY_LICENSES/rust-crypto-common-LICENSE-MIT`
+- `THIRD_PARTY_LICENSES/rust-digest-LICENSE-MIT`
+- `THIRD_PARTY_LICENSES/rust-generic-array-LICENSE-MIT`
+- `THIRD_PARTY_LICENSES/rust-hkdf-LICENSE-APACHE`
+- `THIRD_PARTY_LICENSES/rust-hkdf-LICENSE-MIT`
- `THIRD_PARTY_LICENSES/rust-humantime-LICENSE-MIT`
+- `THIRD_PARTY_LICENSES/rust-libc-LICENSE-MIT`
- `THIRD_PARTY_LICENSES/rust-memchr-COPYING`
- `THIRD_PARTY_LICENSES/rust-memchr-LICENSE-MIT`
- `THIRD_PARTY_LICENSES/rust-memchr-UNLICENSE`
+- `THIRD_PARTY_LICENSES/rust-sha2-LICENSE-MIT`
+- `THIRD_PARTY_LICENSES/rust-subtle-LICENSE`
+- `THIRD_PARTY_LICENSES/rust-typenum-LICENSE-APACHE`
+- `THIRD_PARTY_LICENSES/rust-typenum-LICENSE-MIT`
- `THIRD_PARTY_LICENSES/rust-unicode-ident-LICENSE-UNICODE`
+- `THIRD_PARTY_LICENSES/rust-version_check-LICENSE-MIT`
- `THIRD_PARTY_LICENSES/rust-windows-rs-LICENSE-MIT`
---
diff --git a/docs/bridge-pairing-protocol-vectors.json b/docs/bridge-pairing-protocol-vectors.json
new file mode 100644
index 00000000..d25dc5ff
--- /dev/null
+++ b/docs/bridge-pairing-protocol-vectors.json
@@ -0,0 +1,190 @@
+{
+ "description": "Normative MBP1 cross-implementation test vectors (rev 2, post crypto-review round 1). Generated per docs/bridge-pairing-protocol.md. The generic SPAKE2 core was validated against all four RFC 9382 Appendix B P-256 vectors before generation. All byte strings are lowercase hex.",
+ "generator": {
+ "library": "@noble/curves 2.0.1, @noble/hashes 2.0.1, node:crypto AES-256-GCM",
+ "coreValidation": "RFC 9382 Appendix B vectors #1-#4 (P-256) reproduced exactly"
+ },
+ "spake2": [
+ {
+ "name": "first-pair, chromium, nm ticket present",
+ "inputs": {
+ "codeDisplayed": "MTX7-K2Q9",
+ "codeNormalized": "MTX7K2Q9",
+ "pairNonce": "vec-nonce-8f3a1c5e7b2d4a90",
+ "browser": "chromium",
+ "verifiedOrigin": "chrome-extension://ibpkjhgpbidfmbmomagmldcdlpbmchgi",
+ "claimedExtensionId": "ibpkjhgpbidfmbmomagmldcdlpbmchgi",
+ "clientInstallationId": "5f0b6f9e-8a3d-4c5e-9b2a-7d1e4f6a8c0b",
+ "instanceId": "0d9c2b7a-4e6f-4a1b-8c3d-2e5f7a9b1c4d",
+ "x": "0338620bd18bc1b03c41f70e111cc55da580e334813857a12a27217e1f268561",
+ "y": "08bb7bfb987c3ebbfcdc49fd2a715c71a395daa30da45b3e5856d34c174b31fd",
+ "bindingSeed": "7f1d3b5a7c9e0f2b4d6a8c0e1f3b5d7a9c0e2f4b6d8a0c2e4f6a8b0d1e3f5a7c"
+ },
+ "intermediate": {
+ "scryptOutput": "fc4d0c833ae57e13e602333e0c7e3bc5aece387ef1ed853edccbf8059d334fa5bd11e785efe4a7456a91143c40ec9947b6a4387dc007af234179d41dd69e0f7b",
+ "w": "030955c2809b06563fa6991f9657d84ca270df221d810fdeab4a02e386f3a7d6",
+ "aId": "09000000000000004d4250312f412f763108000000000000006368726f6d69756d33000000000000006368726f6d652d657874656e73696f6e3a2f2f6962706b6a686770626964666d626d6f6d61676d6c6463646c70626d6368676920000000000000006962706b6a686770626964666d626d6f6d61676d6c6463646c70626d63686769240000000000000035663062366639652d386133642d346335652d396232612d376431653466366138633062",
+ "bId": "09000000000000004d4250312f422f76310d000000000000006d6f747269782d627269646765240000000000000030643963326237612d346536662d346131622d386333642d326535663761396231633464",
+ "bindingPub": "fd64b13bcbdd3fcaaac3953f6212c769495003162d404066e119f5fcc1551173",
+ "ticketDigest": "6cbcc5cad1addb2dd6ebb6b7390fefd289a8979b684d7fee97bd003ecc8a11dd",
+ "aad": "000000011a000000000000007665632d6e6f6e63652d386633613163356537623264346139302000000000000000fd64b13bcbdd3fcaaac3953f6212c769495003162d404066e119f5fcc155117320000000000000006cbcc5cad1addb2dd6ebb6b7390fefd289a8979b684d7fee97bd003ecc8a11dd"
+ },
+ "expected": {
+ "pA": "4376c5f717876c87d7c8699e41da8e91a08a31834489d537e299649415b0d272",
+ "pB": "138d71989e96d8871d8e9dcfdf0d8d0bc540b77c301c5b9753b65b2fb69588f7",
+ "K": "6b35b41137942fafeb209fb808786b24f8c952b9c1a69754b5df3ac2038b42b4",
+ "TT": "b00000000000000009000000000000004d4250312f412f763108000000000000006368726f6d69756d33000000000000006368726f6d652d657874656e73696f6e3a2f2f6962706b6a686770626964666d626d6f6d61676d6c6463646c70626d6368676920000000000000006962706b6a686770626964666d626d6f6d61676d6c6463646c70626d63686769240000000000000035663062366639652d386133642d346335652d396232612d376431653466366138633062520000000000000009000000000000004d4250312f422f76310d000000000000006d6f747269782d627269646765240000000000000030643963326237612d346536662d346131622d386333642d32653566376139623163346420000000000000004376c5f717876c87d7c8699e41da8e91a08a31834489d537e299649415b0d2722000000000000000138d71989e96d8871d8e9dcfdf0d8d0bc540b77c301c5b9753b65b2fb69588f720000000000000006b35b41137942fafeb209fb808786b24f8c952b9c1a69754b5df3ac2038b42b42000000000000000030955c2809b06563fa6991f9657d84ca270df221d810fdeab4a02e386f3a7d6",
+ "Ke": "34b8bb82b3afda9adb6a4a6aa562e181",
+ "Ka": "2aa9c8b9003fd06f54906f2287378107",
+ "KcA": "a7c63c598c280187336f7c6e2d1b54c9",
+ "KcB": "bcc1377e655fe466690e0960e297a211",
+ "cA": "66e8d23114d6717d08e48fc4d1fd1dd93186a82e31512f39bf07d41782b9182d",
+ "cB": "2261cb6da620f4982cf66cac8d38049dcfaff7d127fa255482830d9e6b73546c",
+ "ticketProof": "2d232ce6318a9bff5654dbf760d0091b20a78cfac56c6ca24178a197805d5ea658f1ca4a0a04cac8037a14d846a723a3f881d0212c560d03c2f888d3973f3502",
+ "trafficC2S": "248ff17bacfa39ebe2bbb851d552f9185924303c42a41da3f1ebbbfec70be692",
+ "trafficS2C": "b595581934dfe69513ed1b0814de366512bbb819d762d2a0338cc80683c361a2"
+ }
+ },
+ {
+ "name": "first-pair, same inputs, no nm ticket (AAD variant)",
+ "inputs": {
+ "note": "identical to vector 0 except nmTicket absent"
+ },
+ "intermediate": {
+ "aad": "000000011a000000000000007665632d6e6f6e63652d3866336131633565376232643461393000000000000000000000000000000000"
+ },
+ "expected": {
+ "TT": "b00000000000000009000000000000004d4250312f412f763108000000000000006368726f6d69756d33000000000000006368726f6d652d657874656e73696f6e3a2f2f6962706b6a686770626964666d626d6f6d61676d6c6463646c70626d6368676920000000000000006962706b6a686770626964666d626d6f6d61676d6c6463646c70626d63686769240000000000000035663062366639652d386133642d346335652d396232612d376431653466366138633062520000000000000009000000000000004d4250312f422f76310d000000000000006d6f747269782d627269646765240000000000000030643963326237612d346536662d346131622d386333642d32653566376139623163346420000000000000004376c5f717876c87d7c8699e41da8e91a08a31834489d537e299649415b0d2722000000000000000138d71989e96d8871d8e9dcfdf0d8d0bc540b77c301c5b9753b65b2fb69588f720000000000000006b35b41137942fafeb209fb808786b24f8c952b9c1a69754b5df3ac2038b42b42000000000000000030955c2809b06563fa6991f9657d84ca270df221d810fdeab4a02e386f3a7d6",
+ "KcA": "de6f99e25fc759c6450ffa20c68b9b09",
+ "KcB": "f4818bdb1c193105a143792e3afe2dd8",
+ "cA": "4f5b21aa75a995359c18c9ccfff2f73e376fc01a5a181b5ae8f493051bf47e25",
+ "cB": "46bcc0ed7aaa4c12dcd58ef27bd78b03287fdb89cb2d2dc0f22afbbe1ba8e985"
+ }
+ }
+ ],
+ "scryptW": {
+ "inputs": {
+ "codeNormalized": "MTX7K2Q9",
+ "pairNonce": "vec-nonce-8f3a1c5e7b2d4a90",
+ "params": {
+ "N": 16384,
+ "r": 8,
+ "p": 1,
+ "dkLen": 64
+ }
+ },
+ "expected": {
+ "scryptOutput": "fc4d0c833ae57e13e602333e0c7e3bc5aece387ef1ed853edccbf8059d334fa5bd11e785efe4a7456a91143c40ec9947b6a4387dc007af234179d41dd69e0f7b",
+ "w": "030955c2809b06563fa6991f9657d84ca270df221d810fdeab4a02e386f3a7d6"
+ }
+ },
+ "reconnect": {
+ "inputs": {
+ "mutualKey": "a3b1c5d7e9f0a2b4c6d8e0f1a3b5c7d9e1f0a2c4b6d8e0f2a4b6c8d0e2f4a6b8",
+ "credentialId": "9e8d7c6b-5a49-4838-a2b1-c0d9e8f7a6b5",
+ "browser": "chromium",
+ "verifiedOrigin": "chrome-extension://ibpkjhgpbidfmbmomagmldcdlpbmchgi",
+ "instanceId": "0d9c2b7a-4e6f-4a1b-8c3d-2e5f7a9b1c4d",
+ "S": "5a1b2c3d4e5f60718293a4b5c6d7e8f90a1b2c3d4e5f60718293a4b5c6d7e8f9",
+ "C": "0f1e2d3c4b5a69788796a5b4c3d2e1f00f1e2d3c4b5a69788796a5b4c3d2e1f0"
+ },
+ "expected": {
+ "RT": "11000000000000004d4250312f7265636f6e6e6563742f763100000001240000000000000039653864376336622d356134392d343833382d613262312d63306439653866376136623508000000000000006368726f6d69756d33000000000000006368726f6d652d657874656e73696f6e3a2f2f6962706b6a686770626964666d626d6f6d61676d6c6463646c70626d63686769240000000000000030643963326237612d346536662d346131622d386333642d326535663761396231633464",
+ "macClient": "411e75c3111b2b01a7b2026483c8eca60b5774ff865c9e1710abb4cd2092223f",
+ "macServer": "cb9e88d0c47c78383ebbc298440f4d7e22b27ba745815c793b6c213eca49e410",
+ "trafficC2S": "e9869b90256c460b6aa4db4db38c9f9943c3de7ff3be4ff44e8b818c3b42155b",
+ "trafficS2C": "efd391ff3b3078d3b066bfd4dd816d6f17b90b8c04e9605474e82f52c427e057"
+ }
+ },
+ "nmTicket": {
+ "inputs": {
+ "v": 1,
+ "localToken": "vector-local-token-0123456789abcdef",
+ "serverGeneration": "3c2b1a09-8f7e-4d6c-b5a4-93827160f0e1",
+ "browser": "chromium",
+ "callerId": "ibpkjhgpbidfmbmomagmldcdlpbmchgi",
+ "exp": 1755600000,
+ "bindingPub": "fd64b13bcbdd3fcaaac3953f6212c769495003162d404066e119f5fcc1551173"
+ },
+ "expected": {
+ "ticketKey": "9238e0993a8d4f79617696cbb627e23b26e3ab0c84a7258cf2b7d0e8889f2169",
+ "canonical": "10000000000000006d6270312d6174746573746174696f6e0000000100000001240000000000000033633262316130392d386637652d346436632d623561342d39333832373136306630653108000000000000006368726f6d69756d20000000000000006962706b6a686770626964666d626d6f6d61676d6c6463646c70626d636867690000000068a454802000000000000000fd64b13bcbdd3fcaaac3953f6212c769495003162d404066e119f5fcc1551173",
+ "mac": "df162b79b6b77417d2ffbace670fb5f36d91cac485e982a575c1ff0698355f6d",
+ "ticketDigest": "6cbcc5cad1addb2dd6ebb6b7390fefd289a8979b684d7fee97bd003ecc8a11dd"
+ },
+ "mustReject": [
+ {
+ "case": "bindingPub = any small-order / torsion point encoding (full set)",
+ "bindingPub": [
+ "0100000000000000000000000000000000000000000000000000000000000000",
+ "ecffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7f",
+ "0000000000000000000000000000000000000000000000000000000000000000",
+ "0000000000000000000000000000000000000000000000000000000000000080",
+ "c7176a703d4dd84fba3c0b760d10670f2a2053fa2c39ccc64ec7fd7792ac037a",
+ "c7176a703d4dd84fba3c0b760d10670f2a2053fa2c39ccc64ec7fd7792ac03fa",
+ "26e8958fc2b227b045c3f489f2ef98f0d5dfac05d3c63339b13802886d53fc05",
+ "26e8958fc2b227b045c3f489f2ef98f0d5dfac05d3c63339b13802886d53fc85"
+ ],
+ "reason": "every order-dividing-8 encoding rejected by §9.1 validation (identity, order-2, order-4, order-8)"
+ },
+ {
+ "case": "bindingPub = dirty (non-torsion-free) point",
+ "bindingPub": "98519eadf35b995233b51b5cd23e9cc5a28b639b5a4af0ec903cb960d81b7819",
+ "reason": "has a torsion component; rejected by the §9.1 torsion-free check"
+ },
+ {
+ "case": "ticketProof = (identity || 0) under bindingPub = identity",
+ "bindingPub": "0100000000000000000000000000000000000000000000000000000000000000",
+ "signature": "01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
+ "reason": "passes the bare verification equation for any message; stopped by key-level rejection of identity bindingPub"
+ },
+ {
+ "case": "ticketProof with S >= ell (S malleated by + ell)",
+ "signature": "2d232ce6318a9bff5654dbf760d0091b20a78cfac56c6ca24178a197805d5ea645c5c0a72467dc20da160c7b25a102b8f881d0212c560d03c2f888d3973f3512",
+ "reason": "RFC 8032 strict (zip215:false) rejects S >= ell"
+ },
+ {
+ "case": "ticketProof with a non-canonical R encoding (y = p)",
+ "signature": "edffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000",
+ "reason": "RFC 8032 strict rejects non-canonical point encodings"
+ },
+ {
+ "case": "any single wire field of the ticket (v, purpose, ticketProtocolVersion, serverGeneration, browser, callerId, exp, bindingPub, mac) modified in transit",
+ "reason": "ticketDigest over the parsed wire fields bound into the PAKE AAD (§6.4) desynchronizes key confirmation → fail closed"
+ }
+ ],
+ "note": "A torsion-tweaked proof (R=rB+T, S=r+k·a) by a signer who KNOWS bindingPriv is a conformance caveat of noble's cofactored equation, NOT a forgery, and is intentionally not asserted as rejected (spec §9.1)."
+ },
+ "envelope": {
+ "inputs": {
+ "keyC2S": "248ff17bacfa39ebe2bbb851d552f9185924303c42a41da3f1ebbbfec70be692",
+ "keyS2C": "b595581934dfe69513ed1b0814de366512bbb819d762d2a0338cc80683c361a2",
+ "aad": "MBP1/env/v1",
+ "plaintext0": "7b226a736f6e727063223a22322e30222c226964223a312c226d6574686f64223a226d6f747269782f696e697469616c697a65222c22706172616d73223a7b7d7d",
+ "plaintext1": "7b226a736f6e727063223a22322e30222c226964223a312c22726573756c74223a7b226f6b223a747275657d7d"
+ },
+ "expected": {
+ "frameC2S_seq0": "00000000000000003daa0ef6eebb730232c61a0e08a00e91b026e6dec7af011db8119962c7d928fdb78c5565c8c0e906868397da672a656826cd18aacd5e75dd768ac33387c6dd7ce5fea94332db95d7b5ceb265acedec4199",
+ "frameS2C_seq0": "0000000000000000191f552f87bb4ac78b464c2f07663454296bbed573e0e5c3d4fb22fb7f9a66a80033ac7966ed1a8f726e27c61c807f991ec6f85fb2b0e5f82d6e0c8879",
+ "frameC2S_seq1": "0000000000000001555f45a1e8cbdab1eb483bac32c47d48002b13be2c9f10d2c0b7a1a39896b932ff180a3acc5696d9461e9451e9253d611caa0d21dbe3d4b86ad01d7b82"
+ },
+ "mustReject": [
+ {
+ "case": "last ciphertext byte of frameC2S_seq0 XOR 0x01",
+ "reason": "gcm auth failure"
+ },
+ {
+ "case": "frameC2S_seq0 decrypted with the SAME key but dirTag 2",
+ "reason": "gcm auth failure (nonce direction tag); catches dirTag-ignoring implementations"
+ },
+ {
+ "case": "frameC2S_seq0 decrypted with the s2c key",
+ "reason": "gcm auth failure"
+ },
+ {
+ "case": "frameC2S_seq1 presented when expected seq is 0",
+ "reason": "strict sequence check"
+ }
+ ]
+ }
+}
diff --git a/docs/bridge-pairing-protocol.md b/docs/bridge-pairing-protocol.md
new file mode 100644
index 00000000..5bc6250c
--- /dev/null
+++ b/docs/bridge-pairing-protocol.md
@@ -0,0 +1,1162 @@
+# Motrix Bridge Pairing Protocol — MBP1
+
+Normative specification, version 1 (`protocolVersion = 1`).
+
+This document defines the wire contract for pairing and authenticating the
+Motrix browser extension against the Motrix bridge server. It fixes every
+cryptographic parameter at byte level. The words **MUST**, **MUST NOT**,
+**SHOULD**, and **MAY** are used as in RFC 2119 / RFC 8174.
+
+Status: **cryptographic-review gate satisfied** (six independent adversarial
+review rounds, all re-confirming 0 High; findings resolved, residual Low items
+tracked to implementation — see the Appendix C review log). Phase-A
+implementation may begin; the remaining Phase-A prerequisites in
+[§14](#14-review-and-implementation-gates) still apply.
+
+Related documents: [RFC 9382] (SPAKE2), [RFC 5869] (HKDF), [RFC 8032]
+(edwards25519 encoding), [RFC 7914] (scrypt), [RFC 4648] (base32 background;
+MBP1 uses the Crockford alphabet defined in §7). The MDXP application protocol
+is unchanged by MBP1 and is specified in the `@motrix/mdxp` package; the MBP1
+secure channel sits **below** MDXP.
+
+---
+
+## 1. Overview
+
+The Native-Messaging (NM) era authenticated the server implicitly: the
+WebSocket port came from `endpoint.json`, an owner-only (0600) file, so
+connecting to that port proved the peer was the user's own Motrix. Fixed
+candidate ports (16802–16806) remove that proof. MBP1 replaces it with:
+
+1. **First pair** — a code-entry balanced PAKE (SPAKE2, [RFC 9382]) whose
+ password is a short-lived pairing code **displayed by Motrix and typed by
+ the user into the extension**. A fake server has no dialog and no code, so
+ there is nothing for the user to type: first pair fails closed by
+ construction.
+2. **Reconnect** — mutual challenge–response over a long-lived symmetric
+ credential (`mutualKey`). No bearer token ever appears on the wire or in a
+ URL.
+3. **Secure channel** — every post-handshake frame in both directions is
+ wrapped in an AES-256-GCM envelope with strict sequence numbers. MDXP
+ payloads travel only inside this envelope.
+4. **NM attestation** — where Native Messaging works, the NM host mints a
+ one-shot ticket that proves *which* extension is calling, feeding the
+ `official / attested-non-official / unverified` identity tri-state shown in
+ the approval dialog.
+
+Roles: the **extension is party A** (initiator, uses point *M*), the **Motrix
+bridge server is party B** (responder, uses point *N*), exactly as prescribed
+by [RFC 9382] §3.1.
+
+### 1.1 What MBP1 does not defend against
+
+Stated so no reader over-reads the guarantee. Out of scope: same-UID local
+code (it can `ptrace` Motrix and read `storage.local`), root or raw-socket /
+eBPF-capable code, shared X11 input injection, a compromised browser. The
+attacker MBP1 must stop is a **co-resident different-UID user**: they can
+squat a loopback candidate port and actively connect or relay, but they cannot
+read another UID's 0600 files or passively intercept another UID's established
+loopback streams.
+
+A **transparent relay** (squat a port, forward one PAKE session frame-for-frame
+to the real Motrix) establishes a single end-to-end key it cannot read. The
+AEAD channel denies it plaintext, forgery, and tampering; what remains — its
+presence in the path, traffic sizes and timing, and being the port the
+extension pins — is an intrinsic residual of loopback port squatting and is
+documented, not claimed closed.
+
+---
+
+## 2. Notation and canonical encoding
+
+- `x ‖ y` — concatenation of byte strings.
+- `len64LE(s)` — the length of `s` in bytes as an **8-byte little-endian**
+ integer (matching [RFC 9382] §3.2).
+- `enc(s)` — `len64LE(s) ‖ s`. Unless stated otherwise, strings are encoded
+ as UTF-8; every string field in a canonical structure MUST be ASCII-only
+ and implementations MUST reject non-ASCII input in those fields.
+- `encU32BE(n)` / `encU64BE(n)` — 4-/8-byte big-endian unsigned integers.
+- `OS2IP(b)` — big-endian interpretation of byte string `b` as an integer.
+- `I2OSP(n, k)` — `n` as a `k`-byte big-endian string.
+- Base64 in JSON wire messages is **base64url without padding** ([RFC 4648]
+ §5). Decoders MUST reject padded or non-canonical input.
+- "Constant-time comparison" means a byte-wise comparison whose running time
+ does not depend on the position of the first differing byte.
+
+---
+
+## 3. Ciphersuite (fixed; no negotiation)
+
+MBP1 v1 supports exactly one ciphersuite. There is no negotiation and no
+downgrade path; a peer that cannot speak it fails the handshake.
+
+| Component | Choice |
+|---|---|
+| Group *G* | edwards25519 ([RFC 8032]); base point *P* = RFC 8032 base point; order `ℓ = 2^252 + 27742317777372353535851937790883648493`; cofactor `h = 8` |
+| Point encoding | 32-byte RFC 8032 compressed encoding for `pA`, `pB`, `K` |
+| PAKE | SPAKE2 ([RFC 9382]), ciphersuite SPAKE2-edwards25519-SHA256-HKDF-HMAC (Table 1 row 6) |
+| Hash | SHA-256 |
+| KDF | HKDF-SHA-256 ([RFC 5869]) |
+| MAC | HMAC-SHA-256 |
+| MHF (password→scalar) | scrypt ([RFC 7914]), `N=2^14, r=8, p=1, dkLen=64` |
+| AEAD | AES-256-GCM, 12-byte nonces, 16-byte tags |
+| Signature (ticket binding) | Ed25519 ([RFC 8032]) |
+
+**Fixed points** *M* and *N* are the edwards25519 constants from
+[RFC 9382] §6 (32-byte RFC 8032 encodings, hex):
+
+```
+M = d048032c6ea0b6d697ddc2e86bda85a33adac920f1bf18e1b0c6d166a5cecdaf
+N = d3bfb518f44f3430f29d0c92af503865a1ed3281dc69b35dd868ba85f886c4ab
+```
+
+**Implementation source.** Curve arithmetic, SPAKE2 composition, scrypt, and
+Ed25519 MUST come from bundled, independently audited libraries pinned at an
+**exact** version on the TypeScript side: **`@noble/[email protected]`** and
+**`@noble/[email protected]`** (the versions the normative test vectors were
+generated with). The Cure53 audit of September 2024 was performed at
+`@noble/curves` 1.6.0. **Pending confirmation before Phase-A release:** the
+maintainer review of the upstream diff from 1.6.0 to 2.0.1 that completes the
+audit basis for this pin has not yet been performed; the review log
+(Appendix C) records this status. Any version bump re-runs the full vector
+suite and updates this pin.
+WebCrypto X25519/Ed25519 MUST NOT be used: it requires Chrome 133 / Firefox
+130, while the extension supports Chrome 120+ / Firefox 121+ (see Appendix B).
+Symmetric primitives (AES-256-GCM, HKDF-SHA-256, HMAC-SHA-256) MAY use
+WebCrypto, which is universally available at those minimums. All secret
+comparisons MUST be constant-time. Scalar multiplication MUST be
+constant-time with respect to the scalar (noble-curves satisfies this).
+
+---
+
+## 4. Transport surfaces and ingress demultiplexing
+
+The bridge server listens on loopback, on the first free port of the candidate
+range **16802–16806** (falling back to an ephemeral port). Four surfaces are
+relevant to MBP1:
+
+| Surface | Method | Auth | Purpose |
+|---|---|---|---|
+| `/discovery` | `GET` | none | Probe hint: is something Motrix-shaped here, and which instance? |
+| `/nonce` | `POST` + header | none | One-shot pairing nonce issuance |
+| `/pair` | WS upgrade, `?nonce=` | MBP1 first pair | Code-entry PAKE pairing |
+| `/v1` | WS upgrade, no query credentials | MBP1 reconnect | Challenge–response session |
+
+**Demultiplexing is decided by route alone, before any nonce is consumed, any
+session object is created, or any dialog is queued.** `/pair` accepts only the
+MBP1 first-pair state machine; `/v1` accepts only the MBP1 reconnect state
+machine. There is no token-only mode, no `?token=` query parameter, and no
+legacy frame format to downgrade into. Connections on either route live in a
+pre-authentication table with hard deadlines and caps until MBP1 completes;
+they never enter the live-session map and cannot evict an authenticated
+session.
+
+**Both WebSocket routes require the `motrix-bridge.v1` subprotocol.** The
+client MUST offer it in `Sec-WebSocket-Protocol`; a request whose offered list
+does not include it is rejected with **401** before the route is examined, and
+before any nonce is consumed. This is a hard gate, not a hint: a client that
+omits it cannot reach either state machine.
+
+---
+
+### 4.1 `GET /discovery`
+
+Unauthenticated, replayable, **a hint and never a trust decision**. Response
+(`Cache-Control: no-store`):
+
+```json
+{ "app": "motrix-bridge", "apiVersion": 1,
+ "instanceId": "<persisted per-install UUID>", "appVersion": "2.0.0-beta.20",
+ "runtime": "electron",
+ "extensionPairing": { "protocol": "mbp1", "versions": [1] },
+ "applicationProtocols": { "mdxp": ["1.0"] } }
+```
+
+`instanceId` is a routing hint used to pick which candidate port to try first.
+The compatibility fields let an extension stop before pairing and explain an
+upgrade requirement, but remain unauthenticated hints: they MUST NOT select a
+legacy downgrade, grant trust, or replace post-authentication capability
+confirmation. Extensions MUST commit a port pin only after a
+mutually-authenticated MBP1 session on that port.
+
+### 4.2 `POST /nonce`
+
+Replaces the former `GET /nonce`; the GET route MUST be removed (respond 404).
+The request MUST carry the custom header `X-Motrix-Bridge: 1`; because the
+header makes the request non-simple, cross-origin web pages are blocked by the
+browser preflight (the server grants no CORS). Response:
+
+```json
+{ "nonce": "<one-shot opaque ASCII string>", "ttlSeconds": 60 }
+```
+
+Nonces are one-shot, expire after 60 seconds, are consumed only by `/pair`,
+and MUST NOT be persisted by any party. The server MUST cap outstanding nonces
+(default 32), apply a global issuance rate limit, and apply per-verified-origin
+quotas where an origin exists.
+
+### 4.3 Host-header validation
+
+While bound to loopback, every HTTP route and WebSocket upgrade MUST reject
+(403) any request whose `Host` is not exactly `127.0.0.1[:port]`,
+`localhost[:port]`, or `[::1][:port]`. This closes DNS rebinding. (The server
+shell binding non-loopback keeps its existing token + reverse-proxy model and
+is out of MBP1 scope.)
+
+---
+
+## 5. Extension identity tri-state
+
+The approval dialog MUST distinguish three identity states; proving *which*
+extension called is not the same as proving it is *official*:
+
+| State | Condition | UI |
+|---|---|---|
+| `official` | The proven caller identity — the Chromium verified `Origin` host, or the `callerId` inside a valid NM attestation ticket (§9) — appears on the immutable allowlist `src/shared/config/native-messaging-extensions.json` | May show Motrix branding |
+| `attested-non-official` | A valid ticket proves the exact caller ID, but that ID is not on the allowlist | Raw proven ID, no branding |
+| `unverified` | No attestation: any Firefox `/pair` without a ticket (a `moz-extension://<UUID>` origin cannot be mapped to a Gecko ID), and candidate-sweep peers | Warning styling, raw claimed ID |
+
+Rules:
+
+- "Official" is read **only** from the immutable allowlist — never from the
+ NM manifest set, which includes user-added registry IDs.
+- The verified origin comes from the WebSocket upgrade `Origin` header only —
+ never from query parameters or from self-reported message fields.
+- On Chromium, if the `Origin` host does not equal `claimedExtensionId`, the
+ server MUST reject the pairing. On Firefox, the `moz-extension://` origin
+ cannot be checked against the claimed Gecko ID; without a ticket the state
+ is `unverified`.
+- The verified origin is bound to the session, the credential principal, the
+ rate-limit keys, and the PAKE transcript (§6.4). Native local processes can
+ forge any `Origin` header; origin binding raises the bar only inside
+ browsers. The user-facing boundary remains the pairing code plus the
+ approval dialog, backed by global prompt caps that fake-origin rotation
+ cannot bypass.
+
+---
+
+## 6. First pair — code-entry SPAKE2
+
+### 6.1 Message flow
+
+All `/pair` messages before channel activation are single WebSocket **text**
+frames containing exactly one JSON object with a `type` discriminator. Binary
+fields are base64url. Unknown `type`, out-of-order messages, duplicate
+messages, oversized frames (> 16 KiB pre-authentication), or schema-invalid
+JSON MUST abort the connection with `protocolViolation`.
+
+```
+extension (A) Motrix (B)
+ | |
+ |-- pairHello ------------------------------>| validate nonce, origin,
+ | | ticket; queue approval
+ |<------------------------------- pairAccept | dialog (shows code)
+ | |
+ | user reads code in Motrix window|
+ | user types code into extension |
+ | |
+ |-- pakeA {pA} ----------------------------->|
+ |<----------------------------- pakeB {pB} |
+ |-- confirmA {cA, ticketProof?} ------------>| verify cA (+ proof)
+ |<----------------------------- confirmB {cB}|
+ | verify cB |
+ |============ AEAD channel active ===========|
+ |<------------------------- credentialOffer |
+ | persist to storage.local |
+ |-- credentialAck --------------------------->| commit durable
+ |<--------------------- credentialCommitted |
+ |============ MDXP initialize... ============|
+```
+
+#### `pairHello` (A→B)
+
+```json
+{ "type": "pairHello", "protocolVersion": 1,
+ "browser": "chromium" | "firefox",
+ "claimedExtensionId": "<store ID or Gecko ID>",
+ "clientInstallationId": "<UUIDv4 persisted in storage.local>",
+ "nmTicket": { ... }, // optional, §9
+ "ticketBindingKey": "<b64url 32-byte Ed25519 public key>" // required iff nmTicket present
+}
+```
+
+On receipt the server MUST, in order: validate the `?nonce=` (one-shot,
+unexpired) — an invalid nonce closes the socket before any further work;
+validate the Host header and `Origin`; enforce the pending-pair dedup (keyed
+by verified origin) and the global pending cap and backoff (§7.3) **before
+creating any session state or dialog**; validate `nmTicket` if present (§9),
+requiring `nmTicket`'s `bindingPub` to equal `ticketBindingKey` and
+`callerId` to equal `claimedExtensionId`; resolve the identity tri-state; then
+queue exactly one approval dialog.
+
+#### `pairAccept` (B→A)
+
+```json
+{ "type": "pairAccept", "protocolVersion": 1, "instanceId": "<UUID>" }
+```
+
+Sent when the dialog is queued. The extension popup then prompts for the
+code. `pairAccept` carries no approval semantics — the extension MUST NOT
+treat any server message as "the user approved"; only successful key
+confirmation proves that.
+
+#### `pakeA` / `pakeB`
+
+```json
+{ "type": "pakeA", "pA": "<b64url 32 bytes>" }
+{ "type": "pakeB", "pB": "<b64url 32 bytes>" }
+```
+
+#### `confirmA` / `confirmB`
+
+```json
+{ "type": "confirmA", "cA": "<b64url 32 bytes>",
+ "ticketProof": "<b64url 64-byte Ed25519 signature>" } // required iff nmTicket was sent
+{ "type": "confirmB", "cB": "<b64url 32 bytes>" }
+```
+
+### 6.2 Pairing code → scalar `w`
+
+The pairing code (§7) normalizes to an 8-character string over the Crockford
+alphabet. Let `pw` be its 8 ASCII bytes. Both sides compute:
+
+```
+salt = "MBP1/w/v1" ‖ UTF8(pairNonce)
+h = scrypt(pw, salt, N=2^14, r=8, p=1, dkLen=64)
+w = OS2IP(h) mod ℓ
+```
+
+`pairNonce` is the exact ASCII nonce string consumed by this `/pair`
+connection, making `w` session-unique. If `w = 0`, abort with
+`pairingFailed` (probability ≈ 2^-252; no retry semantics are attached).
+Reducing a 512-bit hash mod ℓ leaves negligible bias (RFC 9382 §3.2 requires
+only 64 extra bits). scrypt is used as the RFC-recommended MHF; its cost is
+paid once per attempt and additionally forecloses offline grinding of a
+recorded active-attack transcript even within the code's lifetime.
+
+### 6.3 SPAKE2 computation
+
+Per [RFC 9382] §3.3 with A = extension, B = Motrix:
+
+- A draws `x` uniformly from `[1, ℓ)` by **rejection sampling** ([RFC 9382]
+ §7): draw 32 CSPRNG bytes, interpret big-endian, redraw while the value is 0
+ or ≥ ℓ. `X = x·P`, `pA = w·M + X`.
+- B draws `y` the same way. `Y = y·P`, `pB = w·N + Y`.
+- Received points MUST decode as canonical RFC 8032 encodings of points on
+ the curve; anything else aborts with `protocolViolation`. (noble-curves
+ rejects non-canonical encodings.)
+- A computes `K = h·x·(pB − w·N)`; B computes `K = h·y·(pA − w·M)`; `h = 8`.
+ If `K` is the identity element, abort (this is a failed attempt, §7.2).
+- `x`, `y` MUST be fresh per protocol run and never reused; all PAKE state is
+ in-memory only and is destroyed when the run ends for any reason.
+
+### 6.4 Transcript `TT` and identities
+
+```
+A_id = enc("MBP1/A/v1") ‖ enc(browser) ‖ enc(verifiedOrigin)
+ ‖ enc(claimedExtensionId) ‖ enc(clientInstallationId)
+B_id = enc("MBP1/B/v1") ‖ enc("motrix-bridge") ‖ enc(instanceId)
+
+TT = enc(A_id) ‖ enc(B_id) ‖ enc(pA) ‖ enc(pB) ‖ enc(K) ‖ enc(I2OSP(w, 32))
+```
+
+- `browser` is the exact string from `pairHello`; `verifiedOrigin` is the
+ ASCII serialization of the `Origin` header value (e.g.
+ `chrome-extension://<id>` or `moz-extension://<uuid>`) — the extension
+ computes its own origin locally; any disagreement breaks key confirmation
+ by construction (misbinding property).
+- `pA`, `pB`, `K` are 32-byte point encodings; `w` is encoded big-endian
+ padded to 32 bytes (constant length, RFC 9382 §3.3).
+
+**AAD** (bound into confirmation keys, RFC 9382 §4):
+
+```
+AAD = encU32BE(protocolVersion) ‖ enc(pairNonce)
+ ‖ enc(ticketBindingKeyOrEmpty) ‖ enc(ticketDigestOrEmpty)
+
+ticketDigest = SHA-256(
+ encU32BE(v) ‖ enc(purpose) ‖ encU32BE(ticketProtocolVersion)
+ ‖ enc(serverGeneration) ‖ enc(browser) ‖ enc(callerId)
+ ‖ encU64BE(exp) ‖ enc(bindingPub) ‖ enc(mac))
+```
+
+- `ticketBindingKeyOrEmpty` is the raw 32-byte `pairHello.ticketBindingKey`
+ when an `nmTicket` was presented, else the empty string.
+- `ticketDigest` is computed over **the canonical encodings above of the
+ parsed values of every ticket field** — `v` and `ticketProtocolVersion` as
+ U32, `exp` as U64, strings as UTF-8, and `bindingPub`/`mac` as the raw bytes
+ their base64url decodes to. (Raw JSON spelling/whitespace is *not* hashed;
+ each party re-encodes the values it parsed.) `ticketDigestOrEmpty` is empty
+ when no ticket was presented. This deliberately does **not** reuse the §9.2
+ canonical MAC input (which fixes `purpose` to a constant domain tag), so that
+ flipping *any* wire field — `mac`, `purpose`, `bindingPub`, `callerId`,
+ `serverGeneration`, `browser`, `exp`, `v`, or `ticketProtocolVersion` —
+ changes the digest.
+
+Because both the separate `ticketBindingKey` field and every ticket field are
+bound here, an in-path attacker that modifies any of them desynchronizes the
+two parties' AAD and breaks key confirmation: such tampering **fails the
+pairing closed**, never a silent `unverified` downgrade. Ordering note: the
+server runs §9.2 ticket validation at `pairHello`, *before* key confirmation.
+So a tampered ticket does not "avoid" validation — validation runs on whatever
+the server received; it is *key confirmation* that later fails, because the two
+parties' digests differ. Content-level problems on a ticket both sides received
+identically resolve per §5/§9.2: an unknown generation or expired ticket
+downgrades to `unverified`, while a valid ticket whose `callerId` is not on the
+allowlist yields `attested-non-official` (not `unverified`).
+
+### 6.5 Key schedule and confirmation
+
+Per [RFC 9382] §4 with SHA-256:
+
+```
+Ke ‖ Ka = SHA-256(TT) (16 bytes each)
+KcA ‖ KcB = HKDF-SHA-256(ikm=Ka, salt=empty,
+ info="ConfirmationKeys" ‖ AAD, L=32) (16 bytes each)
+cA = HMAC-SHA-256(KcA, TT)
+cB = HMAC-SHA-256(KcB, TT)
+```
+
+A sends `cA` first. B MUST verify `cA` (and `ticketProof` when a ticket was
+presented: an Ed25519 signature by the ticket-binding private key over
+`"MBP1/ticket-proof/v1" ‖ TT`, verified against the ticket's `bindingPub`
+under the RFC 8032 strict rules of §9.1 — `zip215: false`, never the
+permissive ZIP-215 default) before sending `cB`. A MUST verify `cB` before
+sending anything further. Both
+verifications are constant-time. A failed verification is a **failed attempt**
+(§7.2) and B responds with `pairError {code:"codeMismatch",
+attemptsRemaining}` — after which a fresh run (new `pakeA` with fresh `x`,
+same code while it lives) MAY follow on the same connection.
+
+**Both sides enforce the attempt limits independently.** The extension MUST
+enforce its own ceiling of **3 protocol runs per pairing session** and an
+absolute session deadline of **180 s** from `pairHello`, plus its own global
+failure backoff, regardless of what the peer reports: a server-supplied
+`attemptsRemaining` is untrusted display data and MUST NOT extend the local
+limits. Without this, a fake or relaying listener could feed the client
+`codeMismatch` indefinitely and harvest one password test per induced run.
+
+### 6.6 Pair-session traffic keys
+
+After mutual confirmation:
+
+```
+kC2S = HKDF-SHA-256(ikm=Ke, salt="MBP1/pair/v1", info="MBP1-pair-traffic-c2s", L=32)
+kS2C = HKDF-SHA-256(ikm=Ke, salt="MBP1/pair/v1", info="MBP1-pair-traffic-s2c", L=32)
+```
+
+The `info` labels are deliberately distinct from the reconnect labels (§8):
+every HKDF/HMAC invocation in MBP1 carries a globally unique label, so key
+separation never rests on incidental differences in IKM or salt alone.
+
+All subsequent frames on the connection, both directions — credential
+messages and MDXP alike — travel inside the AEAD envelope (§10).
+
+### 6.7 Credential issuance — two-phase commit
+
+Inside the AEAD channel:
+
+1. **B→A `credentialOffer`** `{ "type": "credentialOffer", "credentialId":
+ "<UUIDv4>", "mutualKey": "<b64url 32 CSPRNG bytes>" }`. The server persists
+ the credential durably in state `provisional` **before** sending.
+2. **A** writes `{credentialId, mutualKey, state:"provisional", sub:"unacked"}`
+ to `storage.local`; then, **before transmitting `credentialAck`, A durably
+ flips the sub-state `unacked → commit-uncertain`** (write-ahead), and only
+ then sends **`credentialAck`** `{ "type": "credentialAck", "credentialId":
+ "<same>" }`. The write-ahead is mandatory: `commit-uncertain` must mean "the
+ ack **may** have been sent," so a crash between the durable flip and the send
+ still lands in the retain-forever state, never the age-out state.
+3. **B** marks the credential `committed` durably, then sends
+ **`credentialCommitted`** `{ "type": "credentialCommitted" }`. A marks its
+ copy `committed`.
+
+Atomicity rules:
+
+- A provisional server credential also authenticates a reconnect (§8); a
+ successful challenge–response is itself an authenticated acknowledgment and
+ promotes it to `committed`. **Durable-promotion ordering (server):** on a
+ reconnect that promotes a provisional credential, the server MUST, in order,
+ (i) verify `reconnectResponse`, (ii) **durably** promote the provisional to
+ `committed` — and, for a rotation, CAS-promote-new **and** revoke-old in the
+ same durable transaction — and only then (iii) send `reconnectAccept`. It
+ MUST NOT send `reconnectAccept` while the promotion is not yet durable, or a
+ crash after the accept could leave the just-authenticated credential merely
+ provisional and let it later expire. If the server permits the "rotation
+ journal replayed on startup" alternative to a single transaction, that replay
+ MUST complete — converging to exactly one valid credential per principal —
+ **before `/v1` begins accepting authentication**, so no client ever
+ authenticates against a half-applied rotation.
+- **Durable-commit ordering (client).** On authenticating, the client MUST, in
+ **one atomic durable write**, both mark the authenticated credential
+ `committed` **and** set `activeCredentialId` to it — the state and the pointer
+ can never disagree — and only **after** that write may it prune the others. A
+ crash after the atomic write but before pruning is therefore harmless: storage
+ may briefly hold two `committed` entries, but `activeCredentialId`
+ unambiguously names the live one. **Recovery order:** try
+ `activeCredentialId` first if set; then the newest `commit-uncertain`
+ provisional; then any other `committed`; then any remaining provisional. This
+ guarantees a crash-before-prune never selects the revoked predecessor, and a
+ worker death anywhere leaves a reconnectable state — either side completes
+ reconnect, or the client re-pairs; never a stranded client.
+- Provisional server credentials expire (default 10 minutes) if never acked or
+ used. **Server provisional cardinality is bounded, not merely time-bounded:**
+ at most **one** outstanding provisional successor may exist per
+ `{principal, currentCommittedCredentialId}`. A repeated offer for the same
+ `{principal, currentCommittedCredentialId}` (e.g. the worker died before
+ storing the previous offer and the client retried on the unchanged committed
+ credential) MUST reuse/replace that single slot idempotently rather than
+ accumulate `P₁…Pₙ`; the single-flight CAS below enforces the same bound
+ against concurrent rotations.
+- On **rotation** (same flow run inside an authenticated `/v1` session):
+ commit-new and revoke-old MUST be a **single durable server transaction**
+ (or a rotation journal replayed on startup), so a crash can never leave
+ both credentials valid or neither. The transaction is a **compare-and-swap
+ on the principal's current committed `credentialId`**, and the server
+ serializes rotations per principal (**single-flight**): two concurrent
+ rotations started from the same old credential cannot both commit — the
+ second observes the changed current id and is rejected, so exactly one
+ successor exists. On the "idempotent re-offer" path (a repeated offer for the
+ same `{principal, currentCommittedCredentialId}` after a lost offer),
+ idempotent means the server **re-offers the identical `{credentialId,
+ mutualKey}`** it already persisted in the single slot — never a freshly minted
+ replacement — so a client that stored the earlier offer and one that did not
+ converge on the same successor.
+- **Client recovery never destroys a credential on an unauthenticated
+ signal.** `authFailed` (§11) is a pre-channel message any listener can
+ forge, so it MUST NOT by itself delete a stored credential. On reconnect the
+ client follows the recovery order above (`activeCredentialId` first, then
+ newest `commit-uncertain`, then other `committed`, then any remaining
+ provisional). Once an authenticated session is established (mutual
+ `reconnectAccept` verified, §8), the credential that authenticated is provably
+ the live one, and the client MUST then delete **all other stored credentials
+ and pins for that same principal** — the prune after authentication is
+ mandatory, not optional, so interrupted rotations cannot accumulate stale
+ mutual keys. A run in which no stored credential authenticates leaves the
+ retained set in place for a later retry; the flow falls back to fresh
+ code-entry pairing only when the user asks or a credential is explicitly
+ revoked. Before any successful authentication the client bounds its retained
+ set to **at most two** entries per principal — the current committed
+ credential and the single newest provisional one.
+- **Provisional expiry is state-dependent, never blind.** A client provisional
+ credential carries a sub-state: `unacked` (the durable `unacked →
+ commit-uncertain` write-ahead of step 2 has not happened) or
+ `commit-uncertain` (that write-ahead is durable, so `credentialAck` **may**
+ have been sent). An **`unacked`** provisional MAY be aged out after
+ **10 minutes** — the write-ahead never completed, so the ack was never sent
+ and the server never committed it, matching the server's own provisional
+ expiry. A **`commit-uncertain`** provisional MUST NOT be age-deleted: the ack
+ may have reached the server, which may then have atomically committed it and
+ revoked the old credential (§6.7 rotation), so discarding it could strand the
+ client on a revoked credential. A `commit-uncertain`
+ credential is retained until an authenticated reconnect resolves which
+ credential is live (it is tried first on reconnect), then promoted or pruned
+ by the mandatory post-auth rule above. **Orphan cleanup (first pair only):** a
+ `commit-uncertain` credential from **first pairing** — one whose principal has
+ **no** other committed credential, so there is nothing to be stranded on — MAY
+ be removed once the server's first-pair provisional TTL (10 minutes) has
+ provably elapsed with no successful reconnect: after that window the server can
+ no longer hold it, so it is unusable and safe to drop, and the flow re-pairs.
+ A `commit-uncertain` credential produced by **rotation** (a prior committed
+ credential exists) is never age-deleted, since only reconnect can prove which
+ of the two the server kept. This keeps stale secrets bounded (two
+ per principal) while guaranteeing that a worker death anywhere in the ack/
+ commit window still leaves a reconnectable state, as §6.7's two-phase commit
+ requires. This also denies a fake listener the ability to make the client
+ discard its only valid credential by replaying `authFailed`. Explicit
+ user revocation MUST immediately mark the live session unauthorized, then
+ durably delete every committed and provisional credential whose
+ `{browser, verifiedOrigin}` matches the selected extension identity before
+ removing display/pairing bookkeeping. At the start of that durable critical
+ section the server MUST cancel every pending `/pair` and `/v1` session for
+ the same verified Origin and refuse new upgrades for it until the section
+ ends, so an already-admitted handshake cannot mint or adopt a replacement
+ credential after the delete. It then sends the authenticated revocation
+ notification where possible and closes the live WebSocket; the short
+ notification-drain window admits no control-plane requests, and a previously
+ issued key cannot reconnect.
+- Credential principal: `{browser, verifiedOrigin, clientInstallationId}`. A
+ second browser profile is a **new principal** and pairs as a new
+ credential; issuing or rotating one credential MUST NOT affect another.
+- Expired or revoked credentials always require a fresh code-entry pairing —
+ never silent re-trust.
+
+This mirrors the extension's existing "persist, then send
+`motrix/initialized`" ordering.
+
+### 6.8 MV3 service-worker lifecycle
+
+PAKE secrets exist only in worker memory. The open `/pair` WebSocket resets
+the worker idle timer on supported Chromium (see Appendix B); if the worker
+dies mid-pairing anyway, the server times the session out, the nonce and code
+die with it, no partial credential survives (§6.7), and the popup offers
+retry. Implementations MUST test worker death both before and after approval.
+
+---
+
+## 7. Pairing code
+
+### 7.1 Format
+
+- **Alphabet**: Crockford base32 — `0123456789ABCDEFGHJKMNPQRSTVWXYZ`
+ (32 symbols; excludes `I`, `L`, `O`, `U`).
+- **Length**: 8 symbols = exactly 40 bits, drawn from 5 CSPRNG bytes: split
+ the 40 bits big-endian into eight 5-bit groups; each group indexes the
+ alphabet.
+- **Display**: uppercase, grouped `XXXX-XXXX`, shown **only** in the Motrix
+ approval dialog. The code is the PAKE password: it MUST never travel over
+ any network channel in any form, and MUST never be logged.
+- **Input normalization** (extension side, before local validation): strip
+ ASCII hyphens and spaces; uppercase; map `O→0`, `I→1`, `L→1`; then require
+ exactly 8 alphabet symbols. A string failing local validation MUST be
+ rejected in the popup without any network traffic (it does not consume an
+ attempt).
+
+### 7.2 Lifetime and attempts
+
+- One code per pairing session, generated when the approval dialog is queued.
+- The code dies at the earliest of: **120 s** after generation, the dialog
+ being dismissed, the WebSocket closing, or the **3rd failed attempt**.
+- A **failed attempt** is any protocol run on the session that reaches `pakeA`
+ and ends without mutual confirmation **for any reason** — bad `cA`, bad
+ `ticketProof`, identity `K`, malformed point after `pakeA`, protocol abort,
+ or the socket closing mid-run. Attempt accounting is kept independently on
+ both sides (§6.5); disconnection MUST NOT reset it below what the code has
+ already consumed.
+- After the 3rd failure the server sends
+ `pairError {code:"rateLimited"}`, closes the socket, and invalidates the
+ nonce and code.
+
+### 7.3 Global backoff and prompt caps
+
+- At most **one** approval dialog is visible at a time; concurrent `/pair`
+ requests beyond the pending cap (default 3 queued) are rejected with
+ `pairError {code:"busy"}` **before** any session mutation. Pending-pair
+ dedup is keyed by verified origin.
+- A global failure counter increments whenever a pairing session that queued
+ a dialog **or consumed at least one attempt** ends without mutual
+ confirmation — including disconnects, aborts, dismissals, expiry, and
+ exhaustion. A guesser therefore cannot dodge the counter by closing the
+ socket before exhausting a code. Before dialog `n` (counting consecutive
+ failures), the server enforces a lockout of `min(30 · 2^(n−1), 3600)`
+ seconds during which new `/pair` sessions are rejected with `rateLimited`.
+ The counter resets on a successful pairing or after 24 h.
+- **Client-side global backoff (analogous to, not keyed like, the server
+ counter).** The extension keeps a **single truly global** first-pair failure
+ counter in `storage.local` — **one counter for all unauthenticated
+ first-pair targets**, deliberately **not** keyed by `instanceId`, `port`, or
+ any other attacker-controllable value (a fake listener that returns a fresh
+ `instanceId` every session must not obtain a fresh counter; `instanceId` is
+ never a security signal, §4.1). It increments on any first-pair session that
+ reached `pakeA` and ended without mutual confirmation, including one the
+ extension itself abandoned by closing the socket. Before starting first-pair
+ session `n` (consecutive global failures) the extension enforces the
+ `min(30 · 2^(n−1), 3600)` second lockout, refusing to open `/pair` and
+ showing a "try again later" state; it resets on a successful pairing or after
+ 24 h. This is the client analogue of the server counter (§7.3) and defeats
+ the same online-guessing attack, though the two count at slightly different
+ points — the server increments once a code-bearing dialog is queued, the
+ client once a session reaches `pakeA`. An **authenticated, per-`instanceId`**
+ reconnect-failure subcounter MAY additionally exist, but it is separate from
+ and never substitutes for this global first-pair counter. Both client limits
+ (per-session ≤3 runs, this global backoff) hold regardless of any
+ server-reported `attemptsRemaining`.
+- The counter is process-lifetime state; a same-UID attacker who can restart
+ Motrix is out of scope (§1.1). The 40-bit code space at 3 attempts per
+ session and this lockout schedule yields a success probability for an
+ online guesser of ≈ `3·k / 2^40` after `k` sessions — with the cap, fewer
+ than ~700 sessions per day, i.e. ≈ 2·10⁻⁹ per day of sustained attack, each
+ session requiring a fresh user-approved dialog on the victim's screen.
+
+---
+
+## 8. Reconnect — challenge–response on `/v1`
+
+`/v1` upgrades carry **no** credentials in the URL. Pre-channel messages on
+`/v1` follow exactly the §6.1 framing rules: single WebSocket text frames,
+one JSON object with a `type` discriminator per frame, base64url binary
+fields, a 16 KiB pre-authentication frame cap, and abort with
+`protocolViolation` on unknown types, out-of-order or duplicate messages,
+oversized frames, or schema-invalid JSON. The whole challenge–response MUST
+complete within **10 s** of the upgrade or the server closes the socket.
+After upgrade (Host and Origin checks as in §4.3/§5), the server speaks
+first:
+
+```json
+{ "type": "reconnectChallenge", "protocolVersion": 1, "S": "<b64url 32 CSPRNG bytes>" }
+```
+
+Client responds:
+
+```json
+{ "type": "reconnectResponse", "credentialId": "<UUIDv4>",
+ "C": "<b64url 32 CSPRNG bytes>", "mac": "<b64url 32 bytes>" }
+```
+
+with the reconnect transcript
+
+```
+RT = enc("MBP1/reconnect/v1") ‖ encU32BE(protocolVersion)
+ ‖ enc(credentialId) ‖ enc(browser) ‖ enc(verifiedOrigin) ‖ enc(instanceId)
+mac = HMAC-SHA-256(mutualKey, "MBP1-R/c" ‖ S ‖ C ‖ RT)
+```
+
+`browser` and `verifiedOrigin` are the stored credential principal's values on
+the client side and the live connection's values on the server side; a
+mismatch fails the MAC (misbinding property). The server verifies in constant
+time. On success it replies:
+
+```json
+{ "type": "reconnectAccept", "mac": "<b64url HMAC-SHA-256(mutualKey, \"MBP1-R/s\" ‖ S ‖ C ‖ RT)>" }
+```
+
+The client MUST verify `reconnectAccept.mac` **before sending anything
+else** — a fake listener learns nothing usable from replaying `/discovery`
+data, and the client MUST treat verification failure as "not my Motrix"
+(clear the port pin, fall back to sweep / re-pair; never silent re-trust).
+
+Failure behavior: for an unknown `credentialId` or a bad MAC the server MUST
+behave identically — constant-time verification against a dummy key when the
+ID is unknown, one uniform `pairError {code:"authFailed"}`, then close — so
+the surface does not become a credential-ID oracle. Reconnect attempts are
+rate-limited per verified origin and globally.
+
+Traffic keys:
+
+```
+kC2S = HKDF-SHA-256(ikm=mutualKey, salt=S ‖ C, info="MBP1-traffic-c2s", L=32)
+kS2C = HKDF-SHA-256(ikm=mutualKey, salt=S ‖ C, info="MBP1-traffic-s2c", L=32)
+```
+
+All further frames are AEAD-wrapped (§10). MDXP `motrix/initialize` remains
+the first application message, now inside the envelope.
+
+---
+
+## 9. NM attestation ticket
+
+Browsers pass the calling extension's identity to NM hosts (Chromium: caller
+origin in argv; Firefox: extension ID as an argument). The NM host reads it
+and mints a one-shot ticket so the server can resolve the §5 tri-state. This
+is the **only** ticket type in MBP1.
+
+### 9.1 Bootstrap flow (extension ↔ host over NM stdio)
+
+1. The extension generates an **ephemeral Ed25519 keypair** (`bindingPriv`,
+ `bindingPub`) for this bootstrap.
+
+ **Binding-key validation (server side).** `bindingPub` MUST decode as a
+ canonical RFC 8032 point encoding that is on the curve, is **not the
+ identity, not of small order, and lies in the prime-order subgroup**
+ (torsion-free); anything else makes the ticket invalid. `ticketProof`
+ MUST be verified in **RFC 8032 strict mode — `zip215: false` in
+ noble-curves 2.0.1** — which enforces a canonical `R` encoding and
+ `S < ℓ` and rejects the malleable/non-canonical inputs ZIP-215 (the
+ permissive default, `zip215: true`) would accept. The permissive ZIP-215
+ mode MUST NOT be used. Note that noble's strict mode still checks the
+ **cofactored** group equation `[8]·S·B = [8]·R + [8]·k·A`, not a
+ cofactorless one; MBP1 does not rely on cofactorless equality. The
+ security of the possession proof comes from `bindingPriv` being secret
+ **combined with** the mandatory `bindingPub` validation above: without the
+ small-order/torsion check, `bindingPub` = identity with `ticketProof` =
+ (identity ‖ 0) satisfies the equation for every message and turns the
+ ticket into a bearer object, which the validation forecloses.
+ Implementations MUST include every small-order/torsion `bindingPub`
+ encoding as negative tests. A signer that legitimately knows `bindingPriv`
+ can still produce a torsion-tweaked signature (`R = rB + T`, `S = r + k·a`)
+ that noble's cofactored equation accepts; this is a **conformance caveat,
+ not a forgery** (it requires the private key), so vectors MUST NOT assert
+ its rejection.
+2. Extension → host: `{ "action": "bootstrap", "protocolVersion": 1,
+ "bindingPub": "<b64url 32 bytes>" }`.
+3. The host reads `endpoint.json` (0600 owner-only — that file ownership *is*
+ the attestation root; the Windows analogue is owner = current user plus a
+ DACL admitting only that user, `LocalSystem`, and
+ `BUILTIN\Administrators`, failing closed on any ACE type the check cannot
+ prove harmless), checks liveness of the recorded port (TCP /
+ `/discovery` probe; unauthenticated is sufficient — the MBP1 client
+ authenticates the server itself downstream), wakes Motrix if needed,
+ obtains a fresh nonce via `POST /nonce`, mints the ticket, and replies:
+ `{ "action": "requestPair", "protocolVersion": 1, "port": <n>,
+ "nonce": "<...>", "nmTicket": { ... } }`.
+4. The extension forwards the ticket in `pairHello.nmTicket` together with
+ `ticketBindingKey = bindingPub`, and later proves possession of
+ `bindingPriv` via `confirmA.ticketProof` (§6.5). The binding prevents a
+ ticket from being replayed onto any handshake other than the one holding
+ the private key.
+
+The host MUST NOT expose `localToken` to the extension, MUST NOT log ticket
+material, and holds no `clientInstallationId` (the PAKE transcript binds that
+instead).
+
+### 9.2 Ticket format
+
+Wire form (JSON, inside `pairHello`):
+
+```json
+{ "v": 1, "purpose": "mbp1-attestation", "protocolVersion": 1,
+ "serverGeneration": "<UUID>", "browser": "chromium" | "firefox",
+ "callerId": "<verified caller identity from the browser>",
+ "exp": 1755600000, "bindingPub": "<b64url 32 bytes>",
+ "mac": "<b64url 32 bytes>" }
+```
+
+Canonical MAC input (field order fixed, independent of JSON key order):
+
+```
+ticketKey = HKDF-SHA-256(ikm=UTF8(localToken), salt="MBP1/nm-ticket/v1",
+ info="mac", L=32)
+mac = HMAC-SHA-256(ticketKey,
+ enc("mbp1-attestation") ‖ encU32BE(v) ‖ encU32BE(protocolVersion)
+ ‖ enc(serverGeneration) ‖ enc(browser) ‖ enc(callerId)
+ ‖ encU64BE(exp) ‖ enc(bindingPub raw 32 bytes))
+```
+
+Every wire field of the ticket except `mac` itself is covered by the MAC —
+including the format version `v` — so no field can be swapped independently.
+The MAC's leading `enc("mbp1-attestation")` is a fixed domain tag, not the
+wire `purpose`; the wire `purpose` value is instead pinned by the AAD ticket
+digest (§6.4), which hashes the **canonical encodings of the ticket's parsed
+field values** (per §6.4, not the raw JSON serialization), so tampering
+`purpose` (or any other wire field) desynchronizes the two parties' AAD and
+fails key confirmation closed rather than merely downgrading.
+
+**Validation runs at `pairHello`, before key confirmation** — the server
+validates whatever ticket it received; it never waits for byte-identity to be
+proven. `pairHello` additionally requires `nmTicket.browser ==
+pairHello.browser` (a ticket minted for a different browser than the one
+pairing does not bind this session).
+
+**Check order is normative: the `mac` is verified first.** `ticketKey` derives
+from `localToken` alone, so `localToken` MUST persist across bridge restarts —
+only `serverGeneration` rotates. The server recomputes the `mac` with the
+current `localToken`-derived `ticketKey` before any other check; a `mac`
+failure aborts immediately, and only a valid-`mac` ticket proceeds to the
+generation / `exp` / `callerId` checks. This is what makes an honest ticket
+minted by a **previous** server generation (valid `mac` under the persistent
+`localToken`, stale `serverGeneration`) resolve as the semantic
+`unverified` **downgrade** rather than being misclassified as a bad-`mac`
+abort — and conversely keeps a genuinely forged `mac` an abort regardless of
+its generation field. Because there is no authenticated mint timestamp, the
+`exp` bound is a **remaining-lifetime** limit (`exp ≤ now + 60 s`), not a proof
+of original mint time.
+
+**Every outcome is defined — the map below is exhaustive.** Each check maps to
+exactly one of three dispositions: **abort** (`pairError`, no pairing),
+**downgrade** (proceed with a lower identity than `official`), or **defer**
+(decided later in the flow).
+
+| Ticket condition | Disposition |
+|---|---|
+| `mac` fails constant-time recompute | **abort** (`protocolViolation`) |
+| `v` / `purpose` / `protocolVersion` not exact | **abort** (`protocolViolation`) |
+| `bindingPub` fails §9.1 (malformed, identity, small-order, non-torsion-free) | **abort** (`protocolViolation`) |
+| `bindingPub != pairHello.ticketBindingKey` | **abort** (`protocolViolation`) |
+| `callerId != pairHello.claimedExtensionId` | **abort** (`protocolViolation`) |
+| `nmTicket.browser != pairHello.browser` | **abort** (`protocolViolation`) |
+| ticket MAC already seen (one-shot replay) | **abort** (`protocolViolation`) |
+| `exp` more than 60 s after now (remaining lifetime > 60 s) | **abort** (`protocolViolation`) |
+| authentic ticket, unknown/stale `serverGeneration` | **downgrade** → `unverified` |
+| authentic ticket, `exp` in the past (expired) | **downgrade** → `unverified` |
+| authentic ticket, valid, `callerId` not on allowlist | **downgrade** → `attested-non-official` (§5) |
+| authentic ticket, valid, `callerId` on allowlist | `official` (§5) |
+| `confirmA.ticketProof` schema-invalid (not 64 bytes) | **defer** → `protocolViolation` (§6.5) |
+| `confirmA.ticketProof` well-formed but fails strict verify | **defer** → `codeMismatch`, consumes an attempt (§6.5/§7.2) |
+
+Rationale for the two structural rules that most affect security:
+
+- **Abort, not downgrade, on structural/cryptographic failure.** A legitimate
+ extension never presents such a ticket, and an in-transit modification is
+ already caught by the AAD binding at key confirmation (§6.4). Aborting
+ resolves the otherwise contradictory case where §6.5 requires a valid
+ `ticketProof` that an invalid `bindingPub` can never satisfy. Structural
+ validation happens **before** the approval dialog and does not touch the
+ prompt/failure counters, so it does not amplify the DoS surface; a corrupted
+ legitimate ticket causes a self-heal re-bootstrap, never credential
+ compromise.
+- **`ticketProof` verification is not a `pairHello` outcome.** The server
+ cannot know at `pairHello` that "the proof verifies" — the proof arrives in
+ `confirmA` (§6.5). So §9.2 validates only the *ticket*, and the proof's
+ outcome is deferred to §6.5 exactly as the last two rows state.
+
+Two boundary rules apply:
+
+- **Precedence with §5**: a ticket's identity contribution can only *raise* an
+ identity, never lower one — a Chromium verified origin on the allowlist
+ establishes `official` with or without a ticket. A **structural abort takes
+ precedence over identity**, however: if a *presented* ticket hits any abort
+ row above, the pairing aborts even for a caller that would otherwise be
+ `official` by verified origin (a legitimate official caller never presents a
+ structurally-broken ticket, and the client simply re-bootstraps ticketless).
+ A caller that presents **no** ticket is unaffected — origin alone resolves
+ its identity per §5.
+- **Tampering is not a downgrade**: because the ticket digest is bound into the
+ PAKE AAD (§6.4), a ticket modified in transit desynchronizes the two
+ parties' AAD and fails key confirmation closed — an in-transit tamper never
+ silently becomes a semantic downgrade.
+
+`callerId` values: Chromium — the 32-char extension ID extracted from the
+`chrome-extension://<id>/` origin argv; Firefox — the Gecko ID argument. The
+ticket proves *which* extension called; whether it is *official* is decided
+by the allowlist (§5).
+
+---
+
+## 10. AEAD envelope
+
+Active on `/pair` after §6.6 and on `/v1` after §8, in both directions, for
+**every** frame. The envelope sits below MDXP: MDXP JSON-RPC payload bytes are
+the plaintext, unchanged.
+
+```
+frame = seq64BE ‖ AES-256-GCM(key = k_dir, nonce, plaintext, aad)
+nonce = dirTag(4 bytes BE) ‖ seq64BE (12 bytes)
+dirTag = 0x00000001 (client→server) | 0x00000002 (server→client)
+aad = "MBP1/env/v1" (ASCII, 11 bytes)
+```
+
+- Frames are WebSocket **binary** messages; one frame per message.
+- `seq` starts at 0 per direction and increments by exactly 1 per frame.
+ The receiver MUST require `seq` equal to its expected counter (strict
+ monotonic, no window); any gap, repeat, or GCM authentication failure MUST
+ close the connection immediately (`envelopeViolation`). This is the replay
+ protection: replay = strict sequence check.
+- Keys are per-direction (§6.6/§8), so nonce uniqueness holds per key by
+ construction. Uniqueness alone is not a usage bound: a connection MUST be
+ closed — and re-established via reconnect, deriving fresh keys — before
+ either direction exceeds **2^24 frames** or **2^30 encrypted AES blocks
+ (16 GiB of plaintext)**, whichever comes first. These bounds keep the
+ combined AES-GCM confidentiality/integrity advantage comfortably below the
+ ≈2^-57 target used by the TLS 1.3 analysis (RFC 8446 §5.5; cf. RFC 9053
+ §4.1.1); MDXP control traffic sits orders of magnitude below them. There is
+ no in-place rekey in v1.
+- Maximum plaintext per frame: 1 MiB. The server's WebSocket parser MUST cap a
+ message at the corresponding maximum envelope size (1 MiB + 8-byte sequence
+ + 16-byte tag), replacing the transport's larger default so an unauthenticated
+ peer cannot force it to buffer an oversized message first. The stricter
+ 16 KiB pre-authentication frame rule remains independently enforced by the
+ pairing/reconnect state machines. Text frames after channel activation are a
+ protocol violation.
+
+Because the envelope key is PAKE- or credential-derived, a fake or relayed
+endpoint that observed the full handshake still cannot read or modify URLs,
+cookies, headers, or commands.
+
+---
+
+## 11. Error and close semantics
+
+`pairError` (`/pair` and `/v1`, pre-channel):
+
+```json
+{ "type": "pairError", "code": "<code>", "attemptsRemaining": 2 }
+```
+
+| Code | Meaning | Notes |
+|---|---|---|
+| `unsupportedVersion` | `protocolVersion` ≠ 1 | fail closed, no negotiation |
+| `busy` | pending-pair cap or dedup hit | before any session mutation |
+| `rateLimited` | global backoff or attempt exhaustion | §7.3 |
+| `codeMismatch` | key confirmation failed | carries `attemptsRemaining` |
+| `expired` | nonce or code lifetime exceeded | |
+| `aborted` | user dismissed the dialog | |
+| `authFailed` | `/v1` challenge–response failed | uniform for unknown-ID and bad-MAC |
+| `protocolViolation` | malformed/out-of-order frame, bad point encoding, oversize | immediate close |
+| `pairingFailed` | internal failure (e.g. `w = 0`) | generic |
+
+Beyond `codeMismatch`/`attemptsRemaining` (which the user needs) the server
+MUST NOT reveal which internal step failed. Implementations MUST NOT log
+codes, `w`, PAKE intermediates, keys, MACs, or tickets at any log level.
+
+**WebSocket close codes.** Once the AEAD channel is active there is no
+`pairError` — §10 violations and usage bounds are reported by closing:
+
+| Code | Meaning | Client action |
+|---|---|---|
+| `1002` | Any §10/§11 protocol violation. Uniform: it never says which check failed. | Treat this attempt as failed. |
+| `4001` | A §10 per-direction usage bound was reached (2^24 frames or 2^30 encrypted blocks). Neither side misbehaved. | Reconnect (§8) and derive fresh keys. |
+| `1011` | A genuine internal fault on the closing side. | Treat as a peer defect. |
+
+An outbound attempt to seal more than the 1 MiB plaintext limit is the local
+process's internal fault, not a peer protocol violation, and therefore closes
+with `1011`; the refused application frame MUST NOT leave the session live.
+
+`4001` sits in the private-use range [RFC 6455] §7.4.2 reserves for
+application agreement; no standard code fits, since `1002` would accuse the
+peer of a violation that did not occur and `1011` would claim a defect for a
+routine, spec-mandated transition.
+
+Only a server can send all three codes: the browser WebSocket API refuses
+every close code outside 1000/3000–4999, so an extension client sends `4001`
+when one of its own §10 usage bounds trips and a bare close (surfacing as
+`1005`, "no status received") for every other fault. That asymmetry is
+conformant because of the next rule.
+
+**Clients MUST NOT branch on the close code.** Every close of an established
+envelope channel means "re-establish it via §8", and a conforming client that
+never learns these numbers still behaves correctly — the codes exist to make a
+log legible, not to carry protocol state. Implementations MUST NOT assign a
+different meaning to `4001`.
+
+---
+
+## 12. Credential and pin lifecycle (extension side)
+
+- `PinStore` is a versioned store keyed by `credentialId` holding
+ `{port, instanceId}`. A pin is committed **only after** a
+ mutually-authenticated session on that port — never from `/discovery`.
+- Pinned-port mismatch → full candidate sweep for the matching `instanceId`
+ → re-commit only post-auth; otherwise clear the pin and fall back to fresh
+ code-entry pairing.
+- `storage.local` credential entries carry `state: "provisional" |
+ "committed"` and, for provisionals, the `unacked` / `commit-uncertain`
+ sub-state (§6.7), plus an `activeCredentialId` pointer written **atomically
+ with** the `committed` transition. Recovery order on reconnect:
+ `activeCredentialId` first if set, then the newest `commit-uncertain`
+ provisional, then any other `committed`, then any remaining provisional (so
+ two `committed` entries left by a crash-before-prune are disambiguated by the
+ pointer, never by guessing). A credential is deleted **only after an
+ authenticated session proves which one is live** (§6.7); a pre-channel
+ `authFailed` never deletes a credential on its own, so a forged `authFailed`
+ cannot strand the client.
+ When no stored credential authenticates, the retained set stays for a later
+ retry and the flow returns to first pair only on explicit user action or
+ revocation. Retained state is bounded: at most the committed credential plus
+ the newest provisional one per principal. Provisional entries carry a
+ sub-state (§6.7): an `unacked` one expires after 10 minutes, but a
+ `commit-uncertain` one (its `credentialAck` was sent, so the server may have
+ committed it) is never age-deleted — it is retained and tried first on
+ reconnect until an authenticated session resolves it. A successful
+ authentication MUST delete every other credential and its `PinStore` entry
+ for that principal, so interrupted rotations leave no unbounded stale-secret
+ inventory yet never strand the client on a revoked credential.
+
+---
+
+## 13. Test vectors
+
+Cross-implementation vectors are normative and live in
+[`bridge-pairing-protocol-vectors.json`](./bridge-pairing-protocol-vectors.json)
+next to this document. CI in both repositories (and the Rust native host for
+the ticket vectors) MUST validate against them. The file contains, with all
+byte strings hex-encoded:
+
+1. **`spake2`** — full first-pair runs over edwards25519 with fixed inputs
+ (`code`, `pairNonce`, identities, and the scalars `w`, `x`, `y` given
+ directly, as in the RFC vectors) and expected `pA`, `pB`, `K`, `TT`, `Ke`,
+ `Ka`, `KcA`, `KcB`, `cA`, `cB`, traffic keys. Because [RFC 9382]
+ Appendix B provides vectors only for P-256, implementations of the generic
+ SPAKE2 core MUST additionally validate against **all four** RFC P-256
+ vectors to prove the core composition (TT layout, key schedule) before the
+ edwards25519 instantiation is trusted.
+2. **`scryptW`** — pairing-code normalization and `w` derivation (§6.2).
+3. **`reconnect`** — `RT`, client and server MACs, traffic keys (§8).
+4. **`nmTicket`** — `ticketKey` derivation, canonical MAC, and `ticketDigest`
+ (§9.2/§6.4), plus **weak binding-key rejections**: the identity encoding,
+ other small-order point encodings, and a **dirty (non-torsion-free)**
+ `bindingPub` MUST be rejected by §9.1 validation; the identity-key forgery
+ `(R = identity, S = 0)` MUST fail; `S ≥ ℓ` and non-canonical `R`
+ signatures MUST be rejected by strict verification; and tampering any wire
+ field (including `mac` and `purpose`) MUST fail key confirmation closed via
+ the §6.4 AAD binding.
+5. **`envelope`** — AEAD frames for given keys/plaintexts, including expected
+ rejection cases: wrong sequence number, tampered ciphertext, and a
+ **direction-tag-only** mismatch (same key, flipped `dirTag`) so an
+ implementation that ignores `dirTag` cannot pass.
+
+Beyond the vector file, implementation test suites MUST cover the stateful
+cases that vectors cannot express: retry-limit enforcement on both sides
+(§6.5/§7.2), global-counter accounting across disconnects (§7.3), and
+rotation crash points (§6.7).
+
+The vectors are generated by a reference script checked in with the Phase-A
+implementation; regenerating them MUST be deterministic given the recorded
+inputs.
+
+---
+
+## 14. Review and implementation gates
+
+1. This document MUST pass an **independent cryptographic review** before any
+ MBP1 protocol code is written. **Satisfied** — six independent adversarial
+ rounds (2026-08-19), every one re-confirming 0 High; the final round cleared
+ the last Medium and left only implementation-tracked Low items. The full
+ review record (reviewer, date, findings, resolutions) is Appendix C.
+2. The implementation MUST pin exact versions of `@noble/curves` (2.0.1) and
+ `@noble/hashes` (2.0.1), and record the audit basis they correspond to (§3).
+3. The facts in Appendix B MUST be re-validated against the actual
+ minimum-version browser build matrix (Chrome 120, Firefox 121) before
+ Phase-A release; they are cited from vendor documentation, not from this
+ repository's own evidence.
+
+---
+
+## Appendix A — Security properties and acceptance criteria
+
+A malicious loopback listener replaying a real `instanceId` must not obtain:
+the pairing code, any credential, a completed MDXP initialize, or any
+download submission. Specifically:
+
+- **Terminating MITM** (own PAKE with each side) cannot produce two confirmed
+ keys without the code; a grinder test with adversarial key generation MUST
+ fail. SPAKE2 has no short public digest to grind, so chosen-key collision
+ attacks on SAS-style comparison do not apply.
+- **Transparent relay** obtains neither plaintext nor a valid credential
+ (AEAD tamper/read tests); its ability to stay in-path is out of scope by
+ the threat model (§1.1), not a passed criterion.
+- **Transcript misbinding** — any swap of origin, browser, IDs, versions,
+ nonce, or binding key between the parties MUST break key confirmation
+ (§6.4/§6.5) or the reconnect MAC (§8).
+- **Post-handshake integrity** — frame tampering, reordering, replay, or
+ cross-direction reflection MUST close the connection (§10).
+- **Online guessing** — bounded by 3 attempts per session enforced
+ **independently on both sides**, disconnect-proof attempt accounting, and
+ the global lockout schedule (§6.5/§7.2/§7.3); a peer-supplied
+ `attemptsRemaining` never extends a local limit.
+- **Ticket replay and forgery** — one-shot cache, 60 s expiry, generation
+ binding, the Ed25519 possession proof with strict verification and
+ small-order/torsion rejection (§9.1), and the AAD-bound ticket digest
+ (§6.4) make a captured or tampered ticket unusable on any other handshake
+ or server generation; small-order `bindingPub` forgeries MUST be rejected.
+- **AEAD usage bounds** — sessions close before 2^24 frames or 2^30 encrypted
+ blocks per direction (§10).
+
+## Appendix B — Externally-verified browser facts
+
+Verified against vendor documentation on 2026-08-19; re-confirm against the
+build matrix per §14.3.
+
+| Fact | Value | Source |
+|---|---|---|
+| WebCrypto X25519 availability | Chrome/Edge 133+, Firefox 130+, Safari 17+ — **above** the extension minimums (Chrome 120 / Firefox 121), hence bundled noble-curves | [caniuse: SubtleCrypto X25519](https://caniuse.com/mdn-api_subtlecrypto_importkey_x25519) |
+| Firefox MV3 host permissions | Before Firefox 127, MV3 host permissions are **not** granted at install; from 127 they appear in the install prompt and are granted, but remain revocable at any time, and update-added host permissions are not prompted | [Mozilla Add-ons blog, "Manifest V3 updates" (2024-05-14)](https://blog.mozilla.org/addons/2024/05/14/manifest-v3-updates/) |
+| MV3 service-worker keepalive | From Chrome 116, WebSocket activity resets the 30 s service-worker idle timer; keepalive requires exchanging a message within each 30 s window | [Chrome developers: WebSockets in service workers](https://developer.chrome.com/docs/extensions/how-to/web-platform/websockets) |
+| Extension minimums | `minimum_chrome_version: "120"`, Gecko `strict_min_version: "121.0"` | `motrix-extension/packages/ext/manifest.config.ts` |
+
+Consequence of the Firefox rows: before probing loopback the extension MUST
+check `permissions.contains({origins:["http://127.0.0.1/*"]})`, request within
+a user gesture when missing, and show an explicit degraded state on refusal.
+The acceptance matrix covers Firefox 121–126, 127+, and manual revocation.
+
+## Appendix C — Review log
+
+| Round | Date | Reviewer | Verdict | Summary |
+|---|---|---|---|---|
+| 1 | 2026-08-19 | Independent adversarial cryptographic review (Codex) | NOT APPROVED — 0 High / 4 Medium / 6 Low | SPAKE2 construction and all published vectors independently reproduced as correct. Mediums: one-sided attempt accounting (M1), unjustified 2^40-frame GCM limit (M2), ZIP-215/small-order `bindingPub` forgery (M3), non-transactional rotation (M4). Lows: ticket `v` outside the MAC and no ticket/AAD binding, non-uniform scalar sampling wording and wrong `w = 0` probability, reused HKDF traffic labels, thin negative-vector coverage, unspecified `/v1` pre-channel framing, unpinned dependency versions. |
+| 1-rev | 2026-08-19 | Spec revision | Findings addressed | Both-sides attempt limits with disconnect-proof accounting (§6.5/§7.2/§7.3); 2^24-frame / 2^30-block AEAD bounds (§10); strict Ed25519 verification plus canonical/small-order/torsion-free `bindingPub` validation with negative tests (§9.1); transactional rotation and deterministic client recovery (§6.7/§12); ticket `v` MACed and the ticket digest bound into AAD with fail-closed tamper semantics and §5 precedence (§6.4/§9.2); rejection-sampled scalars and corrected probability (§6.3/§6.2); distinct pair/reconnect HKDF labels (§6.6); all four RFC P-256 vectors, dirTag-only and weak-key negatives (§13); `/v1` framing and deadline (§8); exact noble pins with audit-basis requirement (§3). |
+| 2 | 2026-08-19 | Independent re-review (Codex) | NOT APPROVED — 0 High; M2/M3/L2/L3/L5/L6 closed; M1/M4/L1/L4 partial; 1 new Low (N1) | M1: client-side global backoff underspecified. M4: (1) an unauthenticated `authFailed` could delete the client's only valid credential; (2) no single-flight/CAS against concurrent rotations. L1: MAC hard-codes `purpose` and AAD omitted the separate `ticketBindingKey`, so those two fields downgraded rather than failing closed. L4: missing dirty-torsion / non-canonical `R` / `S ≥ ℓ` negatives. N1: noble 2.0.1 `zip215:false` uses the cofactored equation, so the "cofactorless" wording was inaccurate. |
+| 2-rev | 2026-08-19 | Spec revision | Findings addressed | Client global backoff specified; rotation single-flight CAS; client never deletes a credential on an unauthenticated `authFailed`; AAD binds `ticketBindingKey` plus a `ticketDigest` over the ticket's wire fields; verification wording corrected to RFC 8032 strict (cofactored); vectors add dirty-torsion / `S ≥ ℓ` / non-canonical `R` / per-field tamper negatives. |
+| 3 | 2026-08-19 | Independent re-review (Codex) | NOT APPROVED — 0 High; M4(1)/M4(2)/L1/N1 closed; M1 partial (Medium blocker); L4 partial (Low blocker); 2 new Low | M1: the client counter was keyed by the attacker-controllable `instanceId`, so a fake listener returning a fresh `instanceId` each session got a fresh counter. L4: vectors carried only prose for `S ≥ ℓ` / non-canonical `R` (no malicious bytes) and covered only two small-order encodings. New Low: post-auth prune was only `MAY` and client provisional credentials had no expiry/bound (stale-secret growth). New Low: §6.4 prose said an unlisted `callerId` downgrades to `unverified` (contradicting §5/§9.2 `attested-non-official`) and implied validation runs only after byte-identity. |
+| 3-rev | 2026-08-19 | Spec revision | Findings addressed | Client first-pair backoff is a single truly-global counter (§7.3); post-auth prune mandatory, retained set bounded (§6.7/§12); §6.4 identity/encoding prose corrected; vectors carry real malicious bytes for `S ≥ ℓ` / non-canonical `R`, the full small-order set, and all-field tamper self-checks (§13). |
+| 4 | 2026-08-19 | Independent re-review (Codex) | NOT APPROVED — 0 High; M1/L4 closed; 1 Medium + 2 Low | Medium: the unconditional 10-minute client provisional expiry could delete a `commit-uncertain` credential the server had already committed during rotation, stranding the client on a revoked credential. Low: §9.2 still said the digest hashes wire fields "verbatim" and that only a byte-identical ticket "reaches validation", contradicting §6.4's canonical-parsed rule and pairHello-ordering. Low: §9.2's blanket "any validation failure → downgrade, do not abort" conflicted with §6.5/§9.1, where an invalid/small-order `bindingPub` makes the required `ticketProof` impossible. Global-counter first-pair griefing assessed as an accepted availability residual (§1.1); multi-profile prune found sound. |
+| 4-rev | 2026-08-19 | Spec revision | Findings addressed | State-dependent provisional expiry; §9.2 canonical-parsed digest, pairHello-ordered validation, and abort-vs-downgrade split. |
+| 5 | 2026-08-19 | Independent re-review (Codex) | NOT APPROVED — 0 High; round-4 Low wording closed; 1 Medium (durable ordering) + 3 Low | Medium: crash-consistent ordering was incomplete — `commit-uncertain` did not require the durable `unacked → commit-uncertain` write-ahead **before** sending `credentialAck`, and reconnect promotion did not require the server to durably promote/CAS-revoke **before** sending `reconnectAccept`; a crash in either gap could still strand the client. Low: server provisional successors were time-bounded but not cardinality-bounded (repeated crashed offers could accumulate `P₁…Pₙ`). Low: the §9.2 outcome split was not exhaustive (replayed MAC, `callerId`/`bindingPub`/`browser` mismatch, over-long `exp`, and the `ticketProof`-verify-failure case were undefined or unassigned). Construction and all vectors independently revalidated; no High. |
+| 5-rev | 2026-08-19 | Spec revision | Findings addressed | Client write-ahead before `credentialAck`; server durable promote/CAS-revoke before `reconnectAccept`; server provisional bounded with idempotent re-offer; §9.2 outcome map made exhaustive with the `browser` check and deferrals. |
+| 6 | 2026-08-19 | Independent re-review (Codex) | NOT APPROVED — 0 High; 1 Medium + 4 Low | Medium: a crash after the client's committed-write but before pruning could leave two `committed` entries with the active pointer still on the predecessor, and recovery did not say how to choose — a conforming client could loop on the revoked credential. Low: the journal alternative needed a replay-before-`/v1` barrier; "idempotent re-offer" was under-defined; first-pair orphan `commit-uncertain` cleanup was undefined; §9.2 lacked a MAC-first check order (so an honest prior-generation ticket could be misclassified) and over-claimed a "mint window". Construction and all vectors independently reproduced; no High. Reviewer: once the Medium is fixed the Low items are deferrable to implementation tracking and the gate may be considered satisfied. |
+| 6-rev | 2026-08-19 | Spec revision (this document) | Findings addressed; gate satisfied | The client writes `committed` **and** `activeCredentialId` in one atomic durable write before pruning, and recovery tries `activeCredentialId` first, so a crash-before-prune is disambiguated by the pointer, never by guessing (§6.7/§12). Journal replay MUST finish before `/v1` accepts auth; "idempotent re-offer" re-sends the identical stored `{credentialId, mutualKey}`; a first-pair orphan `commit-uncertain` (no committed sibling) may be cleaned after the 10-minute server provisional TTL (§6.7). §9.2 now fixes MAC-first check order, requires `localToken` to persist while only `serverGeneration` rotates, and reframes `exp` as a remaining-lifetime bound. **Six independent adversarial rounds re-confirmed 0 High; the Medium is closed; the residual Low items are tracked to implementation. Pre-implementation cryptographic-review gate is satisfied.** |
+| Dep-pin | 2026-08-20 | Maintainer (dependency audit-basis record, §14.2) | Recorded — diff review pending | Pinned `@noble/[email protected]` and `@noble/[email protected]` at exact versions in the TypeScript implementation (§3). Audit basis: the Cure53 audit of September 2024 was performed at `@noble/curves` 1.6.0; the second pillar of that basis — a maintainer review of the upstream diff from 1.6.0 to 2.0.1 — is **pending maintainer confirmation before Phase-A release**; no such review has been performed yet. |
+
+[RFC 9382]: https://www.rfc-editor.org/rfc/rfc9382
+[RFC 5869]: https://www.rfc-editor.org/rfc/rfc5869
+[RFC 8032]: https://www.rfc-editor.org/rfc/rfc8032
+[RFC 7914]: https://www.rfc-editor.org/rfc/rfc7914
+[RFC 4648]: https://www.rfc-editor.org/rfc/rfc4648
diff --git a/docs/bridge-pairing-protocol.zh-CN.md b/docs/bridge-pairing-protocol.zh-CN.md
new file mode 100644
index 00000000..4dba2058
--- /dev/null
+++ b/docs/bridge-pairing-protocol.zh-CN.md
@@ -0,0 +1,989 @@
+# Motrix Bridge 配对协议 — MBP1
+
+规范性文档,版本 1(`protocolVersion = 1`)。
+
+本文档定义 Motrix 浏览器扩展与 Motrix bridge server 之间配对与认证的 wire
+契约,并把所有密码学参数钉死到字节级。**MUST**、**MUST NOT**、**SHOULD**、
+**MAY** 按 RFC 2119 / RFC 8174 的含义使用。
+
+状态:**密码学审查 gate 已满足**(六轮独立对抗审查,均重新确认 0 High;
+发现已处理,残留 Low 项跟踪到实现——见附录 C 审查日志)。Phase-A 实现可以
+开始;[§14](#14-审查与实现-gate) 中其余 Phase-A 前置条件仍适用。
+
+相关文档:[RFC 9382](SPAKE2)、[RFC 5869](HKDF)、[RFC 8032](edwards25519
+编码)、[RFC 7914](scrypt)、[RFC 4648](base32 背景;MBP1 使用 §7 定义的
+Crockford 字母表)。MDXP 应用层协议不受 MBP1 影响,由 `@motrix/mdxp` 包定义;
+MBP1 安全信道位于 MDXP **之下**。
+
+---
+
+## 1. 概述
+
+Native Messaging(NM)时代对 server 的认证是隐式的:WebSocket 端口来自
+`endpoint.json`——一个 owner-only(0600)文件——因此连上这个端口就证明对端是
+用户自己的 Motrix。固定候选端口(16802–16806)移除了这一证明。MBP1 以下列
+机制替代:
+
+1. **首次配对** — code-entry 平衡 PAKE(SPAKE2,[RFC 9382]),其口令是一个
+ 短时效配对码,**由 Motrix 显示、由用户手动输入进扩展**。假 server 没有
+ 对话框也没有配对码,用户无从输入:首次配对在构造上即 fail closed。
+2. **重连** — 基于长期对称凭据(`mutualKey`)的双向 challenge–response。
+ bearer token 绝不出现在网络或 URL 中。
+3. **安全信道** — 握手后的每一帧、双向,都包裹在带严格序号的 AES-256-GCM
+ envelope 内。MDXP 载荷只在该 envelope 内传输。
+4. **NM attestation** — 在 Native Messaging 可用的环境,NM host 铸造一张
+ 一次性 ticket,证明调用方*是哪一个*扩展,支撑审批对话框中的
+ `official / attested-non-official / unverified` 三态身份显示。
+
+角色分配:**扩展是 A 方**(发起方,使用点 *M*),**Motrix bridge server 是
+B 方**(应答方,使用点 *N*),与 [RFC 9382] §3.1 的规定一致。
+
+### 1.1 MBP1 不防御什么
+
+明示边界以免读者高估保证。不在范围内:同 UID 本地代码(可 `ptrace` Motrix、
+读取 `storage.local`)、root 或具备 raw-socket / eBPF 能力的代码、共享 X11
+输入注入、被攻破的浏览器。MBP1 必须挡住的攻击者是**共宿主机的不同 UID
+用户**:其可以抢占 loopback 候选端口并主动连接或中继,但无法读取其他 UID 的
+0600 文件,也无法被动截获其他 UID 已建立的 loopback 流。
+
+**透明中继**(抢占端口、把一场 PAKE 会话逐帧转发给真正的 Motrix)会建立一条
+它自己无法读取的端到端密钥。AEAD 信道使其得不到明文、无法伪造、无法篡改;
+剩余的——存在于路径中、可见流量大小与时序、成为扩展 pin 的端口——是 loopback
+端口抢占的固有残留,如实记录,不声称已关闭。
+
+---
+
+## 2. 记号与规范编码
+
+- `x ‖ y` — 字节串拼接。
+- `len64LE(s)` — `s` 的字节长度,编码为 **8 字节小端**整数(与 [RFC 9382]
+ §3.2 一致)。
+- `enc(s)` — `len64LE(s) ‖ s`。除非另行说明,字符串按 UTF-8 编码;规范结构中
+ 的每个字符串字段 MUST 仅含 ASCII,实现 MUST 拒绝这些字段中的非 ASCII 输入。
+- `encU32BE(n)` / `encU64BE(n)` — 4/8 字节大端无符号整数。
+- `OS2IP(b)` — 把字节串 `b` 按大端解释为整数。
+- `I2OSP(n, k)` — 把 `n` 编码为 `k` 字节大端串。
+- JSON wire 消息中的 Base64 一律为 **无 padding 的 base64url**([RFC 4648]
+ §5)。解码器 MUST 拒绝带 padding 或非规范输入。
+- “constant-time 比较”指运行时间不随首个差异字节位置变化的逐字节比较。
+
+---
+
+## 3. Ciphersuite(固定;无协商)
+
+MBP1 v1 只支持恰好一个 ciphersuite。没有协商、没有降级路径;不会说该
+ciphersuite 的对端直接握手失败。
+
+| 组件 | 选择 |
+|---|---|
+| 群 *G* | edwards25519([RFC 8032]);基点 *P* = RFC 8032 基点;阶 `ℓ = 2^252 + 27742317777372353535851937790883648493`;cofactor `h = 8` |
+| 点编码 | `pA`、`pB`、`K` 均为 32 字节 RFC 8032 压缩编码 |
+| PAKE | SPAKE2([RFC 9382]),ciphersuite SPAKE2-edwards25519-SHA256-HKDF-HMAC(Table 1 第 6 行) |
+| Hash | SHA-256 |
+| KDF | HKDF-SHA-256([RFC 5869]) |
+| MAC | HMAC-SHA-256 |
+| MHF(口令→标量) | scrypt([RFC 7914]),`N=2^14, r=8, p=1, dkLen=64` |
+| AEAD | AES-256-GCM,12 字节 nonce,16 字节 tag |
+| 签名(ticket 绑定) | Ed25519([RFC 8032]) |
+
+**固定点** *M*、*N* 取 [RFC 9382] §6 的 edwards25519 常量(32 字节 RFC 8032
+编码,hex):
+
+```
+M = d048032c6ea0b6d697ddc2e86bda85a33adac920f1bf18e1b0c6d166a5cecdaf
+N = d3bfb518f44f3430f29d0c92af503865a1ed3281dc69b35dd868ba85f886c4ab
+```
+
+**实现来源。** 曲线运算、SPAKE2 组合、scrypt 与 Ed25519 MUST 来自捆绑的、经
+独立审计的库并以**精确版本**锁定:TypeScript 侧为 **`@noble/[email protected]`**
+与 **`@noble/[email protected]`**(即生成规范性测试向量所用的版本)。Cure53
+2024 年 9 月的审计基于 `@noble/curves` 1.6.0。**Phase-A 发布前待确认:**
+补全此锁定版本审计依据所需的、对 1.6.0 到 2.0.1 上游 diff 的 maintainer
+审阅尚未进行;审查日志(附录 C)记录了这一状态。任何版本升级都要重跑
+全部向量并更新此锁定。
+MUST NOT 使用 WebCrypto 的 X25519/Ed25519:其要求 Chrome 133 / Firefox
+130,而扩展
+支持 Chrome 120+ / Firefox 121+(见附录 B)。对称原语(AES-256-GCM、
+HKDF-SHA-256、HMAC-SHA-256)MAY 使用在上述最低版本普遍可用的 WebCrypto。
+所有涉密比较 MUST 为 constant-time;标量乘法 MUST 对标量 constant-time
+(noble-curves 满足)。
+
+---
+
+## 4. 传输面与入口 demultiplexing
+
+bridge server 监听 loopback,绑定候选段 **16802–16806** 中第一个空闲端口
+(全占用时降级 ephemeral 端口)。与 MBP1 相关的四个面:
+
+| 面 | 方法 | 认证 | 用途 |
+|---|---|---|---|
+| `/discovery` | `GET` | 无 | 探测 hint:这里有没有 Motrix、是哪个实例? |
+| `/nonce` | `POST` + 自定义头 | 无 | 一次性配对 nonce 签发 |
+| `/pair` | WS upgrade,`?nonce=` | MBP1 首次配对 | code-entry PAKE 配对 |
+| `/v1` | WS upgrade,URL 无凭据 | MBP1 重连 | challenge–response 会话 |
+
+**Demultiplexing 仅由路由决定,且发生在消费任何 nonce、创建任何会话对象、
+排队任何对话框之前。** `/pair` 只接受 MBP1 首配状态机;`/v1` 只接受 MBP1
+重连状态机。不存在 token-only 模式、`?token=` 查询参数或可降级的 legacy
+帧格式。两条路由上的连接在 MBP1 完成前都留在带硬性 deadline 与容量上限的
+pre-authentication 表中;它们绝不进入 live-session map,也不能驱逐已认证
+会话。
+
+**两条 WebSocket 路由都要求 `motrix-bridge.v1` subprotocol。** 客户端 MUST 在
+`Sec-WebSocket-Protocol` 中提供它;提供列表中不含它的请求会在检查路由之前、也在
+消耗任何 nonce 之前以 **401** 拒绝。这是硬性门而非提示:不带它的客户端连不到任何
+一个状态机。
+
+---
+
+### 4.1 `GET /discovery`
+
+未认证、可重放,**只是 hint,绝不是信任决策**。响应
+(`Cache-Control: no-store`):
+
+```json
+{ "app": "motrix-bridge", "apiVersion": 1,
+ "instanceId": "<persisted per-install UUID>", "appVersion": "2.0.0-beta.20",
+ "runtime": "electron",
+ "extensionPairing": { "protocol": "mbp1", "versions": [1] },
+ "applicationProtocols": { "mdxp": ["1.0"] } }
+```
+
+`instanceId` 是路由 hint,用于决定优先探测哪个候选端口。兼容性字段可让扩展在
+配对前停止并解释升级要求,但仍只是未认证 hint:MUST NOT 据此选择 legacy
+降级、授予信任或代替认证后的 capability 确认。扩展 MUST 只在该端口上完成
+双向认证的 MBP1 会话之后才提交端口 pin。
+
+### 4.2 `POST /nonce`
+
+取代原 `GET /nonce`;GET 路由 MUST 移除(返回 404)。请求 MUST 携带自定义头
+`X-Motrix-Bridge: 1`;该头使请求成为 non-simple 请求,跨源网页会被浏览器
+preflight 拦截(server 不授予任何 CORS)。响应:
+
+```json
+{ "nonce": "<one-shot opaque ASCII string>", "ttlSeconds": 60 }
+```
+
+Nonce 一次性、60 秒过期、只被 `/pair` 消费,任何一方 MUST NOT 持久化。
+server MUST 限制未消费 nonce 总数(默认 32)、施加全局签发速率限制,并在
+存在 origin 时按 verified origin 配额限流。
+
+### 4.3 Host 头校验
+
+绑定 loopback 期间,所有 HTTP 路由与 WebSocket upgrade MUST 拒绝(403)
+`Host` 不严格等于 `127.0.0.1[:port]`、`localhost[:port]` 或 `[::1][:port]`
+的请求。这封死 DNS rebinding。(server shell 绑定非 loopback 时维持其既有
+token + 反向代理模型,不在 MBP1 范围内。)
+
+---
+
+## 5. 扩展身份三态
+
+审批对话框 MUST 区分三种身份状态;证明*是哪一个*扩展在调用,不等于证明它是
+*官方*扩展:
+
+| 状态 | 条件 | UI |
+|---|---|---|
+| `official` | 已证明的调用方身份——Chromium 的 verified `Origin` host,或有效 NM attestation ticket(§9)内的 `callerId`——出现在不可变 allowlist `src/shared/config/native-messaging-extensions.json` 中 | 可展示 Motrix 品牌 |
+| `attested-non-official` | 有效 ticket 证明了确切的调用方 ID,但该 ID 不在 allowlist 中 | 展示原始已证明 ID,无品牌 |
+| `unverified` | 无任何 attestation:不带 ticket 的任何 Firefox `/pair`(`moz-extension://<UUID>` origin 无法映射到 Gecko ID)、候选段扫描到的对端 | 警示样式,展示原始 claimed ID |
+
+规则:
+
+- “官方”身份**只**读不可变 allowlist——绝不读 NM manifest 集合(后者包含
+ 用户自行添加的 registry ID)。
+- verified origin 只来自 WebSocket upgrade 的 `Origin` 头——绝不来自查询
+ 参数或消息内的自报字段。
+- Chromium 上,若 `Origin` host 不等于 `claimedExtensionId`,server MUST
+ 拒绝配对。Firefox 上 `moz-extension://` origin 无法对照 claimed Gecko ID;
+ 无 ticket 时状态即 `unverified`。
+- verified origin 绑定到会话、凭据 principal、限流 key 与 PAKE transcript
+ (§6.4)。本地原生进程可以伪造任意 `Origin` 头;origin 绑定只在浏览器
+ 内部抬高门槛。面向用户的边界仍是配对码 + 审批对话框,辅以伪造 origin
+ 轮换也绕不过的全局弹窗上限。
+
+---
+
+## 6. 首次配对 — code-entry SPAKE2
+
+### 6.1 消息流程
+
+信道激活前的所有 `/pair` 消息都是单个 WebSocket **文本**帧,内容为恰好一个
+带 `type` 判别字段的 JSON 对象。二进制字段用 base64url。未知 `type`、乱序
+消息、重复消息、超大帧(认证前 > 16 KiB)或 schema 校验失败的 JSON MUST 以
+`protocolViolation` 中止连接。
+
+```
+extension (A) Motrix (B)
+ | |
+ |-- pairHello ------------------------------>| 校验 nonce、origin、
+ | | ticket;排队审批对话框
+ |<------------------------------- pairAccept | (对话框显示配对码)
+ | |
+ | 用户在 Motrix 窗口读取配对码 |
+ | 用户在扩展中输入配对码 |
+ | |
+ |-- pakeA {pA} ----------------------------->|
+ |<----------------------------- pakeB {pB} |
+ |-- confirmA {cA, ticketProof?} ------------>| 验证 cA(+ proof)
+ |<----------------------------- confirmB {cB}|
+ | 验证 cB |
+ |============ AEAD 信道激活 ==================|
+ |<------------------------- credentialOffer |
+ | 持久化到 storage.local |
+ |-- credentialAck --------------------------->| 持久化 commit
+ |<--------------------- credentialCommitted |
+ |============ MDXP initialize... ============|
+```
+
+#### `pairHello`(A→B)
+
+```json
+{ "type": "pairHello", "protocolVersion": 1,
+ "browser": "chromium" | "firefox",
+ "claimedExtensionId": "<store ID or Gecko ID>",
+ "clientInstallationId": "<UUIDv4 persisted in storage.local>",
+ "nmTicket": { ... }, // 可选,§9
+ "ticketBindingKey": "<b64url 32-byte Ed25519 public key>" // 当且仅当携带 nmTicket 时必填
+}
+```
+
+收到后 server MUST 依次:校验 `?nonce=`(一次性、未过期)——nonce 无效时在
+做任何后续工作之前关闭 socket;校验 Host 头与 `Origin`;在**创建任何会话
+状态或对话框之前**执行 pending-pair 去重(以 verified origin 为 key)、全局
+pending 上限与 backoff(§7.3);若携带 `nmTicket` 则校验之(§9),要求
+ticket 的 `bindingPub` 等于 `ticketBindingKey`、`callerId` 等于
+`claimedExtensionId`;解析身份三态;然后恰好排队一个审批对话框。
+
+#### `pairAccept`(B→A)
+
+```json
+{ "type": "pairAccept", "protocolVersion": 1, "instanceId": "<UUID>" }
+```
+
+对话框排队后发送。扩展 popup 随即提示输入配对码。`pairAccept` 不携带任何
+批准语义——扩展 MUST NOT 把任何 server 消息当作“用户已批准”;只有 key
+confirmation 成功才是证明。
+
+#### `pakeA` / `pakeB`
+
+```json
+{ "type": "pakeA", "pA": "<b64url 32 bytes>" }
+{ "type": "pakeB", "pB": "<b64url 32 bytes>" }
+```
+
+#### `confirmA` / `confirmB`
+
+```json
+{ "type": "confirmA", "cA": "<b64url 32 bytes>",
+ "ticketProof": "<b64url 64-byte Ed25519 signature>" } // 当且仅当发送过 nmTicket 时必填
+{ "type": "confirmB", "cB": "<b64url 32 bytes>" }
+```
+
+### 6.2 配对码 → 标量 `w`
+
+配对码(§7)规范化为 Crockford 字母表上的 8 字符串。令 `pw` 为其 8 个
+ASCII 字节。双方计算:
+
+```
+salt = "MBP1/w/v1" ‖ UTF8(pairNonce)
+h = scrypt(pw, salt, N=2^14, r=8, p=1, dkLen=64)
+w = OS2IP(h) mod ℓ
+```
+
+`pairNonce` 是本 `/pair` 连接消费的那个 ASCII nonce 串原文,使 `w` 会话
+唯一。若 `w = 0`,以 `pairingFailed` 中止(概率 ≈ 2^-252;不附带重试语义)。
+512 位散列 mod ℓ 的偏差可忽略(RFC 9382 §3.2 只要求多 64 位)。scrypt 是
+RFC 推荐的 MHF;每次尝试只需计算一次,同时也彻底封死在配对码存活期内对
+主动攻击 transcript 记录的离线穷举。
+
+### 6.3 SPAKE2 计算
+
+按 [RFC 9382] §3.3,A = 扩展,B = Motrix:
+
+- A 以**拒绝采样**([RFC 9382] §7)从 `[1, ℓ)` 均匀抽取 `x`:抽 32 个
+ CSPRNG 字节按大端解释,值为 0 或 ≥ ℓ 时重抽。`X = x·P`,`pA = w·M + X`。
+- B 以同样方式抽取 `y`。`Y = y·P`,`pB = w·N + Y`。
+- 收到的点 MUST 能按 RFC 8032 规范编码解码为曲线上的点;否则以
+ `protocolViolation` 中止。(noble-curves 拒绝非规范编码。)
+- A 计算 `K = h·x·(pB − w·N)`;B 计算 `K = h·y·(pA − w·M)`;`h = 8`。
+ 若 `K` 为单位元则中止(计为一次失败尝试,§7.2)。
+- `x`、`y` MUST 每次协议运行新抽、绝不复用;所有 PAKE 状态仅存在于内存,
+ 运行以任何方式结束时即销毁。
+
+### 6.4 Transcript `TT` 与身份
+
+```
+A_id = enc("MBP1/A/v1") ‖ enc(browser) ‖ enc(verifiedOrigin)
+ ‖ enc(claimedExtensionId) ‖ enc(clientInstallationId)
+B_id = enc("MBP1/B/v1") ‖ enc("motrix-bridge") ‖ enc(instanceId)
+
+TT = enc(A_id) ‖ enc(B_id) ‖ enc(pA) ‖ enc(pB) ‖ enc(K) ‖ enc(I2OSP(w, 32))
+```
+
+- `browser` 取 `pairHello` 中的原文;`verifiedOrigin` 是 `Origin` 头值的
+ ASCII 序列化(如 `chrome-extension://<id>` 或 `moz-extension://<uuid>`)——
+ 扩展在本地计算自己的 origin;任何不一致都会在构造上破坏 key confirmation
+ (misbinding 属性)。
+- `pA`、`pB`、`K` 是 32 字节点编码;`w` 按大端补齐到 32 字节(定长,
+ RFC 9382 §3.3)。
+
+**AAD**(绑入 confirmation key,RFC 9382 §4):
+
+```
+AAD = encU32BE(protocolVersion) ‖ enc(pairNonce)
+ ‖ enc(ticketBindingKeyOrEmpty) ‖ enc(ticketDigestOrEmpty)
+
+ticketDigest = SHA-256(
+ encU32BE(v) ‖ enc(purpose) ‖ encU32BE(ticketProtocolVersion)
+ ‖ enc(serverGeneration) ‖ enc(browser) ‖ enc(callerId)
+ ‖ encU64BE(exp) ‖ enc(bindingPub) ‖ enc(mac))
+```
+
+- 携带 `nmTicket` 时,`ticketBindingKeyOrEmpty` 为 `pairHello.ticketBindingKey`
+ 的原始 32 字节,否则为空串。
+- `ticketDigest` 覆盖 **ticket 每个字段解析值的上述规范编码**——`v` 与
+ `ticketProtocolVersion` 为 U32、`exp` 为 U64、字符串为 UTF-8、
+ `bindingPub`/`mac` 为其 base64url 解出的原始字节。(不哈希 JSON 原始
+ 拼写/空白;双方各自重新编码所解析的值。)未携带 ticket 时
+ `ticketDigestOrEmpty` 为空串。这里刻意**不**复用 §9.2 的规范 MAC 输入
+ (后者把 `purpose` 固定为常量域标签),以便翻转*任何* wire 字段——`mac`、
+ `purpose`、`bindingPub`、`callerId`、`serverGeneration`、`browser`、
+ `exp`、`v`、`ticketProtocolVersion`——都会改变 digest。
+
+由于单独的 `ticketBindingKey` 字段与每个 ticket 字段都被绑定于此,路径上的
+攻击者修改其中任一项都会使双方 AAD 失配、破坏 key confirmation:此类篡改让
+配对 **fail closed**,绝不静默降级为 `unverified`。顺序说明:server 在
+`pairHello` 处运行 §9.2 ticket 校验,*先于* key confirmation。因此被篡改的
+ticket 并非“绕过”校验——校验对 server 实际收到的内容进行;是随后的 *key
+confirmation* 因双方 digest 不同而失败。对双方逐字节一致的 ticket,其内容级
+结果按 §5/§9.2:generation 未知或过期降级为 `unverified`,而有效但 `callerId`
+不在 allowlist 的 ticket 得到 `attested-non-official`(不是 `unverified`)。
+
+### 6.5 Key schedule 与 confirmation
+
+按 [RFC 9382] §4,Hash 为 SHA-256:
+
+```
+Ke ‖ Ka = SHA-256(TT) (各 16 字节)
+KcA ‖ KcB = HKDF-SHA-256(ikm=Ka, salt=empty,
+ info="ConfirmationKeys" ‖ AAD, L=32) (各 16 字节)
+cA = HMAC-SHA-256(KcA, TT)
+cB = HMAC-SHA-256(KcB, TT)
+```
+
+A 先发 `cA`。B MUST 在发送 `cB` 之前验证 `cA`(若曾出示 ticket,还须验证
+`ticketProof`:ticket-binding 私钥对 `"MBP1/ticket-proof/v1" ‖ TT` 的
+Ed25519 签名,按 §9.1 的 RFC 8032 strict 规则用 ticket 的 `bindingPub`
+验证——`zip215: false`,绝不使用 ZIP-215 宽松默认)。A MUST 在发送任何后续
+内容之前验证 `cB`。两处验证均为 constant-time。验证失败计为一次**失败尝试**
+(§7.2),B 回复 `pairError {code:"codeMismatch", attemptsRemaining}` ——
+其后(配对码仍存活时)MAY 在同一连接上以全新 `x` 发起新一轮 `pakeA`。
+
+**双方独立执行尝试限制。** 扩展 MUST 自行执行**每配对会话至多 3 轮协议
+运行**的上限与自 `pairHello` 起 **180 秒**的绝对会话 deadline,外加自己的
+全局失败 backoff——无论对端报告什么:server 发来的 `attemptsRemaining` 是
+不可信的展示数据,MUST NOT 用来放宽本地限制。否则,假冒或中继的 listener
+可以无限回复 `codeMismatch`,每诱导一轮就收获一次口令试探。
+
+### 6.6 配对会话 traffic key
+
+双向 confirmation 之后:
+
+```
+kC2S = HKDF-SHA-256(ikm=Ke, salt="MBP1/pair/v1", info="MBP1-pair-traffic-c2s", L=32)
+kS2C = HKDF-SHA-256(ikm=Ke, salt="MBP1/pair/v1", info="MBP1-pair-traffic-s2c", L=32)
+```
+
+`info` label 刻意与重连 label(§8)不同:MBP1 中每个 HKDF/HMAC 调用都携带
+全局唯一的 label,key 分离从不依赖 IKM 或 salt 的偶然差异。
+
+连接上其后的所有帧、双向——凭据消息与 MDXP 一视同仁——都在 AEAD envelope
+(§10)内传输。
+
+### 6.7 凭据签发 — 两阶段提交
+
+在 AEAD 信道内:
+
+1. **B→A `credentialOffer`** `{ "type": "credentialOffer", "credentialId":
+ "<UUIDv4>", "mutualKey": "<b64url 32 CSPRNG bytes>" }`。server 在发送
+ **之前**先以 `provisional` 状态持久化该凭据。
+2. **A** 把 `{credentialId, mutualKey, state:"provisional", sub:"unacked"}`
+ 写入 `storage.local`;随后,**在发送 `credentialAck` 之前,A 先持久化把
+ 子状态 `unacked → commit-uncertain`**(write-ahead),然后才发送
+ **`credentialAck`** `{ "type": "credentialAck", "credentialId": "<same>" }`。
+ write-ahead 是强制的:`commit-uncertain` 必须意味着“ack **可能**已发出”,
+ 使持久翻转与发送之间的崩溃也落到永久保留态、而非老化态。
+3. **B** 持久化标记该凭据为 `committed`,然后发送
+ **`credentialCommitted`** `{ "type": "credentialCommitted" }`。A 将本地
+ 副本标记为 `committed`。
+
+原子性规则:
+
+- server 侧的 provisional 凭据同样可用于重连认证(§8);一次成功的
+ challenge–response 本身就是经认证的确认,会把它提升为 `committed`。
+ **持久提升顺序(server):** 在提升某 provisional 凭据的重连中,server MUST
+ 依次:(i) 验证 `reconnectResponse`,(ii) **持久**提升该 provisional 为
+ `committed`——对轮换而言在同一持久事务内 CAS-提升新的**并**吊销旧的——
+ 然后才 (iii) 发送 `reconnectAccept`。提升未持久前 MUST NOT 发送
+ `reconnectAccept`,否则 accept 之后崩溃可能使刚认证的凭据仍是 provisional
+ 而后过期。若 server 采用「启动时重放轮换 journal」替代单事务,该重放 MUST
+ 在 **`/v1` 开始接受认证之前**完成、并收敛为每 principal 恰好一把有效凭据,
+ 使任何客户端都不会对着半完成的轮换认证。
+- **持久 commit 顺序(client)。** 认证成功时,客户端 MUST 在**一次原子持久
+ 写入**中同时把已认证凭据标记为 `committed` **并**把 `activeCredentialId`
+ 指向它——状态与指针永不失配——之后才可修剪其他凭据。原子写入之后、修剪
+ 之前的崩溃因此无害:存储可能短暂含两条 `committed`,但 `activeCredentialId`
+ 明确指出存活的那把。**恢复顺序:** 若 `activeCredentialId` 已设则先试它;
+ 再试最新 `commit-uncertain` provisional;再试其他 `committed`;再试其余
+ provisional。这保证崩溃-未修剪时绝不选中被吊销的前任,任意位置的 worker
+ 死亡都留下可重连状态——要么完成重连、要么重新配对,绝不困住客户端。
+- 从未被 ack 或使用的 provisional server 凭据会过期(默认 10 分钟)。**server
+ provisional 基数有界,不只是时间有界:** 每个
+ `{principal, currentCommittedCredentialId}` 至多存在**一个**未决 provisional
+ 后继。对同一 `{principal, currentCommittedCredentialId}` 的重复 offer(例如
+ worker 在存储上一个 offer 前死亡、客户端在未变的 committed 凭据上重试)MUST
+ 幂等地复用/替换那唯一槽位,而非累积 `P₁…Pₙ`;下面的 single-flight CAS 对
+ 并发轮换施加同一界限。
+- **轮换**(在已认证 `/v1` 会话内运行同一流程)时:commit-new 与
+ revoke-old MUST 是**单个持久化的 server 事务**(或启动时重放的轮换
+ journal),确保崩溃绝不会留下两把都有效或两把都失效的状态。该事务是对
+ principal 当前 committed `credentialId` 的 **compare-and-swap**,且 server
+ 按 principal **串行化轮换(single-flight)**:从同一旧凭据发起的两个并发
+ 轮换不可能都提交——后者会看到已变化的 current id 而被拒,因此只存在唯一
+ 后继。在「幂等重发」路径(对同一 `{principal, currentCommittedCredentialId}`
+ 在 offer 丢失后重复 offer)上,幂等意味着 server **重发它已持久在该唯一
+ 槽位中的同一 `{credentialId, mutualKey}`**——绝非新铸的替代——使存了上一个
+ offer 的客户端与没存的客户端收敛到同一后继。
+- **客户端绝不因未认证信号销毁凭据。** `authFailed`(§11)是任何 listener
+ 都能伪造的信道前消息,因此其本身 MUST NOT 删除任何存储凭据。重连时客户端
+ 按上述恢复顺序(先 `activeCredentialId`,再最新 `commit-uncertain`,再其他
+ `committed`,再其余 provisional)。一旦建立起经认证的
+ 会话(双向 `reconnectAccept` 验证通过,§8),通过认证的那把即被证明存活,
+ 客户端此后 MUST 删除**该 principal 名下所有其他存储凭据与 pin**——认证后
+ 的修剪是强制而非可选,使被中断的轮换不会累积陈旧 mutual key。若某次重连
+ 没有任何存储凭据通过认证,则保留集留待重试;只有在用户主动要求或凭据被
+ 显式吊销时才回退到全新 code-entry 配对。在任何成功认证之前,客户端把每个
+ principal 的保留集限制为**至多两条**——当前 committed 凭据与唯一最新的
+ provisional 凭据。
+- **provisional 过期是按状态的,绝非无条件。** 客户端 provisional 凭据带
+ 子状态:`unacked`(步骤 2 的持久 `unacked → commit-uncertain` write-ahead
+ 尚未发生)或 `commit-uncertain`(该 write-ahead 已持久,故 `credentialAck`
+ **可能**已发出)。`unacked` 的 provisional MAY 在 **10 分钟**后老化删除——
+ write-ahead 从未完成,故 ack 从未发出、server 从未 commit 它,与 server
+ 自身的 provisional 过期一致。`commit-uncertain` 的 provisional MUST NOT 被
+ 老化删除:ack 可能已到达 server,server 可能已原子地 commit 它并吊销旧凭据
+ (§6.7 轮换),丢弃它会使客户端困在被吊销的凭据上。`commit-uncertain` 凭据保留至
+ 一次经认证的重连解出哪把存活(重连时先试它),再由上面的强制认证后规则
+ 提升或修剪。**孤儿清理(仅首配):** 来自**首次配对**的 `commit-uncertain`
+ 凭据——其 principal 名下**没有**其他 committed 凭据,故无可被困住的对象——
+ MAY 在 server 首配 provisional TTL(10 分钟)可证已过且无成功重连后移除:
+ 该窗口之后 server 已不可能持有它,故它不可用、可安全丢弃并重新配对。由
+ **轮换**产生的 `commit-uncertain`(存在先前 committed 凭据)绝不老化删除,
+ 因为只有重连能证明 server 保留了两者中的哪一把。这既把陈旧密钥限界(每
+ principal 两条),又保证 ack/commit 窗口内任意位置的 worker 死亡仍留下可
+ 重连状态(§6.7 两阶段提交所要求)。
+ 也使假 listener 无法靠重放 `authFailed` 诱使客户端丢弃唯一有效凭据。显式
+ 用户吊销 MUST 立即把存活会话标记为未授权,然后在移除展示/配对 bookkeeping
+ 之前,持久删除 `{browser, verifiedOrigin}` 与所选扩展身份匹配的全部
+ committed 与 provisional 凭据。该持久撤销临界区一开始,server MUST 同步
+ 取消相同 verified Origin 的所有待完成 `/pair` 与 `/v1` 会话,并在临界区结束
+ 前拒绝其新 upgrade,防止已准入的握手在删除后签发或接管替代凭据。之后在
+ 可能时发送经认证的吊销通知并关闭存活 WebSocket;短暂的通知排空窗口不接受
+ 任何控制面请求,先前签发的 key 不能重连。
+- 凭据 principal:`{browser, verifiedOrigin, clientInstallationId}`。第二个
+ 浏览器 profile 是**新的 principal**,作为新凭据配对;签发或轮换一个凭据
+ MUST NOT 影响另一个。
+- 过期或被吊销的凭据一律要求重新 code-entry 配对——绝不静默重新信任。
+
+这与扩展既有的“先持久化、再发送 `motrix/initialized`”顺序保持一致。
+
+### 6.8 MV3 service-worker 生命周期
+
+PAKE 秘密只存在于 worker 内存。在受支持的 Chromium 上,打开的 `/pair`
+WebSocket 会重置 worker 空闲计时器(见附录 B);即便 worker 仍在配对中途
+死亡,server 会将会话超时,nonce 与配对码随之作废,不留任何半成品凭据
+(§6.7),popup 提供重试。实现 MUST 覆盖批准前、批准后两种 worker 死亡
+测试。
+
+---
+
+## 7. 配对码
+
+### 7.1 格式
+
+- **字母表**:Crockford base32 — `0123456789ABCDEFGHJKMNPQRSTVWXYZ`
+ (32 个符号;排除 `I`、`L`、`O`、`U`)。
+- **长度**:8 个符号 = 恰好 40 bit,取自 5 个 CSPRNG 字节:将 40 bit 按
+ 大端切成 8 组、每组 5 bit,逐组索引字母表。
+- **展示**:大写、按 `XXXX-XXXX` 分组,**只**显示在 Motrix 审批对话框中。
+ 配对码即 PAKE 口令:MUST 绝不以任何形式经任何网络信道传输,MUST 绝不
+ 写入日志。
+- **输入规范化**(扩展侧,本地校验之前):去掉 ASCII 连字符与空格;转
+ 大写;映射 `O→0`、`I→1`、`L→1`;然后要求恰好 8 个字母表符号。本地校验
+ 失败的输入 MUST 在 popup 内直接拒绝、不产生任何网络流量(不消耗尝试
+ 次数)。
+
+### 7.2 生命周期与尝试次数
+
+- 每个配对会话一个配对码,在审批对话框排队时生成。
+- 配对码在以下最早时点作废:生成后 **120 秒**、对话框被关闭、WebSocket
+ 关闭、或**第 3 次失败尝试**。
+- **失败尝试**指会话上任何到达 `pakeA` 却**因任何原因**未达成双向
+ confirmation 的协议运行——`cA` 错误、`ticketProof` 错误、`K` 为单位元、
+ `pakeA` 之后的畸形点、协议中止、或 socket 中途关闭。尝试计数由双方独立
+ 记录(§6.5);断连 MUST NOT 使计数低于该配对码已消耗的次数。
+- 第 3 次失败后 server 发送 `pairError {code:"rateLimited"}`、关闭
+ socket,并作废 nonce 与配对码。
+
+### 7.3 全局 backoff 与弹窗上限
+
+- 同一时刻至多**一个**审批对话框可见;超过 pending 上限(默认排队 3 个)
+ 的并发 `/pair` 请求在**任何会话变更之前**即以 `pairError {code:"busy"}`
+ 拒绝。pending-pair 去重以 verified origin 为 key。
+- 全局失败计数器在任何**排队过对话框或至少消耗过一次尝试**的配对会话
+ 未以双向 confirmation 告终时递增——包括断连、中止、对话框被关闭、超时
+ 与耗尽。猜测者因此无法靠在配对码耗尽前关闭 socket 来躲开计数。第 `n`
+ 次(连续失败计)对话框之前,server 强制 `min(30 · 2^(n−1), 3600)` 秒的
+ 锁定期,其间新 `/pair` 会话一律以 `rateLimited` 拒绝。计数器在配对成功
+ 或 24 小时后重置。
+- **客户端全局 backoff(与 server 计数器类比,但不同键)。** 扩展在
+ `storage.local` 中维护**单一真正全局**的首配失败计数器——**对所有未认证
+ 首配目标共用一个计数器**,刻意**不**按 `instanceId`、`port` 或任何攻击者
+ 可控值分键(假 listener 每次返回新 `instanceId` 也绝不能换到新计数器;
+ `instanceId` 从不是安全信号,§4.1)。其在任何到达 `pakeA` 却未达成双向
+ confirmation 的首配会话上递增,包括扩展自己关闭 socket 主动放弃的会话。
+ 开始第 `n` 个(连续全局失败计)首配会话之前,扩展强制
+ `min(30 · 2^(n−1), 3600)` 秒锁定,拒绝打开 `/pair` 并显示“稍后重试”状态;
+ 配对成功或 24 小时后重置。这是 server 计数器(§7.3)的客户端类比,抵御
+ 同一在线猜测攻击,只是二者计数时点略有不同——server 在带码对话框排队时
+ 递增,客户端在会话到达 `pakeA` 时递增。**已认证的、按 `instanceId`** 的
+ 重连失败子计数器 MAY 额外存在,但与本全局首配计数器分离、绝不替代它。
+ 两个客户端限制(每会话 ≤3 轮、本条全局 backoff)都与 server 报告的任何
+ `attemptsRemaining` 无关地成立。
+- 该计数器是进程生命周期状态;能重启 Motrix 的同 UID 攻击者不在威胁模型
+ 内(§1.1)。40 bit 码空间、每会话 3 次尝试加上述锁定表,在线猜测者的
+ 成功概率约为 `3·k / 2^40`(`k` 为会话数)——按上限每天不足约 700 个
+ 会话,即持续攻击每天约 2·10⁻⁹,且每个会话都需要受害者屏幕上一次新的
+ 用户批准对话框。
+
+---
+
+## 8. 重连 — `/v1` 上的 challenge–response
+
+`/v1` upgrade 的 URL **不**携带任何凭据。`/v1` 上信道激活前的消息完全遵循
+§6.1 的成帧规则:单个 WebSocket 文本帧、每帧恰好一个带 `type` 判别字段的
+JSON 对象、二进制字段用 base64url、认证前 16 KiB 帧上限,未知 type、乱序
+或重复消息、超大帧、schema 校验失败一律以 `protocolViolation` 中止。整个
+challenge–response MUST 在 upgrade 后 **10 秒**内完成,否则 server 关闭
+socket。upgrade 之后(Host 与 Origin 检查同 §4.3/§5),server 先发言:
+
+```json
+{ "type": "reconnectChallenge", "protocolVersion": 1, "S": "<b64url 32 CSPRNG bytes>" }
+```
+
+客户端应答:
+
+```json
+{ "type": "reconnectResponse", "credentialId": "<UUIDv4>",
+ "C": "<b64url 32 CSPRNG bytes>", "mac": "<b64url 32 bytes>" }
+```
+
+其中重连 transcript 为
+
+```
+RT = enc("MBP1/reconnect/v1") ‖ encU32BE(protocolVersion)
+ ‖ enc(credentialId) ‖ enc(browser) ‖ enc(verifiedOrigin) ‖ enc(instanceId)
+mac = HMAC-SHA-256(mutualKey, "MBP1-R/c" ‖ S ‖ C ‖ RT)
+```
+
+客户端侧的 `browser` 与 `verifiedOrigin` 取存储凭据 principal 的值,server
+侧取当前连接的实际值;不一致即 MAC 失败(misbinding 属性)。server 以
+constant-time 验证。成功后回复:
+
+```json
+{ "type": "reconnectAccept", "mac": "<b64url HMAC-SHA-256(mutualKey, \"MBP1-R/s\" ‖ S ‖ C ‖ RT)>" }
+```
+
+客户端 MUST 在**发送任何其他内容之前**验证 `reconnectAccept.mac`——假
+listener 重放 `/discovery` 数据得不到任何可用信息,且客户端 MUST 把验证
+失败视为“不是我的 Motrix”(清除端口 pin,回退到扫描 / 重新配对;绝不
+静默重新信任)。
+
+失败行为:对未知 `credentialId` 与错误 MAC,server MUST 表现完全一致——
+ID 未知时用 dummy key 做 constant-time 验证、统一回复
+`pairError {code:"authFailed"}` 后关闭——使该面不会成为凭据 ID oracle。
+重连尝试按 verified origin 与全局双重限流。
+
+Traffic key:
+
+```
+kC2S = HKDF-SHA-256(ikm=mutualKey, salt=S ‖ C, info="MBP1-traffic-c2s", L=32)
+kS2C = HKDF-SHA-256(ikm=mutualKey, salt=S ‖ C, info="MBP1-traffic-s2c", L=32)
+```
+
+其后所有帧均 AEAD 包裹(§10)。MDXP `motrix/initialize` 仍是第一条应用
+消息,现在位于 envelope 之内。
+
+---
+
+## 9. NM attestation ticket
+
+浏览器会把调用方扩展的身份传给 NM host(Chromium:argv 中的 caller
+origin;Firefox:扩展 ID 参数)。NM host 读取它并铸造一张一次性 ticket,
+使 server 能解析 §5 的三态。这是 MBP1 中**唯一**的 ticket 类型。
+
+### 9.1 Bootstrap 流程(扩展 ↔ host,NM stdio)
+
+1. 扩展为本次 bootstrap 生成一个**临时 Ed25519 密钥对**(`bindingPriv`、
+ `bindingPub`)。
+
+ **Binding-key 校验(server 侧)。** `bindingPub` MUST 能解码为规范的
+ RFC 8032 点编码,且**不是单位元、不是 small-order 点、位于素数阶子群**
+ (torsion-free);否则 ticket 无效。`ticketProof` MUST 以 **RFC 8032
+ strict 模式——noble-curves 2.0.1 的 `zip215: false`** 验证:它强制规范
+ `R` 编码与 `S < ℓ`,并拒绝 ZIP-215(宽松默认 `zip215: true`)会接受的
+ 可锻/非规范输入。MUST NOT 使用宽松的 ZIP-215 模式。注意 noble 的 strict
+ 模式仍检查 **cofactored** 群方程 `[8]·S·B = [8]·R + [8]·k·A`,并非
+ cofactorless;MBP1 不依赖 cofactorless 相等。持有证明的安全性来自
+ `bindingPriv` 保密**加上**上述 `bindingPub` 强制校验:若缺少
+ small-order/torsion 检查,`bindingPub` = 单位元、`ticketProof` =
+ (单位元 ‖ 0) 对任何消息都满足该方程,把 ticket 变成 bearer object——正是
+ 该校验将其封死。实现 MUST 把所有 small-order/torsion `bindingPub` 编码
+ 作为负例测试。知道 `bindingPriv` 的合法签名者仍可造出被 noble cofactored
+ 方程接受的 torsion 微扰签名(`R = rB + T`、`S = r + k·a`);这是
+ **conformance caveat,不是伪造**(需要私钥),因此向量 MUST NOT 断言其
+ 被拒。
+2. 扩展 → host:`{ "action": "bootstrap", "protocolVersion": 1,
+ "bindingPub": "<b64url 32 bytes>" }`。
+3. host 读取 `endpoint.json`(0600 owner-only——这份文件所有权*就是*
+ attestation 信任根;Windows 对应物是 owner = 当前用户,且 DACL 只向该
+ 用户、`LocalSystem` 与 `BUILTIN\Administrators` 授权,对无法证明无害的
+ ACE 类型一律 fail closed),对记录端口做存活检查(TCP / `/discovery` 探测;
+ 未认证即足够——MBP1 客户端会在下游自行认证 server),必要时唤醒
+ Motrix,经 `POST /nonce` 取得新 nonce,铸造 ticket,然后应答:
+ `{ "action": "requestPair", "protocolVersion": 1, "port": <n>,
+ "nonce": "<...>", "nmTicket": { ... } }`。
+4. 扩展把 ticket 连同 `ticketBindingKey = bindingPub` 放进
+ `pairHello.nmTicket`,随后通过 `confirmA.ticketProof`(§6.5)证明持有
+ `bindingPriv`。该绑定使 ticket 无法被重放到持有该私钥的握手之外的任何
+ 握手上。
+
+host MUST NOT 向扩展暴露 `localToken`,MUST NOT 记录 ticket 材料,且不持有
+`clientInstallationId`(由 PAKE transcript 绑定)。
+
+### 9.2 Ticket 格式
+
+Wire 形态(JSON,位于 `pairHello` 内):
+
+```json
+{ "v": 1, "purpose": "mbp1-attestation", "protocolVersion": 1,
+ "serverGeneration": "<UUID>", "browser": "chromium" | "firefox",
+ "callerId": "<verified caller identity from the browser>",
+ "exp": 1755600000, "bindingPub": "<b64url 32 bytes>",
+ "mac": "<b64url 32 bytes>" }
+```
+
+规范 MAC 输入(字段顺序固定,与 JSON key 顺序无关):
+
+```
+ticketKey = HKDF-SHA-256(ikm=UTF8(localToken), salt="MBP1/nm-ticket/v1",
+ info="mac", L=32)
+mac = HMAC-SHA-256(ticketKey,
+ enc("mbp1-attestation") ‖ encU32BE(v) ‖ encU32BE(protocolVersion)
+ ‖ enc(serverGeneration) ‖ enc(browser) ‖ enc(callerId)
+ ‖ encU64BE(exp) ‖ enc(bindingPub raw 32 bytes))
+```
+
+除 `mac` 自身外,ticket 的每个 wire 字段——包括格式版本 `v`——都被 MAC
+覆盖,任何字段都无法被单独调换。MAC 开头的 `enc("mbp1-attestation")` 是
+固定域标签,不是 wire 上的 `purpose`;wire 上的 `purpose` 值改由 §6.4 的
+AAD ticket digest 钉死(该 digest 哈希 ticket **各字段解析值的规范编码**,
+按 §6.4,而非原始 JSON 序列化),因此篡改 `purpose`(或任何其他 wire 字段)
+会使双方 AAD 失配、让 key confirmation fail closed,而不仅是降级。
+
+**校验在 `pairHello` 处进行,先于 key confirmation**——server 对它实际收到的
+ticket 校验,绝不等到字节一致被证明。`pairHello` 另要求 `nmTicket.browser ==
+pairHello.browser`(为另一浏览器铸造的 ticket 不绑定本会话)。
+
+**检查顺序具规范性:先验 `mac`。** `ticketKey` 仅由 `localToken` 派生,故
+`localToken` MUST 跨 bridge 重启持久——只有 `serverGeneration` 轮换。server
+在任何其他检查之前先用当前 `localToken` 派生的 `ticketKey` 重算 `mac`;`mac`
+失败立即中止,只有 `mac` 有效的 ticket 才进入 generation / `exp` / `callerId`
+检查。这正是让由**先前** server generation 铸造的诚实 ticket(在持久
+`localToken` 下 `mac` 有效、`serverGeneration` 陈旧)解析为语义 `unverified`
+**降级**、而非被误判为 bad-`mac` 中止的原因;反之真正伪造的 `mac` 无论其
+generation 字段如何都中止。由于没有经认证的铸造时间戳,`exp` 约束是**剩余
+寿命**上限(`exp ≤ now + 60 秒`),并非对原始铸造时刻的证明。
+
+**每种结果都有定义——下表穷尽。** 每个检查恰好映射到三种处置之一:**中止**
+(`pairError`,不配对)、**降级**(以低于 `official` 的身份继续)、或**延后**
+(在流程后续判定)。
+
+| Ticket 条件 | 处置 |
+|---|---|
+| `mac` constant-time 重算失败 | **中止**(`protocolViolation`) |
+| `v` / `purpose` / `protocolVersion` 不精确 | **中止**(`protocolViolation`) |
+| `bindingPub` 未过 §9.1(畸形、单位元、small-order、非 torsion-free) | **中止**(`protocolViolation`) |
+| `bindingPub != pairHello.ticketBindingKey` | **中止**(`protocolViolation`) |
+| `callerId != pairHello.claimedExtensionId` | **中止**(`protocolViolation`) |
+| `nmTicket.browser != pairHello.browser` | **中止**(`protocolViolation`) |
+| ticket MAC 曾出现过(一次性重放) | **中止**(`protocolViolation`) |
+| `exp` 距当前超过 60 秒(剩余寿命 > 60 秒) | **中止**(`protocolViolation`) |
+| 真实 ticket,`serverGeneration` 未知/过期 | **降级** → `unverified` |
+| 真实 ticket,`exp` 已过(过期) | **降级** → `unverified` |
+| 真实且有效 ticket,`callerId` 不在 allowlist | **降级** → `attested-non-official`(§5) |
+| 真实且有效 ticket,`callerId` 在 allowlist | `official`(§5) |
+| `confirmA.ticketProof` schema 非法(非 64 字节) | **延后** → `protocolViolation`(§6.5) |
+| `confirmA.ticketProof` 格式合法但 strict 验证失败 | **延后** → `codeMismatch`,消耗一次尝试(§6.5/§7.2) |
+
+对最影响安全的两条结构性规则的理由:
+
+- **结构性/密码学失败中止而非降级。** 合法扩展绝不出示这种 ticket,而在途
+ 修改早已被 §6.4 的 AAD 绑定在 key confirmation 处拦截。中止解决了 §6.5
+ 要求有效 `ticketProof`、而无效 `bindingPub` 永远无法满足的矛盾。结构校验
+ 发生在审批对话框**之前**、不触碰弹窗/失败计数器,故不放大 DoS 面;被损坏
+ 的合法 ticket 只导致自愈式重新 bootstrap,绝非凭据泄露。
+- **`ticketProof` 验证不是 `pairHello` 的结果。** server 在 `pairHello` 处
+ 无法得知“证明验证通过”——证明在 `confirmA`(§6.5)到达。故 §9.2 只校验
+ *ticket*,证明的结果如上表末两行延后到 §6.5。
+
+两条边界规则:
+
+- **与 §5 的优先级**:ticket 的身份贡献只能*抬升*身份,绝不降低——allowlist
+ 中的 Chromium verified origin 无论有无 ticket 都成立 `official`。但**结构性
+ 中止优先于身份**:若*已出示*的 ticket 命中上表任一中止行,即使调用方本可凭
+ verified origin 成为 `official`,配对也中止(合法官方调用方绝不出示结构损坏
+ 的 ticket,客户端只需无 ticket 重新 bootstrap)。**不**出示 ticket 的调用方
+ 不受影响——其身份单凭 origin 按 §5 判定。
+- **篡改不是降级**:由于 ticket digest 被绑入 PAKE AAD(§6.4),传输中被
+ 修改的 ticket 会使双方 AAD 失配、破坏 key confirmation、使配对 fail
+ closed——在途篡改绝不会静默变成语义降级。
+
+`callerId` 取值:Chromium — 从 argv 的 `chrome-extension://<id>/` origin
+提取的 32 字符扩展 ID;Firefox — Gecko ID 参数。ticket 证明*是哪一个*
+扩展在调用;是否*官方*由 allowlist 决定(§5)。
+
+---
+
+## 10. AEAD envelope
+
+在 `/pair` 上自 §6.6 起、在 `/v1` 上自 §8 起激活,双向、覆盖**每一帧**。
+envelope 位于 MDXP 之下:MDXP JSON-RPC 载荷字节即明文,原样不动。
+
+```
+frame = seq64BE ‖ AES-256-GCM(key = k_dir, nonce, plaintext, aad)
+nonce = dirTag(4 字节 BE) ‖ seq64BE (12 字节)
+dirTag = 0x00000001(client→server)| 0x00000002(server→client)
+aad = "MBP1/env/v1"(ASCII,11 字节)
+```
+
+- 帧是 WebSocket **二进制**消息;一条消息一帧。
+- `seq` 每方向从 0 开始、每帧恰好加 1。接收方 MUST 要求 `seq` 等于本地
+ 期望计数(严格单调、无窗口);任何跳号、重复或 GCM 认证失败 MUST 立即
+ 关闭连接(`envelopeViolation`)。这就是重放保护:重放 = 严格序号检查。
+- key 按方向独立(§6.6/§8),nonce 唯一性对每个 key 由构造保证。但唯一性
+ 不等于用量上界:连接 MUST 在任一方向超过 **2^24 帧**或 **2^30 个已加密
+ AES block(16 GiB 明文)**(以先到者为准)之前关闭——经重连重建、派生
+ 新 key。这组上界把 AES-GCM 机密性/完整性的合计 advantage 稳稳压在
+ TLS 1.3 分析(RFC 8446 §5.5;另见 RFC 9053 §4.1.1)使用的 ≈2^-57 目标
+ 之下;MDXP 控制流量比它们低若干数量级。v1 不做原地 rekey。
+- 单帧明文上限 1 MiB。server 的 WebSocket parser MUST 把单条消息限制在对应的
+ 最大 envelope 大小(1 MiB + 8-byte sequence + 16-byte tag),替换 transport
+ 更大的默认值,使未认证对端无法先迫使其缓冲超大消息。配对/重连状态机仍独立
+ 执行更严格的 16 KiB 认证前帧限制。信道激活后的文本帧是协议违例。
+
+由于 envelope key 源自 PAKE 或凭据派生,即使观察了完整握手,假端点或中继
+端点依然无法读取或修改 URL、cookie、header 或命令。
+
+---
+
+## 11. 错误与关闭语义
+
+`pairError`(`/pair` 与 `/v1`,信道激活前):
+
+```json
+{ "type": "pairError", "code": "<code>", "attemptsRemaining": 2 }
+```
+
+| Code | 含义 | 备注 |
+|---|---|---|
+| `unsupportedVersion` | `protocolVersion` ≠ 1 | fail closed,无协商 |
+| `busy` | pending-pair 上限或去重命中 | 发生在任何会话变更之前 |
+| `rateLimited` | 全局 backoff 或尝试耗尽 | §7.3 |
+| `codeMismatch` | key confirmation 失败 | 携带 `attemptsRemaining` |
+| `expired` | nonce 或配对码超时 | |
+| `aborted` | 用户关闭了对话框 | |
+| `authFailed` | `/v1` challenge–response 失败 | 未知 ID 与错误 MAC 表现一致 |
+| `protocolViolation` | 畸形/乱序帧、非法点编码、超大帧 | 立即关闭 |
+| `pairingFailed` | 内部失败(如 `w = 0`) | 通用 |
+
+除用户需要的 `codeMismatch`/`attemptsRemaining` 之外,server MUST NOT 泄露
+内部失败发生在哪一步。实现 MUST NOT 在任何日志级别记录配对码、`w`、PAKE
+中间值、key、MAC 或 ticket。
+
+**WebSocket 关闭码。** AEAD 信道激活之后不再有 `pairError`——§10 的违规与用量
+上限都通过关闭连接来报告:
+
+| Code | 含义 | 客户端动作 |
+|---|---|---|
+| `1002` | 任何 §10/§11 协议违规。统一码:从不指明是哪一项检查失败。 | 视本次尝试失败。 |
+| `4001` | 达到了 §10 的单方向用量上限(2^24 帧或 2^30 个加密块)。双方都没有失当。 | 按 §8 重连并导出新密钥。 |
+| `1011` | 关闭方自身的真实内部故障。 | 视为对端缺陷。 |
+
+尝试在 outbound 方向 seal 超过 1 MiB 明文上限的数据,是本地进程的内部故障,
+而非对端协议违规,因此以 `1011` 关闭;被拒绝的应用帧 MUST NOT 让会话继续存活。
+
+`4001` 位于 [RFC 6455] §7.4.2 为应用间约定保留的私有段;没有合适的标准码可用——
+`1002` 会指控对端犯了并未发生的违规,而 `1011` 会把一个例行的、规范要求的转换
+说成缺陷。
+
+只有 server 能发出全部三个码:浏览器的 WebSocket API 拒绝 1000/3000–4999
+之外的一切关闭码,因此扩展客户端在自身 §10 用量上限触发时发送 `4001`,其余
+故障一律裸关闭(对端收到 `1005`,"no status received")。这种不对称之所以
+合规,正是因为下一条规则。
+
+**客户端 MUST NOT 依据关闭码分支。** 已建立的 envelope 信道的任何关闭都意味着
+"按 §8 重建",一个从不知晓这些数字的合规客户端行为依然正确——这些码的作用是让
+日志可读,而不是承载协议状态。实现 MUST NOT 赋予 `4001` 其他含义。
+
+---
+
+## 12. 凭据与 pin 生命周期(扩展侧)
+
+- `PinStore` 是以 `credentialId` 为 key 的带版本存储,保存
+ `{port, instanceId}`。pin **只在**该端口上完成双向认证会话之后提交——
+ 绝不因 `/discovery` 提交。
+- pinned 端口不匹配 → 对匹配 `instanceId` 做全候选段扫描 → 仅在认证后
+ 重新提交;否则清除 pin,回退到全新 code-entry 配对。
+- `storage.local` 凭据条目携带 `state: "provisional" | "committed"`、
+ provisional 的 `unacked` / `commit-uncertain` 子状态(§6.7),外加一个与
+ `committed` 转变**原子写入**的 `activeCredentialId` 指针。重连恢复顺序:
+ 若已设则先试 `activeCredentialId`,再试最新 `commit-uncertain` provisional,
+ 再试其他 `committed`,再试其余 provisional(崩溃-未修剪留下的两条 `committed`
+ 由指针消歧,绝不靠猜)。凭据**只在经认证的会话证明哪一把存活
+ 之后**才删除(§6.7);信道前的 `authFailed` 本身绝不删除凭据,因此伪造的
+ `authFailed` 无法使客户端陷入无凭据可用。当没有任何存储凭据通过认证时,
+ 保留集留待重试,仅在用户主动操作或凭据被吊销时才回到首次配对。保留状态
+ 有界:每个 principal 至多保留 committed 凭据加最新一条 provisional。
+ provisional 条目带子状态(§6.7):`unacked` 的 10 分钟后过期,而
+ `commit-uncertain` 的(其 `credentialAck` 已发出、server 可能已 commit)
+ 绝不老化删除——保留并在重连时先试它,直至经认证的会话解出为止。一次成功
+ 认证 MUST 删除该 principal 名下其他所有凭据及其 `PinStore` 条目,使被中断
+ 的轮换既不留无界陈旧密钥、也绝不让客户端困在被吊销的凭据上。
+
+---
+
+## 13. 测试向量
+
+跨实现向量具有规范性,位于本文档旁的
+[`bridge-pairing-protocol-vectors.json`](./bridge-pairing-protocol-vectors.json)。
+两个仓库的 CI(以及 ticket 向量对应的 Rust native host)MUST 对照其校验。
+文件包含(字节串一律 hex 编码):
+
+1. **`spake2`** — 固定输入(`code`、`pairNonce`、身份,以及像 RFC 向量
+ 一样直接给出的标量 `w`、`x`、`y`)下的完整 edwards25519 首配运行及期望
+ 的 `pA`、`pB`、`K`、`TT`、`Ke`、`Ka`、`KcA`、`KcB`、`cA`、`cB`、traffic
+ key。由于 [RFC 9382] Appendix B 只提供 P-256 向量,通用 SPAKE2 核心的
+ 实现 MUST 另行通过**全部四组** RFC P-256 向量,以先证明核心组合(TT
+ 布局、key schedule)正确,再信任 edwards25519 实例化。
+2. **`scryptW`** — 配对码规范化与 `w` 派生(§6.2)。
+3. **`reconnect`** — `RT`、客户端与 server MAC、traffic key(§8)。
+4. **`nmTicket`** — `ticketKey` 派生、规范 MAC 与 `ticketDigest`(§9.2/§6.4),
+ 外加 **weak binding-key 拒绝用例**:单位元、其他 small-order 点、以及
+ **dirty(非 torsion-free)** `bindingPub` MUST 被 §9.1 校验拒绝;单位元
+ 密钥伪造 `(R = identity, S = 0)` MUST 失败;`S ≥ ℓ` 与非规范 `R` 签名
+ MUST 被 strict 验证拒绝;篡改任一 wire 字段(含 `mac`、`purpose`)MUST
+ 经 §6.4 的 AAD 绑定使 key confirmation fail closed。
+5. **`envelope`** — 给定 key/明文下的 AEAD 帧,含期望拒绝用例:错误序号、
+ 篡改密文、以及**仅翻转 dirTag**(key 不变)的用例——忽略 `dirTag` 的
+ 实现无法蒙混过关。
+
+向量文件之外,实现测试套件 MUST 覆盖向量无法表达的有状态用例:双侧的
+尝试上限(§6.5/§7.2)、跨断连的全局计数(§7.3)、以及轮换的崩溃点
+(§6.7)。
+
+向量由随 Phase-A 实现一并入库的参考脚本生成;在记录的输入下重新生成 MUST
+是确定性的。
+
+---
+
+## 14. 审查与实现 gate
+
+1. 在编写任何 MBP1 协议代码之前,本文档 MUST 通过一次**独立密码学审查**。
+ **已满足**——六轮独立对抗审查(2026-08-19),每轮均重新确认 0 High;末轮
+ 清除最后一个 Medium,仅余跟踪到实现的 Low 项。完整审查记录(审查人、
+ 日期、发现、处置)见附录 C。
+2. 实现 MUST 以精确版本锁定 `@noble/curves`(2.0.1)与 `@noble/hashes`
+ (2.0.1),并记录其对应的审计依据(§3)。
+3. 附录 B 中的事实在 Phase-A 发布前 MUST 对照实际最低版本浏览器构建矩阵
+ (Chrome 120、Firefox 121)重新验证;它们引自厂商文档,而非本仓库自身
+ 的证据。
+
+---
+
+## 附录 A — 安全属性与验收标准
+
+重放真实 `instanceId` 的恶意 loopback listener 必须无法获得:配对码、任何
+凭据、完成的 MDXP initialize、任何下载提交。具体地:
+
+- **终结型 MITM**(与两侧各跑一场 PAKE)在没有配对码时无法产生两把确认
+ 过的 key;带对抗性密钥生成的 grinder 测试 MUST 失败。SPAKE2 没有可
+ 研磨的短公开摘要,SAS 式比对上的 chosen-key 碰撞攻击不适用。
+- **透明中继**既得不到明文也得不到有效凭据(AEAD 篡改/读取测试);其
+ 留在路径中的能力按威胁模型(§1.1)属范围之外,不是通过的验收项。
+- **Transcript misbinding** — 双方之间任何 origin、browser、ID、版本、
+ nonce 或 binding key 的调换 MUST 破坏 key confirmation(§6.4/§6.5)或
+ 重连 MAC(§8)。
+- **握手后完整性** — 帧篡改、乱序、重放或跨方向反射 MUST 关闭连接
+ (§10)。
+- **在线猜测** — 受**双侧独立执行**的每会话 3 次尝试、防断连规避的尝试
+ 计数、以及全局锁定表约束(§6.5/§7.2/§7.3);对端提供的
+ `attemptsRemaining` 绝不放宽本地限制。
+- **Ticket 重放与伪造** — 一次性缓存、60 秒过期、generation 绑定、带
+ strict 验证与 small-order/torsion 拒绝的 Ed25519 持有证明(§9.1)、
+ 以及绑入 AAD 的 ticket digest(§6.4),使被截获或被篡改的 ticket 无法
+ 用于任何其他握手或 server generation;small-order `bindingPub` 伪造
+ MUST 被拒绝。
+- **AEAD 用量上界** — 会话在任一方向到达 2^24 帧或 2^30 个加密 block
+ 之前关闭(§10)。
+
+## 附录 B — 经外部验证的浏览器事实
+
+于 2026-08-19 对照厂商文档验证;按 §14.3 在构建矩阵上复核。
+
+| 事实 | 取值 | 来源 |
+|---|---|---|
+| WebCrypto X25519 可用性 | Chrome/Edge 133+、Firefox 130+、Safari 17+ —— **高于**扩展最低版本(Chrome 120 / Firefox 121),故捆绑 noble-curves | [caniuse: SubtleCrypto X25519](https://caniuse.com/mdn-api_subtlecrypto_importkey_x25519) |
+| Firefox MV3 host permissions | Firefox 127 之前 MV3 host permissions **不**在安装时授予;127 起显示在安装提示中并授予,但用户随时可撤销,且更新新增的 host permissions 不会提示 | [Mozilla Add-ons blog, "Manifest V3 updates" (2024-05-14)](https://blog.mozilla.org/addons/2024/05/14/manifest-v3-updates/) |
+| MV3 service-worker keepalive | Chrome 116 起 WebSocket 活动会重置 30 秒 service-worker 空闲计时器;keepalive 需在每个 30 秒窗口内交换一条消息 | [Chrome developers: WebSockets in service workers](https://developer.chrome.com/docs/extensions/how-to/web-platform/websockets) |
+| 扩展最低版本 | `minimum_chrome_version: "120"`,Gecko `strict_min_version: "121.0"` | `motrix-extension/packages/ext/manifest.config.ts` |
+
+Firefox 两行的推论:扩展在探测 loopback 之前 MUST 先检查
+`permissions.contains({origins:["http://127.0.0.1/*"]})`,缺失时在用户手势
+内请求,被拒时展示明确的降级状态。验收矩阵覆盖 Firefox 121–126、127+ 与
+手动撤销。
+
+## 附录 C — 审查日志
+
+| 轮次 | 日期 | 审查方 | 结论 | 摘要 |
+|---|---|---|---|---|
+| 1 | 2026-08-19 | 独立对抗性密码学审查(Codex) | NOT APPROVED — 0 High / 4 Medium / 6 Low | SPAKE2 构造与全部已发布向量被独立复现为正确。Medium:单侧尝试计数(M1)、缺乏依据的 2^40 帧 GCM 上限(M2)、ZIP-215/small-order `bindingPub` 伪造(M3)、非事务性轮换(M4)。Low:ticket `v` 未入 MAC 且 ticket 未绑 AAD、标量采样表述不均匀与 `w = 0` 概率错误、HKDF traffic label 复用、负例向量覆盖不足、`/v1` 信道前成帧未规定、依赖版本未真正锁定。 |
+| 1-rev | 2026-08-19 | 规范修订 | 发现已处理 | 双侧尝试限制与防断连规避的计数(§6.5/§7.2/§7.3);2^24 帧 / 2^30 block AEAD 上界(§10);strict Ed25519 验证加规范/small-order/torsion-free `bindingPub` 校验与负例(§9.1);事务性轮换与确定性客户端恢复(§6.7/§12);ticket `v` 入 MAC、ticket digest 绑入 AAD、篡改 fail-closed 与 §5 优先级(§6.4/§9.2);拒绝采样标量与概率修正(§6.3/§6.2);pair/reconnect HKDF label 区分(§6.6);RFC P-256 全四组向量、dirTag 单独负例与 weak-key 负例(§13);`/v1` 成帧与 deadline(§8);noble 精确锁定与审计依据要求(§3)。 |
+| 2 | 2026-08-19 | 独立复审(Codex) | NOT APPROVED — 0 High;M2/M3/L2/L3/L5/L6 已闭合;M1/M4/L1/L4 部分;新增 1 Low(N1) | M1:客户端全局 backoff 未充分规定。M4:(1)未认证的 `authFailed` 可能删除客户端唯一有效凭据;(2)缺少针对并发轮换的 single-flight/CAS。L1:MAC 硬编码 `purpose`、AAD 遗漏单独的 `ticketBindingKey`,这两个字段只降级而非 fail closed。L4:缺少 dirty-torsion / 非规范 `R` / `S ≥ ℓ` 负例。N1:noble 2.0.1 的 `zip215:false` 用 cofactored 方程,故“cofactorless”措辞不准确。 |
+| 2-rev | 2026-08-19 | 规范修订 | 发现已处理 | 客户端全局 backoff 规定;轮换 single-flight CAS;客户端绝不因未认证 `authFailed` 删除凭据;AAD 绑定 `ticketBindingKey` 加覆盖 ticket wire 字段的 `ticketDigest`;验证措辞更正为 RFC 8032 strict(cofactored);向量新增 dirty-torsion / `S ≥ ℓ` / 非规范 `R` / 逐字段篡改负例。 |
+| 3 | 2026-08-19 | 独立复审(Codex) | NOT APPROVED — 0 High;M4(1)/M4(2)/L1/N1 已闭合;M1 部分(Medium blocker);L4 部分(Low blocker);新增 2 Low | M1:客户端计数器按攻击者可控的 `instanceId` 分键,假 listener 每次返回新 `instanceId` 即得新计数器。L4:向量对 `S ≥ ℓ` / 非规范 `R` 只有描述(无恶意字节),且仅覆盖两个小阶点编码。新 Low:认证后修剪只是 `MAY`、客户端 provisional 凭据无过期/上界(陈旧密钥增长)。新 Low:§6.4 措辞称未在 allowlist 的 `callerId` 降级为 `unverified`(与 §5/§9.2 的 `attested-non-official` 矛盾),并暗示校验只在字节一致后才进行。 |
+| 3-rev | 2026-08-19 | 规范修订 | 发现已处理 | 客户端首配 backoff 改为单一真正全局计数器(§7.3);认证后修剪强制、保留集限界(§6.7/§12);§6.4 身份/编码措辞更正;向量以真实恶意字节覆盖 `S ≥ ℓ` / 非规范 `R`、完整小阶点集与全字段篡改自检(§13)。 |
+| 4 | 2026-08-19 | 独立复审(Codex) | NOT APPROVED — 0 High;M1/L4 已闭合;1 Medium + 2 Low | Medium:无条件 10 分钟客户端 provisional 过期可能在轮换中删除 server 已 commit 的 `commit-uncertain` 凭据,使客户端困在被吊销的凭据上。Low:§9.2 仍称 digest 逐字节哈希 wire 字段、且只有字节一致的 ticket 才“走到校验”,与 §6.4 的规范解析规则及 pairHello 顺序矛盾。Low:§9.2 笼统的“任何校验失败→降级、不中止”与 §6.5/§9.1 冲突(无效/small-order `bindingPub` 使必需的 `ticketProof` 不可能成立)。全局计数器首配 griefing 评为可接受的可用性残留(§1.1);多 profile 修剪判定为正确。 |
+| 4-rev | 2026-08-19 | 规范修订 | 发现已处理 | 按状态的 provisional 过期;§9.2 规范解析 digest、pairHello 顺序校验、中止/降级拆分。 |
+| 5 | 2026-08-19 | 独立复审(Codex) | NOT APPROVED — 0 High;round-4 Low 措辞已闭合;1 Medium(持久顺序)+ 3 Low | Medium:崩溃一致性顺序不完整——`commit-uncertain` 未要求在发送 `credentialAck` **之前**先持久完成 `unacked → commit-uncertain` write-ahead,重连提升也未要求 server 在发送 `reconnectAccept` **之前**先持久提升/CAS 吊销;两处缝隙的崩溃仍可能困住客户端。Low:server provisional 后继只时间有界、无基数界(重复崩溃的 offer 可累积 `P₁…Pₙ`)。Low:§9.2 结果拆分不穷尽(重放 MAC、`callerId`/`bindingPub`/`browser` 不匹配、`exp` 过长、以及 `ticketProof` 验证失败情形未定义或未归类)。构造与全部向量独立复核;无 High。 |
+| 5-rev | 2026-08-19 | 规范修订 | 发现已处理 | 客户端在 `credentialAck` 前 write-ahead;server 在 `reconnectAccept` 前持久提升/CAS 吊销;server provisional 限界、幂等重发;§9.2 结果表穷尽、加 `browser` 检查与延后。 |
+| 6 | 2026-08-19 | 独立复审(Codex) | NOT APPROVED — 0 High;1 Medium + 4 Low | Medium:客户端 committed 写入后、修剪前崩溃可能留下两条 `committed` 而 active 指针仍指向前任,恢复未定义如何选择——合规客户端可能在被吊销的凭据上循环。Low:journal 替代方案需「重放先于 `/v1`」屏障;「幂等重发」定义不足;首配孤儿 `commit-uncertain` 清理未定义;§9.2 缺 MAC-first 检查顺序(诚实的先前 generation ticket 可能被误判)且过度声称「铸造窗口」。构造与全部向量独立复现;无 High。审查者:Medium 修复后 Low 项可延后到实现跟踪、gate 即可视为满足。 |
+| 6-rev | 2026-08-19 | 规范修订(本文档) | 发现已处理;gate 满足 | 客户端在修剪前于**一次原子持久写入**中同时写 `committed` **与** `activeCredentialId`,恢复先试 `activeCredentialId`,使崩溃-未修剪由指针消歧、绝不靠猜(§6.7/§12)。journal 重放 MUST 在 `/v1` 接受认证前完成;「幂等重发」重发已存的同一 `{credentialId, mutualKey}`;首配孤儿 `commit-uncertain`(无 committed 兄弟)可在 10 分钟 server provisional TTL 后清理(§6.7)。§9.2 固定 MAC-first 顺序、要求 `localToken` 持久而只 `serverGeneration` 轮换、并把 `exp` 重述为剩余寿命上限。**六轮独立对抗审查均重新确认 0 High;Medium 已闭合;残留 Low 项跟踪到实现。编码前密码学审查 gate 满足。** |
+| Dep-pin | 2026-08-20 | Maintainer(依赖审计依据记录,§14.2) | 已记录——diff 审阅待确认 | 在 TypeScript 实现中精确锁定 `@noble/[email protected]` 与 `@noble/[email protected]`(§3)。审计依据:Cure53 2024 年 9 月的审计基于 `@noble/curves` 1.6.0;该依据的第二支柱——对从 1.6.0 到 2.0.1 的上游 diff 的 maintainer 审阅——**待 Phase-A 发布前确认**,目前尚未进行该审阅。 |
+
+[RFC 9382]: https://www.rfc-editor.org/rfc/rfc9382
+[RFC 5869]: https://www.rfc-editor.org/rfc/rfc5869
+[RFC 8032]: https://www.rfc-editor.org/rfc/rfc8032
+[RFC 7914]: https://www.rfc-editor.org/rfc/rfc7914
+[RFC 4648]: https://www.rfc-editor.org/rfc/rfc4648
diff --git a/flatpak/cargo-sources.json b/flatpak/cargo-sources.json
index 5365c98f..acb3464e 100644
--- a/flatpak/cargo-sources.json
+++ b/flatpak/cargo-sources.json
@@ -1,4 +1,121 @@
[
+ {
+ "type": "archive",
+ "archive-type": "tar-gzip",
+ "url": "https://static.crates.io/crates/base64/base64-0.22.1.crate",
+ "sha256": "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6",
+ "dest": "cargo/vendor/base64-0.22.1"
+ },
+ {
+ "type": "inline",
+ "contents": "{\"package\": \"72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6\", \"files\": {}}",
+ "dest": "cargo/vendor/base64-0.22.1",
+ "dest-filename": ".cargo-checksum.json"
+ },
+ {
+ "type": "archive",
+ "archive-type": "tar-gzip",
+ "url": "https://static.crates.io/crates/block-buffer/block-buffer-0.10.4.crate",
+ "sha256": "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71",
+ "dest": "cargo/vendor/block-buffer-0.10.4"
+ },
+ {
+ "type": "inline",
+ "contents": "{\"package\": \"3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71\", \"files\": {}}",
+ "dest": "cargo/vendor/block-buffer-0.10.4",
+ "dest-filename": ".cargo-checksum.json"
+ },
+ {
+ "type": "archive",
+ "archive-type": "tar-gzip",
+ "url": "https://static.crates.io/crates/cfg-if/cfg-if-1.0.4.crate",
+ "sha256": "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801",
+ "dest": "cargo/vendor/cfg-if-1.0.4"
+ },
+ {
+ "type": "inline",
+ "contents": "{\"package\": \"9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801\", \"files\": {}}",
+ "dest": "cargo/vendor/cfg-if-1.0.4",
+ "dest-filename": ".cargo-checksum.json"
+ },
+ {
+ "type": "archive",
+ "archive-type": "tar-gzip",
+ "url": "https://static.crates.io/crates/cpufeatures/cpufeatures-0.2.17.crate",
+ "sha256": "59ed5838eebb26a2bb2e58f6d5b5316989ae9d08bab10e0e6d103e656d1b0280",
+ "dest": "cargo/vendor/cpufeatures-0.2.17"
+ },
+ {
+ "type": "inline",
+ "contents": "{\"package\": \"59ed5838eebb26a2bb2e58f6d5b5316989ae9d08bab10e0e6d103e656d1b0280\", \"files\": {}}",
+ "dest": "cargo/vendor/cpufeatures-0.2.17",
+ "dest-filename": ".cargo-checksum.json"
+ },
+ {
+ "type": "archive",
+ "archive-type": "tar-gzip",
+ "url": "https://static.crates.io/crates/crypto-common/crypto-common-0.1.7.crate",
+ "sha256": "78c8292055d1c1df0cce5d180393dc8cce0abec0a7102adb6c7b1eef6016d60a",
+ "dest": "cargo/vendor/crypto-common-0.1.7"
+ },
+ {
+ "type": "inline",
+ "contents": "{\"package\": \"78c8292055d1c1df0cce5d180393dc8cce0abec0a7102adb6c7b1eef6016d60a\", \"files\": {}}",
+ "dest": "cargo/vendor/crypto-common-0.1.7",
+ "dest-filename": ".cargo-checksum.json"
+ },
+ {
+ "type": "archive",
+ "archive-type": "tar-gzip",
+ "url": "https://static.crates.io/crates/digest/digest-0.10.7.crate",
+ "sha256": "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292",
+ "dest": "cargo/vendor/digest-0.10.7"
+ },
+ {
+ "type": "inline",
+ "contents": "{\"package\": \"9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292\", \"files\": {}}",
+ "dest": "cargo/vendor/digest-0.10.7",
+ "dest-filename": ".cargo-checksum.json"
+ },
+ {
+ "type": "archive",
+ "archive-type": "tar-gzip",
+ "url": "https://static.crates.io/crates/generic-array/generic-array-0.14.7.crate",
+ "sha256": "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a",
+ "dest": "cargo/vendor/generic-array-0.14.7"
+ },
+ {
+ "type": "inline",
+ "contents": "{\"package\": \"85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a\", \"files\": {}}",
+ "dest": "cargo/vendor/generic-array-0.14.7",
+ "dest-filename": ".cargo-checksum.json"
+ },
+ {
+ "type": "archive",
+ "archive-type": "tar-gzip",
+ "url": "https://static.crates.io/crates/hkdf/hkdf-0.12.4.crate",
+ "sha256": "7b5f8eb2ad728638ea2c7d47a21db23b7b58a72ed6a38256b8a1849f15fbbdf7",
+ "dest": "cargo/vendor/hkdf-0.12.4"
+ },
+ {
+ "type": "inline",
+ "contents": "{\"package\": \"7b5f8eb2ad728638ea2c7d47a21db23b7b58a72ed6a38256b8a1849f15fbbdf7\", \"files\": {}}",
+ "dest": "cargo/vendor/hkdf-0.12.4",
+ "dest-filename": ".cargo-checksum.json"
+ },
+ {
+ "type": "archive",
+ "archive-type": "tar-gzip",
+ "url": "https://static.crates.io/crates/hmac/hmac-0.12.1.crate",
+ "sha256": "6c49c37c09c17a53d937dfbb742eb3a961d65a994e6bcdcf37e7399d0cc8ab5e",
+ "dest": "cargo/vendor/hmac-0.12.1"
+ },
+ {
+ "type": "inline",
+ "contents": "{\"package\": \"6c49c37c09c17a53d937dfbb742eb3a961d65a994e6bcdcf37e7399d0cc8ab5e\", \"files\": {}}",
+ "dest": "cargo/vendor/hmac-0.12.1",
+ "dest-filename": ".cargo-checksum.json"
+ },
{
"type": "archive",
"archive-type": "tar-gzip",
@@ -38,6 +155,19 @@
"dest": "cargo/vendor/itoa-1.0.18",
"dest-filename": ".cargo-checksum.json"
},
+ {
+ "type": "archive",
+ "archive-type": "tar-gzip",
+ "url": "https://static.crates.io/crates/libc/libc-0.2.189.crate",
+ "sha256": "3eaf3ede3fee6db1a4c2ee091bf8a8b4dccdc6d17f656fb07896ee72867612f2",
+ "dest": "cargo/vendor/libc-0.2.189"
+ },
+ {
+ "type": "inline",
+ "contents": "{\"package\": \"3eaf3ede3fee6db1a4c2ee091bf8a8b4dccdc6d17f656fb07896ee72867612f2\", \"files\": {}}",
+ "dest": "cargo/vendor/libc-0.2.189",
+ "dest-filename": ".cargo-checksum.json"
+ },
{
"type": "archive",
"archive-type": "tar-gzip",
@@ -129,6 +259,32 @@
"dest": "cargo/vendor/serde_json-1.0.151",
"dest-filename": ".cargo-checksum.json"
},
+ {
+ "type": "archive",
+ "archive-type": "tar-gzip",
+ "url": "https://static.crates.io/crates/sha2/sha2-0.10.9.crate",
+ "sha256": "a7507d819769d01a365ab707794a4084392c824f54a7a6a7862f8c3d0892b283",
+ "dest": "cargo/vendor/sha2-0.10.9"
+ },
+ {
+ "type": "inline",
+ "contents": "{\"package\": \"a7507d819769d01a365ab707794a4084392c824f54a7a6a7862f8c3d0892b283\", \"files\": {}}",
+ "dest": "cargo/vendor/sha2-0.10.9",
+ "dest-filename": ".cargo-checksum.json"
+ },
+ {
+ "type": "archive",
+ "archive-type": "tar-gzip",
+ "url": "https://static.crates.io/crates/subtle/subtle-2.6.1.crate",
+ "sha256": "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292",
+ "dest": "cargo/vendor/subtle-2.6.1"
+ },
+ {
+ "type": "inline",
+ "contents": "{\"package\": \"13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292\", \"files\": {}}",
+ "dest": "cargo/vendor/subtle-2.6.1",
+ "dest-filename": ".cargo-checksum.json"
+ },
{
"type": "archive",
"archive-type": "tar-gzip",
@@ -142,6 +298,19 @@
"dest": "cargo/vendor/syn-3.0.3",
"dest-filename": ".cargo-checksum.json"
},
+ {
+ "type": "archive",
+ "archive-type": "tar-gzip",
+ "url": "https://static.crates.io/crates/typenum/typenum-1.20.1.crate",
+ "sha256": "b6f5e870be6c3b371b77fe0ee0bafb859fa4964b4404c27de1d380043c4dda20",
+ "dest": "cargo/vendor/typenum-1.20.1"
+ },
+ {
+ "type": "inline",
+ "contents": "{\"package\": \"b6f5e870be6c3b371b77fe0ee0bafb859fa4964b4404c27de1d380043c4dda20\", \"files\": {}}",
+ "dest": "cargo/vendor/typenum-1.20.1",
+ "dest-filename": ".cargo-checksum.json"
+ },
{
"type": "archive",
"archive-type": "tar-gzip",
@@ -155,6 +324,19 @@
"dest": "cargo/vendor/unicode-ident-1.0.24",
"dest-filename": ".cargo-checksum.json"
},
+ {
+ "type": "archive",
+ "archive-type": "tar-gzip",
+ "url": "https://static.crates.io/crates/version_check/version_check-0.9.5.crate",
+ "sha256": "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a",
+ "dest": "cargo/vendor/version_check-0.9.5"
+ },
+ {
+ "type": "inline",
+ "contents": "{\"package\": \"0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a\", \"files\": {}}",
+ "dest": "cargo/vendor/version_check-0.9.5",
+ "dest-filename": ".cargo-checksum.json"
+ },
{
"type": "archive",
"archive-type": "tar-gzip",
diff --git a/flatpak/generated-sources.json b/flatpak/generated-sources.json
index 72c303d7..cf0ac84a 100644
--- a/flatpak/generated-sources.json
+++ b/flatpak/generated-sources.json
@@ -939,9 +939,9 @@
},
{
"type": "file",
- "url": "https://registry.npmjs.org/@motrix/mdxp/-/mdxp-0.5.0.tgz",
- "sha512": "0c89a6fe4c6c1f8dcf236215fe9f636c99e5c5ef967b4c03e397913ee0024825052958147c3795a63a8aefa6d72b4ba63b6e3967b6e3c57afcaa6e00712fc448",
- "dest-filename": "@motrix__mdxp-0.5.0.tgz",
+ "url": "https://registry.npmjs.org/@motrix/mdxp/-/mdxp-0.6.0.tgz",
+ "sha512": "c9280cb8c13c72115ac76971b442db098accf5ac8672210df148a4606e8c2c683767c23a45363e5daac2e34463858daf56731d2eb7fd7dfed9887ea14a32e476",
+ "dest-filename": "@motrix__mdxp-0.6.0.tgz",
"dest": "flatpak-node/pnpm-tarballs"
},
{
@@ -958,6 +958,13 @@
"dest-filename": "@motrix__plugin-manifest-schema-2.1.0.tgz",
"dest": "flatpak-node/pnpm-tarballs"
},
+ {
+ "type": "file",
+ "url": "https://registry.npmjs.org/@noble/curves/-/curves-2.0.1.tgz",
+ "sha512": "becd40cf638e4c188fe2ad29c235b9685d31a7d9f833156b9a4141c5ce8429973a75d631e60699880b19a2ad2e4515d66e2dc04ffb01aa7d397913ed9f52423f",
+ "dest-filename": "@noble__curves-2.0.1.tgz",
+ "dest": "flatpak-node/pnpm-tarballs"
+ },
{
"type": "file",
"url": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.4.0.tgz",
@@ -965,6 +972,13 @@
"dest-filename": "@noble__hashes-1.4.0.tgz",
"dest": "flatpak-node/pnpm-tarballs"
},
+ {
+ "type": "file",
+ "url": "https://registry.npmjs.org/@noble/hashes/-/hashes-2.0.1.tgz",
+ "sha512": "5e53a511b41c13d7e6b97c6b5535c24e51b69e54576bd463debaf951effeb57fa79a481b5fbdb4607874551de1045f710efc276fc0f6b215463b0371fae940af",
+ "dest-filename": "@noble__hashes-2.0.1.tgz",
+ "dest": "flatpak-node/pnpm-tarballs"
+ },
{
"type": "file",
"url": "https://registry.npmjs.org/@noble/hashes/-/hashes-2.3.0.tgz",
@@ -6880,7 +6894,7 @@
},
{
"type": "inline",
- "contents": "{\"packages\":{\"@adobe__css-tools-4.5.0.tgz\":{\"integrity\":\"6OzddxPio9UiWTCemp4N8cYLV2ZN1ncRnV1cVGtve7dhPOtRkleRyx32GQCYSwDYgaHU3USMm84tNsvKzRCa1Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e8ecdd7713e2a3d52259309e9a9e0df1c60b57664dd677119d5d5c546b6f7bb7613ceb51925791cb1df61900984b00d881a1d4dd448c9bce2d36cbcacd109ad5\",\"name\":\"@adobe/css-tools\",\"version\":\"4.5.0\"},\"@asamuzakjp__css-color-6.0.7.tgz\":{\"integrity\":\"vC/bk1Lz7Tn/EfU9/apOTBk80/8dyGyWMowPoV1tJ52muDGsDqt2HPT2klrFUiY60MQmQv9q8yIht15JnBgDGw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"bc2fdb9352f3ed39ff11f53dfdaa4e4c193cd3ff1dc86c96328c0fa15d6d279da6b831ac0eab761cf4f6925ac552263ad0c42642ff6af32221b75e499c18031b\",\"name\":\"@asamuzakjp/css-color\",\"version\":\"6.0.7\"},\"@asamuzakjp__dom-selector-8.3.2.tgz\":{\"integrity\":\"93Z1N+BQNXysodoicpOIyNh2drHfz/CTf9nnT0FEx72GJcIiwgydD7tGAr78j41LsYn3hlRn+LdGPuBLn1Bl8Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f7767537e050357caca1da22729388c8d87676b1dfcff0937fd9e74f4144c7bd8625c222c20c9d0fbb4602befc8f8d4bb189f7865467f8b7463ee04b9f5065f1\",\"name\":\"@asamuzakjp/dom-selector\",\"version\":\"8.3.2\"},\"@babel__code-frame-7.29.7.tgz\":{\"integrity\":\"Aup7aUOfpbAUg2ROOJN6Iw5f9DMBlzu0mIkm/malLQFN/YQgO48wCj0Kxa3sEHJvPVFg7siR+qRInwXd2qhQKw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"02ea7b69439fa5b01483644e38937a230e5ff43301973bb4988926fe66a52d014dfd84203b8f300a3d0ac5adec10726f3d5160eec891faa4489f05dddaa8502b\",\"name\":\"@babel/code-frame\",\"version\":\"7.29.7\"},\"@babel__compat-data-7.29.7.tgz\":{\"integrity\":\"locTkQyKvwIEgBzVrn8693ebc97F2U8ZHjbXwDXJ5Fn2TCpNwTlKcaKLkdHop5c/icOFE7qt7Q9JC5hnKNa6Gg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"968713910c8abf0204801cd5ae7f3af7779b73dec5d94f191e36d7c035c9e459f64c2a4dc1394a71a28b91d1e8a7973f89c38513baaded0f490b986728d6ba1a\",\"name\":\"@babel/compat-data\",\"version\":\"7.29.7\"},\"@babel__core-7.29.7.tgz\":{\"integrity\":\"RgHBCvtjbOK2gXSNBNIkNoEc9qoVEtau3hj8gEqKQuL3HZAibKarWFEI3Lfm6EYKkLalOh8eSrj9b+ch9H/VBA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4601c10afb636ce2b681748d04d22436811cf6aa1512d6aede18fc804a8a42e2f71d90226ca6ab585108dcb7e6e8460a90b6a53a1f1e4ab8fd6fe721f47fd504\",\"name\":\"@babel/core\",\"version\":\"7.29.7\"},\"@babel__generator-7.29.8.tgz\":{\"integrity\":\"gZbepsdh3WDtgZKWL+vTPh71LSBrm/Y4/QDZBVCcYfmeTEEuoOYwlSy+G1StfJg+/Zy550u/3TATbm7qDbbMtg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8196dea6c761dd60ed8192962febd33e1ef52d206b9bf638fd00d905509c61f99e4c412ea0e630952cbe1b54ad7c983efd9cb9e74bbfdd30136e6eea0db6ccb6\",\"name\":\"@babel/generator\",\"version\":\"7.29.8\"},\"@babel__helper-annotate-as-pure-7.29.7.tgz\":{\"integrity\":\"OoK6239jHPuSQOoS0kfTVKn0b/rVTk0seKq4Gd2UMLtmOVLjDC0ki3e+c90Trqv2gMfvJFqkiljrr568+qddiw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3a82badb7f631cfb9240ea12d247d354a9f46ffad54e4d2c78aab819dd9430bb663952e30c2d248b77be73dd13aeabf680c7ef245aa48a58ebaf9ebcfaa75d8b\",\"name\":\"@babel/helper-annotate-as-pure\",\"version\":\"7.29.7\"},\"@babel__helper-compilation-targets-7.29.7.tgz\":{\"integrity\":\"wem6WaBj4NaVYVdNhLPPVacES6ZJ+KBBfSkTMD3YZxbP3rm3Di85tJU5ljaUNhaOynt+Aj0xruhYuzQBt8n71g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c1e9ba59a063e0d69561574d84b3cf55a7044ba649f8a0417d2913303dd86716cfdeb9b70e2f39b4953996369436168eca7b7e023d31aee858bb3401b7c9fbd6\",\"name\":\"@babel/helper-compilation-targets\",\"version\":\"7.29.7\"},\"@babel__helper-create-class-features-plugin-7.29.7.tgz\":{\"integrity\":\"IY3ZD9Tmooqr3TUhc3DUWxiuo8xx1DWLhd5M7hQ+ZWJamqM2BbalrBJb2MisSLoYorOj75U03qULCxQTY9r3hg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"218dd90fd4e6a28aabdd35217370d45b18aea3cc71d4358b85de4cee143e65625a9aa33605b6a5ac125bd8c8ac48ba18a2b3a3ef9534dea50b0b141363daf786\",\"name\":\"@babel/helper-create-class-features-plugin\",\"version\":\"7.29.7\"},\"@babel__helper-globals-7.29.7.tgz\":{\"integrity\":\"3nQVUAtvkKH9zahfWgw96Jc/uFOmjACE1kQz82E2lqWmHBgjzbNlsC22nuQTfahmWeQtTq5nQ/4Nnd2A1wj4zA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"de7415500b6f90a1fdcda85f5a0c3de8973fb853a68c0084d64433f3613696a5a61c1823cdb365b02db69ee4137da86659e42d4eae6743fe0d9ddd80d708f8cc\",\"name\":\"@babel/helper-globals\",\"version\":\"7.29.7\"},\"@babel__helper-member-expression-to-functions-7.29.7.tgz\":{\"integrity\":\"j+7JYmk1JYDtACIGj0QJqqWZjoUpMoEikQGADMaHgCMCSDqd2+P32rfcibUNrGOMWrlzK1WJBdxrB3JJQZwWtg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8feec96269352580ed0022068f4409aaa5998e85293281229101800cc687802302483a9ddbe3f7dab7dc89b50dac638c5ab9732b558905dc6b077249419c16b6\",\"name\":\"@babel/helper-member-expression-to-functions\",\"version\":\"7.29.7\"},\"@babel__helper-module-imports-7.29.7.tgz\":{\"integrity\":\"ejHwrQQYcm9xnTivShn2IDOlIzInN34AXskvq9QicvCtEzq1Vzclu/tKF8Jq1Cg8JG2GL6/EmjgsCT7lXepE3g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7a31f0ad0418726f719d38af4a19f62033a5233227377e005ec92fabd42272f0ad133ab5573725bbfb4a17c26ad4283c246d862fafc49a382c093ee55dea44de\",\"name\":\"@babel/helper-module-imports\",\"version\":\"7.29.7\"},\"@babel__helper-module-transforms-7.29.7.tgz\":{\"integrity\":\"UPUVSyXbOh627KiCIGQSgwWzGeBKLkaJ9PJEdrngIwMSzxLR4jS4+f1f1jb7VzBbg8nFLaYotvVPFCTqdrmTAg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"50f5154b25db3a1eb6eca8822064128305b319e04a2e4689f4f24476b9e0230312cf12d1e234b8f9fd5fd636fb57305b83c9c52da628b6f54f1424ea76b99302\",\"name\":\"@babel/helper-module-transforms\",\"version\":\"7.29.7\"},\"@babel__helper-optimise-call-expression-7.29.7.tgz\":{\"integrity\":\"+kmGVjcT9RGYzoDwdwEqEvGgKe3BYq+O1iGzjFubaNgZHwYHP6lsF2Yghf4kEuv9BV7tYDZ913aBW9am6YKong==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"fa4986563713f51198ce80f077012a12f1a029edc162af8ed621b38c5b9b68d8191f06073fa96c17662085fe2412ebfd055eed60367dd776815bd6a6e982a89e\",\"name\":\"@babel/helper-optimise-call-expression\",\"version\":\"7.29.7\"},\"@babel__helper-plugin-utils-7.29.7.tgz\":{\"integrity\":\"G7sHYigPY17oO5SYWnfD/0MTBwVR781S/JI643e/JhUYgVgWE/61SoW3NH9KWUKyKq5LVh3npif99Wkt6j86Jw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1bbb0762280f635ee83b94985a77c3ff4313070551efcd52fc923ae377bf26151881581613feb54a85b7347f4a5942b22aae4b561de7a627fdf5692dea3f3a27\",\"name\":\"@babel/helper-plugin-utils\",\"version\":\"7.29.7\"},\"@babel__helper-replace-supers-7.29.7.tgz\":{\"integrity\":\"atfGXWSeCiF4DnKZIfmJfQRkSw9b9gNNXR1kqKjbhG4pGYCOnkp8OcTB8E3NXjBu8NpheSnOeNKz8KT7UNFTmQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6ad7c65d649e0a21780e729921f9897d04644b0f5bf6034d5d1d64a8a8db846e2919808e9e4a7c39c4c1f04dcd5e306ef0da617929ce78d2b3f0a4fb50d15399\",\"name\":\"@babel/helper-replace-supers\",\"version\":\"7.29.7\"},\"@babel__helper-skip-transparent-expression-wrappers-7.29.7.tgz\":{\"integrity\":\"brcMGQaVzIeUb+6/bs1Av0f8YuNNjKY2JyvfRCsFuFsdKccEQ5Ges2y74D74NZ1Rz8lKJ9ksJkfqwQFJ/iNEyQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6eb70c190695cc87946feebf6ecd40bf47fc62e34d8ca636272bdf442b05b85b1d29c70443919eb36cbbe03ef8359d51cfc94a27d92c2647eac10149fe2344c9\",\"name\":\"@babel/helper-skip-transparent-expression-wrappers\",\"version\":\"7.29.7\"},\"@babel__helper-string-parser-7.29.7.tgz\":{\"integrity\":\"Pb5ijPrZ89GDH8223L4UP8i6QApWxs04RbPQJTeWDV0/keR2E36MeKnyr6LYmUUvqRRI+Iv87SuF1W6ErINzYw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3dbe628cfad9f3d1831fcdb6dcbe143fc8ba400a56c6cd3845b3d02537960d5d3f91e476137e8c78a9f2afa2d899452fa91448f88bfced2b85d56e84ac837363\",\"name\":\"@babel/helper-string-parser\",\"version\":\"7.29.7\"},\"@babel__helper-validator-identifier-7.29.7.tgz\":{\"integrity\":\"qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a9e8711a4463e7987f7dff0431a27e71887268a947231a980e7ebcdb0403ed1369f54ba3390b07a20dae4b4af6bf3af8a56fac5dff7435e79aca370d697ddf16\",\"name\":\"@babel/helper-validator-identifier\",\"version\":\"7.29.7\"},\"@babel__helper-validator-option-7.29.7.tgz\":{\"integrity\":\"N9ZErrD+yW5geCDtBqnOoxmR8+tNKiGuxKlDpuJxfsqpa2dFcexaziGAE/qoHLiDDreVNMupxGmSoNlyvsA3gw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"37d644aeb0fec96e607820ed06a9cea31991f3eb4d2a21aec4a943a6e2717ecaa96b674571ec5ace218013faa81cb8830eb79534cba9c46992a0d972bec03783\",\"name\":\"@babel/helper-validator-option\",\"version\":\"7.29.7\"},\"@babel__helpers-7.29.7.tgz\":{\"integrity\":\"1k2lAGRMfHTcwuNYcCNUmaUffmQv8KWMfh2iJUUeRlwlwH4FdNG7mfPI10NPfLHJFThE4Tyr4mv7kTNZOiPuBg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d64da500644c7c74dcc2e35870235499a51f7e642ff0a58c7e1da225451e465c25c07e0574d1bb99f3c8d7434f7cb1c9153844e13cabe26bfb9133593a23ee06\",\"name\":\"@babel/helpers\",\"version\":\"7.29.7\"},\"@babel__parser-7.29.8.tgz\":{\"integrity\":\"E8lTAYNB1KW+FH+VGJuZM1ioAx2E6oVlvQFRrf5P8ZZmsiJXYAD9vTFV7yyEURNzgh1dFqMZuO6tUwcARbqFCA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"13c953018341d4a5be147f95189b993358a8031d84ea8565bd0151adfe4ff19666b222576000fdbd3155ef2c84511373821d5d16a319b8eead53070045ba8508\",\"name\":\"@babel/parser\",\"version\":\"7.29.8\"},\"@babel__plugin-syntax-jsx-7.29.7.tgz\":{\"integrity\":\"TSu8+mHCoEaaCDEZ0I3+6mvTBYR4PCxQwf2z9/r5Tbztv6NaLR3B9thGTTxX2WGuGHJqRiAbKPeGTJ5XWXVg6A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4d2bbcfa61c2a0469a083119d08dfeea6bd30584783c2c50c1fdb3f7faf94dbcedbfa35a2d1dc1f6d8464d3c57d961ae18726a46201b28f7864c9e57597560e8\",\"name\":\"@babel/plugin-syntax-jsx\",\"version\":\"7.29.7\"},\"@babel__plugin-syntax-typescript-7.29.7.tgz\":{\"integrity\":\"ngr+82Sh0xMz25TPCZi+nC2iTzjfCdWS2ONXTp/PtSCHCgaCNBpdMqgvJ2ccdLlClVZ7sisIgB914j/JFe+RZA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9e0afef364a1d31333db94cf0998be9c2da24f38df09d592d8e3574e9fcfb520870a0682341a5d32a82f27671c74b94295567bb22b08801f75e23fc915ef9164\",\"name\":\"@babel/plugin-syntax-typescript\",\"version\":\"7.29.7\"},\"@babel__plugin-transform-modules-commonjs-7.29.7.tgz\":{\"integrity\":\"j0vCldybPC5b5dwCQOJ21uKtHzt7hxLygJTg9eF1ScfaikEDNfzn94XoW5Fi+seBR0nCyL23xaBFFkq7dTM8XQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8f4bc295dc9b3c2e5be5dc0240e276d6e2ad1f3b7b8712f28094e0f5e17549c7da8a410335fce7f785e85b9162fac7814749c2c8bdb7c5a045164abb75333c5d\",\"name\":\"@babel/plugin-transform-modules-commonjs\",\"version\":\"7.29.7\"},\"@babel__plugin-transform-typescript-7.29.7.tgz\":{\"integrity\":\"jK52h8LaLc7JarhQV2ofeFMts4H7vnOXnqZNA6fYglBTZewRBE51KWt3BUltW1P+KoPsYkHoJeXePuz4zo2LMw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8cae7687c2da2dcec96ab850576a1f78532db381fbbe73979ea64d03a7d882505365ec11044e75296b7705496d5b53fe2a83ec6241e825e5de3eecf8ce8d8b33\",\"name\":\"@babel/plugin-transform-typescript\",\"version\":\"7.29.7\"},\"@babel__preset-typescript-7.29.7.tgz\":{\"integrity\":\"/Foi8vKY2EVbed/1eZx0gJEEwHAIxogrySI7rULcRIvhZzbvoE/b5qG5Ghc0WKAFKOHA9SD1x7RsFlOYdutIiQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"fc5a22f2f298d8455b79dff5799c74809104c07008c6882bc9223bad42dc448be16736efa04fdbe6a1b91a173458a00528e1c0f520f5c7b46c16539876eb4889\",\"name\":\"@babel/preset-typescript\",\"version\":\"7.29.7\"},\"@babel__runtime-7.29.7.tgz\":{\"integrity\":\"Nq8OhGWiZIZGV6hLHoyAKLLcJihP/xFeBMGJoUrxTX2psI8dCifzLhZISFb+VWS3wFMRDmCGw5R+dOySCqPLhw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"36af0e8465a264864657a84b1e8c8028b2dc26284fff115e04c189a14af14d7da9b08f1d0a27f32e16484856fe5564b7c053110e6086c3947e74ec920aa3cb87\",\"name\":\"@babel/runtime\",\"version\":\"7.29.7\"},\"@babel__template-7.29.7.tgz\":{\"integrity\":\"puq+Gf35oI24FeN11LkoUQFqv9uwNeWpxXZi/Ji3rRIoKAzKnxRaZ+Gkj0vKS9ZCiTESfng1N9LyOyXvo+m+Gg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a6eabe19fdf9a08db815e375d4b92851016abfdbb035e5a9c57662fc98b7ad1228280cca9f145a67e1a48f4bca4bd6428931127e783537d2f23b25efa3e9be1a\",\"name\":\"@babel/template\",\"version\":\"7.29.7\"},\"@babel__traverse-7.29.8.tgz\":{\"integrity\":\"I5z7H3bf/41ktsNVLtpN0wAa336HkqIHQ5BuPLEhTkt1jVSyZpeNKIzTgEWmlxjdg81R0IgUCcaE+Ok3NvrfZg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"239cfb1f76dfff8d64b6c3552eda4dd3001adf7e8792a20743906e3cb1214e4b758d54b266978d288cd38045a69718dd83cd51d0881409c684f8e93736fadf66\",\"name\":\"@babel/traverse\",\"version\":\"7.29.8\"},\"@babel__types-7.29.8.tgz\":{\"integrity\":\"Vj1jF3cPfxg7OAfoI7QnVKLoILlm2JF9pnVHrX8qx7AHMiYWT+NDAA7jChlNgRS4WTLc/fD1lXLmPixluj+3Gg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"563d6317770f7f183b3807e823b42754a2e820b966d8917da67547ad7f2ac7b0073226164fe343000ee30a194d8114b85932dcfdf0f59572e63e2c65ba3fb71a\",\"name\":\"@babel/types\",\"version\":\"7.29.8\"},\"@base-ui__react-1.7.0.tgz\":{\"integrity\":\"j+8QjX44C32jrXD/qyEAGpFr70FRpGL2CY61mQd9nBPWN737CK0xxD1ceJ055rW4RtdvFDT1e7otzdlfxvsYug==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8fef108d7e380b7da3ad70ffab21001a916bef4151a462f6098eb599077d9c13d637bdfb08ad31c43d5c789d39e6b5b846d76f1434f57bba2dcdd95fc6fb18ba\",\"name\":\"@base-ui/react\",\"version\":\"1.7.0\"},\"@base-ui__utils-0.3.2.tgz\":{\"integrity\":\"oWy1aq/I2GmYjpl4PhEAhzflF8VPGKgZeq0xAWTbfD5KBWyxcN0ZP2+WHSUm/5Z6lVMBDLReLcoXwSYoRc/zNQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a16cb56aafc8d869988e99783e11008737e517c54f18a8197aad310164db7c3e4a056cb170dd193f6f961d2526ff967a9553010cb45e2dca17c1262845cff335\",\"name\":\"@base-ui/utils\",\"version\":\"0.3.2\"},\"@bcoe__v8-coverage-1.0.2.tgz\":{\"integrity\":\"6zABk/ECA/QYSCQ1NGiVwwbQerUCZ+TQbp64Q3AgmfNvurHH0j8TtXa1qbShXA6qqkpAj4V5W8pP6mLe1mcMqA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"eb300193f10203f418482435346895c306d07ab50267e4d06e9eb843702099f36fbab1c7d23f13b576b5a9b4a15c0eaaaa4a408f85795bca4fea62ded6670ca8\",\"name\":\"@bcoe/v8-coverage\",\"version\":\"1.0.2\"},\"@biomejs__biome-2.5.9.tgz\":{\"integrity\":\"KkgCvdHB4IhtpHpF564plA9jo6fDOwWGQ/3jvreLzgOtRLEDoPqr7QO9qejNA8jKwDsSkAKr77hqBHnyUbIw4g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2a4802bdd1c1e0886da47a45e7ae29940f63a3a7c33b058643fde3beb78bce03ad44b103a0faabed03bda9e8cd03c8cac03b129002abefb86a0479f251b230e2\",\"name\":\"@biomejs/biome\",\"version\":\"2.5.9\"},\"@biomejs__cli-darwin-arm64-2.5.9.tgz\":{\"integrity\":\"am22pX2aBqznqq1eMyIj/bZ++riF3Lk6ct7cbv+gQK0csFhr+d8O0RkOi2FF2qSgFgANbqNkIZ0/PxlnW2pLFg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6a6db6a57d9a06ace7aaad5e332223fdb67efab885dcb93a72dedc6effa040ad1cb0586bf9df0ed1190e8b6145daa4a016000d6ea364219d3f3f19675b6a4b16\",\"name\":\"@biomejs/cli-darwin-arm64\",\"version\":\"2.5.9\"},\"@biomejs__cli-darwin-x64-2.5.9.tgz\":{\"integrity\":\"l44KWDHLDvEnD0N/XcrVs7VXb3A18xL7QS3WB0eL93wbmk529ffIG55vleGCqaunpRUjLrdnjK05Qki1dsjylg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"978e0a5831cb0ef1270f437f5dcad5b3b5576f7035f312fb412dd607478bf77c1b9a4e76f5f7c81b9e6f95e182a9aba7a515232eb7678cad394248b576c8f296\",\"name\":\"@biomejs/cli-darwin-x64\",\"version\":\"2.5.9\"},\"@biomejs__cli-linux-arm64-2.5.9.tgz\":{\"integrity\":\"ICaK+IYaVZvKbBxX2rwrPT0DdUDMnE9Vm3nQGe+mltQPmUg19pONzkPWGdY4FCsoreDETWDynvdt4ysCbF5gNQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"20268af8861a559bca6c1c57dabc2b3d3d037540cc9c4f559b79d019efa696d40f994835f6938dce43d619d638142b28ade0c44d60f29ef76de32b026c5e6035\",\"name\":\"@biomejs/cli-linux-arm64\",\"version\":\"2.5.9\"},\"@biomejs__cli-linux-arm64-musl-2.5.9.tgz\":{\"integrity\":\"7ImVPwBLCtkmpR5esd8RHhTqW94f0JLJQum6AneYcy94jRm18TaPPm7slaigGzFhfgt3QiD1Vj52LKmBAnKizA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ec89953f004b0ad926a51e5eb1df111e14ea5bde1fd092c942e9ba027798732f788d19b5f1368f3e6eec95a8a01b31617e0b774220f5563e762ca9810272a2cc\",\"name\":\"@biomejs/cli-linux-arm64-musl\",\"version\":\"2.5.9\"},\"@biomejs__cli-linux-x64-2.5.9.tgz\":{\"integrity\":\"z22Q/zFYSvbIJfW1CbfZPu4X8PddS6Qd2ORbc6h+aT6EcwAxUF3m6fA4HjNvA3TU4X0dTJRwNPB165ES3PJXzg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"cf6d90ff31584af6c825f5b509b7d93eee17f0f75d4ba41dd8e45b73a87e693e84730031505de6e9f0381e336f0374d4e17d1d4c947034f075eb9112dcf257ce\",\"name\":\"@biomejs/cli-linux-x64\",\"version\":\"2.5.9\"},\"@biomejs__cli-linux-x64-musl-2.5.9.tgz\":{\"integrity\":\"RXGaD0o1/pTTguYw1aeDJh9ad6Lfrui0fI7mBderTyGr7WuUJkBIttgLkR3XJyoxOkkgfBDspaUT8wXArTqLZw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"45719a0f4a35fe94d382e630d5a783261f5a77a2dfaee8b47c8ee605d7ab4f21abed6b94264048b6d80b911dd7272a313a49207c10eca5a513f305c0ad3a8b67\",\"name\":\"@biomejs/cli-linux-x64-musl\",\"version\":\"2.5.9\"},\"@biomejs__cli-win32-arm64-2.5.9.tgz\":{\"integrity\":\"nHK+/HHC+D0ogAHUxomgoSTdjImb6fmNNVTKmf0tyu4eDL1DqPKIHc+i+UL8+b0RnAu8224qo8F2tCVnaT0A3w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9c72befc71c2f83d288001d4c689a0a124dd8c899be9f98d3554ca99fd2dcaee1e0cbd43a8f2881dcfa2f942fcf9bd119c0bbcdb6e2aa3c176b42567693d00df\",\"name\":\"@biomejs/cli-win32-arm64\",\"version\":\"2.5.9\"},\"@biomejs__cli-win32-x64-2.5.9.tgz\":{\"integrity\":\"Yiq0H56LjXSSw/hd9YkXgSLQfzyDJzbzU2TezozxyNw+uKWAqOtqGVvBfzKRRDiaFF5avGAhHdWKx7LtDOShUw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"622ab41f9e8b8d7492c3f85df589178122d07f3c832736f35364dece8cf1c8dc3eb8a580a8eb6a195bc17f329144389a145e5abc60211dd58ac7b2ed0ce4a153\",\"name\":\"@biomejs/cli-win32-x64\",\"version\":\"2.5.9\"},\"@bramus__specificity-2.4.2.tgz\":{\"integrity\":\"ctxtJ/eA+t+6q2++vj5j7FYX3nRu311q1wfYH3xjlLOsczhlhxAg2FWNUXhpGvAw3BWo1xBcvOV6/YLc2r5FJw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"72dc6d27f780fadfbaab6fbebe3e63ec5617de746edf5d6ad707d81f7c6394b3ac733865871020d8558d5178691af030dc15a8d7105cbce57afd82dcdabe4527\",\"name\":\"@bramus/specificity\",\"version\":\"2.4.2\"},\"@csstools__color-helpers-6.1.1.tgz\":{\"integrity\":\"gLNsunvwf3mCi5u5o46/Z/JcJMnhbHSaZ69rkgPzNM3J4s8hWwpPUQB6/tt0EDFyCiWzxANlx+2LJwpYj4zS1w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"80b36cba7bf07f79828b9bb9a38ebf67f25c24c9e16c749a67af6b9203f334cdc9e2cf215b0a4f51007afedb741031720a25b3c40365c7ed8b270a588f8cd2d7\",\"name\":\"@csstools/color-helpers\",\"version\":\"6.1.1\"},\"@csstools__css-calc-3.3.0.tgz\":{\"integrity\":\"c5ihYsPkdG6JCkU2zTMm4+k6r7RXuGxtWYhu5DHMIiF1FHzrfmHL5so11AoFpUv/tu61xfcmT4AmKoFfMPoqdQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7398a162c3e4746e890a4536cd3326e3e93aafb457b86c6d59886ee431cc222175147ceb7e61cbe6ca35d40a05a54bffb6eeb5c5f7264f80262a815f30fa2a75\",\"name\":\"@csstools/css-calc\",\"version\":\"3.3.0\"},\"@csstools__css-color-parser-4.2.0.tgz\":{\"integrity\":\"5+5LEmFuY1AjXdYhmgjTJogtQnP1evJ1zrBZGUNZ0thkpwnnmKxcHdAMn/OtFjAb25zA+jKDVYVRl+5G7rjv1A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e7ee4b12616e6350235dd6219a08d326882d4273f57af275ceb059194359d2d864a709e798ac5c1dd00c9ff3ad16301bdb9cc0fa328355855197ee46eeb8efd4\",\"name\":\"@csstools/css-color-parser\",\"version\":\"4.2.0\"},\"@csstools__css-parser-algorithms-4.0.0.tgz\":{\"integrity\":\"+B87qS7fIG3L5h3qwJ/IFbjoVoOe/bpOdh9hAjXbvx0o8ImEmUsGXN0inFOnk2ChCFgqkkGFQ+TpM5rbhkKe4w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f81f3ba92edf206dcbe61deac09fc815b8e856839efdba4e761f610235dbbf1d28f08984994b065cdd229c53a79360a108582a92418543e4e9339adb86429ee3\",\"name\":\"@csstools/css-parser-algorithms\",\"version\":\"4.0.0\"},\"@csstools__css-syntax-patches-for-csstree-1.1.8.tgz\":{\"integrity\":\"CpMLjAvwQg3BL5S0IeqsZNMH7EQrEWi0kLKOC13ZBF0ZwERiLWlibNPJr8G1kdU3Ms/r2KiNrF81pUh2HwAHdg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0a930b8c0bf0420dc12f94b421eaac64d307ec442b1168b490b28e0b5dd9045d19c044622d69626cd3c9afc1b591d53732cfebd8a88dac5f35a548761f000776\",\"name\":\"@csstools/css-syntax-patches-for-csstree\",\"version\":\"1.1.8\"},\"@csstools__css-tokenizer-4.0.0.tgz\":{\"integrity\":\"QxULHAm7cNu72w97JUNCBFODFaXpbDg+dP8b/oWFAZ2MTRppA3U00Y2L1HqaS4J6yBqxwa/Y3nMBaxVKbB/NsA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"43150b1c09bb70dbbbdb0f7b25434204538315a5e96c383e74ff1bfe8585019d8c4d1a69037534d18d8bd47a9a4b827ac81ab1c1afd8de73016b154a6c1fcdb0\",\"name\":\"@csstools/css-tokenizer\",\"version\":\"4.0.0\"},\"@dotenvx__dotenvx-1.75.1.tgz\":{\"integrity\":\"/BITOC9dmS/edY2zQwZNicQ059O6RKabtQfyEafV0nGtfYRNHYy1DIPiYVcov40+tob9hfmBnbR963dS+EQ1DQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"fc1213382f5d992fde758db343064d89c434e7d3ba44a69bb507f211a7d5d271ad7d844d1d8cb50c83e2615728bf8d3eb686fd85f9819db47deb7752f844350d\",\"name\":\"@dotenvx/dotenvx\",\"version\":\"1.75.1\"},\"@dotenvx__primitives-0.8.0.tgz\":{\"integrity\":\"VYJy0uhFm9zTJ1TxBaW/pA8bjbOM/OttaNMwZ1RHG4JKyRG7DhSdiqD1ipQoAyoD22olUtxbP78W9xY3Wd11bg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"558272d2e8459bdcd32754f105a5bfa40f1b8db38cfceb6d68d3306754471b824ac911bb0e149d8aa0f58a9428032a03db6a2552dc5b3fbf16f7163759dd756e\",\"name\":\"@dotenvx/primitives\",\"version\":\"0.8.0\"},\"@electron-internal__extract-zip-1.0.5.tgz\":{\"integrity\":\"+bqFCP98pLI0Tt0XQo1TmlXtwjWchISndDOxCkEcIuUgXWpBnLyRI+2DU+mesvnMMX6L1XDqYNA0lXNDHd/yiA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f9ba8508ff7ca4b2344edd17428d539a55edc2359c8484a77433b10a411c22e5205d6a419cbc9123ed8353e99eb2f9cc317e8bd570ea60d0349573431ddff288\",\"name\":\"@electron-internal/extract-zip\",\"version\":\"1.0.5\"},\"@electron__asar-3.4.1.tgz\":{\"integrity\":\"i4/rNPRS84t0vSRa2HorerGRXWyF4vThfHesw0dmcWHp+cspK743UanA0suA5Q5y8kzY2y6YKrvbIUn69BCAiA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8b8feb34f452f38b74bd245ad87a2b7ab1915d6c85e2f4e17c77acc347667161e9f9cb292bbe3751a9c0d2cb80e50e72f24cd8db2e982abbdb2149faf4108088\",\"name\":\"@electron/asar\",\"version\":\"3.4.1\"},\"@electron__fuses-1.8.0.tgz\":{\"integrity\":\"zx0EIq78WlY/lBb1uXlziZmDZI4ubcCXIMJ4uGjXzZW0nS19TjSPeXPAjzzTmKQlJUZm0SbmZhPKP7tuQ1SsEw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"cf1d0422aefc5a563f9416f5b97973899983648e2e6dc09720c278b868d7cd95b49d2d7d4e348f7973c08f3cd398a425254666d126e66613ca3fbb6e4354ac13\",\"name\":\"@electron/fuses\",\"version\":\"1.8.0\"},\"@electron__get-3.1.0.tgz\":{\"integrity\":\"F+nKc0xW+kVbBRhFzaMgPy3KwmuNTYX1fx6+FxxoSnNgwYX6LD7AKBTWkU0MQ6IBoe7dz069CNkR673sPAgkCQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"17e9ca734c56fa455b051845cda3203f2dcac26b8d4d85f57f1ebe171c684a7360c185fa2c3ec02814d6914d0c43a201a1eeddcf4ebd08d911ebbdec3c082409\",\"name\":\"@electron/get\",\"version\":\"3.1.0\"},\"@electron__get-5.1.0.tgz\":{\"integrity\":\"3kSBtG8ObcTVfXanm5vVJ6UnBLEVmVsRk1M+vGqCuMBV+XLCbJYuWQful+yIy0GQDsSlK0kHEriEHn7SPk4EnA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"de4481b46f0e6dc4d57d76a79b9bd527a52704b115995b1193533ebc6a82b8c055f972c26c962e5907ee97ec88cb41900ec4a52b490712b8841e7ed23e4e049c\",\"name\":\"@electron/get\",\"version\":\"5.1.0\"},\"@electron__notarize-2.5.0.tgz\":{\"integrity\":\"jNT8nwH1f9X5GEITXaQ8IF/KdskvIkOFfB2CvwumsveVidzpSc+mvhhTMdAGSYF3O+Nq49lJ7y+ssODRXu06+A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8cd4fc9f01f57fd5f91842135da43c205fca76c92f2243857c1d82bf0ba6b2f79589dce949cfa6be185331d0064981773be36ae3d949ef2facb0e0d15eed3af8\",\"name\":\"@electron/notarize\",\"version\":\"2.5.0\"},\"@electron__notarize-3.1.1.tgz\":{\"integrity\":\"uQQSlOiJnqRkTL1wlEBAxe90nVN/Fc/hEmk0bqpKk8nKjV1if/tXLHKUPePtv9Xsx90PtZU8aidx5lAiOpjkQQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b9041294e8899ea4644cbd70944040c5ef749d537f15cfe11269346eaa4a93c9ca8d5d627ffb572c72943de3edbfd5ecc7dd0fb5953c6a2771e650223a98e441\",\"name\":\"@electron/notarize\",\"version\":\"3.1.1\"},\"@electron__osx-sign-1.3.3.tgz\":{\"integrity\":\"KZ8mhXvWv2rIEgMbWZ4y33bDHyUKMXnx4M0sTyPNK/vcB81ImdeY9Ggdqy0SWbMDgmbqyQ+phgejh6V3R2QuSg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"299f26857bd6bf6ac812031b599e32df76c31f250a3179f1e0cd2c4f23cd2bfbdc07cd4899d798f4681dab2d1259b3038266eac90fa98607a387a57747642e4a\",\"name\":\"@electron/osx-sign\",\"version\":\"1.3.3\"},\"@electron__rebuild-4.2.0.tgz\":{\"integrity\":\"RKL/O+jGoXJMxrx/5771y1n0xTKmFuOYGO3gMmwypBM6rsH0kou0mswwdXA2JrhIkE4xyC7v9vGk0n6NPzgOxQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"44a2ff3be8c6a1724cc6bc7fe7bef5cb59f4c532a616e39818ede0326c32a4133aaec1f4928bb49acc3075703626b848904e31c82eeff6f1a4d27e8d3f380ec5\",\"name\":\"@electron/rebuild\",\"version\":\"4.2.0\"},\"@electron__universal-2.0.3.tgz\":{\"integrity\":\"Wn9sPYIVFRFl5HmwMJkARCCf7rqK/EurkfQ/rJZ14mHP3iYTjZSIOSVonEAnhWeAXwtw7zOekGRlc6yTtZ0t+g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5a7f6c3d8215151165e479b030990044209feeba8afc4bab91f43fac9675e261cfde26138d94883925689c40278567805f0b70ef339e90646573ac93b59d2dfa\",\"name\":\"@electron/universal\",\"version\":\"2.0.3\"},\"@electron__windows-sign-1.2.2.tgz\":{\"integrity\":\"dfZeox66AvdPtb2lD8OsIIQh12Tp0GNCRUDfBHIKGpbmopZto2/A8nSpYYLoedPIHpqkeblZ/k8OV0Gy7PYuyQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"75f65ea31eba02f74fb5bda50fc3ac208421d764e9d063424540df04720a1a96e6a2966da36fc0f274a96182e879d3c81e9aa479b959fe4f0e5741b2ecf62ec9\",\"name\":\"@electron/windows-sign\",\"version\":\"1.2.2\"},\"@esbuild__aix-ppc64-0.28.2.tgz\":{\"integrity\":\"XExcO+dvLKvVtNTibSTBej1NCAbaGhWn9Ww1ZPx80qsahhPFe/8jgWP0IchNe0F3HwkU7n8ejhH8bjonqht8mQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5c4c5c3be76f2cabd5b4d4e26d24c17a3d4d0806da1a15a7f56c3564fc7cd2ab1a8613c57bff238163f421c84d7b41771f0914ee7f1e8e11fc6e3a27aa1b7c99\",\"name\":\"@esbuild/aix-ppc64\",\"version\":\"0.28.2\"},\"@esbuild__android-arm-0.28.2.tgz\":{\"integrity\":\"kXXoiPVVGQcnIYGOeaovwOURpniDBpSq4A03qkQ+BMQqtGG6HYap3xne9C1O1yo4TR3qxlCX5IqqmX6fFo2Lqg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9175e888f55519072721818e79aa2fc0e511a678830694aae00d37aa443e04c42ab461ba1d86a9df19def42d4ed72a384d1deac65097e48aaa997e9f168d8baa\",\"name\":\"@esbuild/android-arm\",\"version\":\"0.28.2\"},\"@esbuild__android-arm64-0.28.2.tgz\":{\"integrity\":\"5YfKeeI8qWfBZIX+u2xZC3Zlb3Os/gLS2sbEKM+I4ZOcsWmHS2WLysCcQZDAFRslDUU5Oiq44gf6PYN1vGwG5A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e587ca79e23ca967c16485febb6c590b76656f73acfe02d2dac6c428cf88e1939cb169874b658bcac09c4190c0151b250d45393a2ab8e207fa3d8375bc6c06e4\",\"name\":\"@esbuild/android-arm64\",\"version\":\"0.28.2\"},\"@esbuild__android-x64-0.28.2.tgz\":{\"integrity\":\"O387ite7SzUyCcy3JQX4P4bLtEA7bLLkx+esve5JHnyYfNTxcVpXZo9jhdB0lTKN44gztELTdU7nS8Nr16Fs1Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3b7f3b8ad7bb4b353209ccb72505f83f86cbb4403b6cb2e4c7e7acbdee491e7c987cd4f1715a57668f6385d07495328de38833b442d3754ee74bc36bd7a16cd5\",\"name\":\"@esbuild/android-x64\",\"version\":\"0.28.2\"},\"@esbuild__darwin-arm64-0.28.2.tgz\":{\"integrity\":\"n4KqkOQrraxHJcgjM1RvwbigfQKIKJVpM7xp+KsxiyUSrRdIXnt73VhrPAx0fV44hgfmIVKjxMN9J1t5jySVkw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9f82aa90e42badac4725c82333546fc1b8a07d028828956933bc69f8ab318b2512ad17485e7b7bdd586b3c0c747d5e388607e62152a3c4c37d275b798f249593\",\"name\":\"@esbuild/darwin-arm64\",\"version\":\"0.28.2\"},\"@esbuild__darwin-x64-0.28.2.tgz\":{\"integrity\":\"uq6suIWYP37qzGddBKPw5QEQPi6HiLGsO7UmkpfyaYNQ3D+rN6w6WfwH+nuqcGXWvawGwxOEroO4YGnFh95azw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"baaeacb885983f7eeacc675d04a3f0e501103e2e8788b1ac3bb5269297f2698350dc3fab37ac3a59fc07fa7baa7065d6bdac06c31384ae83b86069c587de5acf\",\"name\":\"@esbuild/darwin-x64\",\"version\":\"0.28.2\"},\"@esbuild__freebsd-arm64-0.28.2.tgz\":{\"integrity\":\"n+I0BTSRIoy+d6RPKnEVwql5UwBJolytvY4mAOIEJorKlqgPII8ix6slVVrfZ5Tnj7glIZvloylbB/EJPMWEXw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9fe234053491228cbe77a44f2a7115c2a979530049a25cadbd8e2600e204268aca96a80f208f22c7ab25555adf6794e78fb825219be5a3295b07f1093cc5845f\",\"name\":\"@esbuild/freebsd-arm64\",\"version\":\"0.28.2\"},\"@esbuild__freebsd-x64-0.28.2.tgz\":{\"integrity\":\"78XJTJkvPs0kz2w61301PJjXl4g7q3JqiYMZ/M/yVI73EHBrCRTgkhu9oqG7vPqq+a/yadEW8aD+agKlk5xrmg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"efc5c94c992f3ecd24cf6c3ad77d353c98d797883bab726a898319fccff2548ef710706b0914e0921bbda2a1bbbcfaaaf9aff269d116f1a0fe6a02a5939c6b9a\",\"name\":\"@esbuild/freebsd-x64\",\"version\":\"0.28.2\"},\"@esbuild__linux-arm-0.28.2.tgz\":{\"integrity\":\"XlDnu2q5yoqems+xay6wSAcg9DDD7K9RLKZEBOMZm3ckNpJBvOX20tSfby8KfrrhINDyv9V2YVZKY/SpoGJI8w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5e50e7bb6ab9ca8a9e9acfb16b2eb0480720f430c3ecaf512ca64404e3199b7724369241bce5f6d2d49f6f2f0a7ebae120d0f2bfd57661564a63f4a9a06248f3\",\"name\":\"@esbuild/linux-arm\",\"version\":\"0.28.2\"},\"@esbuild__linux-arm64-0.28.2.tgz\":{\"integrity\":\"pW4AC0P3it8c7do9MVM4p51FzHzdM/TZrerurgRcHJ2WTa1VQ1CIq18xncfpBJw4ojkiZZrKW2yIBWBP92j6Ug==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a56e000b43f78adf1cedda3d315338a79d45cc7cdd33f4d9adeaeeae045c1c9d964dad55435088ab5f319dc7e9049c38a23922659aca5b6c8805604ff768fa52\",\"name\":\"@esbuild/linux-arm64\",\"version\":\"0.28.2\"},\"@esbuild__linux-ia32-0.28.2.tgz\":{\"integrity\":\"CYbnj78HsIeA+DhgUKgFCfvNsTHFhMMrinUrMZpDXJXKN8T3XViTZ/+wtHeVxEWY8ewSzTFN+nRmSwO2tZaLUQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0986e78fbf07b08780f8386050a80509fbcdb131c584c32b8a752b319a435c95ca37c4f75d589367ffb0b47795c44598f1ec12cd314dfa74664b03b6b5968b51\",\"name\":\"@esbuild/linux-ia32\",\"version\":\"0.28.2\"},\"@esbuild__linux-loong64-0.28.2.tgz\":{\"integrity\":\"buwkd8nsph4R+ajRvw0qM5Hja/TXQow3ptzWO2EbG/cqcIkHloRrdlBtQlshyYGTNFvfkfJ5tpPLVkY4DtsPfQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6eec2477c9eca61e11f9a8d1bf0d2a3391e36bf4d7428c37a6dcd63b611b1bf72a70890796846b76506d425b21c98193345bdf91f279b693cb5646380edb0f7d\",\"name\":\"@esbuild/linux-loong64\",\"version\":\"0.28.2\"},\"@esbuild__linux-mips64el-0.28.2.tgz\":{\"integrity\":\"ZVykbDyk7519VwiNb9Lcj9m8XM6v5V9uKPvrEMkkEedVewf+0itkhahp4HDpgERXhwLRpWFypsGbG/J8s0QjJA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"655ca46c3ca4ef9d7d57088d6fd2dc8fd9bc5cceafe55f6e28fbeb10c92411e7557b07fed22b6485a869e070e98044578702d1a56172a6c19b1bf27cb3442324\",\"name\":\"@esbuild/linux-mips64el\",\"version\":\"0.28.2\"},\"@esbuild__linux-ppc64-0.28.2.tgz\":{\"integrity\":\"CAXl+Dtd9UUuJd8pKKdwh6MLm3MUMiqMPmhZ3tTSXPqfyQ3vDl6R5hZdZ/kYojK4ofXtdfSv1tFq8XzWx3heNQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0805e5f83b5df5452e25df2928a77087a30b9b7314322a8c3e6859ded4d25cfa9fc90def0e5e91e6165d67f918a232b8a1f5ed75f4afd6d16af17cd6c7785e35\",\"name\":\"@esbuild/linux-ppc64\",\"version\":\"0.28.2\"},\"@esbuild__linux-riscv64-0.28.2.tgz\":{\"integrity\":\"GeXCej4IQtU1B+QlDV8W/RRvbzI3O/Stss+/bCXv4lZls5WGRtu2a+3JkA3i4qIUlMXpcHebWpF8AkJhATowuA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"19e5c27a3e0842d53507e4250d5f16fd146f6f32373bf4adb2cfbf6c25efe25665b3958646dbb66bedc9900de2e2a21494c5e970779b5a917c024261013a30b8\",\"name\":\"@esbuild/linux-riscv64\",\"version\":\"0.28.2\"},\"@esbuild__linux-s390x-0.28.2.tgz\":{\"integrity\":\"3H1weTYZPxt/WOhByszQZybS9w5lKzUn1FDMsgEChbHWQwHYQQRfBxgCcZvPhjHfKyJjIievvMmEUawJrdY9Dg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"dc7d707936193f1b7f58e841caccd06726d2f70e652b3527d450ccb2010285b1d64301d841045f071802719bcf8631df2b22632227afbcc98451ac09add63d0e\",\"name\":\"@esbuild/linux-s390x\",\"version\":\"0.28.2\"},\"@esbuild__linux-x64-0.28.2.tgz\":{\"integrity\":\"4xTZr1FUmSoQW4XIWmit3tzQrUTZM+N3P0XV8xROKYF50XfI7xeO90+1bZvNwxIufQ9hDQVRJH5YhgPVF8A/HQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e314d9af5154992a105b85c85a68addedcd0ad44d933e3773f45d5f3144e298179d177c8ef178ef74fb56d9bcdc3122e7d0f610d0551247e588603d517c03f1d\",\"name\":\"@esbuild/linux-x64\",\"version\":\"0.28.2\"},\"@esbuild__netbsd-arm64-0.28.2.tgz\":{\"integrity\":\"sSATRjPeDBg3pdgHoQfoYBob11Kk1FGa9lui5RIHZCoCkJa9QKlvl3/vKz2usCmYYjs7ymJR/2Nnsqe+Hjt5nw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b120134633de0c1837a5d807a107e8601a1bd752a4d4519af65ba2e51207642a029096bd40a96f977fef2b3daeb02998623b3bca6251ff6367b2a7be1e3b799f\",\"name\":\"@esbuild/netbsd-arm64\",\"version\":\"0.28.2\"},\"@esbuild__netbsd-x64-0.28.2.tgz\":{\"integrity\":\"lqnzCV+mM0gIADaKihiCg6ifgfU2L3h5E33rNQBN1Y4MaVGnzryzmvvf7UHxprpQdE8hpqLolJ9Rl+SkIRDpyw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"96a9f3095fa633480800368a8a188283a89f81f5362f7879137deb35004dd58e0c6951a7cebcb39afbdfed41f1a6ba50744f21a6a2e8949f5197e4a42110e9cb\",\"name\":\"@esbuild/netbsd-x64\",\"version\":\"0.28.2\"},\"@esbuild__openbsd-arm64-0.28.2.tgz\":{\"integrity\":\"AL2qJILH7lNjrDmCQDvdxMfAUIv8KMNZOvrwAQ8i8//ntL9FflhOyMJ8OZSMBb8/AWXe3/5v5S20y3zCoZWKoQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"00bdaa2482c7ee5363ac3982403bddc4c7c0508bfc28c3593afaf0010f22f3ffe7b4bf457e584ec8c27c39948c05bf3f0165dedffe6fe52db4cb7cc2a1958aa1\",\"name\":\"@esbuild/openbsd-arm64\",\"version\":\"0.28.2\"},\"@esbuild__openbsd-x64-0.28.2.tgz\":{\"integrity\":\"QtiuPytchRyC4rwUKhexJdQKvDuZ6hWloi3igqPQNUJCS1/v9EiO3UTOXR6A3FoMo4fnAKbWJdqaIwhOzh8qEw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"42d8ae3f2b5c851c82e2bc142a17b125d40abc3b99ea15a5a22de282a3d03542424b5feff4488edd44ce5d1e80dc5a0ca387e700a6d625da9a23084ece1f2a13\",\"name\":\"@esbuild/openbsd-x64\",\"version\":\"0.28.2\"},\"@esbuild__openharmony-arm64-0.28.2.tgz\":{\"integrity\":\"WkhYDmpTjLvGlScA1rwjRUmhl4k8oXR3cIbtqWmELgU/dFeHHlEllxDvdWcNJV9rbzCexB5vz8gtNewWLgCT7Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5a48580e6a538cbbc6952700d6bc234549a197893ca174777086eda969842e053f7457871e51259710ef75670d255f6b6f309ec41e6fcfc82d35ec162e0093ed\",\"name\":\"@esbuild/openharmony-arm64\",\"version\":\"0.28.2\"},\"@esbuild__sunos-x64-0.28.2.tgz\":{\"integrity\":\"GPMSkTOtMnv2U2F8gxe4Io6qmVs+YKyp832Etqqxr0hFngmXQ3rzwytelm3GIn7T4VviRUlf3sOgBOiTdvaf7g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"18f3129133ad327bf653617c8317b8228eaa995b3e60aca9f37d84b6aab1af48459e0997437af3c32b5e966dc6227ed3e15be245495fdec3a004e89376f69fee\",\"name\":\"@esbuild/sunos-x64\",\"version\":\"0.28.2\"},\"@esbuild__win32-arm64-0.28.2.tgz\":{\"integrity\":\"PIhhEkE9uPBleRBrQEJpUn7MBnibZzbGzYWPmY3x+YoVg/95zbjB4CxPPOQ8l5tYYM4mMaCthF8/1DIfBQQyWQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3c886112413db8f06579106b404269527ecc06789b6736c6cd858f998df1f98a1583ff79cdb8c1e02c4f3ce43c979b5860ce2631a0ad845f3fd4321f05043259\",\"name\":\"@esbuild/win32-arm64\",\"version\":\"0.28.2\"},\"@esbuild__win32-ia32-0.28.2.tgz\":{\"integrity\":\"YmJbfTlvU7Sdn9BB+4PRES4oB6pxgS37MAONj+hBr/cpXS1aBPKXxNnDbu+QCWPj0o9dgyxeq79g6c5P8KeuYA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"62625b7d396f53b49d9fd041fb83d1112e2807aa71812dfb30038d8fe841aff7295d2d5a04f297c4d9c36eef900963e3d28f5d832c5eabbf60e9ce4ff0a7ae60\",\"name\":\"@esbuild/win32-ia32\",\"version\":\"0.28.2\"},\"@esbuild__win32-x64-0.28.2.tgz\":{\"integrity\":\"5ebpxr3nWMzrL/rnUI755Jkuee0bHL/Gq0WTF9lvcpv73wAp5eu8MfBUgWK9bhWvZjj7yX8etf/8tI8Ney695g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e5e6e9c6bde758cceb2ffae7508ef9e4992e79ed1b1cbfc6ab459317d96f729bfbdf0029e5ebbc31f0548162bd6e15af6638fbc97f1eb5fffcb48f0d7b2ebde6\",\"name\":\"@esbuild/win32-x64\",\"version\":\"0.28.2\"},\"@exodus__bytes-1.15.1.tgz\":{\"integrity\":\"S6mL0yNB/Abt9Ei4tq8gDhcczc4S3+vQ4ra7vxnAf+YHC02srtqxKKZghx2Dq6p0e66THKwR6r8N6P95wEty7Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4ba98bd32341fc06edf448b8b6af200e171ccdce12dfebd0e2b6bbbf19c07fe6070b4dacaedab128a660871d83abaa747bae931cac11eabf0de8ff79c04b72ed\",\"name\":\"@exodus/bytes\",\"version\":\"1.15.1\"},\"@fastify__accept-negotiator-2.1.0.tgz\":{\"integrity\":\"F3EVbzWt+xcnVaOHmWyIlpuFtbxOln7HDZQsh09MtMmMm/CipMayNt8hnIL8VQi54u2ZociDbf+iluGYkf7B1A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1771156f35adfb172755a387996c88969b85b5bc4e967ec70d942c874f4cb4c98c9bf0a2a4c6b236df219c82fc5508b9e2ed99a1c8836dffa296e19891fec1d4\",\"name\":\"@fastify/accept-negotiator\",\"version\":\"2.1.0\"},\"@fastify__ajv-compiler-4.0.6.tgz\":{\"integrity\":\"NtuzM0SfaMJbGlnjr9LWQUN5LzgSrbB8tf/wRZNas+4E1O/Nmzl53e7ruT61HDZyRCJGC6FxIogmNZO1c5ETBA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"36dbb333449f68c25b1a59e3afd2d64143792f3812adb07cb5fff045935ab3ee04d4efcd9b3979ddeeebb93eb51c36724422460ba1712288263593b573911304\",\"name\":\"@fastify/ajv-compiler\",\"version\":\"4.0.6\"},\"@fastify__error-4.2.0.tgz\":{\"integrity\":\"RSo3sVDXfHskiBZKBPRgnQTtIqpi/7zhJOEmAxCiBcM7d0uwdGdxLlsCaLzGs8v8NnxIRlfG0N51p5yFaOentQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"452a37b150d77c7b2488164a04f4609d04ed22aa62ffbce124e1260310a205c33b774bb07467712e5b0268bcc6b3cbfc367c484657c6d0de75a79c8568e7a7b5\",\"name\":\"@fastify/error\",\"version\":\"4.2.0\"},\"@fastify__fast-json-stringify-compiler-5.1.0.tgz\":{\"integrity\":\"PxcYtKLbQ8Z+yApiqjK8FwxIwvEj38k2OiLc17u8dkJSlmfi2wHHPaSnaoqBPQqtvF8YVsDgDpP2snDCfFrpfw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3f1718b4a2db43c67ec80a62aa32bc170c48c2f123dfc9363a22dcd7bbbc7642529667e2db01c73da4a76a8a813d0aadbc5f1856c0e00e93f6b270c27c5ae97f\",\"name\":\"@fastify/fast-json-stringify-compiler\",\"version\":\"5.1.0\"},\"@fastify__forwarded-3.0.2.tgz\":{\"integrity\":\"NE8HgKLgYejV9lDpqkEFaDKMLYelJBVfHekhB0UKvX0ghagXRJqg68feg8er1NPXxG4N9i6vPxzt8E+3wHfcmA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"344f0780a2e061e8d5f650e9aa410568328c2d87a524155f1de92107450abd7d2085a817449aa0ebc7de83c7abd4d3d7c46e0df62eaf3f1cedf04fb7c077dc98\",\"name\":\"@fastify/forwarded\",\"version\":\"3.0.2\"},\"@fastify__merge-json-schemas-0.2.1.tgz\":{\"integrity\":\"OA3KGBCy6KtIvLf8DINC5880o5iBlDX4SxzLQS8HorJAbqluzLRn80UXU0bxZn7UOFhFgpRJDasfwn9nG4FG4A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"380dca1810b2e8ab48bcb7fc0c8342e7cf34a398819435f84b1ccb412f07a2b2406ea96eccb467f345175346f1667ed43858458294490dab1fc27f671b8146e0\",\"name\":\"@fastify/merge-json-schemas\",\"version\":\"0.2.1\"},\"@fastify__proxy-addr-5.1.0.tgz\":{\"integrity\":\"INS+6gh91cLUjB+PVHfu1UqcB76Sqtpyp7bnL+FYojhjygvOPA9ctiD/JDKsyD9Xgu4hUhCSJBPig/w7duNajw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"20d4beea087dd5c2d48c1f8f5477eed54a9c07be92aada72a7b6e72fe158a23863ca0bce3c0f5cb620ff2432acc83f5782ee215210922413e283fc3b76e35a8f\",\"name\":\"@fastify/proxy-addr\",\"version\":\"5.1.0\"},\"@fastify__send-4.1.1.tgz\":{\"integrity\":\"BYo+EiaKwlxH+WetGk6hAs1d39iP0y1gqB8lGF/qwkJ9ZZ/cBY1vx5NvExb9Sc3yRMFjD5X4Eyh4e4+TzRkzdw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"058a3e12268ac25c47f967ad1a4ea102cd5ddfd88fd32d60a81f25185feac2427d659fdc058d6fc7936f1316fd49cdf244c1630f95f81328787b8f93cd193377\",\"name\":\"@fastify/send\",\"version\":\"4.1.1\"},\"@fastify__static-10.1.3.tgz\":{\"integrity\":\"W6jqajYS974XjPjB5hQWoxPM8NKM4+p8YmQT6G5IbCa4uhdWSVadZUv75siy1wEA/3ty8RYdpBydfWeu9AqAqQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5ba8ea6a3612f7be178cf8c1e61416a313ccf0d28ce3ea7c626413e86e486c26b8ba175649569d654bfbe6c8b2d70100ff7b72f1161da41c9d7d67aef40a80a9\",\"name\":\"@fastify/static\",\"version\":\"10.1.3\"},\"@fastify__websocket-11.3.0.tgz\":{\"integrity\":\"g89ag4BCcD9YP5wBZXixzoLnuf5j89p/sXFcfpCiv2pdEkYYukBEoK3heVzqsp0EAtszVDc2BBZG0KZqeAShIA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"83cf5a838042703f583f9c016578b1ce82e7b9fe63f3da7fb1715c7e90a2bf6a5d124618ba4044a0ade1795ceab29d0402db33543736041646d0a66a7804a120\",\"name\":\"@fastify/websocket\",\"version\":\"11.3.0\"},\"@floating-ui__core-1.8.0.tgz\":{\"integrity\":\"0CIZ5itps/8x7BG8dEIhs53BvCUH2PCoogtakwRTut+Arm58sJooJ0AuZhLw2HJYIR5cMLNPBSS728sPho2khQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d02219e62b69b3ff31ec11bc744221b39dc1bc2507d8f0a8a20b5a930453badf80ae6e7cb09a2827402e6612f0d87258211e5c30b34f0524bbdbcb0f868da485\",\"name\":\"@floating-ui/core\",\"version\":\"1.8.0\"},\"@floating-ui__dom-1.8.0.tgz\":{\"integrity\":\"yXSrzeHZBTZadLOlfyhCkJHNeLJnHRnRInwdZ40L7ZiaAtrBwoYlsDrX3v5zB1Utk7CLfzcOVnVVWoXEky7Ceg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c974abcde1d905365a74b3a57f28429091cd78b2671d19d1227c1d678d0bed989a02dac1c28625b03ad7defe7307552d93b08b7f370e5675555a85c4932ec27a\",\"name\":\"@floating-ui/dom\",\"version\":\"1.8.0\"},\"@floating-ui__react-dom-2.1.9.tgz\":{\"integrity\":\"JDjEFGCpImxDCA7JJKviA0M9+RtmJdj0m/NVU5IMgBK+AmZouAQQ7/+2GLH0GXXY0YMw9oXPB8hKdbPYg5QLYg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2438c41460a9226c43080ec924abe203433df91b6625d8f49bf35553920c8012be026668b80410efffb618b1f41975d8d18330f685cf07c84a75b3d883940b62\",\"name\":\"@floating-ui/react-dom\",\"version\":\"2.1.9\"},\"@floating-ui__utils-0.2.12.tgz\":{\"integrity\":\"HpCo8tmWzLVad5s2d19EhAz5zqrrQ6s69qd6moPMQvkOuSwDT1YgRfWSVuc4ennqrgv3OHppiOGMQ7oC13yIww==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1e90a8f2d996ccb55a779b36775f44840cf9ceaaeb43ab3af6a77a9a83cc42f90eb92c034f562045f59256e7387a79eaae0bf7387a6988e18c43ba02d77c88c3\",\"name\":\"@floating-ui/utils\",\"version\":\"0.2.12\"},\"@fontsource-variable__inter-5.3.0.tgz\":{\"integrity\":\"OupL48va4JNofb97w6NYeF9S7W/kHNKM0Er8Dem5nqi4jeOLrVJDoE8tZEpnMJmtkvNbB1EIPPwHcdkF6b1oUA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3aea4be3cbdae093687dbf7bc3a358785f52ed6fe41cd28cd04afc0de9b99ea8b88de38bad5243a04f2d644a673099ad92f35b0751083cfc0771d905e9bd6850\",\"name\":\"@fontsource-variable/inter\",\"version\":\"5.3.0\"},\"@hono__node-server-2.1.1.tgz\":{\"integrity\":\"ELuehkj5VCBdgEw9zs+ivkKwyzzUCSQuE96YmiPvn1ECBoZCczbFXJLeEGMTYjphP6gydh4pHMqEYPVMYUVgQg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"10bb9e8648f954205d804c3dcecfa2be42b0cb3cd409242e13de989a23ef9f51020686427336c55c92de106313623a613fa832761e291cca8460f54c61456042\",\"name\":\"@hono/node-server\",\"version\":\"2.1.1\"},\"@hookform__resolvers-5.9.1.tgz\":{\"integrity\":\"7b7vsbraJxKgjVSA1Nur9tLwj539WGJUBLA7QNvXnFoT2pM5Z7G+6rlukk4B2/QrTZy6huRtH6wKeESPKuIr6w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"edbeefb1bada2712a08d5480d4dbabf6d2f08f9dfd58625404b03b40dbd79c5a13da933967b1beeab96e924e01dbf42b4d9cba86e46d1fac0a78448f2ae22beb\",\"name\":\"@hookform/resolvers\",\"version\":\"5.9.1\"},\"@isaacs__fs-minipass-4.0.1.tgz\":{\"integrity\":\"wgm9Ehl2jpeqP3zw/7mo3kRHFp5MEDhqAdwy1fTGkHAwnkGOVsgpvQhL8B5n1qlb01jV3n/bI0ZfZp5lWA1k4w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c209bd1219768e97aa3f7cf0ffb9a8de4447169e4c10386a01dc32d5f4c69070309e418e56c829bd084bf01e67d6a95bd358d5de7fdb23465f669e65580d64e3\",\"name\":\"@isaacs/fs-minipass\",\"version\":\"4.0.1\"},\"@jitl__quickjs-ffi-types-0.32.0.tgz\":{\"integrity\":\"v9T+GQpmk43VDJ7d72sf0Nexhk+ArvtUihW27dy7lqAl0zBObFKtSBBIm5RBjwIhE8VwsPPm9PNuvPvNqLWUEg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"bfd4fe190a66938dd50c9eddef6b1fd0d7b1864f80aefb548a15b6eddcbb96a025d3304e6c52ad4810489b94418f022113c570b0f3e6f4f36ebcfbcda8b59412\",\"name\":\"@jitl/quickjs-ffi-types\",\"version\":\"0.32.0\"},\"@jitl__quickjs-wasmfile-debug-asyncify-0.32.0.tgz\":{\"integrity\":\"EX8zbXwGqCgAE764M+qvkHtyXDi/FUoMBea0JnES7vCM3P7a2+EOZOjGv85wtZ2sJhI1oJ+nekmqpOODFDY+hw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"117f336d7c06a8280013beb833eaaf907b725c38bf154a0c05e6b4267112eef08cdcfedadbe10e64e8c6bfce70b59dac261235a09fa77a49aaa4e38314363e87\",\"name\":\"@jitl/quickjs-wasmfile-debug-asyncify\",\"version\":\"0.32.0\"},\"@jitl__quickjs-wasmfile-debug-sync-0.32.0.tgz\":{\"integrity\":\"LeYWrPGC1uNCTBWvibo3ZLJj0CSVNYUXvJpXMCmuQ5Sap2cCACc3uvGvYV4homHHBAzfw5akoTqMMS4YFRtw+Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2de616acf182d6e3424c15af89ba3764b263d02495358517bc9a573029ae43949aa76702002737baf1af615e21a261c7040cdfc396a4a13a8c312e18151b70f9\",\"name\":\"@jitl/quickjs-wasmfile-debug-sync\",\"version\":\"0.32.0\"},\"@jitl__quickjs-wasmfile-release-asyncify-0.32.0.tgz\":{\"integrity\":\"3oSwPfja12ICz4aIblB58cuY8JlEq5Txt8Cut4VLo+LH47QN+mzCnSgnbB03hWzg1LBcc+VyyI9UOag7a1NF+Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"de84b03df8dad76202cf86886e5079f1cb98f09944ab94f1b7c0aeb7854ba3e2c7e3b40dfa6cc29d28276c1d37856ce0d4b05c73e572c88f5439a83b6b5345f9\",\"name\":\"@jitl/quickjs-wasmfile-release-asyncify\",\"version\":\"0.32.0\"},\"@jitl__quickjs-wasmfile-release-sync-0.32.0.tgz\":{\"integrity\":\"BKNDI/TPBfGlLNGYpLrhcDGXmIk4xHm4MRAisOBnOzpXVn9HZWsfmMAc9WMBrAHjvvds6HOikKeaOBKdPdpVrg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"04a34323f4cf05f1a52cd198a4bae1703197988938c479b8311022b0e0673b3a57567f47656b1f98c01cf56301ac01e3bef76ce873a290a79a38129d3dda55ae\",\"name\":\"@jitl/quickjs-wasmfile-release-sync\",\"version\":\"0.32.0\"},\"@jridgewell__gen-mapping-0.3.13.tgz\":{\"integrity\":\"2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"da492dffb9e227a32010fc45d1b61d43a7ad65a03e7d0bc370b29c921cb5c8840ecdaa0a8c10634a3eb7fda2d58d8137aa146de5dbccfae5327c283a50a0816c\",\"name\":\"@jridgewell/gen-mapping\",\"version\":\"0.3.13\"},\"@jridgewell__remapping-2.3.5.tgz\":{\"integrity\":\"LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2c8f6effe95a606e03b354c3292256d983eb22571560ec22d9f502eb1078de5b9e0a383157895f7ce0990ad605887e9334e5feb50297c7ded3e082876e1c8711\",\"name\":\"@jridgewell/remapping\",\"version\":\"2.3.5\"},\"@jridgewell__resolve-uri-3.1.2.tgz\":{\"integrity\":\"bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6d12128022233f6d3fb5b5923d63048b9e1054f45913192e0fd9492fe508c542adc15240f305b54eb6f58ccb354455e8d42053359ff98690bd42f98a59da292b\",\"name\":\"@jridgewell/resolve-uri\",\"version\":\"3.1.2\"},\"@jridgewell__sourcemap-codec-1.5.5.tgz\":{\"integrity\":\"cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"71843ddf5d20aeac6e7966e5f96b885086a251a0dc8fb58eab97d58449633558117ce52163d7f2db34ef7e8a96b2779b87c4a5ef45527056c80af2672ca0743a\",\"name\":\"@jridgewell/sourcemap-codec\",\"version\":\"1.5.5\"},\"@jridgewell__trace-mapping-0.3.31.tgz\":{\"integrity\":\"zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"cf3351f9275048327373c8e869e3fc410a0242bf0db98c76748232b65d507811191c9f6e5ba85e6ecad881bcfc849c1441aa374d608cb667d5f0dbb5b7038b03\",\"name\":\"@jridgewell/trace-mapping\",\"version\":\"0.3.31\"},\"@lukeed__ms-2.0.2.tgz\":{\"integrity\":\"9I2Zn6+NJLfaGoz9jN3lpwDgAYvfGeNYdbAIjJOqzs4Tpc+VU3Jqq4IofSUBKajiDS8k9fZIg18/z13mpk1bsA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f48d999faf8d24b7da1a8cfd8cdde5a700e0018bdf19e35875b0088c93aacece13a5cf9553726aab82287d250129a8e20d2f24f5f648835f3fcf5de6a64d5bb0\",\"name\":\"@lukeed/ms\",\"version\":\"2.0.2\"},\"@malept__cross-spawn-promise-2.0.0.tgz\":{\"integrity\":\"1DpKU0Z5ThltBwjNySMC14g0CkbyhCaz9FkhxqNsZI6uAPJXFS8cMXlBKo26FJ8ZuW6S9GCMcR9IO5k2X5/9Fg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d43a4a5346794e196d0708cdc92302d788340a46f28426b3f45921c6a36c648eae00f257152f1c3179412a8dba149f19b96e92f4608c711f483b99365f9ffd16\",\"name\":\"@malept/cross-spawn-promise\",\"version\":\"2.0.0\"},\"@malept__flatpak-bundler-0.4.0.tgz\":{\"integrity\":\"9QOtNffcOF/c1seMCDnjckb3R9WHcG34tky+FHpNKKCW0wc/scYLwMtO+ptyGUfMW0/b/n4qRiALlaFHc9Oj7Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f503ad35f7dc385fdcd6c78c0839e37246f747d587706df8b64cbe147a4d28a096d3073fb1c60bc0cb4efa9b721947cc5b4fdbfe7e2a46200b95a14773d3a3ed\",\"name\":\"@malept/flatpak-bundler\",\"version\":\"0.4.0\"},\"@modelcontextprotocol__sdk-1.30.0.tgz\":{\"integrity\":\"xKd8OIzlqNzcqcNumGAa6g+PW2kjD5vrpcKOnfldAUPP3j7lnqMPwlTXQm8gF+UwH72z0lqaRbjr9hqGz0eITA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c4a77c388ce5a8dcdca9c36e98601aea0f8f5b69230f9beba5c28e9df95d0143cfde3ee59ea30fc254d7426f2017e5301fbdb3d25a9a45b8ebf61a86cf47884c\",\"name\":\"@modelcontextprotocol/sdk\",\"version\":\"1.30.0\"},\"@motrix__cli-0.4.0.tgz\":{\"integrity\":\"DpwxzV/kUNBRzznmHI8qhbH1tCuno9RCh0QmUc1wMf+51slRnQiT14kTXw1hIh8Nwf11fTwFAvFKF5O97e5BmA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0e9c31cd5fe450d051cf39e61c8f2a85b1f5b42ba7a3d44287442651cd7031ffb9d6c9519d0893d789135f0d61221f0dc1fd757d3c0502f14a1793bdedee4198\",\"name\":\"@motrix/cli\",\"version\":\"0.4.0\"},\"@motrix__mdxp-0.5.0.tgz\":{\"integrity\":\"DImm/kxsH43PI2IV/p9jbJnlxe+We0wD45eRPuACSCUFKVgUfDeVpjqK76bXK0umO245Z7bjxXr8qm4AcS/ESA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0c89a6fe4c6c1f8dcf236215fe9f636c99e5c5ef967b4c03e397913ee0024825052958147c3795a63a8aefa6d72b4ba63b6e3967b6e3c57afcaa6e00712fc448\",\"name\":\"@motrix/mdxp\",\"version\":\"0.5.0\"},\"@motrix__nat-0.1.1.tgz\":{\"integrity\":\"ORkFuNXMLa8yLhlxRmoLh6WSWtOjhJ4q28Dcx4Wt44JSkB60gjNzuBV8CVCy2VtWc2BhxiOlel4f3RhJ7OmaXw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"391905b8d5cc2daf322e1971466a0b87a5925ad3a3849e2adbc0dcc785ade38252901eb4823373b8157c0950b2d95b56736061c623a57a5e1fdd1849ece99a5f\",\"name\":\"@motrix/nat\",\"version\":\"0.1.1\"},\"@motrix__plugin-manifest-schema-2.1.0.tgz\":{\"integrity\":\"S6p1uhoQzYbepVkYV86dmmD+7xLagto7ft3vWcLK4Fg8KtvEikV1b+ZPyE5OjgpZO3WEFcMe8uuc/Iymai0fmw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4baa75ba1a10cd86dea5591857ce9d9a60feef12da82da3b7eddef59c2cae0583c2adbc48a45756fe64fc84e4e8e0a593b758415c31ef2eb9cfc8ca66a2d1f9b\",\"name\":\"@motrix/plugin-manifest-schema\",\"version\":\"2.1.0\"},\"@noble__hashes-1.4.0.tgz\":{\"integrity\":\"V1JJ1WTRUqHHrOSh597hURcMqVKVGL/ea3kv0gSnEdsEZ0/+VyPghM1lMNGc00z7CIQorSvbKpuJkxvuHbvdbg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"575249d564d152a1c7ace4a1e7dee151170ca9529518bfde6b792fd204a711db04674ffe5723e084cd6530d19cd34cfb088428ad2bdb2a9b89931bee1dbbdd6e\",\"name\":\"@noble/hashes\",\"version\":\"1.4.0\"},\"@noble__hashes-2.3.0.tgz\":{\"integrity\":\"oN+QwyX7VSHotibwubG3kpzbwKrfnyR6OOO+3Nk/53ADL7FmgHHz4TgrbaYKvvOw09u6QTx0oiH1cNCIOuN0CQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a0df90c325fb5521e8b626f0b9b1b7929cdbc0aadf9f247a38e3bedcd93fe770032fb1668071f3e1382b6da60abef3b0d3dbba413c74a221f570d0883ae37409\",\"name\":\"@noble/hashes\",\"version\":\"2.3.0\"},\"@nodelib__fs.scandir-2.1.5.tgz\":{\"integrity\":\"vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"beadb806adf29b91c4426d8d282af7c970f08dceef4ec1138510e7929d832bda75baa2d1f831eeae6fcd393a34286ec760753b7a9a4a663dcccaa62e3017fada\",\"name\":\"@nodelib/fs.scandir\",\"version\":\"2.1.5\"},\"@nodelib__fs.stat-2.0.5.tgz\":{\"integrity\":\"RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"46484f3e9db3aea0c0400ff68cd867ced70f025bfae17761229edaef8e78039a2f23b06e93182decc5fbb9dc00bb7ce0d437293d4d2bcf7555d5279aaaf638f8\",\"name\":\"@nodelib/fs.stat\",\"version\":\"2.0.5\"},\"@nodelib__fs.walk-1.2.8.tgz\":{\"integrity\":\"oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a0607e53196059c810920c28f067041b07a6a1316ddc520ef5a6da6c199a1b05c8a01299f864f2d293f5f396de1a0ecb96287f3521d25765c0b35967ce7a1c4a\",\"name\":\"@nodelib/fs.walk\",\"version\":\"1.2.8\"},\"@oxc-project__types-0.144.0.tgz\":{\"integrity\":\"nuhZIOLuI6TFQ32I/WnUx+SCPY7SdSKwgnFHydAuoS1+Z4BRcaP+RRJmGzl9lw+0OFF7UmaESf7KQRXaNLHypg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9ee85920e2ee23a4c5437d88fd69d4c7e4823d8ed27522b0827147c9d02ea12d7e67805171a3fe4512661b397d970fb438517b52668449feca4115da34b1f2a6\",\"name\":\"@oxc-project/types\",\"version\":\"0.144.0\"},\"@peculiar__asn1-schema-2.9.0.tgz\":{\"integrity\":\"AKvPMOM7LfK0uFe1m7o7+veOa8xQGPqsqOrKi3QKgCElzwjGp39mbhr2g7mt/v/mXQHiIvJmDj5cJS173x8Q9Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"00abcf30e33b2df2b4b857b59bba3bfaf78e6bcc5018faaca8eaca8b740a802125cf08c6a77f666e1af683b9adfeffe65d01e222f2660e3e5c252d7bdf1f10f5\",\"name\":\"@peculiar/asn1-schema\",\"version\":\"2.9.0\"},\"@peculiar__json-schema-1.1.12.tgz\":{\"integrity\":\"coUfuoMeIB7B8/NMekxaDzLhaYmp0HZNPEjYRm9goRou8UZIC3z21s0sL9AWoCw4EG876QyO3kYrc61WNF9B/w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"72851fba831e201ec1f3f34c7a4c5a0f32e16989a9d0764d3c48d8466f60a11a2ef146480b7cf6d6cd2c2fd016a02c38106f3be90c8ede462b73ad56345f41ff\",\"name\":\"@peculiar/json-schema\",\"version\":\"1.1.12\"},\"@peculiar__utils-2.0.3.tgz\":{\"integrity\":\"+oL3HPFRIZ1St2K50lWCXiioIgSoxzz7R1J3uF6neO2yl1sgmpgY6XXJH4BdpoDkMWznQTeYF6oWNDZLCdQ4eQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"fa82f71cf151219d52b762b9d255825e28a82204a8c73cfb475277b85ea778edb2975b209a9818e975c91f805da680e4316ce741379817aa1634364b09d43879\",\"name\":\"@peculiar/utils\",\"version\":\"2.0.3\"},\"@peculiar__webcrypto-1.7.1.tgz\":{\"integrity\":\"ODOov0sGMJMf3jPonOkgGqPknTsu+DdQ7kD++gz8aI+aFMOMHFbWAA2taqXXVTdP+OTOQR/znGvSpmkeI0WTYQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3833a8bf4b0630931fde33e89ce9201aa3e49d3b2ef83750ee40fefa0cfc688f9a14c38c1c56d6000dad6aa5d755374ff8e4ce411ff39c6bd2a6691e23459361\",\"name\":\"@peculiar/webcrypto\",\"version\":\"1.7.1\"},\"@pinojs__redact-0.4.0.tgz\":{\"integrity\":\"k2ENnmBugE/rzQfEcdWHcCY+/FM3VLzH9cYEsbdsoqrvzAKRhUZeRNhAZvB8OitQJ1TBed3yqWtdjzS6wJKBwg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"93610d9e606e804febcd07c471d58770263efc533754bcc7f5c604b1b76ca2aaefcc029185465e44d84066f07c3a2b502754c179ddf2a96b5d8f34bac09281c2\",\"name\":\"@pinojs/redact\",\"version\":\"0.4.0\"},\"@playwright__test-1.62.1.tgz\":{\"integrity\":\"DTcUc8qii+cpHvtOwggMtBRMjKZHXYWdw8syRYu2vtzuq4Wxphqq4NfCs5Zt44L6mA8rfDfj+PHnxFc/FeK6mQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0d371473caa28be7291efb4ec2080cb4144c8ca6475d859dc3cb32458bb6bedceeab85b1a61aaae0d7c2b3966de382fa980f2b7c37e3f8f1e7c4573f15e2ba99\",\"name\":\"@playwright/test\",\"version\":\"1.62.1\"},\"@radix-ui__primitive-1.1.7.tgz\":{\"integrity\":\"rqWnm76nYT8HoNNqEjpgJ7Pw/DrBj5iBTrmEPo6HTX5+VJyBNOqTdv4g89G63HuR5g0AaENoAcH7Is5fF2kZ8Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"aea5a79bbea7613f07a0d36a123a6027b3f0fc3ac18f98814eb9843e8e874d7e7e549c8134ea9376fe20f3d1badc7b91e60d0068436801c1fb22ce5f176919f1\",\"name\":\"@radix-ui/primitive\",\"version\":\"1.1.7\"},\"@radix-ui__react-compose-refs-1.1.5.tgz\":{\"integrity\":\"+48PbAAbq3didjJxa+OaWY2ZwgAKsNiRGyeHKszblZMQ+kcpd9pAaT11cMkGEie0vsOi3QdeTE6d5Fe3Gn61kA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"fb8f0f6c001bab77627632716be39a598d99c2000ab0d8911b27872accdb959310fa472977da40693d7570c9061227b4bec3a2dd075e4c4e9de457b71a7eb590\",\"name\":\"@radix-ui/react-compose-refs\",\"version\":\"1.1.5\"},\"@radix-ui__react-context-1.2.2.tgz\":{\"integrity\":\"RHCUGwKHDr0hDGg4X7ma4JG4/+12qxw8rkh5QKdDldlCvtja6nUx1Ef/8HVrJze81lEsgLQlqjzjGNHantgnQA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4470941b02870ebd210c68385fb99ae091b8ffed76ab1c3cae487940a74395d942bed8daea7531d447fff0756b2737bcd6512c80b425aa3ce318d1da9ed82740\",\"name\":\"@radix-ui/react-context\",\"version\":\"1.2.2\"},\"@radix-ui__react-dialog-1.1.23.tgz\":{\"integrity\":\"Ksw4WeROkO4rC9k/onilX/Ao2Cr1ku1unMNH+XSCcP4jSXYu7HDsg9n4ojMjVb22XpYjAQ9qfrFlVbru1vXDUA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2acc3859e44e90ee2b0bd93fa278a55ff028d82af592ed6e9cc347f9748270fe2349762eec70ec83d9f8a2332355bdb65e9623010f6a7eb16555baeed6f5c350\",\"name\":\"@radix-ui/react-dialog\",\"version\":\"1.1.23\"},\"@radix-ui__react-dismissable-layer-1.1.19.tgz\":{\"integrity\":\"8g4pfOL9HoKKLWGiypT+dphVqjFfmcXO5GBnhsG6zI+lxAx/8feQpr+1LSN8Re3hiZ+XkLNS4O9ztK11/LzQ6w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f20e297ce2fd1e828a2d61a2ca94fe769855aa315f99c5cee4606786c1bacc8fa5c40c7ff1f790a6bfb52d237c45ede1899f9790b352e0ef73b4ad75fcbcd0eb\",\"name\":\"@radix-ui/react-dismissable-layer\",\"version\":\"1.1.19\"},\"@radix-ui__react-focus-guards-1.1.6.tgz\":{\"integrity\":\"RNOJjfZMTyBM6xYmV3IVGXkPjIhcBAuv48POevAXwrGJhkWZ9p1rFoIS1JFooPuT193AZmRsCPhpoVJxx6OPoQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"44d3898df64c4f204ceb162657721519790f8c885c040bafe3c3ce7af017c2b189864599f69d6b168212d49168a0fb93d7ddc066646c08f869a15271c7a38fa1\",\"name\":\"@radix-ui/react-focus-guards\",\"version\":\"1.1.6\"},\"@radix-ui__react-focus-scope-1.1.16.tgz\":{\"integrity\":\"wmRZ2WWLvmt6KHy2rNPOdPUjwq5xOHY02+m+udwJTn0aNIox/rkskAvJTyTLGhPK6KgrUjlJUJpgmx/+wFiFIQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c26459d9658bbe6b7a287cb6acd3ce74f523c2ae71387634dbe9beb9dc094e7d1a348a31feb92c900bc94f24cb1a13cae8a82b523949509a609b1ffec0588521\",\"name\":\"@radix-ui/react-focus-scope\",\"version\":\"1.1.16\"},\"@radix-ui__react-id-1.1.4.tgz\":{\"integrity\":\"TMQp2llA+RYn7JcjnrMnz7wN4pcVttPZnRZo52PLQsoLVKzNlVwUeHmfePgTgRluXFvlD3GD5g5MOVVTJCO0qA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4cc429da5940f91627ec97239eb327cfbc0de29715b6d3d99d1668e763cb42ca0b54accd955c1478799f78f81381196e5c5be50f7183e60e4c3955532423b4a8\",\"name\":\"@radix-ui/react-id\",\"version\":\"1.1.4\"},\"@radix-ui__react-portal-1.1.17.tgz\":{\"integrity\":\"vKQLcWypUnwZVvfV7UkGahH2g6ySe8M8R+zYBwPrv5byZ9QAW6cQVvNKo7GgmD+p8aYb6D9JBuvy8/WhOno2wQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"bca40b716ca9527c1956f7d5ed49066a11f683ac927bc33c47ecd80703ebbf96f267d4005ba71056f34aa3b1a0983fa9f1a61be83f4906ebf2f3f5a13a7a36c1\",\"name\":\"@radix-ui/react-portal\",\"version\":\"1.1.17\"},\"@radix-ui__react-presence-1.1.10.tgz\":{\"integrity\":\"3wyzCQ6+ubRA+D4uv9m95JYLXxmOHp05qjrkjeA7uKHHtjpPggQzc6DAb0URl7j67oR0K2foO4ip27TiX037Bw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"df0cb3090ebeb9b440f83e2ebfd9bde4960b5f198e1e9d39aa3ae48de03bb8a1c7b63a4f82043373a0c06f451197b8faee84742b67e83b88a9dbb4e25f4dfb07\",\"name\":\"@radix-ui/react-presence\",\"version\":\"1.1.10\"},\"@radix-ui__react-primitive-2.1.10.tgz\":{\"integrity\":\"MucOnzh6hR5mid6VpkbglRAMYMjKLqRnGBbjXkzjK52fuQDd1qbkx78a5P40mkcnVXJdEVxm26E9OPAiUq7nBg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"32e70e9f387a851e6689de95a646e095100c60c8ca2ea4671816e35e4ce32b9d9fb900ddd6a6e4c7bf1ae4fe349a472755725d115c66dba13d38f02252aee706\",\"name\":\"@radix-ui/react-primitive\",\"version\":\"2.1.10\"},\"@radix-ui__react-slot-1.3.3.tgz\":{\"integrity\":\"qx7oqnYbxnK9kYI9m317qmFmEgo6ywqWvbTogdj7cL9p3/yx4M48p7Rnw5z3H890cL/ow/EeWJsuTykeZVXP5Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ab1ee8aa761bc672bd91823d9b7d7baa6166120a3acb0a96bdb4e881d8fb70bf69dffcb1e0ce3ca7b467c39cf71fcf7470bfe8c3f11e589b2e4f291e6555cfe5\",\"name\":\"@radix-ui/react-slot\",\"version\":\"1.3.3\"},\"@radix-ui__react-use-callback-ref-1.1.4.tgz\":{\"integrity\":\"R6OUY2e2fA6Yn6s+VSx5KBV6Nx8LQEhu+cz7LCej18rQ1HLyg9PSC9jP/ZNx0o6FAIK9c0F1kHylzSxKsdlkrQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"47a3946367b67c0e989fab3e552c7928157a371f0b40486ef9ccfb2c27a3d7cad0d472f283d3d20bd8cffd9371d28e850082bd734175907ca5cd2c4ab1d964ad\",\"name\":\"@radix-ui/react-use-callback-ref\",\"version\":\"1.1.4\"},\"@radix-ui__react-use-controllable-state-1.2.6.tgz\":{\"integrity\":\"uEQJGT97ZA/TgP/Hydw47lHu+/vQj6z/0jA+WeTbK1o9Rx45GImjpD0tc3W5ad3D6XTSR6e1yEO0FvGq6WQfVQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b84409193f7b640fd380ffc7c9dc38ee51eefbfbd08facffd2303e59e4db2b5a3d471e391889a3a43d2d7375b969ddc3e974d247a7b5c843b416f1aae9641f55\",\"name\":\"@radix-ui/react-use-controllable-state\",\"version\":\"1.2.6\"},\"@radix-ui__react-use-effect-event-0.0.5.tgz\":{\"integrity\":\"7cshFL8HGS/7HEiHH+9kL9HBwp2sa9yX18Knwek6KYWmXwM7pegMgta2AXMQKI+rq3JnfSj9x8wYqFMTdG1Jgg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"edcb2114bf07192ffb1c48871fef642fd1c1c29dac6bdc97d7c2a7c1e93a2985a65f033ba5e80c82d6b6017310288fabab72677d28fdc7cc18a85313746d4982\",\"name\":\"@radix-ui/react-use-effect-event\",\"version\":\"0.0.5\"},\"@radix-ui__react-use-layout-effect-1.1.4.tgz\":{\"integrity\":\"K20DkRkUwDnxEYMBPcg3Y6voLkEy5p5QQmszZgLngKKiC7dzBR/aEuK3w1qlx2JWDUNH6FluahYdgR3BP+QbYw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2b6d03911914c039f11183013dc83763abe82e4132e69e50426b336602e780a2a20bb773051fda12e2b7c35aa5c762560d4347e8596e6a161d811dc13fe41b63\",\"name\":\"@radix-ui/react-use-layout-effect\",\"version\":\"1.1.4\"},\"@reduxjs__toolkit-2.12.0.tgz\":{\"integrity\":\"KiT+RzZbp6mQET+Mg+h2c97+9j1sNflUxQkIHI7Yuzf6Peu+OYpmkn6nbHWmLLWj+1ZODUJFwGZ7gx3L9R9EOw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2a24fe47365ba7a990113f8c83e87673defef63d6c35f954c509081c8ed8bb37fa3debbe398a66927ea76c75a62cb5a3fb564e0d4245c0667b831dcbf51f443b\",\"name\":\"@reduxjs/toolkit\",\"version\":\"2.12.0\"},\"@resvg__resvg-wasm-2.6.2.tgz\":{\"integrity\":\"FqALmHI8D4o6lk/LRWDnhw95z5eO+eAa6ORjVg09YRR7BkcM6oPHU9uyC0gtQG5vpFLvgpeU4+zEAz2H8APHNw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"16a00b98723c0f8a3a964fcb4560e7870f79cf978ef9e01ae8e463560d3d61147b06470cea83c753dbb20b482d406e6fa452ef829794e3ecc4033d87f003c737\",\"name\":\"@resvg/resvg-wasm\",\"version\":\"2.6.2\"},\"@rolldown__binding-android-arm64-1.2.4.tgz\":{\"integrity\":\"jHC2cnyKz5xU2fhECtFl8OZ83cYNt13GZQD+0uMJ/X3o+ijmd56okHhTUwxVSHPx1IRVIJEZ1/1pPzeLCU6XKA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8c70b6727c8acf9c54d9f8440ad165f0e67cddc60db75dc66500fed2e309fd7de8fa28e6779ea8907853530c554873f1d48455209119d7fd693f378b094e9728\",\"name\":\"@rolldown/binding-android-arm64\",\"version\":\"1.2.4\"},\"@rolldown__binding-darwin-arm64-1.2.4.tgz\":{\"integrity\":\"Dc5mPD8F5F/FS8i01syd7FTF6yB2fVthH/TRkjwJkzUK6EpoxHtqvZQP5Zwq80/5z19TWYHIg1KOHboCgVx/aQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0dce663c3f05e45fc54bc8b4d6cc9dec54c5eb20767d5b611ff4d1923c0993350ae84a68c47b6abd940fe59c2af34ff9cf5f535981c883528e1dba02815c7f69\",\"name\":\"@rolldown/binding-darwin-arm64\",\"version\":\"1.2.4\"},\"@rolldown__binding-darwin-x64-1.2.4.tgz\":{\"integrity\":\"fpDm4oBo6SqLvWUYCmFhdde3U9KH2fRNNMeAnAPAIwxRL345xutL0EtEUcuoxsoazdJGv/MuDBQHlCDrtbvqOg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7e90e6e28068e92a8bbd65180a616175d7b753d287d9f44d34c7809c03c0230c512f7e39c6eb4bd04b4451cba8c6ca1acdd246bff32e0c14079420ebb5bbea3a\",\"name\":\"@rolldown/binding-darwin-x64\",\"version\":\"1.2.4\"},\"@rolldown__binding-freebsd-x64-1.2.4.tgz\":{\"integrity\":\"rSJoreDE/HoIzoaib6MTp5jQtCTdMHKIvItAKT/ImS6Y6Ww76oUaeMyp4Vc/fAgd/ehji068IxetHXAnqUwN9A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ad2268ade0c4fc7a08ce86a26fa313a798d0b424dd307288bc8b40293fc8992e98e96c3bea851a78cca9e1573f7c081dfde8638b4ebc2317ad1d7027a94c0df4\",\"name\":\"@rolldown/binding-freebsd-x64\",\"version\":\"1.2.4\"},\"@rolldown__binding-linux-arm-gnueabihf-1.2.4.tgz\":{\"integrity\":\"/jm8OGHgn7oGaJu3i/qZI9spUGcJ+y/lk43ttQ/iO1tOd9NissG6o97bighBCiL+BKRngmcDuR6ikfwYdJmVuQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"fe39bc3861e09fba06689bb78bfa9923db29506709fb2fe5938dedb50fe23b5b4e77d362b2c1baa3dedb8a08410a22fe04a467826703b91ea291fc18749995b9\",\"name\":\"@rolldown/binding-linux-arm-gnueabihf\",\"version\":\"1.2.4\"},\"@rolldown__binding-linux-arm64-gnu-1.2.4.tgz\":{\"integrity\":\"tIP06BeD9EqvECBrPZ+sqdPlYrT+aYaAiu1wYziVx5elRK/ftm33JxVDy2bXGbr6J0CrtirCkR87/X5a2euEng==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b483f4e81783f44aaf10206b3d9faca9d3e562b4fe6986808aed70633895c797a544afdfb66df7271543cb66d719bafa2740abb62ac2911f3bfd7e5ad9eb849e\",\"name\":\"@rolldown/binding-linux-arm64-gnu\",\"version\":\"1.2.4\"},\"@rolldown__binding-linux-arm64-musl-1.2.4.tgz\":{\"integrity\":\"Ql1Q0EQqVThvn9VAVlwNzsUvbSFtCMGjLpRRi4pk5i7NZZ4n5ISiLMjHYtus4VQ2PvkSw24zyaCVsiS+sXPj1w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"425d50d0442a55386f9fd540565c0dcec52f6d216d08c1a32e94518b8a64e62ecd659e27e484a22cc8c762dbace154363ef912c36e33c9a095b224beb173e3d7\",\"name\":\"@rolldown/binding-linux-arm64-musl\",\"version\":\"1.2.4\"},\"@rolldown__binding-linux-ppc64-gnu-1.2.4.tgz\":{\"integrity\":\"GjbjXD4XXfN19D0LZNbmiCBUoDiRACsYHr0yaIbbn8aFsXjHZifcYqu/W5Er5X2X990WjHXFrxarn5chzItorQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1a36e35c3e175df375f43d0b64d6e6882054a03891002b181ebd326886db9fc685b178c76627dc62abbf5b912be57d97f7dd168c75c5af16ab9f9721cc8b68ad\",\"name\":\"@rolldown/binding-linux-ppc64-gnu\",\"version\":\"1.2.4\"},\"@rolldown__binding-linux-s390x-gnu-1.2.4.tgz\":{\"integrity\":\"p5WR0NOwaRmJ/B1b6IjEFLLivwEsf3PrdBIhRbhTCQisbo2SvHHpG4ELB/+FgQNnB88LTOF86upmJmbvZdQ2lw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a79591d0d3b0691989fc1d5be888c414b2e2bf012c7f73eb74122145b8530908ac6e8d92bc71e91b810b07ff8581036707cf0b4ce17ceaea662666ef65d43697\",\"name\":\"@rolldown/binding-linux-s390x-gnu\",\"version\":\"1.2.4\"},\"@rolldown__binding-linux-x64-gnu-1.2.4.tgz\":{\"integrity\":\"4/GyVjmhR+Tc6HLJvwc1sOhPqAZtySiSMesOZyX6JQ5XBxoTDEMKQzvo07NIK6nTon/SivlZqvhzvuVBNQhObQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e3f1b25639a147e4dce872c9bf0735b0e84fa8066dc9289231eb0e6725fa250e57071a130c430a433be8d3b3482ba9d3a27fd28af959aaf873bee54135084e6d\",\"name\":\"@rolldown/binding-linux-x64-gnu\",\"version\":\"1.2.4\"},\"@rolldown__binding-linux-x64-musl-1.2.4.tgz\":{\"integrity\":\"l9eeLsCNvPpmSXUej0etw/J1eqV0Jj1D5G/xG6YTijmE6dkv6E2QezgWbTfQk63v952DPqrjOCoiqxq7Bw0YUQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"97d79e2ec08dbcfa6649751e8f47adc3f2757aa574263d43e46ff11ba6138a3984e9d92fe84d907b38166d37d093adeff79d833eaae3382a22ab1abb070d1851\",\"name\":\"@rolldown/binding-linux-x64-musl\",\"version\":\"1.2.4\"},\"@rolldown__binding-openharmony-arm64-1.2.4.tgz\":{\"integrity\":\"e0F355MSTMm3+UOqtV3L24gFUp2N5m1f8L/7d56deik6va+AXdrt9F8LbzGpeWGWRbZEDq4m8NVnJDeBtf9DZg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7b4177e793124cc9b7f943aab55dcbdb8805529d8de66d5ff0bffb779e9d7a293abdaf805ddaedf45f0b6f31a979619645b6440eae26f0d567243781b5ff4366\",\"name\":\"@rolldown/binding-openharmony-arm64\",\"version\":\"1.2.4\"},\"@rolldown__binding-win32-arm64-msvc-1.2.4.tgz\":{\"integrity\":\"AWLi0uBRYh6QlE7OKhiz+phZC0qwtij2QZmhmOdsLdFn64m7oMpooE9ICE3lhm9xMb4SpDo2WbHcxX1iFLFtqw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0162e2d2e051621e90944ece2a18b3fa98590b4ab0b628f64199a198e76c2dd167eb89bba0ca68a04f48084de5866f7131be12a43a3659b1dcc57d6214b16dab\",\"name\":\"@rolldown/binding-win32-arm64-msvc\",\"version\":\"1.2.4\"},\"@rolldown__binding-win32-x64-msvc-1.2.4.tgz\":{\"integrity\":\"UwSDJOg3dqCAejWdxclJjCsh3Qq4vLYMDxmyHqo1btz3stK2VqgwNd3mm5tuIwzSlGIQ/1H9Hr+Zn09mrezNqQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"53048324e83776a0807a359dc5c9498c2b21dd0ab8bcb60c0f19b21eaa356edcf7b2d2b656a83035dde69b9b6e230cd2946210ff51fd1ebf999f4f66adeccda9\",\"name\":\"@rolldown/binding-win32-x64-msvc\",\"version\":\"1.2.4\"},\"@rolldown__pluginutils-1.0.1.tgz\":{\"integrity\":\"2j9bGt5Jh8hj+vPtgzPtl72j0yRxHAyumoo6TNfAjsLB04UtpSvPbPcDcBMxz7n+9CYB0c1GxQFxYRg2jimqGw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"da3f5b1ade4987c863faf3ed8333ed97bda3d324711c0cae9a8a3a4cd7c08ec2c1d3852da52bcf6cf703701331cfb9fef42601d1cd46c501716118368e29aa1b\",\"name\":\"@rolldown/pluginutils\",\"version\":\"1.0.1\"},\"@sec-ant__readable-stream-0.4.1.tgz\":{\"integrity\":\"831qok9r2t8AlxLko40y2ebgSDhenenCatLVeW/uBtnHPyhHOvG0C7TvfgecV+wHzIm5KUICgzmVpWS+IMEAeg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f37d6aa24f6bdadf009712e4a38d32d9e6e048385e9de9c26ad2d5796fee06d9c73f28473af1b40bb4ef7e079c57ec07cc89b9294202833995a564be20c1007a\",\"name\":\"@sec-ant/readable-stream\",\"version\":\"0.4.1\"},\"@sindresorhus__is-4.6.0.tgz\":{\"integrity\":\"t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b74f6f48ddcc75fb32087a057134421ff894b46ece2740ac8f307c72302629cfef6bf90881e0c8fd3c6c8a0767704ff86deef7e26d1cbc863035a5788b65ea03\",\"name\":\"@sindresorhus/is\",\"version\":\"4.6.0\"},\"@sindresorhus__merge-streams-4.0.0.tgz\":{\"integrity\":\"tlqY9xq5ukxTUZBmoOp+m61cqwQD5pHJtFY3Mn8CA8ps6yghLH/Hw8UPdqg4OLmFW3IFlcXnQNmo/dh8HzXYIQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b65a98f71ab9ba4c53519066a0ea7e9bad5cab0403e691c9b45637327f0203ca6ceb28212c7fc7c3c50f76a83838b9855b720595c5e740d9a8fdd87c1f35d821\",\"name\":\"@sindresorhus/merge-streams\",\"version\":\"4.0.0\"},\"@standard-schema__spec-1.1.0.tgz\":{\"integrity\":\"l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"976685cb98c02e19e21b91e0aab0fa8d72e2feb516acabea37fa89c7aca826c80a85b95577e8aaa94e110976af9bf8cf8adc83a394c2bca327a632a73ab8b2d3\",\"name\":\"@standard-schema/spec\",\"version\":\"1.1.0\"},\"@standard-schema__utils-0.3.0.tgz\":{\"integrity\":\"e7Mew686owMaPJVNNLs55PUvgz371nKgwsc4vxE49zsODpJEnxgxRo2y/OKrqueavXgZNMDVj3DdHFlaSAeU8g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7bb31ec3af3aa3031a3c954d34bb39e4f52f833dfbd672a0c2c738bf1138f73b0e0e92449f1831468db2fce2abaae79abd781934c0d58f70dd1c595a480794f2\",\"name\":\"@standard-schema/utils\",\"version\":\"0.3.0\"},\"@szmarczak__http-timer-4.0.6.tgz\":{\"integrity\":\"4BAffykYOgO+5nzBWYwE3W90sBgLJoUPRWWcL8wlyiM8IB8ipJz3UMJ9KXQd1RKQXpKp8Tutn80HZtWsu2u76w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e0101f7f29183a03bee67cc1598c04dd6f74b0180b26850f45659c2fcc25ca233c201f22a49cf750c27d29741dd512905e92a9f13bad9fcd0766d5acbb6bbbeb\",\"name\":\"@szmarczak/http-timer\",\"version\":\"4.0.6\"},\"@tailwindcss__node-4.3.3.tgz\":{\"integrity\":\"/T8IKEsf9VTU6tLjgC7+sv2mOPtQxzE2jMw7u4Tt40Tx+QSZxpzh95/H6cMKoja9XuW7iMdLJYBB0o9G1CaAgg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"fd3f08284b1ff554d4ead2e3802efeb2fda638fb50c731368ccc3bbb84ede344f1f90499c69ce1f79fc7e9c30aa236bd5ee5bb88c74b258041d28f46d4268082\",\"name\":\"@tailwindcss/node\",\"version\":\"4.3.3\"},\"@tailwindcss__oxide-4.3.3.tgz\":{\"integrity\":\"krXjAikiaFSPaK/FkAQT5UTx3VormQaiZ5hBFlJZ9UFQGB/rwg1MZIhHAG9smMQRTdyJxP6Qt5MwMtdyU5FWrA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"92b5e302292268548f68afc5900413e544f1dd5a2b9906a2679841165259f54150181febc20d4c648847006f6c98c4114ddc89c4fe90b7933032d772539156ac\",\"name\":\"@tailwindcss/oxide\",\"version\":\"4.3.3\"},\"@tailwindcss__oxide-android-arm64-4.3.3.tgz\":{\"integrity\":\"Y85A2gmPSkl5Ve5qR86GL4HT509cFqQh1aes9p3sSkyTPwt0Pppf3GkwGe4JPACcRYjgJIEhQgM6dBClnr0NYw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"63ce40da098f4a497955ee6a47ce862f81d3e74f5c16a421d5a7acf69dec4a4c933f0b743e9a5fdc693019ee093c009c4588e024812142033a7410a59ebd0d63\",\"name\":\"@tailwindcss/oxide-android-arm64\",\"version\":\"4.3.3\"},\"@tailwindcss__oxide-darwin-arm64-4.3.3.tgz\":{\"integrity\":\"BiaWatpBcERQFDlOjRDpIVXuFK5PJez5SA4JMg6VYZdBYU+qKfV/vqjcIs+IYmtitf1xYQZTwXvU/8y4lfZUGw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0626966ada4170445014394e8d10e92155ee14ae4f25ecf9480e09320e95619741614faa29f57fbea8dc22cf88626b62b5fd71610653c17bd4ffccb895f6541b\",\"name\":\"@tailwindcss/oxide-darwin-arm64\",\"version\":\"4.3.3\"},\"@tailwindcss__oxide-darwin-x64-4.3.3.tgz\":{\"integrity\":\"fAeUqfV5ndhxRwai8cXGzdLvul9utWOmeTkv69unv4ZXixjn61Z+p9lCWdwOwA3TYboG3BwdVuN/RDjhBRl0mw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7c0794a9f5799dd8714706a2f1c5c6cdd2efba5f6eb563a679392febdba7bf86578b18e7eb567ea7d94259dc0ec00dd361ba06dc1c1d56e37f4438e10519749b\",\"name\":\"@tailwindcss/oxide-darwin-x64\",\"version\":\"4.3.3\"},\"@tailwindcss__oxide-freebsd-x64-4.3.3.tgz\":{\"integrity\":\"iyf5bV6+wnAlflVeEy7R25dupxTNECZN5QMI0qNT6eT+EgaGdZcKhGkr5SdoaWiLJ3spLqIY9VCeSGrwmtg4kw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8b27f96d5ebec270257e555e132ed1db976ea714cd10264de50308d2a353e9e4fe12068675970a84692be5276869688b277b292ea218f5509e486af09ad83893\",\"name\":\"@tailwindcss/oxide-freebsd-x64\",\"version\":\"4.3.3\"},\"@tailwindcss__oxide-linux-arm-gnueabihf-4.3.3.tgz\":{\"integrity\":\"aAYUprJAJQWWbRrPvtjdroZ56Md+JM8pMiopS6xGEwDfLhqj+2ver2p4nU4Mb3CRqcMmNBjo8KkUgcxhkzVQGQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"680614a6b2402505966d1acfbed8ddae8679e8c77e24cf29322a294bac461300df2e1aa3fb6bdeaf6a789d4e0c6f7091a9c3263418e8f0a91481cc6193355019\",\"name\":\"@tailwindcss/oxide-linux-arm-gnueabihf\",\"version\":\"4.3.3\"},\"@tailwindcss__oxide-linux-arm64-gnu-4.3.3.tgz\":{\"integrity\":\"nDxldcEENOxZRzC2uu9jrutZdAAQtb+8WWDCSnWL1zvBk1+FN+x6MtDViPB5AJMfttVCUhehGWus3XBPgatM/w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9c3c6575c10434ec594730b6baef63aeeb59740010b5bfbc5960c24a758bd73bc1935f8537ec7a32d0d588f07900931fb6d5425217a1196bacdd704f81ab4cff\",\"name\":\"@tailwindcss/oxide-linux-arm64-gnu\",\"version\":\"4.3.3\"},\"@tailwindcss__oxide-linux-arm64-musl-4.3.3.tgz\":{\"integrity\":\"Md44bD6veX/PC5iyF8cDVnw4HBIANZepRZZ7a8DQOvkfo5WUBwcp6iAuCUz23u+4SUkhJlD3eL7hNdW8ezd/kA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"31de386c3eaf797fcf0b98b217c703567c381c12003597a945967b6bc0d03af91fa39594070729ea202e094cf6deefb84949212650f778bee135d5bc7b377f90\",\"name\":\"@tailwindcss/oxide-linux-arm64-musl\",\"version\":\"4.3.3\"},\"@tailwindcss__oxide-linux-x64-gnu-4.3.3.tgz\":{\"integrity\":\"tx7us1muwOKAKWao2v/GaafFeQboE6aj88vC6ziN2NCGcRm8gWUhwjzg+YdVB1e4boAtdtma4L43onunI6NS4w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b71eeeb359aec0e2802966a8daffc669a7c57906e813a6a3f3cbc2eb388dd8d0867119bc816521c23ce0f987550757b86e802d76d99ae0be37a27ba723a352e3\",\"name\":\"@tailwindcss/oxide-linux-x64-gnu\",\"version\":\"4.3.3\"},\"@tailwindcss__oxide-linux-x64-musl-4.3.3.tgz\":{\"integrity\":\"SJxX60smvHgasZoBy11dX6YRjXJFovwWBoedhbQPOBzgFWBHGB+TVPWB9BxzR7TTxU8FQZAI2AyiNCMzFm8Img==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"489c57eb4b26bc781ab19a01cb5d5d5fa6118d7245a2fc1606879d85b40f381ce0156047181f9354f581f41c7347b4d3c54f05419008d80ca2342333166f089a\",\"name\":\"@tailwindcss/oxide-linux-x64-musl\",\"version\":\"4.3.3\"},\"@tailwindcss__oxide-wasm32-wasi-4.3.3.tgz\":{\"integrity\":\"jx1+rPhY/5Ympkktd656HBWEBLxP7dH06losBLjjf5vgCODXvi9KhtftWcMIwTFIDqBr7cRnQkdLnAG+IOlGvQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8f1d7eacf858ff9626a6492d77ae7a1c158404bc4fedd1f4ea5a2c04b8e37f9be008e0d7be2f4a86d7ed59c308c131480ea06bedc46742474b9c01be20e946bd\",\"name\":\"@tailwindcss/oxide-wasm32-wasi\",\"version\":\"4.3.3\"},\"@tailwindcss__oxide-win32-arm64-msvc-4.3.3.tgz\":{\"integrity\":\"3rc292Ca2ceK6Ulcc/bAVnTs/3nDtoPhyEKlgPv+yQJQi/JS/AMJlqzxvlDacL1nekbrcf6bTqp/jV4qgnPxNQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"deb736f7609ad9c78ae9495c73f6c05674ecff79c3b683e1c842a580fbfec902508bf252fc030996acf1be50da70bd677a46eb71fe9b4eaa7f8d5e2a8273f135\",\"name\":\"@tailwindcss/oxide-win32-arm64-msvc\",\"version\":\"4.3.3\"},\"@tailwindcss__oxide-win32-x64-msvc-4.3.3.tgz\":{\"integrity\":\"yJ0pwIVc/nYeGoV02WtsN8KYyLQv7kyI2wDnkezyJlGGjkd4QLwDGAwl47YpPJeuI0M0ObaXGSPjvWDPeTPggw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c89d29c0855cfe761e1a8574d96b6c37c298c8b42fee4c88db00e791ecf22651868e477840bc03180c25e3b6293c97ae23433439b6971923e3bd60cf7933e083\",\"name\":\"@tailwindcss/oxide-win32-x64-msvc\",\"version\":\"4.3.3\"},\"@tailwindcss__vite-4.3.3.tgz\":{\"integrity\":\"yYU8cogLeSh/ms2jh8Fj7jaba/EWa7Ja6GoUqYZaraEuCI5YS6ms6ObZgjjedm+jm6XZjdNRWBpPP6Z86oOxcw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c9853c72880b79287f9acda387c163ee369b6bf1166bb25ae86a14a9865aada12e088e584ba9ace8e6d98238de766fa39ba5d98dd351581a4f3fa67cea83b173\",\"name\":\"@tailwindcss/vite\",\"version\":\"4.3.3\"},\"@tanstack__react-virtual-3.14.9.tgz\":{\"integrity\":\"qZyr0FZDP8rDC4WBhsryIZmAd9bveJvFGUJJtskWaew6/0dTRS6wZxnR6VQ5bY2KwL3LjerrHqQLk3a0GKcPXQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a99cabd056433fcac30b858186caf221998077d6ef789bc5194249b6c91669ec3aff4753452eb06719d1e954396d8d8ac0bdcb8deaeb1ea40b9376b418a70f5d\",\"name\":\"@tanstack/react-virtual\",\"version\":\"3.14.9\"},\"@tanstack__virtual-core-3.17.7.tgz\":{\"integrity\":\"bp+v10y65sp2H7WpWfIMyxTNfl8ZVfxFTLRjPIFRryi6FV/J33z4IS53WO4pTk36KlvJ4iLiQz+oaydDC1xbcA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6e9fafd74cbae6ca761fb5a959f20ccb14cd7e5f1955fc454cb4633c8151af28ba155fc9df7cf8212e7758ee294e4dfa2a5bc9e222e2433fa86b27430b5c5b70\",\"name\":\"@tanstack/virtual-core\",\"version\":\"3.17.7\"},\"@testing-library__dom-10.4.1.tgz\":{\"integrity\":\"o4PXJQidqJl82ckFaXUeoAW+XysPLauYI43Abki5hABd853iMhitooc6znOnczgbTYmEP6U6/y1ZyKAIsvMKGg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a383d725089da8997cd9c90569751ea005be5f2b0f2dab98238dc06e48b984005df39de23218ada2873ace73a773381b4d89843fa53aff2d59c8a008b2f30a1a\",\"name\":\"@testing-library/dom\",\"version\":\"10.4.1\"},\"@testing-library__jest-dom-7.0.1.tgz\":{\"integrity\":\"oMDTC3oA+6CXSO2JZnvOI7CA6oVub6kij5ggk9ohwye5slmkwxYDXcPOVxgMw/RQlticjtO0C1RZkR97HgrWMw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a0c0d30b7a00fba09748ed89667bce23b080ea856e6fa9228f982093da21c327b9b259a4c316035dc3ce57180cc3f45096d89c8ed3b40b5459911f7b1e0ad633\",\"name\":\"@testing-library/jest-dom\",\"version\":\"7.0.1\"},\"@testing-library__react-16.3.2.tgz\":{\"integrity\":\"XU5/SytQM+ykqMnAnvB2umaJNIOsLF3PVv//1Ew4CTcpz0/BRyy/af40qqrt7SjKpDdT1saBMc42CUok5gaw+g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5d4e7f4b2b5033eca4a8c9c09ef076ba66893483ac2c5dcf56ffffd44c38093729cf4fc1472cbf69fe34aaaaeded28caa43753d6c68131ce36094a24e606b0fa\",\"name\":\"@testing-library/react\",\"version\":\"16.3.2\"},\"@testing-library__user-event-14.6.4.tgz\":{\"integrity\":\"QCGwP6QrjypBLwyj5cuyfVamkaIEy/XGY+1VDehbtbQqOggYmTFpFOdWR5mPz14vX8vXLMVjDHlRNBcClyO9ew==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4021b03fa42b8f2a412f0ca3e5cbb27d56a691a204cbf5c663ed550de85bb5b42a3a081899316914e75647998fcf5e2f5fcbd72cc5630c79513417029723bd7b\",\"name\":\"@testing-library/user-event\",\"version\":\"14.6.4\"},\"@thaunknown__thirty-two-1.0.6.tgz\":{\"integrity\":\"Uz2kFb0cNeHg7hds8BtI/umcwzaSMUdbkeQgZrIZQbp3gWRFjrvrvBHNEB6SQYChVxC3rWHovKx1Ya/vSRRMYA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"533da415bd1c35e1e0ee176cf01b48fee99cc3369231475b91e42066b21941ba778164458ebbebbc11cd101e924180a15710b7ad61e8bcac7561afef49144c60\",\"name\":\"@thaunknown/thirty-two\",\"version\":\"1.0.6\"},\"@ts-morph__common-0.27.0.tgz\":{\"integrity\":\"Wf29UqxWDpc+i61k3oIOzcUfQt79PIT9y/MWfAGlrkjg6lBC1hwDECLXPVJAhWjiGbfBCxZd65F/LIZF3+jeJQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"59fdbd52ac560e973e8bad64de820ecdc51f42defd3c84fdcbf3167c01a5ae48e0ea5042d61c031022d73d52408568e219b7c10b165deb917f2c8645dfe8de25\",\"name\":\"@ts-morph/common\",\"version\":\"0.27.0\"},\"@types__aria-query-5.0.4.tgz\":{\"integrity\":\"rfT93uj5s0PRL7EzccGMs3brplhcrghnDoV26NqKhCAS1hVo+WdNsPvE/yb6ilfr5hi2MEk6d5EWJTKdxg8jVw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"adf4fddee8f9b343d12fb13371c18cb376eba6585cae08670e8576e8da8a842012d61568f9674db0fbc4ff26fa8a57ebe618b630493a77911625329dc60f2357\",\"name\":\"@types/aria-query\",\"version\":\"5.0.4\"},\"@types__better-sqlite3-9.6.0.tgz\":{\"integrity\":\"ZEEwBSgMu7GYJOynoagg5X9JbxfL6dTJDsgViJIqh67jV44kyOr9RXfmFjLK5rzC4MWssP06t9hu/JwGDnUbCg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"64413005280cbbb19824eca7a1a820e57f496f17cbe9d4c90ec81588922a87aee3578e24c8eafd4577e61632cae6bcc2e0c5acb0fd3ab7d86efc9c060e751b0a\",\"name\":\"@types/better-sqlite3\",\"version\":\"9.6.0\"},\"@types__cacheable-request-6.0.3.tgz\":{\"integrity\":\"IQ3EbTzGxIigb1I3qPZc1rWJnH0BmSKv5QYTalEwweFvyBDLSAe24zP0le/hyi7ecGfZVlIVAg4BZqb8WBwKqw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"210dc46d3cc6c488a06f5237a8f65cd6b5899c7d019922afe506136a5130c1e16fc810cb4807b6e333f495efe1ca2ede7067d9565215020e0166a6fc581c0aab\",\"name\":\"@types/cacheable-request\",\"version\":\"6.0.3\"},\"@types__chai-5.2.3.tgz\":{\"integrity\":\"Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"330e79f28780f5f15bbfae7fcb8987b570ecf5b3e714c6402ff8f174f154a4e1c72175fdd667201076d2e4b6a1afea7064547c03b19095e456788e9c1850b650\",\"name\":\"@types/chai\",\"version\":\"5.2.3\"},\"@types__d3-array-3.2.2.tgz\":{\"integrity\":\"hOLWVbm7uRza0BYXpIIW5pxfrKe0W+D5lrFiAEYR+pb6w3N2SwSMaJbXdUfSEv+dT4MfHBLtn5js0LAWaO6otw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"84e2d655b9bbb91cdad01617a48216e69c5faca7b45be0f996b162004611fa96fac373764b048c6896d77547d212ff9d4f831f1c12ed9f98ecd0b01668eea8b7\",\"name\":\"@types/d3-array\",\"version\":\"3.2.2\"},\"@types__d3-color-3.1.3.tgz\":{\"integrity\":\"iO90scth9WAbmgv7ogoq57O9YpKmFBbmoEoCHDB2xMBY0+/KVrqAaCDyCE16dUspeOvIxFFRI+0sEtqDqy2b4A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"88ef74b1cb61f5601b9a0bfba20a2ae7b3bd6292a61416e6a04a021c3076c4c058d3efca56ba806820f2084d7a754b2978ebc8c4515123ed2c12da83ab2d9be0\",\"name\":\"@types/d3-color\",\"version\":\"3.1.3\"},\"@types__d3-drag-3.0.7.tgz\":{\"integrity\":\"HE3jVKlzU9AaMazNufooRJ5ZpWmLIoc90A37WU2JMmeq28w1FQqCZswHZ3xR+SuxYftzHq6WU6KJHvqxKzTxxQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1c4de354a97353d01a31accdb9fa28449e59a5698b22873dd00dfb594d893267aadbcc35150a8266cc07677c51f92bb161fb731eae9653a2891efab12b34f1c5\",\"name\":\"@types/d3-drag\",\"version\":\"3.0.7\"},\"@types__d3-ease-3.0.2.tgz\":{\"integrity\":\"NcV1JjO5oDzoK26oMzbILE6HW7uVXOHLQvHshBUW4UMdZGfiY6v5BeQwh9a9tCzv+CeefZQHJt5SRgK154RtiA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"35c5752633b9a03ce82b6ea83336c82c4e875bbb955ce1cb42f1ec841516e1431d6467e263abf905e43087d6bdb42ceff8279e7d940726de524602b5e7846d88\",\"name\":\"@types/d3-ease\",\"version\":\"3.0.2\"},\"@types__d3-interpolate-3.0.4.tgz\":{\"integrity\":\"mgLPETlrpVV1YRJIglr4Ez47g7Yxjl1lj7YKsiMCb27VJH9W8NVM6Bb9d8kkpG/uAQS5AmbA48q2IAolKKo1MA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9a02cf11396ba55575611248825af8133e3b83b6318e5d658fb60ab223026f6ed5247f56f0d54ce816fd77c924a46fee0104b90266c0e3cab6200a2528aa3530\",\"name\":\"@types/d3-interpolate\",\"version\":\"3.0.4\"},\"@types__d3-path-3.1.1.tgz\":{\"integrity\":\"VMZBYyQvbGmWyWVea0EHs/BwLgxc+MKi1zLDCONksozI4YJMcTt8ZEuIR4Sb1MMTE8MMW49v0IwI5+b7RmfWlg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"54c64163242f6c6996c9655e6b4107b3f0702e0c5cf8c2a2d732c308e364b28cc8e1824c713b7c644b8847849bd4c31313c30c5b8f6fd08c08e7e6fb4667d696\",\"name\":\"@types/d3-path\",\"version\":\"3.1.1\"},\"@types__d3-scale-4.0.9.tgz\":{\"integrity\":\"dLmtwB8zkAeO/juAMfnV+sItKjlsw2lKdZVVy6LRr0cBmegxSABiLEpGVmSJJ8O08i4+sGR6qQtb6WtuwJdvVw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"74b9adc01f3390078efe3b8031f9d5fac22d2a396cc3694a759555cba2d1af470199e8314800622c4a4656648927c3b4f22e3eb0647aa90b5be96b6ec0976f57\",\"name\":\"@types/d3-scale\",\"version\":\"4.0.9\"},\"@types__d3-selection-3.0.11.tgz\":{\"integrity\":\"bhAXu23DJWsrI45xafYpkQ4NtcKMwWnAC/vKrd2l+nxMFuvOT3XMYTIj2opv8vq8AO5Yh7Qac/nSeP/3zjTK0w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6e1017bb6dc3256b2b238e7169f629910e0db5c28cc169c00bfbcaaddda5fa7c4c16ebce4f75cc613223da8a6ff2fabc00ee5887b41a73f9d278fff7ce34cad3\",\"name\":\"@types/d3-selection\",\"version\":\"3.0.11\"},\"@types__d3-shape-3.1.8.tgz\":{\"integrity\":\"lae0iWfcDeR7qt7rA88BNiqdvPS5pFVPpo5OfjElwNaT2yyekbM0C9vK+yqBqEmHr6lDkRnYNoTBYlAgJa7a4w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"95a7b48967dc0de47baadeeb03cf01362a9dbcf4b9a4554fa68e4e7e3125c0d693db2c9e91b3340bdbcafb2a81a84987afa9439119d83684c162502025aedae3\",\"name\":\"@types/d3-shape\",\"version\":\"3.1.8\"},\"@types__d3-time-3.0.4.tgz\":{\"integrity\":\"yuzZug1nkAAaBlBBikKZTgzCeA+k1uy4ZFwWANOfKw5z5LRhV0gNA7gNkKm7HoK+HRN0wX3EkxGk0fpbWhmB7g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"caecd9ba0d6790001a0650418a42994e0cc2780fa4d6ecb8645c1600d39f2b0e73e4b46157480d03b80d90a9bb1e82be1d1374c17dc49311a4d1fa5b5a1981ee\",\"name\":\"@types/d3-time\",\"version\":\"3.0.4\"},\"@types__d3-timer-3.0.2.tgz\":{\"integrity\":\"Ps3T8E8dZDam6fUyNiMkekK3XUsaUEik+idO9/YjPtfj2qruF8tFBXS7XhtE4iIXBLxhmLjP3SXpLhVf21I9Lw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3ecdd3f04f1d6436a6e9f5323623247a42b75d4b1a5048a4fa274ef7f6233ed7e3daaaee17cb450574bb5e1b44e2221704bc6198b8cfdd25e92e155fdb523d2f\",\"name\":\"@types/d3-timer\",\"version\":\"3.0.2\"},\"@types__d3-transition-3.0.9.tgz\":{\"integrity\":\"uZS5shfxzO3rGlu0cC3bjmMFKsXv+SmZZcgp0KD22ts4uGXp5EVYGzu/0YdwZeKmddhcAccYtREJKkPfXkZuCg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b994b9b217f1ccedeb1a5bb4702ddb8e63052ac5eff9299965c829d0a0f6dadb38b865e9e445581b3bbfd1877065e2a675d85c01c718b511092a43df5e466e0a\",\"name\":\"@types/d3-transition\",\"version\":\"3.0.9\"},\"@types__d3-zoom-3.0.8.tgz\":{\"integrity\":\"iqMC4/YlFCSlO8+2Ii1GGGliCAY4XdeG748w5vQUbevlbDu0zSjH/+jojorQVBK/se0j6DUFNPBGSqD3YWYnDw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8aa302e3f6251424a53bcfb6222d461869620806385dd786ef8f30e6f4146debe56c3bb4cd28c7ffe8e88e8ad05412bfb1ed23e8350534f0464aa0f76166270f\",\"name\":\"@types/d3-zoom\",\"version\":\"3.0.8\"},\"@types__debug-4.1.13.tgz\":{\"integrity\":\"KSVgmQmzMwPlmtljOomayoR89W4FynCAi3E8PPs7vmDVPe84hT+vGPKkJfThkmXs0x0jAaa9U8uW8bbfyS2fWw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2925609909b33303e59ad9633a899aca847cf56e05ca70808b713c3cfb3bbe60d53def38853faf18f2a425f4e19265ecd31d2301a6bd53cb96f1b6dfc92d9f5b\",\"name\":\"@types/debug\",\"version\":\"4.1.13\"},\"@types__deep-eql-4.0.2.tgz\":{\"integrity\":\"c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"73d87d75554c8a030f7386f04ef0b9771aada8967040f78fb168cf96948e9e88dba2bea91aa764e78d657c0ec0a8542be6907505176ad23b98f5d6fcd41c3217\",\"name\":\"@types/deep-eql\",\"version\":\"4.0.2\"},\"@types__estree-1.0.9.tgz\":{\"integrity\":\"GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1a174f832d5e978fc898fd395f4e54c38730dbf33ddc10949a712f599352b650b310a304e05924f98a680393a21cd426a12ec269f6fc5dadcfc9af26d50af37a\",\"name\":\"@types/estree\",\"version\":\"1.0.9\"},\"@types__fs-extra-9.0.13.tgz\":{\"integrity\":\"nEnwB++1u5lVDM2UI4c1+5R+FYaKfaAzS4OococimjVm3nQw3TuzH5UNsocrcTBbhnerblyHj4A49qXbIiZdpA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9c49f007efb5bb99550ccd94238735fb947e15868a7da0334b83a87287229a3566de7430dd3bb31f950db2872b71305b8677ab6e5c878f8038f6a5db22265da4\",\"name\":\"@types/fs-extra\",\"version\":\"9.0.13\"},\"@types__http-cache-semantics-4.2.0.tgz\":{\"integrity\":\"L3LgimLHXtGkWikKnsPg0/VFx9OGZaC+eN1u4r+OB1XRqH3meBIAVC2zr1WdMH+RHmnRkqliQAOHNJ/E0j/e0Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2f72e08a62c75ed1a45a290a9ec3e0d3f545c7d38665a0be78dd6ee2bf8e0755d1a87de6781200542db3af559d307f911e69d192a962400387349fc4d23fded1\",\"name\":\"@types/http-cache-semantics\",\"version\":\"4.2.0\"},\"@types__keyv-3.1.4.tgz\":{\"integrity\":\"BQ5aZNSCpj7D6K2ksrRCTmKRLEpnPvWDiLPfoGyhZ++8YtiK9d/3DBKPJgry359X/P1PfruyYwvnvwFjuEiEIg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"050e5a64d482a63ec3e8ada4b2b4424e62912c4a673ef58388b3dfa06ca167efbc62d88af5dff70c128f260af2df9f57fcfd4f7ebbb2630be7bf0163b8488422\",\"name\":\"@types/keyv\",\"version\":\"3.1.4\"},\"@types__ms-2.1.0.tgz\":{\"integrity\":\"GsCCIZDE/p3i96vtEqx+7dBUGXrc7zeSK3wwPHIaRThS+9OhWIXRqzs4d6k1SVU8g91DrNRWxWUGhp5KXQb2VA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1ac0822190c4fe9de2f7abed12ac7eedd054197adcef37922b7c303c721a453852fbd3a15885d1ab3b3877a93549553c83dd43acd456c56506869e4a5d06f654\",\"name\":\"@types/ms\",\"version\":\"2.1.0\"},\"@types__node-24.13.3.tgz\":{\"integrity\":\"Dh8vAsV36ig5wa9OX4pXvMc9D3Veibfw2wix0CUwYODLD8nkj9UsLjASr49nPg+2eKzxhBV+v7L8pXvT4e639Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0e1f2f02c577ea2839c1af4e5f8a57bcc73d0f755e89b7f0db08b1d0253060e0cb0fc9e48fd52c2e3012af8f673e0fb678acf184157ebfb2fca57bd3e1eeb7f5\",\"name\":\"@types/node\",\"version\":\"24.13.3\"},\"@types__node-26.2.0.tgz\":{\"integrity\":\"5IviulTZeRNp2vAJ514cc/HUlY5nZ9fCbq9DMyC52BrhFZACo3nI0R7qBxhQmo/d27NFe96ur/b7Wwxklda+kg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e48be2ba54d9791369daf009e75e1c73f1d4958e6767d7c26eaf433320b9d81ae1159002a379c8d11eea0718509a8fdddbb3457bdeaeaff6fb5b0c6495d6be92\",\"name\":\"@types/node\",\"version\":\"26.2.0\"},\"@types__react-19.2.18.tgz\":{\"integrity\":\"AnzbBERsrLKtk2XSfTbYRLjQPdy116Sty4q+T+Bp3IC4l6jNBvreVPAHmpq9qhXQM7CXZPjLVmGMw9sy+hxQ3w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"027cdb04446cacb2ad9365d27d36d844b8d03ddcb5d7a4adcb8abe4fe069dc80b897a8cd06fade54f0079a9abdaa15d033b09764f8cb56618cc3db32fa1c50df\",\"name\":\"@types/react\",\"version\":\"19.2.18\"},\"@types__react-dom-19.2.4.tgz\":{\"integrity\":\"Bsc+QHgp+P/F02XDzNCY9jnZNCUuLki36KT7VKrTXXLdHf+vHMNZnW1rVu5DNW/rCK+fya3DATySbLM4yhtKUw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"06c73e407829f8ffc5d365c3ccd098f639d934252e2e48b7e8a4fb54aad35d72dd1dffaf1cc3599d6d6b56ee43356feb08af9fc9adc3013c926cb338ca1b4a53\",\"name\":\"@types/react-dom\",\"version\":\"19.2.4\"},\"@types__responselike-1.0.3.tgz\":{\"integrity\":\"H/+L+UkTV33uf49PH5pCAUBVPNj2nDBXTN+qS1dOwyyg24l3CcicicCA7ca+HMvJBZcFgl5r8e+RR6elsb4Lyw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1fff8bf94913577dee7f8f4f1f9a420140553cd8f69c30574cdfaa4b574ec32ca0db897709c89c89c080edc6be1ccbc9059705825e6bf1ef9147a7a5b1be0bcb\",\"name\":\"@types/responselike\",\"version\":\"1.0.3\"},\"@types__use-sync-external-store-0.0.6.tgz\":{\"integrity\":\"zFDAD+tlpf2r4asuHEj0XH6pY6i0g5NeAHPn+15wk3BV6JA69eERFXC1gyGThDkVa1zCyKr5jox1+2LbV/AMLg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"cc50c00feb65a5fdabe1ab2e1c48f45c7ea963a8b483935e0073e7fb5e70937055e8903af5e1111570b58321938439156b5cc2c8aaf98e8c75fb62db57f00c2e\",\"name\":\"@types/use-sync-external-store\",\"version\":\"0.0.6\"},\"@types__validate-npm-package-name-4.0.2.tgz\":{\"integrity\":\"lrpDziQipxCEeK5kWxvljWYhUvOiB2A9izZd9B2AFarYAkqZshb4lPbRs7zKEic6eGtH8V/2qJW+dPp9OtF6bw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"96ba43ce2422a7108478ae645b1be58d662152f3a207603d8b365df41d8015aad8024a99b216f894f6d1b3bcca12273a786b47f15ff6a895be74fa7d3ad17a6f\",\"name\":\"@types/validate-npm-package-name\",\"version\":\"4.0.2\"},\"@types__write-file-atomic-4.0.3.tgz\":{\"integrity\":\"qdo+vZRchyJIHNeuI1nrpsLw+hnkgqP/8mlaN6Wle/NKhydHmUN9l4p3ZE8yP90AJNJW4uB8HQhedb4f1vNayQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a9da3ebd945c8722481cd7ae2359eba6c2f0fa19e482a3fff2695a37a5a57bf34a87274799437d978a77644f323fdd0024d256e2e07c1d085e75be1fd6f35ac9\",\"name\":\"@types/write-file-atomic\",\"version\":\"4.0.3\"},\"@types__ws-8.18.1.tgz\":{\"integrity\":\"ThVF6DCVhA8kUGy+aazFQ4kXQ7E1Ty7A3ypFOe0IcJV8O/M511G99AW24irKrW56Wt44yG9+ij8FaqoBGkuBXg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4e1545e83095840f24506cbe69acc543891743b1354f2ec0df2a4539ed0870957c3bf339d751bdf405b6e22acaad6e7a5ade38c86f7e8a3f056aaa011a4b815e\",\"name\":\"@types/ws\",\"version\":\"8.18.1\"},\"@types__yauzl-3.4.0.tgz\":{\"integrity\":\"NRPn5w6h8dhcnmx3YIRQcqMywY/+nND/uOkJessedcrowO3C0AssHp3tMJpxKAwOhFOo0OV1y9VtsC5hbKKBAw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3513e7e70ea1f1d85c9e6c7760845072a332c18ffe9cd0ffb8e9097acb1e75cae8c0edc2d00b2c1e9ded309a71280c0e8453a8d0e575cbd56db02e616ca28103\",\"name\":\"@types/yauzl\",\"version\":\"3.4.0\"},\"@typescript__typescript-aix-ppc64-7.0.2.tgz\":{\"integrity\":\"MTKKkWB7p/0E9xi1d1tHtZ5PiLkGEMIq88pK2CubZjOsLtYTLqhgIgi6zepFa+9GHZ6h05NMCkQxGKiPXMxXtQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"31328a91607ba7fd04f718b5775b47b59e4f88b90610c22af3ca4ad82b9b6633ac2ed6132ea8602208bacdea456bef461d9ea1d3934c0a443118a88f5ccc57b5\",\"name\":\"@typescript/typescript-aix-ppc64\",\"version\":\"7.0.2\"},\"@typescript__typescript-darwin-arm64-7.0.2.tgz\":{\"integrity\":\"gowzar9MwS/aRWp6f3a4KUqzRjAZjOsmGNCM6LcTgXum+dBfgsBVMN+AgvOCCbguXyick6LJhpBszxMebJ8syA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"828c336abf4cc12fda456a7a7f76b8294ab34630198ceb2618d08ce8b713817ba6f9d05f82c05530df8082f38209b82e5f289c93a2c986906ccf131e6c9f2cc8\",\"name\":\"@typescript/typescript-darwin-arm64\",\"version\":\"7.0.2\"},\"@typescript__typescript-darwin-x64-7.0.2.tgz\":{\"integrity\":\"SZ9xZInqApNlNGc9s0W1VSsktYSOe9cFqNOIqmN1Gs8SmkjKZYFt017G4VwPxASInODuAdbTW7sXiFUf893RgA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"499f716489ea02936534673db345b5552b24b5848e7bd705a8d388aa63751acf129a48ca65816dd35ec6e15c0fc404889ce0ee01d6d35bbb1788551ff3ddd180\",\"name\":\"@typescript/typescript-darwin-x64\",\"version\":\"7.0.2\"},\"@typescript__typescript-freebsd-arm64-7.0.2.tgz\":{\"integrity\":\"W5NH4y/J0plIIS5b2xvTEkU7JFxyqdMAOgf+Ilhl0vHQXKO5dZoxd+C/jEtq56c4F3wk71RB4BMRQ2XdI+bwYQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5b9347e32fc9d29948212e5bdb1bd312453b245c72a9d3003a07fe225865d2f1d05ca3b9759a3177e0bf8c4b6ae7a738177c24ef5441e013114365dd23e6f061\",\"name\":\"@typescript/typescript-freebsd-arm64\",\"version\":\"7.0.2\"},\"@typescript__typescript-freebsd-x64-7.0.2.tgz\":{\"integrity\":\"UMGDx5sTpzNw3WiPebH7l90IWfJggEd+egHt/q6p7/Cm3zqoV7VxkGXt+3DxPIw8CcmvAB0j3sVVfbhX+M4Tpw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"50c183c79b13a73370dd688f79b1fb97dd0859f26080477e7a01edfeaea9eff0a6df3aa857b5719065edfb70f13c8c3c09c9af001d23dec5557db857f8ce13a7\",\"name\":\"@typescript/typescript-freebsd-x64\",\"version\":\"7.0.2\"},\"@typescript__typescript-linux-arm-7.0.2.tgz\":{\"integrity\":\"gffT3xPz9sR7j/YJExkyPntrI0P2EP9XbOyWzth2/Gs0RstK+90RBcO0ncXoXy/beYll1SXw846Nf2zdnEz0QQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"81f7d3df13f3f6c47b8ff6091319323e7b6b2343f610ff576cec96ced876fc6b3446cb4afbdd1105c3b49dc5e85f2fdb798965d525f0f38e8d7f6cdd9c4cf441\",\"name\":\"@typescript/typescript-linux-arm\",\"version\":\"7.0.2\"},\"@typescript__typescript-linux-arm64-7.0.2.tgz\":{\"integrity\":\"Qh4eU4/y3yDjnfjjyPYihMj5/ODIlmt+Bzu17OI+fiSRDW57QmU5SiN63exPRNJPKUzcc1INa1NXdrJ+MqHjUQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"421e1e538ff2df20e39df8e3c8f62284c8f9fce0c8966b7e073bb5ece23e7e24910d6e7b4265394a237addec4f44d24f294cdc73520d6b535776b27e32a1e351\",\"name\":\"@typescript/typescript-linux-arm64\",\"version\":\"7.0.2\"},\"@typescript__typescript-linux-loong64-7.0.2.tgz\":{\"integrity\":\"uEHck9i8hoAzXPiYRib1O7miOnz23SxIeVl6F4LXox+qov1K35jHcEW6VHKvZI+pyvl7fZEP4MCU5LYvIq1GuQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b841dc93d8bc8680335cf8984626f53bb9a23a7cf6dd2c4879597a1782d7a31faaa2fd4adf98c77045ba5472af648fa9caf97b7d910fe0c094e4b62f22ad46b9\",\"name\":\"@typescript/typescript-linux-loong64\",\"version\":\"7.0.2\"},\"@typescript__typescript-linux-mips64el-7.0.2.tgz\":{\"integrity\":\"R4KvAMnE43W5Qeqb0Ly56O3mWMWIAgsMyz36DCaycd5nbg/9kzm0liw3JocfRqyJY0KPmzFjbswozXyW0DnIYA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4782af00c9c4e375b941ea9bd0bcb9e8ede658c588020b0ccb3dfa0c26b271de676e0ffd9339b4962c3726871f46ac8963428f9b31636ecc28cd7c96d039c860\",\"name\":\"@typescript/typescript-linux-mips64el\",\"version\":\"7.0.2\"},\"@typescript__typescript-linux-ppc64-7.0.2.tgz\":{\"integrity\":\"DORx5b3sd/4S7eayxm4FQv+A7CrkUIGRaHiwI8oiHTAI1fAPWhF4J0vAlkC8biAlHSVVwxMQ3tjZ2/DVbnQiiA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0ce471e5bdec77fe12ede6b2c66e0542ff80ec2ae45081916878b023ca221d3008d5f00f5a1178274bc09640bc6e20251d2555c31310ded8d9dbf0d56e742288\",\"name\":\"@typescript/typescript-linux-ppc64\",\"version\":\"7.0.2\"},\"@typescript__typescript-linux-riscv64-7.0.2.tgz\":{\"integrity\":\"wf0jqEDOjrPRnKwYRyyJDRo11KMbvMFrU+q4zqKyChODBzvlkbhNQfKvLxQCcwTpdDaXSHZTVuh0JoCrKCUMHQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c1fd23a840ce8eb3d19cac18472c890d1a35d4a31bbcc16b53eab8cea2b20a1383073be591b84d41f2af2f14027304e974369748765356e8742680ab28250c1d\",\"name\":\"@typescript/typescript-linux-riscv64\",\"version\":\"7.0.2\"},\"@typescript__typescript-linux-s390x-7.0.2.tgz\":{\"integrity\":\"IkwJc3L7yhytWd/ewjyxNDfOmswCm9GWMJT/ue/dU4aZNbwZeYAetq42VyLmsmSjvoX7z74X6ZaYCtzAr0EuGw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"224c097372fbca1cad59dfdec23cb13437ce9acc029bd1963094ffb9efdd53869935bc1979801eb6ae365722e6b264a3be85fbcfbe17e996980adcc0af412e1b\",\"name\":\"@typescript/typescript-linux-s390x\",\"version\":\"7.0.2\"},\"@typescript__typescript-linux-x64-7.0.2.tgz\":{\"integrity\":\"EYdf2cNg7rgCWJnxCdJ+F3V39O8ihb37eHAu1LK8oAFizgTQbPOK7zHHXbPt8rX24COqODXeI3sIf0fCXG7H/A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"11875fd9c360eeb8025899f109d27e177577f4ef2285bdfb78702ed4b2bca00162ce04d06cf38aef31c75db3edf2b5f6e023aa3835de237b087f47c25c6ec7fc\",\"name\":\"@typescript/typescript-linux-x64\",\"version\":\"7.0.2\"},\"@typescript__typescript-netbsd-arm64-7.0.2.tgz\":{\"integrity\":\"+polYF4MF04aPpO5FTkHran9yUQDSXqy5GiSDKpsll5jy3l3+g9QLhpf39T+ePtefhXLOGrLl0QIjkQP6VnelA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"fa9a25605e0c174e1a3e93b9153907ada9fdc94403497ab2e468920caa6c965e63cb7977fa0f502e1a5fdfd4fe78fb5e7e15cb386acb9744088e440fe959de94\",\"name\":\"@typescript/typescript-netbsd-arm64\",\"version\":\"7.0.2\"},\"@typescript__typescript-netbsd-x64-7.0.2.tgz\":{\"integrity\":\"8YIT0EHM/3dq10ZOVF/A7pc/YSMtbcecct4rWtexrnSCHOPcpC2KTLXfTCR6vDpnSiY12heNb1GiN/wu+T/FyA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f18213d041ccff776ad7464e545fc0ee973f61232d6dc79c72de2b5ad7b1ae74821ce3dca42d8a4cb5df4c247abc3a674a2635da178d6f51a237fc2ef93fc5c8\",\"name\":\"@typescript/typescript-netbsd-x64\",\"version\":\"7.0.2\"},\"@typescript__typescript-openbsd-arm64-7.0.2.tgz\":{\"integrity\":\"APT8+ClYnuYm1u9+kgGXoMj2VzWzcymwh2gNSQVySHfkRDGOTVkoWLjCmOQSaO+PoqQ57B0flRp9SA+7GnnkzQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"00f4fcf829589ee626d6ef7e920197a0c8f65735b37329b087680d4905724877e444318e4d592858b8c298e41268ef8fa2a439ec1d1f951a7d480fbb1a79e4cd\",\"name\":\"@typescript/typescript-openbsd-arm64\",\"version\":\"7.0.2\"},\"@typescript__typescript-openbsd-x64-7.0.2.tgz\":{\"integrity\":\"yX7s+Q0Dln0Dt9tEzZsAjXXR/+ytBM7AlglaqyeMPxQszJ1JhlJdZ6jLA+IzldHtflX81em7lDao1xXu+aRRkg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c97eecf90d03967d03b7db44cd9b008d75d1ffecad04cec096095aab278c3f142ccc9d4986525d67a8cb03e23395d1ed7e55fcd5e9bb9436a8d715eef9a45192\",\"name\":\"@typescript/typescript-openbsd-x64\",\"version\":\"7.0.2\"},\"@typescript__typescript-sunos-x64-7.0.2.tgz\":{\"integrity\":\"dLJDGaLZ1D4HPQn62u1n8mBDkJREwMsAkCdkwd4Ieqw+x3TUyTsqY0YiBCtE6H6OzzgGk3iuZ3vFWRS+E8/d1g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"74b24319a2d9d43e073d09fadaed67f26043909444c0cb00902764c1de087aac3ec774d4c93b2a634622042b44e87e8ecf38069378ae677bc55914be13cfddd6\",\"name\":\"@typescript/typescript-sunos-x64\",\"version\":\"7.0.2\"},\"@typescript__typescript-win32-arm64-7.0.2.tgz\":{\"integrity\":\"Gyl1Vy6OsWesLzmq+EP0Fb7b4Nid5232AvcA2SFcdYreldpNtYFFofPjnt62y9hQy7VTaZp65ICJjuAQRaVcIQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1b2975572e8eb167ac2f39aaf843f415bedbe0d89de76df602f700d9215c758ade95da4db58145a1f3e39edeb6cbd850cbb553699a7ae480898ee01045a55c21\",\"name\":\"@typescript/typescript-win32-arm64\",\"version\":\"7.0.2\"},\"@typescript__typescript-win32-x64-7.0.2.tgz\":{\"integrity\":\"0BQ3HkAHHlKLSp1qRvf3SUhGpGsDuhB/jgFw75guyqbxJqEaS0Cw/VFO8i2nHglJUzQCRtMMR/IBAKE3ETMC4g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d014371e40071e528b4a9d6a46f7f7494846a46b03ba107f8e0170ef982ecaa6f126a11a4b40b0fd514ef22da71e094953340246d30c47f20100a137113302e2\",\"name\":\"@typescript/typescript-win32-x64\",\"version\":\"7.0.2\"},\"@vitest__coverage-v8-4.1.10.tgz\":{\"integrity\":\"IM49HmthevbgAO4anp1hwtoT9wYe59w0LR00gr+eagHE+ZJ5lK4sLPeO0ubgoJcwLk6dehU3R24N+FbEEKDc8g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"20ce3d1e6b617af6e000ee1a9e9d61c2da13f7061ee7dc342d1d3482bf9e6a01c4f9927994ae2c2cf78ed2e6e0a097302e4e9d7a1537476e0df856c410a0dcf2\",\"name\":\"@vitest/coverage-v8\",\"version\":\"4.1.10\"},\"@vitest__expect-4.1.10.tgz\":{\"integrity\":\"YsCn+qAk1GWjQOWFEsEcL2gNQ0zmVmQu3T03qP6UyjhtmdtwtbuI+DASn/7iQB3HGTXkdBwGddzxPlmiql5vlA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"62c0a7faa024d465a340e58512c11c2f680d434ce656642edd3d37a8fe94ca386d99db70b5bb88f830129ffee2401dc71935e4741c0675dcf13e59a2aa5e6f94\",\"name\":\"@vitest/expect\",\"version\":\"4.1.10\"},\"@vitest__mocker-4.1.10.tgz\":{\"integrity\":\"v0xaezt+DKEmKfaxg133ldzADrwLGd7Ze1MfQQTYfvs8OqZIwbxyxaYURivwV7sWy5fqn3rH5uOrSp07bp44Ow==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"bf4c5a7b3b7e0ca12629f6b1835df795dcc00ebc0b19ded97b531f4104d87efb3c3aa648c1bc72c5a614462bf057bb16cb97ea9f7ac7e6e3ab4a9d3b6e9e383b\",\"name\":\"@vitest/mocker\",\"version\":\"4.1.10\"},\"@vitest__pretty-format-4.1.10.tgz\":{\"integrity\":\"W1HsjSH4MXQ9YfmmhLAoIYf1HRfekQCGngeIgcei6MP5QQGWUe0gkopdZQaVCFO+JDJMrAJGwa5pRpNpvy4P8Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5b51ec8d21f831743d61f9a684b0282187f51d17de9100869e078881c7a2e8c3f941019651ed20928a5d6506950853be24324cac0246c1ae69469369bf2e0ff1\",\"name\":\"@vitest/pretty-format\",\"version\":\"4.1.10\"},\"@vitest__runner-4.1.10.tgz\":{\"integrity\":\"IKI6kpIH+LmpROplyLwBBaCfMgOZOMsygVa6BARD6ahA04VRuJSa6OaVG7kRvSEMD870Vd91rSSw0eegtWyLGg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"20a23a929207f8b9a944ea65c8bc0105a09f32039938cb328156ba040443e9a840d38551b8949ae8e6951bb911bd210c0fcef455df75ad24b0d1e7a0b56c8b1a\",\"name\":\"@vitest/runner\",\"version\":\"4.1.10\"},\"@vitest__snapshot-4.1.10.tgz\":{\"integrity\":\"xRkfOT1qpTAi/Ti4Y1LtfRc3kEuqxGw59eN2jN9pRWMtS/XDevekhcFSqvQqjUNGksfjMJu3Y+oJ+4Ypn2OaJw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c5191f393d6aa53022fd38b86352ed7d1737904baac46c39f5e3768cdf6945632d4bf5c37af7a485c152aaf42a8d434692c7e3309bb763ea09fb86299f639a27\",\"name\":\"@vitest/snapshot\",\"version\":\"4.1.10\"},\"@vitest__spy-4.1.10.tgz\":{\"integrity\":\"PLf/Ugvoq5wO/b4rwYCR1h2PSIdXz7wnkQFMiUpLdtM7l6pqVFcQIBEHyT1+l+cj7mNwAfZHzqXqDyjvOuwbDw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3cb7ff520be8ab9c0efdbe2bc18091d61d8f488757cfbc2791014c894a4b76d33b97aa6a545710201107c93d7e97e723ee637001f647cea5ea0f28ef3aec1b0f\",\"name\":\"@vitest/spy\",\"version\":\"4.1.10\"},\"@vitest__utils-4.1.10.tgz\":{\"integrity\":\"fy9am/HWxbaGt/Sawrp90vt6Y6jQwf1RX77cz3uwoJwJVMli/e1IEwRPnMNJ7vKfPTwo0diXifkpPvwH9v7nGA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7f2f5a9bf1d6c5b686b7f49ac2ba7dd2fb7a63a8d0c1fd515fbedccf7bb0a09c0954c962fded4813044f9cc349eef29f3d3c28d1d89789f9293efc07f6fee718\",\"name\":\"@vitest/utils\",\"version\":\"4.1.10\"},\"@xmldom__xmldom-0.8.14.tgz\":{\"integrity\":\"T4EDRUBVZYRldYApjEJiU0e1stYWaRAX7CuSnKzrpwdZKo53zGV8/pqfzV6FfwNl9YThD2OumQYvqtvjvgG7aQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4f81034540556584657580298c42625347b5b2d616691017ec2b929caceba707592a8e77cc657cfe9a9fcd5e857f0365f584e10f63ae99062faadbe3be01bb69\",\"name\":\"@xmldom/xmldom\",\"version\":\"0.8.14\"},\"@xyflow__react-12.11.3.tgz\":{\"integrity\":\"G3jogHz2GWUtIOkhavUGno2YzY9u6fILIJBttfsBendb0/HWB90JG+sOTAvlIMEwyvq9zgy9V9ZQSwyQjR5QzQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1b78e8807cf619652d20e9216af5069e8d98cd8f6ee9f20b20906db5fb017a775bd3f1d607dd091beb0e4c0be520c130cafabdce0cbd57d6504b0c908d1e50cd\",\"name\":\"@xyflow/react\",\"version\":\"12.11.3\"},\"@xyflow__system-0.0.80.tgz\":{\"integrity\":\"ywc3ZqG91brzWrH1WlwMdIX4goOfrpBy6AbLdVSaof/Xx9l138ijIKRExM6EkMro2F+OImGmSiA/WKcXvKVcfA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"cb073766a1bdd5baf35ab1f55a5c0c7485f882839fae9072e806cb75549aa1ffd7c7d975dfc8a320a444c4ce8490cae8d85f8e2261a64a203f58a717bca55c7c\",\"name\":\"@xyflow/system\",\"version\":\"0.0.80\"},\"abbrev-4.0.0.tgz\":{\"integrity\":\"a1wflyaL0tHtJSmLSOVybYhy22vRih4eduhhrkcjgrWGnRfrZtovJ2FRjxuTtkkj47O/baf0R86QU5OuYpz8fA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6b5c1f97268bd2d1ed25298b48e5726d8872db6bd18a1e1e76e861ae472382b5869d17eb66da2f2761518f1b93b64923e3b3bf6da7f447ce905393ae629cfc7c\",\"name\":\"abbrev\",\"version\":\"4.0.0\"},\"abort-controller-3.0.0.tgz\":{\"integrity\":\"h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"87c950f2d69c6589d1def3504e089b8feb4e0c7239ffe974e80bb63dcae2bff1a67add1e6a3e13c161f8d6c3bdc271c3890b048f5f6ad1daf375675e007b707a\",\"name\":\"abort-controller\",\"version\":\"3.0.0\"},\"abstract-logging-2.0.1.tgz\":{\"integrity\":\"2BjRTZxTPvheOvGbBslFSYOUkr+SjPtOnrLP33f+VIWLzezQpZcqVg7ja3L4dBXmzzgwT+a029jRx5PCi3JuiA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d818d14d9c533ef85e3af19b06c94549839492bf928cfb4e9eb2cfdf77fe54858bcdecd0a5972a560ee36b72f87415e6cf38304fe6b4dbd8d1c793c28b726e88\",\"name\":\"abstract-logging\",\"version\":\"2.0.1\"},\"accepts-2.0.0.tgz\":{\"integrity\":\"5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e5cbe0e82b4ac1f81d995a98d562225ca7374356e446a18b8bed96ffa6a8fba63b82efd10b046e021184ce1e41e0a96ccd2b932e0658baa16aa396c89a334a9e\",\"name\":\"accepts\",\"version\":\"2.0.0\"},\"agent-base-7.1.4.tgz\":{\"integrity\":\"MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"32703e613f1fc1f24f801c779bad0c36a6a49b7d173a4c88a07d72ea1b9342f0b43f0646ee48bc35a70b05cacf6cda28f2f119cbb269ba4efe8cc3be094a2f4d\",\"name\":\"agent-base\",\"version\":\"7.1.4\"},\"ajv-8.20.0.tgz\":{\"integrity\":\"Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4e16e58be3a53a3fa230f60505505f2773a60809da4b2367e0cd6fcfd4fa1a46b926df5b6bf1c8479ea3a32eb9b58ea4c7f142179557341f35f58eff194ac118\",\"name\":\"ajv\",\"version\":\"8.20.0\"},\"ajv-formats-2.1.1.tgz\":{\"integrity\":\"Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5b1d0ac79da1c44ec2d7c8643048206251227ea599b58691828b89a2bf9631d3e743210ad77be0116c9536ea7b4a879ea0b32caf891fe61e9d396d75235e4c50\",\"name\":\"ajv-formats\",\"version\":\"2.1.1\"},\"ajv-formats-3.0.1.tgz\":{\"integrity\":\"8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f2252a979d04511fae51c7514371c3a9ae84572a3776870bf20e5627714d7169aeeb621b90652e7bfa44c8b056f1518a2ae7133e0a9e92ce1f214d43038ca8c1\",\"name\":\"ajv-formats\",\"version\":\"3.0.1\"},\"ansi-colors-4.1.3.tgz\":{\"integrity\":\"/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ffac3f0b6d4f9b503b6998ad948e4d8bfd89e8515037c8b50afcf79070010006f0f77bff365bca7553aacfb0825b3ff78affc9a6545210467cdd720e375e68bf\",\"name\":\"ansi-colors\",\"version\":\"4.1.3\"},\"ansi-regex-5.0.1.tgz\":{\"integrity\":\"quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"aae2505e54d25062f62c7f52517a3c570b18e2ca1a9e1828e8b3529bce04d4b05c13cb373b4c29762473c91f73fd9649325316bf7eea38e6fda5d26531410a15\",\"name\":\"ansi-regex\",\"version\":\"5.0.1\"},\"ansi-regex-6.3.0.tgz\":{\"integrity\":\"WpDfL7NO6j7tH88IDBNVdUJxDh9nmCteAVW9dsep846XdwF4naCBK+/tGLX3KJgcpgMRXCFlTM2hKGoK9FsdrQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5a90df2fb34eea3eed1fcf080c13557542710e1f67982b5e0155bd76c7a9f38e977701789da0812befed18b5f728981ca603115c21654ccda1286a0af45b1dad\",\"name\":\"ansi-regex\",\"version\":\"6.3.0\"},\"ansi-styles-4.3.0.tgz\":{\"integrity\":\"zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"cdb07dac22404f5adb8e25436f686a2851cd60bc60b64f0d511c59dc86700f717a36dc5b5d94029e74a2d4b931f880e885d3e5169db6db05402c885e64941212\",\"name\":\"ansi-styles\",\"version\":\"4.3.0\"},\"ansi-styles-5.2.0.tgz\":{\"integrity\":\"Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0b1c29b7649f4f34ed5dc7ce97318479ef0ef9cf8c994806acd8817179ee5b1b852477ba6b91f3eeac21c1ee4e81a498234209be42ea597d40486f9c24e90488\",\"name\":\"ansi-styles\",\"version\":\"5.2.0\"},\"app-builder-lib-26.15.7.tgz\":{\"integrity\":\"C7APoYISPExUmrEntNhDpz9Tccb4uWuEDfLaC0WPPc7/pwzz0WZGznCz/ycPfkkzw6tKOalceD8g6TgHmVz1QA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0bb00fa182123c4c549ab127b4d843a73f5371c6f8b96b840df2da0b458f3dceffa70cf3d16646ce70b3ff270f7e4933c3ab4a39a95c783f20e93807995cf540\",\"name\":\"app-builder-lib\",\"version\":\"26.15.7\"},\"argparse-2.0.1.tgz\":{\"integrity\":\"8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f3ef56a9e6db173a57f4e47e59ae8edbd6ac22881e44ccdc1ad00835da4c1c7c80835d1fd3969215505b704a867ff3d7c35123019faadbf6c4060dc3beeacadd\",\"name\":\"argparse\",\"version\":\"2.0.1\"},\"aria-hidden-1.2.6.tgz\":{\"integrity\":\"ik3ZgC9dY/lYVVM++OISsaYDeg1tb0VtP5uL3ouh1koGOaUMDPpbFIei4JkFimWUFPn90sbMNMXQAIVOlnYKJA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8a4dd9802f5d63f95855533ef8e212b1a6037a0d6d6f456d3f9b8bde8ba1d64a0639a50c0cfa5b1487a2e099058a659414f9fdd2c6cc34c5d000854e96760a24\",\"name\":\"aria-hidden\",\"version\":\"1.2.6\"},\"aria-query-5.3.0.tgz\":{\"integrity\":\"b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6f43f4b193cab72bbc1e479101f0aad087d44592be4aec0c8d8d545c6054dbbc290224f0400225ab9e886c83becad93f2634b57cc475e1e7b958105f2a2e49e8\",\"name\":\"aria-query\",\"version\":\"5.3.0\"},\"aria-query-5.3.2.tgz\":{\"integrity\":\"COROpnaoap1E2F000S62r6A60uHZnmlvomhfyT2DlTcrY1OrBKn2UhH7qn5wTC9zMvD0AY7csdPSNwKP+7WiQw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"08e44ea676a86a9d44d85d34d12eb6afa03ad2e1d99e696fa2685fc93d8395372b6353ab04a9f65211fbaa7e704c2f7332f0f4018edcb1d3d237028ffbb5a243\",\"name\":\"aria-query\",\"version\":\"5.3.2\"},\"asn1js-3.0.10.tgz\":{\"integrity\":\"S2s3aOytiKdFRdulw2qPE51MzjzVOisppcVv7jVFR+Kw0kxwvFrDcYA0h7Ndqbmj0HkMIXYWaoj7fli8kgx1eg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4b6b3768ecad88a74545dba5c36a8f139d4cce3cd53a2b29a5c56fee354547e2b0d24c70bc5ac371803487b35da9b9a3d0790c2176166a88fb7e58bc920c757a\",\"name\":\"asn1js\",\"version\":\"3.0.10\"},\"assertion-error-2.0.1.tgz\":{\"integrity\":\"Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2338bc45071f7ea09e3558058a02a58b5b2c92521ba479c261ce809275c662807a82b26ac9e6f2ee3bf5d895108264c09c80e76dc935bb192c4f87733773d604\",\"name\":\"assertion-error\",\"version\":\"2.0.1\"},\"ast-types-0.16.1.tgz\":{\"integrity\":\"6t10qk83GOG8p0vKmaCr8eiilZwO171AvbROMtvvNiwrTly62t+7XkA8RdIIVbpMhCASAsxgAzdRSwh6nw/5Dg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"eadd74aa4f3718e1bca74bca99a0abf1e8a2959c0ed7bd40bdb44e32dbef362c2b4e5cbadadfbb5e403c45d20855ba4c84201202cc600337514b087a9f0ff90e\",\"name\":\"ast-types\",\"version\":\"0.16.1\"},\"ast-v8-to-istanbul-1.0.5.tgz\":{\"integrity\":\"UPAgKJFSEGMWSDr3LX4tqnAb4f7KGT8O40Tyx8wbYmmZ/yn58lNCm8h3svs3eXgiGd5AXxz8NDOvXWvicq+rJA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"50f020289152106316483af72d7e2daa701be1feca193f0ee344f2c7cc1b626999ff29f9f253429bc877b2fb3779782219de405f1cfc3433af5d6be272afab24\",\"name\":\"ast-v8-to-istanbul\",\"version\":\"1.0.5\"},\"async-3.2.6.tgz\":{\"integrity\":\"htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"86d0940e5c72c822cc81a337c578340b42d6db1a9fb90ea9d39a42108b17bb243e6b592860a4ee04ccd13709b26df2e0bc90cc774af52d39f8f84d138ba0b600\",\"name\":\"async\",\"version\":\"3.2.6\"},\"async-exit-hook-2.0.1.tgz\":{\"integrity\":\"NW2cX8m1Q7KPA7a5M2ULQeZ2wR5qI5PAbw5L0UOMxdioVk9PMZ0h1TmyZEkPYrCvYjDlFICusOu1dlEKAAeXBw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"356d9c5fc9b543b28f03b6b933650b41e676c11e6a2393c06f0e4bd1438cc5d8a8564f4f319d21d539b264490f62b0af6230e51480aeb0ebb576510a00079707\",\"name\":\"async-exit-hook\",\"version\":\"2.0.1\"},\"asynckit-0.4.0.tgz\":{\"integrity\":\"Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"39e8bd387e2d461d18a94dc6c615fbf5d33f9b0560bdb64969235a464f9bb21923d12e5c7c772061a92b7818eb1f06ad5ca6f3f88a087582f1aca8a6d8c8d6d1\",\"name\":\"asynckit\",\"version\":\"0.4.0\"},\"at-least-node-1.0.0.tgz\":{\"integrity\":\"+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"faafedec492fd440d8da5e8675ae8b2e25f5e2b53d4d5db459ade87de426c0f1596ce328f435eb2db3a315a69c9645ca5a27486a8a7000e6d00eac16b46523aa\",\"name\":\"at-least-node\",\"version\":\"1.0.0\"},\"atomic-sleep-1.0.0.tgz\":{\"integrity\":\"kNOjDqAh7px0XWNI+4QbzoiR/nTkHAWNud2uvnJquD1/x5a7EQZMJT0AczqK0Qn67oY/TTQ1LbUKajZpp3I9tQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"90d3a30ea021ee9c745d6348fb841bce8891fe74e41c058db9ddaebe726ab83d7fc796bb11064c253d00733a8ad109faee863f4d34352db50a6a3669a7723db5\",\"name\":\"atomic-sleep\",\"version\":\"1.0.0\"},\"atomically-1.7.0.tgz\":{\"integrity\":\"Xcz9l0z7y9yQ9rdDaxlmaI4uJHf/T8g9hOEzJcsEqX2SjCj4J20uK7+ldkDHMbpJDK76wF7xEIgxc/vSlsfw5w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5dccfd974cfbcbdc90f6b7436b1966688e2e2477ff4fc83d84e13325cb04a97d928c28f8276d2e2bbfa57640c731ba490caefac05ef110883173fbd296c7f0e7\",\"name\":\"atomically\",\"version\":\"1.7.0\"},\"avvio-9.3.0.tgz\":{\"integrity\":\"g2tQ7LE7oOSqDfwEm3M+ZCMTJc7KiZCdJ4UwyZJb5ckTKyYu50OYmvv0mCFXPuYXoM4zkSt8zM9XQ9KCvxA74A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"836b50ecb13ba0e4aa0dfc049b733e64231325ceca89909d278530c9925be5c9132b262ee743989afbf49821573ee617a0ce33912b7ccccf5743d282bf103be0\",\"name\":\"avvio\",\"version\":\"9.3.0\"},\"aws4-1.13.2.tgz\":{\"integrity\":\"lHe62zvbTB5eEABUVi/AwVh0ZKY9rMMDhmm+eeyuuUQbQ3+J+fONVQOZyj+DdrvD4BY33uYniyRJ4UJIaSKAfw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9477badb3bdb4c1e5e100054562fc0c1587464a63dacc3038669be79ecaeb9441b437f89f9f38d550399ca3f8376bbc3e01637dee6278b2449e142486922807f\",\"name\":\"aws4\",\"version\":\"1.13.2\"},\"balanced-match-1.0.2.tgz\":{\"integrity\":\"3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"de849e50ed13315ebb84dd4099b5ec2b8c9aa94eed8e21e56f144364ea47d0a5bdf82797e1b440697d009f1b74b71d8cae94695b041a3f02252121098585393f\",\"name\":\"balanced-match\",\"version\":\"1.0.2\"},\"balanced-match-4.0.4.tgz\":{\"integrity\":\"BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"04bae011c453c17da8ea01b118e08dc8cbc64a9df96287ee633c3d87520c4d198aaadb40659554ebb6dd6fd3ebdaf50703cfa3de2dad25f8cee82ebee26c864c\",\"name\":\"balanced-match\",\"version\":\"4.0.4\"},\"base64-js-1.5.1.tgz\":{\"integrity\":\"AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"00aa5a6251e7f2de1255b3870b2f9be7e28a82f478bebb03f2f6efadb890269b3b7ca0d3923903af2ea38b4ad42630b49336cd78f2f0cf1abc8b2a68e35a9e58\",\"name\":\"base64-js\",\"version\":\"1.5.1\"},\"baseline-browser-mapping-2.11.14.tgz\":{\"integrity\":\"JyJ954WzuIR8/FFzX0o5krdSTrBAkcCSRfWSleRsIHSWV+cZe2FI1PKggVkFke1hBldRs+LRxUczzE9iPmgZww==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"27227de785b3b8847cfc51735f4a3992b7524eb04091c09245f59295e46c20749657e7197b6148d4f2a081590591ed61065751b3e2d1c54733cc4f623e6819c3\",\"name\":\"baseline-browser-mapping\",\"version\":\"2.11.14\"},\"bencode-4.0.1.tgz\":{\"integrity\":\"/bCR3FvgfB8AZk4LlowShU+nfaTNRM2vruJ9aejDa5LpgkCoRjFyEauFiZFxbpxVxQbBFapYCN42Er2dkE/Qgw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"fdb091dc5be07c1f00664e0b968c12854fa77da4cd44cdafaee27d69e8c36b92e98240a846317211ab858991716e9c55c506c115aa5808de3612bd9d904fd083\",\"name\":\"bencode\",\"version\":\"4.0.1\"},\"bep53-range-2.0.1.tgz\":{\"integrity\":\"VWN7j7sqUssWD6ROZe2m709YL3u5A1IAx1qvAbH3DAhszHt4WPvCzJLRJ+mzmZn1qWIb4mpflwdn95qezz3n8g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"55637b8fbb2a52cb160fa44e65eda6ef4f582f7bb9035200c75aaf01b1f70c086ccc7b7858fbc2cc92d127e9b39999f5a9621be26a5f970767f79a9ecf3de7f2\",\"name\":\"bep53-range\",\"version\":\"2.0.1\"},\"better-sqlite3-13.0.3.tgz\":{\"integrity\":\"RbOBxmLBG8uvFUc15X9+9SFemKcQ0WBuISBVkpuiaUB2qblC8UWlHEjdWVoZ8AdhSwmoEgsiXKfopX0CQxaACQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"45b381c662c11bcbaf154735e57f7ef5215e98a710d1606e212055929ba2694076a9b942f145a51c48dd595a19f007614b09a8120b225ca7e8a57d0243168009\",\"name\":\"better-sqlite3\",\"version\":\"13.0.3\"},\"bidi-js-1.0.3.tgz\":{\"integrity\":\"RKshQI1R3YQ+n9YJz2QQ147P66ELpa1FQEg20Dk8oW9t2KgLbpDLLp9aGZ7y8WHSshDknG0bknqGw5/tyCs5tw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"44ab21408d51dd843e9fd609cf6410d78ecfeba10ba5ad45404836d0393ca16f6dd8a80b6e90cb2e9f5a199ef2f161d2b210e49c6d1b927a86c39fedc82b39b7\",\"name\":\"bidi-js\",\"version\":\"1.0.3\"},\"bindings-1.5.0.tgz\":{\"integrity\":\"p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a76abfb7f9a1bee3a3fd478b955eb9eba183fe0ba8c25af4847c42948d16f66ecc59890bd45d212e8fb401ec6cf4748f0ad4754974344c3dcc30aad765a8db89\",\"name\":\"bindings\",\"version\":\"1.5.0\"},\"bittorrent-peerid-2.0.2.tgz\":{\"integrity\":\"V2iUvbtv31uLA8XFxbhB3f/fKTxWGaa6FI/3wSm93YAS/DS8IkeRWCyYGQ13Xbc9ajR40nsxNjGtVt7OHB3VOQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"576894bdbb6fdf5b8b03c5c5c5b841ddffdf293c5619a6ba148ff7c129bddd8012fc34bc224791582c98190d775db73d6a3478d27b313631ad56dece1c1dd539\",\"name\":\"bittorrent-peerid\",\"version\":\"2.0.2\"},\"bluebird-3.7.2.tgz\":{\"integrity\":\"XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5e9363e860d0cdd7d6fabd969e7ef189201ded33378f39311970464ed58ab925efd71515f9acf1026f2375664dd3a413424fb63765c1f6344392f6e6426711b6\",\"name\":\"bluebird\",\"version\":\"3.7.2\"},\"body-parser-2.3.0.tgz\":{\"integrity\":\"2cGmJupaNgg+QUwVLAucDuWuoMZ6EX9iHDRswZ5lsNYEmwPaRknMPCLZz07yTzVq/83p4o/wzbDZbBrTvGGTIw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d9c1a626ea5a36083e414c152c0b9c0ee5aea0c67a117f621c346cc19e65b0d6049b03da4649cc3c22d9cf4ef24f356affcde9e28ff0cdb0d96c1ad3bc619323\",\"name\":\"body-parser\",\"version\":\"2.3.0\"},\"boolean-3.2.0.tgz\":{\"integrity\":\"d0II/GO9uf9lfUHH2BQsjxzRJZBdsjgsBiW4BvhWk/3qoKwQFjIDVN19PfX8F2D/r9PCMTtLWjYVCFrpeYUzsw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"774208fc63bdb9ff657d41c7d8142c8f1cd125905db2382c0625b806f85693fdeaa0ac1016320354dd7d3df5fc1760ffafd3c2313b4b5a3615085ae9798533b3\",\"name\":\"boolean\",\"version\":\"3.2.0\"},\"brace-expansion-1.1.18.tgz\":{\"integrity\":\"Edep/X9fGqVNmzKBVsDYIOtD+z1tuezV70LBjdCst9Tqu76lsnvRiZ6oTic1n+/BIwX6QDGAO94PN4N2SADvtw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"11d7a9fd7f5f1aa54d9b328156c0d820eb43fb3d6db9ecd5ef42c18dd0acb7d4eabbbea5b27bd1899ea84e27359fefc12305fa4031803bde0f3783764800efb7\",\"name\":\"brace-expansion\",\"version\":\"1.1.18\"},\"brace-expansion-2.1.4.tgz\":{\"integrity\":\"hGfVzPxthbf3+2yjg/RBs60cB0FhqBS/zvdV/4wn4/BmN0bNMMHPc4V/BbFieqf1TKAGGAHnY4eSjajCl0f2Xg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8467d5ccfc6d85b7f7fb6ca383f441b3ad1c074161a814bfcef755ff8c27e3f0663746cd30c1cf73857f05b1627aa7f54ca0061801e76387928da8c29747f65e\",\"name\":\"brace-expansion\",\"version\":\"2.1.4\"},\"brace-expansion-5.0.9.tgz\":{\"integrity\":\"ScQ4IuvIEF1TMlP7Zt+vjJ//9zlPb2SDcxWxM3bk8s6t6GGdJ7KO1dCcTidOPJKePW30LE/2cT7wCyPho9/Wxg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"49c43822ebc8105d533253fb66dfaf8c9ffff7394f6f64837315b13376e4f2ceade8619d27b28ed5d09c4e274e3c929e3d6df42c4ff6713ef00b23e1a3dfd6c6\",\"name\":\"brace-expansion\",\"version\":\"5.0.9\"},\"braces-3.0.3.tgz\":{\"integrity\":\"yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c906d780efce499543d88b222e5ae8fbb1dfe90d7c109aca484b1da0ccca78f29772dde0bc3f282dc390748cc6ba9af9163f840def203bf9717350737cca71bc\",\"name\":\"braces\",\"version\":\"3.0.3\"},\"browserslist-4.28.8.tgz\":{\"integrity\":\"V2NpofLblG64mfOtSgDhOJESZEGogzDMBv/q+W6oc4LXWP/q75eOXoOaaOu1EOadB9U4Bwx/e0yzbvwKH8zalA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"576369a1f2db946eb899f3ad4a00e13891126441a88330cc06ffeaf96ea87382d758ffeaef978e5e839a68ebb510e69d07d538070c7f7b4cb36efc0a1fccda94\",\"name\":\"browserslist\",\"version\":\"4.28.8\"},\"buffer-from-1.1.2.tgz\":{\"integrity\":\"E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"13e5d0091c126da6a20a1b6fea4e83c2073e6f1f81b3abee2891c7979928c7f05a29b8625f3a903b02b870edb6c84946a763829a3c15853dc79b18323c69c97d\",\"name\":\"buffer-from\",\"version\":\"1.1.2\"},\"builder-util-26.15.3.tgz\":{\"integrity\":\"q2hn7Mbo2nFNkVekPiHFx6Nfo3hURmES3tfBn+k5Pqxl2RkmP3QGqZUhH/q9Pch/4G05NRhPjDlVj1O8q4Txvw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ab6867ecc6e8da714d9157a43e21c5c7a35fa37854466112ded7c19fe9393eac65d919263f7406a995211ffabd3dc87fe06d3935184f8c39558f53bcab84f1bf\",\"name\":\"builder-util\",\"version\":\"26.15.3\"},\"builder-util-runtime-9.7.0.tgz\":{\"integrity\":\"g/kR520giAFYkSXTzcmF3kqQq7wi8F6N6SzeDgZrqTBN+VHdmgWOyTdD1yD7AATDId/yXLvuP34CxW46/BwCdw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"83f911e76d208801589125d3cdc985de4a90abbc22f05e8de92cde0e066ba9304df951dd9a058ec93743d720fb0004c321dff25cbbee3f7e02c56e3afc1c0277\",\"name\":\"builder-util-runtime\",\"version\":\"9.7.0\"},\"bundle-name-4.1.0.tgz\":{\"integrity\":\"tjwM5exMg6BGRI+kNmTntNsvdZS1X8BFYS6tnJ2hdH0kVxM6/eVZ2xy+FqStSWvYmtfFMDLIxurorHwDKfDz5Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b63c0ce5ec4c83a046448fa43664e7b4db2f7594b55fc045612ead9c9da1747d2457133afde559db1cbe16a4ad496bd89ad7c53032c8c6eae8ac7c0329f0f3e5\",\"name\":\"bundle-name\",\"version\":\"4.1.0\"},\"bytes-3.1.2.tgz\":{\"integrity\":\"/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"fcd7fb4f2cd3c7a4b7c9124e6ce015efde7aafc72bdbe3a3f000b976df3048fdc1400a1e5f9f0da07c8253c3fccc690d5d2b634d28ba7f33ba174a4175c61b12\",\"name\":\"bytes\",\"version\":\"3.1.2\"},\"bytestreamjs-2.0.1.tgz\":{\"integrity\":\"U1Z/ob71V/bXfVABvNr/Kumf5VyeQRBEm6Txb0PQ6S7V5GpBM3w4Cbqz/xPDicR5tN0uvDifng8C+5qECeGwyQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"53567fa1bef557f6d77d5001bcdaff2ae99fe55c9e4110449ba4f16f43d0e92ed5e46a41337c3809bab3ff13c389c479b4dd2ebc389f9e0f02fb9a8409e1b0c9\",\"name\":\"bytestreamjs\",\"version\":\"2.0.1\"},\"cacheable-lookup-5.0.4.tgz\":{\"integrity\":\"2/kNscPhpcxrOigMZzbiWF7dz8ilhb/nIHU3EyZiXWXpeq/au8qJ8VhdftMkty3n7Gj6HIGalQG8oiBNB3AJgA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"dbf90db1c3e1a5cc6b3a280c6736e2585eddcfc8a585bfe72075371326625d65e97aafdabbca89f1585d7ed324b72de7ec68fa1c819a9501bca2204d07700980\",\"name\":\"cacheable-lookup\",\"version\":\"5.0.4\"},\"cacheable-request-7.0.4.tgz\":{\"integrity\":\"v+p6ongsrp0yTGbJXjgxPow2+DL93DASP4kXCDKb8/bwRtt9OEF3whggkkDkGNzgcWy2XaF4a8nZglC7uElscg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"bfea7aa2782cae9d324c66c95e38313e8c36f832fddc30123f891708329bf3f6f046db7d384177c218209240e418dce0716cb65da1786bc9d98250bbb8496c72\",\"name\":\"cacheable-request\",\"version\":\"7.0.4\"},\"call-bind-apply-helpers-1.0.2.tgz\":{\"integrity\":\"Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4a9d5a6e52748af0e44b38dc68977112e9cde7f5ef92c149dac30115fabac74af285057fd9bfcac057b6d5c329987b4f3928a3f0af7dff049fa04b9339b9ae31\",\"name\":\"call-bind-apply-helpers\",\"version\":\"1.0.2\"},\"call-bound-1.0.4.tgz\":{\"integrity\":\"+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"fb2b3df7b53dea9a382b1fc0069042aa103d12ec49690583420ef6f791f8841a61bf72198346e804abb0629b78617a7a319e4099942753fb72313951a5a49e8e\",\"name\":\"call-bound\",\"version\":\"1.0.4\"},\"callsites-3.1.0.tgz\":{\"integrity\":\"P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3fc06302c5ef652f95203508d7584709012fef8613ebb6148b924914d588a8bdb7e6c0668d7e3eab1f4cbaf96ce62bf234435cb71e3ac502d0dda4ee13bb2c69\",\"name\":\"callsites\",\"version\":\"3.1.0\"},\"caniuse-lite-1.0.30001809.tgz\":{\"integrity\":\"xxWVywk6a6Arlk+hymeycyn/VgqEfLDxupvhH/xiY5SJ/18kmi9o6MiO320DCUzypORHLtvh0I4i04tUhCNHNQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c71595cb093a6ba02b964fa1ca67b27329ff560a847cb0f1ba9be11ffc62639489ff5f249a2f68e8c88edf6d03094cf2a4e4472edbe1d08e22d38b5484234735\",\"name\":\"caniuse-lite\",\"version\":\"1.0.30001809\"},\"chai-6.2.2.tgz\":{\"integrity\":\"NUPRluOfOiTKBKvWPtSD4PhFvWCqOi0BGStNWs57X9js7XGTprSmFoz5F0tWhR4WPjNeR9jXqdC7/UpSJTnlRg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3543d196e39f3a24ca04abd63ed483e0f845bd60aa3a2d01192b4d5ace7b5fd8eced7193a6b4a6168cf9174b56851e163e335e47d8d7a9d0bbfd4a522539e546\",\"name\":\"chai\",\"version\":\"6.2.2\"},\"chalk-4.1.2.tgz\":{\"integrity\":\"oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a0a9db845c91217a54b9ecfc881326c846b89db8f820e432ba173fc32f6463bfd654f73020ef5503aebc3eef1190eefed06efa48b44e7b2c3d0a9434eb58b898\",\"name\":\"chalk\",\"version\":\"4.1.2\"},\"chalk-5.6.2.tgz\":{\"integrity\":\"7NzBL0rN6fMUW+f7A6Io4h40qQlG+xGmtMxfbnH/K7TAtt8JQWVQK+6g0UXKMeVJoyV5EkkNsErQ8pVD3bLHbA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ecdcc12f4acde9f3145be7fb03a228e21e34a90946fb11a6b4cc5f6e71ff2bb4c0b6df094165502beea0d145ca31e549a3257912490db04ad0f29543ddb2c76c\",\"name\":\"chalk\",\"version\":\"5.6.2\"},\"chokidar-5.0.0.tgz\":{\"integrity\":\"TQMmc3w+5AxjpL8iIiwebF73dRDF4fBIieAqGn9RGCWaEVwQ6Fb2cGe31Yns0RRIzii5goJ1Y7xbMwo1TxMplw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4d0326737c3ee40c63a4bf22222c1e6c5ef77510c5e1f04889e02a1a7f5118259a115c10e856f67067b7d589ecd11448ce28b982827563bc5b330a354f132997\",\"name\":\"chokidar\",\"version\":\"5.0.0\"},\"chownr-3.0.0.tgz\":{\"integrity\":\"+IxzY9BZOQd/XuYPRmrvEVjF/nqj5kgT4kEq7VofrDoM1MxoRjEWkrCC3EtLi59TVawxTAn+orJwFQcrqEN1+g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f88c7363d05939077f5ee60f466aef1158c5fe7aa3e64813e2412aed5a1fac3a0cd4cc6846311692b082dc4b4b8b9f5355ac314c09fea2b27015072ba84375fa\",\"name\":\"chownr\",\"version\":\"3.0.0\"},\"chromium-pickle-js-0.2.0.tgz\":{\"integrity\":\"1R5Fho+jBq0DDydt+/vHWj5KJNJCKdARKOCwZUen84I5BreWoLqRLANH1U87eJy1tiASPtMnGqJJq0ZsLoRPOw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d51e45868fa306ad030f276dfbfbc75a3e4a24d24229d01128e0b06547a7f3823906b796a0ba912c0347d54f3b789cb5b620123ed3271aa249ab466c2e844f3b\",\"name\":\"chromium-pickle-js\",\"version\":\"0.2.0\"},\"ci-info-4.3.1.tgz\":{\"integrity\":\"Wdy2Igu8OcBpI2pZePZ5oWjPC38tmDVx5WKUXKwlLYkA0ozo85sLsLvkBbBn/sZaSCMFOGZJ14fvW9t5/d7kdA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"59dcb6220bbc39c069236a5978f679a168cf0b7f2d983571e562945cac252d8900d28ce8f39b0bb0bbe405b067fec65a482305386649d787ef5bdb79fddee474\",\"name\":\"ci-info\",\"version\":\"4.3.1\"},\"ci-info-4.4.0.tgz\":{\"integrity\":\"77PSwercCZU2Fc4sX94eF8k8Pxte6JAwL4/ICZLFjJLqegs7kCuAsqqj/70NQF6TvDpgFjkubQB2FW2ZZddvQg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"efb3d2c1eadc09953615ce2c5fde1e17c93c3f1b5ee890302f8fc80992c58c92ea7a0b3b902b80b2aaa3ffbd0d405e93bc3a6016392e6d0076156d9965d76f42\",\"name\":\"ci-info\",\"version\":\"4.4.0\"},\"class-variance-authority-0.7.1.tgz\":{\"integrity\":\"Ka+9Trutv7G8M6WT6SeiRWz792K5qEqIGEGzXKhAE6xOWAY6pPH8U+9IY3oCMv6kqTmLsv7Xh/2w2RigkePMsg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"29afbd4ebbadbfb1bc33a593e927a2456cfbf762b9a84a881841b35ca84013ac4e58063aa4f1fc53ef48637a0232fea4a9398bb2fed787fdb0d918a091e3ccb2\",\"name\":\"class-variance-authority\",\"version\":\"0.7.1\"},\"classcat-5.0.5.tgz\":{\"integrity\":\"JhZUT7JFcQy/EzW605k/ktHtncoo9vnyW/2GspNYwFlN1C/WmjuV/xtS04e9SOkL2sTdw0VAZ2UGCcQ9lR6p6w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2616544fb245710cbf1335bad3993f92d1ed9dca28f6f9f25bfd86b29358c0594dd42fd69a3b95ff1b52d387bd48e90bdac4ddc3454067650609c43d951ea9eb\",\"name\":\"classcat\",\"version\":\"5.0.5\"},\"cli-cursor-5.0.0.tgz\":{\"integrity\":\"aCj4O5wKyszjMmDT4tZj93kxyydN/K5zPWSCe6/0AV/AA1pqe5ZBIw0a2ZfPQV7lL5/yb5HsUreJ6UFAF1tEQw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6828f83b9c0acacce33260d3e2d663f77931cb274dfcae733d64827baff4015fc0035a6a7b9641230d1ad997cf415ee52f9ff26f91ec52b789e94140175b4443\",\"name\":\"cli-cursor\",\"version\":\"5.0.0\"},\"cli-spinners-2.9.2.tgz\":{\"integrity\":\"ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"cb0a95fb9326c8be04ef26d780acace03ba065b5f4142e8b9f0ae18eeca42239caf64f0e41a710edac462a78c35d63619ecd31a2dddb648e61e791fcca8f5c26\",\"name\":\"cli-spinners\",\"version\":\"2.9.2\"},\"cliui-8.0.1.tgz\":{\"integrity\":\"BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"05278d9f2bacef90b8fff350f6042dd7f72c4d7ca8ffc49bf9a7cb024cc0a6d16e32ca1df4716890636e759a62fe8415ef786754afac47ee4f55131df83afb61\",\"name\":\"cliui\",\"version\":\"8.0.1\"},\"clone-response-1.0.3.tgz\":{\"integrity\":\"ROoL94jJH2dUVML2Y/5PEDNaSHgeOdSDicUyS7izcF63G6sTc/FTjLub4b8Il9S8S0beOfYt0TaA5qvFK+w0wA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"44ea0bf788c91f675454c2f663fe4f10335a48781e39d48389c5324bb8b3705eb71bab1373f1538cbb9be1bf0897d4bc4b46de39f62dd13680e6abc52bec34c0\",\"name\":\"clone-response\",\"version\":\"1.0.3\"},\"clsx-2.1.1.tgz\":{\"integrity\":\"eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7989b441606d52b0566561b4777f3a386030d7a67df793e2395a3607b6e35926c779d1a5e5ed1959aabae6438681448d7ac1080e407d2126d383f24af5d84264\",\"name\":\"clsx\",\"version\":\"2.1.1\"},\"cmdk-1.1.1.tgz\":{\"integrity\":\"Vsv7kFaXm+ptHDMZ7izaRsP70GgrW9NBNGswt9OZaVBLlE0SNpDq8eu/VGXyF9r7M0azK3Wy7OlYXsuyYLFzHg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"56cbfb9056979bea6d1c3319ee2cda46c3fbd0682b5bd341346b30b7d39969504b944d123690eaf1ebbf5465f217dafb3346b32b75b2ece9585ecbb260b1731e\",\"name\":\"cmdk\",\"version\":\"1.1.1\"},\"code-block-writer-13.0.3.tgz\":{\"integrity\":\"Oofo0pq3IKnsFtuHqSF7TqBfr71aeyZDVJ0HpmqB7FBM2qEigL0iPONSCZSO9pE9dZTAxANe5XHG9Uy0YMv8cg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3a87e8d29ab720a9ec16db87a9217b4ea05fafbd5a7b2643549d07a66a81ec504cdaa12280bd223ce35209948ef6913d7594c0c4035ee571c6f54cb460cbfc72\",\"name\":\"code-block-writer\",\"version\":\"13.0.3\"},\"color-convert-2.0.1.tgz\":{\"integrity\":\"RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4511023ec8fb8aeff16f9a0a61cb051d2a6914d9ec8ffe763954d129be333f9a275f0545df3566993a0d70e7c60be0910e97cafd4e7ce1f320dfc64709a12529\",\"name\":\"color-convert\",\"version\":\"2.0.1\"},\"color-name-1.1.4.tgz\":{\"integrity\":\"dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"74ecbedc0b96ddadb035b64722e319a537208c6b8b53fb812ffb9b71917d3976c3a3c7dfe0ef32569e417f479f4bcb84a18a39ab8171edd63d3a04065e002c40\",\"name\":\"color-name\",\"version\":\"1.1.4\"},\"colorette-2.0.20.tgz\":{\"integrity\":\"IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"21f103c70a1622391e5cbd5e5dc0e2a30e146ca8e12ddabafc4b92551f4630deca547debf6043cddeef786ccf535dd53de28dde71bf5c1c59160ef83ea4088db\",\"name\":\"colorette\",\"version\":\"2.0.20\"},\"combined-stream-1.0.8.tgz\":{\"integrity\":\"FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1503783117ee25e1dfedc05b04c2455e12920eafb690002b06599106f72f144e410751d9297b5214048385d973f73398c3187c943767be630e7bffb971da0476\",\"name\":\"combined-stream\",\"version\":\"1.0.8\"},\"commander-11.1.0.tgz\":{\"integrity\":\"yPVavfyCcRhmorC7rWlkHn15b4wDVgVmBA7kV4QVBsF7kv/9TKJAbAXVTxvTnwP8HHKjRCJDClKbciiYS7p0DQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c8f55abdfc82711866a2b0bbad69641e7d796f8c03560566040ee457841506c17b92fffd4ca2406c05d54f1bd39f03fc1c72a34422430a529b7228984bba740d\",\"name\":\"commander\",\"version\":\"11.1.0\"},\"commander-12.1.0.tgz\":{\"integrity\":\"Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"570f2a1caddb64cf72fcfd74bb75626fca3f0dd92f0363ad3ed66f0fcef540a8f2ef85a3d5648a1482cc3d13d27544b1e5114ad5aae527312d0383e41609dbb8\",\"name\":\"commander\",\"version\":\"12.1.0\"},\"commander-14.0.3.tgz\":{\"integrity\":\"H+y0Jo/T1RZ9qPP4Eh1pkcQcLRglraJaSLoyOtHxu6AapkjWVCy2Sit1QQ4x3Dng8qDlSsZEet7g5Pq06MvTgw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1fecb4268fd3d5167da8f3f8121d6991c41c2d1825ada25a48ba323ad1f1bba01aa648d6542cb64a2b75410e31dc39e0f2a0e54ac6447adee0e4fab4e8cbd383\",\"name\":\"commander\",\"version\":\"14.0.3\"},\"commander-5.1.0.tgz\":{\"integrity\":\"P0CysNDQ7rtVw4QIQtm+MRxV66vKFSvlsQvGYXZWR3qFU0jlMKHZZZgw8e+8DSah4UDKMqnknRDQz+xuQXQ/Zg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3f40b2b0d0d0eebb55c3840842d9be311c55ebabca152be5b10bc6617656477a855348e530a1d9659830f1efbc0d26a1e140ca32a9e49d10d0cfec6e41743f66\",\"name\":\"commander\",\"version\":\"5.1.0\"},\"commander-9.5.0.tgz\":{\"integrity\":\"KRs7WVDKg86PWiuAqhDrAQnTXZKraVcCc6vFdL14qrZ/DcWwuRo7VoiYXalXO7S5GKpqYiVEwCbgFDfxNHKJBQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"291b3b5950ca83ce8f5a2b80aa10eb0109d35d92ab69570273abc574bd78aab67f0dc5b0b91a3b5688985da9573bb4b918aa6a622544c026e01437f134728905\",\"name\":\"commander\",\"version\":\"9.5.0\"},\"compare-version-0.1.2.tgz\":{\"integrity\":\"pJDh5/4wrEnXX/VWRZvruAGHkzKdr46z11OlTPN+VrATlWWhSKewNCJ1futCO5C7eJB3nPMFZA1LeYtcFboZ2A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a490e1e7fe30ac49d75ff556459bebb8018793329daf8eb3d753a54cf37e56b0139565a148a7b03422757eeb423b90bb7890779cf305640d4b798b5c15ba19d8\",\"name\":\"compare-version\",\"version\":\"0.1.2\"},\"concat-map-0.0.1.tgz\":{\"integrity\":\"/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"fd2aefe1db30c903417e8846a73f68e986f71b3dd2ad40ea047e6b4ee84647b6a1b656d82a7571c366c214c4658da03b1171da5d9f30b07768745bdb9212a6aa\",\"name\":\"concat-map\",\"version\":\"0.0.1\"},\"conf-10.2.0.tgz\":{\"integrity\":\"8fLl9F04EJqjSqH+QjITQfJF8BrOVaYr1jewVgSRAEWePfxT0sku4w2hrGQ60BC/TNLGQ2pgxNlTbWQmMPFvXg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f1f2e5f45d38109aa34aa1fe42321341f245f01ace55a62bd637b056049100459e3dfc53d2c92ee30da1ac643ad010bf4cd2c6436a60c4d9536d642630f16f5e\",\"name\":\"conf\",\"version\":\"10.2.0\"},\"content-disposition-1.1.0.tgz\":{\"integrity\":\"5jRCH9Z/+DRP7rkvY83B+yGIGX96OYdJmzngqnw2SBSxqCFPd0w2km3s5iawpGX8krnwSGmF0FW5Nhr0Hfai3g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e634421fd67ff8344feeb92f63cdc1fb2188197f7a3987499b39e0aa7c364814b1a8214f774c36926dece626b0a465fc92b9f0486985d055b9361af41df6a2de\",\"name\":\"content-disposition\",\"version\":\"1.1.0\"},\"content-disposition-2.0.1.tgz\":{\"integrity\":\"e+H0ZXHSWYrENhQzw1LPuP4oF5MzVKmDU6d3hxlvaPEYLLg62MxtQNPRx4SYSuYJSBUgnQIG4HIN2tEtNv7Dog==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7be1f46571d2598ac4361433c352cfb8fe2817933354a98353a77787196f68f1182cb83ad8cc6d40d3d1c784984ae6094815209d0206e0720ddad12d36fec3a2\",\"name\":\"content-disposition\",\"version\":\"2.0.1\"},\"content-type-1.0.5.tgz\":{\"integrity\":\"nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9d38ea7dc045122a4a7570afe180d05827e670b64a9bcd65745d29028a53bf2ac51956dc47a3ff54001de46ecdfb4b53afc42a894d2d15a743e852b836d27038\",\"name\":\"content-type\",\"version\":\"1.0.5\"},\"content-type-2.1.0.tgz\":{\"integrity\":\"mj7UPXE0jaqaOsukNZRUEfEi2AcL7C/vwmwcHV0O97eO1E1pxBZuyjlZrx5seTaNBg1U6+o35wpa35Qfcc+7ag==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9a3ed43d71348daa9a3acba435945411f122d8070bec2fefc26c1c1d5d0ef7b78ed44d69c4166eca3959af1e6c79368d060d54ebea37e70a5adf941f71cfbb6a\",\"name\":\"content-type\",\"version\":\"2.1.0\"},\"convert-source-map-2.0.0.tgz\":{\"integrity\":\"Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2afa78e7d1eb576144275080b22d4abbe318de46ac1f5f53172913cf6c5698c7aae9b936354dd75ef7c9f90eb59b4c64b56c2dfb51d261fdc966c4e6b3769126\",\"name\":\"convert-source-map\",\"version\":\"2.0.0\"},\"cookie-0.7.2.tgz\":{\"integrity\":\"yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ca48b95e72ae7fbe74979d2e193965b7a90a20b6389d0d5e34841ab685c40726797568272aa6e7aa64eb044e41e0dee5acc24a436cad58c8933b6a34bfa130ff\",\"name\":\"cookie\",\"version\":\"0.7.2\"},\"cookie-1.1.1.tgz\":{\"integrity\":\"ei8Aos7ja0weRpFzJnEA9UHJ/7XQmqglbRwnf2ATjcB9Wq874VKH9kfjjirM6UhU2/E5fFYadylyhFldcqSidQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7a2f00a2cee36b4c1e469173267100f541c9ffb5d09aa8256d1c277f60138dc07d5aaf3be15287f647e38e2acce94854dbf1397c561a77297284595d72a4a275\",\"name\":\"cookie\",\"version\":\"1.1.1\"},\"cookie-es-3.1.1.tgz\":{\"integrity\":\"UaXxwISYJPTr9hwQxMFYZ7kNhSXboMXP+Z3TRX6f1/NyaGPfuNUZOWP1pUEb75B2HjfklIYLVRfWiFZJyC6Npg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"51a5f1c0849824f4ebf61c10c4c15867b90d8525dba0c5cff99dd3457e9fd7f3726863dfb8d5193963f5a5411bef90761e37e494860b5517d6885649c82e8da6\",\"name\":\"cookie-es\",\"version\":\"3.1.1\"},\"cookie-signature-1.2.2.tgz\":{\"integrity\":\"D76uU73ulSXrD1UXF4KE2TMxVVwhsnCgfAyTg9k8P6KGZjlXKrOLe4dJQKI3Bxi5wjesZoFXJWElNWBjPZMbhg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0fbeae53bdee9525eb0f5517178284d93331555c21b270a07c0c9383d93c3fa2866639572ab38b7b874940a2370718b9c237ac6681572561253560633d931b86\",\"name\":\"cookie-signature\",\"version\":\"1.2.2\"},\"core-util-is-1.0.3.tgz\":{\"integrity\":\"ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"65006f8b50dca49e060ea6a78ee719d878f7c043b9a590d2f3d0566e472bbddc64b09a2bc140c365a997f65745929f5ac369660432e090e6c40380d6349f4561\",\"name\":\"core-util-is\",\"version\":\"1.0.3\"},\"cors-2.8.6.tgz\":{\"integrity\":\"tJtZBBHA6vjIAaF6EnIaq6laBBP9aq/Y3ouVJjEfoHbRBcHBAHYcMh/w8LDrk2PvIMMq8gmopa5D4V8RmbrxGw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b49b590411c0eaf8c801a17a12721aaba95a0413fd6aafd8de8b9526311fa076d105c1c100761c321ff0f0b0eb9363ef20c32af209a8a5ae43e15f1199baf11b\",\"name\":\"cors\",\"version\":\"2.8.6\"},\"cosmiconfig-9.0.2.tgz\":{\"integrity\":\"gtTZxTDau1wL7Y7zifc2dd8jHSK/k6BTx/2Xp/BpdlAdnlYWFVt7qhJqgwi7637yRwRQ3qL4ZidbB4I8tA5VOg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"82d4d9c530dabb5c0bed8ef389f73675df231d22bf93a053c7fd97a7f06976501d9e5616155b7baa126a8308bbeb7ef2470450dea2f866275b07823cb40e553a\",\"name\":\"cosmiconfig\",\"version\":\"9.0.2\"},\"cross-dirname-0.1.0.tgz\":{\"integrity\":\"+R08/oI0nl3vfPcqftZRpytksBXDzOUveBq/NBVx0sUp1axwzPQrKinNx5yd5sxPu8j1wIy8AfnVQ+5eFdha6Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f91d3cfe82349e5def7cf72a7ed651a72b64b015c3cce52f781abf341571d2c529d5ac70ccf42b2a29cdc79c9de6cc4fbbc8f5c08cbc01f9d543ee5e15d85ae9\",\"name\":\"cross-dirname\",\"version\":\"0.1.0\"},\"cross-fetch-ponyfill-1.0.3.tgz\":{\"integrity\":\"uOBkDhUAGAbx/FEzNKkOfx3w57H8xReBBXoZvUnOKTI0FW0Xvrj3GrYv2iZXUqlffC1LMGfQzhmBM/ke+6eTDA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b8e0640e15001806f1fc513334a90e7f1df0e7b1fcc51781057a19bd49ce293234156d17beb8f71ab62fda265752a95f7c2d4b3067d0ce198133f91efba7930c\",\"name\":\"cross-fetch-ponyfill\",\"version\":\"1.0.3\"},\"cross-spawn-7.0.6.tgz\":{\"integrity\":\"uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b95d903963f69d6ceccb668ca7c69189b862f5d9731791e0879487681f4e893184c834e2249cb1d2ecb9d505ddc966ed00736e6b85c9cd429c6b73b3294777bc\",\"name\":\"cross-spawn\",\"version\":\"7.0.6\"},\"css-tree-3.2.1.tgz\":{\"integrity\":\"X7sjQzceUhu1u7Y/ylrRZFU2FS6LRiFVp6rKLPg23y3x3c3DOKAwuXGDp+PAGjh6CSnCjYeAul8pcT8bAl+lSA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5fbb2343371e521bb5bbb63fca5ad1645536152e8b462155a7aaca2cf836df2df1ddcdc338a030b97183a7e3c01a387a0929c28d8780ba5f29713f1b025fa548\",\"name\":\"css-tree\",\"version\":\"3.2.1\"},\"css.escape-1.5.1.tgz\":{\"integrity\":\"YUifsXXuknHlUsmlgyY0PKzgPOr7/FjCePfHNt0jxm83wHZi44VDMQ7/fGNkjY3/jV1MC+1CmZbaHzugyeRtpg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"61489fb175ee9271e552c9a58326343cace03ceafbfc58c278f7c736dd23c66f37c07662e38543310eff7c63648d8dff8d5d4c0bed429996da1f3ba0c9e46da6\",\"name\":\"css.escape\",\"version\":\"1.5.1\"},\"cssesc-3.0.0.tgz\":{\"integrity\":\"/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"fd36ff25c8cad75d67352706a1be4c36db27b4d3356823540e2a41fd39306458720ebac4e3b48ec7fd7cc05d9b6e381cdd9cc248a5b54f99ede446c5a00cff56\",\"name\":\"cssesc\",\"version\":\"3.0.0\"},\"csstype-3.2.3.tgz\":{\"integrity\":\"z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"cf51c629c632db103c00641fc2b9f43c0cbe3c1ed7fc64a3dd45495bda8aca7e37c566be825e675e6538aaa2cc4735952c50bc2aeb145fc4ffd240a2398a4021\",\"name\":\"csstype\",\"version\":\"3.2.3\"},\"d3-array-3.2.4.tgz\":{\"integrity\":\"tdQAmyA18i4J7wprpYq8ClcxZy3SC31QMeByyCFyRt7BVHdREQZ5lpzoe5mFEYZUWe+oq8HBvk9JjpibyEV4Jg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b5d4009b2035f22e09ef0a6ba58abc0a5731672dd20b7d5031e072c8217246dec1547751110679969ce87b998511865459efa8abc1c1be4f498e989bc8457826\",\"name\":\"d3-array\",\"version\":\"3.2.4\"},\"d3-color-3.1.0.tgz\":{\"integrity\":\"zg/chbXyeBtMQ1LbD/WSoW2DpC3I0mpmPdW+ynRTj/x2DAWYrIY7qeZIHidozwV24m4iavr15lNwIwLxRmOxhA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ce0fdc85b5f2781b4c4352db0ff592a16d83a42dc8d26a663dd5beca74538ffc760c0598ac863ba9e6481e2768cf0576e26e226afaf5e653702302f14663b184\",\"name\":\"d3-color\",\"version\":\"3.1.0\"},\"d3-dispatch-3.0.1.tgz\":{\"integrity\":\"rzUyPU/S7rwUflMyLc1ETDeBj0NRuHKKAcvukozwhshr6g6c5d8zh4c2gQjY2bZ0dXeGLWc1PF174P2tVvKhfg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"af35323d4fd2eebc147e53322dcd444c37818f4351b8728a01cbee928cf086c86bea0e9ce5df338787368108d8d9b6747577862d67353c5d7be0fdad56f2a17e\",\"name\":\"d3-dispatch\",\"version\":\"3.0.1\"},\"d3-drag-3.0.0.tgz\":{\"integrity\":\"pWbUJLdETVA8lQNJecMxoXfH6x+mO2UQo8rSmZ+QqxcbyA3hfeprFgIT//HW2nlHChWeIIMwS2Fq+gEARkhTkg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a566d424b7444d503c95034979c331a177c7eb1fa63b6510a3cad2999f90ab171bc80de17dea6b160213fff1d6da79470a159e2083304b616afa010046485392\",\"name\":\"d3-drag\",\"version\":\"3.0.0\"},\"d3-ease-3.0.1.tgz\":{\"integrity\":\"wR/XK3D3XcLIZwpbvQwQ5fK+8Ykds1ip7A2Txe0yxncXSdq1L9skcG7blcedkOX+ZcgxGAmLX1FrRGbADwzi0w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c11fd72b70f75dc2c8670a5bbd0c10e5f2bef1891db358a9ec0d93c5ed32c6771749dab52fdb24706edb95c79d90e5fe65c83118098b5f516b4466c00f0ce2d3\",\"name\":\"d3-ease\",\"version\":\"3.0.1\"},\"d3-format-3.1.2.tgz\":{\"integrity\":\"AJDdYOdnyRDV5b6ArilzCPPwc1ejkHcoyFarqlPqT7zRYjhavcT3uSrqcMvsgh2CgoPbK3RCwyHaVyxYcP2Arg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0090dd60e767c910d5e5be80ae297308f3f07357a3907728c856abaa53ea4fbcd162385abdc4f7b92aea70cbec821d828283db2b7442c321da572c5870fd80ae\",\"name\":\"d3-format\",\"version\":\"3.1.2\"},\"d3-interpolate-3.0.1.tgz\":{\"integrity\":\"3bYs1rOD33uo8aqJfKP3JWPAibgw8Zm2+L9vBKEHJ2Rg+viTR7o5Mmv5mZcieN+FRYaAOWX5SJATX6k1PWz72g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ddb62cd6b383df7ba8f1aa897ca3f72563c089b830f199b6f8bf6f04a107276460faf89347ba39326bf999972278df854586803965f94890135fa9353d6cfbda\",\"name\":\"d3-interpolate\",\"version\":\"3.0.1\"},\"d3-path-3.1.0.tgz\":{\"integrity\":\"p3KP5HCf/bvjBSSKuXid6Zqijx7wIfNW+J/maPs+iwR35at5JCbLUT0LzF1cnjbCHWhqzQTIN2Jpe8pRebIEFQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a7728fe4709ffdbbe305248ab9789de99aa28f1ef021f356f89fe668fb3e8b0477e5ab792426cb513d0bcc5d5c9e36c21d686acd04c83762697bca5179b20415\",\"name\":\"d3-path\",\"version\":\"3.1.0\"},\"d3-scale-4.0.2.tgz\":{\"integrity\":\"GZW464g1SH7ag3Y7hXjf8RoUuAFIqklOAq3MRl4OaWabTFJY9PN/E1YklhXLh+OQ3fM9yS2nOkCoS+WLZ6kvxQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1995b8eb8835487eda83763b8578dff11a14b80148aa494e02adcc465e0e69669b4c5258f4f37f1356249615cb87e390ddf33dc92da73a40a84be58b67a92fc5\",\"name\":\"d3-scale\",\"version\":\"4.0.2\"},\"d3-selection-3.0.0.tgz\":{\"integrity\":\"fmTRWbNMmsmWq6xJV8D19U/gw/bwrHfNXxrIN+HfZgnzqTHp9jOmKMhsTUjXOJnZOdZY9Q28y4yebKzqDKlxlQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7e64d159b34c9ac996abac4957c0f5f54fe0c3f6f0ac77cd5f1ac837e1df6609f3a931e9f633a628c86c4d48d73899d939d658f50dbccb8c9e6cacea0ca97195\",\"name\":\"d3-selection\",\"version\":\"3.0.0\"},\"d3-shape-3.2.0.tgz\":{\"integrity\":\"SaLBuwGm3MOViRq2ABk3eLoxwZELpH6zhl3FbAoJ7Vm1gofKx6El1Ib5z23NUEhF9AsGl7y+dzLe5Cw2AArGTA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"49a2c1bb01a6dcc395891ab600193778ba31c1910ba47eb3865dc56c0a09ed59b58287cac7a125d486f9cf6dcd504845f40b0697bcbe7732dee42c36000ac64c\",\"name\":\"d3-shape\",\"version\":\"3.2.0\"},\"d3-time-3.1.0.tgz\":{\"integrity\":\"VqKjzBLejbSMT4IgbmVgDjpkYrNWUYJnbCGo874u7MMKIWsILRX+OpX/gTk8MqjpT1A/c6HY2dCA77ZN0lkQ2Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"56a2a3cc12de8db48c4f82206e65600e3a6462b3565182676c21a8f3be2eecc30a216b082d15fe3a95ff81393c32a8e94f503f73a1d8d9d080efb64dd25910d9\",\"name\":\"d3-time\",\"version\":\"3.1.0\"},\"d3-time-format-4.1.0.tgz\":{\"integrity\":\"dJxPBlzC7NugB2PDLwo9Q8JiTR3M3e4/XANkreKSUxF8vvXKqm1Yfq4Q5dl8budlunRVlUUaDUgFt7eA8D6NLg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"749c4f065cc2ecdba00763c32f0a3d43c2624d1dccddee3f5c0364ade29253117cbef5caaa6d587eae10e5d97c6ee765ba745595451a0d4805b7b780f03e8d2e\",\"name\":\"d3-time-format\",\"version\":\"4.1.0\"},\"d3-timer-3.0.1.tgz\":{\"integrity\":\"ndfJ/JxxMd3nw31uyKoY2naivF+r29V+Lc0svZxe1JvvIRmi8hUsrMvdOwgS1o6uBHmiz91geQ0ylPP0aj1VUA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9dd7c9fc9c7131dde7c37d6ec8aa18da76a2bc5fabdbd57e2dcd2cbd9c5ed49bef2119a2f2152caccbdd3b0812d68eae0479a2cfdd60790d3294f3f46a3d5550\",\"name\":\"d3-timer\",\"version\":\"3.0.1\"},\"d3-transition-3.0.1.tgz\":{\"integrity\":\"ApKvfjsSR6tg06xrL434C0WydLr7JewBB3V+/39RMHsaXTOG0zmt/OAXeng5M5LBm0ojmxJrpomQVZ1aPvBL4w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0292af7e3b1247ab60d3ac6b2f8df80b45b274bafb25ec0107757eff7f51307b1a5d3386d339adfce0177a78393392c19b4a239b126ba68990559d5a3ef04be3\",\"name\":\"d3-transition\",\"version\":\"3.0.1\"},\"d3-zoom-3.0.0.tgz\":{\"integrity\":\"b8AmV3kfQaqWAuacbPuNbL6vahnOJflOhexLzMMNLga62+/nh0JzvJ0aO/5a5MVgUFGS7Hu1P9P03o3fJkDCyw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6fc02657791f41aa9602e69c6cfb8d6cbeaf6a19ce25f94e85ec4bccc30d2e06badbefe7874273bc9d1a3bfe5ae4c560505192ec7bb53fd3f4de8ddf2640c2cb\",\"name\":\"d3-zoom\",\"version\":\"3.0.0\"},\"data-uri-to-buffer-4.0.1.tgz\":{\"integrity\":\"0R9ikRb668HB7QDxT1vkpuUBtqc53YyAwMwGeUFKRojY/NWKvdZ+9UYtRfGmhqNbRkTSVpMbmyhXipFFv2cb/A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d11f629116faebc1c1ed00f14f5be4a6e501b6a739dd8c80c0cc0679414a4688d8fcd58abdd67ef5462d45f1a686a35b4644d256931b9b28578a9145bf671bfc\",\"name\":\"data-uri-to-buffer\",\"version\":\"4.0.1\"},\"data-urls-7.0.0.tgz\":{\"integrity\":\"23XHcCF+coGYevirZceTVD7NdJOqVn+49IHyxgszm+JIiHLoB2TkmPtsYkNWT1pvRSGkc35L6NHs0yHkN2SumA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"db75c770217e7281987af8ab65c793543ecd7493aa567fb8f481f2c60b339be2488872e80764e498fb6c6243564f5a6f4521a4737e4be8d1ecd321e43764ae98\",\"name\":\"data-urls\",\"version\":\"7.0.0\"},\"dateformat-4.6.3.tgz\":{\"integrity\":\"2P0p0pFGzHS5EMnhdxQi7aJN+iMheud0UhG4dlE1DLAlvL8JHjJJTX/CSm4JXwV0Ka5nGk3zC5mcb5bUQUxxMA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d8fd29d29146cc74b910c9e1771422eda24dfa23217ae7745211b87651350cb025bcbf091e32494d7fc24a6e095f057429ae671a4df30b999c6f96d4414c7130\",\"name\":\"dateformat\",\"version\":\"4.6.3\"},\"debounce-fn-4.0.0.tgz\":{\"integrity\":\"8pYCQiL9Xdcg0UPSD3d+0KMlOjp+KGU5EPwYddgzQ7DATsg4fuUDjQtsYLmWjnk2obnNHgV3vE2Y4jejSOJVBQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f296024222fd5dd720d143d20f777ed0a3253a3a7e28653910fc1875d83343b0c04ec8387ee5038d0b6c60b9968e7936a1b9cd1e0577bc4d98e237a348e25505\",\"name\":\"debounce-fn\",\"version\":\"4.0.0\"},\"debug-4.4.3.tgz\":{\"integrity\":\"RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"446c305a7c10be455f6af295b76d8518bc3ec5849dcc04709b4aeee83853540dee994e6165cdbc57790ee2cb6062bcab4e52e9baf808f468a28e5b408cd6dca8\",\"name\":\"debug\",\"version\":\"4.4.3\"},\"decimal.js-10.6.0.tgz\":{\"integrity\":\"YpgQiITW3JXGntzdUmyUR1V812Hn8T1YVXhCu+wO3OpS4eU9l4YdD3qjyiKdV6mvV29zapkMeD390UVEf2lkUg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6298108884d6dc95c69edcdd526c9447557cd761e7f13d58557842bbec0edcea52e1e53d97861d0f7aa3ca229d57a9af576f736a990c783dfdd145447f696452\",\"name\":\"decimal.js\",\"version\":\"10.6.0\"},\"decimal.js-light-2.5.1.tgz\":{\"integrity\":\"qIMFpTMZmny+MMIitAB6D7iVPEorVw6YQRWkvarTkT4tBeSLLiHzcwj6q0MmYSFCiVpiqPJTJEYIrpcPzVEIvg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a88305a533199a7cbe30c222b4007a0fb8953c4a2b570e984115a4bdaad3913e2d05e48b2e21f37308faab4326612142895a62a8f253244608ae970fcd5108be\",\"name\":\"decimal.js-light\",\"version\":\"2.5.1\"},\"decompress-response-6.0.0.tgz\":{\"integrity\":\"aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"696df9c9933a05bff8a099599dc307d8b0a866d2574d1c444b5eef137868462a305369161da24a1644810e70d1f9c9bd27ef5085799113221fbf4a638bd7a309\",\"name\":\"decompress-response\",\"version\":\"6.0.0\"},\"dedent-1.7.2.tgz\":{\"integrity\":\"WzMx3mW98SN+zn3hgemf4OzdmyNhhhKz5Ay0pUfQiMQ3e1g+xmTJWp/pKdwKVXhdSkAEGIIzqeuWrL3mV/AXbA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5b3331de65bdf1237ece7de181e99fe0ecdd9b23618612b3e40cb4a547d088c4377b583ec664c95a9fe929dc0a55785d4a4004188233a9eb96acbde657f0176c\",\"name\":\"dedent\",\"version\":\"1.7.2\"},\"deepmerge-4.3.1.tgz\":{\"integrity\":\"3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"dec52a6cc11cefb5eaa5d34eec547246883e796de987e19809b8feacafae63244cbb0b15cb4acc895b4f9fe40994a16f58fff53d8a5aa6a627d0c7b6927167f8\",\"name\":\"deepmerge\",\"version\":\"4.3.1\"},\"default-browser-5.5.1.tgz\":{\"integrity\":\"m1pAzaJgZ/gssEqlOhJkPJp8Xly7QyW6xcrkUa2KKcDeDSEMP7X8xipU3snUcfisTQx0w1AGae+9UtJSfVnXGw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9b5a40cda26067f82cb04aa53a12643c9a7c5e5cbb4325bac5cae451ad8a29c0de0d210c3fb5fcc62a54dec9d471f8ac4d0c74c3500669efbd52d2527d59d71b\",\"name\":\"default-browser\",\"version\":\"5.5.1\"},\"default-browser-id-5.0.1.tgz\":{\"integrity\":\"x1VCxdX4t+8wVfd1so/9w+vQ4vx7lKd2Qp5tDRutErwmR85OgmfX7RlLRMWafRMY7hbEiXIbudNrjOAPa/hL8Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c75542c5d5f8b7ef3055f775b28ffdc3ebd0e2fc7b94a776429e6d0d1bad12bc2647ce4e8267d7ed194b44c59a7d1318ee16c489721bb9d36b8ce00f6bf84bf1\",\"name\":\"default-browser-id\",\"version\":\"5.0.1\"},\"defer-to-connect-2.0.1.tgz\":{\"integrity\":\"4tvttepXG1VaYGrRibk5EwJd1t4udunSOVMdLSAL6mId1ix438oPwPZMALY41FCijukO1L0twNcGsdzS7dHgDg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e2dbedb5ea571b555a606ad189b93913025dd6de2e76e9d239531d2d200bea621dd62c78dfca0fc0f64c00b638d450a28ee90ed4bd2dc0d706b1dcd2edd1e00e\",\"name\":\"defer-to-connect\",\"version\":\"2.0.1\"},\"define-data-property-1.1.4.tgz\":{\"integrity\":\"rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ac132f23396903cbfa13e489668a3ef87018aac2eb920ecc49f2229cc3c5866928af0ed7f9d39754942cf904faf731a4cccc9f0e720c3765a2775f8d6cbdd3f8\",\"name\":\"define-data-property\",\"version\":\"1.1.4\"},\"define-lazy-prop-2.0.0.tgz\":{\"integrity\":\"Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0ecd3da8d87ccb0de48528e22638942276865fdc65a990d8ec956bc86c5dc55ecd3debaa41fa653a943aeb224566eb778cb6b9ccec245f0d60f44236b8a8783a\",\"name\":\"define-lazy-prop\",\"version\":\"2.0.0\"},\"define-lazy-prop-3.0.0.tgz\":{\"integrity\":\"N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"37e31e5d8a2aaf7a4e827f317f244f44437b8076a42d88e1b07856193ddf58088be08900b74883c35e108a2126d9b137d1ce575f9ab416d000dc22b97fdfc152\",\"name\":\"define-lazy-prop\",\"version\":\"3.0.0\"},\"define-properties-1.2.1.tgz\":{\"integrity\":\"8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f109902aa10048b7799f1d14d41d6890b1256d4baeb6d27f0276264576db6c60d687ab92db4f048c3e17aaafc8f702bbbb4bfa3b4f178535a7b795ed11b47a0e\",\"name\":\"define-properties\",\"version\":\"1.2.1\"},\"delayed-stream-1.0.0.tgz\":{\"integrity\":\"ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"672483ecd7fdd5a2c1d11c4be0a1ab28705797b11db350c098475ca156b05e72c3ed20e1a4d82db88236680920edaed04b8d63c4f499d7ba7855d1a730793731\",\"name\":\"delayed-stream\",\"version\":\"1.0.0\"},\"depd-2.0.0.tgz\":{\"integrity\":\"g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"83b9c7e8fe9dc838a8268800006a6b1a90ad5489898693e4feba02cdd6f77c887ad7fb3f9cfb1f47aa27c8cc2408047f3a50b7c810b49444af52840402cb08af\",\"name\":\"depd\",\"version\":\"2.0.0\"},\"dequal-2.0.3.tgz\":{\"integrity\":\"0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d237bea8f28710ca21bdf453084a370ab3c6e9c033018826ccacb1462612483912e9e1897725499bb59a600e4409a003f702c1d93e0411eca603968555c61708\",\"name\":\"dequal\",\"version\":\"2.0.3\"},\"detect-libc-2.1.2.tgz\":{\"integrity\":\"Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"06d8f604e38ef37a375b21f9f5ef0c817b3111055c6ab9143a9118aee6c1d2eaf09cdd74c90dfae2bb22072535d67665a966199b4e62fe87fb8a8e26ce2841b5\",\"name\":\"detect-libc\",\"version\":\"2.1.2\"},\"detect-node-2.1.0.tgz\":{\"integrity\":\"T0NIuQpnTvFDATNuHN5roPwSBG83rFsuO+MXXH9/3N1eFbn4wcPjttvjMLEPWJ0RGUYgQE7cGgS3tNxbqCGM7g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4f4348b90a674ef14301336e1cde6ba0fc12046f37ac5b2e3be3175c7f7fdcdd5e15b9f8c1c3e3b6dbe330b10f589d11194620404edc1a04b7b4dc5ba8218cee\",\"name\":\"detect-node\",\"version\":\"2.1.0\"},\"detect-node-es-1.1.0.tgz\":{\"integrity\":\"ypdmJU/TbBby2Dxibuv7ZLW3Bs1QEmM7nHjEANfohJLvE0XVujisn1qPJcZxg+qDucsr+bP6fLD1rPS3AhJ7EQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ca9766254fd36c16f2d83c626eebfb64b5b706cd5012633b9c78c400d7e88492ef1345d5ba38ac9f5a8f25c67183ea83b9cb2bf9b3fa7cb0f5acf4b702127b11\",\"name\":\"detect-node-es\",\"version\":\"1.1.0\"},\"diff-8.0.4.tgz\":{\"integrity\":\"DPi0FmjiSU5EvQV0++GFDOJ9ASQUVFh5kD+OzOnYdi7n3Wpm9hWWGfB/O2blfHcMVTL5WkQXSnRiK9makhrcnw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0cf8b41668e2494e44bd0574fbe1850ce27d012414545879903f8ecce9d8762ee7dd6a66f6159619f07f3b66e57c770c5532f95a44174a74622bd99a921adc9f\",\"name\":\"diff\",\"version\":\"8.0.4\"},\"dir-compare-4.2.0.tgz\":{\"integrity\":\"2xMCmOoMrdQIPHdsTawECdNPwlVFB9zGcz3kuhmBO6U3oU+UQjsue0i8ayLKpgBcm+hcXPMVSGUN9d+pvJ6+VQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"db130298ea0cadd4083c776c4dac0409d34fc2554507dcc6733de4ba19813ba537a14f94423b2e7b48bc6b22caa6005c9be85c5cf31548650df5dfa9bc9ebe55\",\"name\":\"dir-compare\",\"version\":\"4.2.0\"},\"dmg-builder-26.15.7.tgz\":{\"integrity\":\"rfo1YyAWO0L3cZLKCqKQiLYbW6ZXebRUfK0kWp4oXxO7dDFLrf7alRkWImNuXvZVQhs6Idzy++cwOk8I+xPDhw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"adfa356320163b42f77192ca0aa29088b61b5ba65779b4547cad245a9e285f13bb74314badfeda95191622636e5ef655421b3a21dcf2fbe7303a4f08fb13c387\",\"name\":\"dmg-builder\",\"version\":\"26.15.7\"},\"dom-accessibility-api-0.5.16.tgz\":{\"integrity\":\"X7BJ2yElsnOJ30pZF4uIIDfBEVgF4XEBxL9Bxhy6dnrm5hkzqmsWHGTiHqRiITNhMyFLyAiWndIJP7Z1NTteDg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5fb049db2125b27389df4a59178b882037c1115805e17101c4bf41c61cba767ae6e61933aa6b161c64e21ea46221336133214bc808969dd2093fb675353b5e0e\",\"name\":\"dom-accessibility-api\",\"version\":\"0.5.16\"},\"dom-accessibility-api-0.6.3.tgz\":{\"integrity\":\"7ZgogeTnjuHbo+ct10G9Ffp0mif17idi0IyWNVA/wcwcm7NPOD/WEHVP3n7n3MhXqxoIYm8d6MuZohYWIZ4T3w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ed982881e4e78ee1dba3e72dd741bd15fa749a27f5ee2762d08c9635503fc1cc1c9bb34f383fd610754fde7ee7dcc857ab1a08626f1de8cb99a21616219e13df\",\"name\":\"dom-accessibility-api\",\"version\":\"0.6.3\"},\"dot-prop-6.0.1.tgz\":{\"integrity\":\"tE7ztYzXHIeyvc7N+hR3oi7FIbf/NIjVP9hmAt3yMXzrQ072/fpjGLx2GxNxGxUl5V73MEqYzioOMoVhGMJ5cA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b44ef3b58cd71c87b2bdcecdfa1477a22ec521b7ff3488d53fd86602ddf2317ceb434ef6fdfa6318bc761b13711b1525e55ef7304a98ce2a0e32856118c27970\",\"name\":\"dot-prop\",\"version\":\"6.0.1\"},\"dotenv-16.6.1.tgz\":{\"integrity\":\"uBq4egWHTcTt33a72vpSG0z3HnPuIl6NqYcTrKEg2azoEyl2hpW0zqlxysq2pK9HlDIHyHyakeYaYnSAwd8bow==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b81ab87a05874dc4eddf76bbdafa521b4cf71e73ee225e8da98713aca120d9ace81329768695b4cea971cacab6a4af47943207c87c9a91e61a627480c1df1ba3\",\"name\":\"dotenv\",\"version\":\"16.6.1\"},\"dotenv-17.4.2.tgz\":{\"integrity\":\"nI4U3TottKAcAD9LLud4Cb7b2QztQMUEfHbvhTH09bqXTxnSie8WnjPALV/WMCrJZ6UV/qHJ6L03OqO3LcdYZw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9c8e14dd3a2db4a01c003f4b2ee77809bedbd90ced40c5047c76ef8531f4f5ba974f19d289ef169e33c02d5fd6302ac967a515fea1c9e8bd373aa3b72dc75867\",\"name\":\"dotenv\",\"version\":\"17.4.2\"},\"dotenv-expand-11.0.7.tgz\":{\"integrity\":\"zIHwmZPRshsCdpMDyVsqGmgyP0yT8GAgXUnkdAoJisxvf33k7yO6OuoKmcTGuXPWSsm8Oh88nZicRLA9Y0rUeA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"cc81f09993d1b21b02769303c95b2a1a68323f4c93f060205d49e4740a098acc6f7f7de4ef23ba3aea0a99c4c6b973d64ac9bc3a1f3c9d989c44b03d634ad478\",\"name\":\"dotenv-expand\",\"version\":\"11.0.7\"},\"dunder-proto-1.0.1.tgz\":{\"integrity\":\"KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"28837f9c3241411717c3430b561644f62407986ebca80548060f42aa65188e64088608a3f54e4c16faea9142f915bb72cb366e39e3add3375e45ee1463b72df8\",\"name\":\"dunder-proto\",\"version\":\"1.0.1\"},\"duplexer2-0.1.4.tgz\":{\"integrity\":\"asLFVfWWtJ90ZyOUHMqk7/S2w2guQKxUI2itj3d92ADHhxUSbCMGi1f1cBcJ7xM1To+pE/Khbwo1yuNbMEPKeA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6ac2c555f596b49f746723941ccaa4eff4b6c3682e40ac542368ad8f777dd800c78715126c23068b57f5701709ef13354e8fa913f2a16f0a35cae35b3043ca78\",\"name\":\"duplexer2\",\"version\":\"0.1.4\"},\"duplexify-4.1.3.tgz\":{\"integrity\":\"M3BmBhwJRZsSx38lZyhE53Csddgzl5R7xGJNk7CVddZD6CcmwMCH8J+7AprIrQKH7TonKxaCjcv27Qmf+sQ+oA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"337066061c09459b12c77f25672844e770ac75d83397947bc4624d93b09575d643e82726c0c087f09fbb029ac8ad0287ed3a272b16828dcbf6ed099ffac43ea0\",\"name\":\"duplexify\",\"version\":\"4.1.3\"},\"ee-first-1.1.1.tgz\":{\"integrity\":\"WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"58cc26f4b851528f9651a44dfaf46e113a86f3d22066985548d91d16079beac4bf1383ab0c837bb78f0201ec121d773a0bc95e7c3f0a29faf9bd8eb56eb425a3\",\"name\":\"ee-first\",\"version\":\"1.1.1\"},\"ejs-3.1.10.tgz\":{\"integrity\":\"UeJmFfOrAQS8OJWPZ4qtgHyWExa088/MtK5UEyoJGFH67cDEXkZSviOiKRCZ4Xij0zxI3JECgYs3oKx+AizQBA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"51e26615f3ab0104bc38958f678aad807c961316b4f3cfccb4ae54132a091851faedc0c45e4652be23a2291099e178a3d33c48dc9102818b37a0ac7e022cd004\",\"name\":\"ejs\",\"version\":\"3.1.10\"},\"electron-43.4.0.tgz\":{\"integrity\":\"3qxGF0CeQbiox5oWV1JlbWGQ1VerbmDhTFqW4sJ8h7uqTHniFYPObXJcDna0DMh32et0fFyKzz0YY8lJv3t5jg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"deac4617409e41b8a8c79a165752656d6190d557ab6e60e14c5a96e2c27c87bbaa4c79e21583ce6d725c0e76b40cc877d9eb747c5c8acf3d1863c949bf7b798e\",\"name\":\"electron\",\"version\":\"43.4.0\"},\"electron-builder-26.15.7.tgz\":{\"integrity\":\"DBpaNzxsPs1BvEblzFoNriSbzsBqDCy/gseIngeEhYzQG1IxfB7Hvc2tBBVmpWE2BTQGP9J1RrAvDT+Vc/uAxg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0c1a5a373c6c3ecd41bc46e5cc5a0dae249bcec06a0c2cbf82c7889e0784858cd01b52317c1ec7bdcdad041566a561360534063fd27546b02f0d3f9573fb80c6\",\"name\":\"electron-builder\",\"version\":\"26.15.7\"},\"electron-builder-squirrel-windows-26.15.7.tgz\":{\"integrity\":\"B4uvn2NzFSuf084udWqugludFull6CRJiWe2dLzMnZLl6G5hdAGk0fsBMGlBSpKjvQCJn8IPc+S7OnJ+GXqwLA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"078baf9f6373152b9fd3ce2e756aae825b9d16e965e824498967b674bccc9d92e5e86e617401a4d1fb013069414a92a3bd00899fc20f73e4bb3a727e197ab02c\",\"name\":\"electron-builder-squirrel-windows\",\"version\":\"26.15.7\"},\"electron-liquid-glass-1.1.1.tgz\":{\"integrity\":\"AfPxcu6RJYxlsW2sjgjDEON0rVOjhh5QYM6ur5hsfILQmfY5ewHCWJZJZoDsQxhjeW1DAhbRbvB79IvgW4ansA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"01f3f172ee91258c65b16dac8e08c310e374ad53a3861e5060ceaeaf986c7c82d099f6397b01c25896496680ec431863796d430216d16ef07bf48be05b86a7b0\",\"name\":\"electron-liquid-glass\",\"version\":\"1.1.1\"},\"electron-publish-26.15.3.tgz\":{\"integrity\":\"g/2bn8YTavY4cuS5F+jOS7zmZbXXBV8KZ8yHKfJjFPoKtzBqrpCdNPxBd3tqdBwP7BVd0lGzf7Bk2s0KesWZ4Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"83fd9b9fc6136af63872e4b917e8ce4bbce665b5d7055f0a67cc8729f26314fa0ab7306aae909d34fc41777b6a741c0fec155dd251b37fb064dacd0a7ac599e1\",\"name\":\"electron-publish\",\"version\":\"26.15.3\"},\"electron-to-chromium-1.5.408.tgz\":{\"integrity\":\"SLoprcYpJ/OH2v2ps0+N5biv9H4/KBT3+YmmDew64TwK5y9j2wv7pMOFY7IorVkyMtEyLSCRlXKLsNlakeAlPw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"48ba29adc62927f387dafda9b34f8de5b8aff47e3f2814f7f989a60dec3ae13c0ae72f63db0bfba4c38563b228ad593232d1322d209195728bb0d95a91e0253f\",\"name\":\"electron-to-chromium\",\"version\":\"1.5.408\"},\"electron-updater-6.8.9.tgz\":{\"integrity\":\"ZhVxM9iGONUpZGI1FxdMRgJjUFXi7AYGVa5PwKlO1tV1/4zDxQmfKpXOHVztKrd6L9rLcFjERvi1Mf2vxyTkig==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"66157133d88638d52964623517174c4602635055e2ec060655ae4fc0a94ed6d575ff8cc3c5099f2a95ce1d5ced2ab77a2fdacb7058c446f8b531fdafc724e48a\",\"name\":\"electron-updater\",\"version\":\"6.8.9\"},\"electron-winstaller-5.4.0.tgz\":{\"integrity\":\"bO3y10YikuUwUuDUQRM4KfwNkKhnpVO7IPdbsrejwN9/AABJzzTQ4GeHwyzNSrVO+tEH3/Np255a3sVZpZDjvg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6cedf2d7462292e53052e0d441133829fc0d90a867a553bb20f75bb2b7a3c0df7f000049cf34d0e06787c32ccd4ab54efad107dff369db9e5adec559a590e3be\",\"name\":\"electron-winstaller\",\"version\":\"5.4.0\"},\"elkjs-0.12.0.tgz\":{\"integrity\":\"YZcKynxVxYoKIOEpywEPwCFdg+BTbxQRNf3pbwdDCvc8O3kQD8bmIwSxKU1eOTVc4Xo+VG9Te+575mlfvOrhEQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"61970aca7c55c58a0a20e129cb010fc0215d83e0536f141135fde96f07430af73c3b79100fc6e62304b1294d5e39355ce17a3e546f537bee7be6695fbceae111\",\"name\":\"elkjs\",\"version\":\"0.12.0\"},\"emoji-regex-10.6.0.tgz\":{\"integrity\":\"toUI84YS5YmxW219erniWD0CIVOo46xGKColeNQRgOzDorgBi1v4D71/OFzgD9GO2UGKIv1C3Sp8DAn0+j5w7A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b68508f38612e589b15b6d7d7ab9e2583d022153a8e3ac46282a2578d41180ecc3a2b8018b5bf80fbd7f385ce00fd18ed9418a22fd42dd2a7c0c09f4fa3e70ec\",\"name\":\"emoji-regex\",\"version\":\"10.6.0\"},\"emoji-regex-8.0.0.tgz\":{\"integrity\":\"MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3128d8cdc58d380d1ec001e9cf4331a5816fc20eb28f2d4d1b7c6d7a8ab3eb8e150a8fd13e09ebd7f186b7e89cde2253cd0f04bb74dd335e126b09d5526184e8\",\"name\":\"emoji-regex\",\"version\":\"8.0.0\"},\"encodeurl-2.0.0.tgz\":{\"integrity\":\"Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4349fd1d18b89ba26e188575785966bc907b644571bbddc8accca232c182d25acc24c5b3460c7a586aaec9f4206556f7d6f8468179df98f34d5e6c673a4441ae\",\"name\":\"encodeurl\",\"version\":\"2.0.0\"},\"end-of-stream-1.4.5.tgz\":{\"integrity\":\"ooEGc6HP26xXq/N+GCGOT0JKCLDGrq2bQUZrQ7gyrJiZANJ/8YDTxTpQBXGMn+WbIQXNVpyWymm7KYVICQnyOg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a2810673a1cfdbac57abf37e18218e4f424a08b0c6aead9b41466b43b832ac989900d27ff180d3c53a5005718c9fe59b2105cd569c96ca69bb2985480909f23a\",\"name\":\"end-of-stream\",\"version\":\"1.4.5\"},\"enhanced-resolve-5.24.5.tgz\":{\"integrity\":\"L1l8TNvomm6UVW5B253AGxQagSQr+vGwhMlrrfRS2qmhx46AMpMVJKQYLvWYbysTMY8VoicOvzHzoHMbyzB+4A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2f597c4cdbe89a6e94556e41db9dc01b141a81242bfaf1b084c96badf452daa9a1c78e8032931524a4182ef5986f2b13318f15a2270ebf31f3a0731bcb307ee0\",\"name\":\"enhanced-resolve\",\"version\":\"5.24.5\"},\"enquirer-2.4.1.tgz\":{\"integrity\":\"rRqJg/6gd538VHvR3PSrdRBb/1Vy2YfzHqzvbhGIQpDRKIa4FgV/54b5Q1xYSxOOwKvjXweS26E0Q+nAMwp2pQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ad1a8983fea0779dfc547bd1dcf4ab75105bff5572d987f31eacef6e11884290d12886b816057fe786f9435c584b138ec0abe35f0792dba13443e9c0330a76a5\",\"name\":\"enquirer\",\"version\":\"2.4.1\"},\"entities-8.0.0.tgz\":{\"integrity\":\"zwfzJecQ/Uej6tusMqwAqU/6KL2XaB2VZ2Jg54Je6ahNBGNH6Ek6g3jjNCF0fG9EWQKGZNddNjU5F1ZQn/sBnA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"cf07f325e710fd47a3eadbac32ac00a94ffa28bd97681d95676260e7825ee9a84d046347e8493a8378e33421747c6f4459028664d75d3635391756509ffb019c\",\"name\":\"entities\",\"version\":\"8.0.0\"},\"env-paths-2.2.1.tgz\":{\"integrity\":\"+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"fa1d6590b2a164c4d88e8835544a49346ecd64959cb9cd830e4feab2a49345108e5e22e3790d5dd7fb9dad41a1a8cc5480097028d67471fdaea9a9f918bb92d8\",\"name\":\"env-paths\",\"version\":\"2.2.1\"},\"env-paths-3.0.0.tgz\":{\"integrity\":\"dtJUTepzMW3Lm/NPxRf3wP4642UWhjL2sQxc+ym2YMj1m/H2zDNQOlezafzkHwn6sMstjHTwG6iQQsctDW/b1A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"76d2544dea73316dcb9bf34fc517f7c0fe3ae365168632f6b10c5cfb29b660c8f59bf1f6cc33503a57b369fce41f09fab0cb2d8c74f01ba89042c72d0d6fdbd4\",\"name\":\"env-paths\",\"version\":\"3.0.0\"},\"err-code-2.0.3.tgz\":{\"integrity\":\"2bmlRpNKBxT/CRmPOlyISQpNj+qSeYvcym/uT0Jx2bMOlKLtSy1ZmLuVxSEKKyor/N5yhvp/ZiG1oE3DEYMSFA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d9b9a546934a0714ff09198f3a5c88490a4d8fea92798bdcca6fee4f4271d9b30e94a2ed4b2d5998bb95c5210a2b2a2bfcde7286fa7f6621b5a04dc311831214\",\"name\":\"err-code\",\"version\":\"2.0.3\"},\"error-ex-1.3.4.tgz\":{\"integrity\":\"sqQamAnR14VgCr1A618A3sGrygcpK+HEbenA/HiEAkkUwcZIIB/tgWqHFxWgOyDh4nB4JCRimh79dR5Ywc9MDQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b2a41a9809d1d785600abd40eb5f00dec1abca07292be1c46de9c0fc7884024914c1c648201fed816a871715a03b20e1e270782424629a1efd751e58c1cf4c0d\",\"name\":\"error-ex\",\"version\":\"1.3.4\"},\"es-define-property-1.0.1.tgz\":{\"integrity\":\"e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7b79d17e07d4678acd18bdb7da05205f4e90372c9ecf4e0a76316b17e2d34683979ab3a014a0e0e0109db235bc1274faf5ea9d606991a49c223d560dac2696de\",\"name\":\"es-define-property\",\"version\":\"1.0.1\"},\"es-errors-1.3.0.tgz\":{\"integrity\":\"Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"65fe47d8ac6ddb18d3bdb26f3f66562c4202c40ea3fa1026333225ca9cb8c5c060d6f2959f1f3d5b2d066d2fa47f9730095145cdd0858765d20853542d2e9cb3\",\"name\":\"es-errors\",\"version\":\"1.3.0\"},\"es-module-lexer-2.3.2.tgz\":{\"integrity\":\"poHGpORABojJJucnV9KbOavETW8lBVnphkW77ER5/BQ5Fz7oXSoCNek7IH3vR5nRjdsEz926ibFYX8KtLQmdyw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a681c6a4e4400688c926e72757d29b39abc44d6f250559e98645bbec4479fc1439173ee85d2a0235e93b207def4799d18ddb04cfddba89b1585fc2ad2d099dcb\",\"name\":\"es-module-lexer\",\"version\":\"2.3.2\"},\"es-object-atoms-1.1.2.tgz\":{\"integrity\":\"HWcBoN6NileqtSydK2FqHbS/LoDd2pqrnQHLyJzBj4kOp/ky2MWMN694xOfkK8/SnUsW2DH7EfyVlydKCsm1Zw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1d6701a0de8d8a57aab52c9d2b616a1db4bf2e80ddda9aab9d01cbc89cc18f890ea7f932d8c58c37af78c4e7e42bcfd29d4b16d831fb11fc9597274a0ac9b567\",\"name\":\"es-object-atoms\",\"version\":\"1.1.2\"},\"es-set-tostringtag-2.1.0.tgz\":{\"integrity\":\"j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8fabd6cdfac655fc97c607be3b4c79b21e9cbf10288346bfe1175dd8adfacc2315e5e27effeb4e0278113bc70e0cc3566d545d5659866502f6612df247c6c850\",\"name\":\"es-set-tostringtag\",\"version\":\"2.1.0\"},\"es-toolkit-1.50.0.tgz\":{\"integrity\":\"OyZKhUVvEep9ITEiwHn8GKnMRQIVqoSIX7WnRbkWgJkllCujilqP2rD0u979tkl8wqyc8ICwlc1UBVv/Sl1G6w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3b264a85456f11ea7d213122c079fc18a9cc450215aa84885fb5a745b916809925942ba38a5a8fdab0f4bbdefdb6497cc2ac9cf080b095cd54055bff4a5d46eb\",\"name\":\"es-toolkit\",\"version\":\"1.50.0\"},\"es6-error-4.1.1.tgz\":{\"integrity\":\"Um/+FxMr9CISWh0bi5Zv0iOD+4cFh5qLeks1qhAopKVAJw3drgKbKySikp7wGhDL0HPeaja0P5ULZrxLkniUVg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"526ffe17132bf422125a1d1b8b966fd22383fb8705879a8b7a4b35aa1028a4a540270dddae029b2b24a2929ef01a10cbd073de6a36b43f950b66bc4b92789456\",\"name\":\"es6-error\",\"version\":\"4.1.1\"},\"esbuild-0.28.2.tgz\":{\"integrity\":\"HKVLS8dvII+xoKW9kmqxbRKrnWEXfJJr/FZhhJmiqIB0e053QNYFqOBouTMO/k5sID4MvCiUCvv8b9M4h32wIA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1ca54b4bc76f208fb1a0a5bd926ab16d12ab9d61177c926bfc56618499a2a880747b4e7740d605a8e068b9330efe4e6c203e0cbc28940afbfc6fd338877db020\",\"name\":\"esbuild\",\"version\":\"0.28.2\"},\"escalade-3.2.0.tgz\":{\"integrity\":\"WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5948f6aa5c5a42d3b883a3eae5cdbd193716183c9df22b4bf334e58a98040b3dc97ac02288e2a8b5df0953aa2d0773c00a01bac64254c9585ba0c4be6e37bf8c\",\"name\":\"escalade\",\"version\":\"3.2.0\"},\"escape-html-1.0.3.tgz\":{\"integrity\":\"NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3624aea59e0e7ae1b0afaf251887b29bf92c219309a1d506392099fc54a74f172b7a46efaab81d53194938ca628da299563009ad6ac6b3fe89cbc38cbb28fda3\",\"name\":\"escape-html\",\"version\":\"1.0.3\"},\"escape-string-regexp-4.0.0.tgz\":{\"integrity\":\"TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4eda5c349dd7033c771aaf2c591cc96956a346cd2e57103660091d6f58e6d9890fcf81ba7a05050320379f9bed10865e7cf93959ae145db2ae4b97ca90959d80\",\"name\":\"escape-string-regexp\",\"version\":\"4.0.0\"},\"esprima-4.0.1.tgz\":{\"integrity\":\"eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"786b85170ed4a5d6be838a7e407be75b44724d7fd255e2410ccfe00ad30044ed1c2ee4f61dc10a9d33ef86357a6867aaac207fb1b368a742acce6d23b1a594e0\",\"name\":\"esprima\",\"version\":\"4.0.1\"},\"estree-walker-3.0.3.tgz\":{\"integrity\":\"7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ed150a7d781230c933b7a66e5e6a9aa4ebab2c63cf7e08fa97db9167b9511a896f934cb6ca871cdf92dd731282e4f419767d8332a8a8010d8da1672b4ca9a6ea\",\"name\":\"estree-walker\",\"version\":\"3.0.3\"},\"etag-1.8.1.tgz\":{\"integrity\":\"aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6882f9171ee66b055adf4d1a976067104e2236fa35a844f12eb3c8fe8d392fbcfa828edf0b0d49e844266cae05989d804bb920545fca1195ae7c17dd0a531c3e\",\"name\":\"etag\",\"version\":\"1.8.1\"},\"event-target-shim-5.0.1.tgz\":{\"integrity\":\"i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8bfd976e74b3feec51094ebe35d54980a5834cce36efe32a61b910cc3df6d43b8240952a3ae24a200d08336f96db1b581dd28e999e1d47a7c4c6c7784972fe59\",\"name\":\"event-target-shim\",\"version\":\"5.0.1\"},\"eventemitter3-5.0.4.tgz\":{\"integrity\":\"mlsTRyGaPBjPedk6Bvw+aqbsXDtoAyAzm5MO7JgU+yVRyMQ5O8bD4Kcci7BS85f93veegeCPkL8R4GLClnjLFw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9a5b1347219a3c18cf79d93a06fc3e6aa6ec5c3b680320339b930eec9814fb2551c8c4393bc6c3e0a71c8bb052f397fddef79e81e08f90bf11e062c29678cb17\",\"name\":\"eventemitter3\",\"version\":\"5.0.4\"},\"eventsource-3.0.7.tgz\":{\"integrity\":\"CRT1WTyuQoD771GW56XEZFQ/ZoSfWid1alKGDYMmkt2yl8UXrVR4pspqWNEcqKvVIzg6PAltWjxcSSPrboA4iA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0914f5593cae4280fbef5196e7a5c464543f66849f5a27756a52860d832692ddb297c517ad5478a6ca6a58d11ca8abd523383a3c096d5a3c5c4923eb6e803888\",\"name\":\"eventsource\",\"version\":\"3.0.7\"},\"eventsource-parser-3.1.1.tgz\":{\"integrity\":\"EKN1vKAMcZ8MlYMpaNuxN6R9yakzH6uajHcHVTqWJzvu5pWw9DyhbP35HH8MVBQ+dZjAfDxk+A8NiR9KWaXiyQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"10a375bca00c719f0c95832968dbb137a47dc9a9331fab9a8c7707553a96273beee695b0f43ca16cfdf91c7f0c54143e7598c07c3c64f80f0d891f4a59a5e2c9\",\"name\":\"eventsource-parser\",\"version\":\"3.1.1\"},\"execa-5.1.1.tgz\":{\"integrity\":\"8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f2e4a9659a1c01944100f20420d263dcba3d1f21a2b6595ccdcdbb121e586288e3305327f321cc0cc6941c4d89a9fab4e43ff0b9cc08e091944725edd6f721ca\",\"name\":\"execa\",\"version\":\"5.1.1\"},\"execa-9.6.1.tgz\":{\"integrity\":\"9Be3ZoN4LmYR90tUoVu2te2BsbzHfhJyfEiAVfz7N5/zv+jduIfLrV2xdQXOHbaD6KgpGdO9PRPM1Y4Q9QkPkA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f417b76683782e6611f74b54a15bb6b5ed81b1bcc77e12727c488055fcfb379ff3bfe8ddb887cbad5db17505ce1db683e8a82919d3bd3d13ccd58e10f5090f90\",\"name\":\"execa\",\"version\":\"9.6.1\"},\"expect-type-1.4.0.tgz\":{\"integrity\":\"KfYbmpRm0VbLjEvVa9yGwCi9GI34xvi7A/HXYWQO65CSD2u3MczUJSuwXKFIxlGsgBQizV9q5J9NHj4VG0n+pA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"29f61b9a9466d156cb8c4bd56bdc86c028bd188df8c6f8bb03f1d761640eeb90920f6bb731ccd4252bb05ca148c651ac801422cd5f6ae49f4d1e3e151b49fea4\",\"name\":\"expect-type\",\"version\":\"1.4.0\"},\"exponential-backoff-3.1.3.tgz\":{\"integrity\":\"ZgEeZXj30q+I0EN+CbSSpIyPaJ5HVQD18Z1m+u1FXbAeT94mr1zw50q4q6jiiC447Nl/YTcIYSAftiGqetwXCA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"66011e6578f7d2af88d0437e09b492a48c8f689e475500f5f19d66faed455db01e4fde26af5cf0e74ab8aba8e2882e38ecd97f61370861201fb621aa7adc1708\",\"name\":\"exponential-backoff\",\"version\":\"3.1.3\"},\"express-5.2.1.tgz\":{\"integrity\":\"hIS4idWWai69NezIdRt2xFVofaF4j+6INOpJlVOLDO8zXGpUVEVzIYk12UUi2JzjEzWL3IOAxcTubgz9Po0yXw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8484b889d5966a2ebd35ecc8751b76c455687da1788fee8834ea4995538b0cef335c6a54544573218935d94522d89ce313358bdc8380c5c4ee6e0cfd3e8d325f\",\"name\":\"express\",\"version\":\"5.2.1\"},\"express-rate-limit-8.6.2.tgz\":{\"integrity\":\"YH4ru+eOJxQABscKFfRCy9R7x9QFGdezclVMwwgFFndzS2Xnm0uo6B0ABZsLhcpeptGv2qvuJVWlQr9gQZoC3A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"607e2bbbe78e27140006c70a15f442cbd47bc7d40519d7b372554cc308051677734b65e79b4ba8e81d00059b0b85ca5ea6d1afdaabee2555a542bf60419a02dc\",\"name\":\"express-rate-limit\",\"version\":\"8.6.2\"},\"fast-copy-4.0.4.tgz\":{\"integrity\":\"eVAiWVNPSEGIzDl5yPuLrx8fNMogScXvD9xp1Kzd41FjRIz2I3sSIcxsFeM5EzFfHAfobdvs8ZySffUopljvIA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"79502259534f484188cc3979c8fb8baf1f1f34ca2049c5ef0fdc69d4acdde35163448cf6237b1221cc6c15e33913315f1c07e86ddbecf19c927df528a658ef20\",\"name\":\"fast-copy\",\"version\":\"4.0.4\"},\"fast-decode-uri-component-1.0.1.tgz\":{\"integrity\":\"WKgKWg5eUxvRZGwW8FvfbaH7AXSh2cL+3j5fMGzUMCxWBJ3dV3a7Wz8y2f/uQ0e3B6WmodD3oS54jTQ9HVTIIg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"58a80a5a0e5e531bd1646c16f05bdf6da1fb0174a1d9c2fede3e5f306cd4302c56049ddd5776bb5b3f32d9ffee4347b707a5a6a1d0f7a12e788d343d1d54c822\",\"name\":\"fast-decode-uri-component\",\"version\":\"1.0.1\"},\"fast-deep-equal-3.1.3.tgz\":{\"integrity\":\"f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7f7a90f68432f63d808417bf1fd542f75c0b98a042094fe00ce9ca340606e61b303bb04b2a3d3d1dce4760dcfd70623efb19690c22200da8ad56cd3701347ce1\",\"name\":\"fast-deep-equal\",\"version\":\"3.1.3\"},\"fast-glob-3.3.3.tgz\":{\"integrity\":\"7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ecca6d2fc53472a705773233c0e4c7a22957f71e41acdab27bb67f2ee0bb9023118a8d44312caa44adc1100503eec5d1ab8893e00cd356e65d8604364c2bd82e\",\"name\":\"fast-glob\",\"version\":\"3.3.3\"},\"fast-json-stringify-7.0.1.tgz\":{\"integrity\":\"eRSayARSbbwlBjpP4vnTTIRD5QPcIrmihPxDeN1DtKnHPg66UuJLx+8hlK1kaFdjvzyQ/dzALoi4vwAQ+T+iZA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"79149ac804526dbc25063a4fe2f9d34c8443e503dc22b9a284fc4378dd43b4a9c73e0eba52e24bc7ef2194ad64685763bf3c90fddcc02e88b8bf0010f93fa264\",\"name\":\"fast-json-stringify\",\"version\":\"7.0.1\"},\"fast-querystring-1.1.2.tgz\":{\"integrity\":\"g6KuKWmFXc0fID8WWH0jit4g0AGBoJhCkJMb1RmbsSEUNvQ+ZC8D6CUZ+GtF8nMzSPXnhiePyyqqipzNNEnHjg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"83a2ae2969855dcd1f203f16587d238ade20d00181a0984290931bd5199bb1211436f43e642f03e82519f86b45f2733348f5e786278fcb2aaa8a9ccd3449c78e\",\"name\":\"fast-querystring\",\"version\":\"1.1.2\"},\"fast-safe-stringify-2.1.1.tgz\":{\"integrity\":\"W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5be28973676620b94fa650ff1f82bd97d2dc00701f3ed3fa058f38b952d743a12f733f4b720df7636cf52156e54fac5d639e0f5d854712ffb45a9abc228eb390\",\"name\":\"fast-safe-stringify\",\"version\":\"2.1.1\"},\"fast-uri-3.1.5.tgz\":{\"integrity\":\"gHwA1O9LDIcKunMKhObS/HimwtehO1nPUECKAu5TpKgaO19fcWEl4bliWe1jWxVFvIXztJjjQ4L8XQ1EU9f7Jw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"807c00d4ef4b0c870aba730a84e6d2fc78a6c2d7a13b59cf50408a02ee53a4a81a3b5f5f716125e1b96259ed635b1545bc85f3b498e34382fc5d0d4453d7fb27\",\"name\":\"fast-uri\",\"version\":\"3.1.5\"},\"fast-uri-4.1.2.tgz\":{\"integrity\":\"TyGmBcbDTZXcb2cj5MV89DrF42DKvb3y5DDUNh95iO+IMeAzMkVSxK1PZRrRIpc9yg8U2GhGdbofNa0LS/a4Bw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4f21a605c6c34d95dc6f6723e4c57cf43ac5e360cabdbdf2e430d4361f7988ef8831e033324552c4ad4f651ad122973dca0f14d8684675ba1f35ad0b4bf6b807\",\"name\":\"fast-uri\",\"version\":\"4.1.2\"},\"fastify-5.12.0.tgz\":{\"integrity\":\"A3RNEaDIHWaxFW8n8rNJaW1wQ+XAXuoU71llfUQJjuh5WaYLmKfRhhanaJBOx8m2EBPQkR6sDBovYdHNe9F6rA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"03744d11a0c81d66b1156f27f2b349696d7043e5c05eea14ef59657d44098ee87959a60b98a7d18616a768904ec7c9b61013d0911eac0c1a2f61d1cd7bd17aac\",\"name\":\"fastify\",\"version\":\"5.12.0\"},\"fastify-plugin-6.0.0.tgz\":{\"integrity\":\"fZOty7z3O7vOliF6d8bHE3wiEh1KcNnKEQensSgTk9C1DvN6nRLS++XVd86v33Hw/8u9Un8A1zDrQ8ujcQDHEg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7d93adcbbcf73bbbce96217a77c6c7137c22121d4a70d9ca1107a7b1281393d0b50ef37a9d12d2fbe5d577ceafdf71f0ffcbbd527f00d730eb43cba37100c712\",\"name\":\"fastify-plugin\",\"version\":\"6.0.0\"},\"fastq-1.20.1.tgz\":{\"integrity\":\"GGToxJ/w1x32s/D2EKND7kTil4n8OVk/9mycTc4VDza13lOvpUZTGX3mFSCtV9ksdGBVzvsyAVLM6mHFThxXxw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1864e8c49ff0d71df6b3f0f610a343ee44e29789fc39593ff66c9c4dce150f36b5de53afa54653197de61520ad57d92c746055cefb320152ccea61c54e1c57c7\",\"name\":\"fastq\",\"version\":\"1.20.1\"},\"fdir-6.5.0.tgz\":{\"integrity\":\"tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b486d8b596ee70eb340511aa3c992c84951874bf920c7edd54cf208f2f84469dd60148cb105244fb4da46a7c87b708d63a7c2b298062c0098cd29e242c90275e\",\"name\":\"fdir\",\"version\":\"6.5.0\"},\"fetch-blob-3.2.0.tgz\":{\"integrity\":\"7yAQpD2UMJzLi1Dqv7qFYnPbaPx7ZfFK6PiIxQ4PfkGPyNyl2Ugx+a/umUonmKqjhM4DnfbMvdX6otXq83soQQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ef2010a43d94309ccb8b50eabfba856273db68fc7b65f14ae8f888c50e0f7e418fc8dca5d94831f9afee994a2798aaa384ce039df6ccbdd5faa2d5eaf37b2841\",\"name\":\"fetch-blob\",\"version\":\"3.2.0\"},\"figures-6.1.0.tgz\":{\"integrity\":\"d+l3qxjSesT4V7v2fh+QnmFnUWv9lSpjarhShNTgBOfA0ttejbQUAlHLitbjkoRiDulW0OPoQPYIGhIC8ohejg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"77e977ab18d27ac4f857bbf67e1f909e6167516bfd952a636ab85284d4e004e7c0d2db5e8db4140251cb8ad6e39284620ee956d0e3e840f6081a1202f2885e8e\",\"name\":\"figures\",\"version\":\"6.1.0\"},\"file-uri-to-path-1.0.0.tgz\":{\"integrity\":\"0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d19b7eb372fb55fd5b8b0599dbd6804625582f1ee23069c4525f71df77db07f8f78d1f35bbf3b62dba8af819b508348d0ca56d27f623c18ed351de5291e2d02f\",\"name\":\"file-uri-to-path\",\"version\":\"1.0.0\"},\"filelist-1.0.6.tgz\":{\"integrity\":\"5giy2PkLYY1cP39p17Ech+2xlpTRL9HLspOfEgm0L6CwBXBTgsK5ou0JtzYuepxkaQ/tvhCFIJ5uXo0OrM2DxA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e608b2d8f90b618d5c3f7f69d7b11c87edb19694d12fd1cbb2939f1209b42fa0b005705382c2b9a2ed09b7362e7a9c64690fedbe1085209e6e5e8d0eaccd83c4\",\"name\":\"filelist\",\"version\":\"1.0.6\"},\"fill-range-7.1.1.tgz\":{\"integrity\":\"YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"62c1a97b75872caf19622e2d583836272dde6d1cf6ad7a300f19e57786e4401d3471cff5670f405a70b48bdced0c98ad8afb50bda23d29a2f22ab73e8415b4ca\",\"name\":\"fill-range\",\"version\":\"7.1.1\"},\"finalhandler-2.1.1.tgz\":{\"integrity\":\"S8KoZgRZN+a5rNwqTxlZZePjT/4cnm0ROV70LedRHZ0p8u9fRID0hJUZQpkKLzro8LfmC8sx23bY6tVNxv8pQA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4bc2a866045937e6b9acdc2a4f195965e3e34ffe1c9e6d11395ef42de7511d9d29f2ef5f4480f484951942990a2f3ae8f0b7e60bcb31db76d8ead54dc6ff2940\",\"name\":\"finalhandler\",\"version\":\"2.1.1\"},\"find-my-way-9.8.0.tgz\":{\"integrity\":\"JtyUgATO7qxRp2zKhrmWof74Mqxc1ikbwpwMY97p8ipuTj2QtreA4gK2JNAF6SOqqHnYYkwMUvsgQVi2AJxIyw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"26dc948004ceeeac51a76cca86b996a1fef832ac5cd6291bc29c0c63dee9f22a6e4e3d90b6b780e202b624d005e923aaa879d8624c0c52fb204158b6009c48cb\",\"name\":\"find-my-way\",\"version\":\"9.8.0\"},\"find-up-3.0.0.tgz\":{\"integrity\":\"1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d720fa4662c8d5705fc6e82f391c25724e9fef9b582fe891d23ab0b0eacec4c672198a94b83849d25e005dd3b5897fc54ecf5c040304935816484c759126f296\",\"name\":\"find-up\",\"version\":\"3.0.0\"},\"form-data-4.0.6.tgz\":{\"integrity\":\"vKatAh4SlVfgbv+YtmhiRjhEMJsYpsG1Y2rMQtR+SVSbytsSD1YGzDIcrAJmdFec88u/+VoGmxnl+80gL1tRCQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"bca6ad021e129557e06eff98b66862463844309b18a6c1b5636acc42d47e49549bcadb120f5606cc321cac026674579cf3cbbff95a069b19e5fbcd202f5b5109\",\"name\":\"form-data\",\"version\":\"4.0.6\"},\"formdata-polyfill-4.0.10.tgz\":{\"integrity\":\"buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6ee7b01f332f60bdbd8dd7904d520b79c49a64a9edfd12568e8642179396eb467aeff1a648b06438533baa1d4f237cc536d25b6992f9790bb5bcb7daccec23e2\",\"name\":\"formdata-polyfill\",\"version\":\"4.0.10\"},\"forwarded-0.2.0.tgz\":{\"integrity\":\"buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6ee446d1fa41b511d24c238049eea10f6e7cb44b9b16844b6f864d03a3713151cdc3680e7301e8f70c9a6e5ccccce039cfdc40f4bd4a36393f36de8c4fd698a3\",\"name\":\"forwarded\",\"version\":\"0.2.0\"},\"fresh-2.0.0.tgz\":{\"integrity\":\"Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"471fd6c9c67ad0739aa8b2808ba70744a288ef3c566c9df53219ed9adc0ca1a4de17b5c51fd861069f2f21368c89d7e58d143a7985822a46932beca45491cfd8\",\"name\":\"fresh\",\"version\":\"2.0.0\"},\"fs-extra-10.1.0.tgz\":{\"integrity\":\"oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a115c0a6ae78113463e1e3221731a71d61b2fb3a39adab9d8eec4dd1bf07eecfd1536a16d16becc7d3b400244dfe446af44f15bbf45eb24181e68de38be1731d\",\"name\":\"fs-extra\",\"version\":\"10.1.0\"},\"fs-extra-11.3.1.tgz\":{\"integrity\":\"eXvGGwZ5CL17ZSwHWd3bbgk7UUpF6IFHtP57NYYakPvHOs8GDgDe5KJI36jIJzDkJ6eJjuzRA8eBQb6SkKue0g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"797bc61b067908bd7b652c0759dddb6e093b514a45e88147b4fe7b35861a90fbc73acf060e00dee4a248dfa8c82730e427a7898eecd103c78141be9290ab9ed2\",\"name\":\"fs-extra\",\"version\":\"11.3.1\"},\"fs-extra-11.4.0.tgz\":{\"integrity\":\"EQsFzMUJkCKGr1ePqlYADkIUmHW1s3ZXr5Yqy6wbGrfUCphpl2maM/kyOIRA2HpP3AaFQTZXD4ldjek+nccddA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"110b05ccc509902286af578faa56000e42149875b5b37657af962acbac1b1ab7d40a986997699a33f932388440d87a4fdc06854136570f895d8de93e9dc71d74\",\"name\":\"fs-extra\",\"version\":\"11.4.0\"},\"fs-extra-7.0.1.tgz\":{\"integrity\":\"YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6090da0896449c199c6f0d777ef74033d03034e2703b3ac4e29a8ca81ab99c5884a9752a1f094ae01fb7a54c3a24dbdf48fb57d39c451ed632ff59e2d357860b\",\"name\":\"fs-extra\",\"version\":\"7.0.1\"},\"fs-extra-8.1.0.tgz\":{\"integrity\":\"yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ca1950800ea69ce25428eb11505b2025d402be42a1733f2d9591b91c141f45e619cb8e8ec0b718f9989ad26b5d1ec3a8f72fe13fe0b130dd1353d431a0eb46e2\",\"name\":\"fs-extra\",\"version\":\"8.1.0\"},\"fs-extra-9.1.0.tgz\":{\"integrity\":\"hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"85c8376667a94b7d3fec1485a91be8a370ce310bbb223ab13b99c20edfb333d5d68dbdf75a0ef388d4fe42fa9bb9cdfe816a733b4d89b9b5729361b866fa3539\",\"name\":\"fs-extra\",\"version\":\"9.1.0\"},\"fs.realpath-1.0.0.tgz\":{\"integrity\":\"OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"38ed291f694ae9ad2166701d6aee48b731cf23aa5496f23b8cc567c54411b70e28c05db093c94e49a6ed1830933f81a0ae0d8c6c69d63bd5fc2b5b78f9f18c0f\",\"name\":\"fs.realpath\",\"version\":\"1.0.0\"},\"fsevents-2.3.2.tgz\":{\"integrity\":\"xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c62a8c411e3101e1d3b81f6e5a6f9f1517083a02813223813fe7978b24fb8ec8150aad5b915ca0b74d28012a3007b11db6938769a3e02adf35d8ff5a6fe0c328\",\"name\":\"fsevents\",\"version\":\"2.3.2\"},\"fsevents-2.3.3.tgz\":{\"integrity\":\"5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e71a037d7f9f2fb7da0139da82658fa5b16dc21fd1efb5a630caaa1c64bae42defbc1d181eb805f81d58999df8e35b4c8f99fade4d36d765cda09c339617df43\",\"name\":\"fsevents\",\"version\":\"2.3.3\"},\"function-bind-1.1.2.tgz\":{\"integrity\":\"7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ed71cdc47eea5fdc46e66230c6486e993a31fcc21135c3a00ebc56b0cb76a40af6dd61e9e8cad194dec50521690a9afea153b417be38894811f369c931f1b648\",\"name\":\"function-bind\",\"version\":\"1.1.2\"},\"fuzzysort-3.1.0.tgz\":{\"integrity\":\"sR9BNCjBg6LNgwvxlBd0sBABvQitkLzoVY9MYYROQVX/FvfJ4Mai9LsGhDgd8qYdds0bY77VzYd5iuB+v5rwQQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b11f413428c183a2cd830bf1941774b01001bd08ad90bce8558f4c61844e4155ff16f7c9e0c6a2f4bb0684381df2a61d76cd1b63bed5cd87798ae07ebf9af041\",\"name\":\"fuzzysort\",\"version\":\"3.1.0\"},\"gensync-1.0.0-beta.2.tgz\":{\"integrity\":\"3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"de137b35ab2462f3032d0639e609d6dcd43e99eb0401ea53aa583e5446e3ef3cea10c055361cdc19861ea85a3f4e5633e9e42215ca751dcb0264efa71a04bcce\",\"name\":\"gensync\",\"version\":\"1.0.0-beta.2\"},\"get-caller-file-2.0.5.tgz\":{\"integrity\":\"DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0f214fdc133fdd81d340e0942ffc343991d1d25a4a786af1a2d70759ca8d11d9e5b6a1705d57e110143de1e228df801f429a34ac6922e1cc8889fb58d3a87616\",\"name\":\"get-caller-file\",\"version\":\"2.0.5\"},\"get-east-asian-width-1.6.0.tgz\":{\"integrity\":\"QRbvDIbx6YklUe6RxeTeleMR0yv3cYH6PsPZHcnVn7xv7zO1BHN8r0XETu8n6Ye3Q+ahtSarc3WgtNWmehIBfA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4116ef0c86f1e9892551ee91c5e4de95e311d32bf77181fa3ec3d91dc9d59fbc6fef33b504737caf45c44eef27e987b743e6a1b526ab7375a0b4d5a67a12017c\",\"name\":\"get-east-asian-width\",\"version\":\"1.6.0\"},\"get-intrinsic-1.3.0.tgz\":{\"integrity\":\"9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f5f4a349aa2cfdf448548a7ec5226513a95fc21112ecb36d29a08121a987b23af69dad418800493e8d263a38f3f062435116ab9823c6a9a89583999f8dbf7c09\",\"name\":\"get-intrinsic\",\"version\":\"1.3.0\"},\"get-nonce-1.0.1.tgz\":{\"integrity\":\"FJhYRoDaiatfEkUK8HKlicmu/3SGFD51q3itKDGoSTysQJBnfOcxU5GxnhE1E6soB76MbT0MBtnKJuXyAx+96Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1498584680da89ab5f12450af072a589c9aeff7486143e75ab78ad2831a8493cac4090677ce7315391b19e113513ab2807be8c6d3d0c06d9ca26e5f2031fbde9\",\"name\":\"get-nonce\",\"version\":\"1.0.1\"},\"get-own-enumerable-keys-1.0.0.tgz\":{\"integrity\":\"PKsK2FSrQCyxcGHsGrLDcK0lx+0Ke+6e8KFFozA9/fIQLhQzPaRvJFdcz7+Axg3jUH/Mq+NI4xa5u/UT2tQskA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3cab0ad854ab402cb17061ec1ab2c370ad25c7ed0a7bee9ef0a145a3303dfdf2102e14333da46f24575ccfbf80c60de3507fccabe348e316b9bbf513dad42c90\",\"name\":\"get-own-enumerable-keys\",\"version\":\"1.0.0\"},\"get-proto-1.0.1.tgz\":{\"integrity\":\"sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b1349f063a17069f3d26f20a21e7eac3b53608279bb1cef892263a6b0886a202ada1219b823604fc6ffe97db05dcc5853cd73d21ca0e0b83837ca1dfc459a9d2\",\"name\":\"get-proto\",\"version\":\"1.0.1\"},\"get-stdin-10.0.0.tgz\":{\"integrity\":\"eWSePJ4zXFdqz+/Lyfopob4rIcoF/U2XfE8nJc7iZV6lnebWc9k7DoQQpX+2a9jc0AOvBsXvbe5YkjXl/MHbpg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"79649e3c9e335c576acfefcbc9fa29a1be2b21ca05fd4d977c4f2725cee2655ea59de6d673d93b0e8410a57fb66bd8dcd003af06c5ef6dee589235e5fcc1dba6\",\"name\":\"get-stdin\",\"version\":\"10.0.0\"},\"get-stream-5.2.0.tgz\":{\"integrity\":\"nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9c117e175ac06550aefe9eeb8f3800f986f895f617ae997b6ba56626b53cc05f48d422af3ff4303cd6479ce9706d3918e9dbed148cc5312c905db2e84d03d1a4\",\"name\":\"get-stream\",\"version\":\"5.2.0\"},\"get-stream-6.0.1.tgz\":{\"integrity\":\"ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b6ce968beda3de3423aa2ef4c3902537c0c59e44b00be32a9b113374400b076a976585775ff6f50937e03cb18934c7805b174f7d4f053b59acdcd51f68708f62\",\"name\":\"get-stream\",\"version\":\"6.0.1\"},\"get-stream-9.0.1.tgz\":{\"integrity\":\"kVCxPF3vQM/N0B1PmoqVUqgHP+EeVjmZSQn+1oCRPxd2P21P2F19lIgbR3HBosbB1PUhOAoctJnfEn2GbN2eZA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9150b13c5def40cfcdd01d4f9a8a9552a8073fe11e5639994909fed680913f17763f6d4fd85d7d94881b4771c1a2c6c1d4f521380a1cb499df127d866cdd9e64\",\"name\":\"get-stream\",\"version\":\"9.0.1\"},\"glob-13.0.6.tgz\":{\"integrity\":\"Wjlyrolmm8uDpm/ogGyXZXb1Z+Ca2B8NbJwqBVg0axK9GbBeoS7yGV6vjXnYdGm6X53iehEuxxbyiKp8QmN4Vw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5a3972ae89669bcb83a66fe8806c976576f567e09ad81f0d6c9c2a0558346b12bd19b05ea12ef2195eaf8d79d87469ba5f9de27a112ec716f288aa7c42637857\",\"name\":\"glob\",\"version\":\"13.0.6\"},\"glob-7.2.3.tgz\":{\"integrity\":\"nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9c5474ccba54d9809a471c28089bcbe94bc21f6245c85548bf04cbb087f6d40b8794cb240358614dd93e2e5609b4e958b7dbfa76fb330f604646a04bfa240af5\",\"name\":\"glob\",\"version\":\"7.2.3\"},\"glob-parent-5.1.2.tgz\":{\"integrity\":\"AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"00e22049009ea62258c0fdc04671b1fb95674eed870587736c63f8e5e2f0d6faf7cc1def64b7b279dd6c0bd8676dc39cf7f4ab33233944f42b906cf8692f59a3\",\"name\":\"glob-parent\",\"version\":\"5.1.2\"},\"global-agent-3.0.0.tgz\":{\"integrity\":\"PT6XReJ+D07JvGoxQMkT6qji/jVNfX/h364XHZOWeRzy64sSFr+xJ5OX7LI3b4MPQzdL4H8Y8M0xzPpsVMwA8Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3d3e9745e27e0f4ec9bc6a3140c913eaa8e2fe354d7d7fe1dfae171d9396791cf2eb8b1216bfb1279397ecb2376f830f43374be07f18f0cd31ccfa6c54cc00f1\",\"name\":\"global-agent\",\"version\":\"3.0.0\"},\"globalthis-1.0.4.tgz\":{\"integrity\":\"DpLKbNU4WylpxJykQujfCcwYWiV/Jhm50Goo0wrVILAv5jOr9d+H+UR3PhSCD2rCCEIg0uc+G+muBTwD54JhDQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0e92ca6cd5385b2969c49ca442e8df09cc185a257f2619b9d06a28d30ad520b02fe633abf5df87f944773e14820f6ac2084220d2e73e1be9ae053c03e782610d\",\"name\":\"globalthis\",\"version\":\"1.0.4\"},\"gopd-1.2.0.tgz\":{\"integrity\":\"ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"65429187afe4505a0089302d4d83d9277870f70371c7e04804e8a39e51bd3e7ac9b027128ecd70cb20fabc9a5a62d827cc3aca6114aa7f738ee917daf77c6c46\",\"name\":\"gopd\",\"version\":\"1.2.0\"},\"got-11.8.6.tgz\":{\"integrity\":\"6tfZ91bOr7bOXnK7PRDCGBLa1H4U080YHNaAQ2KsMGlLEzRbk44nsZF2E1IeRc3vtJHPVbKCYgdFbaGO2ljd8g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ead7d9f756ceafb6ce5e72bb3d10c21812dad47e14d3cd181cd6804362ac30694b13345b938e27b1917613521e45cdefb491cf55b2826207456da18eda58ddf2\",\"name\":\"got\",\"version\":\"11.8.6\"},\"graceful-fs-4.2.11.tgz\":{\"integrity\":\"RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"45b279fe398570d342703579a3d7939c12c9fc7b33595d0fef76dcf857f89d2feb263f98692e881b288e2f45680585fe9755ab97793ade1fcaac7fa7849d17bd\",\"name\":\"graceful-fs\",\"version\":\"4.2.11\"},\"has-flag-4.0.0.tgz\":{\"integrity\":\"EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1329094ff4352a34d672da698080207d23b4b4a56e6548e180caf5ee4a93ba6325e807efdc421295e53ba99533a170c54c01d30c2e0d3a81bf67153712f94c3d\",\"name\":\"has-flag\",\"version\":\"4.0.0\"},\"has-property-descriptors-1.0.2.tgz\":{\"integrity\":\"55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e7924d2ae216fafab829ed418ce4e333661cb5022f093ec61731f099f64f1a8e709eb82489dd1842d9c095e152aae9999b86b3de7d814be7ab6f2e62a49760ae\",\"name\":\"has-property-descriptors\",\"version\":\"1.0.2\"},\"has-symbols-1.1.0.tgz\":{\"integrity\":\"1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d5c0cd77027625aa2199bdec8383a629a301c2e0b8f2c6278b91d4c360efb02f0b8c64cb2bd87e79bd57e91cae3877b8853d142c25baf22a26863528294aa53d\",\"name\":\"has-symbols\",\"version\":\"1.1.0\"},\"has-tostringtag-1.0.2.tgz\":{\"integrity\":\"NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"36a00307c5633c52ccd95d15bc751ec30c2cc3465605a21d828fa2787b4ade16ac2f3e2a78246361ca9f07a010ac182044aa69285f0be76fd5a9d56c3b8ec397\",\"name\":\"has-tostringtag\",\"version\":\"1.0.2\"},\"hasown-2.0.4.tgz\":{\"integrity\":\"T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4f651b7db044177db089ea5722c3254d6f7e743602eb0321fedfef600e2db8e30aa96cff9f7bebd4d152c508b23fece4da65eca0c03f8bfeea57a2cabadd6dd4\",\"name\":\"hasown\",\"version\":\"2.0.4\"},\"help-me-5.0.0.tgz\":{\"integrity\":\"7xgomUX6ADmcYzFik0HzAxh/73YlKR9bmFzf51CZwR+b6YtzU2m0u49hQCqV6SvlqIqsaxovfwdvbnsw3b/zpg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ef18289945fa00399c6331629341f303187fef7625291f5b985cdfe75099c11f9be98b735369b4bb8f61402a95e92be5a88aac6b1a2f7f076f6e7b30ddbff3a6\",\"name\":\"help-me\",\"version\":\"5.0.0\"},\"hono-4.13.2.tgz\":{\"integrity\":\"JydRilDRkYBQMt9qR9U92mXxmbGqsqSn/IKOrh4e7/gEbn+0zSr8igTu0obwJoNGN4sez28DIql7FBHWydoJpA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2727518a50d191805032df6a47d53dda65f199b1aab2a4a7fc828eae1e1eeff8046e7fb4cd2afc8a04eed286f0268346378b1ecf6f0322a97b1411d6c9da09a4\",\"name\":\"hono\",\"version\":\"4.13.2\"},\"hosted-git-info-4.1.0.tgz\":{\"integrity\":\"kyCuEOWjJqZuDbRHzL8V93NzQhwIB71oFWSyzVo+KPZI+pnQPPxucdkrOZvkLRnrf5URsQM+IJ09Dw29cRALIA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9320ae10e5a326a66e0db447ccbf15f77373421c0807bd681564b2cd5a3e28f648fa99d03cfc6e71d92b399be42d19eb7f9511b1033e209d3d0f0dbd71100b20\",\"name\":\"hosted-git-info\",\"version\":\"4.1.0\"},\"html-encoding-sniffer-6.0.0.tgz\":{\"integrity\":\"CV9TW3Y3f8/wT0BRFc1/KAVQ3TUHiXmaAb6VW9vtiMFf7SLoMd1PdAc4W3KFOFETBJUb90KatHqlsZMWV+R9Gg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"095f535b76377fcff04f405115cd7f280550dd350789799a01be955bdbed88c15fed22e831dd4f7407385b728538511304951bf7429ab47aa5b1931657e47d1a\",\"name\":\"html-encoding-sniffer\",\"version\":\"6.0.0\"},\"html-escaper-2.0.2.tgz\":{\"integrity\":\"H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1f688cb5dd08e0cb7979889aa517480e3a7e5f37a55d0d2d144e094bb605c057af5d73263a9f66c8dad4bc28340fac2cf22aa444f05f28781bc228354a694b7e\",\"name\":\"html-escaper\",\"version\":\"2.0.2\"},\"html-parse-stringify-4.0.1.tgz\":{\"integrity\":\"0zHsZJrK7S3K2aucXWL6ycoYJ/iNtIcFHC/nYQgFklPtrv5LpJctIiSCroWZWeuoXvuyFdzp6KzjJQ+OT5MfFw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d331ec649acaed2dcad9ab9c5d62fac9ca1827f88db487051c2fe76108059253edaefe4ba4972d222482ae859959eba85efbb215dce9e8ace3250f8e4f931f17\",\"name\":\"html-parse-stringify\",\"version\":\"4.0.1\"},\"http-cache-semantics-4.2.0.tgz\":{\"integrity\":\"dTxcvPXqPvXBQpq5dUr6mEMJX4oIEFv6bwom3FDwKRDsuIjjJGANqhBuoAn9c1RQJIdAKav33ED65E2ys+87QQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"753c5cbcf5ea3ef5c1429ab9754afa9843095f8a08105bfa6f0a26dc50f02910ecb888e324600daa106ea009fd73545024874029abf7dc40fae44db2b3ef3b41\",\"name\":\"http-cache-semantics\",\"version\":\"4.2.0\"},\"http-errors-2.0.1.tgz\":{\"integrity\":\"4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e056d17405fe6d2766a3801416e4b458d88fcfc36016dfabf138603569a5ae3423b7543b651f7ecd395c7b6f39f71e0a497af022c69e4ea0e82909ad3fca4b99\",\"name\":\"http-errors\",\"version\":\"2.0.1\"},\"http-proxy-agent-7.0.2.tgz\":{\"integrity\":\"T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4f58240226180d6631dd5e419b2bbb1dc7dcbcbee652b4d688ceb239f6b73c8a6156227f8053dbbe2750faf7aa48e1dc8bf3f105c0da6de50d0b3a4e3832598a\",\"name\":\"http-proxy-agent\",\"version\":\"7.0.2\"},\"http2-wrapper-1.0.3.tgz\":{\"integrity\":\"V+23sDMr12Wnz7iTcDeJr3O6AIxlnvT/bmaAAAP/Xda35C90p9599p0F1eHR/N1KILWSoWVAiOMFjBBXaXSMxg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"57edb7b0332bd765a7cfb893703789af73ba008c659ef4ff6e66800003ff5dd6b7e42f74a7de7df69d05d5e1d1fcdd4a20b592a1654088e3058c105769748cc6\",\"name\":\"http2-wrapper\",\"version\":\"1.0.3\"},\"https-proxy-agent-7.0.6.tgz\":{\"integrity\":\"vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"bcaf4fe7f8947dd97de4023e255c94b88715b5de287efb6b3abdc736d336cb10bd6e731b11da77c74d4e8503678dbf082588b7f159531379815f071fbf2c2e4b\",\"name\":\"https-proxy-agent\",\"version\":\"7.0.6\"},\"human-signals-2.1.0.tgz\":{\"integrity\":\"B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"07814567aabf4f68e1864b2091b116dc706f5887c35bce6c9e44206b0b74ed2ec9e505d393a064355fb4c80799acce50a4c01d625a1c1a89639f4b09fd642417\",\"name\":\"human-signals\",\"version\":\"2.1.0\"},\"human-signals-8.0.1.tgz\":{\"integrity\":\"eKCa6bwnJhvxj14kZk5NCPc6Hb6BdsU9DZcOnmQKSnO1VKrfV0zCvtttPZUsBvjmNDn8rpcJfpwSYnHBjc95MQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"78a09ae9bc27261bf18f5e24664e4d08f73a1dbe8176c53d0d970e9e640a4a73b554aadf574cc2bedb6d3d952c06f8e63439fcae97097e9c126271c18dcf7931\",\"name\":\"human-signals\",\"version\":\"8.0.1\"},\"i18next-26.3.6.tgz\":{\"integrity\":\"Bu5Z2nAXgfVyM8xvW3jk9EKRIuX37PudsrBViThNFx7CR7aaYTpP01cxNB/E4c4UUzTDiAZRstEhsRfPOL/8xA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"06ee59da701781f57233cc6f5b78e4f4429122e5f7ecfb9db2b05589384d171ec247b69a613a4fd35731341fc4e1ce145334c3880651b2d121b117cf38bffcc4\",\"name\":\"i18next\",\"version\":\"26.3.6\"},\"iconv-lite-0.7.3.tgz\":{\"integrity\":\"IKXpvIzjnC9XTAUbVBcMfGS0EPaIXtW6v+zr+RRp+hqULEpo0owZax6wyRwPOJbWbzjYspQwusTsfVr0ifh4uQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"20a5e9bc8ce39c2f574c051b54170c7c64b410f6885ed5babfecebf91469fa1a942c4a68d28c196b1eb0c91c0f3896d66f38d8b29430bac4ec7d5af489f878b9\",\"name\":\"iconv-lite\",\"version\":\"0.7.3\"},\"ignore-5.3.2.tgz\":{\"integrity\":\"hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"86c053354a904c3c245ad71d608da2d3a63f9d4044b0d10324a8d676280bbde832f240ee2404bcb91969924710a721172f467fa630f2e4706632344227682afa\",\"name\":\"ignore\",\"version\":\"5.3.2\"},\"immer-11.1.17.tgz\":{\"integrity\":\"8Vu44Y0MuMBlTQz/jQ8HEMYNq/bBqk87MnBwYR5mC8AthfhEXidZ5aT/oA/CUqboa8THKltnD9L3xyqhU/Sy1Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f15bb8e18d0cb8c0654d0cff8d0f0710c60dabf6c1aa4f3b327070611e660bc02d85f8445e2759e5a4ffa00fc252a6e86bc4c72a5b670fd2f7c72aa153f4b2d5\",\"name\":\"immer\",\"version\":\"11.1.17\"},\"import-fresh-3.3.1.tgz\":{\"integrity\":\"TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4d1dca7eb4d94d82cf07a8d48dfc7a305f56716ac72fdb2ee5339b2b866462005d58a3ce1684a8408744b93b91f36a66b711f6b29586f61e9eb707ebd692c1a9\",\"name\":\"import-fresh\",\"version\":\"3.3.1\"},\"indent-string-4.0.0.tgz\":{\"integrity\":\"EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"11d0c366ee00d8ec882bb2ebff6cc6fb0e6399bba4d435419c4c11110bc1ceca412640846d16bc1b153596085871a1890a745689b8c35e5abbefd5f5ff2e71c2\",\"name\":\"indent-string\",\"version\":\"4.0.0\"},\"inflight-1.0.6.tgz\":{\"integrity\":\"k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"93dd88fdbd3cab8c2f16c71708bbea7ec1c2ae3ac5ef2897b10b8856f544ecdf365b7f9aaa9cee51d05b7e159ccbf159477ff82207e532028b3acbcf0eb18224\",\"name\":\"inflight\",\"version\":\"1.0.6\"},\"inherits-2.0.4.tgz\":{\"integrity\":\"k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"93fbc6697e3f6256b75b3c8c0af4d039761e207bea38ab67a8176ecd31e9ce9419cc0b2428c859d8af849c189233dcc64a820578ca572b16b8758799210a9ec1\",\"name\":\"inherits\",\"version\":\"2.0.4\"},\"internmap-2.0.3.tgz\":{\"integrity\":\"5Hh7Y1wQbvY5ooGgPbDaL5iYLAPzMTUrjMulskHLH6wnv/A+1q5rgEaiuqEjB+oxGXIVZs1FF+R/KPN3ZSQYYg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e4787b635c106ef639a281a03db0da2f98982c03f331352b8ccba5b241cb1fac27bff03ed6ae6b8046a2baa12307ea3119721566cd4517e47f28f37765241862\",\"name\":\"internmap\",\"version\":\"2.0.3\"},\"ip-address-10.5.0.tgz\":{\"integrity\":\"R5SnVLJmgYYvf2F2ZgwSBnelz5G4q5AxIC277GDfUaNbrZKNANcBC7RHqYYePlszf4kBolVkJauG0ZjHHFh55g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4794a754b26681862f7f6176660c120677a5cf91b8ab9031202dbbec60df51a35bad928d00d7010bb447a9861e3e5b337f8901a2556425ab86d198c71c5879e6\",\"name\":\"ip-address\",\"version\":\"10.5.0\"},\"ipaddr.js-1.9.1.tgz\":{\"integrity\":\"0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d0a23feb4ef1a31493a07ec68cdd457d26cba14d3e6ed4e2723b1049642587f859ca437c2a998c7fbb98c0f5b747e6a467a47fc35f199574870585e26143cede\",\"name\":\"ipaddr.js\",\"version\":\"1.9.1\"},\"ipaddr.js-2.5.0.tgz\":{\"integrity\":\"aq+t5NAc+cS6rZQQVWC2x98CPqGtKKTMDd4Gaodv0wShnItdKg/51djkGJ1hqH+Oy0ivDftCbSLCQob8zso01w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6aafade4d01cf9c4baad94105560b6c7df023ea1ad28a4cc0dde066a876fd304a19c8b5d2a0ff9d5d8e4189d61a87f8ecb48af0dfb426d22c24286fcceca34d7\",\"name\":\"ipaddr.js\",\"version\":\"2.5.0\"},\"is-arrayish-0.2.1.tgz\":{\"integrity\":\"zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"cf3d3a4bcb74a33a035cc1beb9b7b6eb37824cd5dc2883c96498bc841ac5e227422e6b38086f50b4aeea065d5ba22e4e0f31698ecc1be493e61c26cca63698ce\",\"name\":\"is-arrayish\",\"version\":\"0.2.1\"},\"is-docker-2.2.1.tgz\":{\"integrity\":\"F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"17e8b604ab05ac7eba89a505734c280fcb0bcbc81eb64c13c2d3818efb39e82c780a024378a41ea9fcfcc0062249bf093a9ad68471f9a7becf6e6602bef52e5d\",\"name\":\"is-docker\",\"version\":\"2.2.1\"},\"is-docker-3.0.0.tgz\":{\"integrity\":\"eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7a58dc8040e5127b3fec05c5a2c0792bfda708ce0fec540f90673f0d62f2e6b985116bd96b21ab8a4d5df7f4086399c9e1ff58b15bc1900ea42691e7f6b21275\",\"name\":\"is-docker\",\"version\":\"3.0.0\"},\"is-extglob-2.1.1.tgz\":{\"integrity\":\"SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"49b29b00d90deb4dd58b88c466fe3d2de549327e321b0b1bcd9c28ac4a32122badb0dde725875b3b7eb37e1189e90103a4e6481640ed9eae494719af9778eca1\",\"name\":\"is-extglob\",\"version\":\"2.1.1\"},\"is-fullwidth-code-point-3.0.0.tgz\":{\"integrity\":\"zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"cf29a6e7ebbeb02b125b20fda8d69e8d5dc316f84229c94a762cd868952e1c0f3744b8dbee74ae1a775d0871afd2193e298ec130096c59e2b851e83a115e9742\",\"name\":\"is-fullwidth-code-point\",\"version\":\"3.0.0\"},\"is-glob-4.0.3.tgz\":{\"integrity\":\"xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c5e9526b21c7dfa66013b6568658bba56df884d6cd97c3a3bf92959a4243e2105d0f7b61f137e4f6f61ab0b33e99758e6611648197f184b4a7af046be1e9524a\",\"name\":\"is-glob\",\"version\":\"4.0.3\"},\"is-in-ssh-1.0.0.tgz\":{\"integrity\":\"jYa6Q9rH90kR1vKB6NM7qqd1mge3Fx4Dhw5TVlK1MUBqhEOuCagrEHMevNuCcbECmXZ0ThXkRm+Ymr51HwEPAw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8d86ba43dac7f74911d6f281e8d33baaa7759a07b7171e03870e535652b531406a8443ae09a82b10731ebcdb8271b1029976744e15e4466f989abe751f010f03\",\"name\":\"is-in-ssh\",\"version\":\"1.0.0\"},\"is-inside-container-1.0.0.tgz\":{\"integrity\":\"KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"28860b08226085f1d9c6a8d8044eeb132d0e06e4dde710874bbb47560bc22e4c7b4ad2286b1c0d5b784200b80452315f79193e306fd0c66a7fbed113105ded44\",\"name\":\"is-inside-container\",\"version\":\"1.0.0\"},\"is-interactive-2.0.0.tgz\":{\"integrity\":\"qP1vozQRI+BMOPcjFzrjXuQvdak2pHNUMZoeG2eRbiSqyvbEf/wQtEOTOX1guk6E3t36RkaqiSt8A/6YElNxLQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a8fd6fa3341123e04c38f723173ae35ee42f75a936a47354319a1e1b67916e24aacaf6c47ffc10b44393397d60ba4e84deddfa4646aa892b7c03fe981253712d\",\"name\":\"is-interactive\",\"version\":\"2.0.0\"},\"is-number-7.0.0.tgz\":{\"integrity\":\"41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e350a27e483a7bc4f2952a5db53a5e2d532abd20445734edb47bc4443ef8d7ea6767c00dbf4d34e0c44be3740a3c394af5c1af369e8d6566540656c65d8c719e\",\"name\":\"is-number\",\"version\":\"7.0.0\"},\"is-obj-2.0.0.tgz\":{\"integrity\":\"drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"76ba831b771b733c7110946839770e8ed769d49fe5ca9d66367d316b39d1b3cfa6b8186041cae76eca68c795f97cec341e73276df0f3be710c12da83109128f3\",\"name\":\"is-obj\",\"version\":\"2.0.0\"},\"is-obj-3.0.0.tgz\":{\"integrity\":\"IlsXEHOjtKhpN8r/tRFj2nDyTmHvcfNeu/nrRIcXE17ROeatXchkojffa1SpdqW4cr/Fj6QkEf/Gn4zf6KKvEQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"225b171073a3b4a86937caffb51163da70f24e61ef71f35ebbf9eb448717135ed139e6ad5dc864a237df6b54a976a5b872bfc58fa42411ffc69f8cdfe8a2af11\",\"name\":\"is-obj\",\"version\":\"3.0.0\"},\"is-plain-obj-4.1.0.tgz\":{\"integrity\":\"+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f8f822faf32e50d909c84c62301b792251683322a7af9ce127852ca73e7c58e841179428219905c8d1c86c102d1f0cd502093946d9dd54db0344deb5fe6983aa\",\"name\":\"is-plain-obj\",\"version\":\"4.1.0\"},\"is-potential-custom-element-name-1.0.1.tgz\":{\"integrity\":\"bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6c261e440dab5626ca65dfacdbadb98069c617fb7b0d2a83b3874fec2acb0359bb8ca5b3ea9a6cd0ba582c937c43ae07b663ca27586b3779f33cd28510a39489\",\"name\":\"is-potential-custom-element-name\",\"version\":\"1.0.1\"},\"is-promise-4.0.0.tgz\":{\"integrity\":\"hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"86fa6823a928ae124c9de8f6f3975283a9eed7e7babb1b3bcc6dc16009b96f2a83b2024d5b0c7333acfa8998808104784c9df42660533b0a99530dd69721f701\",\"name\":\"is-promise\",\"version\":\"4.0.0\"},\"is-regexp-3.1.0.tgz\":{\"integrity\":\"rbku49cWloU5bSMI+zaRaXdQHXnthP6DZ/vLnfdSKyL4zUzuWnomtOEiZZOd+ioQ+avFo/qau3KPTc7Fjy1uPA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"adb92ee3d7169685396d2308fb36916977501d79ed84fe8367fbcb9df7522b22f8cd4cee5a7a26b4e12265939dfa2a10f9abc5a3fa9abb728f4dcec58f2d6e3c\",\"name\":\"is-regexp\",\"version\":\"3.1.0\"},\"is-stream-2.0.1.tgz\":{\"integrity\":\"hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"845a222624e5eb79e7fa4b2d1c606d7b05922a740ba726f5e7928785e035977f6ebed3bd9d6228a75a77b9da8f71477fc5b17554b30ee27ece23aa7b45b9e00e\",\"name\":\"is-stream\",\"version\":\"2.0.1\"},\"is-stream-4.0.1.tgz\":{\"integrity\":\"Dnz92NInDqYckGEUJv689RbRiTSEHCQ7wOVeALbkOz999YpqT46yMRIGtSNl2iCL1waAZSx40+h59NV/EwzV/A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0e7cfdd8d2270ea61c90611426febcf516d18934841c243bc0e55e00b6e43b3f7df58a6a4f8eb2311206b52365da208bd70680652c78d3e879f4d57f130cd5fc\",\"name\":\"is-stream\",\"version\":\"4.0.1\"},\"is-unicode-supported-1.3.0.tgz\":{\"integrity\":\"43r2mRvz+8JRIKnWJ+3j8JtjRKZ6GmjzfaE/qiBJnikNnYv/6bagRJ1kUhNk8R5EX/GkobD+r+sfxCPJsiKBLQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e37af6991bf3fbc25120a9d627ede3f09b6344a67a1a68f37da13faa20499e290d9d8bffe9b6a0449d64521364f11e445ff1a4a1b0feafeb1fc423c9b222812d\",\"name\":\"is-unicode-supported\",\"version\":\"1.3.0\"},\"is-unicode-supported-2.1.0.tgz\":{\"integrity\":\"mE00Gnza5EEB3Ds0HfMyllZzbBrmLOX3vfWoj9A9PEnTfratQ/BcaJOuMhnkhjXvb2+FkY3VuHqtAGpTPmglFQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"984d341a7cdae44101dc3b341df3329656736c1ae62ce5f7bdf5a88fd03d3c49d37eb6ad43f05c6893ae3219e48635ef6f6f85918dd5b87aad006a533e682515\",\"name\":\"is-unicode-supported\",\"version\":\"2.1.0\"},\"is-wsl-2.2.0.tgz\":{\"integrity\":\"fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7cacc0adad2b18951407018180d90766e4e865c9fe4ed5c7a5e0a09a430930c631d6c40361a092ca32414826b69c7d431a6eecde7d68067a21a154c168decbc3\",\"name\":\"is-wsl\",\"version\":\"2.2.0\"},\"is-wsl-3.1.1.tgz\":{\"integrity\":\"e6rvdUCiQCAuumZslxRJWR/Doq4VpPR82kqclvcS0efgt430SlGIk05vdCN58+VrzgtIcfNODjozVielycD4Sw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7baaef7540a240202eba666c971449591fc3a2ae15a4f47cda4a9c96f712d1e7e0b78df44a5188934e6f742379f3e56bce0b4871f34e0e3a335627a5c9c0f84b\",\"name\":\"is-wsl\",\"version\":\"3.1.1\"},\"isarray-1.0.0.tgz\":{\"integrity\":\"VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"54b82121634ce842d0ce8ef3c26720d0d99357258a623bc878cf37ca3a74c110d39949eb33aefc7d06dc281a3a9f6089105d2cce81bfff2b60f932a56bcf402d\",\"name\":\"isarray\",\"version\":\"1.0.0\"},\"isbinaryfile-4.0.10.tgz\":{\"integrity\":\"iHrqe5shvBUcFbmZq9zOQHBoeOhZJu6RQGrDpBgenUm/Am+F3JM2MgQj+rK3Z601fzrL5gLZWtAPH2OBaSVcyw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"887aea7b9b21bc151c15b999abdcce40706878e85926ee91406ac3a4181e9d49bf026f85dc9336320423fab2b767ad357f3acbe602d95ad00f1f638169255ccb\",\"name\":\"isbinaryfile\",\"version\":\"4.0.10\"},\"isbinaryfile-5.0.7.tgz\":{\"integrity\":\"gnWD14Jh3FzS3CPhF0AxNOJ8CxqeblPTADzI38r0wt8ZyQl5edpy75myt08EG2oKvpyiqSqsx+Wkz9vtkbTqYQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"827583d78261dc5cd2dc23e117403134e27c0b1a9e6e53d3003cc8dfcaf4c2df19c9097979da72ef99b2b74f041b6a0abe9ca2a92aacc7e5a4cfdbed91b4ea61\",\"name\":\"isbinaryfile\",\"version\":\"5.0.7\"},\"isexe-2.0.0.tgz\":{\"integrity\":\"RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"447c4c2e9f659ca1c61d19e0f5016144231b600715a67ebdb2648672addfdfac638155564e18f8aaa2db4cb96aed2b23f01f9f210d44b8210623694ab3241e23\",\"name\":\"isexe\",\"version\":\"2.0.0\"},\"isexe-3.1.5.tgz\":{\"integrity\":\"6B3tLtFqtQS4ekarvLVMZ+X+VlvQekbe4taUkf/rhVO3d/h0M2rfARm/pXLcPEsjjMsFgrFgSrhQIxcSVrBz8w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e81ded2ed16ab504b87a46abbcb54c67e5fe565bd07a46dee2d69491ffeb8553b777f874336adf0119bfa572dc3c4b238ccb0582b1604ab85023171256b073f3\",\"name\":\"isexe\",\"version\":\"3.1.5\"},\"isexe-4.0.0.tgz\":{\"integrity\":\"FFUtZMpoZ8RqHS3XeXEmHWLA4thH+ZxCv2lOiPIn1Xc7CxrqhWzNSDzD+/chS/zbYezmiwWLdQC09JdQKmthOw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"14552d64ca6867c46a1d2dd77971261d62c0e2d847f99c42bf694e88f227d5773b0b1aea856ccd483cc3fbf7214bfcdb61ece68b058b7500b4f497502a6b613b\",\"name\":\"isexe\",\"version\":\"4.0.0\"},\"istanbul-lib-coverage-3.2.2.tgz\":{\"integrity\":\"O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3bc769b05fabd1657ff0c35129f9e6aed09686e2a3c6bab6c3e8e9cc12f95192938b62de5569d63a6591c4595eb0938d99cfb02c01af29064439a9e4a342c54e\",\"name\":\"istanbul-lib-coverage\",\"version\":\"3.2.2\"},\"istanbul-lib-report-3.0.1.tgz\":{\"integrity\":\"GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1827c4d66b6c1c63842c253c7bf67b616ce99b26ebc7ff9d4937cbaef63ca9199a63acd74ca5a7e964088da005c34ebd89c9ba19530d920bb437323888f65437\",\"name\":\"istanbul-lib-report\",\"version\":\"3.0.1\"},\"istanbul-reports-3.2.0.tgz\":{\"integrity\":\"HGYWWS/ehqTV3xN10i23tkPkpH46MLCIMFNCaaKNavAXTF1RkqxawEPtnjnGZ6XKSInBKkiOA5BKS+aZiY3AvA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1c6616592fde86a4d5df1375d22db7b643e4a47e3a30b08830534269a28d6af0174c5d5192ac5ac043ed9e39c667a5ca4889c12a488e03904a4be699898dc0bc\",\"name\":\"istanbul-reports\",\"version\":\"3.2.0\"},\"jake-10.9.4.tgz\":{\"integrity\":\"wpHYzhxiVQL+IV05BLE2Xn34zW1S223hvjtqk0+gsPrwd/8JNLXJgZZM/iPFsYc1xyphF+6M6EvdE5E9MBGkDA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c291d8ce1c625502fe215d3904b1365e7df8cd6d52db6de1be3b6a934fa0b0faf077ff0934b5c981964cfe23c5b18735c72a6117ee8ce84bdd13913d3011a40c\",\"name\":\"jake\",\"version\":\"10.9.4\"},\"jiti-2.7.0.tgz\":{\"integrity\":\"AC/7JofJvZGrrneWNaEnJeOLUx+JlGt7tNa0wZiRPT4MY1wmfKjt2+6O2p2uz2+skll8OZZmJMNqeke7kKbNgQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"002ffb2687c9bd91abae779635a12725e38b531f89946b7bb4d6b4c198913d3e0c635c267ca8eddbee8eda9daecf6fac92597c39966624c36a7a47bb90a6cd81\",\"name\":\"jiti\",\"version\":\"2.7.0\"},\"jose-6.2.9.tgz\":{\"integrity\":\"XrchZOFZUl/T3vTwRe8XK+cJrGtMF4th1ARnDfwbBXFKThGhlsxEE4Zu03AD/bjJSt/9jT/mxrOCkJWOg77aPA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5eb72164e159525fd3def4f045ef172be709ac6b4c178b61d404670dfc1b05714a4e11a196cc4413866ed37003fdb8c94adffd8d3fe6c6b38290958e83beda3c\",\"name\":\"jose\",\"version\":\"6.2.9\"},\"joycon-3.1.1.tgz\":{\"integrity\":\"34wB/Y7MW7bzjKRjUKTa46I2Z7eV62Rkhva+KkopW7Qvv/OSWBqvkSY7vusOPrNuZcUG3tApvdVgNB8POj3SPw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"df8c01fd8ecc5bb6f38ca46350a4dae3a23667b795eb646486f6be2a4a295bb42fbff392581aaf91263bbeeb0e3eb36e65c506ded029bdd560341f0f3a3dd23f\",\"name\":\"joycon\",\"version\":\"3.1.1\"},\"js-tokens-10.0.0.tgz\":{\"integrity\":\"lM/UBzQmfJRo9ABXbPWemivdCW8V2G8FHaHdypQaIy523snUjog0W71ayWXTjiR+ixeMyVHN2XcpnTd/liPg/Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"94cfd40734267c9468f400576cf59e9a2bdd096f15d86f051da1ddca941a232e76dec9d48e88345bbd5ac965d38e247e8b178cc951cdd977299d377f9623e0fd\",\"name\":\"js-tokens\",\"version\":\"10.0.0\"},\"js-tokens-4.0.0.tgz\":{\"integrity\":\"RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"45d2547e5704ddc5332a232a420b02bb4e853eef5474824ed1b7986cf84737893a6a9809b627dca02b53f5b7313a9601b690f690233a49bce0e026aeb16fcf29\",\"name\":\"js-tokens\",\"version\":\"4.0.0\"},\"js-yaml-4.3.1.tgz\":{\"integrity\":\"CY6crGq313MX8GkwvB7tzgp99vjQxY1++5y10/BKN/GUfHqWaOGQMNZkBvqSzsZKWk/ijwHlWzzkLulsGHhjWQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"098e9cac6ab7d77317f06930bc1eedce0a7df6f8d0c58d7efb9cb5d3f04a37f1947c7a9668e19030d66406fa92cec64a5a4fe28f01e55b3ce42ee96c18786359\",\"name\":\"js-yaml\",\"version\":\"4.3.1\"},\"js-yaml-5.3.0.tgz\":{\"integrity\":\"muutsYr+e2+d3rTgUGslq5rxbBlUy3cJ61IsHag2QNDQV+7zXWjkUpmALIajhrlLlrgRUiymj6U3zUr/TMK84Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9aebadb18afe7b6f9ddeb4e0506b25ab9af16c1954cb7709eb522c1da83640d0d057eef35d68e45299802c86a386b94b96b811522ca68fa537cd4aff4cc2bce1\",\"name\":\"js-yaml\",\"version\":\"5.3.0\"},\"jsdom-30.0.1.tgz\":{\"integrity\":\"52v7mUVUfNQVYYqE1lcdaymWL0njO7lTLUog6ZvW2U5KsbiLk/GnZlVJ+qx0xfNJZ6Gn+KSpPNE52vurbxZwrA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e76bfb9945547cd415618a84d6571d6b29962f49e33bb9532d4a20e99bd6d94e4ab1b88b93f1a7665549faac74c5f34967a1a7f8a4a93cd139dafbab6f1670ac\",\"name\":\"jsdom\",\"version\":\"30.0.1\"},\"jsesc-3.1.0.tgz\":{\"integrity\":\"/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"fec33774ed853b35e3290849ba8d10d7bdf07f628ea3cb7823cbc7cba945f69a14a7b6ca4f4fcd1c4f1f3d7db73f07e19f291faa70b6c51c4e9d5c395ee18868\",\"name\":\"jsesc\",\"version\":\"3.1.0\"},\"json-buffer-3.0.1.tgz\":{\"integrity\":\"4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e1b57905f4769aa7d04c99be579b4f3dd7fe669ba1888bd3b8007983c91cad7399a534ff430c15456072c17d68cebea512e3dd6c7c70689966f46ea6236b1f49\",\"name\":\"json-buffer\",\"version\":\"3.0.1\"},\"json-parse-even-better-errors-2.3.1.tgz\":{\"integrity\":\"xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c72170ca1ae8fc91287fa1a17b68b3d8d717a23dac96836c5abfd7b044432bfa223c27da36197938d7e9fa341d01945043420958dcc7f7321917b962f75921db\",\"name\":\"json-parse-even-better-errors\",\"version\":\"2.3.1\"},\"json-schema-ref-resolver-3.0.0.tgz\":{\"integrity\":\"hOrZIVL5jyYFjzk7+y7n5JDzGlU8rfWDuYyHwGa2WA8/pcmMHezp2xsVwxrebD/Q9t8Nc5DboieySDpCp4WG4A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"84ead92152f98f26058f393bfb2ee7e490f31a553cadf583b98c87c066b6580f3fa5c98c1dece9db1b15c31ade6c3fd0f6df0d7390dba227b2483a42a78586e0\",\"name\":\"json-schema-ref-resolver\",\"version\":\"3.0.0\"},\"json-schema-traverse-1.0.0.tgz\":{\"integrity\":\"NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"34cf3f3fd9f75e35e12199f594b86415a0024ce5114178d6855e0103f4673aff31be0aadaa9017f483b89914314b1d51968e2dab37aa6f4b0e96bb9a3b2dddba\",\"name\":\"json-schema-traverse\",\"version\":\"1.0.0\"},\"json-schema-typed-7.0.3.tgz\":{\"integrity\":\"7DE8mpG+/fVw+dTpjbxnx47TaMnDfOI1jwft9g1VybltZCduyRQPJPvc+zzKY9WPHxhPWczyFuYa6I8Mw4iU5A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ec313c9a91befdf570f9d4e98dbc67c78ed368c9c37ce2358f07edf60d55c9b96d64276ec9140f24fbdcfb3cca63d58f1f184f59ccf216e61ae88f0cc38894e4\",\"name\":\"json-schema-typed\",\"version\":\"7.0.3\"},\"json-schema-typed-8.0.2.tgz\":{\"integrity\":\"fQhoXdcvc3V28x7C7BMs4P5+kNlgUURe2jmUT1T//oBRMDrqy1QPelJimwZGo7Hg9VPV3EQV5Bnq4hbFy2vetA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7d08685dd72f737576f31ec2ec132ce0fe7e90d96051445eda39944f54fffe8051303aeacb540f7a52629b0646a3b1e0f553d5dc4415e419eae216c5cb6bdeb4\",\"name\":\"json-schema-typed\",\"version\":\"8.0.2\"},\"json-stringify-safe-5.0.1.tgz\":{\"integrity\":\"ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"642960e80698bda9af60413cd9ddc8c9ddef49222343ea1d823693cd1b8edeceeda0274529cce86f68b4cc287b244f245a7d7bcaf016854571bea1b051a96c44\",\"name\":\"json-stringify-safe\",\"version\":\"5.0.1\"},\"json5-2.2.3.tgz\":{\"integrity\":\"XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5e63967bb7b21d81f5e1c2dd54fa3283e18e1f7ad85fef8aa73af2949c125bdf2ddcd93e53c5ce97c15628e830b7375bf255c67facd8c035337873167f16acca\",\"name\":\"json5\",\"version\":\"2.2.3\"},\"jsonfile-4.0.0.tgz\":{\"integrity\":\"m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9ba175477cfc8e395fda29901d2d907b3e6c8ca590cdbbae86e27f14a605459bcf1373ee1dc48c559cdfb0b84654e91f776d286cbe5258405ec394a196ab8dc6\",\"name\":\"jsonfile\",\"version\":\"4.0.0\"},\"jsonfile-6.2.1.tgz\":{\"integrity\":\"zwOTdL3rFQ/lRdBnntKVOX6k5cKJwEc1HdilT71BWEu7J41gXIB2MRp+vxduPSwZJPWBxEzv4yH1wYLJGUHX4Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"cf039374bdeb150fe545d0679ed295397ea4e5c289c047351dd8a54fbd41584bbb278d605c8076311a7ebf176e3d2c1924f581c44cefe321f5c182c91941d7e1\",\"name\":\"jsonfile\",\"version\":\"6.2.1\"},\"keyv-4.5.4.tgz\":{\"integrity\":\"oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a3154790747f1097f608d5e75b144b5ba9a0ec9c82094706d03b441a62f672d528d4f3538a7d4f52297eafffb8af93295600bf7e7d648ecc7b9a34ae8caa88a7\",\"name\":\"keyv\",\"version\":\"4.5.4\"},\"kleur-3.0.3.tgz\":{\"integrity\":\"eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"793233955392511f89c5d0c57a911870132d67d42a75e7feae7cd675166e31b3b2c2ee6d3b6c3637baea8e800d67993dbf2c212fa06bd55463508813431e04f3\",\"name\":\"kleur\",\"version\":\"3.0.3\"},\"kleur-4.1.5.tgz\":{\"integrity\":\"o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a3e34efbc5ab462404138ffb9f044984dd475a9566266e75d690475313cbb69d015084b3941a653916129937250a726f42adad2aefec825df156991ced95ae41\",\"name\":\"kleur\",\"version\":\"4.1.5\"},\"lazy-val-1.0.5.tgz\":{\"integrity\":\"0/BnGCCfyUMkBpeDgWihanIAF9JmZhHBgUhEqzvf+adhNGLoP6TaiI5oF8oyb3I45P+PcnrqihSf01M0l0G5+Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d3f06718209fc943240697838168a16a720017d2666611c1814844ab3bdff9a7613462e83fa4da888e6817ca326f7238e4ff8f727aea8a149fd353349741b9f9\",\"name\":\"lazy-val\",\"version\":\"1.0.5\"},\"libsodium-0.8.4.tgz\":{\"integrity\":\"lMcYaRi0zcs7tarATsQUYC7rstliIXZuoq0c6zXSgNtSNtdvBgkSegjWhpMJAXzKX3SUSwIp7+zEsob+j3LuRw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"94c7186918b4cdcb3bb5aac04ec414602eebb2d96221766ea2ad1ceb35d280db5236d76f0609127a08d6869309017cca5f74944b0229efecc4b286fe8f72ee47\",\"name\":\"libsodium\",\"version\":\"0.8.4\"},\"libsodium-wrappers-0.8.4.tgz\":{\"integrity\":\"mu8aAWucZjTB5O/BtGXtW4e1agy7uHxNYG7zPthmmD1jU43LCDmSWZLN4JhflbdPXj3yDO4lxM1O9hLDgIOXDw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9aef1a016b9c6634c1e4efc1b465ed5b87b56a0cbbb87c4d606ef33ed866983d63538dcb0839925992cde0985f95b74f5e3df20cee25c4cd4ef612c38083970f\",\"name\":\"libsodium-wrappers\",\"version\":\"0.8.4\"},\"light-my-request-6.6.0.tgz\":{\"integrity\":\"CHYbu8RtboSIoVsHZ6Ye4cj4Aw/yg2oAFimlF7mNvfDV192LR7nDiKtSIfCuLT7KokPSTn/9kfVLm5OGN0A28A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"08761bbbc46d6e8488a15b0767a61ee1c8f8030ff2836a001629a517b98dbdf0d5d7dd8b47b9c388ab5221f0ae2d3ecaa243d24e7ffd91f54b9b9386374036f0\",\"name\":\"light-my-request\",\"version\":\"6.6.0\"},\"lightningcss-1.32.0.tgz\":{\"integrity\":\"NXYBzinNrblfraPGyrbPoD19C1h9lfI/1mzgWYvXUTe414Gz/X1FD2XBZSZM7rRTrMA8JL3OtAaGifrIKhQ5yQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"357601ce29cdadb95fada3c6cab6cfa03d7d0b587d95f23fd66ce0598bd75137b8d781b3fd7d450f65c165264ceeb453acc03c24bdceb4068689fac82a1439c9\",\"name\":\"lightningcss\",\"version\":\"1.32.0\"},\"lightningcss-1.33.0.tgz\":{\"integrity\":\"WkUDrojuJs0xkgGf2udWxa3yGBRxPtxUkB79i6aCZLRgc7PM8fZe9TosfPDcvEpQZbuFASnHYmRLBLUbmLOIIA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5a4503ae88ee26cd3192019fdae756c5adf21814713edc54901efd8ba68264b46073b3ccf1f65ef53a2c7cf0dcbc4a5065bb850129c762644b04b51b98b38820\",\"name\":\"lightningcss\",\"version\":\"1.33.0\"},\"lightningcss-android-arm64-1.32.0.tgz\":{\"integrity\":\"YK7/ClTt4kAK0vo6w3X+Pnm0D2cf2vPHbhOXdoNti1Ga0al1P4TBZhwjATvjNwLEBCnKvjJc2jQgHXH0NEwlAg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"60aeff0a54ede2400ad2fa3ac375fe3e79b40f671fdaf3c76e139776836d8b519ad1a9753f84c1661c23013be33702c40429cabe325cda34201d71f4344c2502\",\"name\":\"lightningcss-android-arm64\",\"version\":\"1.32.0\"},\"lightningcss-android-arm64-1.33.0.tgz\":{\"integrity\":\"gEpRTalKdosp4Bb8qWtc2iOgE5SeIHlpS1up9bFq2wAyYhl1UdTObYiHe98zEM9SQvSoqQZ1IQD0JNpg3Ml5pg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"804a514da94a768b29e016fca96b5cda23a013949e2079694b5ba9f5b16adb003262197551d4ce6d88877bdf3310cf5242f4a8a906752100f424da60dcc979a6\",\"name\":\"lightningcss-android-arm64\",\"version\":\"1.33.0\"},\"lightningcss-darwin-arm64-1.32.0.tgz\":{\"integrity\":\"RzeG9Ju5bag2Bv1/lwlVJvBE3q6TtXskdZLLCyfg5pt+HLz9BqlICO7LZM7VHNTTn/5PRhHFBSjk5lc4cmscPQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"473786f49bb96da83606fd7f97095526f044deae93b57b247592cb0b27e0e69b7e1cbcfd06a94808eecb64ced51cd4d39ffe4f4611c50528e4e65738726b1c3d\",\"name\":\"lightningcss-darwin-arm64\",\"version\":\"1.32.0\"},\"lightningcss-darwin-arm64-1.33.0.tgz\":{\"integrity\":\"Sciaz8eenNTKn9b3t7+xr0ipTp9YxKQY4npwQ3mrRuL0BAVHBLyZxofhaKBAVtzmtRZ/zTyo0/to4B1uWG/Djg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"49c89acfc79e9cd4ca9fd6f7b7bfb1af48a94e9f58c4a418e27a704379ab46e2f404054704bc99c687e168a04056dce6b5167fcd3ca8d3fb68e01d6e586fc38e\",\"name\":\"lightningcss-darwin-arm64\",\"version\":\"1.33.0\"},\"lightningcss-darwin-x64-1.32.0.tgz\":{\"integrity\":\"U+QsBp2m/s2wqpUYT/6wnlagdZbtZdndSmut/NJqlCcMLTWp5muCrID+K5UJ6jqD2BFshejCYXniPDbNh73V8w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"53e42c069da6fecdb0aa95184ffeb09e56a07596ed65d9dd4a6badfcd26a94270c2d35a9e66b82ac80fe2b9509ea3a83d8116c85e8c26179e23c36cd87bdd5f3\",\"name\":\"lightningcss-darwin-x64\",\"version\":\"1.32.0\"},\"lightningcss-darwin-x64-1.33.0.tgz\":{\"integrity\":\"Z5UPAxzrjlWNNyGy6i65cJzzvgJ5D3T6wMvs+gWpY9d7qRhANrxqAp6LhxIgZhWEw18RfJTGcRxjuLIBr+m8XQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"67950f031ceb8e558d3721b2ea2eb9709cf3be02790f74fac0cbecfa05a963d77ba9184036bc6a029e8b871220661584c35f117c94c6711c63b8b201afe9bc5d\",\"name\":\"lightningcss-darwin-x64\",\"version\":\"1.33.0\"},\"lightningcss-freebsd-x64-1.32.0.tgz\":{\"integrity\":\"JCTigedEksZk3tHTTthnMdVfGf61Fky8Ji2E4YjUTEQX14xiy/lTzXnu1vwiZe3bYe0q+SpsSH/CTeDXK6WHig==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2424e281e74492c664ded1d34ed86731d55f19feb5164cbc262d84e188d44c4417d78c62cbf953cd79eed6fc2265eddb61ed2af92a6c487fc24de0d72ba5878a\",\"name\":\"lightningcss-freebsd-x64\",\"version\":\"1.32.0\"},\"lightningcss-freebsd-x64-1.33.0.tgz\":{\"integrity\":\"QQM/Ti/hQajJwCY+RiWuCZ9sdtI/XQk7nDK5vC8kkdwixezOlDgvDx7+RT+QjK6FcFT4MpsuoBnHIo/O3StRRg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"41033f4e2fe141a8c9c0263e4625ae099f6c76d23f5d093b9c32b9bc2f2491dc22c5ecce94382f0f1efe453f908cae857054f8329b2ea019c7228fcedd2b5146\",\"name\":\"lightningcss-freebsd-x64\",\"version\":\"1.33.0\"},\"lightningcss-linux-arm-gnueabihf-1.32.0.tgz\":{\"integrity\":\"x6rnnpRa2GL0zQOkt6rts3YDPzduLpWvwAF6EMhXFVZXD4tPrBkEFqzGowzCsIWsPjqSK+tyNEODUBXeeVHSkw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c7aae79e945ad862f4cd03a4b7aaedb376033f376e2e95afc0017a10c8571556570f8b4fac190416acc6a30cc2b085ac3e3a922beb723443835015de7951d293\",\"name\":\"lightningcss-linux-arm-gnueabihf\",\"version\":\"1.32.0\"},\"lightningcss-linux-arm-gnueabihf-1.33.0.tgz\":{\"integrity\":\"N7FVBe6iS24MlM6R/4RBTxGhQheZGs7tiQ9U32UtF75NzP5Q7xWPRqLBCKxlRQRk3rY1jCIPLzx7WzOhuUIRLQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"37b15505eea24b6e0c94ce91ff84414f11a14217991aceed890f54df652d17be4dccfe50ef158f46a2c108ac65450464deb6358c220f2f3c7b5b33a1b942112d\",\"name\":\"lightningcss-linux-arm-gnueabihf\",\"version\":\"1.33.0\"},\"lightningcss-linux-arm64-gnu-1.32.0.tgz\":{\"integrity\":\"0nnMyoyOLRJXfbMOilaSRcLH3Jw5z9HDNGfT/gwCPgaDjnx0i8w7vBzFLFR1f6CMLKF8gVbebmkUN3fa/kQJpQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d279ccca8c8e2d12577db30e8a569245c2c7dc9c39cfd1c33467d3fe0c023e06838e7c748bcc3bbc1cc52c54757fa08c2ca17c8156de6e69143777dafe4409a5\",\"name\":\"lightningcss-linux-arm64-gnu\",\"version\":\"1.32.0\"},\"lightningcss-linux-arm64-gnu-1.33.0.tgz\":{\"integrity\":\"j2v/itmy4HlNxlc6voKXYgBqNi0Ng2LShg4z7GufpEgs05P+2suBVyi9I6YHq5uoVFx9ETin3eCEhLVyXGQnKg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8f6bff8ad9b2e0794dc6573abe829762006a362d0d8362d2860e33ec6b9fa4482cd393fedacb815728bd23a607ab9ba8545c7d1138a7dde08484b5725c64272a\",\"name\":\"lightningcss-linux-arm64-gnu\",\"version\":\"1.33.0\"},\"lightningcss-linux-arm64-musl-1.32.0.tgz\":{\"integrity\":\"UpQkoenr4UJEzgVIYpI80lDFvRmPVg6oqboNHfoH4CQIfNA+HOrZ7Mo7KZP02dC6LjghPQJeBsvXhJod/wnIBg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"529424a1e9ebe14244ce054862923cd250c5bd198f560ea8a9ba0d1dfa07e024087cd03e1cead9ecca3b2993f4d9d0ba2e38213d025e06cbd7849a1dff09c806\",\"name\":\"lightningcss-linux-arm64-musl\",\"version\":\"1.32.0\"},\"lightningcss-linux-arm64-musl-1.33.0.tgz\":{\"integrity\":\"yiO5ROMuYQgXbC60yjZU5CYSFZGKXL0HFATXt9mHJn1+zW55oCtMI9NfcVhYLMFDL7gV7oBPon/EmMMGg2OvtQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ca23b944e32e6108176c2eb4ca3654e4261215918a5cbd071404d7b7d987267d7ecd6e79a02b4c23d35f7158582cc1432fb815ee804fa27fc498c3068363afb5\",\"name\":\"lightningcss-linux-arm64-musl\",\"version\":\"1.33.0\"},\"lightningcss-linux-x64-gnu-1.32.0.tgz\":{\"integrity\":\"V7Qr52IhZmdKPVr+Vtw8o+WLsQJYCTd8loIfpDaMRWGUZfBOYEJeyJIkqGIDMZPwPx24pUMfwSxxI8phr/MbOA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"57b42be7622166674a3d5afe56dc3ca3e58bb1025809377c96821fa4368c45619465f04e60425ec89224a862033193f03f1db8a5431fc12c7123ca61aff31b38\",\"name\":\"lightningcss-linux-x64-gnu\",\"version\":\"1.32.0\"},\"lightningcss-linux-x64-gnu-1.33.0.tgz\":{\"integrity\":\"ar+Ju7LmcN0Jo4FpL4hpFybwNG9/3A/Br5KW2n2jyODg3MEZXaDYADdemoNS+BDNfMgKvylJLj4S5tyRActuAg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6abf89bbb2e670dd09a381692f88691726f0346f7fdc0fc1af9296da7da3c8e0e0dcc1195da0d800375e9a8352f810cd7cc80abf29492e3e12e6dc9101cb6e02\",\"name\":\"lightningcss-linux-x64-gnu\",\"version\":\"1.33.0\"},\"lightningcss-linux-x64-musl-1.32.0.tgz\":{\"integrity\":\"bYcLp+Vb0awsiXg/80uCRezCYHNg1/l3mt0gzHnWV9XP1W5sKa5/TCdGWaR/zBM2PeF/HbsQv/j2URNOiVuxWg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6d870ba7e55bd1ac2c89783ff34b8245ecc2607360d7f9779add20cc79d657d5cfd56e6c29ae7f4c274659a47fcc13363de17f1dbb10bff8f651134e895bb15a\",\"name\":\"lightningcss-linux-x64-musl\",\"version\":\"1.32.0\"},\"lightningcss-linux-x64-musl-1.33.0.tgz\":{\"integrity\":\"RYiYbkokw0trfKqqzfF55lginwEPrD3OJDfTuJzFs1MK6iFnDenaz1fqLLtX4ITG3OktJQXOeTaw1awrBAlZPw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4588986e4a24c34b6b7caaaacdf179e658229f010fac3dce2437d3b89cc5b3530aea21670de9dacf57ea2cbb57e084c6dce92d2505ce7936b0d5ac2b0409593f\",\"name\":\"lightningcss-linux-x64-musl\",\"version\":\"1.33.0\"},\"lightningcss-win32-arm64-msvc-1.32.0.tgz\":{\"integrity\":\"8SbC8BR40pS6baCM8sbtYDSwEVQd4JlFTOlaD3gWGHfThTcABnNDBda6eTZeqbofalIJhFx0qKzgHJmcPTnGdw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f126c2f01478d294ba6da08cf2c6ed6034b011541de099454ce95a0f78161877d385370006734305d6ba79365ea9ba1f6a5209845c74a8ace01c999c3d39c677\",\"name\":\"lightningcss-win32-arm64-msvc\",\"version\":\"1.32.0\"},\"lightningcss-win32-arm64-msvc-1.33.0.tgz\":{\"integrity\":\"1K+MPfLSFVpphzpdbfkhlWk6wBrTObBzS2T6db10PNOZgR9GoVsAWzwNyuhUYYbTp23j+4RrncfujZ4uAzXvwA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d4af8c3df2d2155a69873a5d6df92195693ac01ad339b0734b64fa75bd743cd399811f46a15b005b3c0dcae8546186d3a76de3fb846b9dc7ee8d9e2e0335efc0\",\"name\":\"lightningcss-win32-arm64-msvc\",\"version\":\"1.33.0\"},\"lightningcss-win32-x64-msvc-1.32.0.tgz\":{\"integrity\":\"Amq9B/SoZYdDi1kFrojnoqPLxYhQ4Wo5XiL8EVJrVsB8ARoC1PWW6VGtT0WKCemjy8aC+louJnjS7U18x3b06Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"026abd07f4a86587438b5905ae88e7a2a3cbc58850e16a395e22fc11526b56c07c011a02d4f596e951ad4f458a09e9a3cbc682fa5a2e2678d2ed4d7cc776f4e9\",\"name\":\"lightningcss-win32-x64-msvc\",\"version\":\"1.32.0\"},\"lightningcss-win32-x64-msvc-1.33.0.tgz\":{\"integrity\":\"OlEICDx/Xl0FqSp4bry8zFnCvGpig3Gl4gCquvYwHuqJKEC1+n9NgDniFvqHGmMv1ZkqDJrDqKKSykTDX+ehuA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3a5108083c7f5e5d05a92a786ebcbccc59c2bc6a628371a5e200aabaf6301eea892840b5fa7f4d8039e216fa871a632fd5992a0c9ac3a8a292ca44c35fe7a1b8\",\"name\":\"lightningcss-win32-x64-msvc\",\"version\":\"1.33.0\"},\"lines-and-columns-1.2.4.tgz\":{\"integrity\":\"7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ef297295eb1943f3d5dbd8e110397751f8e8e995fb802a89af917b3caaea73ddefedfcd2ca6b75069c0453c9c0517b3cab3cefaa16e384ae50660e8cb7f1e406\",\"name\":\"lines-and-columns\",\"version\":\"1.2.4\"},\"locate-path-3.0.0.tgz\":{\"integrity\":\"7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ec03bbe3cc169c884da80b9ab72d995879101d148d7cf548b0f21fc043963b6d8099aa15ad66af94e70c4799f34cb358be9dfa5f6db4fe669a46cade7351bae4\",\"name\":\"locate-path\",\"version\":\"3.0.0\"},\"lodash-4.18.1.tgz\":{\"integrity\":\"dMInicTPVE8d1e5otfwmmjlxkZoUpiVLwyeTdUsi/Caj/gfzzblBcCE5sRHV/AsjuCmxWrte2TNGSYuCeCq+0Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"74c22789c4cf544f1dd5ee68b5fc269a3971919a14a6254bc32793754b22fc26a3fe07f3cdb941702139b111d5fc0b23b829b15abb5ed93346498b82782abed1\",\"name\":\"lodash\",\"version\":\"4.18.1\"},\"lodash.escaperegexp-4.1.2.tgz\":{\"integrity\":\"TM9YBvyC84ZxE3rgfefxUWiQKLilstD6k7PTGt6wfbtXF8ixIJLOL3VYyV/z+ZiPLsVxAsKAFVwWlWeb2Y8Yyw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4ccf5806fc82f38671137ae07de7f151689028b8a5b2d0fa93b3d31adeb07dbb5717c8b12092ce2f7558c95ff3f9988f2ec57102c280155c1695679bd98f18cb\",\"name\":\"lodash.escaperegexp\",\"version\":\"4.1.2\"},\"lodash.isequal-4.5.0.tgz\":{\"integrity\":\"pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a43a3796ef0985f8ea96ce8690c8296a1b05f640b26b2860ca48f22cc3454ca5aba5574042d6320789ae00c5a8cc10788a0fddb56026b0cc4b108f30bb3f8361\",\"name\":\"lodash.isequal\",\"version\":\"4.5.0\"},\"log-symbols-6.0.0.tgz\":{\"integrity\":\"i24m8rpwhmPIS4zscNzK6MSEhk0DUWa/8iYQWxhffV8jkI4Phvs3F+quL5xvS0gdQR0FyTCMMH33Y78dDTzzIw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8b6e26f2ba708663c84b8cec70dccae8c484864d035166bff226105b185f7d5f23908e0f86fb3717eaae2f9c6f4b481d411d05c9308c307df763bf1d0d3cf323\",\"name\":\"log-symbols\",\"version\":\"6.0.0\"},\"lowercase-keys-2.0.0.tgz\":{\"integrity\":\"tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b6a357ad2efca0c384ef734cc4ae0430b42c428c167fc8caa281fd83bc4f6af453ef4e91e9b91027a0d8d937bb42e91a66cba5c5adf4c10edb934a66e1788798\",\"name\":\"lowercase-keys\",\"version\":\"2.0.0\"},\"lru-cache-11.5.2.tgz\":{\"integrity\":\"4pfM1Ff0x50o0tQwb5ucw/RzNyD0/YJME6IVcStalZuMWxdt3sR3huStTtxz4PUmvZfRguvDejasvQ2kifR11g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e297ccd457f4c79d28d2d4306f9b9cc3f4733720f4fd824c13a215712b5a959b8c5b176ddec47786e4ad4edc73e0f526bd97d182ebc37a36acbd0da489f475d6\",\"name\":\"lru-cache\",\"version\":\"11.5.2\"},\"lru-cache-5.1.1.tgz\":{\"integrity\":\"KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2a9340450037230bfe8d3034bad51555bae1f8996baf516fd1ee7a186cc014e5cdedd93f16f89a0d6f0b1e62b9d8395c1f858fda7ea023cbcdd5a7ac045828f7\",\"name\":\"lru-cache\",\"version\":\"5.1.1\"},\"lru-cache-6.0.0.tgz\":{\"integrity\":\"Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"268e9d274e029928eece7c09492de951e5a677f1f47df4e59175e0c198be7aad540a6a90c0287e78bb183980b063df758b615a878875044302c78a938466ec88\",\"name\":\"lru-cache\",\"version\":\"6.0.0\"},\"lucide-react-1.31.0.tgz\":{\"integrity\":\"G8u2eEtoHUnUa9f8lbvqDhCiORMnYLdUEo06EEG9MQvHQrInKcX3Pa2TH39MM5qyzRcWETxB0+aOwAPI1g1kEg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1bcbb6784b681d49d46bd7fc95bbea0e10a239132760b754128d3a1041bd310bc742b22729c5f73dad931f7f4c339ab2cd1716113c41d3e68ec003c8d60d6412\",\"name\":\"lucide-react\",\"version\":\"1.31.0\"},\"lz-string-1.5.0.tgz\":{\"integrity\":\"h5bgJWpxJNswbU7qCrV0tIKQCaS3blPDrqKWx+QxzuzL1zGUzij9XCWLrSLsJPu5t+eWA/ycetzYAO5IOMcWAQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8796e0256a7124db306d4eea0ab574b4829009a4b76e53c3aea296c7e431ceeccbd73194ce28fd5c258bad22ec24fbb9b7e79603fc9c7adcd800ee4838c71601\",\"name\":\"lz-string\",\"version\":\"1.5.0\"},\"magic-string-0.30.21.tgz\":{\"integrity\":\"vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"bddd85e1853211728670b1e8abe4c4c828f1b9e49e1e7171cb28cda7cd328345d5e2f5219c37abfe5bef96a33f6ab0796d740de4adbfde88a7c82472c7c4f609\",\"name\":\"magic-string\",\"version\":\"0.30.21\"},\"magicast-0.5.4.tgz\":{\"integrity\":\"llBEhWm1SacoRwgHUoQJYtwp4PBLF4faQi5TCpIGyGs9n4y5+juI0tDgyKIfpqxckRHaHzouUEph3THklWh03w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9650448569b549a72847080752840962dc29e0f04b1787da422e530a9206c86b3d9f8cb9fa3b88d2d0e0c8a21fa6ac5c9111da1f3a2e504a61dd31e4956874df\",\"name\":\"magicast\",\"version\":\"0.5.4\"},\"magnet-uri-7.0.10.tgz\":{\"integrity\":\"PjS/xWnvq9RK6P/8+dWG7ka3mFGGt/R9xiq5A+P8a8MpE40Dw6yNyTdjCFuJHS3apn6p5bJUCzMSceW3VxezRA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3e34bfc569efabd44ae8fffcf9d586ee46b7985186b7f47dc62ab903e3fc6bc329138d03c3ac8dc93763085b891d2ddaa67ea9e5b2540b331271e5b75717b344\",\"name\":\"magnet-uri\",\"version\":\"7.0.10\"},\"make-dir-4.0.0.tgz\":{\"integrity\":\"hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8577544d960854eb75131fff8c0422fb04d9669529c018ffd10b0ecea7a06f7ac630c78989212ee712c79d87c1ad1578447dbe38248e3bde48b3fef1d562786f\",\"name\":\"make-dir\",\"version\":\"4.0.0\"},\"matcher-3.0.0.tgz\":{\"integrity\":\"OkeDaAZ/bQCxeFAozM55PKcKU0yJMPGifLwV4Qgjitu+5MoAfSQN4lsLJeXZ1b8w0x+/Emda6MZgXS1jvsapng==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3a478368067f6d00b1785028ccce793ca70a534c8930f1a27cbc15e108238adbbee4ca007d240de25b0b25e5d9d5bf30d31fbf12675ae8c6605d2d63bec6a99e\",\"name\":\"matcher\",\"version\":\"3.0.0\"},\"math-intrinsics-1.1.0.tgz\":{\"integrity\":\"/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"fc85ed6f0124e474cfc84c32297ea11a4617c4cf676e3eb807e8a55499c2fd1e81d291f91b85776f4a556cbec3063e2d921040a696d05257fa17a5e5f4b1eed6\",\"name\":\"math-intrinsics\",\"version\":\"1.1.0\"},\"mdn-data-2.27.1.tgz\":{\"integrity\":\"9Yubnt3e8A0OKwxYSXyhLymGW4sCufcLG6VdiDdUGVkPhpqLxlvP5vl1983gQjJl3tqbrM731mjaZaP68AgosQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f58b9b9edddef00d0e2b0c58497ca12f29865b8b02b9f70b1ba55d88375419590f869a8bc65bcfe6f975f7cde0423265deda9baccef7d668da65a3faf00828b1\",\"name\":\"mdn-data\",\"version\":\"2.27.1\"},\"media-typer-1.1.1.tgz\":{\"integrity\":\"yz3xRaG20c6/BOzvYoDaGtPmGscs7YivItZEEqe6GbwNfHuxu9YNmvnEkMzKldAGY4/80pRcQRZSEnhquk9XuQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"cb3df145a1b6d1cebf04ecef6280da1ad3e61ac72ced88af22d64412a7ba19bc0d7c7bb1bbd60d9af9c490ccca95d006638ffcd2945c41165212786aba4f57b9\",\"name\":\"media-typer\",\"version\":\"1.1.1\"},\"merge-descriptors-2.0.0.tgz\":{\"integrity\":\"Snk314V5ayFLhp3fkUREub6WtjBfPdCPY1Ln8/8munuLuiYhsABgBVWsozAG+MWMbVEvcdcpbi9R7ww22l9Q3g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4a7937d785796b214b869ddf914444b9be96b6305f3dd08f6352e7f3ff26ba7b8bba2621b000600555aca33006f8c58c6d512f71d7296e2f51ef0c36da5f50de\",\"name\":\"merge-descriptors\",\"version\":\"2.0.0\"},\"merge-stream-2.0.0.tgz\":{\"integrity\":\"abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"69bbffa8e72e3df9375113df0f39995352ca9aec3c913fb49c81ef2ab2a016bc227e897f76859c740e19aac590f0436b14a91debb31fa68fcba2f6c852c6eddf\",\"name\":\"merge-stream\",\"version\":\"2.0.0\"},\"merge2-1.4.1.tgz\":{\"integrity\":\"8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f2aed51203095b827cb5c7d53f2f20d3d35c43065d6f0144aa17bf5999282338e7ff74c60f0b4e098b571b10373bcb4fce97330820e0bfe3f63f9cb4d1924e3a\",\"name\":\"merge2\",\"version\":\"1.4.1\"},\"micromatch-4.0.8.tgz\":{\"integrity\":\"PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3d7c1f06162ed210423f0f039f413e58361beda7f77522d558a8b71c6bfce08745e13c85a02d32b3115dd06a31c3b9d2bf84ff3f3109431b18b0488508aa3604\",\"name\":\"micromatch\",\"version\":\"4.0.8\"},\"mime-2.6.0.tgz\":{\"integrity\":\"USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5123e431e113df5ace3226abb013481d928b1a0bca73f2eb8e87c09c194eb6d7f96a346faa2440f10b1e9db728a1cb4ae9de93b3a6aa657040f976e42ad86242\",\"name\":\"mime\",\"version\":\"2.6.0\"},\"mime-3.0.0.tgz\":{\"integrity\":\"jSCU7/VB1loIWBZe14aEYHU/+1UMEHoaO7qxCOVJOw9GgH72VAWppxNcjU+x9a2k3GSIBXNKxXQFqRvvZ7vr3A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8d2094eff541d65a0858165ed7868460753ffb550c107a1a3bbab108e5493b0f46807ef65405a9a7135c8d4fb1f5ada4dc648805734ac57405a91bef67bbebdc\",\"name\":\"mime\",\"version\":\"3.0.0\"},\"mime-db-1.52.0.tgz\":{\"integrity\":\"sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b0f538b95edd625bed589c70c311c3d0fba285536213b4f201b439496c43081f66518bce82ba103b061040e28f27c0886c4fb51135653a82b5502da7537818be\",\"name\":\"mime-db\",\"version\":\"1.52.0\"},\"mime-db-1.54.0.tgz\":{\"integrity\":\"aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"694e4426e20dd960de982700a76bc505fa7f9b810085626750d492c348b1b3bfe45db77a3e0eb8126c0990d745841f1a5add6c1f60935eb2f1a3f880195de83d\",\"name\":\"mime-db\",\"version\":\"1.54.0\"},\"mime-types-2.1.35.tgz\":{\"integrity\":\"ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"64363e6cf9b9cd34c5f98a42ac053d9cad148080983d3d10b53d4d65616fe2cfbe4cd91c815693d20ebee11dae238323423cf2b07075cf1b962f9d21cda7978b\",\"name\":\"mime-types\",\"version\":\"2.1.35\"},\"mime-types-3.0.2.tgz\":{\"integrity\":\"Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2db833764d21e23ba843d7c22975b86f2d1426a8fe9ce3ab23d309d6c4a3e2723c688d9ea35aa6bd01227b8543d6096c4b6e749f5e4bb16b18b42ba0892b52e4\",\"name\":\"mime-types\",\"version\":\"3.0.2\"},\"mimic-fn-2.1.0.tgz\":{\"integrity\":\"OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3aa6ce939a0441e019f165d6c9d96ef47263cfd59574422f6a63027179aea946234e49c7fecaac5af850def830285451d47a63bcd04a437ee76c9818cc6a8672\",\"name\":\"mimic-fn\",\"version\":\"2.1.0\"},\"mimic-fn-3.1.0.tgz\":{\"integrity\":\"Ysbi9uYW9hFyfrThdDEQuykN4Ey6BuwPD2kpI5ES/nFTDn/98yxYNLZJcgUAKPT/mcrLLKaGzJR9YVxJrIdASQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"62c6e2f6e616f611727eb4e1743110bb290de04cba06ec0f0f6929239112fe71530e7ffdf32c5834b64972050028f4ff99cacb2ca686cc947d615c49ac874049\",\"name\":\"mimic-fn\",\"version\":\"3.1.0\"},\"mimic-function-5.0.1.tgz\":{\"integrity\":\"VP79XUPxV2CigYP3jWwAUFSku2aKqBH7uTAapFWCBqutsbmDo96KY5o8uh6U+/YSIn5OxJnXp73beVkpqMIGhA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"54fefd5d43f15760a28183f78d6c005054a4bb668aa811fbb9301aa4558206abadb1b983a3de8a639a3cba1e94fbf612227e4ec499d7a7bddb795929a8c20684\",\"name\":\"mimic-function\",\"version\":\"5.0.1\"},\"mimic-response-1.0.1.tgz\":{\"integrity\":\"j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8f911cb67907eda99f57fab91e09a86a5d60d901c5251ada3ad9b1d09a48aa4c6106123f9494a5d67329438e6155aaf03444cea161229a7759e102b4447c6ec5\",\"name\":\"mimic-response\",\"version\":\"1.0.1\"},\"mimic-response-3.1.0.tgz\":{\"integrity\":\"z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"cf4c9623ee050ebaf0792f199ade048f91dd266932d79f8bd9ee96827dfe88ae5f5b36fa4f77e1345ab6f8c79345bd3ae1ce96af837fc2fd03cd04e33731cd19\",\"name\":\"mimic-response\",\"version\":\"3.1.0\"},\"min-indent-1.0.1.tgz\":{\"integrity\":\"I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"23d8f0327d3b4b2fc8c0e8f7cd59158a4d894ef8296b29036448a02fa471e8df4b6cccb0c1448cb71113fbb955a032cb7773b7217c09c2fbae9ecf1407f1de02\",\"name\":\"min-indent\",\"version\":\"1.0.1\"},\"minimatch-10.2.6.tgz\":{\"integrity\":\"vpLQEs+VLCr1nU0BXS07maYoFwlDAH0gngQuuttxIwutDFEMHq2blX+8vpgxDdK3J1PwjCJiep77OitTZ4Ll1A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"be92d012cf952c2af59d4d015d2d3b99a628170943007d209e042ebadb71230bad0c510c1ead9b957fbcbe98310dd2b72753f08c22627a9efb3a2b536782e5d4\",\"name\":\"minimatch\",\"version\":\"10.2.6\"},\"minimatch-3.1.5.tgz\":{\"integrity\":\"VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5608d652c9e74fa9fe35493a799abbef37857695b62d60f33facc51ab09b1d789836e9790f3aa4d871d0e6e147d83356e576e9f3e8d5cda78db7de2cb04125e3\",\"name\":\"minimatch\",\"version\":\"3.1.5\"},\"minimatch-5.1.9.tgz\":{\"integrity\":\"7o1wEA2RyMP7Iu7GNba9vc0RWWGACJOCZBJX2GJWip0ikV+wcOsgVuY9uE8CPiyQhkGFSlhuSkZPavN7u1c2Fw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ee8d70100d91c8c3fb22eec635b6bdbdcd11596180089382641257d862568a9d22915fb070eb2056e63db84f023e2c908641854a586e4a464f6af37bbb573617\",\"name\":\"minimatch\",\"version\":\"5.1.9\"},\"minimatch-9.0.9.tgz\":{\"integrity\":\"OBwBN9AL4dqmETlpS2zasx+vTeWclWzkblfZk7KTA5j3jeOONz/tRCnZomUyvNg83wL5Zv9Ss6HMJXAgL8R2Yg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"381c0137d00be1daa61139694b6cdab31faf4de59c956ce46e57d993b2930398f78de38e373fed4429d9a26532bcd83cdf02f966ff52b3a1cc2570202fc47662\",\"name\":\"minimatch\",\"version\":\"9.0.9\"},\"minimist-1.2.8.tgz\":{\"integrity\":\"2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"db2c8047ca8190ddd8ba17896a7529582e54ddb6f9a2c0f2c0d07c4730d5943c031dba1c009bdeaaa8f5bbcf92543ee39164f8cafb070a95aaa96a80c5bd3308\",\"name\":\"minimist\",\"version\":\"1.2.8\"},\"minipass-7.1.3.tgz\":{\"integrity\":\"tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b44047a839c8a0cff5ad7304d738246bd83a43695ca029311cbb9cece0c9e41c5b3f977873667970682d5c092ee7ddb4d02c7b762b874ce61f4810fc9fa9a6f0\",\"name\":\"minipass\",\"version\":\"7.1.3\"},\"minizlib-3.1.0.tgz\":{\"integrity\":\"KZxYo1BUkWD2TVFLr0MQoM8vUUigWD3LlD83a/75BqC+4qE0Hb1Vo5v1FgcfaNXvfXzr+5EhQ6ing/CaBijTlw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"299c58a350549160f64d514baf4310a0cf2f5148a0583dcb943f376bfef906a0bee2a1341dbd55a39bf516071f68d5ef7d7cebfb912143a8a783f09a0628d397\",\"name\":\"minizlib\",\"version\":\"3.1.0\"},\"mkdirp-0.5.6.tgz\":{\"integrity\":\"FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"14ffa9f1107c396a45dd86410ab3f982d0039ad5c0a41e4030b9febddc80f8fcb10a3ac2b34d268f2528cecb0edf77300de4f7c0d19d2f127933ffd8aad1c027\",\"name\":\"mkdirp\",\"version\":\"0.5.6\"},\"mmdb-lib-3.0.3.tgz\":{\"integrity\":\"xQPoBXcNjjHiOvOraFBKtA++uNWF6aCVHL9dRKFXEov8eI3QJwtgiw3qApsonFT5SpoqsEVISUTg3HIDs2DiXw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c503e805770d8e31e23af3ab68504ab40fbeb8d585e9a0951cbf5d44a157128bfc788dd0270b608b0dea029b289c54f94a9a2ab045484944e0dc7203b360e25f\",\"name\":\"mmdb-lib\",\"version\":\"3.0.3\"},\"ms-2.1.3.tgz\":{\"integrity\":\"6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e85973b9b4cb646dc9d9afcd542025784863ceae68c601f268253dc985ef70bb2fa1568726afece715c8ebf5d73fab73ed1f7100eb479d23bfb57b45dd645394\",\"name\":\"ms\",\"version\":\"2.1.3\"},\"nanoid-3.3.18.tgz\":{\"integrity\":\"DTg4MJbGMWkfi6VZFdNt2/caMbQy4Ou+Op/hJQvGEWcnVfoA1QA+xzRKAzw9jD6+GVOOeYr/mIcuDSdug6F6+w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0d38383096c631691f8ba55915d36ddbf71a31b432e0ebbe3a9fe1250bc611672755fa00d5003ec7344a033c3d8c3ebe19538e798aff98872e0d276e83a17afb\",\"name\":\"nanoid\",\"version\":\"3.3.18\"},\"negotiator-1.0.0.tgz\":{\"integrity\":\"8Ofs/AUQh8MaEcrlq5xOX0CQ9ypTF5dl78mjlMNfOK08fzpgTHQRQPBxcPlEtIw0yRpws+Zo/3r+5WRby7u3Gg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f0e7ecfc051087c31a11cae5ab9c4e5f4090f72a53179765efc9a394c35f38ad3c7f3a604c741140f07170f944b48c34c91a70b3e668ff7afee5645bcbbbb71a\",\"name\":\"negotiator\",\"version\":\"1.0.0\"},\"next-themes-0.4.6.tgz\":{\"integrity\":\"pZvgD5L0IEvX5/9GWyHMf3m8BKiVQwsCMHfoFosXtXBMnaS0ZnIJ9ST4b4NqLVKDEm8QBxoNNGNaBv2JNF6XNA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a59be00f92f4204bd7e7ff465b21cc7f79bc04a895430b023077e8168b17b5704c9da4b4667209f524f86f836a2d5283126f10071a0d34635a06fd89345e9734\",\"name\":\"next-themes\",\"version\":\"0.4.6\"},\"node-abi-4.33.0.tgz\":{\"integrity\":\"vLBWCKb+7LWsX+TbfzWOkw0W81m377tyx3hOweBTjO43CXZnRGS1/JPWs20fr0PgZyDXk6ROYrylsEycK8raDA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"bcb05608a6feecb5ac5fe4db7f358e930d16f359b7efbb72c7784ec1e0538cee370976674464b5fc93d6b36d1faf43e06720d793a44e62bca5b04c9c2bcada0c\",\"name\":\"node-abi\",\"version\":\"4.33.0\"},\"node-addon-api-8.9.2.tgz\":{\"integrity\":\"VijLXbi3UACN69I0JVXJsX4tjACjNoQDgv2gTF6sx2wWEi8tkSg2eX8p5gSIFi8z2+DL3oHmY6OyKce38SDolg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5628cb5db8b750008debd2342555c9b17e2d8c00a336840382fda04c5eacc76c16122f2d912836797f29e60488162f33dbe0cbde81e663a3b229c7b7f120e896\",\"name\":\"node-addon-api\",\"version\":\"8.9.2\"},\"node-api-version-0.2.1.tgz\":{\"integrity\":\"2xP/IGGMmmSQpI1+O/k72jF/ykvZ89JeuKX3TLJAYPDVLUalrshrLHkeVcCCZqG/eEa635cr8IBYzgnDvM2O8Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"db13ff20618c9a6490a48d7e3bf93bda317fca4bd9f3d25eb8a5f74cb24060f0d52d46a5aec86b2c791e55c08266a1bf7846badf972bf08058ce09c3bccd8ef1\",\"name\":\"node-api-version\",\"version\":\"0.2.1\"},\"node-domexception-1.0.0.tgz\":{\"integrity\":\"/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"fe3299a0ca70d05f06470978fde2d138f03771f717b4b0293f44332e6513fc7b8f0995b207b218f59acc78ac363bf9c522a3d00773d533d6989b4177d760170d\",\"name\":\"node-domexception\",\"version\":\"1.0.0\"},\"node-fetch-3.3.2.tgz\":{\"integrity\":\"dRB78srN/l6gqWulah9SrxeYnxeddIG30+GOqK/9OlLVyLg3HPnr6SqOWTWOXKRwC2eGYCkZ59NNuSgvSrpgOA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"75107bf2cacdfe5ea0a96ba56a1f52af17989f179d7481b7d3e18ea8affd3a52d5c8b8371cf9ebe92a8e59358e5ca4700b6786602919e7d34db9282f4aba6038\",\"name\":\"node-fetch\",\"version\":\"3.3.2\"},\"node-gyp-12.4.0.tgz\":{\"integrity\":\"OMcPNvqTCFUnNaBlmdgq+lfNqY7gTiSmNRDjY3uAXRyudeKZEZxu3CLtjMQrx4zZxCX2b/mpNqTtwuCJgXhHkw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"38c70f36fa9308552735a06599d82afa57cda98ee04e24a63510e3637b805d1cae75e299119c6edc22ed8cc42bc78cd9c425f66ff9a936a4edc2e08981784793\",\"name\":\"node-gyp\",\"version\":\"12.4.0\"},\"node-gyp-build-4.8.4.tgz\":{\"integrity\":\"LA4ZjwlnUblHVgq0oBF3Jl/6h/Nvs5fzBLwdEF4nuxnFdsfajde4WfxtJr3CaiH+F6ewcIB/q4jQ4UzPyid+CQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2c0e198f096751b947560ab4a01177265ffa87f36fb397f304bc1d105e27bb19c576c7da8dd7b859fc6d26bdc26a21fe17a7b070807fab88d0e14ccfca277e09\",\"name\":\"node-gyp-build\",\"version\":\"4.8.4\"},\"node-int64-0.4.0.tgz\":{\"integrity\":\"O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3b9973f75c5239ea173fa0ee9721df965a6af84834d0c5a2b5921bb4f7e8484bea207765e607dc63a858cc35a78f4a83e6dcf9d8f234f2ef6a52f49579405e1f\",\"name\":\"node-int64\",\"version\":\"0.4.0\"},\"node-releases-2.0.53.tgz\":{\"integrity\":\"D9UOmYG3UH1V+ENW56t5QXBwJw1YEY18ruVeus89Rw+SyIgjPkCO84bRzO3uNIYosJbNwiabWVn48o3uJLjxFQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0fd50e9981b7507d55f84356e7ab79417070270d58118d7caee55ebacf3d470f92c888233e408ef386d1ccedee348628b096cdc2269b5959f8f28dee24b8f115\",\"name\":\"node-releases\",\"version\":\"2.0.53\"},\"nopt-9.0.0.tgz\":{\"integrity\":\"Zhq3a+yFKrYwSBluL4H9XP3m3y5uvQkB/09CwDruCiRmR/UJYnn9W4R48ry0uGC70aeTPKLynBtscP9efFFcPw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"661ab76bec852ab63048196e2f81fd5cfde6df2e6ebd0901ff4f42c03aee0a246647f5096279fd5b8478f2bcb4b860bbd1a7933ca2f29c1b6c70ff5e7c515c3f\",\"name\":\"nopt\",\"version\":\"9.0.0\"},\"normalize-url-6.1.0.tgz\":{\"integrity\":\"DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0e52fe5f03b2dcdc4043cc6e0b4a243e02b8ea2b953402b4d5837b46e79806aa85786b018d5f5798203301d82dfbaebb6c297990f87d12a28a0f09da3c6d48ec\",\"name\":\"normalize-url\",\"version\":\"6.1.0\"},\"npm-run-path-4.0.1.tgz\":{\"integrity\":\"S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4b8f16cd95bbefbce1348ae7ee0c4e94848d02a8bd642fee4059d175b7881e1661080e94aa990e4fc4f51bb06f7dd80fe04afc805e2c51b692d22ed0bc87c25b\",\"name\":\"npm-run-path\",\"version\":\"4.0.1\"},\"npm-run-path-6.0.0.tgz\":{\"integrity\":\"9qny7Z9DsQU8Ou39ERsPU4OZQlSTP47ShQzuKZ6PRXpYLtIFgl/DEBYEXKlvcEa+9tHVcK8CF81Y2V72qaZhWA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f6a9f2ed9f43b1053c3aedfd111b0f5383994254933f8ed2850cee299e8f457a582ed205825fc31016045ca96f7046bef6d1d570af0217cd58d95ef6a9a66158\",\"name\":\"npm-run-path\",\"version\":\"6.0.0\"},\"object-assign-4.1.1.tgz\":{\"integrity\":\"rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ac98134279149c7d6c170f324fa552537cc3dec5a6bbab19848b1e63c557f8646edcfe85ec5bbe24d0e85df9251256cb2529dcdc55101d57b8714e618fe05c52\",\"name\":\"object-assign\",\"version\":\"4.1.1\"},\"object-inspect-1.13.4.tgz\":{\"integrity\":\"W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5baee22e5e09d845c41936df78709f7eb8c37e2b6f2c0360d14957df01545124f1f762974457a0307515812a84fb0be101b8b85aa8c683d733cac4d5d84a5b7b\",\"name\":\"object-inspect\",\"version\":\"1.13.4\"},\"object-keys-1.1.1.tgz\":{\"integrity\":\"NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"36e00449439432b9485ce7c72b30fa6e93eeded62ddf1be335d44843e15e4f494d6f82bc591ef409a0f186e360b92d971be1a39323303b3b0de5992d2267e12c\",\"name\":\"object-keys\",\"version\":\"1.1.1\"},\"object-treeify-1.1.33.tgz\":{\"integrity\":\"EFVjAYfzWqWsBMRHPMAXLCDIJnpMhdWAqR7xG6M6a2cs6PMFpl/+Z20w9zDW4vkxOFfddegBKq9Rehd0bxWE7A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1055630187f35aa5ac04c4473cc0172c20c8267a4c85d580a91ef11ba33a6b672ce8f305a65ffe676d30f730d6e2f9313857dd75e8012aaf517a17746f1584ec\",\"name\":\"object-treeify\",\"version\":\"1.1.33\"},\"obug-2.1.4.tgz\":{\"integrity\":\"4a+OsYv9UktOJKE+l1A4OufDgdRF9PifWj+tJnHURo/P+WOxpG4GzUFL9qCalmWauao6ogiG+QvnCovwPoyAWA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e1af8eb18bfd524b4e24a13e9750383ae7c381d445f4f89f5a3fad2671d4468fcff963b1a46e06cd414bf6a09a96659ab9aa3aa20886f90be70a8bf03e8c8058\",\"name\":\"obug\",\"version\":\"2.1.4\"},\"on-exit-leak-free-2.1.2.tgz\":{\"integrity\":\"0eJJY6hXLGf1udHwfNftBqH+g73EU4B504nZeKpz1sYRKafAghwxEJunB2O7rDZkL4PGfsMVnTXZ2EjibbqcsA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d1e24963a8572c67f5b9d1f07cd7ed06a1fe83bdc4538079d389d978aa73d6c61129a7c0821c31109ba70763bbac36642f83c67ec3159d35d9d848e26dba9cb0\",\"name\":\"on-exit-leak-free\",\"version\":\"2.1.2\"},\"on-finished-2.4.1.tgz\":{\"integrity\":\"oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a15973920dc4340842936cddbfb209c1dfd0503e33d91c51c2991c198f29b0255c09864dab8c189d55802c733e6ebb6e26378f5a2605fc2966b83afc0a1e7e92\",\"name\":\"on-finished\",\"version\":\"2.4.1\"},\"once-1.4.0.tgz\":{\"integrity\":\"lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"94d689808fb643951140191c7042874d038f697754c67659125413658d0c15402e684a9ed44f8dcaf81dcff688c8d8ba67d3333b976fd47f27e7cfc610ba77fb\",\"name\":\"once\",\"version\":\"1.4.0\"},\"onetime-5.1.2.tgz\":{\"integrity\":\"kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"91ba5a4921894d674063928f55e30e2974ab3edafc0bc0bbc287496dcb1de758d19e60fe199bbc63456853a0e6e59e2f5abd0883fd4d2ae59129fee3e5a6984a\",\"name\":\"onetime\",\"version\":\"5.1.2\"},\"onetime-7.0.0.tgz\":{\"integrity\":\"VXJjc87FScF88uafS3JllDgvAm+c/Slfz06lorj2uAY34rlUu0Nt+v8wreiImcrgAjjIHp1rXpTDlLOGw29WwQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"55726373cec549c17cf2e69f4b726594382f026f9cfd295fcf4ea5a2b8f6b80637e2b954bb436dfaff30ade88899cae00238c81e9d6b5e94c394b386c36f56c1\",\"name\":\"onetime\",\"version\":\"7.0.0\"},\"open-11.0.1.tgz\":{\"integrity\":\"NzwMUB6C1D0+Kd+9iMS/H4k+Ck3cTX6Ckyfr/gAGlmvSE1LUQZnEZvWBi4PYmMwH/S5SMeTXnE+9uAz8uF+pWw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"373c0c501e82d43d3e29dfbd88c4bf1f893e0a4ddc4d7e829327ebfe0006966bd21352d44199c466f5818b83d898cc07fd2e5231e4d79c4fbdb80cfcb85fa95b\",\"name\":\"open\",\"version\":\"11.0.1\"},\"open-8.4.2.tgz\":{\"integrity\":\"7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ef1f353422fbd7da0d6ecabfde687e855ac05a616e11852aaeafc8c37914cc7f117b2a53f5043404ba094bbfc6f64e8df355e35b8a875ad8d6c1effd78bcb511\",\"name\":\"open\",\"version\":\"8.4.2\"},\"ora-8.2.0.tgz\":{\"integrity\":\"weP+BZ8MVNnlCm8c0Qdc1WSWq4Qn7I+9CJGm7Qali6g44e/PUzbjNqJX5NJ9ljlNMosfJvg1fKEGILklK9cwnw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c1e3fe059f0c54d9e50a6f1cd1075cd56496ab8427ec8fbd0891a6ed06a58ba838e1efcf5336e336a257e4d27d96394d328b1f26f8357ca10620b9252bd7309f\",\"name\":\"ora\",\"version\":\"8.2.0\"},\"p-cancelable-2.1.1.tgz\":{\"integrity\":\"BZOr3nRQHOntUjTrH8+Lh54smKHoHyur8We1V8DSMVrl5A2malOOwuJRnKRDjSnkoeBh4at6BwEnb5I7Jl31wg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0593abde74501ce9ed5234eb1fcf8b879e2c98a1e81f2babf167b557c0d2315ae5e40da66a538ec2e2519ca4438d29e4a1e061e1ab7a0701276f923b265df5c2\",\"name\":\"p-cancelable\",\"version\":\"2.1.1\"},\"p-limit-2.3.0.tgz\":{\"integrity\":\"//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ffff3c985592271f25c42cf07400014c92f6332581d76f9e218ecc0cbd92a8b98091e294f6ac51bd6b92c938e6dc5526a4110cb857dc90022a11a546503c5beb\",\"name\":\"p-limit\",\"version\":\"2.3.0\"},\"p-limit-3.1.0.tgz\":{\"integrity\":\"TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4d839a9ccdf01b0346b193767154d83c0af0e39e319d78f9aa6585d5b12801ce3e714fe897b19587ba1d7af8e9d4534776e1dcdca64c70576ec54e5773ab8945\",\"name\":\"p-limit\",\"version\":\"3.1.0\"},\"p-locate-3.0.0.tgz\":{\"integrity\":\"x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c7ed76c3f4e8fb81857e0261044a620dc2e8cd12467a063e122effcf4b522e4326c4664dc9b54c49f5a3f5a267f19e4573b74150d24e39580fbf61fb230ba549\",\"name\":\"p-locate\",\"version\":\"3.0.0\"},\"p-try-2.2.0.tgz\":{\"integrity\":\"R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4789cf0154c053407d0f7e7f1a4dee25fffb5d86d0732a2148a76f03121148d821165e1eef5855a069c1350cfd716697c4ed88d742930bede331dbefa0ac3a75\",\"name\":\"p-try\",\"version\":\"2.2.0\"},\"parent-module-1.0.1.tgz\":{\"integrity\":\"GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"190d84591a5057cfe8f80c3c62ab5f6593df3515996246e2744f64e6ba65fe10b7bed1c705f1a6d887e2eaa595f9ca031a4ad42990311372e8b7991cb11961fa\",\"name\":\"parent-module\",\"version\":\"1.0.1\"},\"parse-json-5.2.0.tgz\":{\"integrity\":\"ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6b208abe6fe98421b13a461148233cda20f072df3f1289d2120092c56c43eef7ba8c7820b059787d955004f44d810a0a8ae57fa1d845ac6cd05d9c1b89f0bc46\",\"name\":\"parse-json\",\"version\":\"5.2.0\"},\"parse-ms-4.0.0.tgz\":{\"integrity\":\"TXfryirbmq34y8QBwgqCVLi+8oA3oWx2eAnSn62ITyEhEYaWRlVZ2DvMM9eZbMs/RfxPu/PK/aBLyGj4IrqMHw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4d77ebca2adb9aadf8cbc401c20a8254b8bef28037a16c767809d29fad884f2121118696465559d83bcc33d7996ccb3f45fc4fbbf3cafda04bc868f822ba8c1f\",\"name\":\"parse-ms\",\"version\":\"4.0.0\"},\"parse-torrent-11.0.24.tgz\":{\"integrity\":\"6nNWYiJq6egD8pMqZYL1mfnAly9ZH32DHkAYgZuAfwWij52ce7e3BtrWGVw2q1Bpb5Us8YQVGN7ML/47z/bVIA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ea735662226ae9e803f2932a6582f599f9c0972f591f7d831e4018819b807f05a28f9d9c7bb7b706dad6195c36ab50696f952cf1841518decc2ffe3bcff6d520\",\"name\":\"parse-torrent\",\"version\":\"11.0.24\"},\"parse5-8.0.1.tgz\":{\"integrity\":\"z1e/HMG90obSGeidlli3hj7cbocou0/wa5HacvI3ASx34PecNjNQeaHNo5WIZpWofN9kgkqV1q5YvXe3F0FoPw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"cf57bf1cc1bdd286d219e89d9658b7863edc6e8728bb4ff06b91da72f237012c77e0f79c36335079a1cda395886695a87cdf64824a95d6ae58bd77b71741683f\",\"name\":\"parse5\",\"version\":\"8.0.1\"},\"parseurl-1.3.3.tgz\":{\"integrity\":\"CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0a2c9e3b1153fc96723799b4cfd3df5f0e1208127a4b2833d43a65d30aa39610c418604fd469ec51510bd29eb78681b57dc8f77c7ca75e2f4d60ee2758e2fea9\",\"name\":\"parseurl\",\"version\":\"1.3.3\"},\"path-browserify-1.0.1.tgz\":{\"integrity\":\"b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6fbba8d9409439865c9c5ff7203d25ba53898bf6da7f16b5c4f7bb64fb1a9a6052a634964248cdc65b7adf96064b632247d1a3bee5c2b73d9e9abde36eccfdf2\",\"name\":\"path-browserify\",\"version\":\"1.0.1\"},\"path-exists-3.0.0.tgz\":{\"integrity\":\"bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6e90bb198c220d8438c182def8503c96146385008c7101ae4a0186a83920fd07ab456c3d0a61914f4892395452649dbd34c2d9808cea6a58c9eb7a1a2f834825\",\"name\":\"path-exists\",\"version\":\"3.0.0\"},\"path-is-absolute-1.0.1.tgz\":{\"integrity\":\"AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0156f0dd42767bd6eaeb8bd2692f409b47e37b53daf296c6a934ec9977da2223299ebe4394385f24eb8b8fd49ff7964f5430147ab0df124f3c30f98f7bb50242\",\"name\":\"path-is-absolute\",\"version\":\"1.0.1\"},\"path-key-3.1.1.tgz\":{\"integrity\":\"ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a2399e374a9dfb2d23b3312da18e3caf43deab97703049089423aee90e5fe3595f92cc17b8ab58ae18284e92e7c887079b6e1486ac7ee53aa6d889d2c0b844e9\",\"name\":\"path-key\",\"version\":\"3.1.1\"},\"path-key-4.0.0.tgz\":{\"integrity\":\"haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"85a444ca9abbc6433b12b7e0232034cfe063e0018a94c49d9501368ef268ea1b960f511d90a615f86fd3e27ab4604176be04d3f24a8c14aa35b879fde74af849\",\"name\":\"path-key\",\"version\":\"4.0.0\"},\"path-scurry-2.0.2.tgz\":{\"integrity\":\"3O/iVVsJAPsOnpwWIeD+d6z/7PmqApyQePUtCndjatj/9I5LylHvt5qluFaBT3I5h3r1ejfR056c+FCv+NnNXg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"dcefe2555b0900fb0e9e9c1621e0fe77acffecf9aa029c9078f52d0a77636ad8fff48e4bca51efb79aa5b856814f7239877af57a37d1d39e9cf850aff8d9cd5e\",\"name\":\"path-scurry\",\"version\":\"2.0.2\"},\"path-to-regexp-8.4.2.tgz\":{\"integrity\":\"qRcuIdP69NPm4qbACK+aDogI5CBDMi1jKe0ry5rSQJz8JVLsC7jV8XpiJjGRLLol3N+R5ihGYcrPLTno6pAdBA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a9172e21d3faf4d3e6e2a6c008af9a0e8808e42043322d6329ed2bcb9ad2409cfc2552ec0bb8d5f17a622631912cba25dcdf91e6284661cacf2d39e8ea901d04\",\"name\":\"path-to-regexp\",\"version\":\"8.4.2\"},\"pathe-2.0.3.tgz\":{\"integrity\":\"WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5948c6700a8fd6041a72841ef8e049b0503b2dde03c97b9422367971cef970b1ef27b76d36c4ee8298712000f0b294be02b68051e3c22ab495b4f2c58ff17cf3\",\"name\":\"pathe\",\"version\":\"2.0.3\"},\"pe-library-0.4.1.tgz\":{\"integrity\":\"eRWB5LBz7PpDu4PUlwT0PhnQfTQJlDDdPa35urV4Osrm0t0AqQFGn+UIkU3klZvwJ8KPO3VbBFsXquA6p6kqZw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"791581e4b073ecfa43bb83d49704f43e19d07d34099430dd3dadf9bab5783acae6d2dd00a901469fe508914de4959bf027c28f3b755b045b17aae03aa7a92a67\",\"name\":\"pe-library\",\"version\":\"0.4.1\"},\"pend-1.2.0.tgz\":{\"integrity\":\"F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1776acbf8d94b97721773b7ec57a9f5b538695505efa6c5ada6a88d29839c801d93ef16663763a76b49ffc643503ce9681610df4ace1fd6ae029aea219c1d72e\",\"name\":\"pend\",\"version\":\"1.2.0\"},\"picocolors-1.1.1.tgz\":{\"integrity\":\"xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c5c787dac9e1b5be4cf658aa0ec984c39ea57b7efa993664117fe311bfd1c4d1727a036e97b78db250973fd1438ff2dcbb45fc284c8c71e3f69eda5a1eb0c454\",\"name\":\"picocolors\",\"version\":\"1.1.1\"},\"picomatch-2.3.2.tgz\":{\"integrity\":\"V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"57bfaf404274e99f9ce6d4b27bc4be9c751f239d71a172178c743df5c42d294910aaa3b590efca08951f657b81e3b87f60194385a8761f785d5065e7f227b4a0\",\"name\":\"picomatch\",\"version\":\"2.3.2\"},\"picomatch-4.0.5.tgz\":{\"integrity\":\"RvwwcruNjI1ncT5xRakeyS9Lf8lcItv34KD+aif+VH9kduAyfYBipGh12274xtenIPZ119/R9BdTBa8gAwSh0A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"46fc3072bb8d8c8d67713e7145a91ec92f4b7fc95c22dbf7e0a0fe6a27fe547f6476e0327d8062a46875db6ef8c6d7a720f675d7dfd1f4175305af200304a1d0\",\"name\":\"picomatch\",\"version\":\"4.0.5\"},\"pino-10.3.1.tgz\":{\"integrity\":\"r34yH/GlQpKZbU1BvFFqOjhISRo1MNx1tWYsYvmj6KIRHSPMT2+yHOEb1SG6NMvRoHRF0a07kCOox/9yakl1vg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"af7e321ff1a54292996d4d41bc516a3a3848491a3530dc75b5662c62f9a3e8a2111d23cc4f6fb21ce11bd521ba34cbd1a07445d1ad3b9023a8c7ff726a4975be\",\"name\":\"pino\",\"version\":\"10.3.1\"},\"pino-abstract-transport-3.0.0.tgz\":{\"integrity\":\"wlfUczU+n7Hy/Ha5j9a/gZNy7We5+cXp8YL+X+PG8S0KXxw7n/JXA3c46Y0zQznIJ83URJiwy7Lh56WLokNuxg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c257d473353e9fb1f2fc76b98fd6bf819372ed67b9f9c5e9f182fe5fe3c6f12d0a5f1c3b9ff257037738e98d334339c827cdd44498b0cbb2e1e7a58ba2436ec6\",\"name\":\"pino-abstract-transport\",\"version\":\"3.0.0\"},\"pino-pretty-13.1.3.tgz\":{\"integrity\":\"ttXRkkOz6WWC95KeY9+xxWL6AtImwbyMHrL1mSwqwW9u+vLp/WIElvHvCSDg0xO/Dzrggz1zv3rN5ovTRVowKg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b6d5d19243b3e96582f7929e63dfb1c562fa02d226c1bc8c1eb2f5992c2ac16f6efaf2e9fd620496f1ef0920e0d313bf0f3ae0833d73bf7acde68bd3455a302a\",\"name\":\"pino-pretty\",\"version\":\"13.1.3\"},\"pino-std-serializers-7.1.0.tgz\":{\"integrity\":\"BndPH67/JxGExRgiX1dX0w1FvZck5Wa4aal9198SrRhZjH3GxKQUKIBnYJTdj2HDN3UQAS06HlfcSbQj2OHmaw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"06774f1faeff271184c518225f5757d30d45bd9724e566b869a97dd7df12ad18598c7dc6c4a4142880676094dd8f61c3377510012d3a1e57dc49b423d8e1e66b\",\"name\":\"pino-std-serializers\",\"version\":\"7.1.0\"},\"pkce-challenge-5.0.1.tgz\":{\"integrity\":\"wQ0b/W4Fr01qtpHlqSqspcj3EhBvimsdh0KlHhH8HRZnMsEa0ea2fTULOXOS9ccQr3om+GcGRk4e+isrZWV8qQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c10d1bfd6e05af4d6ab691e5a92aaca5c8f712106f8a6b1d8742a51e11fc1d166732c11ad1e6b67d350b397392f5c710af7a26f86706464e1efa2b2b65657ca9\",\"name\":\"pkce-challenge\",\"version\":\"5.0.1\"},\"pkg-up-3.1.0.tgz\":{\"integrity\":\"nDywThFk1i4BQK4twPQ6TA4RT8bDY96yeuCVBWL3ePARCiEKDRSrNGbFIgUJpLp+XeIR65v8ra7WuJOFUBtkMA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9c3cb04e1164d62e0140ae2dc0f43a4c0e114fc6c363deb27ae0950562f778f0110a210a0d14ab3466c5220509a4ba7e5de211eb9bfcadaed6b89385501b6430\",\"name\":\"pkg-up\",\"version\":\"3.1.0\"},\"pkijs-3.4.0.tgz\":{\"integrity\":\"emEcLuomt2j03vxD54giVB4SxTjnsqkU692xZOZXHDVoYyypEm+b3jpiTcc+Cf+myooc+/Ly0z01jqeNHVgJGw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7a611c2eea26b768f4defc43e78822541e12c538e7b2a914ebddb164e6571c3568632ca9126f9bde3a624dc73e09ffa6ca8a1cfbf2f2d33d358ea78d1d58091b\",\"name\":\"pkijs\",\"version\":\"3.4.0\"},\"playwright-1.62.1.tgz\":{\"integrity\":\"0M+L3LAD8/nm554LOla9Ayx0j0tmFZ0FBcoQ7F1VuVHpM/XpiC8RcDzBQB8W5+hA8L22THxELzeF+2WcUzvcLg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d0cf8bdcb003f3f9e6e79e0b3a56bd032c748f4b66159d0505ca10ec5d55b951e933f5e9882f11703cc1401f16e7e840f0bdb64c7c442f3785fb659c533bdc2e\",\"name\":\"playwright\",\"version\":\"1.62.1\"},\"playwright-core-1.62.1.tgz\":{\"integrity\":\"wPYSwEBJY9GHraISXqyqtx0na0LpO3XEX7jNDhntbex7tzUS7kLnZsOlFruFJB4Hi/rhDMjXGqHewDZ68nYZVw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c0f612c0404963d187ada2125eacaab71d276b42e93b75c45fb8cd0e19ed6dec7bb73512ee42e766c3a516bb85241e078bfae10cc8d71aa1dec0367af2761957\",\"name\":\"playwright-core\",\"version\":\"1.62.1\"},\"plist-3.1.0.tgz\":{\"integrity\":\"uysumyrvkUX0rX/dEVqt8gC3sTBzd4zoWfLeS29nb53imdaXVvLINYXTI2GNqzaMuvacNx4uJQ8+b3zXR0pkgQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"bb2b2e9b2aef9145f4ad7fdd115aadf200b7b13073778ce859f2de4b6f676f9de299d69756f2c83585d323618dab368cbaf69c371e2e250f3e6f7cd7474a6481\",\"name\":\"plist\",\"version\":\"3.1.0\"},\"postcss-8.5.26.tgz\":{\"integrity\":\"u82N74LFzG8ca+dD8puPnplTXoGH4fTPpVGuIbt36G3qvNlkvfD0lEAZSxaly3KX8TS/L1A1gsCEmvKmBcVbkQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"bbcd8def82c5cc6f1c6be743f29b8f9e99535e8187e1f4cfa551ae21bb77e86deabcd964bdf0f49440194b16a5cb7297f134bf2f503582c0849af2a605c55b91\",\"name\":\"postcss\",\"version\":\"8.5.26\"},\"postcss-selector-parser-7.1.5.tgz\":{\"integrity\":\"KvvtD7SrlBP7dlgkBghEE3r84CABm5SmV2aNcG4oCA+qDnJ/tvKonFVvwWAyyWUEwxuNawdfEAZKP9zM3oZ2Uw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2afbed0fb4ab9413fb765824060844137afce020019b94a657668d706e28080faa0e727fb6f2a89c556fc16032c96504c31b8d6b075f10064a3fdcccde867653\",\"name\":\"postcss-selector-parser\",\"version\":\"7.1.5\"},\"postject-1.0.0-alpha.6.tgz\":{\"integrity\":\"b9Eb8h2eVqNE8edvKdwqkrY6O7kAwmI8kcnBv1NScolYJbo59XUF0noFq+lxbC1yN20bmC0WBEbDC5H/7ASb0A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6fd11bf21d9e56a344f1e76f29dc2a92b63a3bb900c2623c91c9c1bf535272895825ba39f57505d27a05abe9716c2d72376d1b982d160446c30b91ffec049bd0\",\"name\":\"postject\",\"version\":\"1.0.0-alpha.6\"},\"powershell-utils-0.1.0.tgz\":{\"integrity\":\"dM0jVuXJPsDN6DvRpea484tCUaMiXWjuCn++HGTqUWzGDjv5tZkEZldAJ/UMlqRYGFrD/etByo4/xOuC/snX2A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"74cd2356e5c93ec0cde83bd1a5e6b8f38b4251a3225d68ee0a7fbe1c64ea516cc60e3bf9b5990466574027f50c96a458185ac3fdeb41ca8e3fc4eb82fec9d7d8\",\"name\":\"powershell-utils\",\"version\":\"0.1.0\"},\"powershell-utils-0.2.0.tgz\":{\"integrity\":\"ZlsFlG7MtSFCoc5xreOvBAozCJ6Pf06opgJjh9ONEv418xpZSAzNjstD36C6+JwOnfSqOW/9uDkqKjezTdxZhw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"665b05946eccb52142a1ce71ade3af040a33089e8f7f4ea8a6026387d38d12fe35f31a59480ccd8ecb43dfa0baf89c0e9df4aa396ffdb8392a2a37b34ddc5987\",\"name\":\"powershell-utils\",\"version\":\"0.2.0\"},\"pretty-format-27.5.1.tgz\":{\"integrity\":\"Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"41bd60cb93ab3f9fb30dfd81be7cdd9778ec4dfd6a5d531acdbbc2a0a86d2aa56ce3f60ae28cd7e2029024957235ef9c6a334f9f42a80b4302dc552668758499\",\"name\":\"pretty-format\",\"version\":\"27.5.1\"},\"pretty-ms-9.3.0.tgz\":{\"integrity\":\"gjVS5hOP+M3wMm5nmNOucbIrqudzs9v/57bWRHQWLYklXqoXKrVfYW2W9+glfGsqtPgpiz5WwyEEB+ksXIx3gQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"823552e6138ff8cdf0326e6798d3ae71b22baae773b3dbffe7b6d64474162d89255eaa172ab55f616d96f7e8257c6b2ab4f8298b3e56c3210407e92c5c8c7781\",\"name\":\"pretty-ms\",\"version\":\"9.3.0\"},\"proc-log-6.1.0.tgz\":{\"integrity\":\"iG+GYldRf2BQ0UDUAd6JQ/RwzaQy6mXmsk/IzlYyal4A4SNFw54MeH4/tLkF4I5WoWG9SQwuqWzS99jaFQHBuQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"886f866257517f6050d140d401de8943f470cda432ea65e6b24fc8ce56326a5e00e12345c39e0c787e3fb4b905e08e56a161bd490c2ea96cd2f7d8da1501c1b9\",\"name\":\"proc-log\",\"version\":\"6.1.0\"},\"process-nextick-args-2.0.1.tgz\":{\"integrity\":\"3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"de8b943a9421b60adb39ad7b27bfaec4e4e92136166863fbfc0868477f80fbfd5ef6c92bcde9468bf757cc4632bdbc6e6c417a5a7db2a6c7132a22891459f56a\",\"name\":\"process-nextick-args\",\"version\":\"2.0.1\"},\"process-warning-4.0.1.tgz\":{\"integrity\":\"3c2LzQ3rY9d0hc1emcsHhfT9Jwz0cChib/QN89oME2R451w5fy3f0afAhERFZAwrbDU43wk12d0ORBpDVME50Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ddcd8bcd0deb63d77485cd5e99cb0785f4fd270cf47028626ff40df3da0c136478e75c397f2ddfd1a7c0844445640c2b6c3538df0935d9dd0e441a4354c139d1\",\"name\":\"process-warning\",\"version\":\"4.0.1\"},\"process-warning-5.1.0.tgz\":{\"integrity\":\"jQSaVHsPgtyw60e1rQ/A+/ArPEj/S8pS/vFnyGa/gYFXrKk/6RuDkoqVDQ5NI5MmS01698ltlAk0NoDBNLujRw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8d049a547b0f82dcb0eb47b5ad0fc0fbf02b3c48ff4bca52fef167c866bf818157aca93fe91b83928a950d0e4d2393264b4d7af7c96d9409343680c134bba347\",\"name\":\"process-warning\",\"version\":\"5.1.0\"},\"progress-2.0.3.tgz\":{\"integrity\":\"7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ecf887b4b965e4b767288330d74d08fbcc495d1e605b6430598913ea226f6b46d78ad64a6bf5ccad26dd9a0debd979da89dcfd42e99dd153da32b66517d57db0\",\"name\":\"progress\",\"version\":\"2.0.3\"},\"promise-retry-2.0.1.tgz\":{\"integrity\":\"y+WKFlBR8BGXnsNlIHFGPZmyDf3DFMoLhaflAnyZgV6rG6xu+JwesTo2Q9R6XwYmtmwAFCkAk3e35jEdoeh/3g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"cbe58a165051f011979ec3652071463d99b20dfdc314ca0b85a7e5027c99815eab1bac6ef89c1eb13a3643d47a5f0626b66c001429009377b7e6311da1e87fde\",\"name\":\"promise-retry\",\"version\":\"2.0.1\"},\"prompts-2.4.2.tgz\":{\"integrity\":\"NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"37136ffe42e0b8203ba778c4f282f668406cac95a001a901a609a02ba9693d657e5ae3a663aaf6ff36c05673fe4fc6d0940d27cc75d2252256d07abbca5683d9\",\"name\":\"prompts\",\"version\":\"2.4.2\"},\"proper-lockfile-4.1.2.tgz\":{\"integrity\":\"TjNPblN4BwAWMXU8s9AEz4JmQxnD1NNL7bNOY/AKUzyamc379FWASUhc/K1pL2noVb+XmZKLL68cjzLsiOAMaA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4e334f6e537807001631753cb3d004cf82664319c3d4d34bedb34e63f00a533c9a99cdfbf4558049485cfcad692f69e855bf9799928b2faf1c8f32ec88e00c68\",\"name\":\"proper-lockfile\",\"version\":\"4.1.2\"},\"proxy-addr-2.0.7.tgz\":{\"integrity\":\"llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"96542c30b4940d43d3e388ddad4fcedfbaa59e27e2b433fe670ae699972848ac8b2afb59c69c95d27dbf6c3fcde2d040019fe024475953b28cadaa0ad7e5d802\",\"name\":\"proxy-addr\",\"version\":\"2.0.7\"},\"proxy-chain-3.0.0.tgz\":{\"integrity\":\"p9DbNWMUCn8FJz9u+RTO82fwD3NFoYZgax5vtxd0FYPQ6IwpxX65WxeL64Fm/hZQVS2+bWB+XRy3+iDVaBsUeg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a7d0db3563140a7f05273f6ef914cef367f00f7345a186606b1e6fb717741583d0e88c29c57eb95b178beb8166fe1650552dbe6d607e5d1cb7fa20d5681b147a\",\"name\":\"proxy-chain\",\"version\":\"3.0.0\"},\"pump-3.0.4.tgz\":{\"integrity\":\"VS7sjc6KR7e1ukRFhQSY5LM2uBWAUPiOPa/A3mkKmiMwSmRFUITt0xuj+/lesgnCv+dPIEYlkzrcyXgquIHMcA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"552eec8dce8a47b7b5ba4445850498e4b336b8158050f88e3dafc0de690a9a23304a64455084edd31ba3fbf95eb209c2bfe74f204625933adcc9782ab881cc70\",\"name\":\"pump\",\"version\":\"3.0.4\"},\"punycode-2.3.1.tgz\":{\"integrity\":\"vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"bd8b7b503d54f5683ad77f2c84bb4b3af740bbef03b02fe2945b44547707fb0c9d712a4d136d007d239db9fe8c91115a84be4563b5f5a14ee7295645b5fabc16\",\"name\":\"punycode\",\"version\":\"2.3.1\"},\"pvtsutils-1.3.6.tgz\":{\"integrity\":\"PLgQXQ6H2FWCaeRak8vvk1GW462lMxB5s3Jm673N82zI4vqtVUPuZdffdZbPDFRoU8kAhItWFtPCWiPpp4/EDg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3cb8105d0e87d8558269e45a93cbef935196e3ada5331079b37266ebbdcdf36cc8e2faad5543ee65d7df7596cf0c546853c900848b5616d3c25a23e9a78fc40e\",\"name\":\"pvtsutils\",\"version\":\"1.3.6\"},\"pvutils-1.2.0.tgz\":{\"integrity\":\"BbubeCEyTuQjVMakvJQ/Sxbc93F2pwmbsxONT/ZRrwU7Ua38d8unYTwXpTVLAKJ4BDuH9IGztCjQcd/N/39Dvg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"05bb9b7821324ee42354c6a4bc943f4b16dcf77176a7099bb3138d4ff651af053b51adfc77cba7613c17a5354b00a278043b87f481b3b428d071dfcdff7f43be\",\"name\":\"pvutils\",\"version\":\"1.2.0\"},\"qs-6.15.3.tgz\":{\"integrity\":\"O9gl3zCl5h5blw1KGUzQKhA5oUXSl8rwUIM5o0S3nCXMliSvy5Dzx7/DJcI+SwgICv+IneSZwhBh1oSyEHA71A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3bd825df30a5e61e5b970d4a194cd02a1039a145d297caf0508339a344b79c25cc9624afcb90f3c7bfc325c23e4b08080aff889de499c21061d684b210703bd4\",\"name\":\"qs\",\"version\":\"6.15.3\"},\"queue-microtask-1.2.3.tgz\":{\"integrity\":\"NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"36e68d49ae9f94a4f925a498433268934e09cd32f5080e9a1a1bf9adf2d6dcf82a03e3360a1a59427002f21f22e19164052f17e51aa40c11c0eebe217a3dcaf4\",\"name\":\"queue-microtask\",\"version\":\"1.2.3\"},\"quick-format-unescaped-4.0.4.tgz\":{\"integrity\":\"tYC1Q1hgyRuHgloV/YXs2w15unPVh8qfu/qCTfhTYamaw7fyhumKa2yGpdSo87vY32rIclj+4fWYQXUMs9EHvg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b580b5435860c91b87825a15fd85ecdb0d79ba73d587ca9fbbfa824df85361a99ac3b7f286e98a6b6c86a5d4a8f3bbd8df6ac87258fee1f59841750cb3d107be\",\"name\":\"quick-format-unescaped\",\"version\":\"4.0.4\"},\"quick-lru-5.1.1.tgz\":{\"integrity\":\"WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5aec802d18d63c31adb7fc3326269d3b901763ef2167cd215697ba3328af82b691116ef9d57dd26e146f1b778b28e60dfbc544bea2dc7f7c1d9ede386784b848\",\"name\":\"quick-lru\",\"version\":\"5.1.1\"},\"quickjs-emscripten-0.32.0.tgz\":{\"integrity\":\"So0Sqw869y/S2oE3Nuc0uT3Dhqgvsj8FSrwBdsuTosVsG8ME5/OcudU1GxsrIFdFABgy17GHnTVO9TYV/bLQcA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4a8d12ab0f3af72fd2da813736e734b93dc386a82fb23f054abc0176cb93a2c56c1bc304e7f39cb9d5351b1b2b205745001832d7b1879d354ef53615fdb2d070\",\"name\":\"quickjs-emscripten\",\"version\":\"0.32.0\"},\"quickjs-emscripten-core-0.32.0.tgz\":{\"integrity\":\"QFnPfjFey8EqknSrSxe1hZrf1/8z7/6s1QzGOmKo6++02r7QRRX7ZoyNaZh7JuVjWsVW87KnQrbZqnHkOAzUyg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4059cf7e315ecbc12a9274ab4b17b5859adfd7ff33effeacd50cc63a62a8ebefb4dabed04515fb668c8d69987b26e5635ac556f3b2a742b6d9aa71e4380cd4ca\",\"name\":\"quickjs-emscripten-core\",\"version\":\"0.32.0\"},\"range-parser-1.3.0.tgz\":{\"integrity\":\"hek2mFQpPuI4E1BBKrSto+BU3e3x4xuarsbiwr3+lf7p44juvFMV0XFWQAP3xUyqXA4RrXLIoaSUGbSt056ZMw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"85e9369854293ee2381350412ab4ada3e054ddedf1e31b9aaec6e2c2bdfe95fee9e388eebc5315d171564003f7c54caa5c0e11ad72c8a1a49419b4add39e9933\",\"name\":\"range-parser\",\"version\":\"1.3.0\"},\"raw-body-3.0.2.tgz\":{\"integrity\":\"K5zQjDllxWkf7Z5xJdV0/B0WTNqx6vxG70zJE4N0kBs4LovmEYWJzQGxC9bS9RAKu3bgM40lrd5zoLJ12MQ5BA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2b9cd08c3965c5691fed9e7125d574fc1d164cdab1eafc46ef4cc9138374901b382e8be6118589cd01b10bd6d2f5100abb76e0338d25adde73a0b275d8c43904\",\"name\":\"raw-body\",\"version\":\"3.0.2\"},\"react-19.2.8.tgz\":{\"integrity\":\"PWaYA1L/q9u2u7xYQi+Y3L3Yfnie7XyLeaJICV1MGD6LprsBxcAqGjYyr0eY3p+QdsA+x/Irkt4Qif8D63+Sbw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3d66980352ffabdbb6bbbc58422f98dcbdd87e789eed7c8b79a248095d4c183e8ba6bb01c5c02a1a3632af4798de9f9076c03ec7f22b92de1089ff03eb7f926f\",\"name\":\"react\",\"version\":\"19.2.8\"},\"react-dom-19.2.8.tgz\":{\"integrity\":\"rVprimfGBG3DR+Tq0IQG2DT5PxKth1WIGDmj5yPmlzr4YBe7uyE+Du4oVqTDXZSHGGGXRtTJEGSSePyQCMBglQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ad5a6b8a67c6046dc347e4ead08406d834f93f12ad8755881839a3e723e6973af86017bbbb213e0eee2856a4c35d948718619746d4c910649278fc9008c06095\",\"name\":\"react-dom\",\"version\":\"19.2.8\"},\"react-hook-form-7.85.0.tgz\":{\"integrity\":\"U2MTriFXnclmV4rOE20p2DcRFv5WEg3FIcBFOKcOLFHDVvGIMPvLTkTWefUsonmlaVy23khVDxDWym6uJVGOzw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"536313ae21579dc966578ace136d29d8371116fe56120dc521c04538a70e2c51c356f18830fbcb4e44d679f52ca279a5695cb6de48550f10d6ca6eae25518ecf\",\"name\":\"react-hook-form\",\"version\":\"7.85.0\"},\"react-i18next-17.0.11.tgz\":{\"integrity\":\"cDtkXgxjuFTWUH6V+aQn1Ve5vDiUztCNPWW5GtSHDccsgRXO1nE6QFWCEmc1KAutrb3OUv87wFShJL5RhUwPXg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"703b645e0c63b854d6507e95f9a427d557b9bc3894ced08d3d65b91ad4870dc72c8115ced6713a405582126735280badadbdce52ff3bc054a124be51854c0f5e\",\"name\":\"react-i18next\",\"version\":\"17.0.11\"},\"react-is-17.0.2.tgz\":{\"integrity\":\"w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c361accae90beb62099e569f7ff9d17a03d047de02fd75da9af3169921d1278cbb4ecff8a1c1919931ef3acf0f484ea90777563ab0ff9ee7ae539b1db81b10e3\",\"name\":\"react-is\",\"version\":\"17.0.2\"},\"react-is-19.2.8.tgz\":{\"integrity\":\"s5un28nYxKJw5gvUHyW5PCC28CvBqLu9r3cWgzHT4Vo/5fqqkFcdRYsGcKf50WMPpjjFZS5d76fn3YCo2njKwQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b39ba7dbc9d8c4a270e60bd41f25b93c20b6f02bc1a8bbbdaf77168331d3e15a3fe5faaa90571d458b0670a7f9d1630fa638c5652e5defa7e7dd80a8da78cac1\",\"name\":\"react-is\",\"version\":\"19.2.8\"},\"react-redux-9.3.0.tgz\":{\"integrity\":\"KQopgqFo/p/fgmAs5qz6p5RWaNAzq40WAu7fJIXnQpYxFPbJYtsJPWvGeF2rOBaY/kEuV77AVsX8TsQzKm+A/g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"290a2982a168fe9fdf82602ce6acfaa7945668d033ab8d1602eedf2485e742963114f6c962db093d6bc6785dab381698fe412e57bec056c5fc4ec4332a6f80fe\",\"name\":\"react-redux\",\"version\":\"9.3.0\"},\"react-remove-scroll-2.7.2.tgz\":{\"integrity\":\"Iqb9NjCCTt6Hf+vOdNIZGdTiH1QSqr27H/Ek9sv/a97gfueI/5h1s3yRi1nngzMUaOOToin5dI1dXKdXiF+u0Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"22a6fd3630824ede877febce74d21919d4e21f5412aabdbb1ff124f6cbff6bdee07ee788ff9875b37c918b59e783331468e393a229f9748d5d5ca757885faed1\",\"name\":\"react-remove-scroll\",\"version\":\"2.7.2\"},\"react-remove-scroll-bar-2.3.8.tgz\":{\"integrity\":\"9r+yi9+mgU33AKcj6IbT9oRCO78WriSj6t/cF8DWBZJ9aOGPOTEDvdUDz1FwKim7QXWwmHqtdHnRJfhAxEG46Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f6bfb28bdfa6814df700a723e886d3f684423bbf16ae24a3eadfdc17c0d605927d68e18f393103bdd503cf51702a29bb4175b0987aad7479d125f840c441b8e9\",\"name\":\"react-remove-scroll-bar\",\"version\":\"2.3.8\"},\"react-router-8.3.0.tgz\":{\"integrity\":\"qyPMvW83jGIct3yiieisxdk9M745anqhpIMKN5m1t6yBMfgVPpt77aHOqs5fUlEJRMCGffg9BaQLH9oPVOL7xQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ab23ccbd6f378c621cb77ca289e8acc5d93d33be396a7aa1a4830a3799b5b7ac8131f8153e9b7beda1ceaace5f52510944c0867df83d05a40b1fda0f54e2fbc5\",\"name\":\"react-router\",\"version\":\"8.3.0\"},\"react-style-singleton-2.2.3.tgz\":{\"integrity\":\"b6jSvxvVnyptAiLjbkWLE/lOnR4lfTtDAl+eUC7RZy+QQWc6wRzIV2CE6xBuMmDxc2qIihtDCZD5NPOFl7fRBQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6fa8d2bf1bd59f2a6d0222e36e458b13f94e9d1e257d3b43025f9e502ed1672f9041673ac11cc8576084eb106e3260f1736a888a1b430990f934f38597b7d105\",\"name\":\"react-style-singleton\",\"version\":\"2.2.3\"},\"read-binary-file-arch-1.0.6.tgz\":{\"integrity\":\"BNg9EN3DD3GsDXX7Aa8O4p92sryjkmzYYgmgTAc6CA4uGLEDzFfxOxugu21akOxpcXHiEgsYkC6nPsQvLLLmEg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"04d83d10ddc30f71ac0d75fb01af0ee29f76b2bca3926cd86209a04c073a080e2e18b103cc57f13b1ba0bb6d5a90ec697171e2120b18902ea73ec42f2cb2e612\",\"name\":\"read-binary-file-arch\",\"version\":\"1.0.6\"},\"readable-stream-2.3.8.tgz\":{\"integrity\":\"8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f29d00524e173838087b04a2d25f04a63b3e1159d688aecda03204194d07844efe67263c0f520c63ba1dbb9951ac55c683bd4bd79286f10acf9ae9b8e514ed74\",\"name\":\"readable-stream\",\"version\":\"2.3.8\"},\"readable-stream-3.6.2.tgz\":{\"integrity\":\"9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f6efec9e20ab6370f959db04447cc71381b66025eaa06e454c7522082e1221bafa5dc2d9058d39c9af442a361e93d3b9c4e0308c6abed497460404bb43d49ca0\",\"name\":\"readable-stream\",\"version\":\"3.6.2\"},\"readdirp-5.1.1.tgz\":{\"integrity\":\"Kko+Y5XQ6fM+Ce3dq3m9YGxnacYZYl9cA1wZjaF3Vbry2L3i1qVg8+CAgNPsXRArPMUMCaOR7oa9Nqntc43JKA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2a4a3e6395d0e9f33e09edddab79bd606c6769c619625f5c035c198da17755baf2d8bde2d6a560f3e08080d3ec5d102b3cc50c09a391ee86bd36a9ed738dc928\",\"name\":\"readdirp\",\"version\":\"5.1.1\"},\"real-require-0.2.0.tgz\":{\"integrity\":\"57frrGM/OCTLqLOAh0mhVA9VBMHd+9U7Zb2THMGdBUoZVOtGbJzjxsYGDJ3A9AYYCP4hn6y1TVbaOfzWtm5GFg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e7b7ebac633f3824cba8b3808749a1540f5504c1ddfbd53b65bd931cc19d054a1954eb466c9ce3c6c6060c9dc0f4061808fe219facb54d56da39fcd6b66e4616\",\"name\":\"real-require\",\"version\":\"0.2.0\"},\"real-require-1.0.0.tgz\":{\"integrity\":\"P4nbQYQfePJxRSmY+v/KINxVucm4NF3p3s7pJveMTtom52FR4YGltUQLB8idDXwDDWW+eYrWDFbuzUnjoWHF7g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3f89db41841f78f271452998faffca20dc55b9c9b8345de9decee926f78c4eda26e76151e181a5b5440b07c89d0d7c030d65be798ad60c56eecd49e3a161c5ee\",\"name\":\"real-require\",\"version\":\"1.0.0\"},\"recast-0.23.21.tgz\":{\"integrity\":\"mFAyJq9vUbSTARLZUvAEf1z3YxlvAwswbmxMx2mPA/MSm4KmpwvwvhsH/NIrZhyOuwD60Lzyw2qh83uCbgTPYw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"98503226af6f51b4930112d952f0047f5cf763196f030b306e6c4cc7698f03f3129b82a6a70bf0be1b07fcd22b661c8ebb00fad0bcf2c36aa1f37b826e04cf63\",\"name\":\"recast\",\"version\":\"0.23.21\"},\"recharts-3.10.1.tgz\":{\"integrity\":\"QXFrvt6IVcw7eeZCoyXTwkIJAX3Dv1nyVhMicXJ47GsGDDpcN8z6o644DibE9XjpBTThtsomLKnTV6lc+cVFUA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"41716bbede8855cc3b79e642a325d3c24209017dc3bf59f2561322717278ec6b060c3a5c37ccfaa3ae380e26c4f578e90534e1b6ca262ca9d357a95cf9c54550\",\"name\":\"recharts\",\"version\":\"3.10.1\"},\"redent-3.0.0.tgz\":{\"integrity\":\"6tDA8g98We0zd0GvVeMT9arEOnTw9qM03L9cJXaCjrip1OO764RDBLBfrB4cwzNGDj5OA5ioymC9GkizgWJDUg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ead0c0f20f7c59ed337741af55e313f5aac43a74f0f6a334dcbf5c2576828eb8a9d4e3bbeb844304b05fac1e1cc333460e3e4e0398a8ca60bd1a48b381624352\",\"name\":\"redent\",\"version\":\"3.0.0\"},\"redux-5.0.1.tgz\":{\"integrity\":\"M9/ELqF6fy8FwmkpnF0S3YKOqMyoWJ4+CS5Efg2ct3oY9daQvd/Pc71FpGZsVsbl3Cpb+IIcjBDUnnyBdQbq4w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"33dfc42ea17a7f2f05c269299c5d12dd828ea8cca8589e3e092e447e0d9cb77a18f5d690bddfcf73bd45a4666c56c6e5dc2a5bf8821c8c10d49e7c817506eae3\",\"name\":\"redux\",\"version\":\"5.0.1\"},\"redux-thunk-3.1.0.tgz\":{\"integrity\":\"NW2r5T6ksUKXCabzhL9z+h206HQw/NJkcLm1GPImRQ8IzfXwRGqjVhKJGauHirT0DAuyy6hjdnMZaRoAcy0Klw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"356dabe53ea4b1429709a6f384bf73fa1db4e87430fcd26470b9b518f226450f08cdf5f0446aa356128919ab878ab4f40c0bb2cba863767319691a00732d0a97\",\"name\":\"redux-thunk\",\"version\":\"3.1.0\"},\"require-directory-2.1.1.tgz\":{\"integrity\":\"fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7c6c4423bfb0b06f71aef763b2b9662f6d8e3134e21d1c0032ba2211e320abc833a0b0bf3d0afb46c4434932d483f6d9019b45f9354890773aff84482abba2f9\",\"name\":\"require-directory\",\"version\":\"2.1.1\"},\"require-from-string-2.0.2.tgz\":{\"integrity\":\"Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5dfd2759ee91b1ece214cbbe029f5b8a251b9a996ae92f7fa7eef0ed85cffc904786b5030d48706bebc0372b9bbaa7d9593bde53ffc36151ac0c6ed128bfef13\",\"name\":\"require-from-string\",\"version\":\"2.0.2\"},\"resedit-1.7.2.tgz\":{\"integrity\":\"vHjcY2MlAITJhC0eRD/Vv8Vlgmu9Sd3LX9zZvtGzU5ZImdTN3+d6e/4mnTyV8vEbyf1sgNIrWxhWlrys52OkEA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"bc78dc6363250084c9842d1e443fd5bfc565826bbd49ddcb5fdcd9bed1b353964899d4cddfe77a7bfe269d3c95f2f11bc9fd6c80d22b5b185696bcace763a410\",\"name\":\"resedit\",\"version\":\"1.7.2\"},\"reselect-5.2.0.tgz\":{\"integrity\":\"AgZ3UOZm3YndfrJ4OYjgrT7bmCm/1iqkjvEfH/oYjzh6PD2qw4QuT3jjnXIrpdt4MTpMXclMT3lXbmRY+XRakw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"02067750e666dd89dd7eb2783988e0ad3edb9829bfd62aa48ef11f1ffa188f387a3c3daac3842e4f78e39d722ba5db78313a4c5dc94c4f79576e6458f9745a93\",\"name\":\"reselect\",\"version\":\"5.2.0\"},\"resolve-alpn-1.2.1.tgz\":{\"integrity\":\"0a1F4l73/ZFZOakJnQ3FvkJ2+gSTQWz/r2KE5OdDY0TxPm5h4GkqkWWfM47T7HsbnOtcJVEF4epCVy6u7Q3K+g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d1ad45e25ef7fd915939a9099d0dc5be4276fa0493416cffaf6284e4e7436344f13e6e61e0692a91659f338ed3ec7b1b9ceb5c255105e1ea42572eaeed0dcafa\",\"name\":\"resolve-alpn\",\"version\":\"1.2.1\"},\"resolve-from-4.0.0.tgz\":{\"integrity\":\"pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a5bfcc6265ecb40932b11171f2988d235b4614d408140def904dc6ab812e035745ea01e9ffebe066ab021896a9bf2f0ddd0fb8a3b170beab8f25c9d9ed1632e2\",\"name\":\"resolve-from\",\"version\":\"4.0.0\"},\"responselike-2.0.1.tgz\":{\"integrity\":\"4gl03wn3hj1HP3yzgdI7d3lCkF95F21Pz4BPGvKHinyQzALR5CapwC8yIi0Rh58DEMQ/SguC03wFj2k0M/mHhw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e20974df09f7863d473f7cb381d23b777942905f79176d4fcf804f1af2878a7c90cc02d1e426a9c02f32222d11879f0310c43f4a0b82d37c058f693433f98787\",\"name\":\"responselike\",\"version\":\"2.0.1\"},\"restore-cursor-5.1.0.tgz\":{\"integrity\":\"oMA2dcrw6u0YfxJQXm342bFKX/E4sG9rbTzO9ptUcR/e8A33cHuvStiYOwH7fszkZlZ1z/ta9AAoPk2F4qIOHA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a0c03675caf0eaed187f12505e6df8d9b14a5ff138b06f6b6d3ccef69b54711fdef00df7707baf4ad8983b01fb7ecce4665675cffb5af400283e4d85e2a20e1c\",\"name\":\"restore-cursor\",\"version\":\"5.1.0\"},\"ret-0.5.0.tgz\":{\"integrity\":\"I1XxrZSQ+oErkRR4jYbAyEEu2I0avBvvMM5JN+6EBprOGRCs63ENqZ3vjavq8fBw2+62G5LF5XelKwuJpcvcxw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2355f1ad9490fa812b9114788d86c0c8412ed88d1abc1bef30ce4937ee84069ace1910aceb710da99def8dabeaf1f070dbeeb61b92c5e577a52b0b89a5cbdcc7\",\"name\":\"ret\",\"version\":\"0.5.0\"},\"retry-0.12.0.tgz\":{\"integrity\":\"9LkiTwjUh6rT555DtE9rTX+BKByPfrMzEAtnlEtdEwr3Nkffwiihqe2bWADg+OQRjt9gl6ICdmB/ZFDCGAtSow==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f4b9224f08d487aad3e79e43b44f6b4d7f81281c8f7eb333100b67944b5d130af73647dfc228a1a9ed9b5800e0f8e4118edf6097a20276607f6450c2180b52a3\",\"name\":\"retry\",\"version\":\"0.12.0\"},\"reusify-1.1.0.tgz\":{\"integrity\":\"g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"83a4147dfd38a19a47b34786e69f37ac52e11de574d2e83f61ff6764ce9f2de52b3e0b814e44d039da40596b29321e794d97d54033da37735025f6d5440c5d23\",\"name\":\"reusify\",\"version\":\"1.1.0\"},\"rfdc-1.4.1.tgz\":{\"integrity\":\"q1b3N5QkRUWUl7iyylaaj3kOpIT0N2i9MqIEQXP73GVsN9cw3fdx8X63cEmWhJGi2PPCF23Ijp7ktmd39rawIA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ab56f737942445459497b8b2ca569a8f790ea484f43768bd32a2044173fbdc656c37d730ddf771f17eb77049968491a2d8f3c2176dc88e9ee4b66777f6b6b020\",\"name\":\"rfdc\",\"version\":\"1.4.1\"},\"rimraf-2.6.3.tgz\":{\"integrity\":\"mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9b0a9e5b95ec036a807a31b8ea061d10d6b15e3c7da2744d09f9fb2f476eb8fe210ae4c88bf40eecf0cad3b2897e9d5dfa2cd63ebcc4243712a816b439942b88\",\"name\":\"rimraf\",\"version\":\"2.6.3\"},\"roarr-2.15.4.tgz\":{\"integrity\":\"CHhPh+UNHD2GTXNYhPWLnU8ONHdI+5DI+4EYIAOaiD63rHeYlZvyh8P+in5999TTSFgUYuKUAjzRI4mdh/p+2A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"08784f87e50d1c3d864d735884f58b9d4f0e347748fb90c8fb811820039a883eb7ac7798959bf287c3fe8a7e7df7d4d348581462e294023cd123899d87fa7ed8\",\"name\":\"roarr\",\"version\":\"2.15.4\"},\"rolldown-1.2.4.tgz\":{\"integrity\":\"rSr7irW0K7QRWzjdJXqZowkcRdDtjRduh43rBltnVKd0VFq839l1lJoDvGJb6gl7+4rTTCrPWu+YfujUL8Ug7w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ad2afb8ab5b42bb4115b38dd257a99a3091c45d0ed8d176e878deb065b6754a774545abcdfd975949a03bc625bea097bfb8ad34c2acf5aef987ee8d42fc520ef\",\"name\":\"rolldown\",\"version\":\"1.2.4\"},\"router-2.2.0.tgz\":{\"integrity\":\"nLTrUKm2UyiL7rlhapu/Zl45FwNgkZGaCpZbIHajDYgwlJCOzLSk+cIPAnsEqV955GjILJnKbdQC1nVPz+gAYQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9cb4eb50a9b653288beeb9616a9bbf665e3917036091919a0a965b2076a30d883094908eccb4a4f9c20f027b04a95f79e468c82c99ca6dd402d6754fcfe80061\",\"name\":\"router\",\"version\":\"2.2.0\"},\"run-applescript-7.1.0.tgz\":{\"integrity\":\"DPe5pVFaAsinSaV6QjQ6gdiedWDcRCbUuiQfQa2wmWV7+xC9bGulGI8+TdRmoFkAPaBXk8CrAbnlY2ISniJ47Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0cf7b9a5515a02c8a749a57a42343a81d89e7560dc4426d4ba241f41adb099657bfb10bd6c6ba5188f3e4dd466a059003da05793c0ab01b9e56362129e2278ed\",\"name\":\"run-applescript\",\"version\":\"7.1.0\"},\"run-parallel-1.2.0.tgz\":{\"integrity\":\"5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e65e15c9947ce8b67f943c594d1ea3a8bf00144d92d0814b30fdba01b8ec2d5003c4776107f734194b07fb2dfd51f0a2dddcf3f0e950b8f9a768938ca031d004\",\"name\":\"run-parallel\",\"version\":\"1.2.0\"},\"safe-buffer-5.1.2.tgz\":{\"integrity\":\"Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"19dd94641243917958ec66c9c5fb04f3f9ef2a45045351b7f1cd6c88de903fa6bd3d3f4c98707c1a7a6c71298c252a05f0b388aedf2e77fc0fb688f2b381bafa\",\"name\":\"safe-buffer\",\"version\":\"5.1.2\"},\"safe-buffer-5.2.1.tgz\":{\"integrity\":\"rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ae9dd2a34eca71d9a629b1af81a37141226bedb1954959394bd12ad45fa9a5b468ef4f9879a0f1930e4377c34f37e183e9b8e7626d95b8fb825e6a6e62f9825d\",\"name\":\"safe-buffer\",\"version\":\"5.2.1\"},\"safe-regex2-5.1.1.tgz\":{\"integrity\":\"mOSBvHGDZMuIEZMdOz/aCEYDCv0E7nfcNsIhUF+/P+xC7Hyf3FkvymqgPbg9D1EdSGu+uKbJgy09K/RKKc7kJA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"98e481bc718364cb8811931d3b3fda0846030afd04ee77dc36c221505fbf3fec42ec7c9fdc592fca6aa03db83d0f511d486bbeb8a6c9832d3d2bf44a29cee424\",\"name\":\"safe-regex2\",\"version\":\"5.1.1\"},\"safe-stable-stringify-2.5.0.tgz\":{\"integrity\":\"b3rppTKm9T+PsVCBEOUR46GWI7fdOs00VKZ1+9c1EWDaDMvjQc6tUwuFyIprgGgTcWoVHSKrU8H31ZHA2e0RHA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6f7ae9a532a6f53f8fb1508110e511e3a19623b7dd3acd3454a675fbd7351160da0ccbe341cead530b85c88a6b806813716a151d22ab53c1f7d591c0d9ed111c\",\"name\":\"safe-stable-stringify\",\"version\":\"2.5.0\"},\"safer-buffer-2.1.2.tgz\":{\"integrity\":\"YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"619a372bcd920fb462ca2d04d4440fa232f3ee4a5ea6749023d2323db1c78355d75debdbe5d248eeda72376003c467106c71bbbdcc911e4d1c6f0a9c42b894b6\",\"name\":\"safer-buffer\",\"version\":\"2.1.2\"},\"sanitize-filename-1.6.4.tgz\":{\"integrity\":\"9ZyI08PsvdQl2r/bBIGubpVdR3RR9sY6RDiWFPreA21C/EFlQhmgo20UZlNjZMMZNubusLhAQozkA0Od5J21Eg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f59c88d3c3ecbdd425dabfdb0481ae6e955d477451f6c63a44389614fade036d42fc41654219a0a36d1466536364c31936e6eeb0b840428ce403439de49db512\",\"name\":\"sanitize-filename\",\"version\":\"1.6.4\"},\"sax-1.6.1.tgz\":{\"integrity\":\"42tBVwLWnaQvW5zc4HbZrTuWccECCZfBi92FDuwtqxasH+JbPB3/FOKb1m222K42R4WxuxzzMsTswfzgtSu64Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e36b415702d69da42f5b9cdce076d9ad3b9671c1020997c18bdd850eec2dab16ac1fe25b3c1dff14e29bd66db6d8ae364785b1bb1cf332c4ecc1fce0b52bbae1\",\"name\":\"sax\",\"version\":\"1.6.1\"},\"saxes-6.0.0.tgz\":{\"integrity\":\"xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c4083b48e9c486b9b9cc8de9b8e38acb2d4e31c32520965834963bc4b0704b37b452384f2e759f8f6185d84a53d239b368928858a1cbb1a4926a37f7e5b7189c\",\"name\":\"saxes\",\"version\":\"6.0.0\"},\"scheduler-0.27.0.tgz\":{\"integrity\":\"eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"78dbfe5ab55b2aed5fdef6d8253ff1b62179b320391cf20cb5ff48818fe72a0d2c5aacc0504bea63fc66ece71973fa9a7cbc7f88ef4580e99e480a78bf9b62fd\",\"name\":\"scheduler\",\"version\":\"0.27.0\"},\"secure-json-parse-4.1.0.tgz\":{\"integrity\":\"l4KnYfEyqYJxDwlNVyRfO2E4NTHfMKAWdUuA8J0yve2Dz/E/PdBepY03RvyJpssIpRFwJoCD55wA+mEDs6ByWA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9782a761f132a982710f094d57245f3b61383531df30a016754b80f09d32bded83cff13f3dd05ea58d3746fc89a6cb08a51170268083e79c00fa6103b3a07258\",\"name\":\"secure-json-parse\",\"version\":\"4.1.0\"},\"semver-5.7.2.tgz\":{\"integrity\":\"cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"701ce79d0f4a8c9a94ebb079d91302eb908c6ab2b6eb4d161676e471a8b05aadf1cbfe61685265b21827a63a2f31527e1df7f8f5df06127d1bf3b0b9a43435d2\",\"name\":\"semver\",\"version\":\"5.7.2\"},\"semver-6.3.1.tgz\":{\"integrity\":\"BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"051ed5bc30951cefaadb10445ac9314ba0c9135a919dbec3c7352ba206fbd425a849f89c07162c88019df8a9749a6abf329ac6f7202b464cab4314cee978cccc\",\"name\":\"semver\",\"version\":\"6.3.1\"},\"semver-7.7.4.tgz\":{\"integrity\":\"vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"bc5282d8812d427561a53efc875629f30cf0adff0233e33328c1c62597c1b738593727111675ec1e4e84e53c4892432c80d4bb99d5f700607bc7640cd9d8b894\",\"name\":\"semver\",\"version\":\"7.7.4\"},\"semver-7.8.5.tgz\":{\"integrity\":\"Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"63bfca0ec6fc2e3a28669c1aa86cae94ee8342592c8029dc7211c693eb19218e1206f52870c044147e54af57c8e1d57e26f974c3a723bee71a222e34a6e462a0\",\"name\":\"semver\",\"version\":\"7.8.5\"},\"semver-compare-1.0.0.tgz\":{\"integrity\":\"YM3/ITh2MJ5MtzaM429anh+x2jiLVjqILF4m4oyQB18W7Ggea7BfqdH/wGMK7dDiMghv/6WG7znWMwUDzJiXow==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"60cdff213876309e4cb7368ce36f5a9e1fb1da388b563a882c5e26e28c90075f16ec681e6bb05fa9d1ffc0630aedd0e232086fffa586ef39d6330503cc9897a3\",\"name\":\"semver-compare\",\"version\":\"1.0.0\"},\"send-1.2.1.tgz\":{\"integrity\":\"1gnZf7DFcoIcajTjTwjwuDjzuz4PPcY2StKPlsGAQ1+YH20IRVrBaXSWmdjowTJ6u8Rc01PoYOGHXfP1mYcZNQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d609d97fb0c572821c6a34e34f08f0b838f3bb3e0f3dc6364ad28f96c180435f981f6d08455ac169749699d8e8c1327abbc45cd353e860e1875df3f599871935\",\"name\":\"send\",\"version\":\"1.2.1\"},\"serialize-error-7.0.1.tgz\":{\"integrity\":\"8I8TjW5KMOKsZQTvoxjuSIa7foAwPWGOts+6o7sgjz41/qMD9VQHEDxi6PBvK2l0MXUmqZyNpUK+T2tQaaElvw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f08f138d6e4a30e2ac6504efa318ee4886bb7e80303d618eb6cfbaa3bb208f3e35fea303f55407103c62e8f06f2b6974317526a99c8da542be4f6b5069a125bf\",\"name\":\"serialize-error\",\"version\":\"7.0.1\"},\"serve-static-2.2.1.tgz\":{\"integrity\":\"xRXBn0pPqQTVQiC8wyQrKs2MOlX24zQ0POGaj0kultvoOCstBQM5yvOhAVSUwOMjQtTvsPWoNCHfPGwaaQJhTw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c515c19f4a4fa904d54220bcc3242b2acd8c3a55f6e334343ce19a8f492e96dbe8382b2d050339caf3a1015494c0e32342d4efb0f5a83421df3c6c1a6902614f\",\"name\":\"serve-static\",\"version\":\"2.2.1\"},\"set-cookie-parser-2.7.2.tgz\":{\"integrity\":\"oeM1lpU/UvhTxw+g3cIfxXHyJRc/uidd3yK1P242gzHds0udQBYzs3y8j4gCCW+ZJ7ad0yctld8RYO+bdurlvw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a1e33596953f52f853c70fa0ddc21fc571f225173fba275ddf22b53f6e368331ddb34b9d401633b37cbc8f8802096f9927b69dd3272d95df1160ef9b76eae5bf\",\"name\":\"set-cookie-parser\",\"version\":\"2.7.2\"},\"setprototypeof-1.2.0.tgz\":{\"integrity\":\"E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1392c35fb5aba7ce4a8a5e5b859bf8ea3f2339e6e82aae4932660cde05467461fcc45a4f59750cb0dae53830ab928c4c11e362fd7648c2e46f6385cdc18309a7\",\"name\":\"setprototypeof\",\"version\":\"1.2.0\"},\"shadcn-4.18.0.tgz\":{\"integrity\":\"tUFZgkYmfVNQVm3xX7lhSzOvDsp+O14ac5dwgXIr5mIsr79ISueb/Mu+ZtWMz0DH6v77u4eYyvbQ9TTMpSn3aw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b541598246267d5350566df15fb9614b33af0eca7e3b5e1a73977081722be6622cafbf484ae79bfccbbe66d58ccf40c7eafefbbb8798caf6d0f534cca529f76b\",\"name\":\"shadcn\",\"version\":\"4.18.0\"},\"shebang-command-2.0.0.tgz\":{\"integrity\":\"kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"907c6bdb366962d766acdd6a0e3aeb5ff675ad1d641bc0f1fa09292b51b87979af5ecc26704d614d6056614ce5ada630d7fc99a7a62e0d8efb62dbdb3747660c\",\"name\":\"shebang-command\",\"version\":\"2.0.0\"},\"shebang-regex-3.0.0.tgz\":{\"integrity\":\"7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"efef9d161b5cc77df9dee05aabc0c347836ec417ad0730bb6503a19934089c711de9b4ab5dd884cb30af1b4ed9e3851874b4a1594c97b7933fca1cfc7a471bd4\",\"name\":\"shebang-regex\",\"version\":\"3.0.0\"},\"side-channel-1.1.1.tgz\":{\"integrity\":\"6x6dK6zJdpTzF4sQeNYxwtvBzf6Eg4GtlesS94HOvTudUeyK2WXAaIfmDgsyslYrRBeFIlsi54AYsFGUuhmvrQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"eb1e9d2bacc97694f3178b1078d631c2dbc1cdfe848381ad95eb12f781cebd3b9d51ec8ad965c06887e60e0b32b2562b441785225b22e78018b05194ba19afad\",\"name\":\"side-channel\",\"version\":\"1.1.1\"},\"side-channel-list-1.0.1.tgz\":{\"integrity\":\"mjn/0bi/oUURjc5Xl7IaWi/OJJJumuoJFQJfDDyO46+hBWsfaVM65TBHq2eoZBhzl9EchxOijpkbRC8SVBQU0w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9a39ffd1b8bfa145118dce5797b21a5a2fce24926e9aea0915025f0c3c8ee3afa1056b1f69533ae53047ab67a864187397d11c8713a28e991b442f12541414d3\",\"name\":\"side-channel-list\",\"version\":\"1.0.1\"},\"side-channel-map-1.0.1.tgz\":{\"integrity\":\"VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5428c235f80cb1bcb7b53768d369db8ed33f7b0adaea33c79a94e17a7913621f291bdb9c67fd4ff12a38bb814605e93f063a4e56c0c23282c0fe2b8128815744\",\"name\":\"side-channel-map\",\"version\":\"1.0.1\"},\"side-channel-weakmap-1.0.2.tgz\":{\"integrity\":\"WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"58f4bf1ef1d04d89c78ac2e8f4c72a0473899361641cefed969be5772ae77a6e1a790a7885a8b7832b61b3083aa74d684a84e5e7cadca621408c5d9baf6024d8\",\"name\":\"side-channel-weakmap\",\"version\":\"1.0.2\"},\"siginfo-2.0.0.tgz\":{\"integrity\":\"ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c9bc7458ed7ff1b4812c459766f11dee0316dd29f7245956dd3bd7d674446c32d135035a78d37c58ad26781c0f74068e23b4ed4514499ff12cd7386bac21eeee\",\"name\":\"siginfo\",\"version\":\"2.0.0\"},\"signal-exit-3.0.7.tgz\":{\"integrity\":\"wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c270f6644fa5f923c2feea12d2f5de13d2f5fb4c2e68ca8a95fcfd00c528dfc26cc8b48159215c1d1d51ae2eb62d9735daf2ebd606f78e5ee2c10860c2901b19\",\"name\":\"signal-exit\",\"version\":\"3.0.7\"},\"signal-exit-4.1.0.tgz\":{\"integrity\":\"bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6f3c99d5ef3cc3d3b588d25b2a73a5bd84eb58f0e5e3a3b56c6d03dd7227bfef6d90faf1acdf235144e21650e4926296827d4ce827c8035dd2b86a8e6bd2a8af\",\"name\":\"signal-exit\",\"version\":\"4.1.0\"},\"simple-update-notifier-2.0.0.tgz\":{\"integrity\":\"a2B9Y0KlNXl9u/vsW6sTIu9vGEpfKu2wRV6l1H3XEas/0gUIzGzBoP/IouTcUQbm9JWZLH3COxyn03TYlFax6w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6b607d6342a535797dbbfbec5bab1322ef6f184a5f2aedb0455ea5d47dd711ab3fd20508cc6cc1a0ffc8a2e4dc5106e6f495992c7dc23b1ca7d374d89456b1eb\",\"name\":\"simple-update-notifier\",\"version\":\"2.0.0\"},\"sisteransi-1.0.5.tgz\":{\"integrity\":\"bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6cb186951d50c417329e7d9de589835f83068e566fcb631104344d1cb27c548ea5ebef45522c9314d27422f78e48fd1b7178150cf45c7c6a80d298daa94a5f56\",\"name\":\"sisteransi\",\"version\":\"1.0.5\"},\"smart-buffer-4.2.0.tgz\":{\"integrity\":\"94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f7884ad0787cacfa90976c577371ec681a0e5ca576d0c4e83e4717bf06c84962c4b3eeb8b01ab9905827da42431dbd4faf2f72acfd1dc6b088f5145c8bb4572a\",\"name\":\"smart-buffer\",\"version\":\"4.2.0\"},\"socks-2.8.9.tgz\":{\"integrity\":\"LJhUYUvItdQ0LkJTmPeaEObWXAqFyfmP85x0tch/ez9cahmhlBBLbIqDFnvBnUJGagb0JbIQrkBs1wJ+yRYpEw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2c9854614bc8b5d4342e425398f79a10e6d65c0a85c9f98ff39c74b5c87f7b3f5c6a19a194104b6c8a83167bc19d42466a06f425b210ae406cd7027ec9162913\",\"name\":\"socks\",\"version\":\"2.8.9\"},\"socks-proxy-agent-8.0.5.tgz\":{\"integrity\":\"HehCEsotFqbPW9sJ8WVYB6UbmIMv7kUUORIF2Nncq4VQvBfNBLibW9YZR5dlYCSUhwcD628pRllm7n+E+YTzJw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1de84212ca2d16a6cf5bdb09f1655807a51b98832fee4514391205d8d9dcab8550bc17cd04b89b5bd619479765602494870703eb6f29465966ee7f84f984f327\",\"name\":\"socks-proxy-agent\",\"version\":\"8.0.5\"},\"sonic-boom-4.2.1.tgz\":{\"integrity\":\"w6AxtubXa2wTXAUsZMMWERrsIRAdrK0Sc+FUytWvYAhBJLyuI4llrMIC1DtlNSdI99EI86KZum2MMq3EAZlF9Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c3a031b6e6d76b6c135c052c64c316111aec21101dacad1273e154cad5af60084124bcae238965acc202d43b65352748f7d108f3a299ba6d8c32adc4019945f5\",\"name\":\"sonic-boom\",\"version\":\"4.2.1\"},\"source-map-0.6.1.tgz\":{\"integrity\":\"UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"52381aa6e99695b3219018334fb624739617513e3a17488abbc4865ead1b7303f9773fe1d0f963e9e9c9aa3cf565bab697959aa989eb55bc16396332177178ee\",\"name\":\"source-map\",\"version\":\"0.6.1\"},\"source-map-js-1.2.1.tgz\":{\"integrity\":\"UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"51758c2a12cec1529bef6f0852d40f5f17d853ebac7726ed52b2bff2e184f0240cbeb84ea70bf30c1c23d108522fb31073bbc8b084811bc550f3e203431a5f40\",\"name\":\"source-map-js\",\"version\":\"1.2.1\"},\"source-map-support-0.5.21.tgz\":{\"integrity\":\"uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b811d4dcbddccec232617297f3c7ddac6a2fc5d482a13183459e92617b524712d95331e0e4fffae87b7aba85251eef4466877e8a75e12a8dea420c17513ff2d7\",\"name\":\"source-map-support\",\"version\":\"0.5.21\"},\"split2-4.2.0.tgz\":{\"integrity\":\"UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"51c8dc24e5a49eb36417a3cb5fcdea70733a28781528d915eb663c6b9b980d5bfdc9d19057000730aa877498ded554d6a658c6d1662908386b09d00e607e135a\",\"name\":\"split2\",\"version\":\"4.2.0\"},\"sprintf-js-1.1.3.tgz\":{\"integrity\":\"Oo+0REFV59/rz3gfJNKQiBlwfHaSESl1pcGyABQsnnIfWOFt6JNj5gCog2U6MLZ//IGYD+nA8nI+mTShREReaA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3a8fb4444155e7dfebcf781f24d2908819707c7692112975a5c1b200142c9e721f58e16de89363e600a883653a30b67ffc81980fe9c0f2723e9934a144445e68\",\"name\":\"sprintf-js\",\"version\":\"1.1.3\"},\"stackback-0.0.2.tgz\":{\"integrity\":\"1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d573091397d0a358c61fa63fede6e7c0f3811242049d3e10177d9de51d7e557757bde334201309b7ccdf6b15f53f7421570ad87bee7bebe8e400db524b69816f\",\"name\":\"stackback\",\"version\":\"0.0.2\"},\"stat-mode-1.0.0.tgz\":{\"integrity\":\"jH9EhtKIjuXZ2cWxmXS8ZP80XyC3iasQxMDV8jzhNJpfDb7VbQLVW4Wvsxz9QZvzV+G4YoSfBUVKDOyxLzi/sg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8c7f4486d2888ee5d9d9c5b19974bc64ff345f20b789ab10c4c0d5f23ce1349a5f0dbed56d02d55b85afb31cfd419bf357e1b862849f05454a0cecb12f38bfb2\",\"name\":\"stat-mode\",\"version\":\"1.0.0\"},\"statuses-2.0.2.tgz\":{\"integrity\":\"DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0ef132e795770c1eee927468fb888e193e5f3f5b2547cc10a2155d9278a064f32932cb5a289416870898040089137525da94e70138a18416274616501c606247\",\"name\":\"statuses\",\"version\":\"2.0.2\"},\"std-env-4.2.0.tgz\":{\"integrity\":\"oCUKSupKTHX53EyjDtuZQ64pjLJ6yYCtpmEw0goYxtjG9KpbRe8KAsl2tBUGU9DyMcJ0RwJ8GqJAFzMXcXW1Rw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a0250a4aea4a4c75f9dc4ca30edb9943ae298cb27ac980ada66130d20a18c6d8c6f4aa5b45ef0a02c976b4150653d0f231c27447027c1aa2401733177175b547\",\"name\":\"std-env\",\"version\":\"4.2.0\"},\"stdin-discarder-0.2.2.tgz\":{\"integrity\":\"UhDfHmA92YAlNnCfhmq0VeNL5bDbiZGg7sZ2IvPsXubGkiNa9EC+tUTsjBRsYUAz87btI6/1wf4XoVvQ3uRnmQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5210df1e603dd9802536709f866ab455e34be5b0db8991a0eec67622f3ec5ee6c692235af440beb544ec8c146c614033f3b6ed23aff5c1fe17a15bd0dee46799\",\"name\":\"stdin-discarder\",\"version\":\"0.2.2\"},\"stream-shift-1.0.3.tgz\":{\"integrity\":\"76ORR0DO1o1hlKwTbi/DM3EXWGf3ZJYO8cXX5RJwnul2DEg2oyoZyjLNoQM8WsvZiFKCRfC1O0J7iCvie3RZmQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"efa3914740ced68d6194ac136e2fc33371175867f764960ef1c5d7e512709ee9760c4836a32a19ca32cda1033c5acbd988528245f0b53b427b882be27b745999\",\"name\":\"stream-shift\",\"version\":\"1.0.3\"},\"string-width-4.2.3.tgz\":{\"integrity\":\"wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c0ac90450a63274b08a7ad84ad265d1ac8cc256b1aa79a1136284786ee86ec954effd8c807a5327af2feb57b8eaab9e0f23fdcc4a4d6c96530bd24eb8a2673fe\",\"name\":\"string-width\",\"version\":\"4.2.3\"},\"string-width-7.2.0.tgz\":{\"integrity\":\"tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b6c693224296f5be0df80123f92540f96849cd5effccc85c4aeefc98b2964a4edc5cc3921ec04a15652cd1f5b0abc4322b73202414115fa19b8b89186ddbc691\",\"name\":\"string-width\",\"version\":\"7.2.0\"},\"string_decoder-1.1.1.tgz\":{\"integrity\":\"n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9ff4a19ef0e2e851db6d57ef8aba3e5a88e2173bfeb3c30f30705ccd578f7d4a4324bc282d3d21b759786300426e2f29240bde104767907c8fc933ff9b345fc2\",\"name\":\"string_decoder\",\"version\":\"1.1.1\"},\"string_decoder-1.3.0.tgz\":{\"integrity\":\"hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"864457f14d568c915df0bb03276c90ff0596c5aa2912c0015355df90cf00fa3d3ef392401a9a6dd7a72bd56860e8a21b6f8a2453a32a97a04e8febaea7fc0a78\",\"name\":\"string_decoder\",\"version\":\"1.3.0\"},\"stringify-object-5.0.0.tgz\":{\"integrity\":\"zaJYxz2FtcMb4f+g60KsRNFOpVMUyuJgA51Zi5Z1DOTC3S59+OQiVOzE9GZt0x72uBGWKsQIuBKeF9iusmKFsg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"cda258c73d85b5c31be1ffa0eb42ac44d14ea55314cae260039d598b96750ce4c2dd2e7df8e42254ecc4f4666dd31ef6b811962ac408b8129e17d8aeb26285b2\",\"name\":\"stringify-object\",\"version\":\"5.0.0\"},\"strip-ansi-6.0.1.tgz\":{\"integrity\":\"Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"637f153d21dcaa416b0a916743dbee4979aabaebf9a1738aa46793e9a1abaf7a3719cf409556ba2417d448e0a76f1186645fbfd28a08ecaacfb944b3b54754e4\",\"name\":\"strip-ansi\",\"version\":\"6.0.1\"},\"strip-ansi-7.2.0.tgz\":{\"integrity\":\"yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c833cc363a785b27d80641e78c844b7dc6b58ba28cc860adb1582829eff3d7eeafba481a10d76018166df9998a3dce206afbc46793a01df1ddadace180dc86ef\",\"name\":\"strip-ansi\",\"version\":\"7.2.0\"},\"strip-bom-3.0.0.tgz\":{\"integrity\":\"vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"bdabc03115ce80154d17a9f210498bdc304ad7d891a437282305beb3043e09b1a2bbb963bbab7e264940d4c1f07a85ad69d82de0849552c5cbc83ab7e1d75cc0\",\"name\":\"strip-bom\",\"version\":\"3.0.0\"},\"strip-final-newline-2.0.0.tgz\":{\"integrity\":\"BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"06ba6f7cd004ddd72fabb965df156e9b38ca8d9439b48d6c11420aaf752892cd17525e394addc595ab55a9e7fda6b9388d10f3856e96660fb76e4f77cbaa4b8c\",\"name\":\"strip-final-newline\",\"version\":\"2.0.0\"},\"strip-final-newline-4.0.0.tgz\":{\"integrity\":\"aulFJcD6YK8V1G7iRB5tigAP4TsHBZZrOV8pjV++zdUwmeV8uzbY7yn6h9MswN62adStNZFuCIx4haBnRuMDaw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6ae94525c0fa60af15d46ee2441e6d8a000fe13b0705966b395f298d5fbecdd53099e57cbb36d8ef29fa87d32cc0deb669d4ad35916e088c7885a06746e3036b\",\"name\":\"strip-final-newline\",\"version\":\"4.0.0\"},\"strip-indent-3.0.0.tgz\":{\"integrity\":\"laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"95a2536b725bf95429682e83b1e1e117b75756a1d37c93c24436846e277f76b3a1822b60624bbf95eb4c52a397168595d3320851b8e9747dadfad623e1b40c45\",\"name\":\"strip-indent\",\"version\":\"3.0.0\"},\"strip-json-comments-5.0.3.tgz\":{\"integrity\":\"1tB5mhVo7U+ETBKNf92xT4hrQa3pm0MZ0PQvuDnWgAAGHDsfp4lPSpiS6psrSiet87wyGPh9ft6wmhOMQ0hDiw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d6d0799a1568ed4f844c128d7fddb14f886b41ade99b4319d0f42fb839d68000061c3b1fa7894f4a9892ea9b2b4a27adf3bc3218f87d7edeb09a138c4348438b\",\"name\":\"strip-json-comments\",\"version\":\"5.0.3\"},\"sumchecker-3.0.1.tgz\":{\"integrity\":\"MvjXzkz/BOfyVDkG0oFOtBxHX2u3gKbMHIF/dXblZsgD3BWOFLmHovIpZY7BykJdAjcqRCBi1WYBNdEC9yI7vg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"32f8d7ce4cff04e7f2543906d2814eb41c475f6bb780a6cc1c817f7576e566c803dc158e14b987a2f229658ec1ca425d02372a442062d5660135d102f7223bbe\",\"name\":\"sumchecker\",\"version\":\"3.0.1\"},\"supports-color-7.2.0.tgz\":{\"integrity\":\"qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"aa9080bd197db2db8e1ef78ab27ec79dc251befe74d6a21a70acd094effe2f0c5cf7ed2adb02f2bf80dfbedf34fc33e7da9a8e06c25d0e2a205c647df8ebf047\",\"name\":\"supports-color\",\"version\":\"7.2.0\"},\"symbol-tree-3.2.4.tgz\":{\"integrity\":\"9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f50364e4ac0317e06fcfe3f239b9264988c8e64b15518b635bb014db6af634a71f2c9717a7dea1903594dfe5e774eb146fe010f5085fcdf093d8ef823564f94f\",\"name\":\"symbol-tree\",\"version\":\"3.2.4\"},\"systeminformation-5.33.1.tgz\":{\"integrity\":\"DEN6ICHk3Tk0Uf/hrAHh7xlt7iL5CJFBtPZinA0H62DrGG/KPKqq/Nzj6lCXPS4Ay/sf/14zNnk9LpqKzBIc+w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0c437a2021e4dd393451ffe1ac01e1ef196dee22f9089141b4f6629c0d07eb60eb186fca3caaaafcdce3ea50973d2e00cbfb1fff5e3336793d2e9a8acc121cfb\",\"name\":\"systeminformation\",\"version\":\"5.33.1\"},\"tailwind-merge-3.6.0.tgz\":{\"integrity\":\"uxL7qAVQriqRQPAyK3pj66VqskWqoZ37PW94jwOTwNfq/z9oyu1V+eqrZqtR2+fCiXdYOZe/Modt8GtvqNzu+w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"bb12fba80550ae2a9140f0322b7a63eba56ab245aaa19dfb3d6f788f0393c0d7eaff3f68caed55f9eaab66ab51dbe7c28977583997bf32876df06b6fa8dceefb\",\"name\":\"tailwind-merge\",\"version\":\"3.6.0\"},\"tailwindcss-4.3.3.tgz\":{\"integrity\":\"gOhV3P7ufE62QDGg1zVaTgCR+EtPv92k2nIhVcVKcLmxT1sUBsQGhnZj175j+MqRt4zLF7ic+sCYjfhxMxj7YQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"80e855dcfeee7c4eb64031a0d7355a4e0091f84b4fbfdda4da722155c54a70b9b14f5b1406c406867663d7be63f8ca91b78ccb17b89cfac0988df8713318fb61\",\"name\":\"tailwindcss\",\"version\":\"4.3.3\"},\"tapable-2.3.3.tgz\":{\"integrity\":\"uxc/zpqFg6x7C8vOE7lh6Lbda8eEL9zmVm/PLeTPBRhh1xCgdWaQ+J1CUieGpIfm2HdtsUpRv+HshiasBMcc6A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"bb173fce9a8583ac7b0bcbce13b961e8b6dd6bc7842fdce6566fcf2de4cf051861d710a0756690f89d42522786a487e6d8776db14a51bfe1ec8626ac04c71ce8\",\"name\":\"tapable\",\"version\":\"2.3.3\"},\"tar-7.5.22.tgz\":{\"integrity\":\"MFO/QzvtAOmJbkhOaCTvbGcFN9L9b+JunIsDwaKljSOdcLMea3NJ1k9Usz/rjdfSXTq4dfzfeS7W4p4YOAAHeA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3053bf433bed00e9896e484e6824ef6c670537d2fd6fe26e9c8b03c1a2a58d239d70b31e6b7349d64f54b33feb8dd7d25d3ab875fcdf792ed6e29e1838000778\",\"name\":\"tar\",\"version\":\"7.5.22\"},\"temp-0.9.4.tgz\":{\"integrity\":\"yYrrsWnrXMcdsnu/7YMYAofM1ktpL5By7vZhf15CrXijWWrEYZks5AXBudalfSWJLlnen/QUJUB5aoB0kqZUGA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c98aebb169eb5cc71db27bbfed83180287ccd64b692f9072eef6617f5e42ad78a3596ac461992ce405c1b9d6a57d25892e59de9ff4142540796a807492a65418\",\"name\":\"temp\",\"version\":\"0.9.4\"},\"temp-file-3.4.0.tgz\":{\"integrity\":\"C5tjlC/HCtVUOi3KWVokd4vHVViOmGjtLwIh4MuzPo/nMYTV/p1urt3RnMz2IWXDdKEGJH3k5+KPxtqRsUYGtg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0b9b63942fc70ad5543a2dca595a24778bc755588e9868ed2f0221e0cbb33e8fe73184d5fe9d6eaeddd19cccf62165c374a106247de4e7e28fc6da91b14606b6\",\"name\":\"temp-file\",\"version\":\"3.4.0\"},\"thread-stream-4.2.0.tgz\":{\"integrity\":\"e2zZ96wSChazBsbENf/Pcm/4swHt2cEKQ92rhUjkL9GCKiTDJIaTBenjE/m9DXi0QBmTMDkFDdOomUy20A1tDQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7b6cd9f7ac120a16b306c6c435ffcf726ff8b301edd9c10a43ddab8548e42fd1822a24c324869305e9e313f9bd0d78b44019933039050dd3a8994cb6d00d6d0d\",\"name\":\"thread-stream\",\"version\":\"4.2.0\"},\"tiny-async-pool-1.3.0.tgz\":{\"integrity\":\"01EAw5EDrcVrdgyCLgoSPvqznC0sVxDSVeiOz09FUpjh71G79VCqneOr+xvt7T1r76CF6ZZfPjHorN2+d+3mqA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d35100c39103adc56b760c822e0a123efab39c2d2c5710d255e88ecf4f455298e1ef51bbf550aa9de3abfb1beded3d6befa085e9965f3e31e8acddbe77ede6a8\",\"name\":\"tiny-async-pool\",\"version\":\"1.3.0\"},\"tiny-invariant-1.3.3.tgz\":{\"integrity\":\"+FbBPE1o9QAYvviau/qC5SE3caw21q3xkvWKBtja5vgqOWIHHJ3ioaq1VPfn/Szqctz2bU/oYeKd9/z5BL+PVg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f856c13c4d68f50018bef89abbfa82e5213771ac36d6adf192f58a06d8dae6f82a3962071c9de2a1aab554f7e7fd2cea72dcf66d4fe861e29df7fcf904bf8f56\",\"name\":\"tiny-invariant\",\"version\":\"1.3.3\"},\"tiny-typed-emitter-2.1.0.tgz\":{\"integrity\":\"qVtvMxeXbVej0cQWKqVSSAHmKZEHAvxdF8HEUBFWts8h+xEo5m/lEiPakuyZ3BnCBjOD8i24kzNOiOLLgsSxhA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a95b6f3317976d57a3d1c4162aa5524801e629910702fc5d17c1c4501156b6cf21fb1128e66fe51223da92ec99dc19c2063383f22db893334e88e2cb82c4b184\",\"name\":\"tiny-typed-emitter\",\"version\":\"2.1.0\"},\"tinybench-2.9.0.tgz\":{\"integrity\":\"0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d3e0d4bea58c55a94b9a16ba96be240fc88030ad47cd5d3f68a9c2b566fdbfdeb8d539cffcc15becf7366f1a314234d7004aebc9756050e7efd98a8d965a867a\",\"name\":\"tinybench\",\"version\":\"2.9.0\"},\"tinyexec-1.3.0.tgz\":{\"integrity\":\"QKAl9m8gWWGHV8jZcPeym6j+XULi6tOf1mT83WYJ4Lk2ytW/uwAWkrP0uFsdoYMdueVJ0qs26wZ+23xeB4ibNQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"40a025f66f2059618757c8d970f7b29ba8fe5d42e2ead39fd664fcdd6609e0b936cad5bfbb001692b3f4b85b1da1831db9e549d2ab36eb067edb7c5e07889b35\",\"name\":\"tinyexec\",\"version\":\"1.3.0\"},\"tinyglobby-0.2.17.tgz\":{\"integrity\":\"wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c1747f758a5ca8a99f5a911d66388a24ec023459dd0f40cc9eb5bf7188d51adb449017d581c2c51e836b963e3b9a339589cf72c8dbbae5a96c805e0d4324dada\",\"name\":\"tinyglobby\",\"version\":\"0.2.17\"},\"tinyrainbow-3.1.1.tgz\":{\"integrity\":\"yau8yJdTt989Mm0Bd/236QnzEiPf2xLLTqUZRUJOo/3CB078LSwzei343DgtJVmfJKJE3TMINY1u42SQsP6mXw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c9abbcc89753b7df3d326d0177fdb7e909f31223dfdb12cb4ea51945424ea3fdc2074efc2d2c337a2df8dc382d25599f24a244dd3308358d6ee36490b0fea65f\",\"name\":\"tinyrainbow\",\"version\":\"3.1.1\"},\"tldts-7.4.10.tgz\":{\"integrity\":\"GgouD1B+sWwvkaEq8vXC15DjQitxbvs12oIXELpconwm+Tg3zfcEv4jgzq3vtKverDXsg3VI8aRgNL2Nra0Iog==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1a0a2e0f507eb16c2f91a12af2f5c2d790e3422b716efb35da821710ba5ca27c26f93837cdf704bf88e0ceadefb4abdeac35ec837548f1a46034bd8dadad08a2\",\"name\":\"tldts\",\"version\":\"7.4.10\"},\"tldts-core-7.4.10.tgz\":{\"integrity\":\"KnQjp53ZekKgm/r3l+u8kJGGzYgrWdP8+Mql7a4vijh2WE0IrZWspQj/TpTxDho/YxO+AnOZnIjQcCD+q6iJsw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2a7423a79dd97a42a09bfaf797ebbc909186cd882b59d3fcf8caa5edae2f8a3876584d08ad95aca508ff4e94f10e1a3f6313be0273999c88d07020feaba889b3\",\"name\":\"tldts-core\",\"version\":\"7.4.10\"},\"tmp-0.2.7.tgz\":{\"integrity\":\"e0votIpp4Uo2AJYSzVHV6xCcawuiez3DzqDAbrTc3YxBkplN6e+dM13ZeIcZnDg/QpSuU2zfZ3rzwY8ukEnaXw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7b4be8b48a69e14a36009612cd51d5eb109c6b0ba27b3dc3cea0c06eb4dcdd8c4192994de9ef9d335dd97887199c383f4294ae536cdf677af3c18f2e9049da5f\",\"name\":\"tmp\",\"version\":\"0.2.7\"},\"tmp-promise-3.0.3.tgz\":{\"integrity\":\"RwM7MoPojPxsOBYnyd2hy0bxtIlVrihNs9pj5SUvY8Zz1sQcQG2tG1hSr8PDxfgEB8RNKDhqbIlroIarSNDNsQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"47033b3283e88cfc6c381627c9dda1cb46f1b48955ae284db3da63e5252f63c673d6c41c406dad1b5852afc3c3c5f80407c44d28386a6c896ba086ab48d0cdb1\",\"name\":\"tmp-promise\",\"version\":\"3.0.3\"},\"to-regex-range-5.0.1.tgz\":{\"integrity\":\"65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"eb93fb8b3e97e7212bd5cc1c82f4316db230ed493780ecb974876d678ac3bde2ea86b7493fe2e2fc7c7ab722b43446fed860b29de08c2621aaac00c248d93cb1\",\"name\":\"to-regex-range\",\"version\":\"5.0.1\"},\"toad-cache-3.7.4.tgz\":{\"integrity\":\"m1TdR/rvT7kgGJZhspNtXdsdYk0fddFpJJFlG5s+UkPFo6lkLoZ3YLOaovPYjq1R75NP5JfeTlSHaOsE09peCg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9b54dd47faef4fb920189661b2936d5ddb1d624d1f75d1692491651b9b3e5243c5a3a9642e867760b39aa2f3d88ead51ef934fe497de4e548768eb04d3da5e0a\",\"name\":\"toad-cache\",\"version\":\"3.7.4\"},\"toidentifier-1.0.1.tgz\":{\"integrity\":\"o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a39b123ca12483f0c840d987e37574fee7ab2eba7355e764521f2d18dbda797a5fa6ec2329e9e54a8c7fd8efc14e5654b447be246eece58844cfad3c3e500744\",\"name\":\"toidentifier\",\"version\":\"1.0.1\"},\"tough-cookie-6.0.2.tgz\":{\"integrity\":\"exgYmnmL/sJpR3upZfXG5PoatXQii55xAiXGXzY+sROLZ/Y+SLcp9PgJNI9Vz37HpQ74WvDcLT8eqm+kV3FzrA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7b18189a798bfec269477ba965f5c6e4fa1ab574228b9e710225c65f363eb1138b67f63e48b729f4f809348f55cf7ec7a50ef85af0dc2d3f1eaa6fa4577173ac\",\"name\":\"tough-cookie\",\"version\":\"6.0.2\"},\"tr46-6.0.0.tgz\":{\"integrity\":\"bLVMLPtstlZ4iMQHpFHTR7GAGj2jxi8Dg0s2h2MafAE4uSWF98FC/3MomU51iQAMf8/qDUbKWf5GxuvvVcXEhw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6cb54c2cfb6cb6567888c407a451d347b1801a3da3c62f03834b3687631a7c0138b92585f7c142ff7328994e7589000c7fcfea0d46ca59fe46c6ebef55c5c487\",\"name\":\"tr46\",\"version\":\"6.0.0\"},\"truncate-utf8-bytes-1.0.2.tgz\":{\"integrity\":\"95Pu1QXQvruGEhv62XCMO3Mm90GscOCClvrIUwCM0PYOXK3kaF3l3sIHxx71ThJfcbM2O5Au6SO3AWCSEfW4mQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f793eed505d0bebb86121bfad9708c3b7326f741ac70e08296fac853008cd0f60e5cade4685de5dec207c71ef54e125f71b3363b902ee923b701609211f5b899\",\"name\":\"truncate-utf8-bytes\",\"version\":\"1.0.2\"},\"ts-morph-26.0.0.tgz\":{\"integrity\":\"ztMO++owQnz8c/gIENcM9XfCEzgoGphTv+nKpYNM1bgsdOVC/jRZuEBf6N+mLLDNg68Kl+GgUZfOySaRiG1/Ug==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ced30efbea30427cfc73f80810d70cf577c21338281a9853bfe9caa5834cd5b82c74e542fe3459b8405fe8dfa62cb0cd83af0a97e1a05197cec92691886d7f52\",\"name\":\"ts-morph\",\"version\":\"26.0.0\"},\"tsconfig-paths-4.2.0.tgz\":{\"integrity\":\"NoZ4roiN7LnbKn9QqE1amc9DJfzvZXxF4xDavcOWt1BPkdx+m+0gJuPM+S0vCe7zTJMYUP0R8pO2XMr+Y8oLIg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"368678ae888decb9db2a7f50a84d5a99cf4325fcef657c45e310dabdc396b7504f91dc7e9bed2026e3ccf92d2f09eef34c931850fd11f293b65ccafe63ca0b22\",\"name\":\"tsconfig-paths\",\"version\":\"4.2.0\"},\"tslib-2.8.1.tgz\":{\"integrity\":\"oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a0916ef781d06fe29576e49440bef09e99aa9df98bb0e03f9c087a6fa107d30084a0ad3f98f79753a737c0a0d5f373243ae1cf447b525ca294f7d2016b34bfdb\",\"name\":\"tslib\",\"version\":\"2.8.1\"},\"tsx-4.23.12.tgz\":{\"integrity\":\"FDf4L4sYzKtzWYhU/Xm0AQFdTjdIxNo9ElTf2mxXM6k8YMHXzYUe4yODVaXP4V9uMFbVg8c0qyBccK2OOxb45Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1437f82f8b18ccab73598854fd79b401015d4e3748c4da3d1254dfda6c5733a93c60c1d7cd851ee3238355a5cfe15f6e3056d583c734ab205c70ad8e3b16f8e5\",\"name\":\"tsx\",\"version\":\"4.23.12\"},\"tw-animate-css-1.4.0.tgz\":{\"integrity\":\"7bziOlRqH0hJx80h/3mbicLW7o8qLsH5+RaLR2t+OHM3D0JlWGODQKQ4cxbK7WlvmUxpcj6Kgu6EKqjrGFe3QQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"edbce23a546a1f4849c7cd21ff799b89c2d6ee8f2a2ec1f9f9168b476b7e3873370f426558638340a4387316caed696f994c69723e8a82ee842aa8eb1857b741\",\"name\":\"tw-animate-css\",\"version\":\"1.4.0\"},\"type-fest-0.13.1.tgz\":{\"integrity\":\"34R7HTnG0XIJcBSn5XhDd7nNFPRcXYRZrBB2O2jdKqYODldSzBAqzsWoZYYvduky73toYS/ESqxPvkDf/F0XMg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"df847b1d39c6d172097014a7e5784377b9cd14f45c5d8459ac10763b68dd2aa60e0e5752cc102acec5a865862f76e932ef7b68612fc44aac4fbe40dffc5d1732\",\"name\":\"type-fest\",\"version\":\"0.13.1\"},\"type-is-2.1.0.tgz\":{\"integrity\":\"faYHw0anBbc/kWF3zFTEnxSFOAGUX9GFbOBthvDdLsIlEoWOFOtS0zgCiQYwIskL9iGXZL3kAXD8OoZ4GmMATA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7da607c346a705b73f916177cc54c49f14853801945fd1856ce06d86f0dd2ec22512858e14eb52d3380289063022c90bf6219764bde40170fc3a86781a63004c\",\"name\":\"type-is\",\"version\":\"2.1.0\"},\"typescript-7.0.2.tgz\":{\"integrity\":\"8FYau96o3NKOhbjKi/qNvG/W5jhzxkbdm5sj9AbZ/5T5sWqn3hJgLfGx27sRKZWTvyzCP8dLRBTf5tBTSRVUNA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f0561abbdea8dcd28e85b8ca8bfa8dbc6fd6e63873c646dd9b9b23f406d9ff94f9b16aa7de12602df1b1dbbb11299593bf2cc23fc74b4414dfe6d05349155434\",\"name\":\"typescript\",\"version\":\"7.0.2\"},\"uint8-util-2.3.2.tgz\":{\"integrity\":\"u1c0/eiT1IW+c5+ogbmE2Fu2hmtJQPkuzDmXD/4crMU4FPMjkTkFnjJ2NN/9AsZ9YWcc7yE869uc3WB8wIZEEA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"bb5734fde893d485be739fa881b984d85bb6866b4940f92ecc39970ffe1cacc53814f3239139059e327634dffd02c67d61671cef213cebdb9cdd607cc0864410\",\"name\":\"uint8-util\",\"version\":\"2.3.2\"},\"undici-6.28.0.tgz\":{\"integrity\":\"LIY910g9TI13YS95lrMFrs8Rm/u/irgHeTWoKCoteeJ04CUJ92eEfj0rVn+7VKMPBpUPiUoBKfhNyLI23EE/KA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2c863dd7483d4c8d77612f7996b305aecf119bfbbf8ab8077935a8282a2d79e274e02509f767847e3d2b567fbb54a30f06950f894a0129f84dc8b236dc413f28\",\"name\":\"undici\",\"version\":\"6.28.0\"},\"undici-7.29.0.tgz\":{\"integrity\":\"IDxfleLmmbSskfWSUATiN1nfn2rDuvnMOqb5CWR92iIfojA0Ud+ulOAAEQ57LPr9rWmsreUyf5lwyao+7GNNVw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"203c5f95e2e699b4ac91f5925004e23759df9f6ac3baf9cc3aa6f909647dda221fa2303451dfae94e000110e7b2cfafdad69acade5327f9970c9aa3eec634d57\",\"name\":\"undici\",\"version\":\"7.29.0\"},\"undici-8.10.0.tgz\":{\"integrity\":\"HvltHd7avK13QIw/oLe4qoOLyoVSoafqJ2jYOrtMRBkbYT31eiBQ8O0ehRKZiEZCMEyLFQNIADpgCWC5fALvYQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1ef96d1ddedabcad77408c3fa0b7b8aa838bca8552a1a7ea2768d83abb4c44191b613df57a2050f0ed1e851299884642304c8b150348003a600960b97c02ef61\",\"name\":\"undici\",\"version\":\"8.10.0\"},\"undici-types-7.18.2.tgz\":{\"integrity\":\"AsuCzffGHJybSaRrmr5eHr81mwJU3kjw6M+uprWvCXiNeN9SOGwQ3Jn8jb8m3Z6izVgknn1R0FTCEAP2QrLY/w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"02cb82cdf7c61c9c9b49a46b9abe5e1ebf359b0254de48f0e8cfaea6b5af09788d78df52386c10dc99fc8dbf26dd9ea2cd58249e7d51d054c21003f642b2d8ff\",\"name\":\"undici-types\",\"version\":\"7.18.2\"},\"undici-types-8.3.0.tgz\":{\"integrity\":\"j375ScV60dom+YkPFIfTLcOiPxkN/buHz5GobjLhixFuANaNs3C9l4GmrWqejgXWJ7BbJcFYpTEUkS1Ge8bpZQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8f7ef949c57ad1da26f9890f1487d32dc3a23f190dfdbb87cf91a86e32e18b116e00d68db370bd9781a6ad6a9e8e05d627b05b25c158a53114912d467bc6e965\",\"name\":\"undici-types\",\"version\":\"8.3.0\"},\"unicorn-magic-0.3.0.tgz\":{\"integrity\":\"+QBBXBCvifc56fsbuxZQ6Sic3wqqc3WWaqxs58gvJrcOuN83HGTCwz3oS5phzU9LthRNE9VrJCFCLUgHeeFnfA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f900415c10af89f739e9fb1bbb1650e9289cdf0aaa7375966aac6ce7c82f26b70eb8df371c64c2c33de84b9a61cd4f4bb6144d13d56b2421422d480779e1677c\",\"name\":\"unicorn-magic\",\"version\":\"0.3.0\"},\"universalify-0.1.2.tgz\":{\"integrity\":\"rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ac125e2390970259b2d6957eeb5ed607d27add4e9771acc71c5d9fd9d6c98b1e17ce9505d114b765b8f414620e080bdae4ffddfc604e61a002435c3ed1acd492\",\"name\":\"universalify\",\"version\":\"0.1.2\"},\"universalify-2.0.1.tgz\":{\"integrity\":\"gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"829b4735082120d9dcfef4c6224d12385185357c3b255ae5454b42a2725196f6b0e83b97d303b925e928f6c5ab301861f8fb18019ee85c088e9dffd42a88328b\",\"name\":\"universalify\",\"version\":\"2.0.1\"},\"unpipe-1.0.0.tgz\":{\"integrity\":\"pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a63cb66d8852b2e7f05a52b03dcfa5ddc37bfb0b8994aeaecf461d2443a54036e5ea3a3f6253e2e266fc6a0524542f0117b57c36ecdec8f36a464b00de1ced29\",\"name\":\"unpipe\",\"version\":\"1.0.0\"},\"unzipper-0.12.5.tgz\":{\"integrity\":\"tXYOi9R57Uj/2Z25SOs5RRSzq886MBQj2gY8dPL+xl/kv6s6SvByoKfAtvfVeEuhntWDgjd2o9p2lb4TVPAz0A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b5760e8bd479ed48ffd99db948eb394514b3abcf3a301423da063c74f2fec65fe4bfab3a4af072a0a7c0b6f7d5784ba19ed583823776a3da7695be1354f033d0\",\"name\":\"unzipper\",\"version\":\"0.12.5\"},\"update-browserslist-db-1.3.1.tgz\":{\"integrity\":\"ZZ61DsRsOnakl74HAmp3oSN4aXUmEWXf+i/yv0h7tIBfICc3VdrFErQKUUKPgu3AMsTUMbcongALEN4l6GSUrQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"659eb50ec46c3a76a497be07026a77a123786975261165dffa2ff2bf487bb4805f20273755dac512b40a51428f82edc032c4d431b7289e000b10de25e86494ad\",\"name\":\"update-browserslist-db\",\"version\":\"1.3.1\"},\"use-callback-ref-1.3.3.tgz\":{\"integrity\":\"jQL3lRnocaFtu3V00JToYz/4QkNWswxijDaCVNZRiRTO3HQDLsdu1ZtmIUvV4yPp+rvWm5j0y0TG/S61cuijTg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8d02f79519e871a16dbb7574d094e8633ff8424356b30c628c368254d6518914cedc74032ec76ed59b66214bd5e323e9fabbd69b98f4cb44c6fd2eb572e8a34e\",\"name\":\"use-callback-ref\",\"version\":\"1.3.3\"},\"use-sidecar-1.1.3.tgz\":{\"integrity\":\"Fedw0aZvkhynoPYlA5WXrMCAMm+nSWdZt6lzJQ7Ok8S6Q+VsHmHpRWndVRJ8Be0ZbkfPc5LRYH+5XrzXcEeLRQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"15e770d1a66f921ca7a0f625039597acc080326fa7496759b7a973250ece93c4ba43e56c1e61e94569dd55127c05ed196e47cf7392d1607fb95ebcd770478b45\",\"name\":\"use-sidecar\",\"version\":\"1.1.3\"},\"use-sync-external-store-1.6.0.tgz\":{\"integrity\":\"Pp6GSwGP/NrPIrxVFAIkOQeyw8lFenOHijQWkUTrDvrF4ALqylP2C/KCkeS9dpUM3KvYRQhna5vt7IL95+ZQ9w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3e9e864b018ffcdacf22bc551402243907b2c3c9457a73878a34169144eb0efac5e002eaca53f60bf28291e4bd76950cdcabd84508676b9bedec82fde7e650f7\",\"name\":\"use-sync-external-store\",\"version\":\"1.6.0\"},\"utf8-byte-length-1.0.5.tgz\":{\"integrity\":\"Xn0w3MtiQ6zoz2vFyUVruaCL53O/DwUvkEeOvj+uulMm0BkUGYWmBYVyElqZaSLhY6ZD0ulfU3aBra2aVT4xfA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5e7d30dccb6243ace8cf6bc5c9456bb9a08be773bf0f052f90478ebe3faeba5326d019141985a6058572125a996922e163a643d2e95f537681adad9a553e317c\",\"name\":\"utf8-byte-length\",\"version\":\"1.0.5\"},\"util-deprecate-1.0.2.tgz\":{\"integrity\":\"EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"10f0f9ab5b97c85c49a42acb9c27359c79eade039ae83641a1c008888d93692080ed5089d5424331a802cc891736c5187c3d5d68afff2d3110f318886eb1ed73\",\"name\":\"util-deprecate\",\"version\":\"1.0.2\"},\"uuid-14.0.1.tgz\":{\"integrity\":\"6ZxzVpzDXDa3bJWaHilVayA+BH/1zmxCJoVgvmqJnid/gPoKHxUrS/aC/T6LGQtNHT+XHG9fXPJB4d+IrU30Ew==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e99c73569cc35c36b76c959a1e29556b203e047ff5ce6c42268560be6a899e277f80fa0a1f152b4bf682fd3e8b190b4d1d3f971c6f5f5cf241e1df88ad4df413\",\"name\":\"uuid\",\"version\":\"14.0.1\"},\"validate-npm-package-name-7.0.2.tgz\":{\"integrity\":\"hVDIBwsRruT73PbK7uP5ebUt+ezEtCmzZz3F59BSr2F6OVFnJ/6h8liuvdLrQ88Xmnk6/+xGGuq+pG9WwTuy3A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8550c8070b11aee4fbdcf6caeee3f979b52df9ecc4b429b3673dc5e7d052af617a39516727fea1f258aebdd2eb43cf179a793affec461aeabea46f56c13bb2dc\",\"name\":\"validate-npm-package-name\",\"version\":\"7.0.2\"},\"vary-1.1.2.tgz\":{\"integrity\":\"BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"04d19b58b7ddd1e50f69b8645d4566d23f2ebaf444c93879a2f45afddca8c3f06a01b649c82fb97d4f88cd03b39802b362a6110084a8461750af778867f3d7aa\",\"name\":\"vary\",\"version\":\"1.1.2\"},\"vaul-1.1.2.tgz\":{\"integrity\":\"ZFkClGpWyI2WUQjdLJ/BaGuV6AVQiJ3uELGk3OYtP+B6yCO7Cmn9vPFXVJkRaGkOJu3m8bQMgtyzNHixULceQA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"645902946a56c88d965108dd2c9fc1686b95e80550889dee10b1a4dce62d3fe07ac823bb0a69fdbcf15754991168690e26ede6f1b40c82dcb33478b150b71e40\",\"name\":\"vaul\",\"version\":\"1.1.2\"},\"victory-vendor-37.3.6.tgz\":{\"integrity\":\"SbPDPdDBYp+5MJHhBCAyI7wKM3d5ivekigc2Dk2s7pgbZ9wIgIBYGVw4zGHBml/qTFbexrofXW6Gu4noGxrOwQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"49b3c33dd0c1629fb93091e104203223bc0a3377798af7a48a07360e4dacee981b67dc08808058195c38cc61c19a5fea4c56dec6ba1f5d6e86bb89e81b1acec1\",\"name\":\"victory-vendor\",\"version\":\"37.3.6\"},\"vite-8.2.1.tgz\":{\"integrity\":\"EU/eS7BH3XROHh2YnBefjM6DBKA6ZeMZEYQbj7NLWg5wHYlhB8B/Mayd5XsgWq+NFYccDOTemRpdETWR6Ka/lw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"114fde4bb047dd744e1e1d989c179f8cce8304a03a65e31911841b8fb34b5a0e701d896107c07f31ac9de57b205aaf8d15871c0ce4de991a5d113591e8a6bf97\",\"name\":\"vite\",\"version\":\"8.2.1\"},\"vitest-4.1.10.tgz\":{\"integrity\":\"R9jUTe5S4Qb0HCd4TNqpC7oGcrMssMRGXLW80ubjWsW9VH5GF8y1Y0SFLY9AbqSk6nt0PnOx4H4WNJYZ13GUPw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"47d8d44dee52e106f41c27784cdaa90bba0672b32cb0c4465cb5bcd2e6e35ac5bd547e4617ccb56344852d8f406ea4a4ea7b743e73b1e07e16349619d771943f\",\"name\":\"vitest\",\"version\":\"4.1.10\"},\"vscode-jsonrpc-9.0.1.tgz\":{\"integrity\":\"rfuA6T75H6m5EkbhtEPzre9pT0HPcDI2MMy4+nPFIBks5J8JBAUHD4tRYSgaBOijIEC7SRkC1kKyXTLqbmh9jw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"adfb80e93ef91fa9b91246e1b443f3adef694f41cf70323630ccb8fa73c520192ce49f090405070f8b5161281a04e8a32040bb491902d642b25d32ea6e687d8f\",\"name\":\"vscode-jsonrpc\",\"version\":\"9.0.1\"},\"w3c-xmlserializer-5.0.0.tgz\":{\"integrity\":\"o8qghlI8NZHU1lLPrpi2+Uq7abh4GGPpYANlalzWxyWteJOCsr/P+oPBA49TOLu5FTZO4d3F9MnWJfiMo4BkmA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a3caa086523c3591d4d652cfae98b6f94abb69b8781863e96003656a5cd6c725ad789382b2bfcffa83c1038f5338bbb915364ee1ddc5f4c9d625f88ca3806498\",\"name\":\"w3c-xmlserializer\",\"version\":\"5.0.0\"},\"web-streams-polyfill-3.3.3.tgz\":{\"integrity\":\"d2JWLCivmZYTSIoge9MsgFCZrt571BikcWGYkjC1khllbTeDlGqZ2D8vD8E/lJa8WGWbb7Plm8/XJYV7IJHZZw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7762562c28af999613488a207bd32c805099aede7bd418a47161989230b59219656d3783946a99d83f2f0fc13f9496bc58659b6fb3e59bcfd725857b2091d967\",\"name\":\"web-streams-polyfill\",\"version\":\"3.3.3\"},\"webcrypto-core-1.9.2.tgz\":{\"integrity\":\"gsXecm82UQNlTBURJGuqOWy1Ww08S3kZUcr3aOJS02Pk0xLtkfeUAVC0u0xhgdonFme80edSJUIJyuvL/7250Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"82c5de726f365103654c1511246baa396cb55b0d3c4b791951caf768e252d363e4d312ed91f7940150b4bb4c6181da271667bcd1e752254209caebcbffbdb9d1\",\"name\":\"webcrypto-core\",\"version\":\"1.9.2\"},\"webidl-conversions-8.0.1.tgz\":{\"integrity\":\"BMhLD/Sw+GbJC21C/UgyaZX41nPt8bUTg+jWyDeg7e7YN4xOM05YPSIXceACnXVtqyEw/LMClUQMtMZ+PGGpqQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"04c84b0ff4b0f866c90b6d42fd48326995f8d673edf1b51383e8d6c837a0edeed8378c4e334e583d221771e0029d756dab2130fcb30295440cb4c67e3c61a9a9\",\"name\":\"webidl-conversions\",\"version\":\"8.0.1\"},\"whatwg-mimetype-5.0.0.tgz\":{\"integrity\":\"sXcNcHOC51uPGF0P/D4NVtrkjSU2fNsm9iog4ZvZJsL3rjoDAzXZhkm2MWt1y+PUdggKAYVoMAIYcs78wJ51Cw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b1770d707382e75b8f185d0ffc3e0d56dae48d25367cdb26f62a20e19bd926c2f7ae3a030335d98649b6316b75cbe3d476080a01856830021872cefcc09e750b\",\"name\":\"whatwg-mimetype\",\"version\":\"5.0.0\"},\"whatwg-url-16.0.1.tgz\":{\"integrity\":\"1to4zXBxmXHV3IiSSEInrreIlu02vUOvrhxJJH5vcxYTBDAx51cqZiKdyTxlecdKNSjj8EcxGBxNf6Vg+945gw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d6da38cd70719971d5dc8892484227aeb78896ed36bd43afae1c49247e6f731613043031e7572a66229dc93c6579c74a3528e3f04731181c4d7fa560fbde3983\",\"name\":\"whatwg-url\",\"version\":\"16.0.1\"},\"whatwg-url-17.1.0.tgz\":{\"integrity\":\"3GeworPmc2ZfEEHP7lEbUfBX/L75wdEsi0rLNhXcXxnoN5jyq0SL5gCy06SGW2cyTIZdTvWIDQNQoza++vKeaw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"dc67b0a2b3e673665f1041cfee511b51f057fcbef9c1d12c8b4acb3615dc5f19e83798f2ab448be600b2d3a4865b67324c865d4ef5880d0350a336befaf29e6b\",\"name\":\"whatwg-url\",\"version\":\"17.1.0\"},\"which-2.0.2.tgz\":{\"integrity\":\"BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"04b2374e5d535b73ef97bd25df2ab763ae22f9ac29c17aac181616924a8cb676d782b303fb28fbae15b492e103c7325a6171a3116e6881aa4a34c10a34c8e26c\",\"name\":\"which\",\"version\":\"2.0.2\"},\"which-4.0.0.tgz\":{\"integrity\":\"GlaYyEb07DPxYCKhKzplCWBJtvxZcZMrL+4UkrTSJHHPyZU4mYYTv3qaOe77H7EODLSSopAUFAc6W8U4yqvscg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1a5698c846f4ec33f16022a12b3a65096049b6fc5971932b2fee1492b4d22471cfc99538998613bf7a9a39eefb1fb10e0cb492a2901414073a5bc538caabec72\",\"name\":\"which\",\"version\":\"4.0.0\"},\"which-5.0.0.tgz\":{\"integrity\":\"JEdGzHwwkrbWoGOlIHqQ5gtprKGOenpDHpxE9zVR1bWbOtYRyPPHMe9FaP6x61CmNaTThSkb0DAJte5jD+DmzQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"244746cc7c3092b6d6a063a5207a90e60b69aca18e7a7a431e9c44f73551d5b59b3ad611c8f3c731ef4568feb1eb50a635a4d385291bd03009b5ee630fe0e6cd\",\"name\":\"which\",\"version\":\"5.0.0\"},\"which-6.0.1.tgz\":{\"integrity\":\"oGLe46MIrCRqX7ytPUf66EAYvdeMIZYn3WaocqqKZAxrBpkqHfL/qvTyJ/bTk5+AqHCjXmrv3CEWgy368zhRUg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a062dee3a308ac246a5fbcad3d47fae84018bdd78c219627dd66a872aa8a640c6b06992a1df2ffaaf4f227f6d3939f80a870a35e6aefdc2116832dfaf3385152\",\"name\":\"which\",\"version\":\"6.0.1\"},\"why-is-node-running-2.3.0.tgz\":{\"integrity\":\"hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"854ae669605d543731bd8aa7ca1d3dcee9cacd13968db65388dcbc741123912ede8440d089b5c9ed7be59ad6f0b9372552223237e0b25d00f8566928f1f366f3\",\"name\":\"why-is-node-running\",\"version\":\"2.3.0\"},\"wrap-ansi-7.0.0.tgz\":{\"integrity\":\"YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6151888f691a98b493c70e8db198e80717d2c2c9f4c9c75eb26738a7e436d5ce733ee675a65f8d7f155dc4fb5d1ef98d54e43a5d2606e0052dcadfc58bb0f5e9\",\"name\":\"wrap-ansi\",\"version\":\"7.0.0\"},\"wrappy-1.0.2.tgz\":{\"integrity\":\"l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9784a9fc346c7a8afdc0be84bd5dbe4ee427eb774c90f8d9feca7d5e48214c46d5f4a94f4b5c54b19deeeff2103b8c31b5c141e1b82940f45c477402bdeccf71\",\"name\":\"wrappy\",\"version\":\"1.0.2\"},\"write-file-atomic-8.0.0.tgz\":{\"integrity\":\"dYwyZredl67GyLLIHJnRM3h2PcOmN5SkcgC7eM5DPDEOEl6dLFqVrMg3F1Ea32usj4VSVZtd2H4MtKTNOf6nPg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"758c3266b79d97aec6c8b2c81c99d13378763dc3a63794a47200bb78ce433c310e125e9d2c5a95acc83717511adf6bac8f8552559b5dd87e0cb4a4cd39fea73e\",\"name\":\"write-file-atomic\",\"version\":\"8.0.0\"},\"ws-8.21.3.tgz\":{\"integrity\":\"201TZ/kPWxoPr/OKWjquZR1SWKXcvxdH+e1xrx89b3YbmzLMFCLfnaG1HFIgWzJOEWZ7MvpK++odZufgYR50Rw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"db4d5367f90f5b1a0faff38a5a3aae651d5258a5dcbf1747f9ed71af1f3d6f761b9b32cc1422df9da1b51c52205b324e11667b32fa4afbea1d66e7e0611e7447\",\"name\":\"ws\",\"version\":\"8.21.3\"},\"wsl-utils-1.0.0.tgz\":{\"integrity\":\"Hl0ZOAs672vg+06kfujwRhoS6/jehvULrlFkuF2dRu6pHgA8U06h3xqNIqNNU1LTXPcedxByAR4GS6pwQK0mgA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1e5d19380b3aef6be0fb4ea47ee8f0461a12ebf8de86f50bae5164b85d9d46eea91e003c534ea1df1a8d22a34d5352d35cf71e771072011e064baa7040ad2680\",\"name\":\"wsl-utils\",\"version\":\"1.0.0\"},\"xml-name-validator-5.0.0.tgz\":{\"integrity\":\"EvGK8EJ3DhaHfbRlETOWAS5pO9MZITeauHKJyb8wyajUfQUenkIg2MvLDTZ4T/TgIcm3HU0TFBgWWboAZ30UHg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"12f18af042770e16877db465113396012e693bd31921379ab87289c9bf30c9a8d47d051e9e4220d8cbcb0d36784ff4e021c9b71d4d1314181659ba00677d141e\",\"name\":\"xml-name-validator\",\"version\":\"5.0.0\"},\"xmlbuilder-15.1.1.tgz\":{\"integrity\":\"yMqGBqtXyeN1e3TGYvgNgDVZ3j84W4cwkOXQswghol6APgZWaff9lnbvN7MHYJOiXsvGPXtjTYJEiC9J2wv9Eg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c8ca8606ab57c9e3757b74c662f80d803559de3f385b873090e5d0b30821a25e803e065669f7fd9676ef37b3076093a25ecbc63d7b634d8244882f49db0bfd12\",\"name\":\"xmlbuilder\",\"version\":\"15.1.1\"},\"xmlchars-2.2.0.tgz\":{\"integrity\":\"JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2599c328af01d11083c3ce0535d0c022964af89b89c3eb3b2f3f2792c23b488b94dd45c926c954b61b22fae5815183b03c5c16ed6ecf44b45f50aa718ed8c50b\",\"name\":\"xmlchars\",\"version\":\"2.2.0\"},\"y18n-5.0.8.tgz\":{\"integrity\":\"0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d297c5cde81e0d62472480264cb44fd83c078dd179b3b8e8f6dbb3b5d43102120d09dbd2fb79c620da8f774d00a61a8947fd0b8403544baffeed209bf7c60e7c\",\"name\":\"y18n\",\"version\":\"5.0.8\"},\"yallist-3.1.1.tgz\":{\"integrity\":\"a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6b850641a58f1f9f663975189c01b67b09dc412e22e05e374efdc9a0033eb365430264bd36c2bc1a90cc2eb0873e4b054fb8772ba4cea14367da96fb4685f1e2\",\"name\":\"yallist\",\"version\":\"3.1.1\"},\"yallist-4.0.0.tgz\":{\"integrity\":\"3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"df074689d672ab93c1d3ce172c44b94e9392440df08d7025216321ba6da445cbffe354a7d9e990d1dc9c416e2e6572de8f02af83a12cbdb76554bf8560472dec\",\"name\":\"yallist\",\"version\":\"4.0.0\"},\"yallist-5.0.0.tgz\":{\"integrity\":\"YgvUTfwqyc7UXVMrB+SImsVYSmTS8X/tSrtdNZMImM+n7+QTriRXyXim0mBrTXNeqzVF0KWGgHPeiyViFFrNDw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"620bd44dfc2ac9ced45d532b07e4889ac5584a64d2f17fed4abb5d35930898cfa7efe413ae2457c978a6d2606b4d735eab3545d0a5868073de8b2562145acd0f\",\"name\":\"yallist\",\"version\":\"5.0.0\"},\"yargs-17.7.3.tgz\":{\"integrity\":\"GZtjxm/J/4TSxuL3FNYjCmLktBTnIw/rVmKSIyKeYAZpmJB2ig9VauCC5xsa82GNKVKDAqpOn3KVzNt0zmrU0g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"199b63c66fc9ff84d2c6e2f714d6230a62e4b414e7230feb56629223229e6006699890768a0f556ae082e71b1af3618d29528302aa4e9f7295ccdb74ce6ad4d2\",\"name\":\"yargs\",\"version\":\"17.7.3\"},\"yargs-parser-21.1.1.tgz\":{\"integrity\":\"tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b55a6c256ec376379c0221696c80757b7ab1210b04e8da0f739fde4ddadb6c80b88742d5b16867a1ade0fa6d87725048ba31f3b31678549540f8652e736fcb07\",\"name\":\"yargs-parser\",\"version\":\"21.1.1\"},\"yauzl-3.4.0.tgz\":{\"integrity\":\"jIH9yLR9wqr0wOS0TpBvo/g/2UgZH5qePVbjgRliiF0BYvOZyaBknKsF+x9Iht0O6sqgnB93rCICdOZFecJuDw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8c81fdc8b47dc2aaf4c0e4b44e906fa3f83fd948191f9a9e3d56e3811962885d0162f399c9a0649cab05fb1f4886dd0eeacaa09c1f77ac220274e64579c26e0f\",\"name\":\"yauzl\",\"version\":\"3.4.0\"},\"yocto-queue-0.1.0.tgz\":{\"integrity\":\"rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ad592cbec9cd09d27fa2119ceb180fc3237c7a1782c6c88b33c9b1b84fedfe6395a897b03ee3b59a22e94c74224604ca08b7b12f831e00555a82db3b1e6359d9\",\"name\":\"yocto-queue\",\"version\":\"0.1.0\"},\"yocto-spinner-1.2.2.tgz\":{\"integrity\":\"DODGl1wJjA/s5pnJFKau9lIYHT81lnhob1i3e1TjxZRxEhWRKl74nTbWE6H5KlkViQQTo/Z29YFdxzTZAMY3ng==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0ce0c6975c098c0fece699c914a6aef652181d3f359678686f58b77b54e3c594711215912a5ef89d36d613a1f92a5915890413a3f676f5815dc734d900c6379e\",\"name\":\"yocto-spinner\",\"version\":\"1.2.2\"},\"yoctocolors-2.2.0.tgz\":{\"integrity\":\"xYqdZFUK/VYazNl/oCDYN+3WloWQwMfZxBoiNt6qNyk+xfOdi598muWE42rNZFp1kNOiqW936q5RhUdnpqElSg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c58a9d64550afd561accd97fa020d837edd6968590c0c7d9c41a2236deaa37293ec5f39d8b9f7c9ae584e36acd645a7590d3a2a96f77eaae51854767a6a1254a\",\"name\":\"yoctocolors\",\"version\":\"2.2.0\"},\"zod-3.25.76.tgz\":{\"integrity\":\"gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"83352dfeab7cd675ec14628815c0b76277c4031e4d92e9c27e70e5bee0524854b4d9b717bb82e679ad001485306cb5b158fc7777da7c4b94286ae8ca70d43171\",\"name\":\"zod\",\"version\":\"3.25.76\"},\"zod-4.4.3.tgz\":{\"integrity\":\"ytENFjIJFl2UwYglde2jchW2Hwm4GJFLDiSXWdTrJQBIN9Fcyp7n4DhxJEiWNAJMV1/BqWfW/kkg71UDcHJyTQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"cad10d163209165d94c1882575eda37215b61f09b818914b0e249759d4eb25004837d15cca9ee7e0387124489634024c575fc1a967d6fe4920ef55037072724d\",\"name\":\"zod\",\"version\":\"4.4.3\"},\"zod-to-json-schema-3.25.2.tgz\":{\"integrity\":\"O/PgfnpT1xKSDeQYSCfRI5Gy3hPf91mKVDuYLUHZJMiDFptvP41MSnWofm8dnCm0256ZNfZIM7DSzuSMAFnjHA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3bf3e07e7a53d712920de4184827d12391b2de13dff7598a543b982d41d924c883169b6f3f8d4c4a75a87e6f1d9c29b4db9e9935f64833b0d2cee48c0059e31c\",\"name\":\"zod-to-json-schema\",\"version\":\"3.25.2\"},\"zustand-4.5.7.tgz\":{\"integrity\":\"CHOUy7mu3lbD6o6LJLfllpjkzhHXSBlX8B9+qPddUsIfeF5S/UZ5q0kmCsnRqT1UHFQZchNFDDzMbQsuesHWlw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"087394cbb9aede56c3ea8e8b24b7e59698e4ce11d7481957f01f7ea8f75d52c21f785e52fd4679ab49260ac9d1a93d541c54197213450c3ccc6d0b2e7ac1d697\",\"name\":\"zustand\",\"version\":\"4.5.7\"},\"zustand-5.0.15.tgz\":{\"integrity\":\"MpSEjRiBkA9crSYeOUH32rJC7SVqAbm0Fqcqge/bUi2PPoLcBWKOsG+C8mevmpr8TwXHBVkChbbJiyvkE+i/3A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3294848d1881900f5cad261e3941f7dab242ed256a01b9b416a72a81efdb522d8f3e82dc05628eb06f82f267af9a9afc4f05c705590285b6c98b2be413e8bfdc\",\"name\":\"zustand\",\"version\":\"5.0.15\"}},\"store_version\":\"v11\"}",
+ "contents": "{\"packages\":{\"@adobe__css-tools-4.5.0.tgz\":{\"integrity\":\"6OzddxPio9UiWTCemp4N8cYLV2ZN1ncRnV1cVGtve7dhPOtRkleRyx32GQCYSwDYgaHU3USMm84tNsvKzRCa1Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e8ecdd7713e2a3d52259309e9a9e0df1c60b57664dd677119d5d5c546b6f7bb7613ceb51925791cb1df61900984b00d881a1d4dd448c9bce2d36cbcacd109ad5\",\"name\":\"@adobe/css-tools\",\"version\":\"4.5.0\"},\"@asamuzakjp__css-color-6.0.7.tgz\":{\"integrity\":\"vC/bk1Lz7Tn/EfU9/apOTBk80/8dyGyWMowPoV1tJ52muDGsDqt2HPT2klrFUiY60MQmQv9q8yIht15JnBgDGw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"bc2fdb9352f3ed39ff11f53dfdaa4e4c193cd3ff1dc86c96328c0fa15d6d279da6b831ac0eab761cf4f6925ac552263ad0c42642ff6af32221b75e499c18031b\",\"name\":\"@asamuzakjp/css-color\",\"version\":\"6.0.7\"},\"@asamuzakjp__dom-selector-8.3.2.tgz\":{\"integrity\":\"93Z1N+BQNXysodoicpOIyNh2drHfz/CTf9nnT0FEx72GJcIiwgydD7tGAr78j41LsYn3hlRn+LdGPuBLn1Bl8Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f7767537e050357caca1da22729388c8d87676b1dfcff0937fd9e74f4144c7bd8625c222c20c9d0fbb4602befc8f8d4bb189f7865467f8b7463ee04b9f5065f1\",\"name\":\"@asamuzakjp/dom-selector\",\"version\":\"8.3.2\"},\"@babel__code-frame-7.29.7.tgz\":{\"integrity\":\"Aup7aUOfpbAUg2ROOJN6Iw5f9DMBlzu0mIkm/malLQFN/YQgO48wCj0Kxa3sEHJvPVFg7siR+qRInwXd2qhQKw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"02ea7b69439fa5b01483644e38937a230e5ff43301973bb4988926fe66a52d014dfd84203b8f300a3d0ac5adec10726f3d5160eec891faa4489f05dddaa8502b\",\"name\":\"@babel/code-frame\",\"version\":\"7.29.7\"},\"@babel__compat-data-7.29.7.tgz\":{\"integrity\":\"locTkQyKvwIEgBzVrn8693ebc97F2U8ZHjbXwDXJ5Fn2TCpNwTlKcaKLkdHop5c/icOFE7qt7Q9JC5hnKNa6Gg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"968713910c8abf0204801cd5ae7f3af7779b73dec5d94f191e36d7c035c9e459f64c2a4dc1394a71a28b91d1e8a7973f89c38513baaded0f490b986728d6ba1a\",\"name\":\"@babel/compat-data\",\"version\":\"7.29.7\"},\"@babel__core-7.29.7.tgz\":{\"integrity\":\"RgHBCvtjbOK2gXSNBNIkNoEc9qoVEtau3hj8gEqKQuL3HZAibKarWFEI3Lfm6EYKkLalOh8eSrj9b+ch9H/VBA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4601c10afb636ce2b681748d04d22436811cf6aa1512d6aede18fc804a8a42e2f71d90226ca6ab585108dcb7e6e8460a90b6a53a1f1e4ab8fd6fe721f47fd504\",\"name\":\"@babel/core\",\"version\":\"7.29.7\"},\"@babel__generator-7.29.8.tgz\":{\"integrity\":\"gZbepsdh3WDtgZKWL+vTPh71LSBrm/Y4/QDZBVCcYfmeTEEuoOYwlSy+G1StfJg+/Zy550u/3TATbm7qDbbMtg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8196dea6c761dd60ed8192962febd33e1ef52d206b9bf638fd00d905509c61f99e4c412ea0e630952cbe1b54ad7c983efd9cb9e74bbfdd30136e6eea0db6ccb6\",\"name\":\"@babel/generator\",\"version\":\"7.29.8\"},\"@babel__helper-annotate-as-pure-7.29.7.tgz\":{\"integrity\":\"OoK6239jHPuSQOoS0kfTVKn0b/rVTk0seKq4Gd2UMLtmOVLjDC0ki3e+c90Trqv2gMfvJFqkiljrr568+qddiw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3a82badb7f631cfb9240ea12d247d354a9f46ffad54e4d2c78aab819dd9430bb663952e30c2d248b77be73dd13aeabf680c7ef245aa48a58ebaf9ebcfaa75d8b\",\"name\":\"@babel/helper-annotate-as-pure\",\"version\":\"7.29.7\"},\"@babel__helper-compilation-targets-7.29.7.tgz\":{\"integrity\":\"wem6WaBj4NaVYVdNhLPPVacES6ZJ+KBBfSkTMD3YZxbP3rm3Di85tJU5ljaUNhaOynt+Aj0xruhYuzQBt8n71g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c1e9ba59a063e0d69561574d84b3cf55a7044ba649f8a0417d2913303dd86716cfdeb9b70e2f39b4953996369436168eca7b7e023d31aee858bb3401b7c9fbd6\",\"name\":\"@babel/helper-compilation-targets\",\"version\":\"7.29.7\"},\"@babel__helper-create-class-features-plugin-7.29.7.tgz\":{\"integrity\":\"IY3ZD9Tmooqr3TUhc3DUWxiuo8xx1DWLhd5M7hQ+ZWJamqM2BbalrBJb2MisSLoYorOj75U03qULCxQTY9r3hg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"218dd90fd4e6a28aabdd35217370d45b18aea3cc71d4358b85de4cee143e65625a9aa33605b6a5ac125bd8c8ac48ba18a2b3a3ef9534dea50b0b141363daf786\",\"name\":\"@babel/helper-create-class-features-plugin\",\"version\":\"7.29.7\"},\"@babel__helper-globals-7.29.7.tgz\":{\"integrity\":\"3nQVUAtvkKH9zahfWgw96Jc/uFOmjACE1kQz82E2lqWmHBgjzbNlsC22nuQTfahmWeQtTq5nQ/4Nnd2A1wj4zA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"de7415500b6f90a1fdcda85f5a0c3de8973fb853a68c0084d64433f3613696a5a61c1823cdb365b02db69ee4137da86659e42d4eae6743fe0d9ddd80d708f8cc\",\"name\":\"@babel/helper-globals\",\"version\":\"7.29.7\"},\"@babel__helper-member-expression-to-functions-7.29.7.tgz\":{\"integrity\":\"j+7JYmk1JYDtACIGj0QJqqWZjoUpMoEikQGADMaHgCMCSDqd2+P32rfcibUNrGOMWrlzK1WJBdxrB3JJQZwWtg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8feec96269352580ed0022068f4409aaa5998e85293281229101800cc687802302483a9ddbe3f7dab7dc89b50dac638c5ab9732b558905dc6b077249419c16b6\",\"name\":\"@babel/helper-member-expression-to-functions\",\"version\":\"7.29.7\"},\"@babel__helper-module-imports-7.29.7.tgz\":{\"integrity\":\"ejHwrQQYcm9xnTivShn2IDOlIzInN34AXskvq9QicvCtEzq1Vzclu/tKF8Jq1Cg8JG2GL6/EmjgsCT7lXepE3g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7a31f0ad0418726f719d38af4a19f62033a5233227377e005ec92fabd42272f0ad133ab5573725bbfb4a17c26ad4283c246d862fafc49a382c093ee55dea44de\",\"name\":\"@babel/helper-module-imports\",\"version\":\"7.29.7\"},\"@babel__helper-module-transforms-7.29.7.tgz\":{\"integrity\":\"UPUVSyXbOh627KiCIGQSgwWzGeBKLkaJ9PJEdrngIwMSzxLR4jS4+f1f1jb7VzBbg8nFLaYotvVPFCTqdrmTAg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"50f5154b25db3a1eb6eca8822064128305b319e04a2e4689f4f24476b9e0230312cf12d1e234b8f9fd5fd636fb57305b83c9c52da628b6f54f1424ea76b99302\",\"name\":\"@babel/helper-module-transforms\",\"version\":\"7.29.7\"},\"@babel__helper-optimise-call-expression-7.29.7.tgz\":{\"integrity\":\"+kmGVjcT9RGYzoDwdwEqEvGgKe3BYq+O1iGzjFubaNgZHwYHP6lsF2Yghf4kEuv9BV7tYDZ913aBW9am6YKong==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"fa4986563713f51198ce80f077012a12f1a029edc162af8ed621b38c5b9b68d8191f06073fa96c17662085fe2412ebfd055eed60367dd776815bd6a6e982a89e\",\"name\":\"@babel/helper-optimise-call-expression\",\"version\":\"7.29.7\"},\"@babel__helper-plugin-utils-7.29.7.tgz\":{\"integrity\":\"G7sHYigPY17oO5SYWnfD/0MTBwVR781S/JI643e/JhUYgVgWE/61SoW3NH9KWUKyKq5LVh3npif99Wkt6j86Jw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1bbb0762280f635ee83b94985a77c3ff4313070551efcd52fc923ae377bf26151881581613feb54a85b7347f4a5942b22aae4b561de7a627fdf5692dea3f3a27\",\"name\":\"@babel/helper-plugin-utils\",\"version\":\"7.29.7\"},\"@babel__helper-replace-supers-7.29.7.tgz\":{\"integrity\":\"atfGXWSeCiF4DnKZIfmJfQRkSw9b9gNNXR1kqKjbhG4pGYCOnkp8OcTB8E3NXjBu8NpheSnOeNKz8KT7UNFTmQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6ad7c65d649e0a21780e729921f9897d04644b0f5bf6034d5d1d64a8a8db846e2919808e9e4a7c39c4c1f04dcd5e306ef0da617929ce78d2b3f0a4fb50d15399\",\"name\":\"@babel/helper-replace-supers\",\"version\":\"7.29.7\"},\"@babel__helper-skip-transparent-expression-wrappers-7.29.7.tgz\":{\"integrity\":\"brcMGQaVzIeUb+6/bs1Av0f8YuNNjKY2JyvfRCsFuFsdKccEQ5Ges2y74D74NZ1Rz8lKJ9ksJkfqwQFJ/iNEyQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6eb70c190695cc87946feebf6ecd40bf47fc62e34d8ca636272bdf442b05b85b1d29c70443919eb36cbbe03ef8359d51cfc94a27d92c2647eac10149fe2344c9\",\"name\":\"@babel/helper-skip-transparent-expression-wrappers\",\"version\":\"7.29.7\"},\"@babel__helper-string-parser-7.29.7.tgz\":{\"integrity\":\"Pb5ijPrZ89GDH8223L4UP8i6QApWxs04RbPQJTeWDV0/keR2E36MeKnyr6LYmUUvqRRI+Iv87SuF1W6ErINzYw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3dbe628cfad9f3d1831fcdb6dcbe143fc8ba400a56c6cd3845b3d02537960d5d3f91e476137e8c78a9f2afa2d899452fa91448f88bfced2b85d56e84ac837363\",\"name\":\"@babel/helper-string-parser\",\"version\":\"7.29.7\"},\"@babel__helper-validator-identifier-7.29.7.tgz\":{\"integrity\":\"qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a9e8711a4463e7987f7dff0431a27e71887268a947231a980e7ebcdb0403ed1369f54ba3390b07a20dae4b4af6bf3af8a56fac5dff7435e79aca370d697ddf16\",\"name\":\"@babel/helper-validator-identifier\",\"version\":\"7.29.7\"},\"@babel__helper-validator-option-7.29.7.tgz\":{\"integrity\":\"N9ZErrD+yW5geCDtBqnOoxmR8+tNKiGuxKlDpuJxfsqpa2dFcexaziGAE/qoHLiDDreVNMupxGmSoNlyvsA3gw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"37d644aeb0fec96e607820ed06a9cea31991f3eb4d2a21aec4a943a6e2717ecaa96b674571ec5ace218013faa81cb8830eb79534cba9c46992a0d972bec03783\",\"name\":\"@babel/helper-validator-option\",\"version\":\"7.29.7\"},\"@babel__helpers-7.29.7.tgz\":{\"integrity\":\"1k2lAGRMfHTcwuNYcCNUmaUffmQv8KWMfh2iJUUeRlwlwH4FdNG7mfPI10NPfLHJFThE4Tyr4mv7kTNZOiPuBg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d64da500644c7c74dcc2e35870235499a51f7e642ff0a58c7e1da225451e465c25c07e0574d1bb99f3c8d7434f7cb1c9153844e13cabe26bfb9133593a23ee06\",\"name\":\"@babel/helpers\",\"version\":\"7.29.7\"},\"@babel__parser-7.29.8.tgz\":{\"integrity\":\"E8lTAYNB1KW+FH+VGJuZM1ioAx2E6oVlvQFRrf5P8ZZmsiJXYAD9vTFV7yyEURNzgh1dFqMZuO6tUwcARbqFCA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"13c953018341d4a5be147f95189b993358a8031d84ea8565bd0151adfe4ff19666b222576000fdbd3155ef2c84511373821d5d16a319b8eead53070045ba8508\",\"name\":\"@babel/parser\",\"version\":\"7.29.8\"},\"@babel__plugin-syntax-jsx-7.29.7.tgz\":{\"integrity\":\"TSu8+mHCoEaaCDEZ0I3+6mvTBYR4PCxQwf2z9/r5Tbztv6NaLR3B9thGTTxX2WGuGHJqRiAbKPeGTJ5XWXVg6A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4d2bbcfa61c2a0469a083119d08dfeea6bd30584783c2c50c1fdb3f7faf94dbcedbfa35a2d1dc1f6d8464d3c57d961ae18726a46201b28f7864c9e57597560e8\",\"name\":\"@babel/plugin-syntax-jsx\",\"version\":\"7.29.7\"},\"@babel__plugin-syntax-typescript-7.29.7.tgz\":{\"integrity\":\"ngr+82Sh0xMz25TPCZi+nC2iTzjfCdWS2ONXTp/PtSCHCgaCNBpdMqgvJ2ccdLlClVZ7sisIgB914j/JFe+RZA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9e0afef364a1d31333db94cf0998be9c2da24f38df09d592d8e3574e9fcfb520870a0682341a5d32a82f27671c74b94295567bb22b08801f75e23fc915ef9164\",\"name\":\"@babel/plugin-syntax-typescript\",\"version\":\"7.29.7\"},\"@babel__plugin-transform-modules-commonjs-7.29.7.tgz\":{\"integrity\":\"j0vCldybPC5b5dwCQOJ21uKtHzt7hxLygJTg9eF1ScfaikEDNfzn94XoW5Fi+seBR0nCyL23xaBFFkq7dTM8XQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8f4bc295dc9b3c2e5be5dc0240e276d6e2ad1f3b7b8712f28094e0f5e17549c7da8a410335fce7f785e85b9162fac7814749c2c8bdb7c5a045164abb75333c5d\",\"name\":\"@babel/plugin-transform-modules-commonjs\",\"version\":\"7.29.7\"},\"@babel__plugin-transform-typescript-7.29.7.tgz\":{\"integrity\":\"jK52h8LaLc7JarhQV2ofeFMts4H7vnOXnqZNA6fYglBTZewRBE51KWt3BUltW1P+KoPsYkHoJeXePuz4zo2LMw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8cae7687c2da2dcec96ab850576a1f78532db381fbbe73979ea64d03a7d882505365ec11044e75296b7705496d5b53fe2a83ec6241e825e5de3eecf8ce8d8b33\",\"name\":\"@babel/plugin-transform-typescript\",\"version\":\"7.29.7\"},\"@babel__preset-typescript-7.29.7.tgz\":{\"integrity\":\"/Foi8vKY2EVbed/1eZx0gJEEwHAIxogrySI7rULcRIvhZzbvoE/b5qG5Ghc0WKAFKOHA9SD1x7RsFlOYdutIiQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"fc5a22f2f298d8455b79dff5799c74809104c07008c6882bc9223bad42dc448be16736efa04fdbe6a1b91a173458a00528e1c0f520f5c7b46c16539876eb4889\",\"name\":\"@babel/preset-typescript\",\"version\":\"7.29.7\"},\"@babel__runtime-7.29.7.tgz\":{\"integrity\":\"Nq8OhGWiZIZGV6hLHoyAKLLcJihP/xFeBMGJoUrxTX2psI8dCifzLhZISFb+VWS3wFMRDmCGw5R+dOySCqPLhw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"36af0e8465a264864657a84b1e8c8028b2dc26284fff115e04c189a14af14d7da9b08f1d0a27f32e16484856fe5564b7c053110e6086c3947e74ec920aa3cb87\",\"name\":\"@babel/runtime\",\"version\":\"7.29.7\"},\"@babel__template-7.29.7.tgz\":{\"integrity\":\"puq+Gf35oI24FeN11LkoUQFqv9uwNeWpxXZi/Ji3rRIoKAzKnxRaZ+Gkj0vKS9ZCiTESfng1N9LyOyXvo+m+Gg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a6eabe19fdf9a08db815e375d4b92851016abfdbb035e5a9c57662fc98b7ad1228280cca9f145a67e1a48f4bca4bd6428931127e783537d2f23b25efa3e9be1a\",\"name\":\"@babel/template\",\"version\":\"7.29.7\"},\"@babel__traverse-7.29.8.tgz\":{\"integrity\":\"I5z7H3bf/41ktsNVLtpN0wAa336HkqIHQ5BuPLEhTkt1jVSyZpeNKIzTgEWmlxjdg81R0IgUCcaE+Ok3NvrfZg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"239cfb1f76dfff8d64b6c3552eda4dd3001adf7e8792a20743906e3cb1214e4b758d54b266978d288cd38045a69718dd83cd51d0881409c684f8e93736fadf66\",\"name\":\"@babel/traverse\",\"version\":\"7.29.8\"},\"@babel__types-7.29.8.tgz\":{\"integrity\":\"Vj1jF3cPfxg7OAfoI7QnVKLoILlm2JF9pnVHrX8qx7AHMiYWT+NDAA7jChlNgRS4WTLc/fD1lXLmPixluj+3Gg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"563d6317770f7f183b3807e823b42754a2e820b966d8917da67547ad7f2ac7b0073226164fe343000ee30a194d8114b85932dcfdf0f59572e63e2c65ba3fb71a\",\"name\":\"@babel/types\",\"version\":\"7.29.8\"},\"@base-ui__react-1.7.0.tgz\":{\"integrity\":\"j+8QjX44C32jrXD/qyEAGpFr70FRpGL2CY61mQd9nBPWN737CK0xxD1ceJ055rW4RtdvFDT1e7otzdlfxvsYug==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8fef108d7e380b7da3ad70ffab21001a916bef4151a462f6098eb599077d9c13d637bdfb08ad31c43d5c789d39e6b5b846d76f1434f57bba2dcdd95fc6fb18ba\",\"name\":\"@base-ui/react\",\"version\":\"1.7.0\"},\"@base-ui__utils-0.3.2.tgz\":{\"integrity\":\"oWy1aq/I2GmYjpl4PhEAhzflF8VPGKgZeq0xAWTbfD5KBWyxcN0ZP2+WHSUm/5Z6lVMBDLReLcoXwSYoRc/zNQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a16cb56aafc8d869988e99783e11008737e517c54f18a8197aad310164db7c3e4a056cb170dd193f6f961d2526ff967a9553010cb45e2dca17c1262845cff335\",\"name\":\"@base-ui/utils\",\"version\":\"0.3.2\"},\"@bcoe__v8-coverage-1.0.2.tgz\":{\"integrity\":\"6zABk/ECA/QYSCQ1NGiVwwbQerUCZ+TQbp64Q3AgmfNvurHH0j8TtXa1qbShXA6qqkpAj4V5W8pP6mLe1mcMqA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"eb300193f10203f418482435346895c306d07ab50267e4d06e9eb843702099f36fbab1c7d23f13b576b5a9b4a15c0eaaaa4a408f85795bca4fea62ded6670ca8\",\"name\":\"@bcoe/v8-coverage\",\"version\":\"1.0.2\"},\"@biomejs__biome-2.5.9.tgz\":{\"integrity\":\"KkgCvdHB4IhtpHpF564plA9jo6fDOwWGQ/3jvreLzgOtRLEDoPqr7QO9qejNA8jKwDsSkAKr77hqBHnyUbIw4g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2a4802bdd1c1e0886da47a45e7ae29940f63a3a7c33b058643fde3beb78bce03ad44b103a0faabed03bda9e8cd03c8cac03b129002abefb86a0479f251b230e2\",\"name\":\"@biomejs/biome\",\"version\":\"2.5.9\"},\"@biomejs__cli-darwin-arm64-2.5.9.tgz\":{\"integrity\":\"am22pX2aBqznqq1eMyIj/bZ++riF3Lk6ct7cbv+gQK0csFhr+d8O0RkOi2FF2qSgFgANbqNkIZ0/PxlnW2pLFg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6a6db6a57d9a06ace7aaad5e332223fdb67efab885dcb93a72dedc6effa040ad1cb0586bf9df0ed1190e8b6145daa4a016000d6ea364219d3f3f19675b6a4b16\",\"name\":\"@biomejs/cli-darwin-arm64\",\"version\":\"2.5.9\"},\"@biomejs__cli-darwin-x64-2.5.9.tgz\":{\"integrity\":\"l44KWDHLDvEnD0N/XcrVs7VXb3A18xL7QS3WB0eL93wbmk529ffIG55vleGCqaunpRUjLrdnjK05Qki1dsjylg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"978e0a5831cb0ef1270f437f5dcad5b3b5576f7035f312fb412dd607478bf77c1b9a4e76f5f7c81b9e6f95e182a9aba7a515232eb7678cad394248b576c8f296\",\"name\":\"@biomejs/cli-darwin-x64\",\"version\":\"2.5.9\"},\"@biomejs__cli-linux-arm64-2.5.9.tgz\":{\"integrity\":\"ICaK+IYaVZvKbBxX2rwrPT0DdUDMnE9Vm3nQGe+mltQPmUg19pONzkPWGdY4FCsoreDETWDynvdt4ysCbF5gNQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"20268af8861a559bca6c1c57dabc2b3d3d037540cc9c4f559b79d019efa696d40f994835f6938dce43d619d638142b28ade0c44d60f29ef76de32b026c5e6035\",\"name\":\"@biomejs/cli-linux-arm64\",\"version\":\"2.5.9\"},\"@biomejs__cli-linux-arm64-musl-2.5.9.tgz\":{\"integrity\":\"7ImVPwBLCtkmpR5esd8RHhTqW94f0JLJQum6AneYcy94jRm18TaPPm7slaigGzFhfgt3QiD1Vj52LKmBAnKizA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ec89953f004b0ad926a51e5eb1df111e14ea5bde1fd092c942e9ba027798732f788d19b5f1368f3e6eec95a8a01b31617e0b774220f5563e762ca9810272a2cc\",\"name\":\"@biomejs/cli-linux-arm64-musl\",\"version\":\"2.5.9\"},\"@biomejs__cli-linux-x64-2.5.9.tgz\":{\"integrity\":\"z22Q/zFYSvbIJfW1CbfZPu4X8PddS6Qd2ORbc6h+aT6EcwAxUF3m6fA4HjNvA3TU4X0dTJRwNPB165ES3PJXzg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"cf6d90ff31584af6c825f5b509b7d93eee17f0f75d4ba41dd8e45b73a87e693e84730031505de6e9f0381e336f0374d4e17d1d4c947034f075eb9112dcf257ce\",\"name\":\"@biomejs/cli-linux-x64\",\"version\":\"2.5.9\"},\"@biomejs__cli-linux-x64-musl-2.5.9.tgz\":{\"integrity\":\"RXGaD0o1/pTTguYw1aeDJh9ad6Lfrui0fI7mBderTyGr7WuUJkBIttgLkR3XJyoxOkkgfBDspaUT8wXArTqLZw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"45719a0f4a35fe94d382e630d5a783261f5a77a2dfaee8b47c8ee605d7ab4f21abed6b94264048b6d80b911dd7272a313a49207c10eca5a513f305c0ad3a8b67\",\"name\":\"@biomejs/cli-linux-x64-musl\",\"version\":\"2.5.9\"},\"@biomejs__cli-win32-arm64-2.5.9.tgz\":{\"integrity\":\"nHK+/HHC+D0ogAHUxomgoSTdjImb6fmNNVTKmf0tyu4eDL1DqPKIHc+i+UL8+b0RnAu8224qo8F2tCVnaT0A3w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9c72befc71c2f83d288001d4c689a0a124dd8c899be9f98d3554ca99fd2dcaee1e0cbd43a8f2881dcfa2f942fcf9bd119c0bbcdb6e2aa3c176b42567693d00df\",\"name\":\"@biomejs/cli-win32-arm64\",\"version\":\"2.5.9\"},\"@biomejs__cli-win32-x64-2.5.9.tgz\":{\"integrity\":\"Yiq0H56LjXSSw/hd9YkXgSLQfzyDJzbzU2TezozxyNw+uKWAqOtqGVvBfzKRRDiaFF5avGAhHdWKx7LtDOShUw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"622ab41f9e8b8d7492c3f85df589178122d07f3c832736f35364dece8cf1c8dc3eb8a580a8eb6a195bc17f329144389a145e5abc60211dd58ac7b2ed0ce4a153\",\"name\":\"@biomejs/cli-win32-x64\",\"version\":\"2.5.9\"},\"@bramus__specificity-2.4.2.tgz\":{\"integrity\":\"ctxtJ/eA+t+6q2++vj5j7FYX3nRu311q1wfYH3xjlLOsczhlhxAg2FWNUXhpGvAw3BWo1xBcvOV6/YLc2r5FJw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"72dc6d27f780fadfbaab6fbebe3e63ec5617de746edf5d6ad707d81f7c6394b3ac733865871020d8558d5178691af030dc15a8d7105cbce57afd82dcdabe4527\",\"name\":\"@bramus/specificity\",\"version\":\"2.4.2\"},\"@csstools__color-helpers-6.1.1.tgz\":{\"integrity\":\"gLNsunvwf3mCi5u5o46/Z/JcJMnhbHSaZ69rkgPzNM3J4s8hWwpPUQB6/tt0EDFyCiWzxANlx+2LJwpYj4zS1w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"80b36cba7bf07f79828b9bb9a38ebf67f25c24c9e16c749a67af6b9203f334cdc9e2cf215b0a4f51007afedb741031720a25b3c40365c7ed8b270a588f8cd2d7\",\"name\":\"@csstools/color-helpers\",\"version\":\"6.1.1\"},\"@csstools__css-calc-3.3.0.tgz\":{\"integrity\":\"c5ihYsPkdG6JCkU2zTMm4+k6r7RXuGxtWYhu5DHMIiF1FHzrfmHL5so11AoFpUv/tu61xfcmT4AmKoFfMPoqdQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7398a162c3e4746e890a4536cd3326e3e93aafb457b86c6d59886ee431cc222175147ceb7e61cbe6ca35d40a05a54bffb6eeb5c5f7264f80262a815f30fa2a75\",\"name\":\"@csstools/css-calc\",\"version\":\"3.3.0\"},\"@csstools__css-color-parser-4.2.0.tgz\":{\"integrity\":\"5+5LEmFuY1AjXdYhmgjTJogtQnP1evJ1zrBZGUNZ0thkpwnnmKxcHdAMn/OtFjAb25zA+jKDVYVRl+5G7rjv1A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e7ee4b12616e6350235dd6219a08d326882d4273f57af275ceb059194359d2d864a709e798ac5c1dd00c9ff3ad16301bdb9cc0fa328355855197ee46eeb8efd4\",\"name\":\"@csstools/css-color-parser\",\"version\":\"4.2.0\"},\"@csstools__css-parser-algorithms-4.0.0.tgz\":{\"integrity\":\"+B87qS7fIG3L5h3qwJ/IFbjoVoOe/bpOdh9hAjXbvx0o8ImEmUsGXN0inFOnk2ChCFgqkkGFQ+TpM5rbhkKe4w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f81f3ba92edf206dcbe61deac09fc815b8e856839efdba4e761f610235dbbf1d28f08984994b065cdd229c53a79360a108582a92418543e4e9339adb86429ee3\",\"name\":\"@csstools/css-parser-algorithms\",\"version\":\"4.0.0\"},\"@csstools__css-syntax-patches-for-csstree-1.1.8.tgz\":{\"integrity\":\"CpMLjAvwQg3BL5S0IeqsZNMH7EQrEWi0kLKOC13ZBF0ZwERiLWlibNPJr8G1kdU3Ms/r2KiNrF81pUh2HwAHdg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0a930b8c0bf0420dc12f94b421eaac64d307ec442b1168b490b28e0b5dd9045d19c044622d69626cd3c9afc1b591d53732cfebd8a88dac5f35a548761f000776\",\"name\":\"@csstools/css-syntax-patches-for-csstree\",\"version\":\"1.1.8\"},\"@csstools__css-tokenizer-4.0.0.tgz\":{\"integrity\":\"QxULHAm7cNu72w97JUNCBFODFaXpbDg+dP8b/oWFAZ2MTRppA3U00Y2L1HqaS4J6yBqxwa/Y3nMBaxVKbB/NsA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"43150b1c09bb70dbbbdb0f7b25434204538315a5e96c383e74ff1bfe8585019d8c4d1a69037534d18d8bd47a9a4b827ac81ab1c1afd8de73016b154a6c1fcdb0\",\"name\":\"@csstools/css-tokenizer\",\"version\":\"4.0.0\"},\"@dotenvx__dotenvx-1.75.1.tgz\":{\"integrity\":\"/BITOC9dmS/edY2zQwZNicQ059O6RKabtQfyEafV0nGtfYRNHYy1DIPiYVcov40+tob9hfmBnbR963dS+EQ1DQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"fc1213382f5d992fde758db343064d89c434e7d3ba44a69bb507f211a7d5d271ad7d844d1d8cb50c83e2615728bf8d3eb686fd85f9819db47deb7752f844350d\",\"name\":\"@dotenvx/dotenvx\",\"version\":\"1.75.1\"},\"@dotenvx__primitives-0.8.0.tgz\":{\"integrity\":\"VYJy0uhFm9zTJ1TxBaW/pA8bjbOM/OttaNMwZ1RHG4JKyRG7DhSdiqD1ipQoAyoD22olUtxbP78W9xY3Wd11bg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"558272d2e8459bdcd32754f105a5bfa40f1b8db38cfceb6d68d3306754471b824ac911bb0e149d8aa0f58a9428032a03db6a2552dc5b3fbf16f7163759dd756e\",\"name\":\"@dotenvx/primitives\",\"version\":\"0.8.0\"},\"@electron-internal__extract-zip-1.0.5.tgz\":{\"integrity\":\"+bqFCP98pLI0Tt0XQo1TmlXtwjWchISndDOxCkEcIuUgXWpBnLyRI+2DU+mesvnMMX6L1XDqYNA0lXNDHd/yiA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f9ba8508ff7ca4b2344edd17428d539a55edc2359c8484a77433b10a411c22e5205d6a419cbc9123ed8353e99eb2f9cc317e8bd570ea60d0349573431ddff288\",\"name\":\"@electron-internal/extract-zip\",\"version\":\"1.0.5\"},\"@electron__asar-3.4.1.tgz\":{\"integrity\":\"i4/rNPRS84t0vSRa2HorerGRXWyF4vThfHesw0dmcWHp+cspK743UanA0suA5Q5y8kzY2y6YKrvbIUn69BCAiA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8b8feb34f452f38b74bd245ad87a2b7ab1915d6c85e2f4e17c77acc347667161e9f9cb292bbe3751a9c0d2cb80e50e72f24cd8db2e982abbdb2149faf4108088\",\"name\":\"@electron/asar\",\"version\":\"3.4.1\"},\"@electron__fuses-1.8.0.tgz\":{\"integrity\":\"zx0EIq78WlY/lBb1uXlziZmDZI4ubcCXIMJ4uGjXzZW0nS19TjSPeXPAjzzTmKQlJUZm0SbmZhPKP7tuQ1SsEw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"cf1d0422aefc5a563f9416f5b97973899983648e2e6dc09720c278b868d7cd95b49d2d7d4e348f7973c08f3cd398a425254666d126e66613ca3fbb6e4354ac13\",\"name\":\"@electron/fuses\",\"version\":\"1.8.0\"},\"@electron__get-3.1.0.tgz\":{\"integrity\":\"F+nKc0xW+kVbBRhFzaMgPy3KwmuNTYX1fx6+FxxoSnNgwYX6LD7AKBTWkU0MQ6IBoe7dz069CNkR673sPAgkCQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"17e9ca734c56fa455b051845cda3203f2dcac26b8d4d85f57f1ebe171c684a7360c185fa2c3ec02814d6914d0c43a201a1eeddcf4ebd08d911ebbdec3c082409\",\"name\":\"@electron/get\",\"version\":\"3.1.0\"},\"@electron__get-5.1.0.tgz\":{\"integrity\":\"3kSBtG8ObcTVfXanm5vVJ6UnBLEVmVsRk1M+vGqCuMBV+XLCbJYuWQful+yIy0GQDsSlK0kHEriEHn7SPk4EnA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"de4481b46f0e6dc4d57d76a79b9bd527a52704b115995b1193533ebc6a82b8c055f972c26c962e5907ee97ec88cb41900ec4a52b490712b8841e7ed23e4e049c\",\"name\":\"@electron/get\",\"version\":\"5.1.0\"},\"@electron__notarize-2.5.0.tgz\":{\"integrity\":\"jNT8nwH1f9X5GEITXaQ8IF/KdskvIkOFfB2CvwumsveVidzpSc+mvhhTMdAGSYF3O+Nq49lJ7y+ssODRXu06+A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8cd4fc9f01f57fd5f91842135da43c205fca76c92f2243857c1d82bf0ba6b2f79589dce949cfa6be185331d0064981773be36ae3d949ef2facb0e0d15eed3af8\",\"name\":\"@electron/notarize\",\"version\":\"2.5.0\"},\"@electron__notarize-3.1.1.tgz\":{\"integrity\":\"uQQSlOiJnqRkTL1wlEBAxe90nVN/Fc/hEmk0bqpKk8nKjV1if/tXLHKUPePtv9Xsx90PtZU8aidx5lAiOpjkQQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b9041294e8899ea4644cbd70944040c5ef749d537f15cfe11269346eaa4a93c9ca8d5d627ffb572c72943de3edbfd5ecc7dd0fb5953c6a2771e650223a98e441\",\"name\":\"@electron/notarize\",\"version\":\"3.1.1\"},\"@electron__osx-sign-1.3.3.tgz\":{\"integrity\":\"KZ8mhXvWv2rIEgMbWZ4y33bDHyUKMXnx4M0sTyPNK/vcB81ImdeY9Ggdqy0SWbMDgmbqyQ+phgejh6V3R2QuSg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"299f26857bd6bf6ac812031b599e32df76c31f250a3179f1e0cd2c4f23cd2bfbdc07cd4899d798f4681dab2d1259b3038266eac90fa98607a387a57747642e4a\",\"name\":\"@electron/osx-sign\",\"version\":\"1.3.3\"},\"@electron__rebuild-4.2.0.tgz\":{\"integrity\":\"RKL/O+jGoXJMxrx/5771y1n0xTKmFuOYGO3gMmwypBM6rsH0kou0mswwdXA2JrhIkE4xyC7v9vGk0n6NPzgOxQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"44a2ff3be8c6a1724cc6bc7fe7bef5cb59f4c532a616e39818ede0326c32a4133aaec1f4928bb49acc3075703626b848904e31c82eeff6f1a4d27e8d3f380ec5\",\"name\":\"@electron/rebuild\",\"version\":\"4.2.0\"},\"@electron__universal-2.0.3.tgz\":{\"integrity\":\"Wn9sPYIVFRFl5HmwMJkARCCf7rqK/EurkfQ/rJZ14mHP3iYTjZSIOSVonEAnhWeAXwtw7zOekGRlc6yTtZ0t+g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5a7f6c3d8215151165e479b030990044209feeba8afc4bab91f43fac9675e261cfde26138d94883925689c40278567805f0b70ef339e90646573ac93b59d2dfa\",\"name\":\"@electron/universal\",\"version\":\"2.0.3\"},\"@electron__windows-sign-1.2.2.tgz\":{\"integrity\":\"dfZeox66AvdPtb2lD8OsIIQh12Tp0GNCRUDfBHIKGpbmopZto2/A8nSpYYLoedPIHpqkeblZ/k8OV0Gy7PYuyQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"75f65ea31eba02f74fb5bda50fc3ac208421d764e9d063424540df04720a1a96e6a2966da36fc0f274a96182e879d3c81e9aa479b959fe4f0e5741b2ecf62ec9\",\"name\":\"@electron/windows-sign\",\"version\":\"1.2.2\"},\"@esbuild__aix-ppc64-0.28.2.tgz\":{\"integrity\":\"XExcO+dvLKvVtNTibSTBej1NCAbaGhWn9Ww1ZPx80qsahhPFe/8jgWP0IchNe0F3HwkU7n8ejhH8bjonqht8mQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5c4c5c3be76f2cabd5b4d4e26d24c17a3d4d0806da1a15a7f56c3564fc7cd2ab1a8613c57bff238163f421c84d7b41771f0914ee7f1e8e11fc6e3a27aa1b7c99\",\"name\":\"@esbuild/aix-ppc64\",\"version\":\"0.28.2\"},\"@esbuild__android-arm-0.28.2.tgz\":{\"integrity\":\"kXXoiPVVGQcnIYGOeaovwOURpniDBpSq4A03qkQ+BMQqtGG6HYap3xne9C1O1yo4TR3qxlCX5IqqmX6fFo2Lqg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9175e888f55519072721818e79aa2fc0e511a678830694aae00d37aa443e04c42ab461ba1d86a9df19def42d4ed72a384d1deac65097e48aaa997e9f168d8baa\",\"name\":\"@esbuild/android-arm\",\"version\":\"0.28.2\"},\"@esbuild__android-arm64-0.28.2.tgz\":{\"integrity\":\"5YfKeeI8qWfBZIX+u2xZC3Zlb3Os/gLS2sbEKM+I4ZOcsWmHS2WLysCcQZDAFRslDUU5Oiq44gf6PYN1vGwG5A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e587ca79e23ca967c16485febb6c590b76656f73acfe02d2dac6c428cf88e1939cb169874b658bcac09c4190c0151b250d45393a2ab8e207fa3d8375bc6c06e4\",\"name\":\"@esbuild/android-arm64\",\"version\":\"0.28.2\"},\"@esbuild__android-x64-0.28.2.tgz\":{\"integrity\":\"O387ite7SzUyCcy3JQX4P4bLtEA7bLLkx+esve5JHnyYfNTxcVpXZo9jhdB0lTKN44gztELTdU7nS8Nr16Fs1Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3b7f3b8ad7bb4b353209ccb72505f83f86cbb4403b6cb2e4c7e7acbdee491e7c987cd4f1715a57668f6385d07495328de38833b442d3754ee74bc36bd7a16cd5\",\"name\":\"@esbuild/android-x64\",\"version\":\"0.28.2\"},\"@esbuild__darwin-arm64-0.28.2.tgz\":{\"integrity\":\"n4KqkOQrraxHJcgjM1RvwbigfQKIKJVpM7xp+KsxiyUSrRdIXnt73VhrPAx0fV44hgfmIVKjxMN9J1t5jySVkw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9f82aa90e42badac4725c82333546fc1b8a07d028828956933bc69f8ab318b2512ad17485e7b7bdd586b3c0c747d5e388607e62152a3c4c37d275b798f249593\",\"name\":\"@esbuild/darwin-arm64\",\"version\":\"0.28.2\"},\"@esbuild__darwin-x64-0.28.2.tgz\":{\"integrity\":\"uq6suIWYP37qzGddBKPw5QEQPi6HiLGsO7UmkpfyaYNQ3D+rN6w6WfwH+nuqcGXWvawGwxOEroO4YGnFh95azw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"baaeacb885983f7eeacc675d04a3f0e501103e2e8788b1ac3bb5269297f2698350dc3fab37ac3a59fc07fa7baa7065d6bdac06c31384ae83b86069c587de5acf\",\"name\":\"@esbuild/darwin-x64\",\"version\":\"0.28.2\"},\"@esbuild__freebsd-arm64-0.28.2.tgz\":{\"integrity\":\"n+I0BTSRIoy+d6RPKnEVwql5UwBJolytvY4mAOIEJorKlqgPII8ix6slVVrfZ5Tnj7glIZvloylbB/EJPMWEXw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9fe234053491228cbe77a44f2a7115c2a979530049a25cadbd8e2600e204268aca96a80f208f22c7ab25555adf6794e78fb825219be5a3295b07f1093cc5845f\",\"name\":\"@esbuild/freebsd-arm64\",\"version\":\"0.28.2\"},\"@esbuild__freebsd-x64-0.28.2.tgz\":{\"integrity\":\"78XJTJkvPs0kz2w61301PJjXl4g7q3JqiYMZ/M/yVI73EHBrCRTgkhu9oqG7vPqq+a/yadEW8aD+agKlk5xrmg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"efc5c94c992f3ecd24cf6c3ad77d353c98d797883bab726a898319fccff2548ef710706b0914e0921bbda2a1bbbcfaaaf9aff269d116f1a0fe6a02a5939c6b9a\",\"name\":\"@esbuild/freebsd-x64\",\"version\":\"0.28.2\"},\"@esbuild__linux-arm-0.28.2.tgz\":{\"integrity\":\"XlDnu2q5yoqems+xay6wSAcg9DDD7K9RLKZEBOMZm3ckNpJBvOX20tSfby8KfrrhINDyv9V2YVZKY/SpoGJI8w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5e50e7bb6ab9ca8a9e9acfb16b2eb0480720f430c3ecaf512ca64404e3199b7724369241bce5f6d2d49f6f2f0a7ebae120d0f2bfd57661564a63f4a9a06248f3\",\"name\":\"@esbuild/linux-arm\",\"version\":\"0.28.2\"},\"@esbuild__linux-arm64-0.28.2.tgz\":{\"integrity\":\"pW4AC0P3it8c7do9MVM4p51FzHzdM/TZrerurgRcHJ2WTa1VQ1CIq18xncfpBJw4ojkiZZrKW2yIBWBP92j6Ug==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a56e000b43f78adf1cedda3d315338a79d45cc7cdd33f4d9adeaeeae045c1c9d964dad55435088ab5f319dc7e9049c38a23922659aca5b6c8805604ff768fa52\",\"name\":\"@esbuild/linux-arm64\",\"version\":\"0.28.2\"},\"@esbuild__linux-ia32-0.28.2.tgz\":{\"integrity\":\"CYbnj78HsIeA+DhgUKgFCfvNsTHFhMMrinUrMZpDXJXKN8T3XViTZ/+wtHeVxEWY8ewSzTFN+nRmSwO2tZaLUQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0986e78fbf07b08780f8386050a80509fbcdb131c584c32b8a752b319a435c95ca37c4f75d589367ffb0b47795c44598f1ec12cd314dfa74664b03b6b5968b51\",\"name\":\"@esbuild/linux-ia32\",\"version\":\"0.28.2\"},\"@esbuild__linux-loong64-0.28.2.tgz\":{\"integrity\":\"buwkd8nsph4R+ajRvw0qM5Hja/TXQow3ptzWO2EbG/cqcIkHloRrdlBtQlshyYGTNFvfkfJ5tpPLVkY4DtsPfQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6eec2477c9eca61e11f9a8d1bf0d2a3391e36bf4d7428c37a6dcd63b611b1bf72a70890796846b76506d425b21c98193345bdf91f279b693cb5646380edb0f7d\",\"name\":\"@esbuild/linux-loong64\",\"version\":\"0.28.2\"},\"@esbuild__linux-mips64el-0.28.2.tgz\":{\"integrity\":\"ZVykbDyk7519VwiNb9Lcj9m8XM6v5V9uKPvrEMkkEedVewf+0itkhahp4HDpgERXhwLRpWFypsGbG/J8s0QjJA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"655ca46c3ca4ef9d7d57088d6fd2dc8fd9bc5cceafe55f6e28fbeb10c92411e7557b07fed22b6485a869e070e98044578702d1a56172a6c19b1bf27cb3442324\",\"name\":\"@esbuild/linux-mips64el\",\"version\":\"0.28.2\"},\"@esbuild__linux-ppc64-0.28.2.tgz\":{\"integrity\":\"CAXl+Dtd9UUuJd8pKKdwh6MLm3MUMiqMPmhZ3tTSXPqfyQ3vDl6R5hZdZ/kYojK4ofXtdfSv1tFq8XzWx3heNQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0805e5f83b5df5452e25df2928a77087a30b9b7314322a8c3e6859ded4d25cfa9fc90def0e5e91e6165d67f918a232b8a1f5ed75f4afd6d16af17cd6c7785e35\",\"name\":\"@esbuild/linux-ppc64\",\"version\":\"0.28.2\"},\"@esbuild__linux-riscv64-0.28.2.tgz\":{\"integrity\":\"GeXCej4IQtU1B+QlDV8W/RRvbzI3O/Stss+/bCXv4lZls5WGRtu2a+3JkA3i4qIUlMXpcHebWpF8AkJhATowuA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"19e5c27a3e0842d53507e4250d5f16fd146f6f32373bf4adb2cfbf6c25efe25665b3958646dbb66bedc9900de2e2a21494c5e970779b5a917c024261013a30b8\",\"name\":\"@esbuild/linux-riscv64\",\"version\":\"0.28.2\"},\"@esbuild__linux-s390x-0.28.2.tgz\":{\"integrity\":\"3H1weTYZPxt/WOhByszQZybS9w5lKzUn1FDMsgEChbHWQwHYQQRfBxgCcZvPhjHfKyJjIievvMmEUawJrdY9Dg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"dc7d707936193f1b7f58e841caccd06726d2f70e652b3527d450ccb2010285b1d64301d841045f071802719bcf8631df2b22632227afbcc98451ac09add63d0e\",\"name\":\"@esbuild/linux-s390x\",\"version\":\"0.28.2\"},\"@esbuild__linux-x64-0.28.2.tgz\":{\"integrity\":\"4xTZr1FUmSoQW4XIWmit3tzQrUTZM+N3P0XV8xROKYF50XfI7xeO90+1bZvNwxIufQ9hDQVRJH5YhgPVF8A/HQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e314d9af5154992a105b85c85a68addedcd0ad44d933e3773f45d5f3144e298179d177c8ef178ef74fb56d9bcdc3122e7d0f610d0551247e588603d517c03f1d\",\"name\":\"@esbuild/linux-x64\",\"version\":\"0.28.2\"},\"@esbuild__netbsd-arm64-0.28.2.tgz\":{\"integrity\":\"sSATRjPeDBg3pdgHoQfoYBob11Kk1FGa9lui5RIHZCoCkJa9QKlvl3/vKz2usCmYYjs7ymJR/2Nnsqe+Hjt5nw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b120134633de0c1837a5d807a107e8601a1bd752a4d4519af65ba2e51207642a029096bd40a96f977fef2b3daeb02998623b3bca6251ff6367b2a7be1e3b799f\",\"name\":\"@esbuild/netbsd-arm64\",\"version\":\"0.28.2\"},\"@esbuild__netbsd-x64-0.28.2.tgz\":{\"integrity\":\"lqnzCV+mM0gIADaKihiCg6ifgfU2L3h5E33rNQBN1Y4MaVGnzryzmvvf7UHxprpQdE8hpqLolJ9Rl+SkIRDpyw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"96a9f3095fa633480800368a8a188283a89f81f5362f7879137deb35004dd58e0c6951a7cebcb39afbdfed41f1a6ba50744f21a6a2e8949f5197e4a42110e9cb\",\"name\":\"@esbuild/netbsd-x64\",\"version\":\"0.28.2\"},\"@esbuild__openbsd-arm64-0.28.2.tgz\":{\"integrity\":\"AL2qJILH7lNjrDmCQDvdxMfAUIv8KMNZOvrwAQ8i8//ntL9FflhOyMJ8OZSMBb8/AWXe3/5v5S20y3zCoZWKoQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"00bdaa2482c7ee5363ac3982403bddc4c7c0508bfc28c3593afaf0010f22f3ffe7b4bf457e584ec8c27c39948c05bf3f0165dedffe6fe52db4cb7cc2a1958aa1\",\"name\":\"@esbuild/openbsd-arm64\",\"version\":\"0.28.2\"},\"@esbuild__openbsd-x64-0.28.2.tgz\":{\"integrity\":\"QtiuPytchRyC4rwUKhexJdQKvDuZ6hWloi3igqPQNUJCS1/v9EiO3UTOXR6A3FoMo4fnAKbWJdqaIwhOzh8qEw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"42d8ae3f2b5c851c82e2bc142a17b125d40abc3b99ea15a5a22de282a3d03542424b5feff4488edd44ce5d1e80dc5a0ca387e700a6d625da9a23084ece1f2a13\",\"name\":\"@esbuild/openbsd-x64\",\"version\":\"0.28.2\"},\"@esbuild__openharmony-arm64-0.28.2.tgz\":{\"integrity\":\"WkhYDmpTjLvGlScA1rwjRUmhl4k8oXR3cIbtqWmELgU/dFeHHlEllxDvdWcNJV9rbzCexB5vz8gtNewWLgCT7Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5a48580e6a538cbbc6952700d6bc234549a197893ca174777086eda969842e053f7457871e51259710ef75670d255f6b6f309ec41e6fcfc82d35ec162e0093ed\",\"name\":\"@esbuild/openharmony-arm64\",\"version\":\"0.28.2\"},\"@esbuild__sunos-x64-0.28.2.tgz\":{\"integrity\":\"GPMSkTOtMnv2U2F8gxe4Io6qmVs+YKyp832Etqqxr0hFngmXQ3rzwytelm3GIn7T4VviRUlf3sOgBOiTdvaf7g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"18f3129133ad327bf653617c8317b8228eaa995b3e60aca9f37d84b6aab1af48459e0997437af3c32b5e966dc6227ed3e15be245495fdec3a004e89376f69fee\",\"name\":\"@esbuild/sunos-x64\",\"version\":\"0.28.2\"},\"@esbuild__win32-arm64-0.28.2.tgz\":{\"integrity\":\"PIhhEkE9uPBleRBrQEJpUn7MBnibZzbGzYWPmY3x+YoVg/95zbjB4CxPPOQ8l5tYYM4mMaCthF8/1DIfBQQyWQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3c886112413db8f06579106b404269527ecc06789b6736c6cd858f998df1f98a1583ff79cdb8c1e02c4f3ce43c979b5860ce2631a0ad845f3fd4321f05043259\",\"name\":\"@esbuild/win32-arm64\",\"version\":\"0.28.2\"},\"@esbuild__win32-ia32-0.28.2.tgz\":{\"integrity\":\"YmJbfTlvU7Sdn9BB+4PRES4oB6pxgS37MAONj+hBr/cpXS1aBPKXxNnDbu+QCWPj0o9dgyxeq79g6c5P8KeuYA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"62625b7d396f53b49d9fd041fb83d1112e2807aa71812dfb30038d8fe841aff7295d2d5a04f297c4d9c36eef900963e3d28f5d832c5eabbf60e9ce4ff0a7ae60\",\"name\":\"@esbuild/win32-ia32\",\"version\":\"0.28.2\"},\"@esbuild__win32-x64-0.28.2.tgz\":{\"integrity\":\"5ebpxr3nWMzrL/rnUI755Jkuee0bHL/Gq0WTF9lvcpv73wAp5eu8MfBUgWK9bhWvZjj7yX8etf/8tI8Ney695g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e5e6e9c6bde758cceb2ffae7508ef9e4992e79ed1b1cbfc6ab459317d96f729bfbdf0029e5ebbc31f0548162bd6e15af6638fbc97f1eb5fffcb48f0d7b2ebde6\",\"name\":\"@esbuild/win32-x64\",\"version\":\"0.28.2\"},\"@exodus__bytes-1.15.1.tgz\":{\"integrity\":\"S6mL0yNB/Abt9Ei4tq8gDhcczc4S3+vQ4ra7vxnAf+YHC02srtqxKKZghx2Dq6p0e66THKwR6r8N6P95wEty7Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4ba98bd32341fc06edf448b8b6af200e171ccdce12dfebd0e2b6bbbf19c07fe6070b4dacaedab128a660871d83abaa747bae931cac11eabf0de8ff79c04b72ed\",\"name\":\"@exodus/bytes\",\"version\":\"1.15.1\"},\"@fastify__accept-negotiator-2.1.0.tgz\":{\"integrity\":\"F3EVbzWt+xcnVaOHmWyIlpuFtbxOln7HDZQsh09MtMmMm/CipMayNt8hnIL8VQi54u2ZociDbf+iluGYkf7B1A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1771156f35adfb172755a387996c88969b85b5bc4e967ec70d942c874f4cb4c98c9bf0a2a4c6b236df219c82fc5508b9e2ed99a1c8836dffa296e19891fec1d4\",\"name\":\"@fastify/accept-negotiator\",\"version\":\"2.1.0\"},\"@fastify__ajv-compiler-4.0.6.tgz\":{\"integrity\":\"NtuzM0SfaMJbGlnjr9LWQUN5LzgSrbB8tf/wRZNas+4E1O/Nmzl53e7ruT61HDZyRCJGC6FxIogmNZO1c5ETBA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"36dbb333449f68c25b1a59e3afd2d64143792f3812adb07cb5fff045935ab3ee04d4efcd9b3979ddeeebb93eb51c36724422460ba1712288263593b573911304\",\"name\":\"@fastify/ajv-compiler\",\"version\":\"4.0.6\"},\"@fastify__error-4.2.0.tgz\":{\"integrity\":\"RSo3sVDXfHskiBZKBPRgnQTtIqpi/7zhJOEmAxCiBcM7d0uwdGdxLlsCaLzGs8v8NnxIRlfG0N51p5yFaOentQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"452a37b150d77c7b2488164a04f4609d04ed22aa62ffbce124e1260310a205c33b774bb07467712e5b0268bcc6b3cbfc367c484657c6d0de75a79c8568e7a7b5\",\"name\":\"@fastify/error\",\"version\":\"4.2.0\"},\"@fastify__fast-json-stringify-compiler-5.1.0.tgz\":{\"integrity\":\"PxcYtKLbQ8Z+yApiqjK8FwxIwvEj38k2OiLc17u8dkJSlmfi2wHHPaSnaoqBPQqtvF8YVsDgDpP2snDCfFrpfw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3f1718b4a2db43c67ec80a62aa32bc170c48c2f123dfc9363a22dcd7bbbc7642529667e2db01c73da4a76a8a813d0aadbc5f1856c0e00e93f6b270c27c5ae97f\",\"name\":\"@fastify/fast-json-stringify-compiler\",\"version\":\"5.1.0\"},\"@fastify__forwarded-3.0.2.tgz\":{\"integrity\":\"NE8HgKLgYejV9lDpqkEFaDKMLYelJBVfHekhB0UKvX0ghagXRJqg68feg8er1NPXxG4N9i6vPxzt8E+3wHfcmA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"344f0780a2e061e8d5f650e9aa410568328c2d87a524155f1de92107450abd7d2085a817449aa0ebc7de83c7abd4d3d7c46e0df62eaf3f1cedf04fb7c077dc98\",\"name\":\"@fastify/forwarded\",\"version\":\"3.0.2\"},\"@fastify__merge-json-schemas-0.2.1.tgz\":{\"integrity\":\"OA3KGBCy6KtIvLf8DINC5880o5iBlDX4SxzLQS8HorJAbqluzLRn80UXU0bxZn7UOFhFgpRJDasfwn9nG4FG4A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"380dca1810b2e8ab48bcb7fc0c8342e7cf34a398819435f84b1ccb412f07a2b2406ea96eccb467f345175346f1667ed43858458294490dab1fc27f671b8146e0\",\"name\":\"@fastify/merge-json-schemas\",\"version\":\"0.2.1\"},\"@fastify__proxy-addr-5.1.0.tgz\":{\"integrity\":\"INS+6gh91cLUjB+PVHfu1UqcB76Sqtpyp7bnL+FYojhjygvOPA9ctiD/JDKsyD9Xgu4hUhCSJBPig/w7duNajw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"20d4beea087dd5c2d48c1f8f5477eed54a9c07be92aada72a7b6e72fe158a23863ca0bce3c0f5cb620ff2432acc83f5782ee215210922413e283fc3b76e35a8f\",\"name\":\"@fastify/proxy-addr\",\"version\":\"5.1.0\"},\"@fastify__send-4.1.1.tgz\":{\"integrity\":\"BYo+EiaKwlxH+WetGk6hAs1d39iP0y1gqB8lGF/qwkJ9ZZ/cBY1vx5NvExb9Sc3yRMFjD5X4Eyh4e4+TzRkzdw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"058a3e12268ac25c47f967ad1a4ea102cd5ddfd88fd32d60a81f25185feac2427d659fdc058d6fc7936f1316fd49cdf244c1630f95f81328787b8f93cd193377\",\"name\":\"@fastify/send\",\"version\":\"4.1.1\"},\"@fastify__static-10.1.3.tgz\":{\"integrity\":\"W6jqajYS974XjPjB5hQWoxPM8NKM4+p8YmQT6G5IbCa4uhdWSVadZUv75siy1wEA/3ty8RYdpBydfWeu9AqAqQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5ba8ea6a3612f7be178cf8c1e61416a313ccf0d28ce3ea7c626413e86e486c26b8ba175649569d654bfbe6c8b2d70100ff7b72f1161da41c9d7d67aef40a80a9\",\"name\":\"@fastify/static\",\"version\":\"10.1.3\"},\"@fastify__websocket-11.3.0.tgz\":{\"integrity\":\"g89ag4BCcD9YP5wBZXixzoLnuf5j89p/sXFcfpCiv2pdEkYYukBEoK3heVzqsp0EAtszVDc2BBZG0KZqeAShIA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"83cf5a838042703f583f9c016578b1ce82e7b9fe63f3da7fb1715c7e90a2bf6a5d124618ba4044a0ade1795ceab29d0402db33543736041646d0a66a7804a120\",\"name\":\"@fastify/websocket\",\"version\":\"11.3.0\"},\"@floating-ui__core-1.8.0.tgz\":{\"integrity\":\"0CIZ5itps/8x7BG8dEIhs53BvCUH2PCoogtakwRTut+Arm58sJooJ0AuZhLw2HJYIR5cMLNPBSS728sPho2khQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d02219e62b69b3ff31ec11bc744221b39dc1bc2507d8f0a8a20b5a930453badf80ae6e7cb09a2827402e6612f0d87258211e5c30b34f0524bbdbcb0f868da485\",\"name\":\"@floating-ui/core\",\"version\":\"1.8.0\"},\"@floating-ui__dom-1.8.0.tgz\":{\"integrity\":\"yXSrzeHZBTZadLOlfyhCkJHNeLJnHRnRInwdZ40L7ZiaAtrBwoYlsDrX3v5zB1Utk7CLfzcOVnVVWoXEky7Ceg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c974abcde1d905365a74b3a57f28429091cd78b2671d19d1227c1d678d0bed989a02dac1c28625b03ad7defe7307552d93b08b7f370e5675555a85c4932ec27a\",\"name\":\"@floating-ui/dom\",\"version\":\"1.8.0\"},\"@floating-ui__react-dom-2.1.9.tgz\":{\"integrity\":\"JDjEFGCpImxDCA7JJKviA0M9+RtmJdj0m/NVU5IMgBK+AmZouAQQ7/+2GLH0GXXY0YMw9oXPB8hKdbPYg5QLYg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2438c41460a9226c43080ec924abe203433df91b6625d8f49bf35553920c8012be026668b80410efffb618b1f41975d8d18330f685cf07c84a75b3d883940b62\",\"name\":\"@floating-ui/react-dom\",\"version\":\"2.1.9\"},\"@floating-ui__utils-0.2.12.tgz\":{\"integrity\":\"HpCo8tmWzLVad5s2d19EhAz5zqrrQ6s69qd6moPMQvkOuSwDT1YgRfWSVuc4ennqrgv3OHppiOGMQ7oC13yIww==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1e90a8f2d996ccb55a779b36775f44840cf9ceaaeb43ab3af6a77a9a83cc42f90eb92c034f562045f59256e7387a79eaae0bf7387a6988e18c43ba02d77c88c3\",\"name\":\"@floating-ui/utils\",\"version\":\"0.2.12\"},\"@fontsource-variable__inter-5.3.0.tgz\":{\"integrity\":\"OupL48va4JNofb97w6NYeF9S7W/kHNKM0Er8Dem5nqi4jeOLrVJDoE8tZEpnMJmtkvNbB1EIPPwHcdkF6b1oUA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3aea4be3cbdae093687dbf7bc3a358785f52ed6fe41cd28cd04afc0de9b99ea8b88de38bad5243a04f2d644a673099ad92f35b0751083cfc0771d905e9bd6850\",\"name\":\"@fontsource-variable/inter\",\"version\":\"5.3.0\"},\"@hono__node-server-2.1.1.tgz\":{\"integrity\":\"ELuehkj5VCBdgEw9zs+ivkKwyzzUCSQuE96YmiPvn1ECBoZCczbFXJLeEGMTYjphP6gydh4pHMqEYPVMYUVgQg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"10bb9e8648f954205d804c3dcecfa2be42b0cb3cd409242e13de989a23ef9f51020686427336c55c92de106313623a613fa832761e291cca8460f54c61456042\",\"name\":\"@hono/node-server\",\"version\":\"2.1.1\"},\"@hookform__resolvers-5.9.1.tgz\":{\"integrity\":\"7b7vsbraJxKgjVSA1Nur9tLwj539WGJUBLA7QNvXnFoT2pM5Z7G+6rlukk4B2/QrTZy6huRtH6wKeESPKuIr6w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"edbeefb1bada2712a08d5480d4dbabf6d2f08f9dfd58625404b03b40dbd79c5a13da933967b1beeab96e924e01dbf42b4d9cba86e46d1fac0a78448f2ae22beb\",\"name\":\"@hookform/resolvers\",\"version\":\"5.9.1\"},\"@isaacs__fs-minipass-4.0.1.tgz\":{\"integrity\":\"wgm9Ehl2jpeqP3zw/7mo3kRHFp5MEDhqAdwy1fTGkHAwnkGOVsgpvQhL8B5n1qlb01jV3n/bI0ZfZp5lWA1k4w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c209bd1219768e97aa3f7cf0ffb9a8de4447169e4c10386a01dc32d5f4c69070309e418e56c829bd084bf01e67d6a95bd358d5de7fdb23465f669e65580d64e3\",\"name\":\"@isaacs/fs-minipass\",\"version\":\"4.0.1\"},\"@jitl__quickjs-ffi-types-0.32.0.tgz\":{\"integrity\":\"v9T+GQpmk43VDJ7d72sf0Nexhk+ArvtUihW27dy7lqAl0zBObFKtSBBIm5RBjwIhE8VwsPPm9PNuvPvNqLWUEg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"bfd4fe190a66938dd50c9eddef6b1fd0d7b1864f80aefb548a15b6eddcbb96a025d3304e6c52ad4810489b94418f022113c570b0f3e6f4f36ebcfbcda8b59412\",\"name\":\"@jitl/quickjs-ffi-types\",\"version\":\"0.32.0\"},\"@jitl__quickjs-wasmfile-debug-asyncify-0.32.0.tgz\":{\"integrity\":\"EX8zbXwGqCgAE764M+qvkHtyXDi/FUoMBea0JnES7vCM3P7a2+EOZOjGv85wtZ2sJhI1oJ+nekmqpOODFDY+hw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"117f336d7c06a8280013beb833eaaf907b725c38bf154a0c05e6b4267112eef08cdcfedadbe10e64e8c6bfce70b59dac261235a09fa77a49aaa4e38314363e87\",\"name\":\"@jitl/quickjs-wasmfile-debug-asyncify\",\"version\":\"0.32.0\"},\"@jitl__quickjs-wasmfile-debug-sync-0.32.0.tgz\":{\"integrity\":\"LeYWrPGC1uNCTBWvibo3ZLJj0CSVNYUXvJpXMCmuQ5Sap2cCACc3uvGvYV4homHHBAzfw5akoTqMMS4YFRtw+Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2de616acf182d6e3424c15af89ba3764b263d02495358517bc9a573029ae43949aa76702002737baf1af615e21a261c7040cdfc396a4a13a8c312e18151b70f9\",\"name\":\"@jitl/quickjs-wasmfile-debug-sync\",\"version\":\"0.32.0\"},\"@jitl__quickjs-wasmfile-release-asyncify-0.32.0.tgz\":{\"integrity\":\"3oSwPfja12ICz4aIblB58cuY8JlEq5Txt8Cut4VLo+LH47QN+mzCnSgnbB03hWzg1LBcc+VyyI9UOag7a1NF+Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"de84b03df8dad76202cf86886e5079f1cb98f09944ab94f1b7c0aeb7854ba3e2c7e3b40dfa6cc29d28276c1d37856ce0d4b05c73e572c88f5439a83b6b5345f9\",\"name\":\"@jitl/quickjs-wasmfile-release-asyncify\",\"version\":\"0.32.0\"},\"@jitl__quickjs-wasmfile-release-sync-0.32.0.tgz\":{\"integrity\":\"BKNDI/TPBfGlLNGYpLrhcDGXmIk4xHm4MRAisOBnOzpXVn9HZWsfmMAc9WMBrAHjvvds6HOikKeaOBKdPdpVrg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"04a34323f4cf05f1a52cd198a4bae1703197988938c479b8311022b0e0673b3a57567f47656b1f98c01cf56301ac01e3bef76ce873a290a79a38129d3dda55ae\",\"name\":\"@jitl/quickjs-wasmfile-release-sync\",\"version\":\"0.32.0\"},\"@jridgewell__gen-mapping-0.3.13.tgz\":{\"integrity\":\"2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"da492dffb9e227a32010fc45d1b61d43a7ad65a03e7d0bc370b29c921cb5c8840ecdaa0a8c10634a3eb7fda2d58d8137aa146de5dbccfae5327c283a50a0816c\",\"name\":\"@jridgewell/gen-mapping\",\"version\":\"0.3.13\"},\"@jridgewell__remapping-2.3.5.tgz\":{\"integrity\":\"LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2c8f6effe95a606e03b354c3292256d983eb22571560ec22d9f502eb1078de5b9e0a383157895f7ce0990ad605887e9334e5feb50297c7ded3e082876e1c8711\",\"name\":\"@jridgewell/remapping\",\"version\":\"2.3.5\"},\"@jridgewell__resolve-uri-3.1.2.tgz\":{\"integrity\":\"bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6d12128022233f6d3fb5b5923d63048b9e1054f45913192e0fd9492fe508c542adc15240f305b54eb6f58ccb354455e8d42053359ff98690bd42f98a59da292b\",\"name\":\"@jridgewell/resolve-uri\",\"version\":\"3.1.2\"},\"@jridgewell__sourcemap-codec-1.5.5.tgz\":{\"integrity\":\"cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"71843ddf5d20aeac6e7966e5f96b885086a251a0dc8fb58eab97d58449633558117ce52163d7f2db34ef7e8a96b2779b87c4a5ef45527056c80af2672ca0743a\",\"name\":\"@jridgewell/sourcemap-codec\",\"version\":\"1.5.5\"},\"@jridgewell__trace-mapping-0.3.31.tgz\":{\"integrity\":\"zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"cf3351f9275048327373c8e869e3fc410a0242bf0db98c76748232b65d507811191c9f6e5ba85e6ecad881bcfc849c1441aa374d608cb667d5f0dbb5b7038b03\",\"name\":\"@jridgewell/trace-mapping\",\"version\":\"0.3.31\"},\"@lukeed__ms-2.0.2.tgz\":{\"integrity\":\"9I2Zn6+NJLfaGoz9jN3lpwDgAYvfGeNYdbAIjJOqzs4Tpc+VU3Jqq4IofSUBKajiDS8k9fZIg18/z13mpk1bsA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f48d999faf8d24b7da1a8cfd8cdde5a700e0018bdf19e35875b0088c93aacece13a5cf9553726aab82287d250129a8e20d2f24f5f648835f3fcf5de6a64d5bb0\",\"name\":\"@lukeed/ms\",\"version\":\"2.0.2\"},\"@malept__cross-spawn-promise-2.0.0.tgz\":{\"integrity\":\"1DpKU0Z5ThltBwjNySMC14g0CkbyhCaz9FkhxqNsZI6uAPJXFS8cMXlBKo26FJ8ZuW6S9GCMcR9IO5k2X5/9Fg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d43a4a5346794e196d0708cdc92302d788340a46f28426b3f45921c6a36c648eae00f257152f1c3179412a8dba149f19b96e92f4608c711f483b99365f9ffd16\",\"name\":\"@malept/cross-spawn-promise\",\"version\":\"2.0.0\"},\"@malept__flatpak-bundler-0.4.0.tgz\":{\"integrity\":\"9QOtNffcOF/c1seMCDnjckb3R9WHcG34tky+FHpNKKCW0wc/scYLwMtO+ptyGUfMW0/b/n4qRiALlaFHc9Oj7Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f503ad35f7dc385fdcd6c78c0839e37246f747d587706df8b64cbe147a4d28a096d3073fb1c60bc0cb4efa9b721947cc5b4fdbfe7e2a46200b95a14773d3a3ed\",\"name\":\"@malept/flatpak-bundler\",\"version\":\"0.4.0\"},\"@modelcontextprotocol__sdk-1.30.0.tgz\":{\"integrity\":\"xKd8OIzlqNzcqcNumGAa6g+PW2kjD5vrpcKOnfldAUPP3j7lnqMPwlTXQm8gF+UwH72z0lqaRbjr9hqGz0eITA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c4a77c388ce5a8dcdca9c36e98601aea0f8f5b69230f9beba5c28e9df95d0143cfde3ee59ea30fc254d7426f2017e5301fbdb3d25a9a45b8ebf61a86cf47884c\",\"name\":\"@modelcontextprotocol/sdk\",\"version\":\"1.30.0\"},\"@motrix__cli-0.4.0.tgz\":{\"integrity\":\"DpwxzV/kUNBRzznmHI8qhbH1tCuno9RCh0QmUc1wMf+51slRnQiT14kTXw1hIh8Nwf11fTwFAvFKF5O97e5BmA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0e9c31cd5fe450d051cf39e61c8f2a85b1f5b42ba7a3d44287442651cd7031ffb9d6c9519d0893d789135f0d61221f0dc1fd757d3c0502f14a1793bdedee4198\",\"name\":\"@motrix/cli\",\"version\":\"0.4.0\"},\"@motrix__mdxp-0.6.0.tgz\":{\"integrity\":\"ySgMuME8chFax2lxtELbCYrM9ayGciEN8UikYG6MLGg3Z8I6RTY+XarC40RjhY2vVnMdLrf9ff7ZiH6hSjLkdg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c9280cb8c13c72115ac76971b442db098accf5ac8672210df148a4606e8c2c683767c23a45363e5daac2e34463858daf56731d2eb7fd7dfed9887ea14a32e476\",\"name\":\"@motrix/mdxp\",\"version\":\"0.6.0\"},\"@motrix__nat-0.1.1.tgz\":{\"integrity\":\"ORkFuNXMLa8yLhlxRmoLh6WSWtOjhJ4q28Dcx4Wt44JSkB60gjNzuBV8CVCy2VtWc2BhxiOlel4f3RhJ7OmaXw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"391905b8d5cc2daf322e1971466a0b87a5925ad3a3849e2adbc0dcc785ade38252901eb4823373b8157c0950b2d95b56736061c623a57a5e1fdd1849ece99a5f\",\"name\":\"@motrix/nat\",\"version\":\"0.1.1\"},\"@motrix__plugin-manifest-schema-2.1.0.tgz\":{\"integrity\":\"S6p1uhoQzYbepVkYV86dmmD+7xLagto7ft3vWcLK4Fg8KtvEikV1b+ZPyE5OjgpZO3WEFcMe8uuc/Iymai0fmw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4baa75ba1a10cd86dea5591857ce9d9a60feef12da82da3b7eddef59c2cae0583c2adbc48a45756fe64fc84e4e8e0a593b758415c31ef2eb9cfc8ca66a2d1f9b\",\"name\":\"@motrix/plugin-manifest-schema\",\"version\":\"2.1.0\"},\"@noble__curves-2.0.1.tgz\":{\"integrity\":\"vs1Az2OOTBiP4q0pwjW5aF0xp9n4MxVrmkFBxc6EKZc6ddYx5gaZiAsZoq0uRRXWbi3AT/sBqn05eRPtn1JCPw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"becd40cf638e4c188fe2ad29c235b9685d31a7d9f833156b9a4141c5ce8429973a75d631e60699880b19a2ad2e4515d66e2dc04ffb01aa7d397913ed9f52423f\",\"name\":\"@noble/curves\",\"version\":\"2.0.1\"},\"@noble__hashes-1.4.0.tgz\":{\"integrity\":\"V1JJ1WTRUqHHrOSh597hURcMqVKVGL/ea3kv0gSnEdsEZ0/+VyPghM1lMNGc00z7CIQorSvbKpuJkxvuHbvdbg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"575249d564d152a1c7ace4a1e7dee151170ca9529518bfde6b792fd204a711db04674ffe5723e084cd6530d19cd34cfb088428ad2bdb2a9b89931bee1dbbdd6e\",\"name\":\"@noble/hashes\",\"version\":\"1.4.0\"},\"@noble__hashes-2.0.1.tgz\":{\"integrity\":\"XlOlEbQcE9fmuXxrVTXCTlG2nlRXa9Rj3rr5Ue/+tX+nmkgbX720YHh0VR3hBF9xDvwnb8D2shVGOwNx+ulArw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5e53a511b41c13d7e6b97c6b5535c24e51b69e54576bd463debaf951effeb57fa79a481b5fbdb4607874551de1045f710efc276fc0f6b215463b0371fae940af\",\"name\":\"@noble/hashes\",\"version\":\"2.0.1\"},\"@noble__hashes-2.3.0.tgz\":{\"integrity\":\"oN+QwyX7VSHotibwubG3kpzbwKrfnyR6OOO+3Nk/53ADL7FmgHHz4TgrbaYKvvOw09u6QTx0oiH1cNCIOuN0CQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a0df90c325fb5521e8b626f0b9b1b7929cdbc0aadf9f247a38e3bedcd93fe770032fb1668071f3e1382b6da60abef3b0d3dbba413c74a221f570d0883ae37409\",\"name\":\"@noble/hashes\",\"version\":\"2.3.0\"},\"@nodelib__fs.scandir-2.1.5.tgz\":{\"integrity\":\"vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"beadb806adf29b91c4426d8d282af7c970f08dceef4ec1138510e7929d832bda75baa2d1f831eeae6fcd393a34286ec760753b7a9a4a663dcccaa62e3017fada\",\"name\":\"@nodelib/fs.scandir\",\"version\":\"2.1.5\"},\"@nodelib__fs.stat-2.0.5.tgz\":{\"integrity\":\"RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"46484f3e9db3aea0c0400ff68cd867ced70f025bfae17761229edaef8e78039a2f23b06e93182decc5fbb9dc00bb7ce0d437293d4d2bcf7555d5279aaaf638f8\",\"name\":\"@nodelib/fs.stat\",\"version\":\"2.0.5\"},\"@nodelib__fs.walk-1.2.8.tgz\":{\"integrity\":\"oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a0607e53196059c810920c28f067041b07a6a1316ddc520ef5a6da6c199a1b05c8a01299f864f2d293f5f396de1a0ecb96287f3521d25765c0b35967ce7a1c4a\",\"name\":\"@nodelib/fs.walk\",\"version\":\"1.2.8\"},\"@oxc-project__types-0.144.0.tgz\":{\"integrity\":\"nuhZIOLuI6TFQ32I/WnUx+SCPY7SdSKwgnFHydAuoS1+Z4BRcaP+RRJmGzl9lw+0OFF7UmaESf7KQRXaNLHypg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9ee85920e2ee23a4c5437d88fd69d4c7e4823d8ed27522b0827147c9d02ea12d7e67805171a3fe4512661b397d970fb438517b52668449feca4115da34b1f2a6\",\"name\":\"@oxc-project/types\",\"version\":\"0.144.0\"},\"@peculiar__asn1-schema-2.9.0.tgz\":{\"integrity\":\"AKvPMOM7LfK0uFe1m7o7+veOa8xQGPqsqOrKi3QKgCElzwjGp39mbhr2g7mt/v/mXQHiIvJmDj5cJS173x8Q9Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"00abcf30e33b2df2b4b857b59bba3bfaf78e6bcc5018faaca8eaca8b740a802125cf08c6a77f666e1af683b9adfeffe65d01e222f2660e3e5c252d7bdf1f10f5\",\"name\":\"@peculiar/asn1-schema\",\"version\":\"2.9.0\"},\"@peculiar__json-schema-1.1.12.tgz\":{\"integrity\":\"coUfuoMeIB7B8/NMekxaDzLhaYmp0HZNPEjYRm9goRou8UZIC3z21s0sL9AWoCw4EG876QyO3kYrc61WNF9B/w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"72851fba831e201ec1f3f34c7a4c5a0f32e16989a9d0764d3c48d8466f60a11a2ef146480b7cf6d6cd2c2fd016a02c38106f3be90c8ede462b73ad56345f41ff\",\"name\":\"@peculiar/json-schema\",\"version\":\"1.1.12\"},\"@peculiar__utils-2.0.3.tgz\":{\"integrity\":\"+oL3HPFRIZ1St2K50lWCXiioIgSoxzz7R1J3uF6neO2yl1sgmpgY6XXJH4BdpoDkMWznQTeYF6oWNDZLCdQ4eQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"fa82f71cf151219d52b762b9d255825e28a82204a8c73cfb475277b85ea778edb2975b209a9818e975c91f805da680e4316ce741379817aa1634364b09d43879\",\"name\":\"@peculiar/utils\",\"version\":\"2.0.3\"},\"@peculiar__webcrypto-1.7.1.tgz\":{\"integrity\":\"ODOov0sGMJMf3jPonOkgGqPknTsu+DdQ7kD++gz8aI+aFMOMHFbWAA2taqXXVTdP+OTOQR/znGvSpmkeI0WTYQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3833a8bf4b0630931fde33e89ce9201aa3e49d3b2ef83750ee40fefa0cfc688f9a14c38c1c56d6000dad6aa5d755374ff8e4ce411ff39c6bd2a6691e23459361\",\"name\":\"@peculiar/webcrypto\",\"version\":\"1.7.1\"},\"@pinojs__redact-0.4.0.tgz\":{\"integrity\":\"k2ENnmBugE/rzQfEcdWHcCY+/FM3VLzH9cYEsbdsoqrvzAKRhUZeRNhAZvB8OitQJ1TBed3yqWtdjzS6wJKBwg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"93610d9e606e804febcd07c471d58770263efc533754bcc7f5c604b1b76ca2aaefcc029185465e44d84066f07c3a2b502754c179ddf2a96b5d8f34bac09281c2\",\"name\":\"@pinojs/redact\",\"version\":\"0.4.0\"},\"@playwright__test-1.62.1.tgz\":{\"integrity\":\"DTcUc8qii+cpHvtOwggMtBRMjKZHXYWdw8syRYu2vtzuq4Wxphqq4NfCs5Zt44L6mA8rfDfj+PHnxFc/FeK6mQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0d371473caa28be7291efb4ec2080cb4144c8ca6475d859dc3cb32458bb6bedceeab85b1a61aaae0d7c2b3966de382fa980f2b7c37e3f8f1e7c4573f15e2ba99\",\"name\":\"@playwright/test\",\"version\":\"1.62.1\"},\"@radix-ui__primitive-1.1.7.tgz\":{\"integrity\":\"rqWnm76nYT8HoNNqEjpgJ7Pw/DrBj5iBTrmEPo6HTX5+VJyBNOqTdv4g89G63HuR5g0AaENoAcH7Is5fF2kZ8Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"aea5a79bbea7613f07a0d36a123a6027b3f0fc3ac18f98814eb9843e8e874d7e7e549c8134ea9376fe20f3d1badc7b91e60d0068436801c1fb22ce5f176919f1\",\"name\":\"@radix-ui/primitive\",\"version\":\"1.1.7\"},\"@radix-ui__react-compose-refs-1.1.5.tgz\":{\"integrity\":\"+48PbAAbq3didjJxa+OaWY2ZwgAKsNiRGyeHKszblZMQ+kcpd9pAaT11cMkGEie0vsOi3QdeTE6d5Fe3Gn61kA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"fb8f0f6c001bab77627632716be39a598d99c2000ab0d8911b27872accdb959310fa472977da40693d7570c9061227b4bec3a2dd075e4c4e9de457b71a7eb590\",\"name\":\"@radix-ui/react-compose-refs\",\"version\":\"1.1.5\"},\"@radix-ui__react-context-1.2.2.tgz\":{\"integrity\":\"RHCUGwKHDr0hDGg4X7ma4JG4/+12qxw8rkh5QKdDldlCvtja6nUx1Ef/8HVrJze81lEsgLQlqjzjGNHantgnQA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4470941b02870ebd210c68385fb99ae091b8ffed76ab1c3cae487940a74395d942bed8daea7531d447fff0756b2737bcd6512c80b425aa3ce318d1da9ed82740\",\"name\":\"@radix-ui/react-context\",\"version\":\"1.2.2\"},\"@radix-ui__react-dialog-1.1.23.tgz\":{\"integrity\":\"Ksw4WeROkO4rC9k/onilX/Ao2Cr1ku1unMNH+XSCcP4jSXYu7HDsg9n4ojMjVb22XpYjAQ9qfrFlVbru1vXDUA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2acc3859e44e90ee2b0bd93fa278a55ff028d82af592ed6e9cc347f9748270fe2349762eec70ec83d9f8a2332355bdb65e9623010f6a7eb16555baeed6f5c350\",\"name\":\"@radix-ui/react-dialog\",\"version\":\"1.1.23\"},\"@radix-ui__react-dismissable-layer-1.1.19.tgz\":{\"integrity\":\"8g4pfOL9HoKKLWGiypT+dphVqjFfmcXO5GBnhsG6zI+lxAx/8feQpr+1LSN8Re3hiZ+XkLNS4O9ztK11/LzQ6w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f20e297ce2fd1e828a2d61a2ca94fe769855aa315f99c5cee4606786c1bacc8fa5c40c7ff1f790a6bfb52d237c45ede1899f9790b352e0ef73b4ad75fcbcd0eb\",\"name\":\"@radix-ui/react-dismissable-layer\",\"version\":\"1.1.19\"},\"@radix-ui__react-focus-guards-1.1.6.tgz\":{\"integrity\":\"RNOJjfZMTyBM6xYmV3IVGXkPjIhcBAuv48POevAXwrGJhkWZ9p1rFoIS1JFooPuT193AZmRsCPhpoVJxx6OPoQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"44d3898df64c4f204ceb162657721519790f8c885c040bafe3c3ce7af017c2b189864599f69d6b168212d49168a0fb93d7ddc066646c08f869a15271c7a38fa1\",\"name\":\"@radix-ui/react-focus-guards\",\"version\":\"1.1.6\"},\"@radix-ui__react-focus-scope-1.1.16.tgz\":{\"integrity\":\"wmRZ2WWLvmt6KHy2rNPOdPUjwq5xOHY02+m+udwJTn0aNIox/rkskAvJTyTLGhPK6KgrUjlJUJpgmx/+wFiFIQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c26459d9658bbe6b7a287cb6acd3ce74f523c2ae71387634dbe9beb9dc094e7d1a348a31feb92c900bc94f24cb1a13cae8a82b523949509a609b1ffec0588521\",\"name\":\"@radix-ui/react-focus-scope\",\"version\":\"1.1.16\"},\"@radix-ui__react-id-1.1.4.tgz\":{\"integrity\":\"TMQp2llA+RYn7JcjnrMnz7wN4pcVttPZnRZo52PLQsoLVKzNlVwUeHmfePgTgRluXFvlD3GD5g5MOVVTJCO0qA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4cc429da5940f91627ec97239eb327cfbc0de29715b6d3d99d1668e763cb42ca0b54accd955c1478799f78f81381196e5c5be50f7183e60e4c3955532423b4a8\",\"name\":\"@radix-ui/react-id\",\"version\":\"1.1.4\"},\"@radix-ui__react-portal-1.1.17.tgz\":{\"integrity\":\"vKQLcWypUnwZVvfV7UkGahH2g6ySe8M8R+zYBwPrv5byZ9QAW6cQVvNKo7GgmD+p8aYb6D9JBuvy8/WhOno2wQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"bca40b716ca9527c1956f7d5ed49066a11f683ac927bc33c47ecd80703ebbf96f267d4005ba71056f34aa3b1a0983fa9f1a61be83f4906ebf2f3f5a13a7a36c1\",\"name\":\"@radix-ui/react-portal\",\"version\":\"1.1.17\"},\"@radix-ui__react-presence-1.1.10.tgz\":{\"integrity\":\"3wyzCQ6+ubRA+D4uv9m95JYLXxmOHp05qjrkjeA7uKHHtjpPggQzc6DAb0URl7j67oR0K2foO4ip27TiX037Bw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"df0cb3090ebeb9b440f83e2ebfd9bde4960b5f198e1e9d39aa3ae48de03bb8a1c7b63a4f82043373a0c06f451197b8faee84742b67e83b88a9dbb4e25f4dfb07\",\"name\":\"@radix-ui/react-presence\",\"version\":\"1.1.10\"},\"@radix-ui__react-primitive-2.1.10.tgz\":{\"integrity\":\"MucOnzh6hR5mid6VpkbglRAMYMjKLqRnGBbjXkzjK52fuQDd1qbkx78a5P40mkcnVXJdEVxm26E9OPAiUq7nBg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"32e70e9f387a851e6689de95a646e095100c60c8ca2ea4671816e35e4ce32b9d9fb900ddd6a6e4c7bf1ae4fe349a472755725d115c66dba13d38f02252aee706\",\"name\":\"@radix-ui/react-primitive\",\"version\":\"2.1.10\"},\"@radix-ui__react-slot-1.3.3.tgz\":{\"integrity\":\"qx7oqnYbxnK9kYI9m317qmFmEgo6ywqWvbTogdj7cL9p3/yx4M48p7Rnw5z3H890cL/ow/EeWJsuTykeZVXP5Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ab1ee8aa761bc672bd91823d9b7d7baa6166120a3acb0a96bdb4e881d8fb70bf69dffcb1e0ce3ca7b467c39cf71fcf7470bfe8c3f11e589b2e4f291e6555cfe5\",\"name\":\"@radix-ui/react-slot\",\"version\":\"1.3.3\"},\"@radix-ui__react-use-callback-ref-1.1.4.tgz\":{\"integrity\":\"R6OUY2e2fA6Yn6s+VSx5KBV6Nx8LQEhu+cz7LCej18rQ1HLyg9PSC9jP/ZNx0o6FAIK9c0F1kHylzSxKsdlkrQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"47a3946367b67c0e989fab3e552c7928157a371f0b40486ef9ccfb2c27a3d7cad0d472f283d3d20bd8cffd9371d28e850082bd734175907ca5cd2c4ab1d964ad\",\"name\":\"@radix-ui/react-use-callback-ref\",\"version\":\"1.1.4\"},\"@radix-ui__react-use-controllable-state-1.2.6.tgz\":{\"integrity\":\"uEQJGT97ZA/TgP/Hydw47lHu+/vQj6z/0jA+WeTbK1o9Rx45GImjpD0tc3W5ad3D6XTSR6e1yEO0FvGq6WQfVQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b84409193f7b640fd380ffc7c9dc38ee51eefbfbd08facffd2303e59e4db2b5a3d471e391889a3a43d2d7375b969ddc3e974d247a7b5c843b416f1aae9641f55\",\"name\":\"@radix-ui/react-use-controllable-state\",\"version\":\"1.2.6\"},\"@radix-ui__react-use-effect-event-0.0.5.tgz\":{\"integrity\":\"7cshFL8HGS/7HEiHH+9kL9HBwp2sa9yX18Knwek6KYWmXwM7pegMgta2AXMQKI+rq3JnfSj9x8wYqFMTdG1Jgg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"edcb2114bf07192ffb1c48871fef642fd1c1c29dac6bdc97d7c2a7c1e93a2985a65f033ba5e80c82d6b6017310288fabab72677d28fdc7cc18a85313746d4982\",\"name\":\"@radix-ui/react-use-effect-event\",\"version\":\"0.0.5\"},\"@radix-ui__react-use-layout-effect-1.1.4.tgz\":{\"integrity\":\"K20DkRkUwDnxEYMBPcg3Y6voLkEy5p5QQmszZgLngKKiC7dzBR/aEuK3w1qlx2JWDUNH6FluahYdgR3BP+QbYw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2b6d03911914c039f11183013dc83763abe82e4132e69e50426b336602e780a2a20bb773051fda12e2b7c35aa5c762560d4347e8596e6a161d811dc13fe41b63\",\"name\":\"@radix-ui/react-use-layout-effect\",\"version\":\"1.1.4\"},\"@reduxjs__toolkit-2.12.0.tgz\":{\"integrity\":\"KiT+RzZbp6mQET+Mg+h2c97+9j1sNflUxQkIHI7Yuzf6Peu+OYpmkn6nbHWmLLWj+1ZODUJFwGZ7gx3L9R9EOw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2a24fe47365ba7a990113f8c83e87673defef63d6c35f954c509081c8ed8bb37fa3debbe398a66927ea76c75a62cb5a3fb564e0d4245c0667b831dcbf51f443b\",\"name\":\"@reduxjs/toolkit\",\"version\":\"2.12.0\"},\"@resvg__resvg-wasm-2.6.2.tgz\":{\"integrity\":\"FqALmHI8D4o6lk/LRWDnhw95z5eO+eAa6ORjVg09YRR7BkcM6oPHU9uyC0gtQG5vpFLvgpeU4+zEAz2H8APHNw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"16a00b98723c0f8a3a964fcb4560e7870f79cf978ef9e01ae8e463560d3d61147b06470cea83c753dbb20b482d406e6fa452ef829794e3ecc4033d87f003c737\",\"name\":\"@resvg/resvg-wasm\",\"version\":\"2.6.2\"},\"@rolldown__binding-android-arm64-1.2.4.tgz\":{\"integrity\":\"jHC2cnyKz5xU2fhECtFl8OZ83cYNt13GZQD+0uMJ/X3o+ijmd56okHhTUwxVSHPx1IRVIJEZ1/1pPzeLCU6XKA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8c70b6727c8acf9c54d9f8440ad165f0e67cddc60db75dc66500fed2e309fd7de8fa28e6779ea8907853530c554873f1d48455209119d7fd693f378b094e9728\",\"name\":\"@rolldown/binding-android-arm64\",\"version\":\"1.2.4\"},\"@rolldown__binding-darwin-arm64-1.2.4.tgz\":{\"integrity\":\"Dc5mPD8F5F/FS8i01syd7FTF6yB2fVthH/TRkjwJkzUK6EpoxHtqvZQP5Zwq80/5z19TWYHIg1KOHboCgVx/aQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0dce663c3f05e45fc54bc8b4d6cc9dec54c5eb20767d5b611ff4d1923c0993350ae84a68c47b6abd940fe59c2af34ff9cf5f535981c883528e1dba02815c7f69\",\"name\":\"@rolldown/binding-darwin-arm64\",\"version\":\"1.2.4\"},\"@rolldown__binding-darwin-x64-1.2.4.tgz\":{\"integrity\":\"fpDm4oBo6SqLvWUYCmFhdde3U9KH2fRNNMeAnAPAIwxRL345xutL0EtEUcuoxsoazdJGv/MuDBQHlCDrtbvqOg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7e90e6e28068e92a8bbd65180a616175d7b753d287d9f44d34c7809c03c0230c512f7e39c6eb4bd04b4451cba8c6ca1acdd246bff32e0c14079420ebb5bbea3a\",\"name\":\"@rolldown/binding-darwin-x64\",\"version\":\"1.2.4\"},\"@rolldown__binding-freebsd-x64-1.2.4.tgz\":{\"integrity\":\"rSJoreDE/HoIzoaib6MTp5jQtCTdMHKIvItAKT/ImS6Y6Ww76oUaeMyp4Vc/fAgd/ehji068IxetHXAnqUwN9A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ad2268ade0c4fc7a08ce86a26fa313a798d0b424dd307288bc8b40293fc8992e98e96c3bea851a78cca9e1573f7c081dfde8638b4ebc2317ad1d7027a94c0df4\",\"name\":\"@rolldown/binding-freebsd-x64\",\"version\":\"1.2.4\"},\"@rolldown__binding-linux-arm-gnueabihf-1.2.4.tgz\":{\"integrity\":\"/jm8OGHgn7oGaJu3i/qZI9spUGcJ+y/lk43ttQ/iO1tOd9NissG6o97bighBCiL+BKRngmcDuR6ikfwYdJmVuQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"fe39bc3861e09fba06689bb78bfa9923db29506709fb2fe5938dedb50fe23b5b4e77d362b2c1baa3dedb8a08410a22fe04a467826703b91ea291fc18749995b9\",\"name\":\"@rolldown/binding-linux-arm-gnueabihf\",\"version\":\"1.2.4\"},\"@rolldown__binding-linux-arm64-gnu-1.2.4.tgz\":{\"integrity\":\"tIP06BeD9EqvECBrPZ+sqdPlYrT+aYaAiu1wYziVx5elRK/ftm33JxVDy2bXGbr6J0CrtirCkR87/X5a2euEng==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b483f4e81783f44aaf10206b3d9faca9d3e562b4fe6986808aed70633895c797a544afdfb66df7271543cb66d719bafa2740abb62ac2911f3bfd7e5ad9eb849e\",\"name\":\"@rolldown/binding-linux-arm64-gnu\",\"version\":\"1.2.4\"},\"@rolldown__binding-linux-arm64-musl-1.2.4.tgz\":{\"integrity\":\"Ql1Q0EQqVThvn9VAVlwNzsUvbSFtCMGjLpRRi4pk5i7NZZ4n5ISiLMjHYtus4VQ2PvkSw24zyaCVsiS+sXPj1w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"425d50d0442a55386f9fd540565c0dcec52f6d216d08c1a32e94518b8a64e62ecd659e27e484a22cc8c762dbace154363ef912c36e33c9a095b224beb173e3d7\",\"name\":\"@rolldown/binding-linux-arm64-musl\",\"version\":\"1.2.4\"},\"@rolldown__binding-linux-ppc64-gnu-1.2.4.tgz\":{\"integrity\":\"GjbjXD4XXfN19D0LZNbmiCBUoDiRACsYHr0yaIbbn8aFsXjHZifcYqu/W5Er5X2X990WjHXFrxarn5chzItorQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1a36e35c3e175df375f43d0b64d6e6882054a03891002b181ebd326886db9fc685b178c76627dc62abbf5b912be57d97f7dd168c75c5af16ab9f9721cc8b68ad\",\"name\":\"@rolldown/binding-linux-ppc64-gnu\",\"version\":\"1.2.4\"},\"@rolldown__binding-linux-s390x-gnu-1.2.4.tgz\":{\"integrity\":\"p5WR0NOwaRmJ/B1b6IjEFLLivwEsf3PrdBIhRbhTCQisbo2SvHHpG4ELB/+FgQNnB88LTOF86upmJmbvZdQ2lw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a79591d0d3b0691989fc1d5be888c414b2e2bf012c7f73eb74122145b8530908ac6e8d92bc71e91b810b07ff8581036707cf0b4ce17ceaea662666ef65d43697\",\"name\":\"@rolldown/binding-linux-s390x-gnu\",\"version\":\"1.2.4\"},\"@rolldown__binding-linux-x64-gnu-1.2.4.tgz\":{\"integrity\":\"4/GyVjmhR+Tc6HLJvwc1sOhPqAZtySiSMesOZyX6JQ5XBxoTDEMKQzvo07NIK6nTon/SivlZqvhzvuVBNQhObQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e3f1b25639a147e4dce872c9bf0735b0e84fa8066dc9289231eb0e6725fa250e57071a130c430a433be8d3b3482ba9d3a27fd28af959aaf873bee54135084e6d\",\"name\":\"@rolldown/binding-linux-x64-gnu\",\"version\":\"1.2.4\"},\"@rolldown__binding-linux-x64-musl-1.2.4.tgz\":{\"integrity\":\"l9eeLsCNvPpmSXUej0etw/J1eqV0Jj1D5G/xG6YTijmE6dkv6E2QezgWbTfQk63v952DPqrjOCoiqxq7Bw0YUQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"97d79e2ec08dbcfa6649751e8f47adc3f2757aa574263d43e46ff11ba6138a3984e9d92fe84d907b38166d37d093adeff79d833eaae3382a22ab1abb070d1851\",\"name\":\"@rolldown/binding-linux-x64-musl\",\"version\":\"1.2.4\"},\"@rolldown__binding-openharmony-arm64-1.2.4.tgz\":{\"integrity\":\"e0F355MSTMm3+UOqtV3L24gFUp2N5m1f8L/7d56deik6va+AXdrt9F8LbzGpeWGWRbZEDq4m8NVnJDeBtf9DZg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7b4177e793124cc9b7f943aab55dcbdb8805529d8de66d5ff0bffb779e9d7a293abdaf805ddaedf45f0b6f31a979619645b6440eae26f0d567243781b5ff4366\",\"name\":\"@rolldown/binding-openharmony-arm64\",\"version\":\"1.2.4\"},\"@rolldown__binding-win32-arm64-msvc-1.2.4.tgz\":{\"integrity\":\"AWLi0uBRYh6QlE7OKhiz+phZC0qwtij2QZmhmOdsLdFn64m7oMpooE9ICE3lhm9xMb4SpDo2WbHcxX1iFLFtqw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0162e2d2e051621e90944ece2a18b3fa98590b4ab0b628f64199a198e76c2dd167eb89bba0ca68a04f48084de5866f7131be12a43a3659b1dcc57d6214b16dab\",\"name\":\"@rolldown/binding-win32-arm64-msvc\",\"version\":\"1.2.4\"},\"@rolldown__binding-win32-x64-msvc-1.2.4.tgz\":{\"integrity\":\"UwSDJOg3dqCAejWdxclJjCsh3Qq4vLYMDxmyHqo1btz3stK2VqgwNd3mm5tuIwzSlGIQ/1H9Hr+Zn09mrezNqQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"53048324e83776a0807a359dc5c9498c2b21dd0ab8bcb60c0f19b21eaa356edcf7b2d2b656a83035dde69b9b6e230cd2946210ff51fd1ebf999f4f66adeccda9\",\"name\":\"@rolldown/binding-win32-x64-msvc\",\"version\":\"1.2.4\"},\"@rolldown__pluginutils-1.0.1.tgz\":{\"integrity\":\"2j9bGt5Jh8hj+vPtgzPtl72j0yRxHAyumoo6TNfAjsLB04UtpSvPbPcDcBMxz7n+9CYB0c1GxQFxYRg2jimqGw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"da3f5b1ade4987c863faf3ed8333ed97bda3d324711c0cae9a8a3a4cd7c08ec2c1d3852da52bcf6cf703701331cfb9fef42601d1cd46c501716118368e29aa1b\",\"name\":\"@rolldown/pluginutils\",\"version\":\"1.0.1\"},\"@sec-ant__readable-stream-0.4.1.tgz\":{\"integrity\":\"831qok9r2t8AlxLko40y2ebgSDhenenCatLVeW/uBtnHPyhHOvG0C7TvfgecV+wHzIm5KUICgzmVpWS+IMEAeg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f37d6aa24f6bdadf009712e4a38d32d9e6e048385e9de9c26ad2d5796fee06d9c73f28473af1b40bb4ef7e079c57ec07cc89b9294202833995a564be20c1007a\",\"name\":\"@sec-ant/readable-stream\",\"version\":\"0.4.1\"},\"@sindresorhus__is-4.6.0.tgz\":{\"integrity\":\"t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b74f6f48ddcc75fb32087a057134421ff894b46ece2740ac8f307c72302629cfef6bf90881e0c8fd3c6c8a0767704ff86deef7e26d1cbc863035a5788b65ea03\",\"name\":\"@sindresorhus/is\",\"version\":\"4.6.0\"},\"@sindresorhus__merge-streams-4.0.0.tgz\":{\"integrity\":\"tlqY9xq5ukxTUZBmoOp+m61cqwQD5pHJtFY3Mn8CA8ps6yghLH/Hw8UPdqg4OLmFW3IFlcXnQNmo/dh8HzXYIQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b65a98f71ab9ba4c53519066a0ea7e9bad5cab0403e691c9b45637327f0203ca6ceb28212c7fc7c3c50f76a83838b9855b720595c5e740d9a8fdd87c1f35d821\",\"name\":\"@sindresorhus/merge-streams\",\"version\":\"4.0.0\"},\"@standard-schema__spec-1.1.0.tgz\":{\"integrity\":\"l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"976685cb98c02e19e21b91e0aab0fa8d72e2feb516acabea37fa89c7aca826c80a85b95577e8aaa94e110976af9bf8cf8adc83a394c2bca327a632a73ab8b2d3\",\"name\":\"@standard-schema/spec\",\"version\":\"1.1.0\"},\"@standard-schema__utils-0.3.0.tgz\":{\"integrity\":\"e7Mew686owMaPJVNNLs55PUvgz371nKgwsc4vxE49zsODpJEnxgxRo2y/OKrqueavXgZNMDVj3DdHFlaSAeU8g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7bb31ec3af3aa3031a3c954d34bb39e4f52f833dfbd672a0c2c738bf1138f73b0e0e92449f1831468db2fce2abaae79abd781934c0d58f70dd1c595a480794f2\",\"name\":\"@standard-schema/utils\",\"version\":\"0.3.0\"},\"@szmarczak__http-timer-4.0.6.tgz\":{\"integrity\":\"4BAffykYOgO+5nzBWYwE3W90sBgLJoUPRWWcL8wlyiM8IB8ipJz3UMJ9KXQd1RKQXpKp8Tutn80HZtWsu2u76w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e0101f7f29183a03bee67cc1598c04dd6f74b0180b26850f45659c2fcc25ca233c201f22a49cf750c27d29741dd512905e92a9f13bad9fcd0766d5acbb6bbbeb\",\"name\":\"@szmarczak/http-timer\",\"version\":\"4.0.6\"},\"@tailwindcss__node-4.3.3.tgz\":{\"integrity\":\"/T8IKEsf9VTU6tLjgC7+sv2mOPtQxzE2jMw7u4Tt40Tx+QSZxpzh95/H6cMKoja9XuW7iMdLJYBB0o9G1CaAgg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"fd3f08284b1ff554d4ead2e3802efeb2fda638fb50c731368ccc3bbb84ede344f1f90499c69ce1f79fc7e9c30aa236bd5ee5bb88c74b258041d28f46d4268082\",\"name\":\"@tailwindcss/node\",\"version\":\"4.3.3\"},\"@tailwindcss__oxide-4.3.3.tgz\":{\"integrity\":\"krXjAikiaFSPaK/FkAQT5UTx3VormQaiZ5hBFlJZ9UFQGB/rwg1MZIhHAG9smMQRTdyJxP6Qt5MwMtdyU5FWrA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"92b5e302292268548f68afc5900413e544f1dd5a2b9906a2679841165259f54150181febc20d4c648847006f6c98c4114ddc89c4fe90b7933032d772539156ac\",\"name\":\"@tailwindcss/oxide\",\"version\":\"4.3.3\"},\"@tailwindcss__oxide-android-arm64-4.3.3.tgz\":{\"integrity\":\"Y85A2gmPSkl5Ve5qR86GL4HT509cFqQh1aes9p3sSkyTPwt0Pppf3GkwGe4JPACcRYjgJIEhQgM6dBClnr0NYw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"63ce40da098f4a497955ee6a47ce862f81d3e74f5c16a421d5a7acf69dec4a4c933f0b743e9a5fdc693019ee093c009c4588e024812142033a7410a59ebd0d63\",\"name\":\"@tailwindcss/oxide-android-arm64\",\"version\":\"4.3.3\"},\"@tailwindcss__oxide-darwin-arm64-4.3.3.tgz\":{\"integrity\":\"BiaWatpBcERQFDlOjRDpIVXuFK5PJez5SA4JMg6VYZdBYU+qKfV/vqjcIs+IYmtitf1xYQZTwXvU/8y4lfZUGw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0626966ada4170445014394e8d10e92155ee14ae4f25ecf9480e09320e95619741614faa29f57fbea8dc22cf88626b62b5fd71610653c17bd4ffccb895f6541b\",\"name\":\"@tailwindcss/oxide-darwin-arm64\",\"version\":\"4.3.3\"},\"@tailwindcss__oxide-darwin-x64-4.3.3.tgz\":{\"integrity\":\"fAeUqfV5ndhxRwai8cXGzdLvul9utWOmeTkv69unv4ZXixjn61Z+p9lCWdwOwA3TYboG3BwdVuN/RDjhBRl0mw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7c0794a9f5799dd8714706a2f1c5c6cdd2efba5f6eb563a679392febdba7bf86578b18e7eb567ea7d94259dc0ec00dd361ba06dc1c1d56e37f4438e10519749b\",\"name\":\"@tailwindcss/oxide-darwin-x64\",\"version\":\"4.3.3\"},\"@tailwindcss__oxide-freebsd-x64-4.3.3.tgz\":{\"integrity\":\"iyf5bV6+wnAlflVeEy7R25dupxTNECZN5QMI0qNT6eT+EgaGdZcKhGkr5SdoaWiLJ3spLqIY9VCeSGrwmtg4kw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8b27f96d5ebec270257e555e132ed1db976ea714cd10264de50308d2a353e9e4fe12068675970a84692be5276869688b277b292ea218f5509e486af09ad83893\",\"name\":\"@tailwindcss/oxide-freebsd-x64\",\"version\":\"4.3.3\"},\"@tailwindcss__oxide-linux-arm-gnueabihf-4.3.3.tgz\":{\"integrity\":\"aAYUprJAJQWWbRrPvtjdroZ56Md+JM8pMiopS6xGEwDfLhqj+2ver2p4nU4Mb3CRqcMmNBjo8KkUgcxhkzVQGQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"680614a6b2402505966d1acfbed8ddae8679e8c77e24cf29322a294bac461300df2e1aa3fb6bdeaf6a789d4e0c6f7091a9c3263418e8f0a91481cc6193355019\",\"name\":\"@tailwindcss/oxide-linux-arm-gnueabihf\",\"version\":\"4.3.3\"},\"@tailwindcss__oxide-linux-arm64-gnu-4.3.3.tgz\":{\"integrity\":\"nDxldcEENOxZRzC2uu9jrutZdAAQtb+8WWDCSnWL1zvBk1+FN+x6MtDViPB5AJMfttVCUhehGWus3XBPgatM/w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9c3c6575c10434ec594730b6baef63aeeb59740010b5bfbc5960c24a758bd73bc1935f8537ec7a32d0d588f07900931fb6d5425217a1196bacdd704f81ab4cff\",\"name\":\"@tailwindcss/oxide-linux-arm64-gnu\",\"version\":\"4.3.3\"},\"@tailwindcss__oxide-linux-arm64-musl-4.3.3.tgz\":{\"integrity\":\"Md44bD6veX/PC5iyF8cDVnw4HBIANZepRZZ7a8DQOvkfo5WUBwcp6iAuCUz23u+4SUkhJlD3eL7hNdW8ezd/kA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"31de386c3eaf797fcf0b98b217c703567c381c12003597a945967b6bc0d03af91fa39594070729ea202e094cf6deefb84949212650f778bee135d5bc7b377f90\",\"name\":\"@tailwindcss/oxide-linux-arm64-musl\",\"version\":\"4.3.3\"},\"@tailwindcss__oxide-linux-x64-gnu-4.3.3.tgz\":{\"integrity\":\"tx7us1muwOKAKWao2v/GaafFeQboE6aj88vC6ziN2NCGcRm8gWUhwjzg+YdVB1e4boAtdtma4L43onunI6NS4w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b71eeeb359aec0e2802966a8daffc669a7c57906e813a6a3f3cbc2eb388dd8d0867119bc816521c23ce0f987550757b86e802d76d99ae0be37a27ba723a352e3\",\"name\":\"@tailwindcss/oxide-linux-x64-gnu\",\"version\":\"4.3.3\"},\"@tailwindcss__oxide-linux-x64-musl-4.3.3.tgz\":{\"integrity\":\"SJxX60smvHgasZoBy11dX6YRjXJFovwWBoedhbQPOBzgFWBHGB+TVPWB9BxzR7TTxU8FQZAI2AyiNCMzFm8Img==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"489c57eb4b26bc781ab19a01cb5d5d5fa6118d7245a2fc1606879d85b40f381ce0156047181f9354f581f41c7347b4d3c54f05419008d80ca2342333166f089a\",\"name\":\"@tailwindcss/oxide-linux-x64-musl\",\"version\":\"4.3.3\"},\"@tailwindcss__oxide-wasm32-wasi-4.3.3.tgz\":{\"integrity\":\"jx1+rPhY/5Ympkktd656HBWEBLxP7dH06losBLjjf5vgCODXvi9KhtftWcMIwTFIDqBr7cRnQkdLnAG+IOlGvQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8f1d7eacf858ff9626a6492d77ae7a1c158404bc4fedd1f4ea5a2c04b8e37f9be008e0d7be2f4a86d7ed59c308c131480ea06bedc46742474b9c01be20e946bd\",\"name\":\"@tailwindcss/oxide-wasm32-wasi\",\"version\":\"4.3.3\"},\"@tailwindcss__oxide-win32-arm64-msvc-4.3.3.tgz\":{\"integrity\":\"3rc292Ca2ceK6Ulcc/bAVnTs/3nDtoPhyEKlgPv+yQJQi/JS/AMJlqzxvlDacL1nekbrcf6bTqp/jV4qgnPxNQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"deb736f7609ad9c78ae9495c73f6c05674ecff79c3b683e1c842a580fbfec902508bf252fc030996acf1be50da70bd677a46eb71fe9b4eaa7f8d5e2a8273f135\",\"name\":\"@tailwindcss/oxide-win32-arm64-msvc\",\"version\":\"4.3.3\"},\"@tailwindcss__oxide-win32-x64-msvc-4.3.3.tgz\":{\"integrity\":\"yJ0pwIVc/nYeGoV02WtsN8KYyLQv7kyI2wDnkezyJlGGjkd4QLwDGAwl47YpPJeuI0M0ObaXGSPjvWDPeTPggw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c89d29c0855cfe761e1a8574d96b6c37c298c8b42fee4c88db00e791ecf22651868e477840bc03180c25e3b6293c97ae23433439b6971923e3bd60cf7933e083\",\"name\":\"@tailwindcss/oxide-win32-x64-msvc\",\"version\":\"4.3.3\"},\"@tailwindcss__vite-4.3.3.tgz\":{\"integrity\":\"yYU8cogLeSh/ms2jh8Fj7jaba/EWa7Ja6GoUqYZaraEuCI5YS6ms6ObZgjjedm+jm6XZjdNRWBpPP6Z86oOxcw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c9853c72880b79287f9acda387c163ee369b6bf1166bb25ae86a14a9865aada12e088e584ba9ace8e6d98238de766fa39ba5d98dd351581a4f3fa67cea83b173\",\"name\":\"@tailwindcss/vite\",\"version\":\"4.3.3\"},\"@tanstack__react-virtual-3.14.9.tgz\":{\"integrity\":\"qZyr0FZDP8rDC4WBhsryIZmAd9bveJvFGUJJtskWaew6/0dTRS6wZxnR6VQ5bY2KwL3LjerrHqQLk3a0GKcPXQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a99cabd056433fcac30b858186caf221998077d6ef789bc5194249b6c91669ec3aff4753452eb06719d1e954396d8d8ac0bdcb8deaeb1ea40b9376b418a70f5d\",\"name\":\"@tanstack/react-virtual\",\"version\":\"3.14.9\"},\"@tanstack__virtual-core-3.17.7.tgz\":{\"integrity\":\"bp+v10y65sp2H7WpWfIMyxTNfl8ZVfxFTLRjPIFRryi6FV/J33z4IS53WO4pTk36KlvJ4iLiQz+oaydDC1xbcA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6e9fafd74cbae6ca761fb5a959f20ccb14cd7e5f1955fc454cb4633c8151af28ba155fc9df7cf8212e7758ee294e4dfa2a5bc9e222e2433fa86b27430b5c5b70\",\"name\":\"@tanstack/virtual-core\",\"version\":\"3.17.7\"},\"@testing-library__dom-10.4.1.tgz\":{\"integrity\":\"o4PXJQidqJl82ckFaXUeoAW+XysPLauYI43Abki5hABd853iMhitooc6znOnczgbTYmEP6U6/y1ZyKAIsvMKGg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a383d725089da8997cd9c90569751ea005be5f2b0f2dab98238dc06e48b984005df39de23218ada2873ace73a773381b4d89843fa53aff2d59c8a008b2f30a1a\",\"name\":\"@testing-library/dom\",\"version\":\"10.4.1\"},\"@testing-library__jest-dom-7.0.1.tgz\":{\"integrity\":\"oMDTC3oA+6CXSO2JZnvOI7CA6oVub6kij5ggk9ohwye5slmkwxYDXcPOVxgMw/RQlticjtO0C1RZkR97HgrWMw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a0c0d30b7a00fba09748ed89667bce23b080ea856e6fa9228f982093da21c327b9b259a4c316035dc3ce57180cc3f45096d89c8ed3b40b5459911f7b1e0ad633\",\"name\":\"@testing-library/jest-dom\",\"version\":\"7.0.1\"},\"@testing-library__react-16.3.2.tgz\":{\"integrity\":\"XU5/SytQM+ykqMnAnvB2umaJNIOsLF3PVv//1Ew4CTcpz0/BRyy/af40qqrt7SjKpDdT1saBMc42CUok5gaw+g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5d4e7f4b2b5033eca4a8c9c09ef076ba66893483ac2c5dcf56ffffd44c38093729cf4fc1472cbf69fe34aaaaeded28caa43753d6c68131ce36094a24e606b0fa\",\"name\":\"@testing-library/react\",\"version\":\"16.3.2\"},\"@testing-library__user-event-14.6.4.tgz\":{\"integrity\":\"QCGwP6QrjypBLwyj5cuyfVamkaIEy/XGY+1VDehbtbQqOggYmTFpFOdWR5mPz14vX8vXLMVjDHlRNBcClyO9ew==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4021b03fa42b8f2a412f0ca3e5cbb27d56a691a204cbf5c663ed550de85bb5b42a3a081899316914e75647998fcf5e2f5fcbd72cc5630c79513417029723bd7b\",\"name\":\"@testing-library/user-event\",\"version\":\"14.6.4\"},\"@thaunknown__thirty-two-1.0.6.tgz\":{\"integrity\":\"Uz2kFb0cNeHg7hds8BtI/umcwzaSMUdbkeQgZrIZQbp3gWRFjrvrvBHNEB6SQYChVxC3rWHovKx1Ya/vSRRMYA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"533da415bd1c35e1e0ee176cf01b48fee99cc3369231475b91e42066b21941ba778164458ebbebbc11cd101e924180a15710b7ad61e8bcac7561afef49144c60\",\"name\":\"@thaunknown/thirty-two\",\"version\":\"1.0.6\"},\"@ts-morph__common-0.27.0.tgz\":{\"integrity\":\"Wf29UqxWDpc+i61k3oIOzcUfQt79PIT9y/MWfAGlrkjg6lBC1hwDECLXPVJAhWjiGbfBCxZd65F/LIZF3+jeJQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"59fdbd52ac560e973e8bad64de820ecdc51f42defd3c84fdcbf3167c01a5ae48e0ea5042d61c031022d73d52408568e219b7c10b165deb917f2c8645dfe8de25\",\"name\":\"@ts-morph/common\",\"version\":\"0.27.0\"},\"@types__aria-query-5.0.4.tgz\":{\"integrity\":\"rfT93uj5s0PRL7EzccGMs3brplhcrghnDoV26NqKhCAS1hVo+WdNsPvE/yb6ilfr5hi2MEk6d5EWJTKdxg8jVw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"adf4fddee8f9b343d12fb13371c18cb376eba6585cae08670e8576e8da8a842012d61568f9674db0fbc4ff26fa8a57ebe618b630493a77911625329dc60f2357\",\"name\":\"@types/aria-query\",\"version\":\"5.0.4\"},\"@types__better-sqlite3-9.6.0.tgz\":{\"integrity\":\"ZEEwBSgMu7GYJOynoagg5X9JbxfL6dTJDsgViJIqh67jV44kyOr9RXfmFjLK5rzC4MWssP06t9hu/JwGDnUbCg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"64413005280cbbb19824eca7a1a820e57f496f17cbe9d4c90ec81588922a87aee3578e24c8eafd4577e61632cae6bcc2e0c5acb0fd3ab7d86efc9c060e751b0a\",\"name\":\"@types/better-sqlite3\",\"version\":\"9.6.0\"},\"@types__cacheable-request-6.0.3.tgz\":{\"integrity\":\"IQ3EbTzGxIigb1I3qPZc1rWJnH0BmSKv5QYTalEwweFvyBDLSAe24zP0le/hyi7ecGfZVlIVAg4BZqb8WBwKqw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"210dc46d3cc6c488a06f5237a8f65cd6b5899c7d019922afe506136a5130c1e16fc810cb4807b6e333f495efe1ca2ede7067d9565215020e0166a6fc581c0aab\",\"name\":\"@types/cacheable-request\",\"version\":\"6.0.3\"},\"@types__chai-5.2.3.tgz\":{\"integrity\":\"Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"330e79f28780f5f15bbfae7fcb8987b570ecf5b3e714c6402ff8f174f154a4e1c72175fdd667201076d2e4b6a1afea7064547c03b19095e456788e9c1850b650\",\"name\":\"@types/chai\",\"version\":\"5.2.3\"},\"@types__d3-array-3.2.2.tgz\":{\"integrity\":\"hOLWVbm7uRza0BYXpIIW5pxfrKe0W+D5lrFiAEYR+pb6w3N2SwSMaJbXdUfSEv+dT4MfHBLtn5js0LAWaO6otw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"84e2d655b9bbb91cdad01617a48216e69c5faca7b45be0f996b162004611fa96fac373764b048c6896d77547d212ff9d4f831f1c12ed9f98ecd0b01668eea8b7\",\"name\":\"@types/d3-array\",\"version\":\"3.2.2\"},\"@types__d3-color-3.1.3.tgz\":{\"integrity\":\"iO90scth9WAbmgv7ogoq57O9YpKmFBbmoEoCHDB2xMBY0+/KVrqAaCDyCE16dUspeOvIxFFRI+0sEtqDqy2b4A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"88ef74b1cb61f5601b9a0bfba20a2ae7b3bd6292a61416e6a04a021c3076c4c058d3efca56ba806820f2084d7a754b2978ebc8c4515123ed2c12da83ab2d9be0\",\"name\":\"@types/d3-color\",\"version\":\"3.1.3\"},\"@types__d3-drag-3.0.7.tgz\":{\"integrity\":\"HE3jVKlzU9AaMazNufooRJ5ZpWmLIoc90A37WU2JMmeq28w1FQqCZswHZ3xR+SuxYftzHq6WU6KJHvqxKzTxxQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1c4de354a97353d01a31accdb9fa28449e59a5698b22873dd00dfb594d893267aadbcc35150a8266cc07677c51f92bb161fb731eae9653a2891efab12b34f1c5\",\"name\":\"@types/d3-drag\",\"version\":\"3.0.7\"},\"@types__d3-ease-3.0.2.tgz\":{\"integrity\":\"NcV1JjO5oDzoK26oMzbILE6HW7uVXOHLQvHshBUW4UMdZGfiY6v5BeQwh9a9tCzv+CeefZQHJt5SRgK154RtiA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"35c5752633b9a03ce82b6ea83336c82c4e875bbb955ce1cb42f1ec841516e1431d6467e263abf905e43087d6bdb42ceff8279e7d940726de524602b5e7846d88\",\"name\":\"@types/d3-ease\",\"version\":\"3.0.2\"},\"@types__d3-interpolate-3.0.4.tgz\":{\"integrity\":\"mgLPETlrpVV1YRJIglr4Ez47g7Yxjl1lj7YKsiMCb27VJH9W8NVM6Bb9d8kkpG/uAQS5AmbA48q2IAolKKo1MA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9a02cf11396ba55575611248825af8133e3b83b6318e5d658fb60ab223026f6ed5247f56f0d54ce816fd77c924a46fee0104b90266c0e3cab6200a2528aa3530\",\"name\":\"@types/d3-interpolate\",\"version\":\"3.0.4\"},\"@types__d3-path-3.1.1.tgz\":{\"integrity\":\"VMZBYyQvbGmWyWVea0EHs/BwLgxc+MKi1zLDCONksozI4YJMcTt8ZEuIR4Sb1MMTE8MMW49v0IwI5+b7RmfWlg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"54c64163242f6c6996c9655e6b4107b3f0702e0c5cf8c2a2d732c308e364b28cc8e1824c713b7c644b8847849bd4c31313c30c5b8f6fd08c08e7e6fb4667d696\",\"name\":\"@types/d3-path\",\"version\":\"3.1.1\"},\"@types__d3-scale-4.0.9.tgz\":{\"integrity\":\"dLmtwB8zkAeO/juAMfnV+sItKjlsw2lKdZVVy6LRr0cBmegxSABiLEpGVmSJJ8O08i4+sGR6qQtb6WtuwJdvVw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"74b9adc01f3390078efe3b8031f9d5fac22d2a396cc3694a759555cba2d1af470199e8314800622c4a4656648927c3b4f22e3eb0647aa90b5be96b6ec0976f57\",\"name\":\"@types/d3-scale\",\"version\":\"4.0.9\"},\"@types__d3-selection-3.0.11.tgz\":{\"integrity\":\"bhAXu23DJWsrI45xafYpkQ4NtcKMwWnAC/vKrd2l+nxMFuvOT3XMYTIj2opv8vq8AO5Yh7Qac/nSeP/3zjTK0w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6e1017bb6dc3256b2b238e7169f629910e0db5c28cc169c00bfbcaaddda5fa7c4c16ebce4f75cc613223da8a6ff2fabc00ee5887b41a73f9d278fff7ce34cad3\",\"name\":\"@types/d3-selection\",\"version\":\"3.0.11\"},\"@types__d3-shape-3.1.8.tgz\":{\"integrity\":\"lae0iWfcDeR7qt7rA88BNiqdvPS5pFVPpo5OfjElwNaT2yyekbM0C9vK+yqBqEmHr6lDkRnYNoTBYlAgJa7a4w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"95a7b48967dc0de47baadeeb03cf01362a9dbcf4b9a4554fa68e4e7e3125c0d693db2c9e91b3340bdbcafb2a81a84987afa9439119d83684c162502025aedae3\",\"name\":\"@types/d3-shape\",\"version\":\"3.1.8\"},\"@types__d3-time-3.0.4.tgz\":{\"integrity\":\"yuzZug1nkAAaBlBBikKZTgzCeA+k1uy4ZFwWANOfKw5z5LRhV0gNA7gNkKm7HoK+HRN0wX3EkxGk0fpbWhmB7g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"caecd9ba0d6790001a0650418a42994e0cc2780fa4d6ecb8645c1600d39f2b0e73e4b46157480d03b80d90a9bb1e82be1d1374c17dc49311a4d1fa5b5a1981ee\",\"name\":\"@types/d3-time\",\"version\":\"3.0.4\"},\"@types__d3-timer-3.0.2.tgz\":{\"integrity\":\"Ps3T8E8dZDam6fUyNiMkekK3XUsaUEik+idO9/YjPtfj2qruF8tFBXS7XhtE4iIXBLxhmLjP3SXpLhVf21I9Lw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3ecdd3f04f1d6436a6e9f5323623247a42b75d4b1a5048a4fa274ef7f6233ed7e3daaaee17cb450574bb5e1b44e2221704bc6198b8cfdd25e92e155fdb523d2f\",\"name\":\"@types/d3-timer\",\"version\":\"3.0.2\"},\"@types__d3-transition-3.0.9.tgz\":{\"integrity\":\"uZS5shfxzO3rGlu0cC3bjmMFKsXv+SmZZcgp0KD22ts4uGXp5EVYGzu/0YdwZeKmddhcAccYtREJKkPfXkZuCg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b994b9b217f1ccedeb1a5bb4702ddb8e63052ac5eff9299965c829d0a0f6dadb38b865e9e445581b3bbfd1877065e2a675d85c01c718b511092a43df5e466e0a\",\"name\":\"@types/d3-transition\",\"version\":\"3.0.9\"},\"@types__d3-zoom-3.0.8.tgz\":{\"integrity\":\"iqMC4/YlFCSlO8+2Ii1GGGliCAY4XdeG748w5vQUbevlbDu0zSjH/+jojorQVBK/se0j6DUFNPBGSqD3YWYnDw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8aa302e3f6251424a53bcfb6222d461869620806385dd786ef8f30e6f4146debe56c3bb4cd28c7ffe8e88e8ad05412bfb1ed23e8350534f0464aa0f76166270f\",\"name\":\"@types/d3-zoom\",\"version\":\"3.0.8\"},\"@types__debug-4.1.13.tgz\":{\"integrity\":\"KSVgmQmzMwPlmtljOomayoR89W4FynCAi3E8PPs7vmDVPe84hT+vGPKkJfThkmXs0x0jAaa9U8uW8bbfyS2fWw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2925609909b33303e59ad9633a899aca847cf56e05ca70808b713c3cfb3bbe60d53def38853faf18f2a425f4e19265ecd31d2301a6bd53cb96f1b6dfc92d9f5b\",\"name\":\"@types/debug\",\"version\":\"4.1.13\"},\"@types__deep-eql-4.0.2.tgz\":{\"integrity\":\"c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"73d87d75554c8a030f7386f04ef0b9771aada8967040f78fb168cf96948e9e88dba2bea91aa764e78d657c0ec0a8542be6907505176ad23b98f5d6fcd41c3217\",\"name\":\"@types/deep-eql\",\"version\":\"4.0.2\"},\"@types__estree-1.0.9.tgz\":{\"integrity\":\"GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1a174f832d5e978fc898fd395f4e54c38730dbf33ddc10949a712f599352b650b310a304e05924f98a680393a21cd426a12ec269f6fc5dadcfc9af26d50af37a\",\"name\":\"@types/estree\",\"version\":\"1.0.9\"},\"@types__fs-extra-9.0.13.tgz\":{\"integrity\":\"nEnwB++1u5lVDM2UI4c1+5R+FYaKfaAzS4OococimjVm3nQw3TuzH5UNsocrcTBbhnerblyHj4A49qXbIiZdpA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9c49f007efb5bb99550ccd94238735fb947e15868a7da0334b83a87287229a3566de7430dd3bb31f950db2872b71305b8677ab6e5c878f8038f6a5db22265da4\",\"name\":\"@types/fs-extra\",\"version\":\"9.0.13\"},\"@types__http-cache-semantics-4.2.0.tgz\":{\"integrity\":\"L3LgimLHXtGkWikKnsPg0/VFx9OGZaC+eN1u4r+OB1XRqH3meBIAVC2zr1WdMH+RHmnRkqliQAOHNJ/E0j/e0Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2f72e08a62c75ed1a45a290a9ec3e0d3f545c7d38665a0be78dd6ee2bf8e0755d1a87de6781200542db3af559d307f911e69d192a962400387349fc4d23fded1\",\"name\":\"@types/http-cache-semantics\",\"version\":\"4.2.0\"},\"@types__keyv-3.1.4.tgz\":{\"integrity\":\"BQ5aZNSCpj7D6K2ksrRCTmKRLEpnPvWDiLPfoGyhZ++8YtiK9d/3DBKPJgry359X/P1PfruyYwvnvwFjuEiEIg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"050e5a64d482a63ec3e8ada4b2b4424e62912c4a673ef58388b3dfa06ca167efbc62d88af5dff70c128f260af2df9f57fcfd4f7ebbb2630be7bf0163b8488422\",\"name\":\"@types/keyv\",\"version\":\"3.1.4\"},\"@types__ms-2.1.0.tgz\":{\"integrity\":\"GsCCIZDE/p3i96vtEqx+7dBUGXrc7zeSK3wwPHIaRThS+9OhWIXRqzs4d6k1SVU8g91DrNRWxWUGhp5KXQb2VA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1ac0822190c4fe9de2f7abed12ac7eedd054197adcef37922b7c303c721a453852fbd3a15885d1ab3b3877a93549553c83dd43acd456c56506869e4a5d06f654\",\"name\":\"@types/ms\",\"version\":\"2.1.0\"},\"@types__node-24.13.3.tgz\":{\"integrity\":\"Dh8vAsV36ig5wa9OX4pXvMc9D3Veibfw2wix0CUwYODLD8nkj9UsLjASr49nPg+2eKzxhBV+v7L8pXvT4e639Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0e1f2f02c577ea2839c1af4e5f8a57bcc73d0f755e89b7f0db08b1d0253060e0cb0fc9e48fd52c2e3012af8f673e0fb678acf184157ebfb2fca57bd3e1eeb7f5\",\"name\":\"@types/node\",\"version\":\"24.13.3\"},\"@types__node-26.2.0.tgz\":{\"integrity\":\"5IviulTZeRNp2vAJ514cc/HUlY5nZ9fCbq9DMyC52BrhFZACo3nI0R7qBxhQmo/d27NFe96ur/b7Wwxklda+kg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e48be2ba54d9791369daf009e75e1c73f1d4958e6767d7c26eaf433320b9d81ae1159002a379c8d11eea0718509a8fdddbb3457bdeaeaff6fb5b0c6495d6be92\",\"name\":\"@types/node\",\"version\":\"26.2.0\"},\"@types__react-19.2.18.tgz\":{\"integrity\":\"AnzbBERsrLKtk2XSfTbYRLjQPdy116Sty4q+T+Bp3IC4l6jNBvreVPAHmpq9qhXQM7CXZPjLVmGMw9sy+hxQ3w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"027cdb04446cacb2ad9365d27d36d844b8d03ddcb5d7a4adcb8abe4fe069dc80b897a8cd06fade54f0079a9abdaa15d033b09764f8cb56618cc3db32fa1c50df\",\"name\":\"@types/react\",\"version\":\"19.2.18\"},\"@types__react-dom-19.2.4.tgz\":{\"integrity\":\"Bsc+QHgp+P/F02XDzNCY9jnZNCUuLki36KT7VKrTXXLdHf+vHMNZnW1rVu5DNW/rCK+fya3DATySbLM4yhtKUw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"06c73e407829f8ffc5d365c3ccd098f639d934252e2e48b7e8a4fb54aad35d72dd1dffaf1cc3599d6d6b56ee43356feb08af9fc9adc3013c926cb338ca1b4a53\",\"name\":\"@types/react-dom\",\"version\":\"19.2.4\"},\"@types__responselike-1.0.3.tgz\":{\"integrity\":\"H/+L+UkTV33uf49PH5pCAUBVPNj2nDBXTN+qS1dOwyyg24l3CcicicCA7ca+HMvJBZcFgl5r8e+RR6elsb4Lyw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1fff8bf94913577dee7f8f4f1f9a420140553cd8f69c30574cdfaa4b574ec32ca0db897709c89c89c080edc6be1ccbc9059705825e6bf1ef9147a7a5b1be0bcb\",\"name\":\"@types/responselike\",\"version\":\"1.0.3\"},\"@types__use-sync-external-store-0.0.6.tgz\":{\"integrity\":\"zFDAD+tlpf2r4asuHEj0XH6pY6i0g5NeAHPn+15wk3BV6JA69eERFXC1gyGThDkVa1zCyKr5jox1+2LbV/AMLg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"cc50c00feb65a5fdabe1ab2e1c48f45c7ea963a8b483935e0073e7fb5e70937055e8903af5e1111570b58321938439156b5cc2c8aaf98e8c75fb62db57f00c2e\",\"name\":\"@types/use-sync-external-store\",\"version\":\"0.0.6\"},\"@types__validate-npm-package-name-4.0.2.tgz\":{\"integrity\":\"lrpDziQipxCEeK5kWxvljWYhUvOiB2A9izZd9B2AFarYAkqZshb4lPbRs7zKEic6eGtH8V/2qJW+dPp9OtF6bw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"96ba43ce2422a7108478ae645b1be58d662152f3a207603d8b365df41d8015aad8024a99b216f894f6d1b3bcca12273a786b47f15ff6a895be74fa7d3ad17a6f\",\"name\":\"@types/validate-npm-package-name\",\"version\":\"4.0.2\"},\"@types__write-file-atomic-4.0.3.tgz\":{\"integrity\":\"qdo+vZRchyJIHNeuI1nrpsLw+hnkgqP/8mlaN6Wle/NKhydHmUN9l4p3ZE8yP90AJNJW4uB8HQhedb4f1vNayQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a9da3ebd945c8722481cd7ae2359eba6c2f0fa19e482a3fff2695a37a5a57bf34a87274799437d978a77644f323fdd0024d256e2e07c1d085e75be1fd6f35ac9\",\"name\":\"@types/write-file-atomic\",\"version\":\"4.0.3\"},\"@types__ws-8.18.1.tgz\":{\"integrity\":\"ThVF6DCVhA8kUGy+aazFQ4kXQ7E1Ty7A3ypFOe0IcJV8O/M511G99AW24irKrW56Wt44yG9+ij8FaqoBGkuBXg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4e1545e83095840f24506cbe69acc543891743b1354f2ec0df2a4539ed0870957c3bf339d751bdf405b6e22acaad6e7a5ade38c86f7e8a3f056aaa011a4b815e\",\"name\":\"@types/ws\",\"version\":\"8.18.1\"},\"@types__yauzl-3.4.0.tgz\":{\"integrity\":\"NRPn5w6h8dhcnmx3YIRQcqMywY/+nND/uOkJessedcrowO3C0AssHp3tMJpxKAwOhFOo0OV1y9VtsC5hbKKBAw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3513e7e70ea1f1d85c9e6c7760845072a332c18ffe9cd0ffb8e9097acb1e75cae8c0edc2d00b2c1e9ded309a71280c0e8453a8d0e575cbd56db02e616ca28103\",\"name\":\"@types/yauzl\",\"version\":\"3.4.0\"},\"@typescript__typescript-aix-ppc64-7.0.2.tgz\":{\"integrity\":\"MTKKkWB7p/0E9xi1d1tHtZ5PiLkGEMIq88pK2CubZjOsLtYTLqhgIgi6zepFa+9GHZ6h05NMCkQxGKiPXMxXtQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"31328a91607ba7fd04f718b5775b47b59e4f88b90610c22af3ca4ad82b9b6633ac2ed6132ea8602208bacdea456bef461d9ea1d3934c0a443118a88f5ccc57b5\",\"name\":\"@typescript/typescript-aix-ppc64\",\"version\":\"7.0.2\"},\"@typescript__typescript-darwin-arm64-7.0.2.tgz\":{\"integrity\":\"gowzar9MwS/aRWp6f3a4KUqzRjAZjOsmGNCM6LcTgXum+dBfgsBVMN+AgvOCCbguXyick6LJhpBszxMebJ8syA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"828c336abf4cc12fda456a7a7f76b8294ab34630198ceb2618d08ce8b713817ba6f9d05f82c05530df8082f38209b82e5f289c93a2c986906ccf131e6c9f2cc8\",\"name\":\"@typescript/typescript-darwin-arm64\",\"version\":\"7.0.2\"},\"@typescript__typescript-darwin-x64-7.0.2.tgz\":{\"integrity\":\"SZ9xZInqApNlNGc9s0W1VSsktYSOe9cFqNOIqmN1Gs8SmkjKZYFt017G4VwPxASInODuAdbTW7sXiFUf893RgA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"499f716489ea02936534673db345b5552b24b5848e7bd705a8d388aa63751acf129a48ca65816dd35ec6e15c0fc404889ce0ee01d6d35bbb1788551ff3ddd180\",\"name\":\"@typescript/typescript-darwin-x64\",\"version\":\"7.0.2\"},\"@typescript__typescript-freebsd-arm64-7.0.2.tgz\":{\"integrity\":\"W5NH4y/J0plIIS5b2xvTEkU7JFxyqdMAOgf+Ilhl0vHQXKO5dZoxd+C/jEtq56c4F3wk71RB4BMRQ2XdI+bwYQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5b9347e32fc9d29948212e5bdb1bd312453b245c72a9d3003a07fe225865d2f1d05ca3b9759a3177e0bf8c4b6ae7a738177c24ef5441e013114365dd23e6f061\",\"name\":\"@typescript/typescript-freebsd-arm64\",\"version\":\"7.0.2\"},\"@typescript__typescript-freebsd-x64-7.0.2.tgz\":{\"integrity\":\"UMGDx5sTpzNw3WiPebH7l90IWfJggEd+egHt/q6p7/Cm3zqoV7VxkGXt+3DxPIw8CcmvAB0j3sVVfbhX+M4Tpw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"50c183c79b13a73370dd688f79b1fb97dd0859f26080477e7a01edfeaea9eff0a6df3aa857b5719065edfb70f13c8c3c09c9af001d23dec5557db857f8ce13a7\",\"name\":\"@typescript/typescript-freebsd-x64\",\"version\":\"7.0.2\"},\"@typescript__typescript-linux-arm-7.0.2.tgz\":{\"integrity\":\"gffT3xPz9sR7j/YJExkyPntrI0P2EP9XbOyWzth2/Gs0RstK+90RBcO0ncXoXy/beYll1SXw846Nf2zdnEz0QQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"81f7d3df13f3f6c47b8ff6091319323e7b6b2343f610ff576cec96ced876fc6b3446cb4afbdd1105c3b49dc5e85f2fdb798965d525f0f38e8d7f6cdd9c4cf441\",\"name\":\"@typescript/typescript-linux-arm\",\"version\":\"7.0.2\"},\"@typescript__typescript-linux-arm64-7.0.2.tgz\":{\"integrity\":\"Qh4eU4/y3yDjnfjjyPYihMj5/ODIlmt+Bzu17OI+fiSRDW57QmU5SiN63exPRNJPKUzcc1INa1NXdrJ+MqHjUQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"421e1e538ff2df20e39df8e3c8f62284c8f9fce0c8966b7e073bb5ece23e7e24910d6e7b4265394a237addec4f44d24f294cdc73520d6b535776b27e32a1e351\",\"name\":\"@typescript/typescript-linux-arm64\",\"version\":\"7.0.2\"},\"@typescript__typescript-linux-loong64-7.0.2.tgz\":{\"integrity\":\"uEHck9i8hoAzXPiYRib1O7miOnz23SxIeVl6F4LXox+qov1K35jHcEW6VHKvZI+pyvl7fZEP4MCU5LYvIq1GuQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b841dc93d8bc8680335cf8984626f53bb9a23a7cf6dd2c4879597a1782d7a31faaa2fd4adf98c77045ba5472af648fa9caf97b7d910fe0c094e4b62f22ad46b9\",\"name\":\"@typescript/typescript-linux-loong64\",\"version\":\"7.0.2\"},\"@typescript__typescript-linux-mips64el-7.0.2.tgz\":{\"integrity\":\"R4KvAMnE43W5Qeqb0Ly56O3mWMWIAgsMyz36DCaycd5nbg/9kzm0liw3JocfRqyJY0KPmzFjbswozXyW0DnIYA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4782af00c9c4e375b941ea9bd0bcb9e8ede658c588020b0ccb3dfa0c26b271de676e0ffd9339b4962c3726871f46ac8963428f9b31636ecc28cd7c96d039c860\",\"name\":\"@typescript/typescript-linux-mips64el\",\"version\":\"7.0.2\"},\"@typescript__typescript-linux-ppc64-7.0.2.tgz\":{\"integrity\":\"DORx5b3sd/4S7eayxm4FQv+A7CrkUIGRaHiwI8oiHTAI1fAPWhF4J0vAlkC8biAlHSVVwxMQ3tjZ2/DVbnQiiA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0ce471e5bdec77fe12ede6b2c66e0542ff80ec2ae45081916878b023ca221d3008d5f00f5a1178274bc09640bc6e20251d2555c31310ded8d9dbf0d56e742288\",\"name\":\"@typescript/typescript-linux-ppc64\",\"version\":\"7.0.2\"},\"@typescript__typescript-linux-riscv64-7.0.2.tgz\":{\"integrity\":\"wf0jqEDOjrPRnKwYRyyJDRo11KMbvMFrU+q4zqKyChODBzvlkbhNQfKvLxQCcwTpdDaXSHZTVuh0JoCrKCUMHQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c1fd23a840ce8eb3d19cac18472c890d1a35d4a31bbcc16b53eab8cea2b20a1383073be591b84d41f2af2f14027304e974369748765356e8742680ab28250c1d\",\"name\":\"@typescript/typescript-linux-riscv64\",\"version\":\"7.0.2\"},\"@typescript__typescript-linux-s390x-7.0.2.tgz\":{\"integrity\":\"IkwJc3L7yhytWd/ewjyxNDfOmswCm9GWMJT/ue/dU4aZNbwZeYAetq42VyLmsmSjvoX7z74X6ZaYCtzAr0EuGw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"224c097372fbca1cad59dfdec23cb13437ce9acc029bd1963094ffb9efdd53869935bc1979801eb6ae365722e6b264a3be85fbcfbe17e996980adcc0af412e1b\",\"name\":\"@typescript/typescript-linux-s390x\",\"version\":\"7.0.2\"},\"@typescript__typescript-linux-x64-7.0.2.tgz\":{\"integrity\":\"EYdf2cNg7rgCWJnxCdJ+F3V39O8ihb37eHAu1LK8oAFizgTQbPOK7zHHXbPt8rX24COqODXeI3sIf0fCXG7H/A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"11875fd9c360eeb8025899f109d27e177577f4ef2285bdfb78702ed4b2bca00162ce04d06cf38aef31c75db3edf2b5f6e023aa3835de237b087f47c25c6ec7fc\",\"name\":\"@typescript/typescript-linux-x64\",\"version\":\"7.0.2\"},\"@typescript__typescript-netbsd-arm64-7.0.2.tgz\":{\"integrity\":\"+polYF4MF04aPpO5FTkHran9yUQDSXqy5GiSDKpsll5jy3l3+g9QLhpf39T+ePtefhXLOGrLl0QIjkQP6VnelA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"fa9a25605e0c174e1a3e93b9153907ada9fdc94403497ab2e468920caa6c965e63cb7977fa0f502e1a5fdfd4fe78fb5e7e15cb386acb9744088e440fe959de94\",\"name\":\"@typescript/typescript-netbsd-arm64\",\"version\":\"7.0.2\"},\"@typescript__typescript-netbsd-x64-7.0.2.tgz\":{\"integrity\":\"8YIT0EHM/3dq10ZOVF/A7pc/YSMtbcecct4rWtexrnSCHOPcpC2KTLXfTCR6vDpnSiY12heNb1GiN/wu+T/FyA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f18213d041ccff776ad7464e545fc0ee973f61232d6dc79c72de2b5ad7b1ae74821ce3dca42d8a4cb5df4c247abc3a674a2635da178d6f51a237fc2ef93fc5c8\",\"name\":\"@typescript/typescript-netbsd-x64\",\"version\":\"7.0.2\"},\"@typescript__typescript-openbsd-arm64-7.0.2.tgz\":{\"integrity\":\"APT8+ClYnuYm1u9+kgGXoMj2VzWzcymwh2gNSQVySHfkRDGOTVkoWLjCmOQSaO+PoqQ57B0flRp9SA+7GnnkzQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"00f4fcf829589ee626d6ef7e920197a0c8f65735b37329b087680d4905724877e444318e4d592858b8c298e41268ef8fa2a439ec1d1f951a7d480fbb1a79e4cd\",\"name\":\"@typescript/typescript-openbsd-arm64\",\"version\":\"7.0.2\"},\"@typescript__typescript-openbsd-x64-7.0.2.tgz\":{\"integrity\":\"yX7s+Q0Dln0Dt9tEzZsAjXXR/+ytBM7AlglaqyeMPxQszJ1JhlJdZ6jLA+IzldHtflX81em7lDao1xXu+aRRkg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c97eecf90d03967d03b7db44cd9b008d75d1ffecad04cec096095aab278c3f142ccc9d4986525d67a8cb03e23395d1ed7e55fcd5e9bb9436a8d715eef9a45192\",\"name\":\"@typescript/typescript-openbsd-x64\",\"version\":\"7.0.2\"},\"@typescript__typescript-sunos-x64-7.0.2.tgz\":{\"integrity\":\"dLJDGaLZ1D4HPQn62u1n8mBDkJREwMsAkCdkwd4Ieqw+x3TUyTsqY0YiBCtE6H6OzzgGk3iuZ3vFWRS+E8/d1g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"74b24319a2d9d43e073d09fadaed67f26043909444c0cb00902764c1de087aac3ec774d4c93b2a634622042b44e87e8ecf38069378ae677bc55914be13cfddd6\",\"name\":\"@typescript/typescript-sunos-x64\",\"version\":\"7.0.2\"},\"@typescript__typescript-win32-arm64-7.0.2.tgz\":{\"integrity\":\"Gyl1Vy6OsWesLzmq+EP0Fb7b4Nid5232AvcA2SFcdYreldpNtYFFofPjnt62y9hQy7VTaZp65ICJjuAQRaVcIQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1b2975572e8eb167ac2f39aaf843f415bedbe0d89de76df602f700d9215c758ade95da4db58145a1f3e39edeb6cbd850cbb553699a7ae480898ee01045a55c21\",\"name\":\"@typescript/typescript-win32-arm64\",\"version\":\"7.0.2\"},\"@typescript__typescript-win32-x64-7.0.2.tgz\":{\"integrity\":\"0BQ3HkAHHlKLSp1qRvf3SUhGpGsDuhB/jgFw75guyqbxJqEaS0Cw/VFO8i2nHglJUzQCRtMMR/IBAKE3ETMC4g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d014371e40071e528b4a9d6a46f7f7494846a46b03ba107f8e0170ef982ecaa6f126a11a4b40b0fd514ef22da71e094953340246d30c47f20100a137113302e2\",\"name\":\"@typescript/typescript-win32-x64\",\"version\":\"7.0.2\"},\"@vitest__coverage-v8-4.1.10.tgz\":{\"integrity\":\"IM49HmthevbgAO4anp1hwtoT9wYe59w0LR00gr+eagHE+ZJ5lK4sLPeO0ubgoJcwLk6dehU3R24N+FbEEKDc8g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"20ce3d1e6b617af6e000ee1a9e9d61c2da13f7061ee7dc342d1d3482bf9e6a01c4f9927994ae2c2cf78ed2e6e0a097302e4e9d7a1537476e0df856c410a0dcf2\",\"name\":\"@vitest/coverage-v8\",\"version\":\"4.1.10\"},\"@vitest__expect-4.1.10.tgz\":{\"integrity\":\"YsCn+qAk1GWjQOWFEsEcL2gNQ0zmVmQu3T03qP6UyjhtmdtwtbuI+DASn/7iQB3HGTXkdBwGddzxPlmiql5vlA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"62c0a7faa024d465a340e58512c11c2f680d434ce656642edd3d37a8fe94ca386d99db70b5bb88f830129ffee2401dc71935e4741c0675dcf13e59a2aa5e6f94\",\"name\":\"@vitest/expect\",\"version\":\"4.1.10\"},\"@vitest__mocker-4.1.10.tgz\":{\"integrity\":\"v0xaezt+DKEmKfaxg133ldzADrwLGd7Ze1MfQQTYfvs8OqZIwbxyxaYURivwV7sWy5fqn3rH5uOrSp07bp44Ow==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"bf4c5a7b3b7e0ca12629f6b1835df795dcc00ebc0b19ded97b531f4104d87efb3c3aa648c1bc72c5a614462bf057bb16cb97ea9f7ac7e6e3ab4a9d3b6e9e383b\",\"name\":\"@vitest/mocker\",\"version\":\"4.1.10\"},\"@vitest__pretty-format-4.1.10.tgz\":{\"integrity\":\"W1HsjSH4MXQ9YfmmhLAoIYf1HRfekQCGngeIgcei6MP5QQGWUe0gkopdZQaVCFO+JDJMrAJGwa5pRpNpvy4P8Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5b51ec8d21f831743d61f9a684b0282187f51d17de9100869e078881c7a2e8c3f941019651ed20928a5d6506950853be24324cac0246c1ae69469369bf2e0ff1\",\"name\":\"@vitest/pretty-format\",\"version\":\"4.1.10\"},\"@vitest__runner-4.1.10.tgz\":{\"integrity\":\"IKI6kpIH+LmpROplyLwBBaCfMgOZOMsygVa6BARD6ahA04VRuJSa6OaVG7kRvSEMD870Vd91rSSw0eegtWyLGg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"20a23a929207f8b9a944ea65c8bc0105a09f32039938cb328156ba040443e9a840d38551b8949ae8e6951bb911bd210c0fcef455df75ad24b0d1e7a0b56c8b1a\",\"name\":\"@vitest/runner\",\"version\":\"4.1.10\"},\"@vitest__snapshot-4.1.10.tgz\":{\"integrity\":\"xRkfOT1qpTAi/Ti4Y1LtfRc3kEuqxGw59eN2jN9pRWMtS/XDevekhcFSqvQqjUNGksfjMJu3Y+oJ+4Ypn2OaJw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c5191f393d6aa53022fd38b86352ed7d1737904baac46c39f5e3768cdf6945632d4bf5c37af7a485c152aaf42a8d434692c7e3309bb763ea09fb86299f639a27\",\"name\":\"@vitest/snapshot\",\"version\":\"4.1.10\"},\"@vitest__spy-4.1.10.tgz\":{\"integrity\":\"PLf/Ugvoq5wO/b4rwYCR1h2PSIdXz7wnkQFMiUpLdtM7l6pqVFcQIBEHyT1+l+cj7mNwAfZHzqXqDyjvOuwbDw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3cb7ff520be8ab9c0efdbe2bc18091d61d8f488757cfbc2791014c894a4b76d33b97aa6a545710201107c93d7e97e723ee637001f647cea5ea0f28ef3aec1b0f\",\"name\":\"@vitest/spy\",\"version\":\"4.1.10\"},\"@vitest__utils-4.1.10.tgz\":{\"integrity\":\"fy9am/HWxbaGt/Sawrp90vt6Y6jQwf1RX77cz3uwoJwJVMli/e1IEwRPnMNJ7vKfPTwo0diXifkpPvwH9v7nGA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7f2f5a9bf1d6c5b686b7f49ac2ba7dd2fb7a63a8d0c1fd515fbedccf7bb0a09c0954c962fded4813044f9cc349eef29f3d3c28d1d89789f9293efc07f6fee718\",\"name\":\"@vitest/utils\",\"version\":\"4.1.10\"},\"@xmldom__xmldom-0.8.14.tgz\":{\"integrity\":\"T4EDRUBVZYRldYApjEJiU0e1stYWaRAX7CuSnKzrpwdZKo53zGV8/pqfzV6FfwNl9YThD2OumQYvqtvjvgG7aQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4f81034540556584657580298c42625347b5b2d616691017ec2b929caceba707592a8e77cc657cfe9a9fcd5e857f0365f584e10f63ae99062faadbe3be01bb69\",\"name\":\"@xmldom/xmldom\",\"version\":\"0.8.14\"},\"@xyflow__react-12.11.3.tgz\":{\"integrity\":\"G3jogHz2GWUtIOkhavUGno2YzY9u6fILIJBttfsBendb0/HWB90JG+sOTAvlIMEwyvq9zgy9V9ZQSwyQjR5QzQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1b78e8807cf619652d20e9216af5069e8d98cd8f6ee9f20b20906db5fb017a775bd3f1d607dd091beb0e4c0be520c130cafabdce0cbd57d6504b0c908d1e50cd\",\"name\":\"@xyflow/react\",\"version\":\"12.11.3\"},\"@xyflow__system-0.0.80.tgz\":{\"integrity\":\"ywc3ZqG91brzWrH1WlwMdIX4goOfrpBy6AbLdVSaof/Xx9l138ijIKRExM6EkMro2F+OImGmSiA/WKcXvKVcfA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"cb073766a1bdd5baf35ab1f55a5c0c7485f882839fae9072e806cb75549aa1ffd7c7d975dfc8a320a444c4ce8490cae8d85f8e2261a64a203f58a717bca55c7c\",\"name\":\"@xyflow/system\",\"version\":\"0.0.80\"},\"abbrev-4.0.0.tgz\":{\"integrity\":\"a1wflyaL0tHtJSmLSOVybYhy22vRih4eduhhrkcjgrWGnRfrZtovJ2FRjxuTtkkj47O/baf0R86QU5OuYpz8fA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6b5c1f97268bd2d1ed25298b48e5726d8872db6bd18a1e1e76e861ae472382b5869d17eb66da2f2761518f1b93b64923e3b3bf6da7f447ce905393ae629cfc7c\",\"name\":\"abbrev\",\"version\":\"4.0.0\"},\"abort-controller-3.0.0.tgz\":{\"integrity\":\"h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"87c950f2d69c6589d1def3504e089b8feb4e0c7239ffe974e80bb63dcae2bff1a67add1e6a3e13c161f8d6c3bdc271c3890b048f5f6ad1daf375675e007b707a\",\"name\":\"abort-controller\",\"version\":\"3.0.0\"},\"abstract-logging-2.0.1.tgz\":{\"integrity\":\"2BjRTZxTPvheOvGbBslFSYOUkr+SjPtOnrLP33f+VIWLzezQpZcqVg7ja3L4dBXmzzgwT+a029jRx5PCi3JuiA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d818d14d9c533ef85e3af19b06c94549839492bf928cfb4e9eb2cfdf77fe54858bcdecd0a5972a560ee36b72f87415e6cf38304fe6b4dbd8d1c793c28b726e88\",\"name\":\"abstract-logging\",\"version\":\"2.0.1\"},\"accepts-2.0.0.tgz\":{\"integrity\":\"5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e5cbe0e82b4ac1f81d995a98d562225ca7374356e446a18b8bed96ffa6a8fba63b82efd10b046e021184ce1e41e0a96ccd2b932e0658baa16aa396c89a334a9e\",\"name\":\"accepts\",\"version\":\"2.0.0\"},\"agent-base-7.1.4.tgz\":{\"integrity\":\"MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"32703e613f1fc1f24f801c779bad0c36a6a49b7d173a4c88a07d72ea1b9342f0b43f0646ee48bc35a70b05cacf6cda28f2f119cbb269ba4efe8cc3be094a2f4d\",\"name\":\"agent-base\",\"version\":\"7.1.4\"},\"ajv-8.20.0.tgz\":{\"integrity\":\"Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4e16e58be3a53a3fa230f60505505f2773a60809da4b2367e0cd6fcfd4fa1a46b926df5b6bf1c8479ea3a32eb9b58ea4c7f142179557341f35f58eff194ac118\",\"name\":\"ajv\",\"version\":\"8.20.0\"},\"ajv-formats-2.1.1.tgz\":{\"integrity\":\"Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5b1d0ac79da1c44ec2d7c8643048206251227ea599b58691828b89a2bf9631d3e743210ad77be0116c9536ea7b4a879ea0b32caf891fe61e9d396d75235e4c50\",\"name\":\"ajv-formats\",\"version\":\"2.1.1\"},\"ajv-formats-3.0.1.tgz\":{\"integrity\":\"8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f2252a979d04511fae51c7514371c3a9ae84572a3776870bf20e5627714d7169aeeb621b90652e7bfa44c8b056f1518a2ae7133e0a9e92ce1f214d43038ca8c1\",\"name\":\"ajv-formats\",\"version\":\"3.0.1\"},\"ansi-colors-4.1.3.tgz\":{\"integrity\":\"/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ffac3f0b6d4f9b503b6998ad948e4d8bfd89e8515037c8b50afcf79070010006f0f77bff365bca7553aacfb0825b3ff78affc9a6545210467cdd720e375e68bf\",\"name\":\"ansi-colors\",\"version\":\"4.1.3\"},\"ansi-regex-5.0.1.tgz\":{\"integrity\":\"quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"aae2505e54d25062f62c7f52517a3c570b18e2ca1a9e1828e8b3529bce04d4b05c13cb373b4c29762473c91f73fd9649325316bf7eea38e6fda5d26531410a15\",\"name\":\"ansi-regex\",\"version\":\"5.0.1\"},\"ansi-regex-6.3.0.tgz\":{\"integrity\":\"WpDfL7NO6j7tH88IDBNVdUJxDh9nmCteAVW9dsep846XdwF4naCBK+/tGLX3KJgcpgMRXCFlTM2hKGoK9FsdrQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5a90df2fb34eea3eed1fcf080c13557542710e1f67982b5e0155bd76c7a9f38e977701789da0812befed18b5f728981ca603115c21654ccda1286a0af45b1dad\",\"name\":\"ansi-regex\",\"version\":\"6.3.0\"},\"ansi-styles-4.3.0.tgz\":{\"integrity\":\"zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"cdb07dac22404f5adb8e25436f686a2851cd60bc60b64f0d511c59dc86700f717a36dc5b5d94029e74a2d4b931f880e885d3e5169db6db05402c885e64941212\",\"name\":\"ansi-styles\",\"version\":\"4.3.0\"},\"ansi-styles-5.2.0.tgz\":{\"integrity\":\"Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0b1c29b7649f4f34ed5dc7ce97318479ef0ef9cf8c994806acd8817179ee5b1b852477ba6b91f3eeac21c1ee4e81a498234209be42ea597d40486f9c24e90488\",\"name\":\"ansi-styles\",\"version\":\"5.2.0\"},\"app-builder-lib-26.15.7.tgz\":{\"integrity\":\"C7APoYISPExUmrEntNhDpz9Tccb4uWuEDfLaC0WPPc7/pwzz0WZGznCz/ycPfkkzw6tKOalceD8g6TgHmVz1QA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0bb00fa182123c4c549ab127b4d843a73f5371c6f8b96b840df2da0b458f3dceffa70cf3d16646ce70b3ff270f7e4933c3ab4a39a95c783f20e93807995cf540\",\"name\":\"app-builder-lib\",\"version\":\"26.15.7\"},\"argparse-2.0.1.tgz\":{\"integrity\":\"8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f3ef56a9e6db173a57f4e47e59ae8edbd6ac22881e44ccdc1ad00835da4c1c7c80835d1fd3969215505b704a867ff3d7c35123019faadbf6c4060dc3beeacadd\",\"name\":\"argparse\",\"version\":\"2.0.1\"},\"aria-hidden-1.2.6.tgz\":{\"integrity\":\"ik3ZgC9dY/lYVVM++OISsaYDeg1tb0VtP5uL3ouh1koGOaUMDPpbFIei4JkFimWUFPn90sbMNMXQAIVOlnYKJA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8a4dd9802f5d63f95855533ef8e212b1a6037a0d6d6f456d3f9b8bde8ba1d64a0639a50c0cfa5b1487a2e099058a659414f9fdd2c6cc34c5d000854e96760a24\",\"name\":\"aria-hidden\",\"version\":\"1.2.6\"},\"aria-query-5.3.0.tgz\":{\"integrity\":\"b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6f43f4b193cab72bbc1e479101f0aad087d44592be4aec0c8d8d545c6054dbbc290224f0400225ab9e886c83becad93f2634b57cc475e1e7b958105f2a2e49e8\",\"name\":\"aria-query\",\"version\":\"5.3.0\"},\"aria-query-5.3.2.tgz\":{\"integrity\":\"COROpnaoap1E2F000S62r6A60uHZnmlvomhfyT2DlTcrY1OrBKn2UhH7qn5wTC9zMvD0AY7csdPSNwKP+7WiQw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"08e44ea676a86a9d44d85d34d12eb6afa03ad2e1d99e696fa2685fc93d8395372b6353ab04a9f65211fbaa7e704c2f7332f0f4018edcb1d3d237028ffbb5a243\",\"name\":\"aria-query\",\"version\":\"5.3.2\"},\"asn1js-3.0.10.tgz\":{\"integrity\":\"S2s3aOytiKdFRdulw2qPE51MzjzVOisppcVv7jVFR+Kw0kxwvFrDcYA0h7Ndqbmj0HkMIXYWaoj7fli8kgx1eg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4b6b3768ecad88a74545dba5c36a8f139d4cce3cd53a2b29a5c56fee354547e2b0d24c70bc5ac371803487b35da9b9a3d0790c2176166a88fb7e58bc920c757a\",\"name\":\"asn1js\",\"version\":\"3.0.10\"},\"assertion-error-2.0.1.tgz\":{\"integrity\":\"Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2338bc45071f7ea09e3558058a02a58b5b2c92521ba479c261ce809275c662807a82b26ac9e6f2ee3bf5d895108264c09c80e76dc935bb192c4f87733773d604\",\"name\":\"assertion-error\",\"version\":\"2.0.1\"},\"ast-types-0.16.1.tgz\":{\"integrity\":\"6t10qk83GOG8p0vKmaCr8eiilZwO171AvbROMtvvNiwrTly62t+7XkA8RdIIVbpMhCASAsxgAzdRSwh6nw/5Dg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"eadd74aa4f3718e1bca74bca99a0abf1e8a2959c0ed7bd40bdb44e32dbef362c2b4e5cbadadfbb5e403c45d20855ba4c84201202cc600337514b087a9f0ff90e\",\"name\":\"ast-types\",\"version\":\"0.16.1\"},\"ast-v8-to-istanbul-1.0.5.tgz\":{\"integrity\":\"UPAgKJFSEGMWSDr3LX4tqnAb4f7KGT8O40Tyx8wbYmmZ/yn58lNCm8h3svs3eXgiGd5AXxz8NDOvXWvicq+rJA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"50f020289152106316483af72d7e2daa701be1feca193f0ee344f2c7cc1b626999ff29f9f253429bc877b2fb3779782219de405f1cfc3433af5d6be272afab24\",\"name\":\"ast-v8-to-istanbul\",\"version\":\"1.0.5\"},\"async-3.2.6.tgz\":{\"integrity\":\"htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"86d0940e5c72c822cc81a337c578340b42d6db1a9fb90ea9d39a42108b17bb243e6b592860a4ee04ccd13709b26df2e0bc90cc774af52d39f8f84d138ba0b600\",\"name\":\"async\",\"version\":\"3.2.6\"},\"async-exit-hook-2.0.1.tgz\":{\"integrity\":\"NW2cX8m1Q7KPA7a5M2ULQeZ2wR5qI5PAbw5L0UOMxdioVk9PMZ0h1TmyZEkPYrCvYjDlFICusOu1dlEKAAeXBw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"356d9c5fc9b543b28f03b6b933650b41e676c11e6a2393c06f0e4bd1438cc5d8a8564f4f319d21d539b264490f62b0af6230e51480aeb0ebb576510a00079707\",\"name\":\"async-exit-hook\",\"version\":\"2.0.1\"},\"asynckit-0.4.0.tgz\":{\"integrity\":\"Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"39e8bd387e2d461d18a94dc6c615fbf5d33f9b0560bdb64969235a464f9bb21923d12e5c7c772061a92b7818eb1f06ad5ca6f3f88a087582f1aca8a6d8c8d6d1\",\"name\":\"asynckit\",\"version\":\"0.4.0\"},\"at-least-node-1.0.0.tgz\":{\"integrity\":\"+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"faafedec492fd440d8da5e8675ae8b2e25f5e2b53d4d5db459ade87de426c0f1596ce328f435eb2db3a315a69c9645ca5a27486a8a7000e6d00eac16b46523aa\",\"name\":\"at-least-node\",\"version\":\"1.0.0\"},\"atomic-sleep-1.0.0.tgz\":{\"integrity\":\"kNOjDqAh7px0XWNI+4QbzoiR/nTkHAWNud2uvnJquD1/x5a7EQZMJT0AczqK0Qn67oY/TTQ1LbUKajZpp3I9tQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"90d3a30ea021ee9c745d6348fb841bce8891fe74e41c058db9ddaebe726ab83d7fc796bb11064c253d00733a8ad109faee863f4d34352db50a6a3669a7723db5\",\"name\":\"atomic-sleep\",\"version\":\"1.0.0\"},\"atomically-1.7.0.tgz\":{\"integrity\":\"Xcz9l0z7y9yQ9rdDaxlmaI4uJHf/T8g9hOEzJcsEqX2SjCj4J20uK7+ldkDHMbpJDK76wF7xEIgxc/vSlsfw5w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5dccfd974cfbcbdc90f6b7436b1966688e2e2477ff4fc83d84e13325cb04a97d928c28f8276d2e2bbfa57640c731ba490caefac05ef110883173fbd296c7f0e7\",\"name\":\"atomically\",\"version\":\"1.7.0\"},\"avvio-9.3.0.tgz\":{\"integrity\":\"g2tQ7LE7oOSqDfwEm3M+ZCMTJc7KiZCdJ4UwyZJb5ckTKyYu50OYmvv0mCFXPuYXoM4zkSt8zM9XQ9KCvxA74A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"836b50ecb13ba0e4aa0dfc049b733e64231325ceca89909d278530c9925be5c9132b262ee743989afbf49821573ee617a0ce33912b7ccccf5743d282bf103be0\",\"name\":\"avvio\",\"version\":\"9.3.0\"},\"aws4-1.13.2.tgz\":{\"integrity\":\"lHe62zvbTB5eEABUVi/AwVh0ZKY9rMMDhmm+eeyuuUQbQ3+J+fONVQOZyj+DdrvD4BY33uYniyRJ4UJIaSKAfw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9477badb3bdb4c1e5e100054562fc0c1587464a63dacc3038669be79ecaeb9441b437f89f9f38d550399ca3f8376bbc3e01637dee6278b2449e142486922807f\",\"name\":\"aws4\",\"version\":\"1.13.2\"},\"balanced-match-1.0.2.tgz\":{\"integrity\":\"3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"de849e50ed13315ebb84dd4099b5ec2b8c9aa94eed8e21e56f144364ea47d0a5bdf82797e1b440697d009f1b74b71d8cae94695b041a3f02252121098585393f\",\"name\":\"balanced-match\",\"version\":\"1.0.2\"},\"balanced-match-4.0.4.tgz\":{\"integrity\":\"BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"04bae011c453c17da8ea01b118e08dc8cbc64a9df96287ee633c3d87520c4d198aaadb40659554ebb6dd6fd3ebdaf50703cfa3de2dad25f8cee82ebee26c864c\",\"name\":\"balanced-match\",\"version\":\"4.0.4\"},\"base64-js-1.5.1.tgz\":{\"integrity\":\"AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"00aa5a6251e7f2de1255b3870b2f9be7e28a82f478bebb03f2f6efadb890269b3b7ca0d3923903af2ea38b4ad42630b49336cd78f2f0cf1abc8b2a68e35a9e58\",\"name\":\"base64-js\",\"version\":\"1.5.1\"},\"baseline-browser-mapping-2.11.14.tgz\":{\"integrity\":\"JyJ954WzuIR8/FFzX0o5krdSTrBAkcCSRfWSleRsIHSWV+cZe2FI1PKggVkFke1hBldRs+LRxUczzE9iPmgZww==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"27227de785b3b8847cfc51735f4a3992b7524eb04091c09245f59295e46c20749657e7197b6148d4f2a081590591ed61065751b3e2d1c54733cc4f623e6819c3\",\"name\":\"baseline-browser-mapping\",\"version\":\"2.11.14\"},\"bencode-4.0.1.tgz\":{\"integrity\":\"/bCR3FvgfB8AZk4LlowShU+nfaTNRM2vruJ9aejDa5LpgkCoRjFyEauFiZFxbpxVxQbBFapYCN42Er2dkE/Qgw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"fdb091dc5be07c1f00664e0b968c12854fa77da4cd44cdafaee27d69e8c36b92e98240a846317211ab858991716e9c55c506c115aa5808de3612bd9d904fd083\",\"name\":\"bencode\",\"version\":\"4.0.1\"},\"bep53-range-2.0.1.tgz\":{\"integrity\":\"VWN7j7sqUssWD6ROZe2m709YL3u5A1IAx1qvAbH3DAhszHt4WPvCzJLRJ+mzmZn1qWIb4mpflwdn95qezz3n8g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"55637b8fbb2a52cb160fa44e65eda6ef4f582f7bb9035200c75aaf01b1f70c086ccc7b7858fbc2cc92d127e9b39999f5a9621be26a5f970767f79a9ecf3de7f2\",\"name\":\"bep53-range\",\"version\":\"2.0.1\"},\"better-sqlite3-13.0.3.tgz\":{\"integrity\":\"RbOBxmLBG8uvFUc15X9+9SFemKcQ0WBuISBVkpuiaUB2qblC8UWlHEjdWVoZ8AdhSwmoEgsiXKfopX0CQxaACQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"45b381c662c11bcbaf154735e57f7ef5215e98a710d1606e212055929ba2694076a9b942f145a51c48dd595a19f007614b09a8120b225ca7e8a57d0243168009\",\"name\":\"better-sqlite3\",\"version\":\"13.0.3\"},\"bidi-js-1.0.3.tgz\":{\"integrity\":\"RKshQI1R3YQ+n9YJz2QQ147P66ELpa1FQEg20Dk8oW9t2KgLbpDLLp9aGZ7y8WHSshDknG0bknqGw5/tyCs5tw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"44ab21408d51dd843e9fd609cf6410d78ecfeba10ba5ad45404836d0393ca16f6dd8a80b6e90cb2e9f5a199ef2f161d2b210e49c6d1b927a86c39fedc82b39b7\",\"name\":\"bidi-js\",\"version\":\"1.0.3\"},\"bindings-1.5.0.tgz\":{\"integrity\":\"p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a76abfb7f9a1bee3a3fd478b955eb9eba183fe0ba8c25af4847c42948d16f66ecc59890bd45d212e8fb401ec6cf4748f0ad4754974344c3dcc30aad765a8db89\",\"name\":\"bindings\",\"version\":\"1.5.0\"},\"bittorrent-peerid-2.0.2.tgz\":{\"integrity\":\"V2iUvbtv31uLA8XFxbhB3f/fKTxWGaa6FI/3wSm93YAS/DS8IkeRWCyYGQ13Xbc9ajR40nsxNjGtVt7OHB3VOQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"576894bdbb6fdf5b8b03c5c5c5b841ddffdf293c5619a6ba148ff7c129bddd8012fc34bc224791582c98190d775db73d6a3478d27b313631ad56dece1c1dd539\",\"name\":\"bittorrent-peerid\",\"version\":\"2.0.2\"},\"bluebird-3.7.2.tgz\":{\"integrity\":\"XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5e9363e860d0cdd7d6fabd969e7ef189201ded33378f39311970464ed58ab925efd71515f9acf1026f2375664dd3a413424fb63765c1f6344392f6e6426711b6\",\"name\":\"bluebird\",\"version\":\"3.7.2\"},\"body-parser-2.3.0.tgz\":{\"integrity\":\"2cGmJupaNgg+QUwVLAucDuWuoMZ6EX9iHDRswZ5lsNYEmwPaRknMPCLZz07yTzVq/83p4o/wzbDZbBrTvGGTIw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d9c1a626ea5a36083e414c152c0b9c0ee5aea0c67a117f621c346cc19e65b0d6049b03da4649cc3c22d9cf4ef24f356affcde9e28ff0cdb0d96c1ad3bc619323\",\"name\":\"body-parser\",\"version\":\"2.3.0\"},\"boolean-3.2.0.tgz\":{\"integrity\":\"d0II/GO9uf9lfUHH2BQsjxzRJZBdsjgsBiW4BvhWk/3qoKwQFjIDVN19PfX8F2D/r9PCMTtLWjYVCFrpeYUzsw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"774208fc63bdb9ff657d41c7d8142c8f1cd125905db2382c0625b806f85693fdeaa0ac1016320354dd7d3df5fc1760ffafd3c2313b4b5a3615085ae9798533b3\",\"name\":\"boolean\",\"version\":\"3.2.0\"},\"brace-expansion-1.1.18.tgz\":{\"integrity\":\"Edep/X9fGqVNmzKBVsDYIOtD+z1tuezV70LBjdCst9Tqu76lsnvRiZ6oTic1n+/BIwX6QDGAO94PN4N2SADvtw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"11d7a9fd7f5f1aa54d9b328156c0d820eb43fb3d6db9ecd5ef42c18dd0acb7d4eabbbea5b27bd1899ea84e27359fefc12305fa4031803bde0f3783764800efb7\",\"name\":\"brace-expansion\",\"version\":\"1.1.18\"},\"brace-expansion-2.1.4.tgz\":{\"integrity\":\"hGfVzPxthbf3+2yjg/RBs60cB0FhqBS/zvdV/4wn4/BmN0bNMMHPc4V/BbFieqf1TKAGGAHnY4eSjajCl0f2Xg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8467d5ccfc6d85b7f7fb6ca383f441b3ad1c074161a814bfcef755ff8c27e3f0663746cd30c1cf73857f05b1627aa7f54ca0061801e76387928da8c29747f65e\",\"name\":\"brace-expansion\",\"version\":\"2.1.4\"},\"brace-expansion-5.0.9.tgz\":{\"integrity\":\"ScQ4IuvIEF1TMlP7Zt+vjJ//9zlPb2SDcxWxM3bk8s6t6GGdJ7KO1dCcTidOPJKePW30LE/2cT7wCyPho9/Wxg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"49c43822ebc8105d533253fb66dfaf8c9ffff7394f6f64837315b13376e4f2ceade8619d27b28ed5d09c4e274e3c929e3d6df42c4ff6713ef00b23e1a3dfd6c6\",\"name\":\"brace-expansion\",\"version\":\"5.0.9\"},\"braces-3.0.3.tgz\":{\"integrity\":\"yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c906d780efce499543d88b222e5ae8fbb1dfe90d7c109aca484b1da0ccca78f29772dde0bc3f282dc390748cc6ba9af9163f840def203bf9717350737cca71bc\",\"name\":\"braces\",\"version\":\"3.0.3\"},\"browserslist-4.28.8.tgz\":{\"integrity\":\"V2NpofLblG64mfOtSgDhOJESZEGogzDMBv/q+W6oc4LXWP/q75eOXoOaaOu1EOadB9U4Bwx/e0yzbvwKH8zalA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"576369a1f2db946eb899f3ad4a00e13891126441a88330cc06ffeaf96ea87382d758ffeaef978e5e839a68ebb510e69d07d538070c7f7b4cb36efc0a1fccda94\",\"name\":\"browserslist\",\"version\":\"4.28.8\"},\"buffer-from-1.1.2.tgz\":{\"integrity\":\"E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"13e5d0091c126da6a20a1b6fea4e83c2073e6f1f81b3abee2891c7979928c7f05a29b8625f3a903b02b870edb6c84946a763829a3c15853dc79b18323c69c97d\",\"name\":\"buffer-from\",\"version\":\"1.1.2\"},\"builder-util-26.15.3.tgz\":{\"integrity\":\"q2hn7Mbo2nFNkVekPiHFx6Nfo3hURmES3tfBn+k5Pqxl2RkmP3QGqZUhH/q9Pch/4G05NRhPjDlVj1O8q4Txvw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ab6867ecc6e8da714d9157a43e21c5c7a35fa37854466112ded7c19fe9393eac65d919263f7406a995211ffabd3dc87fe06d3935184f8c39558f53bcab84f1bf\",\"name\":\"builder-util\",\"version\":\"26.15.3\"},\"builder-util-runtime-9.7.0.tgz\":{\"integrity\":\"g/kR520giAFYkSXTzcmF3kqQq7wi8F6N6SzeDgZrqTBN+VHdmgWOyTdD1yD7AATDId/yXLvuP34CxW46/BwCdw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"83f911e76d208801589125d3cdc985de4a90abbc22f05e8de92cde0e066ba9304df951dd9a058ec93743d720fb0004c321dff25cbbee3f7e02c56e3afc1c0277\",\"name\":\"builder-util-runtime\",\"version\":\"9.7.0\"},\"bundle-name-4.1.0.tgz\":{\"integrity\":\"tjwM5exMg6BGRI+kNmTntNsvdZS1X8BFYS6tnJ2hdH0kVxM6/eVZ2xy+FqStSWvYmtfFMDLIxurorHwDKfDz5Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b63c0ce5ec4c83a046448fa43664e7b4db2f7594b55fc045612ead9c9da1747d2457133afde559db1cbe16a4ad496bd89ad7c53032c8c6eae8ac7c0329f0f3e5\",\"name\":\"bundle-name\",\"version\":\"4.1.0\"},\"bytes-3.1.2.tgz\":{\"integrity\":\"/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"fcd7fb4f2cd3c7a4b7c9124e6ce015efde7aafc72bdbe3a3f000b976df3048fdc1400a1e5f9f0da07c8253c3fccc690d5d2b634d28ba7f33ba174a4175c61b12\",\"name\":\"bytes\",\"version\":\"3.1.2\"},\"bytestreamjs-2.0.1.tgz\":{\"integrity\":\"U1Z/ob71V/bXfVABvNr/Kumf5VyeQRBEm6Txb0PQ6S7V5GpBM3w4Cbqz/xPDicR5tN0uvDifng8C+5qECeGwyQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"53567fa1bef557f6d77d5001bcdaff2ae99fe55c9e4110449ba4f16f43d0e92ed5e46a41337c3809bab3ff13c389c479b4dd2ebc389f9e0f02fb9a8409e1b0c9\",\"name\":\"bytestreamjs\",\"version\":\"2.0.1\"},\"cacheable-lookup-5.0.4.tgz\":{\"integrity\":\"2/kNscPhpcxrOigMZzbiWF7dz8ilhb/nIHU3EyZiXWXpeq/au8qJ8VhdftMkty3n7Gj6HIGalQG8oiBNB3AJgA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"dbf90db1c3e1a5cc6b3a280c6736e2585eddcfc8a585bfe72075371326625d65e97aafdabbca89f1585d7ed324b72de7ec68fa1c819a9501bca2204d07700980\",\"name\":\"cacheable-lookup\",\"version\":\"5.0.4\"},\"cacheable-request-7.0.4.tgz\":{\"integrity\":\"v+p6ongsrp0yTGbJXjgxPow2+DL93DASP4kXCDKb8/bwRtt9OEF3whggkkDkGNzgcWy2XaF4a8nZglC7uElscg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"bfea7aa2782cae9d324c66c95e38313e8c36f832fddc30123f891708329bf3f6f046db7d384177c218209240e418dce0716cb65da1786bc9d98250bbb8496c72\",\"name\":\"cacheable-request\",\"version\":\"7.0.4\"},\"call-bind-apply-helpers-1.0.2.tgz\":{\"integrity\":\"Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4a9d5a6e52748af0e44b38dc68977112e9cde7f5ef92c149dac30115fabac74af285057fd9bfcac057b6d5c329987b4f3928a3f0af7dff049fa04b9339b9ae31\",\"name\":\"call-bind-apply-helpers\",\"version\":\"1.0.2\"},\"call-bound-1.0.4.tgz\":{\"integrity\":\"+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"fb2b3df7b53dea9a382b1fc0069042aa103d12ec49690583420ef6f791f8841a61bf72198346e804abb0629b78617a7a319e4099942753fb72313951a5a49e8e\",\"name\":\"call-bound\",\"version\":\"1.0.4\"},\"callsites-3.1.0.tgz\":{\"integrity\":\"P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3fc06302c5ef652f95203508d7584709012fef8613ebb6148b924914d588a8bdb7e6c0668d7e3eab1f4cbaf96ce62bf234435cb71e3ac502d0dda4ee13bb2c69\",\"name\":\"callsites\",\"version\":\"3.1.0\"},\"caniuse-lite-1.0.30001809.tgz\":{\"integrity\":\"xxWVywk6a6Arlk+hymeycyn/VgqEfLDxupvhH/xiY5SJ/18kmi9o6MiO320DCUzypORHLtvh0I4i04tUhCNHNQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c71595cb093a6ba02b964fa1ca67b27329ff560a847cb0f1ba9be11ffc62639489ff5f249a2f68e8c88edf6d03094cf2a4e4472edbe1d08e22d38b5484234735\",\"name\":\"caniuse-lite\",\"version\":\"1.0.30001809\"},\"chai-6.2.2.tgz\":{\"integrity\":\"NUPRluOfOiTKBKvWPtSD4PhFvWCqOi0BGStNWs57X9js7XGTprSmFoz5F0tWhR4WPjNeR9jXqdC7/UpSJTnlRg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3543d196e39f3a24ca04abd63ed483e0f845bd60aa3a2d01192b4d5ace7b5fd8eced7193a6b4a6168cf9174b56851e163e335e47d8d7a9d0bbfd4a522539e546\",\"name\":\"chai\",\"version\":\"6.2.2\"},\"chalk-4.1.2.tgz\":{\"integrity\":\"oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a0a9db845c91217a54b9ecfc881326c846b89db8f820e432ba173fc32f6463bfd654f73020ef5503aebc3eef1190eefed06efa48b44e7b2c3d0a9434eb58b898\",\"name\":\"chalk\",\"version\":\"4.1.2\"},\"chalk-5.6.2.tgz\":{\"integrity\":\"7NzBL0rN6fMUW+f7A6Io4h40qQlG+xGmtMxfbnH/K7TAtt8JQWVQK+6g0UXKMeVJoyV5EkkNsErQ8pVD3bLHbA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ecdcc12f4acde9f3145be7fb03a228e21e34a90946fb11a6b4cc5f6e71ff2bb4c0b6df094165502beea0d145ca31e549a3257912490db04ad0f29543ddb2c76c\",\"name\":\"chalk\",\"version\":\"5.6.2\"},\"chokidar-5.0.0.tgz\":{\"integrity\":\"TQMmc3w+5AxjpL8iIiwebF73dRDF4fBIieAqGn9RGCWaEVwQ6Fb2cGe31Yns0RRIzii5goJ1Y7xbMwo1TxMplw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4d0326737c3ee40c63a4bf22222c1e6c5ef77510c5e1f04889e02a1a7f5118259a115c10e856f67067b7d589ecd11448ce28b982827563bc5b330a354f132997\",\"name\":\"chokidar\",\"version\":\"5.0.0\"},\"chownr-3.0.0.tgz\":{\"integrity\":\"+IxzY9BZOQd/XuYPRmrvEVjF/nqj5kgT4kEq7VofrDoM1MxoRjEWkrCC3EtLi59TVawxTAn+orJwFQcrqEN1+g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f88c7363d05939077f5ee60f466aef1158c5fe7aa3e64813e2412aed5a1fac3a0cd4cc6846311692b082dc4b4b8b9f5355ac314c09fea2b27015072ba84375fa\",\"name\":\"chownr\",\"version\":\"3.0.0\"},\"chromium-pickle-js-0.2.0.tgz\":{\"integrity\":\"1R5Fho+jBq0DDydt+/vHWj5KJNJCKdARKOCwZUen84I5BreWoLqRLANH1U87eJy1tiASPtMnGqJJq0ZsLoRPOw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d51e45868fa306ad030f276dfbfbc75a3e4a24d24229d01128e0b06547a7f3823906b796a0ba912c0347d54f3b789cb5b620123ed3271aa249ab466c2e844f3b\",\"name\":\"chromium-pickle-js\",\"version\":\"0.2.0\"},\"ci-info-4.3.1.tgz\":{\"integrity\":\"Wdy2Igu8OcBpI2pZePZ5oWjPC38tmDVx5WKUXKwlLYkA0ozo85sLsLvkBbBn/sZaSCMFOGZJ14fvW9t5/d7kdA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"59dcb6220bbc39c069236a5978f679a168cf0b7f2d983571e562945cac252d8900d28ce8f39b0bb0bbe405b067fec65a482305386649d787ef5bdb79fddee474\",\"name\":\"ci-info\",\"version\":\"4.3.1\"},\"ci-info-4.4.0.tgz\":{\"integrity\":\"77PSwercCZU2Fc4sX94eF8k8Pxte6JAwL4/ICZLFjJLqegs7kCuAsqqj/70NQF6TvDpgFjkubQB2FW2ZZddvQg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"efb3d2c1eadc09953615ce2c5fde1e17c93c3f1b5ee890302f8fc80992c58c92ea7a0b3b902b80b2aaa3ffbd0d405e93bc3a6016392e6d0076156d9965d76f42\",\"name\":\"ci-info\",\"version\":\"4.4.0\"},\"class-variance-authority-0.7.1.tgz\":{\"integrity\":\"Ka+9Trutv7G8M6WT6SeiRWz792K5qEqIGEGzXKhAE6xOWAY6pPH8U+9IY3oCMv6kqTmLsv7Xh/2w2RigkePMsg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"29afbd4ebbadbfb1bc33a593e927a2456cfbf762b9a84a881841b35ca84013ac4e58063aa4f1fc53ef48637a0232fea4a9398bb2fed787fdb0d918a091e3ccb2\",\"name\":\"class-variance-authority\",\"version\":\"0.7.1\"},\"classcat-5.0.5.tgz\":{\"integrity\":\"JhZUT7JFcQy/EzW605k/ktHtncoo9vnyW/2GspNYwFlN1C/WmjuV/xtS04e9SOkL2sTdw0VAZ2UGCcQ9lR6p6w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2616544fb245710cbf1335bad3993f92d1ed9dca28f6f9f25bfd86b29358c0594dd42fd69a3b95ff1b52d387bd48e90bdac4ddc3454067650609c43d951ea9eb\",\"name\":\"classcat\",\"version\":\"5.0.5\"},\"cli-cursor-5.0.0.tgz\":{\"integrity\":\"aCj4O5wKyszjMmDT4tZj93kxyydN/K5zPWSCe6/0AV/AA1pqe5ZBIw0a2ZfPQV7lL5/yb5HsUreJ6UFAF1tEQw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6828f83b9c0acacce33260d3e2d663f77931cb274dfcae733d64827baff4015fc0035a6a7b9641230d1ad997cf415ee52f9ff26f91ec52b789e94140175b4443\",\"name\":\"cli-cursor\",\"version\":\"5.0.0\"},\"cli-spinners-2.9.2.tgz\":{\"integrity\":\"ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"cb0a95fb9326c8be04ef26d780acace03ba065b5f4142e8b9f0ae18eeca42239caf64f0e41a710edac462a78c35d63619ecd31a2dddb648e61e791fcca8f5c26\",\"name\":\"cli-spinners\",\"version\":\"2.9.2\"},\"cliui-8.0.1.tgz\":{\"integrity\":\"BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"05278d9f2bacef90b8fff350f6042dd7f72c4d7ca8ffc49bf9a7cb024cc0a6d16e32ca1df4716890636e759a62fe8415ef786754afac47ee4f55131df83afb61\",\"name\":\"cliui\",\"version\":\"8.0.1\"},\"clone-response-1.0.3.tgz\":{\"integrity\":\"ROoL94jJH2dUVML2Y/5PEDNaSHgeOdSDicUyS7izcF63G6sTc/FTjLub4b8Il9S8S0beOfYt0TaA5qvFK+w0wA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"44ea0bf788c91f675454c2f663fe4f10335a48781e39d48389c5324bb8b3705eb71bab1373f1538cbb9be1bf0897d4bc4b46de39f62dd13680e6abc52bec34c0\",\"name\":\"clone-response\",\"version\":\"1.0.3\"},\"clsx-2.1.1.tgz\":{\"integrity\":\"eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7989b441606d52b0566561b4777f3a386030d7a67df793e2395a3607b6e35926c779d1a5e5ed1959aabae6438681448d7ac1080e407d2126d383f24af5d84264\",\"name\":\"clsx\",\"version\":\"2.1.1\"},\"cmdk-1.1.1.tgz\":{\"integrity\":\"Vsv7kFaXm+ptHDMZ7izaRsP70GgrW9NBNGswt9OZaVBLlE0SNpDq8eu/VGXyF9r7M0azK3Wy7OlYXsuyYLFzHg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"56cbfb9056979bea6d1c3319ee2cda46c3fbd0682b5bd341346b30b7d39969504b944d123690eaf1ebbf5465f217dafb3346b32b75b2ece9585ecbb260b1731e\",\"name\":\"cmdk\",\"version\":\"1.1.1\"},\"code-block-writer-13.0.3.tgz\":{\"integrity\":\"Oofo0pq3IKnsFtuHqSF7TqBfr71aeyZDVJ0HpmqB7FBM2qEigL0iPONSCZSO9pE9dZTAxANe5XHG9Uy0YMv8cg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3a87e8d29ab720a9ec16db87a9217b4ea05fafbd5a7b2643549d07a66a81ec504cdaa12280bd223ce35209948ef6913d7594c0c4035ee571c6f54cb460cbfc72\",\"name\":\"code-block-writer\",\"version\":\"13.0.3\"},\"color-convert-2.0.1.tgz\":{\"integrity\":\"RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4511023ec8fb8aeff16f9a0a61cb051d2a6914d9ec8ffe763954d129be333f9a275f0545df3566993a0d70e7c60be0910e97cafd4e7ce1f320dfc64709a12529\",\"name\":\"color-convert\",\"version\":\"2.0.1\"},\"color-name-1.1.4.tgz\":{\"integrity\":\"dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"74ecbedc0b96ddadb035b64722e319a537208c6b8b53fb812ffb9b71917d3976c3a3c7dfe0ef32569e417f479f4bcb84a18a39ab8171edd63d3a04065e002c40\",\"name\":\"color-name\",\"version\":\"1.1.4\"},\"colorette-2.0.20.tgz\":{\"integrity\":\"IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"21f103c70a1622391e5cbd5e5dc0e2a30e146ca8e12ddabafc4b92551f4630deca547debf6043cddeef786ccf535dd53de28dde71bf5c1c59160ef83ea4088db\",\"name\":\"colorette\",\"version\":\"2.0.20\"},\"combined-stream-1.0.8.tgz\":{\"integrity\":\"FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1503783117ee25e1dfedc05b04c2455e12920eafb690002b06599106f72f144e410751d9297b5214048385d973f73398c3187c943767be630e7bffb971da0476\",\"name\":\"combined-stream\",\"version\":\"1.0.8\"},\"commander-11.1.0.tgz\":{\"integrity\":\"yPVavfyCcRhmorC7rWlkHn15b4wDVgVmBA7kV4QVBsF7kv/9TKJAbAXVTxvTnwP8HHKjRCJDClKbciiYS7p0DQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c8f55abdfc82711866a2b0bbad69641e7d796f8c03560566040ee457841506c17b92fffd4ca2406c05d54f1bd39f03fc1c72a34422430a529b7228984bba740d\",\"name\":\"commander\",\"version\":\"11.1.0\"},\"commander-12.1.0.tgz\":{\"integrity\":\"Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"570f2a1caddb64cf72fcfd74bb75626fca3f0dd92f0363ad3ed66f0fcef540a8f2ef85a3d5648a1482cc3d13d27544b1e5114ad5aae527312d0383e41609dbb8\",\"name\":\"commander\",\"version\":\"12.1.0\"},\"commander-14.0.3.tgz\":{\"integrity\":\"H+y0Jo/T1RZ9qPP4Eh1pkcQcLRglraJaSLoyOtHxu6AapkjWVCy2Sit1QQ4x3Dng8qDlSsZEet7g5Pq06MvTgw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1fecb4268fd3d5167da8f3f8121d6991c41c2d1825ada25a48ba323ad1f1bba01aa648d6542cb64a2b75410e31dc39e0f2a0e54ac6447adee0e4fab4e8cbd383\",\"name\":\"commander\",\"version\":\"14.0.3\"},\"commander-5.1.0.tgz\":{\"integrity\":\"P0CysNDQ7rtVw4QIQtm+MRxV66vKFSvlsQvGYXZWR3qFU0jlMKHZZZgw8e+8DSah4UDKMqnknRDQz+xuQXQ/Zg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3f40b2b0d0d0eebb55c3840842d9be311c55ebabca152be5b10bc6617656477a855348e530a1d9659830f1efbc0d26a1e140ca32a9e49d10d0cfec6e41743f66\",\"name\":\"commander\",\"version\":\"5.1.0\"},\"commander-9.5.0.tgz\":{\"integrity\":\"KRs7WVDKg86PWiuAqhDrAQnTXZKraVcCc6vFdL14qrZ/DcWwuRo7VoiYXalXO7S5GKpqYiVEwCbgFDfxNHKJBQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"291b3b5950ca83ce8f5a2b80aa10eb0109d35d92ab69570273abc574bd78aab67f0dc5b0b91a3b5688985da9573bb4b918aa6a622544c026e01437f134728905\",\"name\":\"commander\",\"version\":\"9.5.0\"},\"compare-version-0.1.2.tgz\":{\"integrity\":\"pJDh5/4wrEnXX/VWRZvruAGHkzKdr46z11OlTPN+VrATlWWhSKewNCJ1futCO5C7eJB3nPMFZA1LeYtcFboZ2A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a490e1e7fe30ac49d75ff556459bebb8018793329daf8eb3d753a54cf37e56b0139565a148a7b03422757eeb423b90bb7890779cf305640d4b798b5c15ba19d8\",\"name\":\"compare-version\",\"version\":\"0.1.2\"},\"concat-map-0.0.1.tgz\":{\"integrity\":\"/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"fd2aefe1db30c903417e8846a73f68e986f71b3dd2ad40ea047e6b4ee84647b6a1b656d82a7571c366c214c4658da03b1171da5d9f30b07768745bdb9212a6aa\",\"name\":\"concat-map\",\"version\":\"0.0.1\"},\"conf-10.2.0.tgz\":{\"integrity\":\"8fLl9F04EJqjSqH+QjITQfJF8BrOVaYr1jewVgSRAEWePfxT0sku4w2hrGQ60BC/TNLGQ2pgxNlTbWQmMPFvXg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f1f2e5f45d38109aa34aa1fe42321341f245f01ace55a62bd637b056049100459e3dfc53d2c92ee30da1ac643ad010bf4cd2c6436a60c4d9536d642630f16f5e\",\"name\":\"conf\",\"version\":\"10.2.0\"},\"content-disposition-1.1.0.tgz\":{\"integrity\":\"5jRCH9Z/+DRP7rkvY83B+yGIGX96OYdJmzngqnw2SBSxqCFPd0w2km3s5iawpGX8krnwSGmF0FW5Nhr0Hfai3g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e634421fd67ff8344feeb92f63cdc1fb2188197f7a3987499b39e0aa7c364814b1a8214f774c36926dece626b0a465fc92b9f0486985d055b9361af41df6a2de\",\"name\":\"content-disposition\",\"version\":\"1.1.0\"},\"content-disposition-2.0.1.tgz\":{\"integrity\":\"e+H0ZXHSWYrENhQzw1LPuP4oF5MzVKmDU6d3hxlvaPEYLLg62MxtQNPRx4SYSuYJSBUgnQIG4HIN2tEtNv7Dog==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7be1f46571d2598ac4361433c352cfb8fe2817933354a98353a77787196f68f1182cb83ad8cc6d40d3d1c784984ae6094815209d0206e0720ddad12d36fec3a2\",\"name\":\"content-disposition\",\"version\":\"2.0.1\"},\"content-type-1.0.5.tgz\":{\"integrity\":\"nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9d38ea7dc045122a4a7570afe180d05827e670b64a9bcd65745d29028a53bf2ac51956dc47a3ff54001de46ecdfb4b53afc42a894d2d15a743e852b836d27038\",\"name\":\"content-type\",\"version\":\"1.0.5\"},\"content-type-2.1.0.tgz\":{\"integrity\":\"mj7UPXE0jaqaOsukNZRUEfEi2AcL7C/vwmwcHV0O97eO1E1pxBZuyjlZrx5seTaNBg1U6+o35wpa35Qfcc+7ag==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9a3ed43d71348daa9a3acba435945411f122d8070bec2fefc26c1c1d5d0ef7b78ed44d69c4166eca3959af1e6c79368d060d54ebea37e70a5adf941f71cfbb6a\",\"name\":\"content-type\",\"version\":\"2.1.0\"},\"convert-source-map-2.0.0.tgz\":{\"integrity\":\"Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2afa78e7d1eb576144275080b22d4abbe318de46ac1f5f53172913cf6c5698c7aae9b936354dd75ef7c9f90eb59b4c64b56c2dfb51d261fdc966c4e6b3769126\",\"name\":\"convert-source-map\",\"version\":\"2.0.0\"},\"cookie-0.7.2.tgz\":{\"integrity\":\"yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ca48b95e72ae7fbe74979d2e193965b7a90a20b6389d0d5e34841ab685c40726797568272aa6e7aa64eb044e41e0dee5acc24a436cad58c8933b6a34bfa130ff\",\"name\":\"cookie\",\"version\":\"0.7.2\"},\"cookie-1.1.1.tgz\":{\"integrity\":\"ei8Aos7ja0weRpFzJnEA9UHJ/7XQmqglbRwnf2ATjcB9Wq874VKH9kfjjirM6UhU2/E5fFYadylyhFldcqSidQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7a2f00a2cee36b4c1e469173267100f541c9ffb5d09aa8256d1c277f60138dc07d5aaf3be15287f647e38e2acce94854dbf1397c561a77297284595d72a4a275\",\"name\":\"cookie\",\"version\":\"1.1.1\"},\"cookie-es-3.1.1.tgz\":{\"integrity\":\"UaXxwISYJPTr9hwQxMFYZ7kNhSXboMXP+Z3TRX6f1/NyaGPfuNUZOWP1pUEb75B2HjfklIYLVRfWiFZJyC6Npg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"51a5f1c0849824f4ebf61c10c4c15867b90d8525dba0c5cff99dd3457e9fd7f3726863dfb8d5193963f5a5411bef90761e37e494860b5517d6885649c82e8da6\",\"name\":\"cookie-es\",\"version\":\"3.1.1\"},\"cookie-signature-1.2.2.tgz\":{\"integrity\":\"D76uU73ulSXrD1UXF4KE2TMxVVwhsnCgfAyTg9k8P6KGZjlXKrOLe4dJQKI3Bxi5wjesZoFXJWElNWBjPZMbhg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0fbeae53bdee9525eb0f5517178284d93331555c21b270a07c0c9383d93c3fa2866639572ab38b7b874940a2370718b9c237ac6681572561253560633d931b86\",\"name\":\"cookie-signature\",\"version\":\"1.2.2\"},\"core-util-is-1.0.3.tgz\":{\"integrity\":\"ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"65006f8b50dca49e060ea6a78ee719d878f7c043b9a590d2f3d0566e472bbddc64b09a2bc140c365a997f65745929f5ac369660432e090e6c40380d6349f4561\",\"name\":\"core-util-is\",\"version\":\"1.0.3\"},\"cors-2.8.6.tgz\":{\"integrity\":\"tJtZBBHA6vjIAaF6EnIaq6laBBP9aq/Y3ouVJjEfoHbRBcHBAHYcMh/w8LDrk2PvIMMq8gmopa5D4V8RmbrxGw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b49b590411c0eaf8c801a17a12721aaba95a0413fd6aafd8de8b9526311fa076d105c1c100761c321ff0f0b0eb9363ef20c32af209a8a5ae43e15f1199baf11b\",\"name\":\"cors\",\"version\":\"2.8.6\"},\"cosmiconfig-9.0.2.tgz\":{\"integrity\":\"gtTZxTDau1wL7Y7zifc2dd8jHSK/k6BTx/2Xp/BpdlAdnlYWFVt7qhJqgwi7637yRwRQ3qL4ZidbB4I8tA5VOg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"82d4d9c530dabb5c0bed8ef389f73675df231d22bf93a053c7fd97a7f06976501d9e5616155b7baa126a8308bbeb7ef2470450dea2f866275b07823cb40e553a\",\"name\":\"cosmiconfig\",\"version\":\"9.0.2\"},\"cross-dirname-0.1.0.tgz\":{\"integrity\":\"+R08/oI0nl3vfPcqftZRpytksBXDzOUveBq/NBVx0sUp1axwzPQrKinNx5yd5sxPu8j1wIy8AfnVQ+5eFdha6Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f91d3cfe82349e5def7cf72a7ed651a72b64b015c3cce52f781abf341571d2c529d5ac70ccf42b2a29cdc79c9de6cc4fbbc8f5c08cbc01f9d543ee5e15d85ae9\",\"name\":\"cross-dirname\",\"version\":\"0.1.0\"},\"cross-fetch-ponyfill-1.0.3.tgz\":{\"integrity\":\"uOBkDhUAGAbx/FEzNKkOfx3w57H8xReBBXoZvUnOKTI0FW0Xvrj3GrYv2iZXUqlffC1LMGfQzhmBM/ke+6eTDA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b8e0640e15001806f1fc513334a90e7f1df0e7b1fcc51781057a19bd49ce293234156d17beb8f71ab62fda265752a95f7c2d4b3067d0ce198133f91efba7930c\",\"name\":\"cross-fetch-ponyfill\",\"version\":\"1.0.3\"},\"cross-spawn-7.0.6.tgz\":{\"integrity\":\"uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b95d903963f69d6ceccb668ca7c69189b862f5d9731791e0879487681f4e893184c834e2249cb1d2ecb9d505ddc966ed00736e6b85c9cd429c6b73b3294777bc\",\"name\":\"cross-spawn\",\"version\":\"7.0.6\"},\"css-tree-3.2.1.tgz\":{\"integrity\":\"X7sjQzceUhu1u7Y/ylrRZFU2FS6LRiFVp6rKLPg23y3x3c3DOKAwuXGDp+PAGjh6CSnCjYeAul8pcT8bAl+lSA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5fbb2343371e521bb5bbb63fca5ad1645536152e8b462155a7aaca2cf836df2df1ddcdc338a030b97183a7e3c01a387a0929c28d8780ba5f29713f1b025fa548\",\"name\":\"css-tree\",\"version\":\"3.2.1\"},\"css.escape-1.5.1.tgz\":{\"integrity\":\"YUifsXXuknHlUsmlgyY0PKzgPOr7/FjCePfHNt0jxm83wHZi44VDMQ7/fGNkjY3/jV1MC+1CmZbaHzugyeRtpg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"61489fb175ee9271e552c9a58326343cace03ceafbfc58c278f7c736dd23c66f37c07662e38543310eff7c63648d8dff8d5d4c0bed429996da1f3ba0c9e46da6\",\"name\":\"css.escape\",\"version\":\"1.5.1\"},\"cssesc-3.0.0.tgz\":{\"integrity\":\"/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"fd36ff25c8cad75d67352706a1be4c36db27b4d3356823540e2a41fd39306458720ebac4e3b48ec7fd7cc05d9b6e381cdd9cc248a5b54f99ede446c5a00cff56\",\"name\":\"cssesc\",\"version\":\"3.0.0\"},\"csstype-3.2.3.tgz\":{\"integrity\":\"z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"cf51c629c632db103c00641fc2b9f43c0cbe3c1ed7fc64a3dd45495bda8aca7e37c566be825e675e6538aaa2cc4735952c50bc2aeb145fc4ffd240a2398a4021\",\"name\":\"csstype\",\"version\":\"3.2.3\"},\"d3-array-3.2.4.tgz\":{\"integrity\":\"tdQAmyA18i4J7wprpYq8ClcxZy3SC31QMeByyCFyRt7BVHdREQZ5lpzoe5mFEYZUWe+oq8HBvk9JjpibyEV4Jg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b5d4009b2035f22e09ef0a6ba58abc0a5731672dd20b7d5031e072c8217246dec1547751110679969ce87b998511865459efa8abc1c1be4f498e989bc8457826\",\"name\":\"d3-array\",\"version\":\"3.2.4\"},\"d3-color-3.1.0.tgz\":{\"integrity\":\"zg/chbXyeBtMQ1LbD/WSoW2DpC3I0mpmPdW+ynRTj/x2DAWYrIY7qeZIHidozwV24m4iavr15lNwIwLxRmOxhA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ce0fdc85b5f2781b4c4352db0ff592a16d83a42dc8d26a663dd5beca74538ffc760c0598ac863ba9e6481e2768cf0576e26e226afaf5e653702302f14663b184\",\"name\":\"d3-color\",\"version\":\"3.1.0\"},\"d3-dispatch-3.0.1.tgz\":{\"integrity\":\"rzUyPU/S7rwUflMyLc1ETDeBj0NRuHKKAcvukozwhshr6g6c5d8zh4c2gQjY2bZ0dXeGLWc1PF174P2tVvKhfg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"af35323d4fd2eebc147e53322dcd444c37818f4351b8728a01cbee928cf086c86bea0e9ce5df338787368108d8d9b6747577862d67353c5d7be0fdad56f2a17e\",\"name\":\"d3-dispatch\",\"version\":\"3.0.1\"},\"d3-drag-3.0.0.tgz\":{\"integrity\":\"pWbUJLdETVA8lQNJecMxoXfH6x+mO2UQo8rSmZ+QqxcbyA3hfeprFgIT//HW2nlHChWeIIMwS2Fq+gEARkhTkg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a566d424b7444d503c95034979c331a177c7eb1fa63b6510a3cad2999f90ab171bc80de17dea6b160213fff1d6da79470a159e2083304b616afa010046485392\",\"name\":\"d3-drag\",\"version\":\"3.0.0\"},\"d3-ease-3.0.1.tgz\":{\"integrity\":\"wR/XK3D3XcLIZwpbvQwQ5fK+8Ykds1ip7A2Txe0yxncXSdq1L9skcG7blcedkOX+ZcgxGAmLX1FrRGbADwzi0w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c11fd72b70f75dc2c8670a5bbd0c10e5f2bef1891db358a9ec0d93c5ed32c6771749dab52fdb24706edb95c79d90e5fe65c83118098b5f516b4466c00f0ce2d3\",\"name\":\"d3-ease\",\"version\":\"3.0.1\"},\"d3-format-3.1.2.tgz\":{\"integrity\":\"AJDdYOdnyRDV5b6ArilzCPPwc1ejkHcoyFarqlPqT7zRYjhavcT3uSrqcMvsgh2CgoPbK3RCwyHaVyxYcP2Arg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0090dd60e767c910d5e5be80ae297308f3f07357a3907728c856abaa53ea4fbcd162385abdc4f7b92aea70cbec821d828283db2b7442c321da572c5870fd80ae\",\"name\":\"d3-format\",\"version\":\"3.1.2\"},\"d3-interpolate-3.0.1.tgz\":{\"integrity\":\"3bYs1rOD33uo8aqJfKP3JWPAibgw8Zm2+L9vBKEHJ2Rg+viTR7o5Mmv5mZcieN+FRYaAOWX5SJATX6k1PWz72g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ddb62cd6b383df7ba8f1aa897ca3f72563c089b830f199b6f8bf6f04a107276460faf89347ba39326bf999972278df854586803965f94890135fa9353d6cfbda\",\"name\":\"d3-interpolate\",\"version\":\"3.0.1\"},\"d3-path-3.1.0.tgz\":{\"integrity\":\"p3KP5HCf/bvjBSSKuXid6Zqijx7wIfNW+J/maPs+iwR35at5JCbLUT0LzF1cnjbCHWhqzQTIN2Jpe8pRebIEFQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a7728fe4709ffdbbe305248ab9789de99aa28f1ef021f356f89fe668fb3e8b0477e5ab792426cb513d0bcc5d5c9e36c21d686acd04c83762697bca5179b20415\",\"name\":\"d3-path\",\"version\":\"3.1.0\"},\"d3-scale-4.0.2.tgz\":{\"integrity\":\"GZW464g1SH7ag3Y7hXjf8RoUuAFIqklOAq3MRl4OaWabTFJY9PN/E1YklhXLh+OQ3fM9yS2nOkCoS+WLZ6kvxQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1995b8eb8835487eda83763b8578dff11a14b80148aa494e02adcc465e0e69669b4c5258f4f37f1356249615cb87e390ddf33dc92da73a40a84be58b67a92fc5\",\"name\":\"d3-scale\",\"version\":\"4.0.2\"},\"d3-selection-3.0.0.tgz\":{\"integrity\":\"fmTRWbNMmsmWq6xJV8D19U/gw/bwrHfNXxrIN+HfZgnzqTHp9jOmKMhsTUjXOJnZOdZY9Q28y4yebKzqDKlxlQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7e64d159b34c9ac996abac4957c0f5f54fe0c3f6f0ac77cd5f1ac837e1df6609f3a931e9f633a628c86c4d48d73899d939d658f50dbccb8c9e6cacea0ca97195\",\"name\":\"d3-selection\",\"version\":\"3.0.0\"},\"d3-shape-3.2.0.tgz\":{\"integrity\":\"SaLBuwGm3MOViRq2ABk3eLoxwZELpH6zhl3FbAoJ7Vm1gofKx6El1Ib5z23NUEhF9AsGl7y+dzLe5Cw2AArGTA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"49a2c1bb01a6dcc395891ab600193778ba31c1910ba47eb3865dc56c0a09ed59b58287cac7a125d486f9cf6dcd504845f40b0697bcbe7732dee42c36000ac64c\",\"name\":\"d3-shape\",\"version\":\"3.2.0\"},\"d3-time-3.1.0.tgz\":{\"integrity\":\"VqKjzBLejbSMT4IgbmVgDjpkYrNWUYJnbCGo874u7MMKIWsILRX+OpX/gTk8MqjpT1A/c6HY2dCA77ZN0lkQ2Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"56a2a3cc12de8db48c4f82206e65600e3a6462b3565182676c21a8f3be2eecc30a216b082d15fe3a95ff81393c32a8e94f503f73a1d8d9d080efb64dd25910d9\",\"name\":\"d3-time\",\"version\":\"3.1.0\"},\"d3-time-format-4.1.0.tgz\":{\"integrity\":\"dJxPBlzC7NugB2PDLwo9Q8JiTR3M3e4/XANkreKSUxF8vvXKqm1Yfq4Q5dl8budlunRVlUUaDUgFt7eA8D6NLg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"749c4f065cc2ecdba00763c32f0a3d43c2624d1dccddee3f5c0364ade29253117cbef5caaa6d587eae10e5d97c6ee765ba745595451a0d4805b7b780f03e8d2e\",\"name\":\"d3-time-format\",\"version\":\"4.1.0\"},\"d3-timer-3.0.1.tgz\":{\"integrity\":\"ndfJ/JxxMd3nw31uyKoY2naivF+r29V+Lc0svZxe1JvvIRmi8hUsrMvdOwgS1o6uBHmiz91geQ0ylPP0aj1VUA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9dd7c9fc9c7131dde7c37d6ec8aa18da76a2bc5fabdbd57e2dcd2cbd9c5ed49bef2119a2f2152caccbdd3b0812d68eae0479a2cfdd60790d3294f3f46a3d5550\",\"name\":\"d3-timer\",\"version\":\"3.0.1\"},\"d3-transition-3.0.1.tgz\":{\"integrity\":\"ApKvfjsSR6tg06xrL434C0WydLr7JewBB3V+/39RMHsaXTOG0zmt/OAXeng5M5LBm0ojmxJrpomQVZ1aPvBL4w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0292af7e3b1247ab60d3ac6b2f8df80b45b274bafb25ec0107757eff7f51307b1a5d3386d339adfce0177a78393392c19b4a239b126ba68990559d5a3ef04be3\",\"name\":\"d3-transition\",\"version\":\"3.0.1\"},\"d3-zoom-3.0.0.tgz\":{\"integrity\":\"b8AmV3kfQaqWAuacbPuNbL6vahnOJflOhexLzMMNLga62+/nh0JzvJ0aO/5a5MVgUFGS7Hu1P9P03o3fJkDCyw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6fc02657791f41aa9602e69c6cfb8d6cbeaf6a19ce25f94e85ec4bccc30d2e06badbefe7874273bc9d1a3bfe5ae4c560505192ec7bb53fd3f4de8ddf2640c2cb\",\"name\":\"d3-zoom\",\"version\":\"3.0.0\"},\"data-uri-to-buffer-4.0.1.tgz\":{\"integrity\":\"0R9ikRb668HB7QDxT1vkpuUBtqc53YyAwMwGeUFKRojY/NWKvdZ+9UYtRfGmhqNbRkTSVpMbmyhXipFFv2cb/A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d11f629116faebc1c1ed00f14f5be4a6e501b6a739dd8c80c0cc0679414a4688d8fcd58abdd67ef5462d45f1a686a35b4644d256931b9b28578a9145bf671bfc\",\"name\":\"data-uri-to-buffer\",\"version\":\"4.0.1\"},\"data-urls-7.0.0.tgz\":{\"integrity\":\"23XHcCF+coGYevirZceTVD7NdJOqVn+49IHyxgszm+JIiHLoB2TkmPtsYkNWT1pvRSGkc35L6NHs0yHkN2SumA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"db75c770217e7281987af8ab65c793543ecd7493aa567fb8f481f2c60b339be2488872e80764e498fb6c6243564f5a6f4521a4737e4be8d1ecd321e43764ae98\",\"name\":\"data-urls\",\"version\":\"7.0.0\"},\"dateformat-4.6.3.tgz\":{\"integrity\":\"2P0p0pFGzHS5EMnhdxQi7aJN+iMheud0UhG4dlE1DLAlvL8JHjJJTX/CSm4JXwV0Ka5nGk3zC5mcb5bUQUxxMA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d8fd29d29146cc74b910c9e1771422eda24dfa23217ae7745211b87651350cb025bcbf091e32494d7fc24a6e095f057429ae671a4df30b999c6f96d4414c7130\",\"name\":\"dateformat\",\"version\":\"4.6.3\"},\"debounce-fn-4.0.0.tgz\":{\"integrity\":\"8pYCQiL9Xdcg0UPSD3d+0KMlOjp+KGU5EPwYddgzQ7DATsg4fuUDjQtsYLmWjnk2obnNHgV3vE2Y4jejSOJVBQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f296024222fd5dd720d143d20f777ed0a3253a3a7e28653910fc1875d83343b0c04ec8387ee5038d0b6c60b9968e7936a1b9cd1e0577bc4d98e237a348e25505\",\"name\":\"debounce-fn\",\"version\":\"4.0.0\"},\"debug-4.4.3.tgz\":{\"integrity\":\"RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"446c305a7c10be455f6af295b76d8518bc3ec5849dcc04709b4aeee83853540dee994e6165cdbc57790ee2cb6062bcab4e52e9baf808f468a28e5b408cd6dca8\",\"name\":\"debug\",\"version\":\"4.4.3\"},\"decimal.js-10.6.0.tgz\":{\"integrity\":\"YpgQiITW3JXGntzdUmyUR1V812Hn8T1YVXhCu+wO3OpS4eU9l4YdD3qjyiKdV6mvV29zapkMeD390UVEf2lkUg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6298108884d6dc95c69edcdd526c9447557cd761e7f13d58557842bbec0edcea52e1e53d97861d0f7aa3ca229d57a9af576f736a990c783dfdd145447f696452\",\"name\":\"decimal.js\",\"version\":\"10.6.0\"},\"decimal.js-light-2.5.1.tgz\":{\"integrity\":\"qIMFpTMZmny+MMIitAB6D7iVPEorVw6YQRWkvarTkT4tBeSLLiHzcwj6q0MmYSFCiVpiqPJTJEYIrpcPzVEIvg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a88305a533199a7cbe30c222b4007a0fb8953c4a2b570e984115a4bdaad3913e2d05e48b2e21f37308faab4326612142895a62a8f253244608ae970fcd5108be\",\"name\":\"decimal.js-light\",\"version\":\"2.5.1\"},\"decompress-response-6.0.0.tgz\":{\"integrity\":\"aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"696df9c9933a05bff8a099599dc307d8b0a866d2574d1c444b5eef137868462a305369161da24a1644810e70d1f9c9bd27ef5085799113221fbf4a638bd7a309\",\"name\":\"decompress-response\",\"version\":\"6.0.0\"},\"dedent-1.7.2.tgz\":{\"integrity\":\"WzMx3mW98SN+zn3hgemf4OzdmyNhhhKz5Ay0pUfQiMQ3e1g+xmTJWp/pKdwKVXhdSkAEGIIzqeuWrL3mV/AXbA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5b3331de65bdf1237ece7de181e99fe0ecdd9b23618612b3e40cb4a547d088c4377b583ec664c95a9fe929dc0a55785d4a4004188233a9eb96acbde657f0176c\",\"name\":\"dedent\",\"version\":\"1.7.2\"},\"deepmerge-4.3.1.tgz\":{\"integrity\":\"3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"dec52a6cc11cefb5eaa5d34eec547246883e796de987e19809b8feacafae63244cbb0b15cb4acc895b4f9fe40994a16f58fff53d8a5aa6a627d0c7b6927167f8\",\"name\":\"deepmerge\",\"version\":\"4.3.1\"},\"default-browser-5.5.1.tgz\":{\"integrity\":\"m1pAzaJgZ/gssEqlOhJkPJp8Xly7QyW6xcrkUa2KKcDeDSEMP7X8xipU3snUcfisTQx0w1AGae+9UtJSfVnXGw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9b5a40cda26067f82cb04aa53a12643c9a7c5e5cbb4325bac5cae451ad8a29c0de0d210c3fb5fcc62a54dec9d471f8ac4d0c74c3500669efbd52d2527d59d71b\",\"name\":\"default-browser\",\"version\":\"5.5.1\"},\"default-browser-id-5.0.1.tgz\":{\"integrity\":\"x1VCxdX4t+8wVfd1so/9w+vQ4vx7lKd2Qp5tDRutErwmR85OgmfX7RlLRMWafRMY7hbEiXIbudNrjOAPa/hL8Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c75542c5d5f8b7ef3055f775b28ffdc3ebd0e2fc7b94a776429e6d0d1bad12bc2647ce4e8267d7ed194b44c59a7d1318ee16c489721bb9d36b8ce00f6bf84bf1\",\"name\":\"default-browser-id\",\"version\":\"5.0.1\"},\"defer-to-connect-2.0.1.tgz\":{\"integrity\":\"4tvttepXG1VaYGrRibk5EwJd1t4udunSOVMdLSAL6mId1ix438oPwPZMALY41FCijukO1L0twNcGsdzS7dHgDg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e2dbedb5ea571b555a606ad189b93913025dd6de2e76e9d239531d2d200bea621dd62c78dfca0fc0f64c00b638d450a28ee90ed4bd2dc0d706b1dcd2edd1e00e\",\"name\":\"defer-to-connect\",\"version\":\"2.0.1\"},\"define-data-property-1.1.4.tgz\":{\"integrity\":\"rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ac132f23396903cbfa13e489668a3ef87018aac2eb920ecc49f2229cc3c5866928af0ed7f9d39754942cf904faf731a4cccc9f0e720c3765a2775f8d6cbdd3f8\",\"name\":\"define-data-property\",\"version\":\"1.1.4\"},\"define-lazy-prop-2.0.0.tgz\":{\"integrity\":\"Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0ecd3da8d87ccb0de48528e22638942276865fdc65a990d8ec956bc86c5dc55ecd3debaa41fa653a943aeb224566eb778cb6b9ccec245f0d60f44236b8a8783a\",\"name\":\"define-lazy-prop\",\"version\":\"2.0.0\"},\"define-lazy-prop-3.0.0.tgz\":{\"integrity\":\"N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"37e31e5d8a2aaf7a4e827f317f244f44437b8076a42d88e1b07856193ddf58088be08900b74883c35e108a2126d9b137d1ce575f9ab416d000dc22b97fdfc152\",\"name\":\"define-lazy-prop\",\"version\":\"3.0.0\"},\"define-properties-1.2.1.tgz\":{\"integrity\":\"8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f109902aa10048b7799f1d14d41d6890b1256d4baeb6d27f0276264576db6c60d687ab92db4f048c3e17aaafc8f702bbbb4bfa3b4f178535a7b795ed11b47a0e\",\"name\":\"define-properties\",\"version\":\"1.2.1\"},\"delayed-stream-1.0.0.tgz\":{\"integrity\":\"ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"672483ecd7fdd5a2c1d11c4be0a1ab28705797b11db350c098475ca156b05e72c3ed20e1a4d82db88236680920edaed04b8d63c4f499d7ba7855d1a730793731\",\"name\":\"delayed-stream\",\"version\":\"1.0.0\"},\"depd-2.0.0.tgz\":{\"integrity\":\"g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"83b9c7e8fe9dc838a8268800006a6b1a90ad5489898693e4feba02cdd6f77c887ad7fb3f9cfb1f47aa27c8cc2408047f3a50b7c810b49444af52840402cb08af\",\"name\":\"depd\",\"version\":\"2.0.0\"},\"dequal-2.0.3.tgz\":{\"integrity\":\"0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d237bea8f28710ca21bdf453084a370ab3c6e9c033018826ccacb1462612483912e9e1897725499bb59a600e4409a003f702c1d93e0411eca603968555c61708\",\"name\":\"dequal\",\"version\":\"2.0.3\"},\"detect-libc-2.1.2.tgz\":{\"integrity\":\"Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"06d8f604e38ef37a375b21f9f5ef0c817b3111055c6ab9143a9118aee6c1d2eaf09cdd74c90dfae2bb22072535d67665a966199b4e62fe87fb8a8e26ce2841b5\",\"name\":\"detect-libc\",\"version\":\"2.1.2\"},\"detect-node-2.1.0.tgz\":{\"integrity\":\"T0NIuQpnTvFDATNuHN5roPwSBG83rFsuO+MXXH9/3N1eFbn4wcPjttvjMLEPWJ0RGUYgQE7cGgS3tNxbqCGM7g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4f4348b90a674ef14301336e1cde6ba0fc12046f37ac5b2e3be3175c7f7fdcdd5e15b9f8c1c3e3b6dbe330b10f589d11194620404edc1a04b7b4dc5ba8218cee\",\"name\":\"detect-node\",\"version\":\"2.1.0\"},\"detect-node-es-1.1.0.tgz\":{\"integrity\":\"ypdmJU/TbBby2Dxibuv7ZLW3Bs1QEmM7nHjEANfohJLvE0XVujisn1qPJcZxg+qDucsr+bP6fLD1rPS3AhJ7EQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ca9766254fd36c16f2d83c626eebfb64b5b706cd5012633b9c78c400d7e88492ef1345d5ba38ac9f5a8f25c67183ea83b9cb2bf9b3fa7cb0f5acf4b702127b11\",\"name\":\"detect-node-es\",\"version\":\"1.1.0\"},\"diff-8.0.4.tgz\":{\"integrity\":\"DPi0FmjiSU5EvQV0++GFDOJ9ASQUVFh5kD+OzOnYdi7n3Wpm9hWWGfB/O2blfHcMVTL5WkQXSnRiK9makhrcnw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0cf8b41668e2494e44bd0574fbe1850ce27d012414545879903f8ecce9d8762ee7dd6a66f6159619f07f3b66e57c770c5532f95a44174a74622bd99a921adc9f\",\"name\":\"diff\",\"version\":\"8.0.4\"},\"dir-compare-4.2.0.tgz\":{\"integrity\":\"2xMCmOoMrdQIPHdsTawECdNPwlVFB9zGcz3kuhmBO6U3oU+UQjsue0i8ayLKpgBcm+hcXPMVSGUN9d+pvJ6+VQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"db130298ea0cadd4083c776c4dac0409d34fc2554507dcc6733de4ba19813ba537a14f94423b2e7b48bc6b22caa6005c9be85c5cf31548650df5dfa9bc9ebe55\",\"name\":\"dir-compare\",\"version\":\"4.2.0\"},\"dmg-builder-26.15.7.tgz\":{\"integrity\":\"rfo1YyAWO0L3cZLKCqKQiLYbW6ZXebRUfK0kWp4oXxO7dDFLrf7alRkWImNuXvZVQhs6Idzy++cwOk8I+xPDhw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"adfa356320163b42f77192ca0aa29088b61b5ba65779b4547cad245a9e285f13bb74314badfeda95191622636e5ef655421b3a21dcf2fbe7303a4f08fb13c387\",\"name\":\"dmg-builder\",\"version\":\"26.15.7\"},\"dom-accessibility-api-0.5.16.tgz\":{\"integrity\":\"X7BJ2yElsnOJ30pZF4uIIDfBEVgF4XEBxL9Bxhy6dnrm5hkzqmsWHGTiHqRiITNhMyFLyAiWndIJP7Z1NTteDg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5fb049db2125b27389df4a59178b882037c1115805e17101c4bf41c61cba767ae6e61933aa6b161c64e21ea46221336133214bc808969dd2093fb675353b5e0e\",\"name\":\"dom-accessibility-api\",\"version\":\"0.5.16\"},\"dom-accessibility-api-0.6.3.tgz\":{\"integrity\":\"7ZgogeTnjuHbo+ct10G9Ffp0mif17idi0IyWNVA/wcwcm7NPOD/WEHVP3n7n3MhXqxoIYm8d6MuZohYWIZ4T3w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ed982881e4e78ee1dba3e72dd741bd15fa749a27f5ee2762d08c9635503fc1cc1c9bb34f383fd610754fde7ee7dcc857ab1a08626f1de8cb99a21616219e13df\",\"name\":\"dom-accessibility-api\",\"version\":\"0.6.3\"},\"dot-prop-6.0.1.tgz\":{\"integrity\":\"tE7ztYzXHIeyvc7N+hR3oi7FIbf/NIjVP9hmAt3yMXzrQ072/fpjGLx2GxNxGxUl5V73MEqYzioOMoVhGMJ5cA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b44ef3b58cd71c87b2bdcecdfa1477a22ec521b7ff3488d53fd86602ddf2317ceb434ef6fdfa6318bc761b13711b1525e55ef7304a98ce2a0e32856118c27970\",\"name\":\"dot-prop\",\"version\":\"6.0.1\"},\"dotenv-16.6.1.tgz\":{\"integrity\":\"uBq4egWHTcTt33a72vpSG0z3HnPuIl6NqYcTrKEg2azoEyl2hpW0zqlxysq2pK9HlDIHyHyakeYaYnSAwd8bow==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b81ab87a05874dc4eddf76bbdafa521b4cf71e73ee225e8da98713aca120d9ace81329768695b4cea971cacab6a4af47943207c87c9a91e61a627480c1df1ba3\",\"name\":\"dotenv\",\"version\":\"16.6.1\"},\"dotenv-17.4.2.tgz\":{\"integrity\":\"nI4U3TottKAcAD9LLud4Cb7b2QztQMUEfHbvhTH09bqXTxnSie8WnjPALV/WMCrJZ6UV/qHJ6L03OqO3LcdYZw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9c8e14dd3a2db4a01c003f4b2ee77809bedbd90ced40c5047c76ef8531f4f5ba974f19d289ef169e33c02d5fd6302ac967a515fea1c9e8bd373aa3b72dc75867\",\"name\":\"dotenv\",\"version\":\"17.4.2\"},\"dotenv-expand-11.0.7.tgz\":{\"integrity\":\"zIHwmZPRshsCdpMDyVsqGmgyP0yT8GAgXUnkdAoJisxvf33k7yO6OuoKmcTGuXPWSsm8Oh88nZicRLA9Y0rUeA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"cc81f09993d1b21b02769303c95b2a1a68323f4c93f060205d49e4740a098acc6f7f7de4ef23ba3aea0a99c4c6b973d64ac9bc3a1f3c9d989c44b03d634ad478\",\"name\":\"dotenv-expand\",\"version\":\"11.0.7\"},\"dunder-proto-1.0.1.tgz\":{\"integrity\":\"KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"28837f9c3241411717c3430b561644f62407986ebca80548060f42aa65188e64088608a3f54e4c16faea9142f915bb72cb366e39e3add3375e45ee1463b72df8\",\"name\":\"dunder-proto\",\"version\":\"1.0.1\"},\"duplexer2-0.1.4.tgz\":{\"integrity\":\"asLFVfWWtJ90ZyOUHMqk7/S2w2guQKxUI2itj3d92ADHhxUSbCMGi1f1cBcJ7xM1To+pE/Khbwo1yuNbMEPKeA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6ac2c555f596b49f746723941ccaa4eff4b6c3682e40ac542368ad8f777dd800c78715126c23068b57f5701709ef13354e8fa913f2a16f0a35cae35b3043ca78\",\"name\":\"duplexer2\",\"version\":\"0.1.4\"},\"duplexify-4.1.3.tgz\":{\"integrity\":\"M3BmBhwJRZsSx38lZyhE53Csddgzl5R7xGJNk7CVddZD6CcmwMCH8J+7AprIrQKH7TonKxaCjcv27Qmf+sQ+oA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"337066061c09459b12c77f25672844e770ac75d83397947bc4624d93b09575d643e82726c0c087f09fbb029ac8ad0287ed3a272b16828dcbf6ed099ffac43ea0\",\"name\":\"duplexify\",\"version\":\"4.1.3\"},\"ee-first-1.1.1.tgz\":{\"integrity\":\"WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"58cc26f4b851528f9651a44dfaf46e113a86f3d22066985548d91d16079beac4bf1383ab0c837bb78f0201ec121d773a0bc95e7c3f0a29faf9bd8eb56eb425a3\",\"name\":\"ee-first\",\"version\":\"1.1.1\"},\"ejs-3.1.10.tgz\":{\"integrity\":\"UeJmFfOrAQS8OJWPZ4qtgHyWExa088/MtK5UEyoJGFH67cDEXkZSviOiKRCZ4Xij0zxI3JECgYs3oKx+AizQBA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"51e26615f3ab0104bc38958f678aad807c961316b4f3cfccb4ae54132a091851faedc0c45e4652be23a2291099e178a3d33c48dc9102818b37a0ac7e022cd004\",\"name\":\"ejs\",\"version\":\"3.1.10\"},\"electron-43.4.0.tgz\":{\"integrity\":\"3qxGF0CeQbiox5oWV1JlbWGQ1VerbmDhTFqW4sJ8h7uqTHniFYPObXJcDna0DMh32et0fFyKzz0YY8lJv3t5jg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"deac4617409e41b8a8c79a165752656d6190d557ab6e60e14c5a96e2c27c87bbaa4c79e21583ce6d725c0e76b40cc877d9eb747c5c8acf3d1863c949bf7b798e\",\"name\":\"electron\",\"version\":\"43.4.0\"},\"electron-builder-26.15.7.tgz\":{\"integrity\":\"DBpaNzxsPs1BvEblzFoNriSbzsBqDCy/gseIngeEhYzQG1IxfB7Hvc2tBBVmpWE2BTQGP9J1RrAvDT+Vc/uAxg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0c1a5a373c6c3ecd41bc46e5cc5a0dae249bcec06a0c2cbf82c7889e0784858cd01b52317c1ec7bdcdad041566a561360534063fd27546b02f0d3f9573fb80c6\",\"name\":\"electron-builder\",\"version\":\"26.15.7\"},\"electron-builder-squirrel-windows-26.15.7.tgz\":{\"integrity\":\"B4uvn2NzFSuf084udWqugludFull6CRJiWe2dLzMnZLl6G5hdAGk0fsBMGlBSpKjvQCJn8IPc+S7OnJ+GXqwLA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"078baf9f6373152b9fd3ce2e756aae825b9d16e965e824498967b674bccc9d92e5e86e617401a4d1fb013069414a92a3bd00899fc20f73e4bb3a727e197ab02c\",\"name\":\"electron-builder-squirrel-windows\",\"version\":\"26.15.7\"},\"electron-liquid-glass-1.1.1.tgz\":{\"integrity\":\"AfPxcu6RJYxlsW2sjgjDEON0rVOjhh5QYM6ur5hsfILQmfY5ewHCWJZJZoDsQxhjeW1DAhbRbvB79IvgW4ansA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"01f3f172ee91258c65b16dac8e08c310e374ad53a3861e5060ceaeaf986c7c82d099f6397b01c25896496680ec431863796d430216d16ef07bf48be05b86a7b0\",\"name\":\"electron-liquid-glass\",\"version\":\"1.1.1\"},\"electron-publish-26.15.3.tgz\":{\"integrity\":\"g/2bn8YTavY4cuS5F+jOS7zmZbXXBV8KZ8yHKfJjFPoKtzBqrpCdNPxBd3tqdBwP7BVd0lGzf7Bk2s0KesWZ4Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"83fd9b9fc6136af63872e4b917e8ce4bbce665b5d7055f0a67cc8729f26314fa0ab7306aae909d34fc41777b6a741c0fec155dd251b37fb064dacd0a7ac599e1\",\"name\":\"electron-publish\",\"version\":\"26.15.3\"},\"electron-to-chromium-1.5.408.tgz\":{\"integrity\":\"SLoprcYpJ/OH2v2ps0+N5biv9H4/KBT3+YmmDew64TwK5y9j2wv7pMOFY7IorVkyMtEyLSCRlXKLsNlakeAlPw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"48ba29adc62927f387dafda9b34f8de5b8aff47e3f2814f7f989a60dec3ae13c0ae72f63db0bfba4c38563b228ad593232d1322d209195728bb0d95a91e0253f\",\"name\":\"electron-to-chromium\",\"version\":\"1.5.408\"},\"electron-updater-6.8.9.tgz\":{\"integrity\":\"ZhVxM9iGONUpZGI1FxdMRgJjUFXi7AYGVa5PwKlO1tV1/4zDxQmfKpXOHVztKrd6L9rLcFjERvi1Mf2vxyTkig==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"66157133d88638d52964623517174c4602635055e2ec060655ae4fc0a94ed6d575ff8cc3c5099f2a95ce1d5ced2ab77a2fdacb7058c446f8b531fdafc724e48a\",\"name\":\"electron-updater\",\"version\":\"6.8.9\"},\"electron-winstaller-5.4.0.tgz\":{\"integrity\":\"bO3y10YikuUwUuDUQRM4KfwNkKhnpVO7IPdbsrejwN9/AABJzzTQ4GeHwyzNSrVO+tEH3/Np255a3sVZpZDjvg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6cedf2d7462292e53052e0d441133829fc0d90a867a553bb20f75bb2b7a3c0df7f000049cf34d0e06787c32ccd4ab54efad107dff369db9e5adec559a590e3be\",\"name\":\"electron-winstaller\",\"version\":\"5.4.0\"},\"elkjs-0.12.0.tgz\":{\"integrity\":\"YZcKynxVxYoKIOEpywEPwCFdg+BTbxQRNf3pbwdDCvc8O3kQD8bmIwSxKU1eOTVc4Xo+VG9Te+575mlfvOrhEQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"61970aca7c55c58a0a20e129cb010fc0215d83e0536f141135fde96f07430af73c3b79100fc6e62304b1294d5e39355ce17a3e546f537bee7be6695fbceae111\",\"name\":\"elkjs\",\"version\":\"0.12.0\"},\"emoji-regex-10.6.0.tgz\":{\"integrity\":\"toUI84YS5YmxW219erniWD0CIVOo46xGKColeNQRgOzDorgBi1v4D71/OFzgD9GO2UGKIv1C3Sp8DAn0+j5w7A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b68508f38612e589b15b6d7d7ab9e2583d022153a8e3ac46282a2578d41180ecc3a2b8018b5bf80fbd7f385ce00fd18ed9418a22fd42dd2a7c0c09f4fa3e70ec\",\"name\":\"emoji-regex\",\"version\":\"10.6.0\"},\"emoji-regex-8.0.0.tgz\":{\"integrity\":\"MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3128d8cdc58d380d1ec001e9cf4331a5816fc20eb28f2d4d1b7c6d7a8ab3eb8e150a8fd13e09ebd7f186b7e89cde2253cd0f04bb74dd335e126b09d5526184e8\",\"name\":\"emoji-regex\",\"version\":\"8.0.0\"},\"encodeurl-2.0.0.tgz\":{\"integrity\":\"Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4349fd1d18b89ba26e188575785966bc907b644571bbddc8accca232c182d25acc24c5b3460c7a586aaec9f4206556f7d6f8468179df98f34d5e6c673a4441ae\",\"name\":\"encodeurl\",\"version\":\"2.0.0\"},\"end-of-stream-1.4.5.tgz\":{\"integrity\":\"ooEGc6HP26xXq/N+GCGOT0JKCLDGrq2bQUZrQ7gyrJiZANJ/8YDTxTpQBXGMn+WbIQXNVpyWymm7KYVICQnyOg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a2810673a1cfdbac57abf37e18218e4f424a08b0c6aead9b41466b43b832ac989900d27ff180d3c53a5005718c9fe59b2105cd569c96ca69bb2985480909f23a\",\"name\":\"end-of-stream\",\"version\":\"1.4.5\"},\"enhanced-resolve-5.24.5.tgz\":{\"integrity\":\"L1l8TNvomm6UVW5B253AGxQagSQr+vGwhMlrrfRS2qmhx46AMpMVJKQYLvWYbysTMY8VoicOvzHzoHMbyzB+4A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2f597c4cdbe89a6e94556e41db9dc01b141a81242bfaf1b084c96badf452daa9a1c78e8032931524a4182ef5986f2b13318f15a2270ebf31f3a0731bcb307ee0\",\"name\":\"enhanced-resolve\",\"version\":\"5.24.5\"},\"enquirer-2.4.1.tgz\":{\"integrity\":\"rRqJg/6gd538VHvR3PSrdRBb/1Vy2YfzHqzvbhGIQpDRKIa4FgV/54b5Q1xYSxOOwKvjXweS26E0Q+nAMwp2pQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ad1a8983fea0779dfc547bd1dcf4ab75105bff5572d987f31eacef6e11884290d12886b816057fe786f9435c584b138ec0abe35f0792dba13443e9c0330a76a5\",\"name\":\"enquirer\",\"version\":\"2.4.1\"},\"entities-8.0.0.tgz\":{\"integrity\":\"zwfzJecQ/Uej6tusMqwAqU/6KL2XaB2VZ2Jg54Je6ahNBGNH6Ek6g3jjNCF0fG9EWQKGZNddNjU5F1ZQn/sBnA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"cf07f325e710fd47a3eadbac32ac00a94ffa28bd97681d95676260e7825ee9a84d046347e8493a8378e33421747c6f4459028664d75d3635391756509ffb019c\",\"name\":\"entities\",\"version\":\"8.0.0\"},\"env-paths-2.2.1.tgz\":{\"integrity\":\"+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"fa1d6590b2a164c4d88e8835544a49346ecd64959cb9cd830e4feab2a49345108e5e22e3790d5dd7fb9dad41a1a8cc5480097028d67471fdaea9a9f918bb92d8\",\"name\":\"env-paths\",\"version\":\"2.2.1\"},\"env-paths-3.0.0.tgz\":{\"integrity\":\"dtJUTepzMW3Lm/NPxRf3wP4642UWhjL2sQxc+ym2YMj1m/H2zDNQOlezafzkHwn6sMstjHTwG6iQQsctDW/b1A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"76d2544dea73316dcb9bf34fc517f7c0fe3ae365168632f6b10c5cfb29b660c8f59bf1f6cc33503a57b369fce41f09fab0cb2d8c74f01ba89042c72d0d6fdbd4\",\"name\":\"env-paths\",\"version\":\"3.0.0\"},\"err-code-2.0.3.tgz\":{\"integrity\":\"2bmlRpNKBxT/CRmPOlyISQpNj+qSeYvcym/uT0Jx2bMOlKLtSy1ZmLuVxSEKKyor/N5yhvp/ZiG1oE3DEYMSFA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d9b9a546934a0714ff09198f3a5c88490a4d8fea92798bdcca6fee4f4271d9b30e94a2ed4b2d5998bb95c5210a2b2a2bfcde7286fa7f6621b5a04dc311831214\",\"name\":\"err-code\",\"version\":\"2.0.3\"},\"error-ex-1.3.4.tgz\":{\"integrity\":\"sqQamAnR14VgCr1A618A3sGrygcpK+HEbenA/HiEAkkUwcZIIB/tgWqHFxWgOyDh4nB4JCRimh79dR5Ywc9MDQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b2a41a9809d1d785600abd40eb5f00dec1abca07292be1c46de9c0fc7884024914c1c648201fed816a871715a03b20e1e270782424629a1efd751e58c1cf4c0d\",\"name\":\"error-ex\",\"version\":\"1.3.4\"},\"es-define-property-1.0.1.tgz\":{\"integrity\":\"e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7b79d17e07d4678acd18bdb7da05205f4e90372c9ecf4e0a76316b17e2d34683979ab3a014a0e0e0109db235bc1274faf5ea9d606991a49c223d560dac2696de\",\"name\":\"es-define-property\",\"version\":\"1.0.1\"},\"es-errors-1.3.0.tgz\":{\"integrity\":\"Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"65fe47d8ac6ddb18d3bdb26f3f66562c4202c40ea3fa1026333225ca9cb8c5c060d6f2959f1f3d5b2d066d2fa47f9730095145cdd0858765d20853542d2e9cb3\",\"name\":\"es-errors\",\"version\":\"1.3.0\"},\"es-module-lexer-2.3.2.tgz\":{\"integrity\":\"poHGpORABojJJucnV9KbOavETW8lBVnphkW77ER5/BQ5Fz7oXSoCNek7IH3vR5nRjdsEz926ibFYX8KtLQmdyw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a681c6a4e4400688c926e72757d29b39abc44d6f250559e98645bbec4479fc1439173ee85d2a0235e93b207def4799d18ddb04cfddba89b1585fc2ad2d099dcb\",\"name\":\"es-module-lexer\",\"version\":\"2.3.2\"},\"es-object-atoms-1.1.2.tgz\":{\"integrity\":\"HWcBoN6NileqtSydK2FqHbS/LoDd2pqrnQHLyJzBj4kOp/ky2MWMN694xOfkK8/SnUsW2DH7EfyVlydKCsm1Zw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1d6701a0de8d8a57aab52c9d2b616a1db4bf2e80ddda9aab9d01cbc89cc18f890ea7f932d8c58c37af78c4e7e42bcfd29d4b16d831fb11fc9597274a0ac9b567\",\"name\":\"es-object-atoms\",\"version\":\"1.1.2\"},\"es-set-tostringtag-2.1.0.tgz\":{\"integrity\":\"j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8fabd6cdfac655fc97c607be3b4c79b21e9cbf10288346bfe1175dd8adfacc2315e5e27effeb4e0278113bc70e0cc3566d545d5659866502f6612df247c6c850\",\"name\":\"es-set-tostringtag\",\"version\":\"2.1.0\"},\"es-toolkit-1.50.0.tgz\":{\"integrity\":\"OyZKhUVvEep9ITEiwHn8GKnMRQIVqoSIX7WnRbkWgJkllCujilqP2rD0u979tkl8wqyc8ICwlc1UBVv/Sl1G6w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3b264a85456f11ea7d213122c079fc18a9cc450215aa84885fb5a745b916809925942ba38a5a8fdab0f4bbdefdb6497cc2ac9cf080b095cd54055bff4a5d46eb\",\"name\":\"es-toolkit\",\"version\":\"1.50.0\"},\"es6-error-4.1.1.tgz\":{\"integrity\":\"Um/+FxMr9CISWh0bi5Zv0iOD+4cFh5qLeks1qhAopKVAJw3drgKbKySikp7wGhDL0HPeaja0P5ULZrxLkniUVg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"526ffe17132bf422125a1d1b8b966fd22383fb8705879a8b7a4b35aa1028a4a540270dddae029b2b24a2929ef01a10cbd073de6a36b43f950b66bc4b92789456\",\"name\":\"es6-error\",\"version\":\"4.1.1\"},\"esbuild-0.28.2.tgz\":{\"integrity\":\"HKVLS8dvII+xoKW9kmqxbRKrnWEXfJJr/FZhhJmiqIB0e053QNYFqOBouTMO/k5sID4MvCiUCvv8b9M4h32wIA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1ca54b4bc76f208fb1a0a5bd926ab16d12ab9d61177c926bfc56618499a2a880747b4e7740d605a8e068b9330efe4e6c203e0cbc28940afbfc6fd338877db020\",\"name\":\"esbuild\",\"version\":\"0.28.2\"},\"escalade-3.2.0.tgz\":{\"integrity\":\"WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5948f6aa5c5a42d3b883a3eae5cdbd193716183c9df22b4bf334e58a98040b3dc97ac02288e2a8b5df0953aa2d0773c00a01bac64254c9585ba0c4be6e37bf8c\",\"name\":\"escalade\",\"version\":\"3.2.0\"},\"escape-html-1.0.3.tgz\":{\"integrity\":\"NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3624aea59e0e7ae1b0afaf251887b29bf92c219309a1d506392099fc54a74f172b7a46efaab81d53194938ca628da299563009ad6ac6b3fe89cbc38cbb28fda3\",\"name\":\"escape-html\",\"version\":\"1.0.3\"},\"escape-string-regexp-4.0.0.tgz\":{\"integrity\":\"TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4eda5c349dd7033c771aaf2c591cc96956a346cd2e57103660091d6f58e6d9890fcf81ba7a05050320379f9bed10865e7cf93959ae145db2ae4b97ca90959d80\",\"name\":\"escape-string-regexp\",\"version\":\"4.0.0\"},\"esprima-4.0.1.tgz\":{\"integrity\":\"eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"786b85170ed4a5d6be838a7e407be75b44724d7fd255e2410ccfe00ad30044ed1c2ee4f61dc10a9d33ef86357a6867aaac207fb1b368a742acce6d23b1a594e0\",\"name\":\"esprima\",\"version\":\"4.0.1\"},\"estree-walker-3.0.3.tgz\":{\"integrity\":\"7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ed150a7d781230c933b7a66e5e6a9aa4ebab2c63cf7e08fa97db9167b9511a896f934cb6ca871cdf92dd731282e4f419767d8332a8a8010d8da1672b4ca9a6ea\",\"name\":\"estree-walker\",\"version\":\"3.0.3\"},\"etag-1.8.1.tgz\":{\"integrity\":\"aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6882f9171ee66b055adf4d1a976067104e2236fa35a844f12eb3c8fe8d392fbcfa828edf0b0d49e844266cae05989d804bb920545fca1195ae7c17dd0a531c3e\",\"name\":\"etag\",\"version\":\"1.8.1\"},\"event-target-shim-5.0.1.tgz\":{\"integrity\":\"i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8bfd976e74b3feec51094ebe35d54980a5834cce36efe32a61b910cc3df6d43b8240952a3ae24a200d08336f96db1b581dd28e999e1d47a7c4c6c7784972fe59\",\"name\":\"event-target-shim\",\"version\":\"5.0.1\"},\"eventemitter3-5.0.4.tgz\":{\"integrity\":\"mlsTRyGaPBjPedk6Bvw+aqbsXDtoAyAzm5MO7JgU+yVRyMQ5O8bD4Kcci7BS85f93veegeCPkL8R4GLClnjLFw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9a5b1347219a3c18cf79d93a06fc3e6aa6ec5c3b680320339b930eec9814fb2551c8c4393bc6c3e0a71c8bb052f397fddef79e81e08f90bf11e062c29678cb17\",\"name\":\"eventemitter3\",\"version\":\"5.0.4\"},\"eventsource-3.0.7.tgz\":{\"integrity\":\"CRT1WTyuQoD771GW56XEZFQ/ZoSfWid1alKGDYMmkt2yl8UXrVR4pspqWNEcqKvVIzg6PAltWjxcSSPrboA4iA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0914f5593cae4280fbef5196e7a5c464543f66849f5a27756a52860d832692ddb297c517ad5478a6ca6a58d11ca8abd523383a3c096d5a3c5c4923eb6e803888\",\"name\":\"eventsource\",\"version\":\"3.0.7\"},\"eventsource-parser-3.1.1.tgz\":{\"integrity\":\"EKN1vKAMcZ8MlYMpaNuxN6R9yakzH6uajHcHVTqWJzvu5pWw9DyhbP35HH8MVBQ+dZjAfDxk+A8NiR9KWaXiyQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"10a375bca00c719f0c95832968dbb137a47dc9a9331fab9a8c7707553a96273beee695b0f43ca16cfdf91c7f0c54143e7598c07c3c64f80f0d891f4a59a5e2c9\",\"name\":\"eventsource-parser\",\"version\":\"3.1.1\"},\"execa-5.1.1.tgz\":{\"integrity\":\"8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f2e4a9659a1c01944100f20420d263dcba3d1f21a2b6595ccdcdbb121e586288e3305327f321cc0cc6941c4d89a9fab4e43ff0b9cc08e091944725edd6f721ca\",\"name\":\"execa\",\"version\":\"5.1.1\"},\"execa-9.6.1.tgz\":{\"integrity\":\"9Be3ZoN4LmYR90tUoVu2te2BsbzHfhJyfEiAVfz7N5/zv+jduIfLrV2xdQXOHbaD6KgpGdO9PRPM1Y4Q9QkPkA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f417b76683782e6611f74b54a15bb6b5ed81b1bcc77e12727c488055fcfb379ff3bfe8ddb887cbad5db17505ce1db683e8a82919d3bd3d13ccd58e10f5090f90\",\"name\":\"execa\",\"version\":\"9.6.1\"},\"expect-type-1.4.0.tgz\":{\"integrity\":\"KfYbmpRm0VbLjEvVa9yGwCi9GI34xvi7A/HXYWQO65CSD2u3MczUJSuwXKFIxlGsgBQizV9q5J9NHj4VG0n+pA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"29f61b9a9466d156cb8c4bd56bdc86c028bd188df8c6f8bb03f1d761640eeb90920f6bb731ccd4252bb05ca148c651ac801422cd5f6ae49f4d1e3e151b49fea4\",\"name\":\"expect-type\",\"version\":\"1.4.0\"},\"exponential-backoff-3.1.3.tgz\":{\"integrity\":\"ZgEeZXj30q+I0EN+CbSSpIyPaJ5HVQD18Z1m+u1FXbAeT94mr1zw50q4q6jiiC447Nl/YTcIYSAftiGqetwXCA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"66011e6578f7d2af88d0437e09b492a48c8f689e475500f5f19d66faed455db01e4fde26af5cf0e74ab8aba8e2882e38ecd97f61370861201fb621aa7adc1708\",\"name\":\"exponential-backoff\",\"version\":\"3.1.3\"},\"express-5.2.1.tgz\":{\"integrity\":\"hIS4idWWai69NezIdRt2xFVofaF4j+6INOpJlVOLDO8zXGpUVEVzIYk12UUi2JzjEzWL3IOAxcTubgz9Po0yXw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8484b889d5966a2ebd35ecc8751b76c455687da1788fee8834ea4995538b0cef335c6a54544573218935d94522d89ce313358bdc8380c5c4ee6e0cfd3e8d325f\",\"name\":\"express\",\"version\":\"5.2.1\"},\"express-rate-limit-8.6.2.tgz\":{\"integrity\":\"YH4ru+eOJxQABscKFfRCy9R7x9QFGdezclVMwwgFFndzS2Xnm0uo6B0ABZsLhcpeptGv2qvuJVWlQr9gQZoC3A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"607e2bbbe78e27140006c70a15f442cbd47bc7d40519d7b372554cc308051677734b65e79b4ba8e81d00059b0b85ca5ea6d1afdaabee2555a542bf60419a02dc\",\"name\":\"express-rate-limit\",\"version\":\"8.6.2\"},\"fast-copy-4.0.4.tgz\":{\"integrity\":\"eVAiWVNPSEGIzDl5yPuLrx8fNMogScXvD9xp1Kzd41FjRIz2I3sSIcxsFeM5EzFfHAfobdvs8ZySffUopljvIA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"79502259534f484188cc3979c8fb8baf1f1f34ca2049c5ef0fdc69d4acdde35163448cf6237b1221cc6c15e33913315f1c07e86ddbecf19c927df528a658ef20\",\"name\":\"fast-copy\",\"version\":\"4.0.4\"},\"fast-decode-uri-component-1.0.1.tgz\":{\"integrity\":\"WKgKWg5eUxvRZGwW8FvfbaH7AXSh2cL+3j5fMGzUMCxWBJ3dV3a7Wz8y2f/uQ0e3B6WmodD3oS54jTQ9HVTIIg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"58a80a5a0e5e531bd1646c16f05bdf6da1fb0174a1d9c2fede3e5f306cd4302c56049ddd5776bb5b3f32d9ffee4347b707a5a6a1d0f7a12e788d343d1d54c822\",\"name\":\"fast-decode-uri-component\",\"version\":\"1.0.1\"},\"fast-deep-equal-3.1.3.tgz\":{\"integrity\":\"f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7f7a90f68432f63d808417bf1fd542f75c0b98a042094fe00ce9ca340606e61b303bb04b2a3d3d1dce4760dcfd70623efb19690c22200da8ad56cd3701347ce1\",\"name\":\"fast-deep-equal\",\"version\":\"3.1.3\"},\"fast-glob-3.3.3.tgz\":{\"integrity\":\"7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ecca6d2fc53472a705773233c0e4c7a22957f71e41acdab27bb67f2ee0bb9023118a8d44312caa44adc1100503eec5d1ab8893e00cd356e65d8604364c2bd82e\",\"name\":\"fast-glob\",\"version\":\"3.3.3\"},\"fast-json-stringify-7.0.1.tgz\":{\"integrity\":\"eRSayARSbbwlBjpP4vnTTIRD5QPcIrmihPxDeN1DtKnHPg66UuJLx+8hlK1kaFdjvzyQ/dzALoi4vwAQ+T+iZA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"79149ac804526dbc25063a4fe2f9d34c8443e503dc22b9a284fc4378dd43b4a9c73e0eba52e24bc7ef2194ad64685763bf3c90fddcc02e88b8bf0010f93fa264\",\"name\":\"fast-json-stringify\",\"version\":\"7.0.1\"},\"fast-querystring-1.1.2.tgz\":{\"integrity\":\"g6KuKWmFXc0fID8WWH0jit4g0AGBoJhCkJMb1RmbsSEUNvQ+ZC8D6CUZ+GtF8nMzSPXnhiePyyqqipzNNEnHjg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"83a2ae2969855dcd1f203f16587d238ade20d00181a0984290931bd5199bb1211436f43e642f03e82519f86b45f2733348f5e786278fcb2aaa8a9ccd3449c78e\",\"name\":\"fast-querystring\",\"version\":\"1.1.2\"},\"fast-safe-stringify-2.1.1.tgz\":{\"integrity\":\"W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5be28973676620b94fa650ff1f82bd97d2dc00701f3ed3fa058f38b952d743a12f733f4b720df7636cf52156e54fac5d639e0f5d854712ffb45a9abc228eb390\",\"name\":\"fast-safe-stringify\",\"version\":\"2.1.1\"},\"fast-uri-3.1.5.tgz\":{\"integrity\":\"gHwA1O9LDIcKunMKhObS/HimwtehO1nPUECKAu5TpKgaO19fcWEl4bliWe1jWxVFvIXztJjjQ4L8XQ1EU9f7Jw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"807c00d4ef4b0c870aba730a84e6d2fc78a6c2d7a13b59cf50408a02ee53a4a81a3b5f5f716125e1b96259ed635b1545bc85f3b498e34382fc5d0d4453d7fb27\",\"name\":\"fast-uri\",\"version\":\"3.1.5\"},\"fast-uri-4.1.2.tgz\":{\"integrity\":\"TyGmBcbDTZXcb2cj5MV89DrF42DKvb3y5DDUNh95iO+IMeAzMkVSxK1PZRrRIpc9yg8U2GhGdbofNa0LS/a4Bw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4f21a605c6c34d95dc6f6723e4c57cf43ac5e360cabdbdf2e430d4361f7988ef8831e033324552c4ad4f651ad122973dca0f14d8684675ba1f35ad0b4bf6b807\",\"name\":\"fast-uri\",\"version\":\"4.1.2\"},\"fastify-5.12.0.tgz\":{\"integrity\":\"A3RNEaDIHWaxFW8n8rNJaW1wQ+XAXuoU71llfUQJjuh5WaYLmKfRhhanaJBOx8m2EBPQkR6sDBovYdHNe9F6rA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"03744d11a0c81d66b1156f27f2b349696d7043e5c05eea14ef59657d44098ee87959a60b98a7d18616a768904ec7c9b61013d0911eac0c1a2f61d1cd7bd17aac\",\"name\":\"fastify\",\"version\":\"5.12.0\"},\"fastify-plugin-6.0.0.tgz\":{\"integrity\":\"fZOty7z3O7vOliF6d8bHE3wiEh1KcNnKEQensSgTk9C1DvN6nRLS++XVd86v33Hw/8u9Un8A1zDrQ8ujcQDHEg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7d93adcbbcf73bbbce96217a77c6c7137c22121d4a70d9ca1107a7b1281393d0b50ef37a9d12d2fbe5d577ceafdf71f0ffcbbd527f00d730eb43cba37100c712\",\"name\":\"fastify-plugin\",\"version\":\"6.0.0\"},\"fastq-1.20.1.tgz\":{\"integrity\":\"GGToxJ/w1x32s/D2EKND7kTil4n8OVk/9mycTc4VDza13lOvpUZTGX3mFSCtV9ksdGBVzvsyAVLM6mHFThxXxw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1864e8c49ff0d71df6b3f0f610a343ee44e29789fc39593ff66c9c4dce150f36b5de53afa54653197de61520ad57d92c746055cefb320152ccea61c54e1c57c7\",\"name\":\"fastq\",\"version\":\"1.20.1\"},\"fdir-6.5.0.tgz\":{\"integrity\":\"tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b486d8b596ee70eb340511aa3c992c84951874bf920c7edd54cf208f2f84469dd60148cb105244fb4da46a7c87b708d63a7c2b298062c0098cd29e242c90275e\",\"name\":\"fdir\",\"version\":\"6.5.0\"},\"fetch-blob-3.2.0.tgz\":{\"integrity\":\"7yAQpD2UMJzLi1Dqv7qFYnPbaPx7ZfFK6PiIxQ4PfkGPyNyl2Ugx+a/umUonmKqjhM4DnfbMvdX6otXq83soQQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ef2010a43d94309ccb8b50eabfba856273db68fc7b65f14ae8f888c50e0f7e418fc8dca5d94831f9afee994a2798aaa384ce039df6ccbdd5faa2d5eaf37b2841\",\"name\":\"fetch-blob\",\"version\":\"3.2.0\"},\"figures-6.1.0.tgz\":{\"integrity\":\"d+l3qxjSesT4V7v2fh+QnmFnUWv9lSpjarhShNTgBOfA0ttejbQUAlHLitbjkoRiDulW0OPoQPYIGhIC8ohejg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"77e977ab18d27ac4f857bbf67e1f909e6167516bfd952a636ab85284d4e004e7c0d2db5e8db4140251cb8ad6e39284620ee956d0e3e840f6081a1202f2885e8e\",\"name\":\"figures\",\"version\":\"6.1.0\"},\"file-uri-to-path-1.0.0.tgz\":{\"integrity\":\"0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d19b7eb372fb55fd5b8b0599dbd6804625582f1ee23069c4525f71df77db07f8f78d1f35bbf3b62dba8af819b508348d0ca56d27f623c18ed351de5291e2d02f\",\"name\":\"file-uri-to-path\",\"version\":\"1.0.0\"},\"filelist-1.0.6.tgz\":{\"integrity\":\"5giy2PkLYY1cP39p17Ech+2xlpTRL9HLspOfEgm0L6CwBXBTgsK5ou0JtzYuepxkaQ/tvhCFIJ5uXo0OrM2DxA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e608b2d8f90b618d5c3f7f69d7b11c87edb19694d12fd1cbb2939f1209b42fa0b005705382c2b9a2ed09b7362e7a9c64690fedbe1085209e6e5e8d0eaccd83c4\",\"name\":\"filelist\",\"version\":\"1.0.6\"},\"fill-range-7.1.1.tgz\":{\"integrity\":\"YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"62c1a97b75872caf19622e2d583836272dde6d1cf6ad7a300f19e57786e4401d3471cff5670f405a70b48bdced0c98ad8afb50bda23d29a2f22ab73e8415b4ca\",\"name\":\"fill-range\",\"version\":\"7.1.1\"},\"finalhandler-2.1.1.tgz\":{\"integrity\":\"S8KoZgRZN+a5rNwqTxlZZePjT/4cnm0ROV70LedRHZ0p8u9fRID0hJUZQpkKLzro8LfmC8sx23bY6tVNxv8pQA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4bc2a866045937e6b9acdc2a4f195965e3e34ffe1c9e6d11395ef42de7511d9d29f2ef5f4480f484951942990a2f3ae8f0b7e60bcb31db76d8ead54dc6ff2940\",\"name\":\"finalhandler\",\"version\":\"2.1.1\"},\"find-my-way-9.8.0.tgz\":{\"integrity\":\"JtyUgATO7qxRp2zKhrmWof74Mqxc1ikbwpwMY97p8ipuTj2QtreA4gK2JNAF6SOqqHnYYkwMUvsgQVi2AJxIyw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"26dc948004ceeeac51a76cca86b996a1fef832ac5cd6291bc29c0c63dee9f22a6e4e3d90b6b780e202b624d005e923aaa879d8624c0c52fb204158b6009c48cb\",\"name\":\"find-my-way\",\"version\":\"9.8.0\"},\"find-up-3.0.0.tgz\":{\"integrity\":\"1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d720fa4662c8d5705fc6e82f391c25724e9fef9b582fe891d23ab0b0eacec4c672198a94b83849d25e005dd3b5897fc54ecf5c040304935816484c759126f296\",\"name\":\"find-up\",\"version\":\"3.0.0\"},\"form-data-4.0.6.tgz\":{\"integrity\":\"vKatAh4SlVfgbv+YtmhiRjhEMJsYpsG1Y2rMQtR+SVSbytsSD1YGzDIcrAJmdFec88u/+VoGmxnl+80gL1tRCQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"bca6ad021e129557e06eff98b66862463844309b18a6c1b5636acc42d47e49549bcadb120f5606cc321cac026674579cf3cbbff95a069b19e5fbcd202f5b5109\",\"name\":\"form-data\",\"version\":\"4.0.6\"},\"formdata-polyfill-4.0.10.tgz\":{\"integrity\":\"buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6ee7b01f332f60bdbd8dd7904d520b79c49a64a9edfd12568e8642179396eb467aeff1a648b06438533baa1d4f237cc536d25b6992f9790bb5bcb7daccec23e2\",\"name\":\"formdata-polyfill\",\"version\":\"4.0.10\"},\"forwarded-0.2.0.tgz\":{\"integrity\":\"buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6ee446d1fa41b511d24c238049eea10f6e7cb44b9b16844b6f864d03a3713151cdc3680e7301e8f70c9a6e5ccccce039cfdc40f4bd4a36393f36de8c4fd698a3\",\"name\":\"forwarded\",\"version\":\"0.2.0\"},\"fresh-2.0.0.tgz\":{\"integrity\":\"Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"471fd6c9c67ad0739aa8b2808ba70744a288ef3c566c9df53219ed9adc0ca1a4de17b5c51fd861069f2f21368c89d7e58d143a7985822a46932beca45491cfd8\",\"name\":\"fresh\",\"version\":\"2.0.0\"},\"fs-extra-10.1.0.tgz\":{\"integrity\":\"oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a115c0a6ae78113463e1e3221731a71d61b2fb3a39adab9d8eec4dd1bf07eecfd1536a16d16becc7d3b400244dfe446af44f15bbf45eb24181e68de38be1731d\",\"name\":\"fs-extra\",\"version\":\"10.1.0\"},\"fs-extra-11.3.1.tgz\":{\"integrity\":\"eXvGGwZ5CL17ZSwHWd3bbgk7UUpF6IFHtP57NYYakPvHOs8GDgDe5KJI36jIJzDkJ6eJjuzRA8eBQb6SkKue0g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"797bc61b067908bd7b652c0759dddb6e093b514a45e88147b4fe7b35861a90fbc73acf060e00dee4a248dfa8c82730e427a7898eecd103c78141be9290ab9ed2\",\"name\":\"fs-extra\",\"version\":\"11.3.1\"},\"fs-extra-11.4.0.tgz\":{\"integrity\":\"EQsFzMUJkCKGr1ePqlYADkIUmHW1s3ZXr5Yqy6wbGrfUCphpl2maM/kyOIRA2HpP3AaFQTZXD4ldjek+nccddA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"110b05ccc509902286af578faa56000e42149875b5b37657af962acbac1b1ab7d40a986997699a33f932388440d87a4fdc06854136570f895d8de93e9dc71d74\",\"name\":\"fs-extra\",\"version\":\"11.4.0\"},\"fs-extra-7.0.1.tgz\":{\"integrity\":\"YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6090da0896449c199c6f0d777ef74033d03034e2703b3ac4e29a8ca81ab99c5884a9752a1f094ae01fb7a54c3a24dbdf48fb57d39c451ed632ff59e2d357860b\",\"name\":\"fs-extra\",\"version\":\"7.0.1\"},\"fs-extra-8.1.0.tgz\":{\"integrity\":\"yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ca1950800ea69ce25428eb11505b2025d402be42a1733f2d9591b91c141f45e619cb8e8ec0b718f9989ad26b5d1ec3a8f72fe13fe0b130dd1353d431a0eb46e2\",\"name\":\"fs-extra\",\"version\":\"8.1.0\"},\"fs-extra-9.1.0.tgz\":{\"integrity\":\"hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"85c8376667a94b7d3fec1485a91be8a370ce310bbb223ab13b99c20edfb333d5d68dbdf75a0ef388d4fe42fa9bb9cdfe816a733b4d89b9b5729361b866fa3539\",\"name\":\"fs-extra\",\"version\":\"9.1.0\"},\"fs.realpath-1.0.0.tgz\":{\"integrity\":\"OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"38ed291f694ae9ad2166701d6aee48b731cf23aa5496f23b8cc567c54411b70e28c05db093c94e49a6ed1830933f81a0ae0d8c6c69d63bd5fc2b5b78f9f18c0f\",\"name\":\"fs.realpath\",\"version\":\"1.0.0\"},\"fsevents-2.3.2.tgz\":{\"integrity\":\"xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c62a8c411e3101e1d3b81f6e5a6f9f1517083a02813223813fe7978b24fb8ec8150aad5b915ca0b74d28012a3007b11db6938769a3e02adf35d8ff5a6fe0c328\",\"name\":\"fsevents\",\"version\":\"2.3.2\"},\"fsevents-2.3.3.tgz\":{\"integrity\":\"5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e71a037d7f9f2fb7da0139da82658fa5b16dc21fd1efb5a630caaa1c64bae42defbc1d181eb805f81d58999df8e35b4c8f99fade4d36d765cda09c339617df43\",\"name\":\"fsevents\",\"version\":\"2.3.3\"},\"function-bind-1.1.2.tgz\":{\"integrity\":\"7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ed71cdc47eea5fdc46e66230c6486e993a31fcc21135c3a00ebc56b0cb76a40af6dd61e9e8cad194dec50521690a9afea153b417be38894811f369c931f1b648\",\"name\":\"function-bind\",\"version\":\"1.1.2\"},\"fuzzysort-3.1.0.tgz\":{\"integrity\":\"sR9BNCjBg6LNgwvxlBd0sBABvQitkLzoVY9MYYROQVX/FvfJ4Mai9LsGhDgd8qYdds0bY77VzYd5iuB+v5rwQQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b11f413428c183a2cd830bf1941774b01001bd08ad90bce8558f4c61844e4155ff16f7c9e0c6a2f4bb0684381df2a61d76cd1b63bed5cd87798ae07ebf9af041\",\"name\":\"fuzzysort\",\"version\":\"3.1.0\"},\"gensync-1.0.0-beta.2.tgz\":{\"integrity\":\"3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"de137b35ab2462f3032d0639e609d6dcd43e99eb0401ea53aa583e5446e3ef3cea10c055361cdc19861ea85a3f4e5633e9e42215ca751dcb0264efa71a04bcce\",\"name\":\"gensync\",\"version\":\"1.0.0-beta.2\"},\"get-caller-file-2.0.5.tgz\":{\"integrity\":\"DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0f214fdc133fdd81d340e0942ffc343991d1d25a4a786af1a2d70759ca8d11d9e5b6a1705d57e110143de1e228df801f429a34ac6922e1cc8889fb58d3a87616\",\"name\":\"get-caller-file\",\"version\":\"2.0.5\"},\"get-east-asian-width-1.6.0.tgz\":{\"integrity\":\"QRbvDIbx6YklUe6RxeTeleMR0yv3cYH6PsPZHcnVn7xv7zO1BHN8r0XETu8n6Ye3Q+ahtSarc3WgtNWmehIBfA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4116ef0c86f1e9892551ee91c5e4de95e311d32bf77181fa3ec3d91dc9d59fbc6fef33b504737caf45c44eef27e987b743e6a1b526ab7375a0b4d5a67a12017c\",\"name\":\"get-east-asian-width\",\"version\":\"1.6.0\"},\"get-intrinsic-1.3.0.tgz\":{\"integrity\":\"9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f5f4a349aa2cfdf448548a7ec5226513a95fc21112ecb36d29a08121a987b23af69dad418800493e8d263a38f3f062435116ab9823c6a9a89583999f8dbf7c09\",\"name\":\"get-intrinsic\",\"version\":\"1.3.0\"},\"get-nonce-1.0.1.tgz\":{\"integrity\":\"FJhYRoDaiatfEkUK8HKlicmu/3SGFD51q3itKDGoSTysQJBnfOcxU5GxnhE1E6soB76MbT0MBtnKJuXyAx+96Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1498584680da89ab5f12450af072a589c9aeff7486143e75ab78ad2831a8493cac4090677ce7315391b19e113513ab2807be8c6d3d0c06d9ca26e5f2031fbde9\",\"name\":\"get-nonce\",\"version\":\"1.0.1\"},\"get-own-enumerable-keys-1.0.0.tgz\":{\"integrity\":\"PKsK2FSrQCyxcGHsGrLDcK0lx+0Ke+6e8KFFozA9/fIQLhQzPaRvJFdcz7+Axg3jUH/Mq+NI4xa5u/UT2tQskA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3cab0ad854ab402cb17061ec1ab2c370ad25c7ed0a7bee9ef0a145a3303dfdf2102e14333da46f24575ccfbf80c60de3507fccabe348e316b9bbf513dad42c90\",\"name\":\"get-own-enumerable-keys\",\"version\":\"1.0.0\"},\"get-proto-1.0.1.tgz\":{\"integrity\":\"sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b1349f063a17069f3d26f20a21e7eac3b53608279bb1cef892263a6b0886a202ada1219b823604fc6ffe97db05dcc5853cd73d21ca0e0b83837ca1dfc459a9d2\",\"name\":\"get-proto\",\"version\":\"1.0.1\"},\"get-stdin-10.0.0.tgz\":{\"integrity\":\"eWSePJ4zXFdqz+/Lyfopob4rIcoF/U2XfE8nJc7iZV6lnebWc9k7DoQQpX+2a9jc0AOvBsXvbe5YkjXl/MHbpg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"79649e3c9e335c576acfefcbc9fa29a1be2b21ca05fd4d977c4f2725cee2655ea59de6d673d93b0e8410a57fb66bd8dcd003af06c5ef6dee589235e5fcc1dba6\",\"name\":\"get-stdin\",\"version\":\"10.0.0\"},\"get-stream-5.2.0.tgz\":{\"integrity\":\"nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9c117e175ac06550aefe9eeb8f3800f986f895f617ae997b6ba56626b53cc05f48d422af3ff4303cd6479ce9706d3918e9dbed148cc5312c905db2e84d03d1a4\",\"name\":\"get-stream\",\"version\":\"5.2.0\"},\"get-stream-6.0.1.tgz\":{\"integrity\":\"ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b6ce968beda3de3423aa2ef4c3902537c0c59e44b00be32a9b113374400b076a976585775ff6f50937e03cb18934c7805b174f7d4f053b59acdcd51f68708f62\",\"name\":\"get-stream\",\"version\":\"6.0.1\"},\"get-stream-9.0.1.tgz\":{\"integrity\":\"kVCxPF3vQM/N0B1PmoqVUqgHP+EeVjmZSQn+1oCRPxd2P21P2F19lIgbR3HBosbB1PUhOAoctJnfEn2GbN2eZA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9150b13c5def40cfcdd01d4f9a8a9552a8073fe11e5639994909fed680913f17763f6d4fd85d7d94881b4771c1a2c6c1d4f521380a1cb499df127d866cdd9e64\",\"name\":\"get-stream\",\"version\":\"9.0.1\"},\"glob-13.0.6.tgz\":{\"integrity\":\"Wjlyrolmm8uDpm/ogGyXZXb1Z+Ca2B8NbJwqBVg0axK9GbBeoS7yGV6vjXnYdGm6X53iehEuxxbyiKp8QmN4Vw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5a3972ae89669bcb83a66fe8806c976576f567e09ad81f0d6c9c2a0558346b12bd19b05ea12ef2195eaf8d79d87469ba5f9de27a112ec716f288aa7c42637857\",\"name\":\"glob\",\"version\":\"13.0.6\"},\"glob-7.2.3.tgz\":{\"integrity\":\"nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9c5474ccba54d9809a471c28089bcbe94bc21f6245c85548bf04cbb087f6d40b8794cb240358614dd93e2e5609b4e958b7dbfa76fb330f604646a04bfa240af5\",\"name\":\"glob\",\"version\":\"7.2.3\"},\"glob-parent-5.1.2.tgz\":{\"integrity\":\"AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"00e22049009ea62258c0fdc04671b1fb95674eed870587736c63f8e5e2f0d6faf7cc1def64b7b279dd6c0bd8676dc39cf7f4ab33233944f42b906cf8692f59a3\",\"name\":\"glob-parent\",\"version\":\"5.1.2\"},\"global-agent-3.0.0.tgz\":{\"integrity\":\"PT6XReJ+D07JvGoxQMkT6qji/jVNfX/h364XHZOWeRzy64sSFr+xJ5OX7LI3b4MPQzdL4H8Y8M0xzPpsVMwA8Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3d3e9745e27e0f4ec9bc6a3140c913eaa8e2fe354d7d7fe1dfae171d9396791cf2eb8b1216bfb1279397ecb2376f830f43374be07f18f0cd31ccfa6c54cc00f1\",\"name\":\"global-agent\",\"version\":\"3.0.0\"},\"globalthis-1.0.4.tgz\":{\"integrity\":\"DpLKbNU4WylpxJykQujfCcwYWiV/Jhm50Goo0wrVILAv5jOr9d+H+UR3PhSCD2rCCEIg0uc+G+muBTwD54JhDQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0e92ca6cd5385b2969c49ca442e8df09cc185a257f2619b9d06a28d30ad520b02fe633abf5df87f944773e14820f6ac2084220d2e73e1be9ae053c03e782610d\",\"name\":\"globalthis\",\"version\":\"1.0.4\"},\"gopd-1.2.0.tgz\":{\"integrity\":\"ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"65429187afe4505a0089302d4d83d9277870f70371c7e04804e8a39e51bd3e7ac9b027128ecd70cb20fabc9a5a62d827cc3aca6114aa7f738ee917daf77c6c46\",\"name\":\"gopd\",\"version\":\"1.2.0\"},\"got-11.8.6.tgz\":{\"integrity\":\"6tfZ91bOr7bOXnK7PRDCGBLa1H4U080YHNaAQ2KsMGlLEzRbk44nsZF2E1IeRc3vtJHPVbKCYgdFbaGO2ljd8g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ead7d9f756ceafb6ce5e72bb3d10c21812dad47e14d3cd181cd6804362ac30694b13345b938e27b1917613521e45cdefb491cf55b2826207456da18eda58ddf2\",\"name\":\"got\",\"version\":\"11.8.6\"},\"graceful-fs-4.2.11.tgz\":{\"integrity\":\"RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"45b279fe398570d342703579a3d7939c12c9fc7b33595d0fef76dcf857f89d2feb263f98692e881b288e2f45680585fe9755ab97793ade1fcaac7fa7849d17bd\",\"name\":\"graceful-fs\",\"version\":\"4.2.11\"},\"has-flag-4.0.0.tgz\":{\"integrity\":\"EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1329094ff4352a34d672da698080207d23b4b4a56e6548e180caf5ee4a93ba6325e807efdc421295e53ba99533a170c54c01d30c2e0d3a81bf67153712f94c3d\",\"name\":\"has-flag\",\"version\":\"4.0.0\"},\"has-property-descriptors-1.0.2.tgz\":{\"integrity\":\"55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e7924d2ae216fafab829ed418ce4e333661cb5022f093ec61731f099f64f1a8e709eb82489dd1842d9c095e152aae9999b86b3de7d814be7ab6f2e62a49760ae\",\"name\":\"has-property-descriptors\",\"version\":\"1.0.2\"},\"has-symbols-1.1.0.tgz\":{\"integrity\":\"1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d5c0cd77027625aa2199bdec8383a629a301c2e0b8f2c6278b91d4c360efb02f0b8c64cb2bd87e79bd57e91cae3877b8853d142c25baf22a26863528294aa53d\",\"name\":\"has-symbols\",\"version\":\"1.1.0\"},\"has-tostringtag-1.0.2.tgz\":{\"integrity\":\"NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"36a00307c5633c52ccd95d15bc751ec30c2cc3465605a21d828fa2787b4ade16ac2f3e2a78246361ca9f07a010ac182044aa69285f0be76fd5a9d56c3b8ec397\",\"name\":\"has-tostringtag\",\"version\":\"1.0.2\"},\"hasown-2.0.4.tgz\":{\"integrity\":\"T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4f651b7db044177db089ea5722c3254d6f7e743602eb0321fedfef600e2db8e30aa96cff9f7bebd4d152c508b23fece4da65eca0c03f8bfeea57a2cabadd6dd4\",\"name\":\"hasown\",\"version\":\"2.0.4\"},\"help-me-5.0.0.tgz\":{\"integrity\":\"7xgomUX6ADmcYzFik0HzAxh/73YlKR9bmFzf51CZwR+b6YtzU2m0u49hQCqV6SvlqIqsaxovfwdvbnsw3b/zpg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ef18289945fa00399c6331629341f303187fef7625291f5b985cdfe75099c11f9be98b735369b4bb8f61402a95e92be5a88aac6b1a2f7f076f6e7b30ddbff3a6\",\"name\":\"help-me\",\"version\":\"5.0.0\"},\"hono-4.13.2.tgz\":{\"integrity\":\"JydRilDRkYBQMt9qR9U92mXxmbGqsqSn/IKOrh4e7/gEbn+0zSr8igTu0obwJoNGN4sez28DIql7FBHWydoJpA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2727518a50d191805032df6a47d53dda65f199b1aab2a4a7fc828eae1e1eeff8046e7fb4cd2afc8a04eed286f0268346378b1ecf6f0322a97b1411d6c9da09a4\",\"name\":\"hono\",\"version\":\"4.13.2\"},\"hosted-git-info-4.1.0.tgz\":{\"integrity\":\"kyCuEOWjJqZuDbRHzL8V93NzQhwIB71oFWSyzVo+KPZI+pnQPPxucdkrOZvkLRnrf5URsQM+IJ09Dw29cRALIA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9320ae10e5a326a66e0db447ccbf15f77373421c0807bd681564b2cd5a3e28f648fa99d03cfc6e71d92b399be42d19eb7f9511b1033e209d3d0f0dbd71100b20\",\"name\":\"hosted-git-info\",\"version\":\"4.1.0\"},\"html-encoding-sniffer-6.0.0.tgz\":{\"integrity\":\"CV9TW3Y3f8/wT0BRFc1/KAVQ3TUHiXmaAb6VW9vtiMFf7SLoMd1PdAc4W3KFOFETBJUb90KatHqlsZMWV+R9Gg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"095f535b76377fcff04f405115cd7f280550dd350789799a01be955bdbed88c15fed22e831dd4f7407385b728538511304951bf7429ab47aa5b1931657e47d1a\",\"name\":\"html-encoding-sniffer\",\"version\":\"6.0.0\"},\"html-escaper-2.0.2.tgz\":{\"integrity\":\"H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1f688cb5dd08e0cb7979889aa517480e3a7e5f37a55d0d2d144e094bb605c057af5d73263a9f66c8dad4bc28340fac2cf22aa444f05f28781bc228354a694b7e\",\"name\":\"html-escaper\",\"version\":\"2.0.2\"},\"html-parse-stringify-4.0.1.tgz\":{\"integrity\":\"0zHsZJrK7S3K2aucXWL6ycoYJ/iNtIcFHC/nYQgFklPtrv5LpJctIiSCroWZWeuoXvuyFdzp6KzjJQ+OT5MfFw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d331ec649acaed2dcad9ab9c5d62fac9ca1827f88db487051c2fe76108059253edaefe4ba4972d222482ae859959eba85efbb215dce9e8ace3250f8e4f931f17\",\"name\":\"html-parse-stringify\",\"version\":\"4.0.1\"},\"http-cache-semantics-4.2.0.tgz\":{\"integrity\":\"dTxcvPXqPvXBQpq5dUr6mEMJX4oIEFv6bwom3FDwKRDsuIjjJGANqhBuoAn9c1RQJIdAKav33ED65E2ys+87QQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"753c5cbcf5ea3ef5c1429ab9754afa9843095f8a08105bfa6f0a26dc50f02910ecb888e324600daa106ea009fd73545024874029abf7dc40fae44db2b3ef3b41\",\"name\":\"http-cache-semantics\",\"version\":\"4.2.0\"},\"http-errors-2.0.1.tgz\":{\"integrity\":\"4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e056d17405fe6d2766a3801416e4b458d88fcfc36016dfabf138603569a5ae3423b7543b651f7ecd395c7b6f39f71e0a497af022c69e4ea0e82909ad3fca4b99\",\"name\":\"http-errors\",\"version\":\"2.0.1\"},\"http-proxy-agent-7.0.2.tgz\":{\"integrity\":\"T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4f58240226180d6631dd5e419b2bbb1dc7dcbcbee652b4d688ceb239f6b73c8a6156227f8053dbbe2750faf7aa48e1dc8bf3f105c0da6de50d0b3a4e3832598a\",\"name\":\"http-proxy-agent\",\"version\":\"7.0.2\"},\"http2-wrapper-1.0.3.tgz\":{\"integrity\":\"V+23sDMr12Wnz7iTcDeJr3O6AIxlnvT/bmaAAAP/Xda35C90p9599p0F1eHR/N1KILWSoWVAiOMFjBBXaXSMxg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"57edb7b0332bd765a7cfb893703789af73ba008c659ef4ff6e66800003ff5dd6b7e42f74a7de7df69d05d5e1d1fcdd4a20b592a1654088e3058c105769748cc6\",\"name\":\"http2-wrapper\",\"version\":\"1.0.3\"},\"https-proxy-agent-7.0.6.tgz\":{\"integrity\":\"vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"bcaf4fe7f8947dd97de4023e255c94b88715b5de287efb6b3abdc736d336cb10bd6e731b11da77c74d4e8503678dbf082588b7f159531379815f071fbf2c2e4b\",\"name\":\"https-proxy-agent\",\"version\":\"7.0.6\"},\"human-signals-2.1.0.tgz\":{\"integrity\":\"B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"07814567aabf4f68e1864b2091b116dc706f5887c35bce6c9e44206b0b74ed2ec9e505d393a064355fb4c80799acce50a4c01d625a1c1a89639f4b09fd642417\",\"name\":\"human-signals\",\"version\":\"2.1.0\"},\"human-signals-8.0.1.tgz\":{\"integrity\":\"eKCa6bwnJhvxj14kZk5NCPc6Hb6BdsU9DZcOnmQKSnO1VKrfV0zCvtttPZUsBvjmNDn8rpcJfpwSYnHBjc95MQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"78a09ae9bc27261bf18f5e24664e4d08f73a1dbe8176c53d0d970e9e640a4a73b554aadf574cc2bedb6d3d952c06f8e63439fcae97097e9c126271c18dcf7931\",\"name\":\"human-signals\",\"version\":\"8.0.1\"},\"i18next-26.3.6.tgz\":{\"integrity\":\"Bu5Z2nAXgfVyM8xvW3jk9EKRIuX37PudsrBViThNFx7CR7aaYTpP01cxNB/E4c4UUzTDiAZRstEhsRfPOL/8xA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"06ee59da701781f57233cc6f5b78e4f4429122e5f7ecfb9db2b05589384d171ec247b69a613a4fd35731341fc4e1ce145334c3880651b2d121b117cf38bffcc4\",\"name\":\"i18next\",\"version\":\"26.3.6\"},\"iconv-lite-0.7.3.tgz\":{\"integrity\":\"IKXpvIzjnC9XTAUbVBcMfGS0EPaIXtW6v+zr+RRp+hqULEpo0owZax6wyRwPOJbWbzjYspQwusTsfVr0ifh4uQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"20a5e9bc8ce39c2f574c051b54170c7c64b410f6885ed5babfecebf91469fa1a942c4a68d28c196b1eb0c91c0f3896d66f38d8b29430bac4ec7d5af489f878b9\",\"name\":\"iconv-lite\",\"version\":\"0.7.3\"},\"ignore-5.3.2.tgz\":{\"integrity\":\"hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"86c053354a904c3c245ad71d608da2d3a63f9d4044b0d10324a8d676280bbde832f240ee2404bcb91969924710a721172f467fa630f2e4706632344227682afa\",\"name\":\"ignore\",\"version\":\"5.3.2\"},\"immer-11.1.17.tgz\":{\"integrity\":\"8Vu44Y0MuMBlTQz/jQ8HEMYNq/bBqk87MnBwYR5mC8AthfhEXidZ5aT/oA/CUqboa8THKltnD9L3xyqhU/Sy1Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f15bb8e18d0cb8c0654d0cff8d0f0710c60dabf6c1aa4f3b327070611e660bc02d85f8445e2759e5a4ffa00fc252a6e86bc4c72a5b670fd2f7c72aa153f4b2d5\",\"name\":\"immer\",\"version\":\"11.1.17\"},\"import-fresh-3.3.1.tgz\":{\"integrity\":\"TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4d1dca7eb4d94d82cf07a8d48dfc7a305f56716ac72fdb2ee5339b2b866462005d58a3ce1684a8408744b93b91f36a66b711f6b29586f61e9eb707ebd692c1a9\",\"name\":\"import-fresh\",\"version\":\"3.3.1\"},\"indent-string-4.0.0.tgz\":{\"integrity\":\"EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"11d0c366ee00d8ec882bb2ebff6cc6fb0e6399bba4d435419c4c11110bc1ceca412640846d16bc1b153596085871a1890a745689b8c35e5abbefd5f5ff2e71c2\",\"name\":\"indent-string\",\"version\":\"4.0.0\"},\"inflight-1.0.6.tgz\":{\"integrity\":\"k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"93dd88fdbd3cab8c2f16c71708bbea7ec1c2ae3ac5ef2897b10b8856f544ecdf365b7f9aaa9cee51d05b7e159ccbf159477ff82207e532028b3acbcf0eb18224\",\"name\":\"inflight\",\"version\":\"1.0.6\"},\"inherits-2.0.4.tgz\":{\"integrity\":\"k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"93fbc6697e3f6256b75b3c8c0af4d039761e207bea38ab67a8176ecd31e9ce9419cc0b2428c859d8af849c189233dcc64a820578ca572b16b8758799210a9ec1\",\"name\":\"inherits\",\"version\":\"2.0.4\"},\"internmap-2.0.3.tgz\":{\"integrity\":\"5Hh7Y1wQbvY5ooGgPbDaL5iYLAPzMTUrjMulskHLH6wnv/A+1q5rgEaiuqEjB+oxGXIVZs1FF+R/KPN3ZSQYYg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e4787b635c106ef639a281a03db0da2f98982c03f331352b8ccba5b241cb1fac27bff03ed6ae6b8046a2baa12307ea3119721566cd4517e47f28f37765241862\",\"name\":\"internmap\",\"version\":\"2.0.3\"},\"ip-address-10.5.0.tgz\":{\"integrity\":\"R5SnVLJmgYYvf2F2ZgwSBnelz5G4q5AxIC277GDfUaNbrZKNANcBC7RHqYYePlszf4kBolVkJauG0ZjHHFh55g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4794a754b26681862f7f6176660c120677a5cf91b8ab9031202dbbec60df51a35bad928d00d7010bb447a9861e3e5b337f8901a2556425ab86d198c71c5879e6\",\"name\":\"ip-address\",\"version\":\"10.5.0\"},\"ipaddr.js-1.9.1.tgz\":{\"integrity\":\"0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d0a23feb4ef1a31493a07ec68cdd457d26cba14d3e6ed4e2723b1049642587f859ca437c2a998c7fbb98c0f5b747e6a467a47fc35f199574870585e26143cede\",\"name\":\"ipaddr.js\",\"version\":\"1.9.1\"},\"ipaddr.js-2.5.0.tgz\":{\"integrity\":\"aq+t5NAc+cS6rZQQVWC2x98CPqGtKKTMDd4Gaodv0wShnItdKg/51djkGJ1hqH+Oy0ivDftCbSLCQob8zso01w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6aafade4d01cf9c4baad94105560b6c7df023ea1ad28a4cc0dde066a876fd304a19c8b5d2a0ff9d5d8e4189d61a87f8ecb48af0dfb426d22c24286fcceca34d7\",\"name\":\"ipaddr.js\",\"version\":\"2.5.0\"},\"is-arrayish-0.2.1.tgz\":{\"integrity\":\"zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"cf3d3a4bcb74a33a035cc1beb9b7b6eb37824cd5dc2883c96498bc841ac5e227422e6b38086f50b4aeea065d5ba22e4e0f31698ecc1be493e61c26cca63698ce\",\"name\":\"is-arrayish\",\"version\":\"0.2.1\"},\"is-docker-2.2.1.tgz\":{\"integrity\":\"F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"17e8b604ab05ac7eba89a505734c280fcb0bcbc81eb64c13c2d3818efb39e82c780a024378a41ea9fcfcc0062249bf093a9ad68471f9a7becf6e6602bef52e5d\",\"name\":\"is-docker\",\"version\":\"2.2.1\"},\"is-docker-3.0.0.tgz\":{\"integrity\":\"eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7a58dc8040e5127b3fec05c5a2c0792bfda708ce0fec540f90673f0d62f2e6b985116bd96b21ab8a4d5df7f4086399c9e1ff58b15bc1900ea42691e7f6b21275\",\"name\":\"is-docker\",\"version\":\"3.0.0\"},\"is-extglob-2.1.1.tgz\":{\"integrity\":\"SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"49b29b00d90deb4dd58b88c466fe3d2de549327e321b0b1bcd9c28ac4a32122badb0dde725875b3b7eb37e1189e90103a4e6481640ed9eae494719af9778eca1\",\"name\":\"is-extglob\",\"version\":\"2.1.1\"},\"is-fullwidth-code-point-3.0.0.tgz\":{\"integrity\":\"zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"cf29a6e7ebbeb02b125b20fda8d69e8d5dc316f84229c94a762cd868952e1c0f3744b8dbee74ae1a775d0871afd2193e298ec130096c59e2b851e83a115e9742\",\"name\":\"is-fullwidth-code-point\",\"version\":\"3.0.0\"},\"is-glob-4.0.3.tgz\":{\"integrity\":\"xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c5e9526b21c7dfa66013b6568658bba56df884d6cd97c3a3bf92959a4243e2105d0f7b61f137e4f6f61ab0b33e99758e6611648197f184b4a7af046be1e9524a\",\"name\":\"is-glob\",\"version\":\"4.0.3\"},\"is-in-ssh-1.0.0.tgz\":{\"integrity\":\"jYa6Q9rH90kR1vKB6NM7qqd1mge3Fx4Dhw5TVlK1MUBqhEOuCagrEHMevNuCcbECmXZ0ThXkRm+Ymr51HwEPAw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8d86ba43dac7f74911d6f281e8d33baaa7759a07b7171e03870e535652b531406a8443ae09a82b10731ebcdb8271b1029976744e15e4466f989abe751f010f03\",\"name\":\"is-in-ssh\",\"version\":\"1.0.0\"},\"is-inside-container-1.0.0.tgz\":{\"integrity\":\"KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"28860b08226085f1d9c6a8d8044eeb132d0e06e4dde710874bbb47560bc22e4c7b4ad2286b1c0d5b784200b80452315f79193e306fd0c66a7fbed113105ded44\",\"name\":\"is-inside-container\",\"version\":\"1.0.0\"},\"is-interactive-2.0.0.tgz\":{\"integrity\":\"qP1vozQRI+BMOPcjFzrjXuQvdak2pHNUMZoeG2eRbiSqyvbEf/wQtEOTOX1guk6E3t36RkaqiSt8A/6YElNxLQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a8fd6fa3341123e04c38f723173ae35ee42f75a936a47354319a1e1b67916e24aacaf6c47ffc10b44393397d60ba4e84deddfa4646aa892b7c03fe981253712d\",\"name\":\"is-interactive\",\"version\":\"2.0.0\"},\"is-number-7.0.0.tgz\":{\"integrity\":\"41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e350a27e483a7bc4f2952a5db53a5e2d532abd20445734edb47bc4443ef8d7ea6767c00dbf4d34e0c44be3740a3c394af5c1af369e8d6566540656c65d8c719e\",\"name\":\"is-number\",\"version\":\"7.0.0\"},\"is-obj-2.0.0.tgz\":{\"integrity\":\"drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"76ba831b771b733c7110946839770e8ed769d49fe5ca9d66367d316b39d1b3cfa6b8186041cae76eca68c795f97cec341e73276df0f3be710c12da83109128f3\",\"name\":\"is-obj\",\"version\":\"2.0.0\"},\"is-obj-3.0.0.tgz\":{\"integrity\":\"IlsXEHOjtKhpN8r/tRFj2nDyTmHvcfNeu/nrRIcXE17ROeatXchkojffa1SpdqW4cr/Fj6QkEf/Gn4zf6KKvEQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"225b171073a3b4a86937caffb51163da70f24e61ef71f35ebbf9eb448717135ed139e6ad5dc864a237df6b54a976a5b872bfc58fa42411ffc69f8cdfe8a2af11\",\"name\":\"is-obj\",\"version\":\"3.0.0\"},\"is-plain-obj-4.1.0.tgz\":{\"integrity\":\"+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f8f822faf32e50d909c84c62301b792251683322a7af9ce127852ca73e7c58e841179428219905c8d1c86c102d1f0cd502093946d9dd54db0344deb5fe6983aa\",\"name\":\"is-plain-obj\",\"version\":\"4.1.0\"},\"is-potential-custom-element-name-1.0.1.tgz\":{\"integrity\":\"bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6c261e440dab5626ca65dfacdbadb98069c617fb7b0d2a83b3874fec2acb0359bb8ca5b3ea9a6cd0ba582c937c43ae07b663ca27586b3779f33cd28510a39489\",\"name\":\"is-potential-custom-element-name\",\"version\":\"1.0.1\"},\"is-promise-4.0.0.tgz\":{\"integrity\":\"hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"86fa6823a928ae124c9de8f6f3975283a9eed7e7babb1b3bcc6dc16009b96f2a83b2024d5b0c7333acfa8998808104784c9df42660533b0a99530dd69721f701\",\"name\":\"is-promise\",\"version\":\"4.0.0\"},\"is-regexp-3.1.0.tgz\":{\"integrity\":\"rbku49cWloU5bSMI+zaRaXdQHXnthP6DZ/vLnfdSKyL4zUzuWnomtOEiZZOd+ioQ+avFo/qau3KPTc7Fjy1uPA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"adb92ee3d7169685396d2308fb36916977501d79ed84fe8367fbcb9df7522b22f8cd4cee5a7a26b4e12265939dfa2a10f9abc5a3fa9abb728f4dcec58f2d6e3c\",\"name\":\"is-regexp\",\"version\":\"3.1.0\"},\"is-stream-2.0.1.tgz\":{\"integrity\":\"hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"845a222624e5eb79e7fa4b2d1c606d7b05922a740ba726f5e7928785e035977f6ebed3bd9d6228a75a77b9da8f71477fc5b17554b30ee27ece23aa7b45b9e00e\",\"name\":\"is-stream\",\"version\":\"2.0.1\"},\"is-stream-4.0.1.tgz\":{\"integrity\":\"Dnz92NInDqYckGEUJv689RbRiTSEHCQ7wOVeALbkOz999YpqT46yMRIGtSNl2iCL1waAZSx40+h59NV/EwzV/A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0e7cfdd8d2270ea61c90611426febcf516d18934841c243bc0e55e00b6e43b3f7df58a6a4f8eb2311206b52365da208bd70680652c78d3e879f4d57f130cd5fc\",\"name\":\"is-stream\",\"version\":\"4.0.1\"},\"is-unicode-supported-1.3.0.tgz\":{\"integrity\":\"43r2mRvz+8JRIKnWJ+3j8JtjRKZ6GmjzfaE/qiBJnikNnYv/6bagRJ1kUhNk8R5EX/GkobD+r+sfxCPJsiKBLQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e37af6991bf3fbc25120a9d627ede3f09b6344a67a1a68f37da13faa20499e290d9d8bffe9b6a0449d64521364f11e445ff1a4a1b0feafeb1fc423c9b222812d\",\"name\":\"is-unicode-supported\",\"version\":\"1.3.0\"},\"is-unicode-supported-2.1.0.tgz\":{\"integrity\":\"mE00Gnza5EEB3Ds0HfMyllZzbBrmLOX3vfWoj9A9PEnTfratQ/BcaJOuMhnkhjXvb2+FkY3VuHqtAGpTPmglFQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"984d341a7cdae44101dc3b341df3329656736c1ae62ce5f7bdf5a88fd03d3c49d37eb6ad43f05c6893ae3219e48635ef6f6f85918dd5b87aad006a533e682515\",\"name\":\"is-unicode-supported\",\"version\":\"2.1.0\"},\"is-wsl-2.2.0.tgz\":{\"integrity\":\"fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7cacc0adad2b18951407018180d90766e4e865c9fe4ed5c7a5e0a09a430930c631d6c40361a092ca32414826b69c7d431a6eecde7d68067a21a154c168decbc3\",\"name\":\"is-wsl\",\"version\":\"2.2.0\"},\"is-wsl-3.1.1.tgz\":{\"integrity\":\"e6rvdUCiQCAuumZslxRJWR/Doq4VpPR82kqclvcS0efgt430SlGIk05vdCN58+VrzgtIcfNODjozVielycD4Sw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7baaef7540a240202eba666c971449591fc3a2ae15a4f47cda4a9c96f712d1e7e0b78df44a5188934e6f742379f3e56bce0b4871f34e0e3a335627a5c9c0f84b\",\"name\":\"is-wsl\",\"version\":\"3.1.1\"},\"isarray-1.0.0.tgz\":{\"integrity\":\"VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"54b82121634ce842d0ce8ef3c26720d0d99357258a623bc878cf37ca3a74c110d39949eb33aefc7d06dc281a3a9f6089105d2cce81bfff2b60f932a56bcf402d\",\"name\":\"isarray\",\"version\":\"1.0.0\"},\"isbinaryfile-4.0.10.tgz\":{\"integrity\":\"iHrqe5shvBUcFbmZq9zOQHBoeOhZJu6RQGrDpBgenUm/Am+F3JM2MgQj+rK3Z601fzrL5gLZWtAPH2OBaSVcyw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"887aea7b9b21bc151c15b999abdcce40706878e85926ee91406ac3a4181e9d49bf026f85dc9336320423fab2b767ad357f3acbe602d95ad00f1f638169255ccb\",\"name\":\"isbinaryfile\",\"version\":\"4.0.10\"},\"isbinaryfile-5.0.7.tgz\":{\"integrity\":\"gnWD14Jh3FzS3CPhF0AxNOJ8CxqeblPTADzI38r0wt8ZyQl5edpy75myt08EG2oKvpyiqSqsx+Wkz9vtkbTqYQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"827583d78261dc5cd2dc23e117403134e27c0b1a9e6e53d3003cc8dfcaf4c2df19c9097979da72ef99b2b74f041b6a0abe9ca2a92aacc7e5a4cfdbed91b4ea61\",\"name\":\"isbinaryfile\",\"version\":\"5.0.7\"},\"isexe-2.0.0.tgz\":{\"integrity\":\"RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"447c4c2e9f659ca1c61d19e0f5016144231b600715a67ebdb2648672addfdfac638155564e18f8aaa2db4cb96aed2b23f01f9f210d44b8210623694ab3241e23\",\"name\":\"isexe\",\"version\":\"2.0.0\"},\"isexe-3.1.5.tgz\":{\"integrity\":\"6B3tLtFqtQS4ekarvLVMZ+X+VlvQekbe4taUkf/rhVO3d/h0M2rfARm/pXLcPEsjjMsFgrFgSrhQIxcSVrBz8w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e81ded2ed16ab504b87a46abbcb54c67e5fe565bd07a46dee2d69491ffeb8553b777f874336adf0119bfa572dc3c4b238ccb0582b1604ab85023171256b073f3\",\"name\":\"isexe\",\"version\":\"3.1.5\"},\"isexe-4.0.0.tgz\":{\"integrity\":\"FFUtZMpoZ8RqHS3XeXEmHWLA4thH+ZxCv2lOiPIn1Xc7CxrqhWzNSDzD+/chS/zbYezmiwWLdQC09JdQKmthOw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"14552d64ca6867c46a1d2dd77971261d62c0e2d847f99c42bf694e88f227d5773b0b1aea856ccd483cc3fbf7214bfcdb61ece68b058b7500b4f497502a6b613b\",\"name\":\"isexe\",\"version\":\"4.0.0\"},\"istanbul-lib-coverage-3.2.2.tgz\":{\"integrity\":\"O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3bc769b05fabd1657ff0c35129f9e6aed09686e2a3c6bab6c3e8e9cc12f95192938b62de5569d63a6591c4595eb0938d99cfb02c01af29064439a9e4a342c54e\",\"name\":\"istanbul-lib-coverage\",\"version\":\"3.2.2\"},\"istanbul-lib-report-3.0.1.tgz\":{\"integrity\":\"GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1827c4d66b6c1c63842c253c7bf67b616ce99b26ebc7ff9d4937cbaef63ca9199a63acd74ca5a7e964088da005c34ebd89c9ba19530d920bb437323888f65437\",\"name\":\"istanbul-lib-report\",\"version\":\"3.0.1\"},\"istanbul-reports-3.2.0.tgz\":{\"integrity\":\"HGYWWS/ehqTV3xN10i23tkPkpH46MLCIMFNCaaKNavAXTF1RkqxawEPtnjnGZ6XKSInBKkiOA5BKS+aZiY3AvA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1c6616592fde86a4d5df1375d22db7b643e4a47e3a30b08830534269a28d6af0174c5d5192ac5ac043ed9e39c667a5ca4889c12a488e03904a4be699898dc0bc\",\"name\":\"istanbul-reports\",\"version\":\"3.2.0\"},\"jake-10.9.4.tgz\":{\"integrity\":\"wpHYzhxiVQL+IV05BLE2Xn34zW1S223hvjtqk0+gsPrwd/8JNLXJgZZM/iPFsYc1xyphF+6M6EvdE5E9MBGkDA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c291d8ce1c625502fe215d3904b1365e7df8cd6d52db6de1be3b6a934fa0b0faf077ff0934b5c981964cfe23c5b18735c72a6117ee8ce84bdd13913d3011a40c\",\"name\":\"jake\",\"version\":\"10.9.4\"},\"jiti-2.7.0.tgz\":{\"integrity\":\"AC/7JofJvZGrrneWNaEnJeOLUx+JlGt7tNa0wZiRPT4MY1wmfKjt2+6O2p2uz2+skll8OZZmJMNqeke7kKbNgQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"002ffb2687c9bd91abae779635a12725e38b531f89946b7bb4d6b4c198913d3e0c635c267ca8eddbee8eda9daecf6fac92597c39966624c36a7a47bb90a6cd81\",\"name\":\"jiti\",\"version\":\"2.7.0\"},\"jose-6.2.9.tgz\":{\"integrity\":\"XrchZOFZUl/T3vTwRe8XK+cJrGtMF4th1ARnDfwbBXFKThGhlsxEE4Zu03AD/bjJSt/9jT/mxrOCkJWOg77aPA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5eb72164e159525fd3def4f045ef172be709ac6b4c178b61d404670dfc1b05714a4e11a196cc4413866ed37003fdb8c94adffd8d3fe6c6b38290958e83beda3c\",\"name\":\"jose\",\"version\":\"6.2.9\"},\"joycon-3.1.1.tgz\":{\"integrity\":\"34wB/Y7MW7bzjKRjUKTa46I2Z7eV62Rkhva+KkopW7Qvv/OSWBqvkSY7vusOPrNuZcUG3tApvdVgNB8POj3SPw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"df8c01fd8ecc5bb6f38ca46350a4dae3a23667b795eb646486f6be2a4a295bb42fbff392581aaf91263bbeeb0e3eb36e65c506ded029bdd560341f0f3a3dd23f\",\"name\":\"joycon\",\"version\":\"3.1.1\"},\"js-tokens-10.0.0.tgz\":{\"integrity\":\"lM/UBzQmfJRo9ABXbPWemivdCW8V2G8FHaHdypQaIy523snUjog0W71ayWXTjiR+ixeMyVHN2XcpnTd/liPg/Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"94cfd40734267c9468f400576cf59e9a2bdd096f15d86f051da1ddca941a232e76dec9d48e88345bbd5ac965d38e247e8b178cc951cdd977299d377f9623e0fd\",\"name\":\"js-tokens\",\"version\":\"10.0.0\"},\"js-tokens-4.0.0.tgz\":{\"integrity\":\"RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"45d2547e5704ddc5332a232a420b02bb4e853eef5474824ed1b7986cf84737893a6a9809b627dca02b53f5b7313a9601b690f690233a49bce0e026aeb16fcf29\",\"name\":\"js-tokens\",\"version\":\"4.0.0\"},\"js-yaml-4.3.1.tgz\":{\"integrity\":\"CY6crGq313MX8GkwvB7tzgp99vjQxY1++5y10/BKN/GUfHqWaOGQMNZkBvqSzsZKWk/ijwHlWzzkLulsGHhjWQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"098e9cac6ab7d77317f06930bc1eedce0a7df6f8d0c58d7efb9cb5d3f04a37f1947c7a9668e19030d66406fa92cec64a5a4fe28f01e55b3ce42ee96c18786359\",\"name\":\"js-yaml\",\"version\":\"4.3.1\"},\"js-yaml-5.3.0.tgz\":{\"integrity\":\"muutsYr+e2+d3rTgUGslq5rxbBlUy3cJ61IsHag2QNDQV+7zXWjkUpmALIajhrlLlrgRUiymj6U3zUr/TMK84Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9aebadb18afe7b6f9ddeb4e0506b25ab9af16c1954cb7709eb522c1da83640d0d057eef35d68e45299802c86a386b94b96b811522ca68fa537cd4aff4cc2bce1\",\"name\":\"js-yaml\",\"version\":\"5.3.0\"},\"jsdom-30.0.1.tgz\":{\"integrity\":\"52v7mUVUfNQVYYqE1lcdaymWL0njO7lTLUog6ZvW2U5KsbiLk/GnZlVJ+qx0xfNJZ6Gn+KSpPNE52vurbxZwrA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e76bfb9945547cd415618a84d6571d6b29962f49e33bb9532d4a20e99bd6d94e4ab1b88b93f1a7665549faac74c5f34967a1a7f8a4a93cd139dafbab6f1670ac\",\"name\":\"jsdom\",\"version\":\"30.0.1\"},\"jsesc-3.1.0.tgz\":{\"integrity\":\"/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"fec33774ed853b35e3290849ba8d10d7bdf07f628ea3cb7823cbc7cba945f69a14a7b6ca4f4fcd1c4f1f3d7db73f07e19f291faa70b6c51c4e9d5c395ee18868\",\"name\":\"jsesc\",\"version\":\"3.1.0\"},\"json-buffer-3.0.1.tgz\":{\"integrity\":\"4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e1b57905f4769aa7d04c99be579b4f3dd7fe669ba1888bd3b8007983c91cad7399a534ff430c15456072c17d68cebea512e3dd6c7c70689966f46ea6236b1f49\",\"name\":\"json-buffer\",\"version\":\"3.0.1\"},\"json-parse-even-better-errors-2.3.1.tgz\":{\"integrity\":\"xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c72170ca1ae8fc91287fa1a17b68b3d8d717a23dac96836c5abfd7b044432bfa223c27da36197938d7e9fa341d01945043420958dcc7f7321917b962f75921db\",\"name\":\"json-parse-even-better-errors\",\"version\":\"2.3.1\"},\"json-schema-ref-resolver-3.0.0.tgz\":{\"integrity\":\"hOrZIVL5jyYFjzk7+y7n5JDzGlU8rfWDuYyHwGa2WA8/pcmMHezp2xsVwxrebD/Q9t8Nc5DboieySDpCp4WG4A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"84ead92152f98f26058f393bfb2ee7e490f31a553cadf583b98c87c066b6580f3fa5c98c1dece9db1b15c31ade6c3fd0f6df0d7390dba227b2483a42a78586e0\",\"name\":\"json-schema-ref-resolver\",\"version\":\"3.0.0\"},\"json-schema-traverse-1.0.0.tgz\":{\"integrity\":\"NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"34cf3f3fd9f75e35e12199f594b86415a0024ce5114178d6855e0103f4673aff31be0aadaa9017f483b89914314b1d51968e2dab37aa6f4b0e96bb9a3b2dddba\",\"name\":\"json-schema-traverse\",\"version\":\"1.0.0\"},\"json-schema-typed-7.0.3.tgz\":{\"integrity\":\"7DE8mpG+/fVw+dTpjbxnx47TaMnDfOI1jwft9g1VybltZCduyRQPJPvc+zzKY9WPHxhPWczyFuYa6I8Mw4iU5A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ec313c9a91befdf570f9d4e98dbc67c78ed368c9c37ce2358f07edf60d55c9b96d64276ec9140f24fbdcfb3cca63d58f1f184f59ccf216e61ae88f0cc38894e4\",\"name\":\"json-schema-typed\",\"version\":\"7.0.3\"},\"json-schema-typed-8.0.2.tgz\":{\"integrity\":\"fQhoXdcvc3V28x7C7BMs4P5+kNlgUURe2jmUT1T//oBRMDrqy1QPelJimwZGo7Hg9VPV3EQV5Bnq4hbFy2vetA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7d08685dd72f737576f31ec2ec132ce0fe7e90d96051445eda39944f54fffe8051303aeacb540f7a52629b0646a3b1e0f553d5dc4415e419eae216c5cb6bdeb4\",\"name\":\"json-schema-typed\",\"version\":\"8.0.2\"},\"json-stringify-safe-5.0.1.tgz\":{\"integrity\":\"ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"642960e80698bda9af60413cd9ddc8c9ddef49222343ea1d823693cd1b8edeceeda0274529cce86f68b4cc287b244f245a7d7bcaf016854571bea1b051a96c44\",\"name\":\"json-stringify-safe\",\"version\":\"5.0.1\"},\"json5-2.2.3.tgz\":{\"integrity\":\"XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5e63967bb7b21d81f5e1c2dd54fa3283e18e1f7ad85fef8aa73af2949c125bdf2ddcd93e53c5ce97c15628e830b7375bf255c67facd8c035337873167f16acca\",\"name\":\"json5\",\"version\":\"2.2.3\"},\"jsonfile-4.0.0.tgz\":{\"integrity\":\"m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9ba175477cfc8e395fda29901d2d907b3e6c8ca590cdbbae86e27f14a605459bcf1373ee1dc48c559cdfb0b84654e91f776d286cbe5258405ec394a196ab8dc6\",\"name\":\"jsonfile\",\"version\":\"4.0.0\"},\"jsonfile-6.2.1.tgz\":{\"integrity\":\"zwOTdL3rFQ/lRdBnntKVOX6k5cKJwEc1HdilT71BWEu7J41gXIB2MRp+vxduPSwZJPWBxEzv4yH1wYLJGUHX4Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"cf039374bdeb150fe545d0679ed295397ea4e5c289c047351dd8a54fbd41584bbb278d605c8076311a7ebf176e3d2c1924f581c44cefe321f5c182c91941d7e1\",\"name\":\"jsonfile\",\"version\":\"6.2.1\"},\"keyv-4.5.4.tgz\":{\"integrity\":\"oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a3154790747f1097f608d5e75b144b5ba9a0ec9c82094706d03b441a62f672d528d4f3538a7d4f52297eafffb8af93295600bf7e7d648ecc7b9a34ae8caa88a7\",\"name\":\"keyv\",\"version\":\"4.5.4\"},\"kleur-3.0.3.tgz\":{\"integrity\":\"eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"793233955392511f89c5d0c57a911870132d67d42a75e7feae7cd675166e31b3b2c2ee6d3b6c3637baea8e800d67993dbf2c212fa06bd55463508813431e04f3\",\"name\":\"kleur\",\"version\":\"3.0.3\"},\"kleur-4.1.5.tgz\":{\"integrity\":\"o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a3e34efbc5ab462404138ffb9f044984dd475a9566266e75d690475313cbb69d015084b3941a653916129937250a726f42adad2aefec825df156991ced95ae41\",\"name\":\"kleur\",\"version\":\"4.1.5\"},\"lazy-val-1.0.5.tgz\":{\"integrity\":\"0/BnGCCfyUMkBpeDgWihanIAF9JmZhHBgUhEqzvf+adhNGLoP6TaiI5oF8oyb3I45P+PcnrqihSf01M0l0G5+Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d3f06718209fc943240697838168a16a720017d2666611c1814844ab3bdff9a7613462e83fa4da888e6817ca326f7238e4ff8f727aea8a149fd353349741b9f9\",\"name\":\"lazy-val\",\"version\":\"1.0.5\"},\"libsodium-0.8.4.tgz\":{\"integrity\":\"lMcYaRi0zcs7tarATsQUYC7rstliIXZuoq0c6zXSgNtSNtdvBgkSegjWhpMJAXzKX3SUSwIp7+zEsob+j3LuRw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"94c7186918b4cdcb3bb5aac04ec414602eebb2d96221766ea2ad1ceb35d280db5236d76f0609127a08d6869309017cca5f74944b0229efecc4b286fe8f72ee47\",\"name\":\"libsodium\",\"version\":\"0.8.4\"},\"libsodium-wrappers-0.8.4.tgz\":{\"integrity\":\"mu8aAWucZjTB5O/BtGXtW4e1agy7uHxNYG7zPthmmD1jU43LCDmSWZLN4JhflbdPXj3yDO4lxM1O9hLDgIOXDw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9aef1a016b9c6634c1e4efc1b465ed5b87b56a0cbbb87c4d606ef33ed866983d63538dcb0839925992cde0985f95b74f5e3df20cee25c4cd4ef612c38083970f\",\"name\":\"libsodium-wrappers\",\"version\":\"0.8.4\"},\"light-my-request-6.6.0.tgz\":{\"integrity\":\"CHYbu8RtboSIoVsHZ6Ye4cj4Aw/yg2oAFimlF7mNvfDV192LR7nDiKtSIfCuLT7KokPSTn/9kfVLm5OGN0A28A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"08761bbbc46d6e8488a15b0767a61ee1c8f8030ff2836a001629a517b98dbdf0d5d7dd8b47b9c388ab5221f0ae2d3ecaa243d24e7ffd91f54b9b9386374036f0\",\"name\":\"light-my-request\",\"version\":\"6.6.0\"},\"lightningcss-1.32.0.tgz\":{\"integrity\":\"NXYBzinNrblfraPGyrbPoD19C1h9lfI/1mzgWYvXUTe414Gz/X1FD2XBZSZM7rRTrMA8JL3OtAaGifrIKhQ5yQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"357601ce29cdadb95fada3c6cab6cfa03d7d0b587d95f23fd66ce0598bd75137b8d781b3fd7d450f65c165264ceeb453acc03c24bdceb4068689fac82a1439c9\",\"name\":\"lightningcss\",\"version\":\"1.32.0\"},\"lightningcss-1.33.0.tgz\":{\"integrity\":\"WkUDrojuJs0xkgGf2udWxa3yGBRxPtxUkB79i6aCZLRgc7PM8fZe9TosfPDcvEpQZbuFASnHYmRLBLUbmLOIIA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5a4503ae88ee26cd3192019fdae756c5adf21814713edc54901efd8ba68264b46073b3ccf1f65ef53a2c7cf0dcbc4a5065bb850129c762644b04b51b98b38820\",\"name\":\"lightningcss\",\"version\":\"1.33.0\"},\"lightningcss-android-arm64-1.32.0.tgz\":{\"integrity\":\"YK7/ClTt4kAK0vo6w3X+Pnm0D2cf2vPHbhOXdoNti1Ga0al1P4TBZhwjATvjNwLEBCnKvjJc2jQgHXH0NEwlAg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"60aeff0a54ede2400ad2fa3ac375fe3e79b40f671fdaf3c76e139776836d8b519ad1a9753f84c1661c23013be33702c40429cabe325cda34201d71f4344c2502\",\"name\":\"lightningcss-android-arm64\",\"version\":\"1.32.0\"},\"lightningcss-android-arm64-1.33.0.tgz\":{\"integrity\":\"gEpRTalKdosp4Bb8qWtc2iOgE5SeIHlpS1up9bFq2wAyYhl1UdTObYiHe98zEM9SQvSoqQZ1IQD0JNpg3Ml5pg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"804a514da94a768b29e016fca96b5cda23a013949e2079694b5ba9f5b16adb003262197551d4ce6d88877bdf3310cf5242f4a8a906752100f424da60dcc979a6\",\"name\":\"lightningcss-android-arm64\",\"version\":\"1.33.0\"},\"lightningcss-darwin-arm64-1.32.0.tgz\":{\"integrity\":\"RzeG9Ju5bag2Bv1/lwlVJvBE3q6TtXskdZLLCyfg5pt+HLz9BqlICO7LZM7VHNTTn/5PRhHFBSjk5lc4cmscPQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"473786f49bb96da83606fd7f97095526f044deae93b57b247592cb0b27e0e69b7e1cbcfd06a94808eecb64ced51cd4d39ffe4f4611c50528e4e65738726b1c3d\",\"name\":\"lightningcss-darwin-arm64\",\"version\":\"1.32.0\"},\"lightningcss-darwin-arm64-1.33.0.tgz\":{\"integrity\":\"Sciaz8eenNTKn9b3t7+xr0ipTp9YxKQY4npwQ3mrRuL0BAVHBLyZxofhaKBAVtzmtRZ/zTyo0/to4B1uWG/Djg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"49c89acfc79e9cd4ca9fd6f7b7bfb1af48a94e9f58c4a418e27a704379ab46e2f404054704bc99c687e168a04056dce6b5167fcd3ca8d3fb68e01d6e586fc38e\",\"name\":\"lightningcss-darwin-arm64\",\"version\":\"1.33.0\"},\"lightningcss-darwin-x64-1.32.0.tgz\":{\"integrity\":\"U+QsBp2m/s2wqpUYT/6wnlagdZbtZdndSmut/NJqlCcMLTWp5muCrID+K5UJ6jqD2BFshejCYXniPDbNh73V8w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"53e42c069da6fecdb0aa95184ffeb09e56a07596ed65d9dd4a6badfcd26a94270c2d35a9e66b82ac80fe2b9509ea3a83d8116c85e8c26179e23c36cd87bdd5f3\",\"name\":\"lightningcss-darwin-x64\",\"version\":\"1.32.0\"},\"lightningcss-darwin-x64-1.33.0.tgz\":{\"integrity\":\"Z5UPAxzrjlWNNyGy6i65cJzzvgJ5D3T6wMvs+gWpY9d7qRhANrxqAp6LhxIgZhWEw18RfJTGcRxjuLIBr+m8XQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"67950f031ceb8e558d3721b2ea2eb9709cf3be02790f74fac0cbecfa05a963d77ba9184036bc6a029e8b871220661584c35f117c94c6711c63b8b201afe9bc5d\",\"name\":\"lightningcss-darwin-x64\",\"version\":\"1.33.0\"},\"lightningcss-freebsd-x64-1.32.0.tgz\":{\"integrity\":\"JCTigedEksZk3tHTTthnMdVfGf61Fky8Ji2E4YjUTEQX14xiy/lTzXnu1vwiZe3bYe0q+SpsSH/CTeDXK6WHig==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2424e281e74492c664ded1d34ed86731d55f19feb5164cbc262d84e188d44c4417d78c62cbf953cd79eed6fc2265eddb61ed2af92a6c487fc24de0d72ba5878a\",\"name\":\"lightningcss-freebsd-x64\",\"version\":\"1.32.0\"},\"lightningcss-freebsd-x64-1.33.0.tgz\":{\"integrity\":\"QQM/Ti/hQajJwCY+RiWuCZ9sdtI/XQk7nDK5vC8kkdwixezOlDgvDx7+RT+QjK6FcFT4MpsuoBnHIo/O3StRRg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"41033f4e2fe141a8c9c0263e4625ae099f6c76d23f5d093b9c32b9bc2f2491dc22c5ecce94382f0f1efe453f908cae857054f8329b2ea019c7228fcedd2b5146\",\"name\":\"lightningcss-freebsd-x64\",\"version\":\"1.33.0\"},\"lightningcss-linux-arm-gnueabihf-1.32.0.tgz\":{\"integrity\":\"x6rnnpRa2GL0zQOkt6rts3YDPzduLpWvwAF6EMhXFVZXD4tPrBkEFqzGowzCsIWsPjqSK+tyNEODUBXeeVHSkw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c7aae79e945ad862f4cd03a4b7aaedb376033f376e2e95afc0017a10c8571556570f8b4fac190416acc6a30cc2b085ac3e3a922beb723443835015de7951d293\",\"name\":\"lightningcss-linux-arm-gnueabihf\",\"version\":\"1.32.0\"},\"lightningcss-linux-arm-gnueabihf-1.33.0.tgz\":{\"integrity\":\"N7FVBe6iS24MlM6R/4RBTxGhQheZGs7tiQ9U32UtF75NzP5Q7xWPRqLBCKxlRQRk3rY1jCIPLzx7WzOhuUIRLQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"37b15505eea24b6e0c94ce91ff84414f11a14217991aceed890f54df652d17be4dccfe50ef158f46a2c108ac65450464deb6358c220f2f3c7b5b33a1b942112d\",\"name\":\"lightningcss-linux-arm-gnueabihf\",\"version\":\"1.33.0\"},\"lightningcss-linux-arm64-gnu-1.32.0.tgz\":{\"integrity\":\"0nnMyoyOLRJXfbMOilaSRcLH3Jw5z9HDNGfT/gwCPgaDjnx0i8w7vBzFLFR1f6CMLKF8gVbebmkUN3fa/kQJpQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d279ccca8c8e2d12577db30e8a569245c2c7dc9c39cfd1c33467d3fe0c023e06838e7c748bcc3bbc1cc52c54757fa08c2ca17c8156de6e69143777dafe4409a5\",\"name\":\"lightningcss-linux-arm64-gnu\",\"version\":\"1.32.0\"},\"lightningcss-linux-arm64-gnu-1.33.0.tgz\":{\"integrity\":\"j2v/itmy4HlNxlc6voKXYgBqNi0Ng2LShg4z7GufpEgs05P+2suBVyi9I6YHq5uoVFx9ETin3eCEhLVyXGQnKg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8f6bff8ad9b2e0794dc6573abe829762006a362d0d8362d2860e33ec6b9fa4482cd393fedacb815728bd23a607ab9ba8545c7d1138a7dde08484b5725c64272a\",\"name\":\"lightningcss-linux-arm64-gnu\",\"version\":\"1.33.0\"},\"lightningcss-linux-arm64-musl-1.32.0.tgz\":{\"integrity\":\"UpQkoenr4UJEzgVIYpI80lDFvRmPVg6oqboNHfoH4CQIfNA+HOrZ7Mo7KZP02dC6LjghPQJeBsvXhJod/wnIBg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"529424a1e9ebe14244ce054862923cd250c5bd198f560ea8a9ba0d1dfa07e024087cd03e1cead9ecca3b2993f4d9d0ba2e38213d025e06cbd7849a1dff09c806\",\"name\":\"lightningcss-linux-arm64-musl\",\"version\":\"1.32.0\"},\"lightningcss-linux-arm64-musl-1.33.0.tgz\":{\"integrity\":\"yiO5ROMuYQgXbC60yjZU5CYSFZGKXL0HFATXt9mHJn1+zW55oCtMI9NfcVhYLMFDL7gV7oBPon/EmMMGg2OvtQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ca23b944e32e6108176c2eb4ca3654e4261215918a5cbd071404d7b7d987267d7ecd6e79a02b4c23d35f7158582cc1432fb815ee804fa27fc498c3068363afb5\",\"name\":\"lightningcss-linux-arm64-musl\",\"version\":\"1.33.0\"},\"lightningcss-linux-x64-gnu-1.32.0.tgz\":{\"integrity\":\"V7Qr52IhZmdKPVr+Vtw8o+WLsQJYCTd8loIfpDaMRWGUZfBOYEJeyJIkqGIDMZPwPx24pUMfwSxxI8phr/MbOA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"57b42be7622166674a3d5afe56dc3ca3e58bb1025809377c96821fa4368c45619465f04e60425ec89224a862033193f03f1db8a5431fc12c7123ca61aff31b38\",\"name\":\"lightningcss-linux-x64-gnu\",\"version\":\"1.32.0\"},\"lightningcss-linux-x64-gnu-1.33.0.tgz\":{\"integrity\":\"ar+Ju7LmcN0Jo4FpL4hpFybwNG9/3A/Br5KW2n2jyODg3MEZXaDYADdemoNS+BDNfMgKvylJLj4S5tyRActuAg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6abf89bbb2e670dd09a381692f88691726f0346f7fdc0fc1af9296da7da3c8e0e0dcc1195da0d800375e9a8352f810cd7cc80abf29492e3e12e6dc9101cb6e02\",\"name\":\"lightningcss-linux-x64-gnu\",\"version\":\"1.33.0\"},\"lightningcss-linux-x64-musl-1.32.0.tgz\":{\"integrity\":\"bYcLp+Vb0awsiXg/80uCRezCYHNg1/l3mt0gzHnWV9XP1W5sKa5/TCdGWaR/zBM2PeF/HbsQv/j2URNOiVuxWg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6d870ba7e55bd1ac2c89783ff34b8245ecc2607360d7f9779add20cc79d657d5cfd56e6c29ae7f4c274659a47fcc13363de17f1dbb10bff8f651134e895bb15a\",\"name\":\"lightningcss-linux-x64-musl\",\"version\":\"1.32.0\"},\"lightningcss-linux-x64-musl-1.33.0.tgz\":{\"integrity\":\"RYiYbkokw0trfKqqzfF55lginwEPrD3OJDfTuJzFs1MK6iFnDenaz1fqLLtX4ITG3OktJQXOeTaw1awrBAlZPw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4588986e4a24c34b6b7caaaacdf179e658229f010fac3dce2437d3b89cc5b3530aea21670de9dacf57ea2cbb57e084c6dce92d2505ce7936b0d5ac2b0409593f\",\"name\":\"lightningcss-linux-x64-musl\",\"version\":\"1.33.0\"},\"lightningcss-win32-arm64-msvc-1.32.0.tgz\":{\"integrity\":\"8SbC8BR40pS6baCM8sbtYDSwEVQd4JlFTOlaD3gWGHfThTcABnNDBda6eTZeqbofalIJhFx0qKzgHJmcPTnGdw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f126c2f01478d294ba6da08cf2c6ed6034b011541de099454ce95a0f78161877d385370006734305d6ba79365ea9ba1f6a5209845c74a8ace01c999c3d39c677\",\"name\":\"lightningcss-win32-arm64-msvc\",\"version\":\"1.32.0\"},\"lightningcss-win32-arm64-msvc-1.33.0.tgz\":{\"integrity\":\"1K+MPfLSFVpphzpdbfkhlWk6wBrTObBzS2T6db10PNOZgR9GoVsAWzwNyuhUYYbTp23j+4RrncfujZ4uAzXvwA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d4af8c3df2d2155a69873a5d6df92195693ac01ad339b0734b64fa75bd743cd399811f46a15b005b3c0dcae8546186d3a76de3fb846b9dc7ee8d9e2e0335efc0\",\"name\":\"lightningcss-win32-arm64-msvc\",\"version\":\"1.33.0\"},\"lightningcss-win32-x64-msvc-1.32.0.tgz\":{\"integrity\":\"Amq9B/SoZYdDi1kFrojnoqPLxYhQ4Wo5XiL8EVJrVsB8ARoC1PWW6VGtT0WKCemjy8aC+louJnjS7U18x3b06Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"026abd07f4a86587438b5905ae88e7a2a3cbc58850e16a395e22fc11526b56c07c011a02d4f596e951ad4f458a09e9a3cbc682fa5a2e2678d2ed4d7cc776f4e9\",\"name\":\"lightningcss-win32-x64-msvc\",\"version\":\"1.32.0\"},\"lightningcss-win32-x64-msvc-1.33.0.tgz\":{\"integrity\":\"OlEICDx/Xl0FqSp4bry8zFnCvGpig3Gl4gCquvYwHuqJKEC1+n9NgDniFvqHGmMv1ZkqDJrDqKKSykTDX+ehuA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3a5108083c7f5e5d05a92a786ebcbccc59c2bc6a628371a5e200aabaf6301eea892840b5fa7f4d8039e216fa871a632fd5992a0c9ac3a8a292ca44c35fe7a1b8\",\"name\":\"lightningcss-win32-x64-msvc\",\"version\":\"1.33.0\"},\"lines-and-columns-1.2.4.tgz\":{\"integrity\":\"7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ef297295eb1943f3d5dbd8e110397751f8e8e995fb802a89af917b3caaea73ddefedfcd2ca6b75069c0453c9c0517b3cab3cefaa16e384ae50660e8cb7f1e406\",\"name\":\"lines-and-columns\",\"version\":\"1.2.4\"},\"locate-path-3.0.0.tgz\":{\"integrity\":\"7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ec03bbe3cc169c884da80b9ab72d995879101d148d7cf548b0f21fc043963b6d8099aa15ad66af94e70c4799f34cb358be9dfa5f6db4fe669a46cade7351bae4\",\"name\":\"locate-path\",\"version\":\"3.0.0\"},\"lodash-4.18.1.tgz\":{\"integrity\":\"dMInicTPVE8d1e5otfwmmjlxkZoUpiVLwyeTdUsi/Caj/gfzzblBcCE5sRHV/AsjuCmxWrte2TNGSYuCeCq+0Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"74c22789c4cf544f1dd5ee68b5fc269a3971919a14a6254bc32793754b22fc26a3fe07f3cdb941702139b111d5fc0b23b829b15abb5ed93346498b82782abed1\",\"name\":\"lodash\",\"version\":\"4.18.1\"},\"lodash.escaperegexp-4.1.2.tgz\":{\"integrity\":\"TM9YBvyC84ZxE3rgfefxUWiQKLilstD6k7PTGt6wfbtXF8ixIJLOL3VYyV/z+ZiPLsVxAsKAFVwWlWeb2Y8Yyw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4ccf5806fc82f38671137ae07de7f151689028b8a5b2d0fa93b3d31adeb07dbb5717c8b12092ce2f7558c95ff3f9988f2ec57102c280155c1695679bd98f18cb\",\"name\":\"lodash.escaperegexp\",\"version\":\"4.1.2\"},\"lodash.isequal-4.5.0.tgz\":{\"integrity\":\"pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a43a3796ef0985f8ea96ce8690c8296a1b05f640b26b2860ca48f22cc3454ca5aba5574042d6320789ae00c5a8cc10788a0fddb56026b0cc4b108f30bb3f8361\",\"name\":\"lodash.isequal\",\"version\":\"4.5.0\"},\"log-symbols-6.0.0.tgz\":{\"integrity\":\"i24m8rpwhmPIS4zscNzK6MSEhk0DUWa/8iYQWxhffV8jkI4Phvs3F+quL5xvS0gdQR0FyTCMMH33Y78dDTzzIw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8b6e26f2ba708663c84b8cec70dccae8c484864d035166bff226105b185f7d5f23908e0f86fb3717eaae2f9c6f4b481d411d05c9308c307df763bf1d0d3cf323\",\"name\":\"log-symbols\",\"version\":\"6.0.0\"},\"lowercase-keys-2.0.0.tgz\":{\"integrity\":\"tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b6a357ad2efca0c384ef734cc4ae0430b42c428c167fc8caa281fd83bc4f6af453ef4e91e9b91027a0d8d937bb42e91a66cba5c5adf4c10edb934a66e1788798\",\"name\":\"lowercase-keys\",\"version\":\"2.0.0\"},\"lru-cache-11.5.2.tgz\":{\"integrity\":\"4pfM1Ff0x50o0tQwb5ucw/RzNyD0/YJME6IVcStalZuMWxdt3sR3huStTtxz4PUmvZfRguvDejasvQ2kifR11g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e297ccd457f4c79d28d2d4306f9b9cc3f4733720f4fd824c13a215712b5a959b8c5b176ddec47786e4ad4edc73e0f526bd97d182ebc37a36acbd0da489f475d6\",\"name\":\"lru-cache\",\"version\":\"11.5.2\"},\"lru-cache-5.1.1.tgz\":{\"integrity\":\"KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2a9340450037230bfe8d3034bad51555bae1f8996baf516fd1ee7a186cc014e5cdedd93f16f89a0d6f0b1e62b9d8395c1f858fda7ea023cbcdd5a7ac045828f7\",\"name\":\"lru-cache\",\"version\":\"5.1.1\"},\"lru-cache-6.0.0.tgz\":{\"integrity\":\"Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"268e9d274e029928eece7c09492de951e5a677f1f47df4e59175e0c198be7aad540a6a90c0287e78bb183980b063df758b615a878875044302c78a938466ec88\",\"name\":\"lru-cache\",\"version\":\"6.0.0\"},\"lucide-react-1.31.0.tgz\":{\"integrity\":\"G8u2eEtoHUnUa9f8lbvqDhCiORMnYLdUEo06EEG9MQvHQrInKcX3Pa2TH39MM5qyzRcWETxB0+aOwAPI1g1kEg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1bcbb6784b681d49d46bd7fc95bbea0e10a239132760b754128d3a1041bd310bc742b22729c5f73dad931f7f4c339ab2cd1716113c41d3e68ec003c8d60d6412\",\"name\":\"lucide-react\",\"version\":\"1.31.0\"},\"lz-string-1.5.0.tgz\":{\"integrity\":\"h5bgJWpxJNswbU7qCrV0tIKQCaS3blPDrqKWx+QxzuzL1zGUzij9XCWLrSLsJPu5t+eWA/ycetzYAO5IOMcWAQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8796e0256a7124db306d4eea0ab574b4829009a4b76e53c3aea296c7e431ceeccbd73194ce28fd5c258bad22ec24fbb9b7e79603fc9c7adcd800ee4838c71601\",\"name\":\"lz-string\",\"version\":\"1.5.0\"},\"magic-string-0.30.21.tgz\":{\"integrity\":\"vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"bddd85e1853211728670b1e8abe4c4c828f1b9e49e1e7171cb28cda7cd328345d5e2f5219c37abfe5bef96a33f6ab0796d740de4adbfde88a7c82472c7c4f609\",\"name\":\"magic-string\",\"version\":\"0.30.21\"},\"magicast-0.5.4.tgz\":{\"integrity\":\"llBEhWm1SacoRwgHUoQJYtwp4PBLF4faQi5TCpIGyGs9n4y5+juI0tDgyKIfpqxckRHaHzouUEph3THklWh03w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9650448569b549a72847080752840962dc29e0f04b1787da422e530a9206c86b3d9f8cb9fa3b88d2d0e0c8a21fa6ac5c9111da1f3a2e504a61dd31e4956874df\",\"name\":\"magicast\",\"version\":\"0.5.4\"},\"magnet-uri-7.0.10.tgz\":{\"integrity\":\"PjS/xWnvq9RK6P/8+dWG7ka3mFGGt/R9xiq5A+P8a8MpE40Dw6yNyTdjCFuJHS3apn6p5bJUCzMSceW3VxezRA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3e34bfc569efabd44ae8fffcf9d586ee46b7985186b7f47dc62ab903e3fc6bc329138d03c3ac8dc93763085b891d2ddaa67ea9e5b2540b331271e5b75717b344\",\"name\":\"magnet-uri\",\"version\":\"7.0.10\"},\"make-dir-4.0.0.tgz\":{\"integrity\":\"hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8577544d960854eb75131fff8c0422fb04d9669529c018ffd10b0ecea7a06f7ac630c78989212ee712c79d87c1ad1578447dbe38248e3bde48b3fef1d562786f\",\"name\":\"make-dir\",\"version\":\"4.0.0\"},\"matcher-3.0.0.tgz\":{\"integrity\":\"OkeDaAZ/bQCxeFAozM55PKcKU0yJMPGifLwV4Qgjitu+5MoAfSQN4lsLJeXZ1b8w0x+/Emda6MZgXS1jvsapng==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3a478368067f6d00b1785028ccce793ca70a534c8930f1a27cbc15e108238adbbee4ca007d240de25b0b25e5d9d5bf30d31fbf12675ae8c6605d2d63bec6a99e\",\"name\":\"matcher\",\"version\":\"3.0.0\"},\"math-intrinsics-1.1.0.tgz\":{\"integrity\":\"/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"fc85ed6f0124e474cfc84c32297ea11a4617c4cf676e3eb807e8a55499c2fd1e81d291f91b85776f4a556cbec3063e2d921040a696d05257fa17a5e5f4b1eed6\",\"name\":\"math-intrinsics\",\"version\":\"1.1.0\"},\"mdn-data-2.27.1.tgz\":{\"integrity\":\"9Yubnt3e8A0OKwxYSXyhLymGW4sCufcLG6VdiDdUGVkPhpqLxlvP5vl1983gQjJl3tqbrM731mjaZaP68AgosQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f58b9b9edddef00d0e2b0c58497ca12f29865b8b02b9f70b1ba55d88375419590f869a8bc65bcfe6f975f7cde0423265deda9baccef7d668da65a3faf00828b1\",\"name\":\"mdn-data\",\"version\":\"2.27.1\"},\"media-typer-1.1.1.tgz\":{\"integrity\":\"yz3xRaG20c6/BOzvYoDaGtPmGscs7YivItZEEqe6GbwNfHuxu9YNmvnEkMzKldAGY4/80pRcQRZSEnhquk9XuQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"cb3df145a1b6d1cebf04ecef6280da1ad3e61ac72ced88af22d64412a7ba19bc0d7c7bb1bbd60d9af9c490ccca95d006638ffcd2945c41165212786aba4f57b9\",\"name\":\"media-typer\",\"version\":\"1.1.1\"},\"merge-descriptors-2.0.0.tgz\":{\"integrity\":\"Snk314V5ayFLhp3fkUREub6WtjBfPdCPY1Ln8/8munuLuiYhsABgBVWsozAG+MWMbVEvcdcpbi9R7ww22l9Q3g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4a7937d785796b214b869ddf914444b9be96b6305f3dd08f6352e7f3ff26ba7b8bba2621b000600555aca33006f8c58c6d512f71d7296e2f51ef0c36da5f50de\",\"name\":\"merge-descriptors\",\"version\":\"2.0.0\"},\"merge-stream-2.0.0.tgz\":{\"integrity\":\"abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"69bbffa8e72e3df9375113df0f39995352ca9aec3c913fb49c81ef2ab2a016bc227e897f76859c740e19aac590f0436b14a91debb31fa68fcba2f6c852c6eddf\",\"name\":\"merge-stream\",\"version\":\"2.0.0\"},\"merge2-1.4.1.tgz\":{\"integrity\":\"8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f2aed51203095b827cb5c7d53f2f20d3d35c43065d6f0144aa17bf5999282338e7ff74c60f0b4e098b571b10373bcb4fce97330820e0bfe3f63f9cb4d1924e3a\",\"name\":\"merge2\",\"version\":\"1.4.1\"},\"micromatch-4.0.8.tgz\":{\"integrity\":\"PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3d7c1f06162ed210423f0f039f413e58361beda7f77522d558a8b71c6bfce08745e13c85a02d32b3115dd06a31c3b9d2bf84ff3f3109431b18b0488508aa3604\",\"name\":\"micromatch\",\"version\":\"4.0.8\"},\"mime-2.6.0.tgz\":{\"integrity\":\"USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5123e431e113df5ace3226abb013481d928b1a0bca73f2eb8e87c09c194eb6d7f96a346faa2440f10b1e9db728a1cb4ae9de93b3a6aa657040f976e42ad86242\",\"name\":\"mime\",\"version\":\"2.6.0\"},\"mime-3.0.0.tgz\":{\"integrity\":\"jSCU7/VB1loIWBZe14aEYHU/+1UMEHoaO7qxCOVJOw9GgH72VAWppxNcjU+x9a2k3GSIBXNKxXQFqRvvZ7vr3A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8d2094eff541d65a0858165ed7868460753ffb550c107a1a3bbab108e5493b0f46807ef65405a9a7135c8d4fb1f5ada4dc648805734ac57405a91bef67bbebdc\",\"name\":\"mime\",\"version\":\"3.0.0\"},\"mime-db-1.52.0.tgz\":{\"integrity\":\"sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b0f538b95edd625bed589c70c311c3d0fba285536213b4f201b439496c43081f66518bce82ba103b061040e28f27c0886c4fb51135653a82b5502da7537818be\",\"name\":\"mime-db\",\"version\":\"1.52.0\"},\"mime-db-1.54.0.tgz\":{\"integrity\":\"aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"694e4426e20dd960de982700a76bc505fa7f9b810085626750d492c348b1b3bfe45db77a3e0eb8126c0990d745841f1a5add6c1f60935eb2f1a3f880195de83d\",\"name\":\"mime-db\",\"version\":\"1.54.0\"},\"mime-types-2.1.35.tgz\":{\"integrity\":\"ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"64363e6cf9b9cd34c5f98a42ac053d9cad148080983d3d10b53d4d65616fe2cfbe4cd91c815693d20ebee11dae238323423cf2b07075cf1b962f9d21cda7978b\",\"name\":\"mime-types\",\"version\":\"2.1.35\"},\"mime-types-3.0.2.tgz\":{\"integrity\":\"Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2db833764d21e23ba843d7c22975b86f2d1426a8fe9ce3ab23d309d6c4a3e2723c688d9ea35aa6bd01227b8543d6096c4b6e749f5e4bb16b18b42ba0892b52e4\",\"name\":\"mime-types\",\"version\":\"3.0.2\"},\"mimic-fn-2.1.0.tgz\":{\"integrity\":\"OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3aa6ce939a0441e019f165d6c9d96ef47263cfd59574422f6a63027179aea946234e49c7fecaac5af850def830285451d47a63bcd04a437ee76c9818cc6a8672\",\"name\":\"mimic-fn\",\"version\":\"2.1.0\"},\"mimic-fn-3.1.0.tgz\":{\"integrity\":\"Ysbi9uYW9hFyfrThdDEQuykN4Ey6BuwPD2kpI5ES/nFTDn/98yxYNLZJcgUAKPT/mcrLLKaGzJR9YVxJrIdASQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"62c6e2f6e616f611727eb4e1743110bb290de04cba06ec0f0f6929239112fe71530e7ffdf32c5834b64972050028f4ff99cacb2ca686cc947d615c49ac874049\",\"name\":\"mimic-fn\",\"version\":\"3.1.0\"},\"mimic-function-5.0.1.tgz\":{\"integrity\":\"VP79XUPxV2CigYP3jWwAUFSku2aKqBH7uTAapFWCBqutsbmDo96KY5o8uh6U+/YSIn5OxJnXp73beVkpqMIGhA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"54fefd5d43f15760a28183f78d6c005054a4bb668aa811fbb9301aa4558206abadb1b983a3de8a639a3cba1e94fbf612227e4ec499d7a7bddb795929a8c20684\",\"name\":\"mimic-function\",\"version\":\"5.0.1\"},\"mimic-response-1.0.1.tgz\":{\"integrity\":\"j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8f911cb67907eda99f57fab91e09a86a5d60d901c5251ada3ad9b1d09a48aa4c6106123f9494a5d67329438e6155aaf03444cea161229a7759e102b4447c6ec5\",\"name\":\"mimic-response\",\"version\":\"1.0.1\"},\"mimic-response-3.1.0.tgz\":{\"integrity\":\"z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"cf4c9623ee050ebaf0792f199ade048f91dd266932d79f8bd9ee96827dfe88ae5f5b36fa4f77e1345ab6f8c79345bd3ae1ce96af837fc2fd03cd04e33731cd19\",\"name\":\"mimic-response\",\"version\":\"3.1.0\"},\"min-indent-1.0.1.tgz\":{\"integrity\":\"I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"23d8f0327d3b4b2fc8c0e8f7cd59158a4d894ef8296b29036448a02fa471e8df4b6cccb0c1448cb71113fbb955a032cb7773b7217c09c2fbae9ecf1407f1de02\",\"name\":\"min-indent\",\"version\":\"1.0.1\"},\"minimatch-10.2.6.tgz\":{\"integrity\":\"vpLQEs+VLCr1nU0BXS07maYoFwlDAH0gngQuuttxIwutDFEMHq2blX+8vpgxDdK3J1PwjCJiep77OitTZ4Ll1A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"be92d012cf952c2af59d4d015d2d3b99a628170943007d209e042ebadb71230bad0c510c1ead9b957fbcbe98310dd2b72753f08c22627a9efb3a2b536782e5d4\",\"name\":\"minimatch\",\"version\":\"10.2.6\"},\"minimatch-3.1.5.tgz\":{\"integrity\":\"VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5608d652c9e74fa9fe35493a799abbef37857695b62d60f33facc51ab09b1d789836e9790f3aa4d871d0e6e147d83356e576e9f3e8d5cda78db7de2cb04125e3\",\"name\":\"minimatch\",\"version\":\"3.1.5\"},\"minimatch-5.1.9.tgz\":{\"integrity\":\"7o1wEA2RyMP7Iu7GNba9vc0RWWGACJOCZBJX2GJWip0ikV+wcOsgVuY9uE8CPiyQhkGFSlhuSkZPavN7u1c2Fw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ee8d70100d91c8c3fb22eec635b6bdbdcd11596180089382641257d862568a9d22915fb070eb2056e63db84f023e2c908641854a586e4a464f6af37bbb573617\",\"name\":\"minimatch\",\"version\":\"5.1.9\"},\"minimatch-9.0.9.tgz\":{\"integrity\":\"OBwBN9AL4dqmETlpS2zasx+vTeWclWzkblfZk7KTA5j3jeOONz/tRCnZomUyvNg83wL5Zv9Ss6HMJXAgL8R2Yg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"381c0137d00be1daa61139694b6cdab31faf4de59c956ce46e57d993b2930398f78de38e373fed4429d9a26532bcd83cdf02f966ff52b3a1cc2570202fc47662\",\"name\":\"minimatch\",\"version\":\"9.0.9\"},\"minimist-1.2.8.tgz\":{\"integrity\":\"2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"db2c8047ca8190ddd8ba17896a7529582e54ddb6f9a2c0f2c0d07c4730d5943c031dba1c009bdeaaa8f5bbcf92543ee39164f8cafb070a95aaa96a80c5bd3308\",\"name\":\"minimist\",\"version\":\"1.2.8\"},\"minipass-7.1.3.tgz\":{\"integrity\":\"tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b44047a839c8a0cff5ad7304d738246bd83a43695ca029311cbb9cece0c9e41c5b3f977873667970682d5c092ee7ddb4d02c7b762b874ce61f4810fc9fa9a6f0\",\"name\":\"minipass\",\"version\":\"7.1.3\"},\"minizlib-3.1.0.tgz\":{\"integrity\":\"KZxYo1BUkWD2TVFLr0MQoM8vUUigWD3LlD83a/75BqC+4qE0Hb1Vo5v1FgcfaNXvfXzr+5EhQ6ing/CaBijTlw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"299c58a350549160f64d514baf4310a0cf2f5148a0583dcb943f376bfef906a0bee2a1341dbd55a39bf516071f68d5ef7d7cebfb912143a8a783f09a0628d397\",\"name\":\"minizlib\",\"version\":\"3.1.0\"},\"mkdirp-0.5.6.tgz\":{\"integrity\":\"FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"14ffa9f1107c396a45dd86410ab3f982d0039ad5c0a41e4030b9febddc80f8fcb10a3ac2b34d268f2528cecb0edf77300de4f7c0d19d2f127933ffd8aad1c027\",\"name\":\"mkdirp\",\"version\":\"0.5.6\"},\"mmdb-lib-3.0.3.tgz\":{\"integrity\":\"xQPoBXcNjjHiOvOraFBKtA++uNWF6aCVHL9dRKFXEov8eI3QJwtgiw3qApsonFT5SpoqsEVISUTg3HIDs2DiXw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c503e805770d8e31e23af3ab68504ab40fbeb8d585e9a0951cbf5d44a157128bfc788dd0270b608b0dea029b289c54f94a9a2ab045484944e0dc7203b360e25f\",\"name\":\"mmdb-lib\",\"version\":\"3.0.3\"},\"ms-2.1.3.tgz\":{\"integrity\":\"6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e85973b9b4cb646dc9d9afcd542025784863ceae68c601f268253dc985ef70bb2fa1568726afece715c8ebf5d73fab73ed1f7100eb479d23bfb57b45dd645394\",\"name\":\"ms\",\"version\":\"2.1.3\"},\"nanoid-3.3.18.tgz\":{\"integrity\":\"DTg4MJbGMWkfi6VZFdNt2/caMbQy4Ou+Op/hJQvGEWcnVfoA1QA+xzRKAzw9jD6+GVOOeYr/mIcuDSdug6F6+w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0d38383096c631691f8ba55915d36ddbf71a31b432e0ebbe3a9fe1250bc611672755fa00d5003ec7344a033c3d8c3ebe19538e798aff98872e0d276e83a17afb\",\"name\":\"nanoid\",\"version\":\"3.3.18\"},\"negotiator-1.0.0.tgz\":{\"integrity\":\"8Ofs/AUQh8MaEcrlq5xOX0CQ9ypTF5dl78mjlMNfOK08fzpgTHQRQPBxcPlEtIw0yRpws+Zo/3r+5WRby7u3Gg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f0e7ecfc051087c31a11cae5ab9c4e5f4090f72a53179765efc9a394c35f38ad3c7f3a604c741140f07170f944b48c34c91a70b3e668ff7afee5645bcbbbb71a\",\"name\":\"negotiator\",\"version\":\"1.0.0\"},\"next-themes-0.4.6.tgz\":{\"integrity\":\"pZvgD5L0IEvX5/9GWyHMf3m8BKiVQwsCMHfoFosXtXBMnaS0ZnIJ9ST4b4NqLVKDEm8QBxoNNGNaBv2JNF6XNA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a59be00f92f4204bd7e7ff465b21cc7f79bc04a895430b023077e8168b17b5704c9da4b4667209f524f86f836a2d5283126f10071a0d34635a06fd89345e9734\",\"name\":\"next-themes\",\"version\":\"0.4.6\"},\"node-abi-4.33.0.tgz\":{\"integrity\":\"vLBWCKb+7LWsX+TbfzWOkw0W81m377tyx3hOweBTjO43CXZnRGS1/JPWs20fr0PgZyDXk6ROYrylsEycK8raDA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"bcb05608a6feecb5ac5fe4db7f358e930d16f359b7efbb72c7784ec1e0538cee370976674464b5fc93d6b36d1faf43e06720d793a44e62bca5b04c9c2bcada0c\",\"name\":\"node-abi\",\"version\":\"4.33.0\"},\"node-addon-api-8.9.2.tgz\":{\"integrity\":\"VijLXbi3UACN69I0JVXJsX4tjACjNoQDgv2gTF6sx2wWEi8tkSg2eX8p5gSIFi8z2+DL3oHmY6OyKce38SDolg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5628cb5db8b750008debd2342555c9b17e2d8c00a336840382fda04c5eacc76c16122f2d912836797f29e60488162f33dbe0cbde81e663a3b229c7b7f120e896\",\"name\":\"node-addon-api\",\"version\":\"8.9.2\"},\"node-api-version-0.2.1.tgz\":{\"integrity\":\"2xP/IGGMmmSQpI1+O/k72jF/ykvZ89JeuKX3TLJAYPDVLUalrshrLHkeVcCCZqG/eEa635cr8IBYzgnDvM2O8Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"db13ff20618c9a6490a48d7e3bf93bda317fca4bd9f3d25eb8a5f74cb24060f0d52d46a5aec86b2c791e55c08266a1bf7846badf972bf08058ce09c3bccd8ef1\",\"name\":\"node-api-version\",\"version\":\"0.2.1\"},\"node-domexception-1.0.0.tgz\":{\"integrity\":\"/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"fe3299a0ca70d05f06470978fde2d138f03771f717b4b0293f44332e6513fc7b8f0995b207b218f59acc78ac363bf9c522a3d00773d533d6989b4177d760170d\",\"name\":\"node-domexception\",\"version\":\"1.0.0\"},\"node-fetch-3.3.2.tgz\":{\"integrity\":\"dRB78srN/l6gqWulah9SrxeYnxeddIG30+GOqK/9OlLVyLg3HPnr6SqOWTWOXKRwC2eGYCkZ59NNuSgvSrpgOA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"75107bf2cacdfe5ea0a96ba56a1f52af17989f179d7481b7d3e18ea8affd3a52d5c8b8371cf9ebe92a8e59358e5ca4700b6786602919e7d34db9282f4aba6038\",\"name\":\"node-fetch\",\"version\":\"3.3.2\"},\"node-gyp-12.4.0.tgz\":{\"integrity\":\"OMcPNvqTCFUnNaBlmdgq+lfNqY7gTiSmNRDjY3uAXRyudeKZEZxu3CLtjMQrx4zZxCX2b/mpNqTtwuCJgXhHkw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"38c70f36fa9308552735a06599d82afa57cda98ee04e24a63510e3637b805d1cae75e299119c6edc22ed8cc42bc78cd9c425f66ff9a936a4edc2e08981784793\",\"name\":\"node-gyp\",\"version\":\"12.4.0\"},\"node-gyp-build-4.8.4.tgz\":{\"integrity\":\"LA4ZjwlnUblHVgq0oBF3Jl/6h/Nvs5fzBLwdEF4nuxnFdsfajde4WfxtJr3CaiH+F6ewcIB/q4jQ4UzPyid+CQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2c0e198f096751b947560ab4a01177265ffa87f36fb397f304bc1d105e27bb19c576c7da8dd7b859fc6d26bdc26a21fe17a7b070807fab88d0e14ccfca277e09\",\"name\":\"node-gyp-build\",\"version\":\"4.8.4\"},\"node-int64-0.4.0.tgz\":{\"integrity\":\"O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3b9973f75c5239ea173fa0ee9721df965a6af84834d0c5a2b5921bb4f7e8484bea207765e607dc63a858cc35a78f4a83e6dcf9d8f234f2ef6a52f49579405e1f\",\"name\":\"node-int64\",\"version\":\"0.4.0\"},\"node-releases-2.0.53.tgz\":{\"integrity\":\"D9UOmYG3UH1V+ENW56t5QXBwJw1YEY18ruVeus89Rw+SyIgjPkCO84bRzO3uNIYosJbNwiabWVn48o3uJLjxFQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0fd50e9981b7507d55f84356e7ab79417070270d58118d7caee55ebacf3d470f92c888233e408ef386d1ccedee348628b096cdc2269b5959f8f28dee24b8f115\",\"name\":\"node-releases\",\"version\":\"2.0.53\"},\"nopt-9.0.0.tgz\":{\"integrity\":\"Zhq3a+yFKrYwSBluL4H9XP3m3y5uvQkB/09CwDruCiRmR/UJYnn9W4R48ry0uGC70aeTPKLynBtscP9efFFcPw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"661ab76bec852ab63048196e2f81fd5cfde6df2e6ebd0901ff4f42c03aee0a246647f5096279fd5b8478f2bcb4b860bbd1a7933ca2f29c1b6c70ff5e7c515c3f\",\"name\":\"nopt\",\"version\":\"9.0.0\"},\"normalize-url-6.1.0.tgz\":{\"integrity\":\"DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0e52fe5f03b2dcdc4043cc6e0b4a243e02b8ea2b953402b4d5837b46e79806aa85786b018d5f5798203301d82dfbaebb6c297990f87d12a28a0f09da3c6d48ec\",\"name\":\"normalize-url\",\"version\":\"6.1.0\"},\"npm-run-path-4.0.1.tgz\":{\"integrity\":\"S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4b8f16cd95bbefbce1348ae7ee0c4e94848d02a8bd642fee4059d175b7881e1661080e94aa990e4fc4f51bb06f7dd80fe04afc805e2c51b692d22ed0bc87c25b\",\"name\":\"npm-run-path\",\"version\":\"4.0.1\"},\"npm-run-path-6.0.0.tgz\":{\"integrity\":\"9qny7Z9DsQU8Ou39ERsPU4OZQlSTP47ShQzuKZ6PRXpYLtIFgl/DEBYEXKlvcEa+9tHVcK8CF81Y2V72qaZhWA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f6a9f2ed9f43b1053c3aedfd111b0f5383994254933f8ed2850cee299e8f457a582ed205825fc31016045ca96f7046bef6d1d570af0217cd58d95ef6a9a66158\",\"name\":\"npm-run-path\",\"version\":\"6.0.0\"},\"object-assign-4.1.1.tgz\":{\"integrity\":\"rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ac98134279149c7d6c170f324fa552537cc3dec5a6bbab19848b1e63c557f8646edcfe85ec5bbe24d0e85df9251256cb2529dcdc55101d57b8714e618fe05c52\",\"name\":\"object-assign\",\"version\":\"4.1.1\"},\"object-inspect-1.13.4.tgz\":{\"integrity\":\"W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5baee22e5e09d845c41936df78709f7eb8c37e2b6f2c0360d14957df01545124f1f762974457a0307515812a84fb0be101b8b85aa8c683d733cac4d5d84a5b7b\",\"name\":\"object-inspect\",\"version\":\"1.13.4\"},\"object-keys-1.1.1.tgz\":{\"integrity\":\"NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"36e00449439432b9485ce7c72b30fa6e93eeded62ddf1be335d44843e15e4f494d6f82bc591ef409a0f186e360b92d971be1a39323303b3b0de5992d2267e12c\",\"name\":\"object-keys\",\"version\":\"1.1.1\"},\"object-treeify-1.1.33.tgz\":{\"integrity\":\"EFVjAYfzWqWsBMRHPMAXLCDIJnpMhdWAqR7xG6M6a2cs6PMFpl/+Z20w9zDW4vkxOFfddegBKq9Rehd0bxWE7A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1055630187f35aa5ac04c4473cc0172c20c8267a4c85d580a91ef11ba33a6b672ce8f305a65ffe676d30f730d6e2f9313857dd75e8012aaf517a17746f1584ec\",\"name\":\"object-treeify\",\"version\":\"1.1.33\"},\"obug-2.1.4.tgz\":{\"integrity\":\"4a+OsYv9UktOJKE+l1A4OufDgdRF9PifWj+tJnHURo/P+WOxpG4GzUFL9qCalmWauao6ogiG+QvnCovwPoyAWA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e1af8eb18bfd524b4e24a13e9750383ae7c381d445f4f89f5a3fad2671d4468fcff963b1a46e06cd414bf6a09a96659ab9aa3aa20886f90be70a8bf03e8c8058\",\"name\":\"obug\",\"version\":\"2.1.4\"},\"on-exit-leak-free-2.1.2.tgz\":{\"integrity\":\"0eJJY6hXLGf1udHwfNftBqH+g73EU4B504nZeKpz1sYRKafAghwxEJunB2O7rDZkL4PGfsMVnTXZ2EjibbqcsA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d1e24963a8572c67f5b9d1f07cd7ed06a1fe83bdc4538079d389d978aa73d6c61129a7c0821c31109ba70763bbac36642f83c67ec3159d35d9d848e26dba9cb0\",\"name\":\"on-exit-leak-free\",\"version\":\"2.1.2\"},\"on-finished-2.4.1.tgz\":{\"integrity\":\"oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a15973920dc4340842936cddbfb209c1dfd0503e33d91c51c2991c198f29b0255c09864dab8c189d55802c733e6ebb6e26378f5a2605fc2966b83afc0a1e7e92\",\"name\":\"on-finished\",\"version\":\"2.4.1\"},\"once-1.4.0.tgz\":{\"integrity\":\"lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"94d689808fb643951140191c7042874d038f697754c67659125413658d0c15402e684a9ed44f8dcaf81dcff688c8d8ba67d3333b976fd47f27e7cfc610ba77fb\",\"name\":\"once\",\"version\":\"1.4.0\"},\"onetime-5.1.2.tgz\":{\"integrity\":\"kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"91ba5a4921894d674063928f55e30e2974ab3edafc0bc0bbc287496dcb1de758d19e60fe199bbc63456853a0e6e59e2f5abd0883fd4d2ae59129fee3e5a6984a\",\"name\":\"onetime\",\"version\":\"5.1.2\"},\"onetime-7.0.0.tgz\":{\"integrity\":\"VXJjc87FScF88uafS3JllDgvAm+c/Slfz06lorj2uAY34rlUu0Nt+v8wreiImcrgAjjIHp1rXpTDlLOGw29WwQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"55726373cec549c17cf2e69f4b726594382f026f9cfd295fcf4ea5a2b8f6b80637e2b954bb436dfaff30ade88899cae00238c81e9d6b5e94c394b386c36f56c1\",\"name\":\"onetime\",\"version\":\"7.0.0\"},\"open-11.0.1.tgz\":{\"integrity\":\"NzwMUB6C1D0+Kd+9iMS/H4k+Ck3cTX6Ckyfr/gAGlmvSE1LUQZnEZvWBi4PYmMwH/S5SMeTXnE+9uAz8uF+pWw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"373c0c501e82d43d3e29dfbd88c4bf1f893e0a4ddc4d7e829327ebfe0006966bd21352d44199c466f5818b83d898cc07fd2e5231e4d79c4fbdb80cfcb85fa95b\",\"name\":\"open\",\"version\":\"11.0.1\"},\"open-8.4.2.tgz\":{\"integrity\":\"7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ef1f353422fbd7da0d6ecabfde687e855ac05a616e11852aaeafc8c37914cc7f117b2a53f5043404ba094bbfc6f64e8df355e35b8a875ad8d6c1effd78bcb511\",\"name\":\"open\",\"version\":\"8.4.2\"},\"ora-8.2.0.tgz\":{\"integrity\":\"weP+BZ8MVNnlCm8c0Qdc1WSWq4Qn7I+9CJGm7Qali6g44e/PUzbjNqJX5NJ9ljlNMosfJvg1fKEGILklK9cwnw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c1e3fe059f0c54d9e50a6f1cd1075cd56496ab8427ec8fbd0891a6ed06a58ba838e1efcf5336e336a257e4d27d96394d328b1f26f8357ca10620b9252bd7309f\",\"name\":\"ora\",\"version\":\"8.2.0\"},\"p-cancelable-2.1.1.tgz\":{\"integrity\":\"BZOr3nRQHOntUjTrH8+Lh54smKHoHyur8We1V8DSMVrl5A2malOOwuJRnKRDjSnkoeBh4at6BwEnb5I7Jl31wg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0593abde74501ce9ed5234eb1fcf8b879e2c98a1e81f2babf167b557c0d2315ae5e40da66a538ec2e2519ca4438d29e4a1e061e1ab7a0701276f923b265df5c2\",\"name\":\"p-cancelable\",\"version\":\"2.1.1\"},\"p-limit-2.3.0.tgz\":{\"integrity\":\"//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ffff3c985592271f25c42cf07400014c92f6332581d76f9e218ecc0cbd92a8b98091e294f6ac51bd6b92c938e6dc5526a4110cb857dc90022a11a546503c5beb\",\"name\":\"p-limit\",\"version\":\"2.3.0\"},\"p-limit-3.1.0.tgz\":{\"integrity\":\"TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4d839a9ccdf01b0346b193767154d83c0af0e39e319d78f9aa6585d5b12801ce3e714fe897b19587ba1d7af8e9d4534776e1dcdca64c70576ec54e5773ab8945\",\"name\":\"p-limit\",\"version\":\"3.1.0\"},\"p-locate-3.0.0.tgz\":{\"integrity\":\"x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c7ed76c3f4e8fb81857e0261044a620dc2e8cd12467a063e122effcf4b522e4326c4664dc9b54c49f5a3f5a267f19e4573b74150d24e39580fbf61fb230ba549\",\"name\":\"p-locate\",\"version\":\"3.0.0\"},\"p-try-2.2.0.tgz\":{\"integrity\":\"R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4789cf0154c053407d0f7e7f1a4dee25fffb5d86d0732a2148a76f03121148d821165e1eef5855a069c1350cfd716697c4ed88d742930bede331dbefa0ac3a75\",\"name\":\"p-try\",\"version\":\"2.2.0\"},\"parent-module-1.0.1.tgz\":{\"integrity\":\"GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"190d84591a5057cfe8f80c3c62ab5f6593df3515996246e2744f64e6ba65fe10b7bed1c705f1a6d887e2eaa595f9ca031a4ad42990311372e8b7991cb11961fa\",\"name\":\"parent-module\",\"version\":\"1.0.1\"},\"parse-json-5.2.0.tgz\":{\"integrity\":\"ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6b208abe6fe98421b13a461148233cda20f072df3f1289d2120092c56c43eef7ba8c7820b059787d955004f44d810a0a8ae57fa1d845ac6cd05d9c1b89f0bc46\",\"name\":\"parse-json\",\"version\":\"5.2.0\"},\"parse-ms-4.0.0.tgz\":{\"integrity\":\"TXfryirbmq34y8QBwgqCVLi+8oA3oWx2eAnSn62ITyEhEYaWRlVZ2DvMM9eZbMs/RfxPu/PK/aBLyGj4IrqMHw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4d77ebca2adb9aadf8cbc401c20a8254b8bef28037a16c767809d29fad884f2121118696465559d83bcc33d7996ccb3f45fc4fbbf3cafda04bc868f822ba8c1f\",\"name\":\"parse-ms\",\"version\":\"4.0.0\"},\"parse-torrent-11.0.24.tgz\":{\"integrity\":\"6nNWYiJq6egD8pMqZYL1mfnAly9ZH32DHkAYgZuAfwWij52ce7e3BtrWGVw2q1Bpb5Us8YQVGN7ML/47z/bVIA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ea735662226ae9e803f2932a6582f599f9c0972f591f7d831e4018819b807f05a28f9d9c7bb7b706dad6195c36ab50696f952cf1841518decc2ffe3bcff6d520\",\"name\":\"parse-torrent\",\"version\":\"11.0.24\"},\"parse5-8.0.1.tgz\":{\"integrity\":\"z1e/HMG90obSGeidlli3hj7cbocou0/wa5HacvI3ASx34PecNjNQeaHNo5WIZpWofN9kgkqV1q5YvXe3F0FoPw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"cf57bf1cc1bdd286d219e89d9658b7863edc6e8728bb4ff06b91da72f237012c77e0f79c36335079a1cda395886695a87cdf64824a95d6ae58bd77b71741683f\",\"name\":\"parse5\",\"version\":\"8.0.1\"},\"parseurl-1.3.3.tgz\":{\"integrity\":\"CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0a2c9e3b1153fc96723799b4cfd3df5f0e1208127a4b2833d43a65d30aa39610c418604fd469ec51510bd29eb78681b57dc8f77c7ca75e2f4d60ee2758e2fea9\",\"name\":\"parseurl\",\"version\":\"1.3.3\"},\"path-browserify-1.0.1.tgz\":{\"integrity\":\"b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6fbba8d9409439865c9c5ff7203d25ba53898bf6da7f16b5c4f7bb64fb1a9a6052a634964248cdc65b7adf96064b632247d1a3bee5c2b73d9e9abde36eccfdf2\",\"name\":\"path-browserify\",\"version\":\"1.0.1\"},\"path-exists-3.0.0.tgz\":{\"integrity\":\"bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6e90bb198c220d8438c182def8503c96146385008c7101ae4a0186a83920fd07ab456c3d0a61914f4892395452649dbd34c2d9808cea6a58c9eb7a1a2f834825\",\"name\":\"path-exists\",\"version\":\"3.0.0\"},\"path-is-absolute-1.0.1.tgz\":{\"integrity\":\"AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0156f0dd42767bd6eaeb8bd2692f409b47e37b53daf296c6a934ec9977da2223299ebe4394385f24eb8b8fd49ff7964f5430147ab0df124f3c30f98f7bb50242\",\"name\":\"path-is-absolute\",\"version\":\"1.0.1\"},\"path-key-3.1.1.tgz\":{\"integrity\":\"ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a2399e374a9dfb2d23b3312da18e3caf43deab97703049089423aee90e5fe3595f92cc17b8ab58ae18284e92e7c887079b6e1486ac7ee53aa6d889d2c0b844e9\",\"name\":\"path-key\",\"version\":\"3.1.1\"},\"path-key-4.0.0.tgz\":{\"integrity\":\"haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"85a444ca9abbc6433b12b7e0232034cfe063e0018a94c49d9501368ef268ea1b960f511d90a615f86fd3e27ab4604176be04d3f24a8c14aa35b879fde74af849\",\"name\":\"path-key\",\"version\":\"4.0.0\"},\"path-scurry-2.0.2.tgz\":{\"integrity\":\"3O/iVVsJAPsOnpwWIeD+d6z/7PmqApyQePUtCndjatj/9I5LylHvt5qluFaBT3I5h3r1ejfR056c+FCv+NnNXg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"dcefe2555b0900fb0e9e9c1621e0fe77acffecf9aa029c9078f52d0a77636ad8fff48e4bca51efb79aa5b856814f7239877af57a37d1d39e9cf850aff8d9cd5e\",\"name\":\"path-scurry\",\"version\":\"2.0.2\"},\"path-to-regexp-8.4.2.tgz\":{\"integrity\":\"qRcuIdP69NPm4qbACK+aDogI5CBDMi1jKe0ry5rSQJz8JVLsC7jV8XpiJjGRLLol3N+R5ihGYcrPLTno6pAdBA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a9172e21d3faf4d3e6e2a6c008af9a0e8808e42043322d6329ed2bcb9ad2409cfc2552ec0bb8d5f17a622631912cba25dcdf91e6284661cacf2d39e8ea901d04\",\"name\":\"path-to-regexp\",\"version\":\"8.4.2\"},\"pathe-2.0.3.tgz\":{\"integrity\":\"WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5948c6700a8fd6041a72841ef8e049b0503b2dde03c97b9422367971cef970b1ef27b76d36c4ee8298712000f0b294be02b68051e3c22ab495b4f2c58ff17cf3\",\"name\":\"pathe\",\"version\":\"2.0.3\"},\"pe-library-0.4.1.tgz\":{\"integrity\":\"eRWB5LBz7PpDu4PUlwT0PhnQfTQJlDDdPa35urV4Osrm0t0AqQFGn+UIkU3klZvwJ8KPO3VbBFsXquA6p6kqZw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"791581e4b073ecfa43bb83d49704f43e19d07d34099430dd3dadf9bab5783acae6d2dd00a901469fe508914de4959bf027c28f3b755b045b17aae03aa7a92a67\",\"name\":\"pe-library\",\"version\":\"0.4.1\"},\"pend-1.2.0.tgz\":{\"integrity\":\"F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1776acbf8d94b97721773b7ec57a9f5b538695505efa6c5ada6a88d29839c801d93ef16663763a76b49ffc643503ce9681610df4ace1fd6ae029aea219c1d72e\",\"name\":\"pend\",\"version\":\"1.2.0\"},\"picocolors-1.1.1.tgz\":{\"integrity\":\"xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c5c787dac9e1b5be4cf658aa0ec984c39ea57b7efa993664117fe311bfd1c4d1727a036e97b78db250973fd1438ff2dcbb45fc284c8c71e3f69eda5a1eb0c454\",\"name\":\"picocolors\",\"version\":\"1.1.1\"},\"picomatch-2.3.2.tgz\":{\"integrity\":\"V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"57bfaf404274e99f9ce6d4b27bc4be9c751f239d71a172178c743df5c42d294910aaa3b590efca08951f657b81e3b87f60194385a8761f785d5065e7f227b4a0\",\"name\":\"picomatch\",\"version\":\"2.3.2\"},\"picomatch-4.0.5.tgz\":{\"integrity\":\"RvwwcruNjI1ncT5xRakeyS9Lf8lcItv34KD+aif+VH9kduAyfYBipGh12274xtenIPZ119/R9BdTBa8gAwSh0A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"46fc3072bb8d8c8d67713e7145a91ec92f4b7fc95c22dbf7e0a0fe6a27fe547f6476e0327d8062a46875db6ef8c6d7a720f675d7dfd1f4175305af200304a1d0\",\"name\":\"picomatch\",\"version\":\"4.0.5\"},\"pino-10.3.1.tgz\":{\"integrity\":\"r34yH/GlQpKZbU1BvFFqOjhISRo1MNx1tWYsYvmj6KIRHSPMT2+yHOEb1SG6NMvRoHRF0a07kCOox/9yakl1vg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"af7e321ff1a54292996d4d41bc516a3a3848491a3530dc75b5662c62f9a3e8a2111d23cc4f6fb21ce11bd521ba34cbd1a07445d1ad3b9023a8c7ff726a4975be\",\"name\":\"pino\",\"version\":\"10.3.1\"},\"pino-abstract-transport-3.0.0.tgz\":{\"integrity\":\"wlfUczU+n7Hy/Ha5j9a/gZNy7We5+cXp8YL+X+PG8S0KXxw7n/JXA3c46Y0zQznIJ83URJiwy7Lh56WLokNuxg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c257d473353e9fb1f2fc76b98fd6bf819372ed67b9f9c5e9f182fe5fe3c6f12d0a5f1c3b9ff257037738e98d334339c827cdd44498b0cbb2e1e7a58ba2436ec6\",\"name\":\"pino-abstract-transport\",\"version\":\"3.0.0\"},\"pino-pretty-13.1.3.tgz\":{\"integrity\":\"ttXRkkOz6WWC95KeY9+xxWL6AtImwbyMHrL1mSwqwW9u+vLp/WIElvHvCSDg0xO/Dzrggz1zv3rN5ovTRVowKg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b6d5d19243b3e96582f7929e63dfb1c562fa02d226c1bc8c1eb2f5992c2ac16f6efaf2e9fd620496f1ef0920e0d313bf0f3ae0833d73bf7acde68bd3455a302a\",\"name\":\"pino-pretty\",\"version\":\"13.1.3\"},\"pino-std-serializers-7.1.0.tgz\":{\"integrity\":\"BndPH67/JxGExRgiX1dX0w1FvZck5Wa4aal9198SrRhZjH3GxKQUKIBnYJTdj2HDN3UQAS06HlfcSbQj2OHmaw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"06774f1faeff271184c518225f5757d30d45bd9724e566b869a97dd7df12ad18598c7dc6c4a4142880676094dd8f61c3377510012d3a1e57dc49b423d8e1e66b\",\"name\":\"pino-std-serializers\",\"version\":\"7.1.0\"},\"pkce-challenge-5.0.1.tgz\":{\"integrity\":\"wQ0b/W4Fr01qtpHlqSqspcj3EhBvimsdh0KlHhH8HRZnMsEa0ea2fTULOXOS9ccQr3om+GcGRk4e+isrZWV8qQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c10d1bfd6e05af4d6ab691e5a92aaca5c8f712106f8a6b1d8742a51e11fc1d166732c11ad1e6b67d350b397392f5c710af7a26f86706464e1efa2b2b65657ca9\",\"name\":\"pkce-challenge\",\"version\":\"5.0.1\"},\"pkg-up-3.1.0.tgz\":{\"integrity\":\"nDywThFk1i4BQK4twPQ6TA4RT8bDY96yeuCVBWL3ePARCiEKDRSrNGbFIgUJpLp+XeIR65v8ra7WuJOFUBtkMA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9c3cb04e1164d62e0140ae2dc0f43a4c0e114fc6c363deb27ae0950562f778f0110a210a0d14ab3466c5220509a4ba7e5de211eb9bfcadaed6b89385501b6430\",\"name\":\"pkg-up\",\"version\":\"3.1.0\"},\"pkijs-3.4.0.tgz\":{\"integrity\":\"emEcLuomt2j03vxD54giVB4SxTjnsqkU692xZOZXHDVoYyypEm+b3jpiTcc+Cf+myooc+/Ly0z01jqeNHVgJGw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7a611c2eea26b768f4defc43e78822541e12c538e7b2a914ebddb164e6571c3568632ca9126f9bde3a624dc73e09ffa6ca8a1cfbf2f2d33d358ea78d1d58091b\",\"name\":\"pkijs\",\"version\":\"3.4.0\"},\"playwright-1.62.1.tgz\":{\"integrity\":\"0M+L3LAD8/nm554LOla9Ayx0j0tmFZ0FBcoQ7F1VuVHpM/XpiC8RcDzBQB8W5+hA8L22THxELzeF+2WcUzvcLg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d0cf8bdcb003f3f9e6e79e0b3a56bd032c748f4b66159d0505ca10ec5d55b951e933f5e9882f11703cc1401f16e7e840f0bdb64c7c442f3785fb659c533bdc2e\",\"name\":\"playwright\",\"version\":\"1.62.1\"},\"playwright-core-1.62.1.tgz\":{\"integrity\":\"wPYSwEBJY9GHraISXqyqtx0na0LpO3XEX7jNDhntbex7tzUS7kLnZsOlFruFJB4Hi/rhDMjXGqHewDZ68nYZVw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c0f612c0404963d187ada2125eacaab71d276b42e93b75c45fb8cd0e19ed6dec7bb73512ee42e766c3a516bb85241e078bfae10cc8d71aa1dec0367af2761957\",\"name\":\"playwright-core\",\"version\":\"1.62.1\"},\"plist-3.1.0.tgz\":{\"integrity\":\"uysumyrvkUX0rX/dEVqt8gC3sTBzd4zoWfLeS29nb53imdaXVvLINYXTI2GNqzaMuvacNx4uJQ8+b3zXR0pkgQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"bb2b2e9b2aef9145f4ad7fdd115aadf200b7b13073778ce859f2de4b6f676f9de299d69756f2c83585d323618dab368cbaf69c371e2e250f3e6f7cd7474a6481\",\"name\":\"plist\",\"version\":\"3.1.0\"},\"postcss-8.5.26.tgz\":{\"integrity\":\"u82N74LFzG8ca+dD8puPnplTXoGH4fTPpVGuIbt36G3qvNlkvfD0lEAZSxaly3KX8TS/L1A1gsCEmvKmBcVbkQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"bbcd8def82c5cc6f1c6be743f29b8f9e99535e8187e1f4cfa551ae21bb77e86deabcd964bdf0f49440194b16a5cb7297f134bf2f503582c0849af2a605c55b91\",\"name\":\"postcss\",\"version\":\"8.5.26\"},\"postcss-selector-parser-7.1.5.tgz\":{\"integrity\":\"KvvtD7SrlBP7dlgkBghEE3r84CABm5SmV2aNcG4oCA+qDnJ/tvKonFVvwWAyyWUEwxuNawdfEAZKP9zM3oZ2Uw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2afbed0fb4ab9413fb765824060844137afce020019b94a657668d706e28080faa0e727fb6f2a89c556fc16032c96504c31b8d6b075f10064a3fdcccde867653\",\"name\":\"postcss-selector-parser\",\"version\":\"7.1.5\"},\"postject-1.0.0-alpha.6.tgz\":{\"integrity\":\"b9Eb8h2eVqNE8edvKdwqkrY6O7kAwmI8kcnBv1NScolYJbo59XUF0noFq+lxbC1yN20bmC0WBEbDC5H/7ASb0A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6fd11bf21d9e56a344f1e76f29dc2a92b63a3bb900c2623c91c9c1bf535272895825ba39f57505d27a05abe9716c2d72376d1b982d160446c30b91ffec049bd0\",\"name\":\"postject\",\"version\":\"1.0.0-alpha.6\"},\"powershell-utils-0.1.0.tgz\":{\"integrity\":\"dM0jVuXJPsDN6DvRpea484tCUaMiXWjuCn++HGTqUWzGDjv5tZkEZldAJ/UMlqRYGFrD/etByo4/xOuC/snX2A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"74cd2356e5c93ec0cde83bd1a5e6b8f38b4251a3225d68ee0a7fbe1c64ea516cc60e3bf9b5990466574027f50c96a458185ac3fdeb41ca8e3fc4eb82fec9d7d8\",\"name\":\"powershell-utils\",\"version\":\"0.1.0\"},\"powershell-utils-0.2.0.tgz\":{\"integrity\":\"ZlsFlG7MtSFCoc5xreOvBAozCJ6Pf06opgJjh9ONEv418xpZSAzNjstD36C6+JwOnfSqOW/9uDkqKjezTdxZhw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"665b05946eccb52142a1ce71ade3af040a33089e8f7f4ea8a6026387d38d12fe35f31a59480ccd8ecb43dfa0baf89c0e9df4aa396ffdb8392a2a37b34ddc5987\",\"name\":\"powershell-utils\",\"version\":\"0.2.0\"},\"pretty-format-27.5.1.tgz\":{\"integrity\":\"Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"41bd60cb93ab3f9fb30dfd81be7cdd9778ec4dfd6a5d531acdbbc2a0a86d2aa56ce3f60ae28cd7e2029024957235ef9c6a334f9f42a80b4302dc552668758499\",\"name\":\"pretty-format\",\"version\":\"27.5.1\"},\"pretty-ms-9.3.0.tgz\":{\"integrity\":\"gjVS5hOP+M3wMm5nmNOucbIrqudzs9v/57bWRHQWLYklXqoXKrVfYW2W9+glfGsqtPgpiz5WwyEEB+ksXIx3gQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"823552e6138ff8cdf0326e6798d3ae71b22baae773b3dbffe7b6d64474162d89255eaa172ab55f616d96f7e8257c6b2ab4f8298b3e56c3210407e92c5c8c7781\",\"name\":\"pretty-ms\",\"version\":\"9.3.0\"},\"proc-log-6.1.0.tgz\":{\"integrity\":\"iG+GYldRf2BQ0UDUAd6JQ/RwzaQy6mXmsk/IzlYyal4A4SNFw54MeH4/tLkF4I5WoWG9SQwuqWzS99jaFQHBuQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"886f866257517f6050d140d401de8943f470cda432ea65e6b24fc8ce56326a5e00e12345c39e0c787e3fb4b905e08e56a161bd490c2ea96cd2f7d8da1501c1b9\",\"name\":\"proc-log\",\"version\":\"6.1.0\"},\"process-nextick-args-2.0.1.tgz\":{\"integrity\":\"3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"de8b943a9421b60adb39ad7b27bfaec4e4e92136166863fbfc0868477f80fbfd5ef6c92bcde9468bf757cc4632bdbc6e6c417a5a7db2a6c7132a22891459f56a\",\"name\":\"process-nextick-args\",\"version\":\"2.0.1\"},\"process-warning-4.0.1.tgz\":{\"integrity\":\"3c2LzQ3rY9d0hc1emcsHhfT9Jwz0cChib/QN89oME2R451w5fy3f0afAhERFZAwrbDU43wk12d0ORBpDVME50Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ddcd8bcd0deb63d77485cd5e99cb0785f4fd270cf47028626ff40df3da0c136478e75c397f2ddfd1a7c0844445640c2b6c3538df0935d9dd0e441a4354c139d1\",\"name\":\"process-warning\",\"version\":\"4.0.1\"},\"process-warning-5.1.0.tgz\":{\"integrity\":\"jQSaVHsPgtyw60e1rQ/A+/ArPEj/S8pS/vFnyGa/gYFXrKk/6RuDkoqVDQ5NI5MmS01698ltlAk0NoDBNLujRw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8d049a547b0f82dcb0eb47b5ad0fc0fbf02b3c48ff4bca52fef167c866bf818157aca93fe91b83928a950d0e4d2393264b4d7af7c96d9409343680c134bba347\",\"name\":\"process-warning\",\"version\":\"5.1.0\"},\"progress-2.0.3.tgz\":{\"integrity\":\"7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ecf887b4b965e4b767288330d74d08fbcc495d1e605b6430598913ea226f6b46d78ad64a6bf5ccad26dd9a0debd979da89dcfd42e99dd153da32b66517d57db0\",\"name\":\"progress\",\"version\":\"2.0.3\"},\"promise-retry-2.0.1.tgz\":{\"integrity\":\"y+WKFlBR8BGXnsNlIHFGPZmyDf3DFMoLhaflAnyZgV6rG6xu+JwesTo2Q9R6XwYmtmwAFCkAk3e35jEdoeh/3g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"cbe58a165051f011979ec3652071463d99b20dfdc314ca0b85a7e5027c99815eab1bac6ef89c1eb13a3643d47a5f0626b66c001429009377b7e6311da1e87fde\",\"name\":\"promise-retry\",\"version\":\"2.0.1\"},\"prompts-2.4.2.tgz\":{\"integrity\":\"NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"37136ffe42e0b8203ba778c4f282f668406cac95a001a901a609a02ba9693d657e5ae3a663aaf6ff36c05673fe4fc6d0940d27cc75d2252256d07abbca5683d9\",\"name\":\"prompts\",\"version\":\"2.4.2\"},\"proper-lockfile-4.1.2.tgz\":{\"integrity\":\"TjNPblN4BwAWMXU8s9AEz4JmQxnD1NNL7bNOY/AKUzyamc379FWASUhc/K1pL2noVb+XmZKLL68cjzLsiOAMaA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4e334f6e537807001631753cb3d004cf82664319c3d4d34bedb34e63f00a533c9a99cdfbf4558049485cfcad692f69e855bf9799928b2faf1c8f32ec88e00c68\",\"name\":\"proper-lockfile\",\"version\":\"4.1.2\"},\"proxy-addr-2.0.7.tgz\":{\"integrity\":\"llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"96542c30b4940d43d3e388ddad4fcedfbaa59e27e2b433fe670ae699972848ac8b2afb59c69c95d27dbf6c3fcde2d040019fe024475953b28cadaa0ad7e5d802\",\"name\":\"proxy-addr\",\"version\":\"2.0.7\"},\"proxy-chain-3.0.0.tgz\":{\"integrity\":\"p9DbNWMUCn8FJz9u+RTO82fwD3NFoYZgax5vtxd0FYPQ6IwpxX65WxeL64Fm/hZQVS2+bWB+XRy3+iDVaBsUeg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a7d0db3563140a7f05273f6ef914cef367f00f7345a186606b1e6fb717741583d0e88c29c57eb95b178beb8166fe1650552dbe6d607e5d1cb7fa20d5681b147a\",\"name\":\"proxy-chain\",\"version\":\"3.0.0\"},\"pump-3.0.4.tgz\":{\"integrity\":\"VS7sjc6KR7e1ukRFhQSY5LM2uBWAUPiOPa/A3mkKmiMwSmRFUITt0xuj+/lesgnCv+dPIEYlkzrcyXgquIHMcA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"552eec8dce8a47b7b5ba4445850498e4b336b8158050f88e3dafc0de690a9a23304a64455084edd31ba3fbf95eb209c2bfe74f204625933adcc9782ab881cc70\",\"name\":\"pump\",\"version\":\"3.0.4\"},\"punycode-2.3.1.tgz\":{\"integrity\":\"vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"bd8b7b503d54f5683ad77f2c84bb4b3af740bbef03b02fe2945b44547707fb0c9d712a4d136d007d239db9fe8c91115a84be4563b5f5a14ee7295645b5fabc16\",\"name\":\"punycode\",\"version\":\"2.3.1\"},\"pvtsutils-1.3.6.tgz\":{\"integrity\":\"PLgQXQ6H2FWCaeRak8vvk1GW462lMxB5s3Jm673N82zI4vqtVUPuZdffdZbPDFRoU8kAhItWFtPCWiPpp4/EDg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3cb8105d0e87d8558269e45a93cbef935196e3ada5331079b37266ebbdcdf36cc8e2faad5543ee65d7df7596cf0c546853c900848b5616d3c25a23e9a78fc40e\",\"name\":\"pvtsutils\",\"version\":\"1.3.6\"},\"pvutils-1.2.0.tgz\":{\"integrity\":\"BbubeCEyTuQjVMakvJQ/Sxbc93F2pwmbsxONT/ZRrwU7Ua38d8unYTwXpTVLAKJ4BDuH9IGztCjQcd/N/39Dvg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"05bb9b7821324ee42354c6a4bc943f4b16dcf77176a7099bb3138d4ff651af053b51adfc77cba7613c17a5354b00a278043b87f481b3b428d071dfcdff7f43be\",\"name\":\"pvutils\",\"version\":\"1.2.0\"},\"qs-6.15.3.tgz\":{\"integrity\":\"O9gl3zCl5h5blw1KGUzQKhA5oUXSl8rwUIM5o0S3nCXMliSvy5Dzx7/DJcI+SwgICv+IneSZwhBh1oSyEHA71A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3bd825df30a5e61e5b970d4a194cd02a1039a145d297caf0508339a344b79c25cc9624afcb90f3c7bfc325c23e4b08080aff889de499c21061d684b210703bd4\",\"name\":\"qs\",\"version\":\"6.15.3\"},\"queue-microtask-1.2.3.tgz\":{\"integrity\":\"NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"36e68d49ae9f94a4f925a498433268934e09cd32f5080e9a1a1bf9adf2d6dcf82a03e3360a1a59427002f21f22e19164052f17e51aa40c11c0eebe217a3dcaf4\",\"name\":\"queue-microtask\",\"version\":\"1.2.3\"},\"quick-format-unescaped-4.0.4.tgz\":{\"integrity\":\"tYC1Q1hgyRuHgloV/YXs2w15unPVh8qfu/qCTfhTYamaw7fyhumKa2yGpdSo87vY32rIclj+4fWYQXUMs9EHvg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b580b5435860c91b87825a15fd85ecdb0d79ba73d587ca9fbbfa824df85361a99ac3b7f286e98a6b6c86a5d4a8f3bbd8df6ac87258fee1f59841750cb3d107be\",\"name\":\"quick-format-unescaped\",\"version\":\"4.0.4\"},\"quick-lru-5.1.1.tgz\":{\"integrity\":\"WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5aec802d18d63c31adb7fc3326269d3b901763ef2167cd215697ba3328af82b691116ef9d57dd26e146f1b778b28e60dfbc544bea2dc7f7c1d9ede386784b848\",\"name\":\"quick-lru\",\"version\":\"5.1.1\"},\"quickjs-emscripten-0.32.0.tgz\":{\"integrity\":\"So0Sqw869y/S2oE3Nuc0uT3Dhqgvsj8FSrwBdsuTosVsG8ME5/OcudU1GxsrIFdFABgy17GHnTVO9TYV/bLQcA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4a8d12ab0f3af72fd2da813736e734b93dc386a82fb23f054abc0176cb93a2c56c1bc304e7f39cb9d5351b1b2b205745001832d7b1879d354ef53615fdb2d070\",\"name\":\"quickjs-emscripten\",\"version\":\"0.32.0\"},\"quickjs-emscripten-core-0.32.0.tgz\":{\"integrity\":\"QFnPfjFey8EqknSrSxe1hZrf1/8z7/6s1QzGOmKo6++02r7QRRX7ZoyNaZh7JuVjWsVW87KnQrbZqnHkOAzUyg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4059cf7e315ecbc12a9274ab4b17b5859adfd7ff33effeacd50cc63a62a8ebefb4dabed04515fb668c8d69987b26e5635ac556f3b2a742b6d9aa71e4380cd4ca\",\"name\":\"quickjs-emscripten-core\",\"version\":\"0.32.0\"},\"range-parser-1.3.0.tgz\":{\"integrity\":\"hek2mFQpPuI4E1BBKrSto+BU3e3x4xuarsbiwr3+lf7p44juvFMV0XFWQAP3xUyqXA4RrXLIoaSUGbSt056ZMw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"85e9369854293ee2381350412ab4ada3e054ddedf1e31b9aaec6e2c2bdfe95fee9e388eebc5315d171564003f7c54caa5c0e11ad72c8a1a49419b4add39e9933\",\"name\":\"range-parser\",\"version\":\"1.3.0\"},\"raw-body-3.0.2.tgz\":{\"integrity\":\"K5zQjDllxWkf7Z5xJdV0/B0WTNqx6vxG70zJE4N0kBs4LovmEYWJzQGxC9bS9RAKu3bgM40lrd5zoLJ12MQ5BA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2b9cd08c3965c5691fed9e7125d574fc1d164cdab1eafc46ef4cc9138374901b382e8be6118589cd01b10bd6d2f5100abb76e0338d25adde73a0b275d8c43904\",\"name\":\"raw-body\",\"version\":\"3.0.2\"},\"react-19.2.8.tgz\":{\"integrity\":\"PWaYA1L/q9u2u7xYQi+Y3L3Yfnie7XyLeaJICV1MGD6LprsBxcAqGjYyr0eY3p+QdsA+x/Irkt4Qif8D63+Sbw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3d66980352ffabdbb6bbbc58422f98dcbdd87e789eed7c8b79a248095d4c183e8ba6bb01c5c02a1a3632af4798de9f9076c03ec7f22b92de1089ff03eb7f926f\",\"name\":\"react\",\"version\":\"19.2.8\"},\"react-dom-19.2.8.tgz\":{\"integrity\":\"rVprimfGBG3DR+Tq0IQG2DT5PxKth1WIGDmj5yPmlzr4YBe7uyE+Du4oVqTDXZSHGGGXRtTJEGSSePyQCMBglQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ad5a6b8a67c6046dc347e4ead08406d834f93f12ad8755881839a3e723e6973af86017bbbb213e0eee2856a4c35d948718619746d4c910649278fc9008c06095\",\"name\":\"react-dom\",\"version\":\"19.2.8\"},\"react-hook-form-7.85.0.tgz\":{\"integrity\":\"U2MTriFXnclmV4rOE20p2DcRFv5WEg3FIcBFOKcOLFHDVvGIMPvLTkTWefUsonmlaVy23khVDxDWym6uJVGOzw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"536313ae21579dc966578ace136d29d8371116fe56120dc521c04538a70e2c51c356f18830fbcb4e44d679f52ca279a5695cb6de48550f10d6ca6eae25518ecf\",\"name\":\"react-hook-form\",\"version\":\"7.85.0\"},\"react-i18next-17.0.11.tgz\":{\"integrity\":\"cDtkXgxjuFTWUH6V+aQn1Ve5vDiUztCNPWW5GtSHDccsgRXO1nE6QFWCEmc1KAutrb3OUv87wFShJL5RhUwPXg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"703b645e0c63b854d6507e95f9a427d557b9bc3894ced08d3d65b91ad4870dc72c8115ced6713a405582126735280badadbdce52ff3bc054a124be51854c0f5e\",\"name\":\"react-i18next\",\"version\":\"17.0.11\"},\"react-is-17.0.2.tgz\":{\"integrity\":\"w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c361accae90beb62099e569f7ff9d17a03d047de02fd75da9af3169921d1278cbb4ecff8a1c1919931ef3acf0f484ea90777563ab0ff9ee7ae539b1db81b10e3\",\"name\":\"react-is\",\"version\":\"17.0.2\"},\"react-is-19.2.8.tgz\":{\"integrity\":\"s5un28nYxKJw5gvUHyW5PCC28CvBqLu9r3cWgzHT4Vo/5fqqkFcdRYsGcKf50WMPpjjFZS5d76fn3YCo2njKwQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b39ba7dbc9d8c4a270e60bd41f25b93c20b6f02bc1a8bbbdaf77168331d3e15a3fe5faaa90571d458b0670a7f9d1630fa638c5652e5defa7e7dd80a8da78cac1\",\"name\":\"react-is\",\"version\":\"19.2.8\"},\"react-redux-9.3.0.tgz\":{\"integrity\":\"KQopgqFo/p/fgmAs5qz6p5RWaNAzq40WAu7fJIXnQpYxFPbJYtsJPWvGeF2rOBaY/kEuV77AVsX8TsQzKm+A/g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"290a2982a168fe9fdf82602ce6acfaa7945668d033ab8d1602eedf2485e742963114f6c962db093d6bc6785dab381698fe412e57bec056c5fc4ec4332a6f80fe\",\"name\":\"react-redux\",\"version\":\"9.3.0\"},\"react-remove-scroll-2.7.2.tgz\":{\"integrity\":\"Iqb9NjCCTt6Hf+vOdNIZGdTiH1QSqr27H/Ek9sv/a97gfueI/5h1s3yRi1nngzMUaOOToin5dI1dXKdXiF+u0Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"22a6fd3630824ede877febce74d21919d4e21f5412aabdbb1ff124f6cbff6bdee07ee788ff9875b37c918b59e783331468e393a229f9748d5d5ca757885faed1\",\"name\":\"react-remove-scroll\",\"version\":\"2.7.2\"},\"react-remove-scroll-bar-2.3.8.tgz\":{\"integrity\":\"9r+yi9+mgU33AKcj6IbT9oRCO78WriSj6t/cF8DWBZJ9aOGPOTEDvdUDz1FwKim7QXWwmHqtdHnRJfhAxEG46Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f6bfb28bdfa6814df700a723e886d3f684423bbf16ae24a3eadfdc17c0d605927d68e18f393103bdd503cf51702a29bb4175b0987aad7479d125f840c441b8e9\",\"name\":\"react-remove-scroll-bar\",\"version\":\"2.3.8\"},\"react-router-8.3.0.tgz\":{\"integrity\":\"qyPMvW83jGIct3yiieisxdk9M745anqhpIMKN5m1t6yBMfgVPpt77aHOqs5fUlEJRMCGffg9BaQLH9oPVOL7xQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ab23ccbd6f378c621cb77ca289e8acc5d93d33be396a7aa1a4830a3799b5b7ac8131f8153e9b7beda1ceaace5f52510944c0867df83d05a40b1fda0f54e2fbc5\",\"name\":\"react-router\",\"version\":\"8.3.0\"},\"react-style-singleton-2.2.3.tgz\":{\"integrity\":\"b6jSvxvVnyptAiLjbkWLE/lOnR4lfTtDAl+eUC7RZy+QQWc6wRzIV2CE6xBuMmDxc2qIihtDCZD5NPOFl7fRBQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6fa8d2bf1bd59f2a6d0222e36e458b13f94e9d1e257d3b43025f9e502ed1672f9041673ac11cc8576084eb106e3260f1736a888a1b430990f934f38597b7d105\",\"name\":\"react-style-singleton\",\"version\":\"2.2.3\"},\"read-binary-file-arch-1.0.6.tgz\":{\"integrity\":\"BNg9EN3DD3GsDXX7Aa8O4p92sryjkmzYYgmgTAc6CA4uGLEDzFfxOxugu21akOxpcXHiEgsYkC6nPsQvLLLmEg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"04d83d10ddc30f71ac0d75fb01af0ee29f76b2bca3926cd86209a04c073a080e2e18b103cc57f13b1ba0bb6d5a90ec697171e2120b18902ea73ec42f2cb2e612\",\"name\":\"read-binary-file-arch\",\"version\":\"1.0.6\"},\"readable-stream-2.3.8.tgz\":{\"integrity\":\"8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f29d00524e173838087b04a2d25f04a63b3e1159d688aecda03204194d07844efe67263c0f520c63ba1dbb9951ac55c683bd4bd79286f10acf9ae9b8e514ed74\",\"name\":\"readable-stream\",\"version\":\"2.3.8\"},\"readable-stream-3.6.2.tgz\":{\"integrity\":\"9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f6efec9e20ab6370f959db04447cc71381b66025eaa06e454c7522082e1221bafa5dc2d9058d39c9af442a361e93d3b9c4e0308c6abed497460404bb43d49ca0\",\"name\":\"readable-stream\",\"version\":\"3.6.2\"},\"readdirp-5.1.1.tgz\":{\"integrity\":\"Kko+Y5XQ6fM+Ce3dq3m9YGxnacYZYl9cA1wZjaF3Vbry2L3i1qVg8+CAgNPsXRArPMUMCaOR7oa9Nqntc43JKA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2a4a3e6395d0e9f33e09edddab79bd606c6769c619625f5c035c198da17755baf2d8bde2d6a560f3e08080d3ec5d102b3cc50c09a391ee86bd36a9ed738dc928\",\"name\":\"readdirp\",\"version\":\"5.1.1\"},\"real-require-0.2.0.tgz\":{\"integrity\":\"57frrGM/OCTLqLOAh0mhVA9VBMHd+9U7Zb2THMGdBUoZVOtGbJzjxsYGDJ3A9AYYCP4hn6y1TVbaOfzWtm5GFg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e7b7ebac633f3824cba8b3808749a1540f5504c1ddfbd53b65bd931cc19d054a1954eb466c9ce3c6c6060c9dc0f4061808fe219facb54d56da39fcd6b66e4616\",\"name\":\"real-require\",\"version\":\"0.2.0\"},\"real-require-1.0.0.tgz\":{\"integrity\":\"P4nbQYQfePJxRSmY+v/KINxVucm4NF3p3s7pJveMTtom52FR4YGltUQLB8idDXwDDWW+eYrWDFbuzUnjoWHF7g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3f89db41841f78f271452998faffca20dc55b9c9b8345de9decee926f78c4eda26e76151e181a5b5440b07c89d0d7c030d65be798ad60c56eecd49e3a161c5ee\",\"name\":\"real-require\",\"version\":\"1.0.0\"},\"recast-0.23.21.tgz\":{\"integrity\":\"mFAyJq9vUbSTARLZUvAEf1z3YxlvAwswbmxMx2mPA/MSm4KmpwvwvhsH/NIrZhyOuwD60Lzyw2qh83uCbgTPYw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"98503226af6f51b4930112d952f0047f5cf763196f030b306e6c4cc7698f03f3129b82a6a70bf0be1b07fcd22b661c8ebb00fad0bcf2c36aa1f37b826e04cf63\",\"name\":\"recast\",\"version\":\"0.23.21\"},\"recharts-3.10.1.tgz\":{\"integrity\":\"QXFrvt6IVcw7eeZCoyXTwkIJAX3Dv1nyVhMicXJ47GsGDDpcN8z6o644DibE9XjpBTThtsomLKnTV6lc+cVFUA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"41716bbede8855cc3b79e642a325d3c24209017dc3bf59f2561322717278ec6b060c3a5c37ccfaa3ae380e26c4f578e90534e1b6ca262ca9d357a95cf9c54550\",\"name\":\"recharts\",\"version\":\"3.10.1\"},\"redent-3.0.0.tgz\":{\"integrity\":\"6tDA8g98We0zd0GvVeMT9arEOnTw9qM03L9cJXaCjrip1OO764RDBLBfrB4cwzNGDj5OA5ioymC9GkizgWJDUg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ead0c0f20f7c59ed337741af55e313f5aac43a74f0f6a334dcbf5c2576828eb8a9d4e3bbeb844304b05fac1e1cc333460e3e4e0398a8ca60bd1a48b381624352\",\"name\":\"redent\",\"version\":\"3.0.0\"},\"redux-5.0.1.tgz\":{\"integrity\":\"M9/ELqF6fy8FwmkpnF0S3YKOqMyoWJ4+CS5Efg2ct3oY9daQvd/Pc71FpGZsVsbl3Cpb+IIcjBDUnnyBdQbq4w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"33dfc42ea17a7f2f05c269299c5d12dd828ea8cca8589e3e092e447e0d9cb77a18f5d690bddfcf73bd45a4666c56c6e5dc2a5bf8821c8c10d49e7c817506eae3\",\"name\":\"redux\",\"version\":\"5.0.1\"},\"redux-thunk-3.1.0.tgz\":{\"integrity\":\"NW2r5T6ksUKXCabzhL9z+h206HQw/NJkcLm1GPImRQ8IzfXwRGqjVhKJGauHirT0DAuyy6hjdnMZaRoAcy0Klw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"356dabe53ea4b1429709a6f384bf73fa1db4e87430fcd26470b9b518f226450f08cdf5f0446aa356128919ab878ab4f40c0bb2cba863767319691a00732d0a97\",\"name\":\"redux-thunk\",\"version\":\"3.1.0\"},\"require-directory-2.1.1.tgz\":{\"integrity\":\"fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7c6c4423bfb0b06f71aef763b2b9662f6d8e3134e21d1c0032ba2211e320abc833a0b0bf3d0afb46c4434932d483f6d9019b45f9354890773aff84482abba2f9\",\"name\":\"require-directory\",\"version\":\"2.1.1\"},\"require-from-string-2.0.2.tgz\":{\"integrity\":\"Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5dfd2759ee91b1ece214cbbe029f5b8a251b9a996ae92f7fa7eef0ed85cffc904786b5030d48706bebc0372b9bbaa7d9593bde53ffc36151ac0c6ed128bfef13\",\"name\":\"require-from-string\",\"version\":\"2.0.2\"},\"resedit-1.7.2.tgz\":{\"integrity\":\"vHjcY2MlAITJhC0eRD/Vv8Vlgmu9Sd3LX9zZvtGzU5ZImdTN3+d6e/4mnTyV8vEbyf1sgNIrWxhWlrys52OkEA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"bc78dc6363250084c9842d1e443fd5bfc565826bbd49ddcb5fdcd9bed1b353964899d4cddfe77a7bfe269d3c95f2f11bc9fd6c80d22b5b185696bcace763a410\",\"name\":\"resedit\",\"version\":\"1.7.2\"},\"reselect-5.2.0.tgz\":{\"integrity\":\"AgZ3UOZm3YndfrJ4OYjgrT7bmCm/1iqkjvEfH/oYjzh6PD2qw4QuT3jjnXIrpdt4MTpMXclMT3lXbmRY+XRakw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"02067750e666dd89dd7eb2783988e0ad3edb9829bfd62aa48ef11f1ffa188f387a3c3daac3842e4f78e39d722ba5db78313a4c5dc94c4f79576e6458f9745a93\",\"name\":\"reselect\",\"version\":\"5.2.0\"},\"resolve-alpn-1.2.1.tgz\":{\"integrity\":\"0a1F4l73/ZFZOakJnQ3FvkJ2+gSTQWz/r2KE5OdDY0TxPm5h4GkqkWWfM47T7HsbnOtcJVEF4epCVy6u7Q3K+g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d1ad45e25ef7fd915939a9099d0dc5be4276fa0493416cffaf6284e4e7436344f13e6e61e0692a91659f338ed3ec7b1b9ceb5c255105e1ea42572eaeed0dcafa\",\"name\":\"resolve-alpn\",\"version\":\"1.2.1\"},\"resolve-from-4.0.0.tgz\":{\"integrity\":\"pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a5bfcc6265ecb40932b11171f2988d235b4614d408140def904dc6ab812e035745ea01e9ffebe066ab021896a9bf2f0ddd0fb8a3b170beab8f25c9d9ed1632e2\",\"name\":\"resolve-from\",\"version\":\"4.0.0\"},\"responselike-2.0.1.tgz\":{\"integrity\":\"4gl03wn3hj1HP3yzgdI7d3lCkF95F21Pz4BPGvKHinyQzALR5CapwC8yIi0Rh58DEMQ/SguC03wFj2k0M/mHhw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e20974df09f7863d473f7cb381d23b777942905f79176d4fcf804f1af2878a7c90cc02d1e426a9c02f32222d11879f0310c43f4a0b82d37c058f693433f98787\",\"name\":\"responselike\",\"version\":\"2.0.1\"},\"restore-cursor-5.1.0.tgz\":{\"integrity\":\"oMA2dcrw6u0YfxJQXm342bFKX/E4sG9rbTzO9ptUcR/e8A33cHuvStiYOwH7fszkZlZ1z/ta9AAoPk2F4qIOHA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a0c03675caf0eaed187f12505e6df8d9b14a5ff138b06f6b6d3ccef69b54711fdef00df7707baf4ad8983b01fb7ecce4665675cffb5af400283e4d85e2a20e1c\",\"name\":\"restore-cursor\",\"version\":\"5.1.0\"},\"ret-0.5.0.tgz\":{\"integrity\":\"I1XxrZSQ+oErkRR4jYbAyEEu2I0avBvvMM5JN+6EBprOGRCs63ENqZ3vjavq8fBw2+62G5LF5XelKwuJpcvcxw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2355f1ad9490fa812b9114788d86c0c8412ed88d1abc1bef30ce4937ee84069ace1910aceb710da99def8dabeaf1f070dbeeb61b92c5e577a52b0b89a5cbdcc7\",\"name\":\"ret\",\"version\":\"0.5.0\"},\"retry-0.12.0.tgz\":{\"integrity\":\"9LkiTwjUh6rT555DtE9rTX+BKByPfrMzEAtnlEtdEwr3Nkffwiihqe2bWADg+OQRjt9gl6ICdmB/ZFDCGAtSow==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f4b9224f08d487aad3e79e43b44f6b4d7f81281c8f7eb333100b67944b5d130af73647dfc228a1a9ed9b5800e0f8e4118edf6097a20276607f6450c2180b52a3\",\"name\":\"retry\",\"version\":\"0.12.0\"},\"reusify-1.1.0.tgz\":{\"integrity\":\"g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"83a4147dfd38a19a47b34786e69f37ac52e11de574d2e83f61ff6764ce9f2de52b3e0b814e44d039da40596b29321e794d97d54033da37735025f6d5440c5d23\",\"name\":\"reusify\",\"version\":\"1.1.0\"},\"rfdc-1.4.1.tgz\":{\"integrity\":\"q1b3N5QkRUWUl7iyylaaj3kOpIT0N2i9MqIEQXP73GVsN9cw3fdx8X63cEmWhJGi2PPCF23Ijp7ktmd39rawIA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ab56f737942445459497b8b2ca569a8f790ea484f43768bd32a2044173fbdc656c37d730ddf771f17eb77049968491a2d8f3c2176dc88e9ee4b66777f6b6b020\",\"name\":\"rfdc\",\"version\":\"1.4.1\"},\"rimraf-2.6.3.tgz\":{\"integrity\":\"mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9b0a9e5b95ec036a807a31b8ea061d10d6b15e3c7da2744d09f9fb2f476eb8fe210ae4c88bf40eecf0cad3b2897e9d5dfa2cd63ebcc4243712a816b439942b88\",\"name\":\"rimraf\",\"version\":\"2.6.3\"},\"roarr-2.15.4.tgz\":{\"integrity\":\"CHhPh+UNHD2GTXNYhPWLnU8ONHdI+5DI+4EYIAOaiD63rHeYlZvyh8P+in5999TTSFgUYuKUAjzRI4mdh/p+2A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"08784f87e50d1c3d864d735884f58b9d4f0e347748fb90c8fb811820039a883eb7ac7798959bf287c3fe8a7e7df7d4d348581462e294023cd123899d87fa7ed8\",\"name\":\"roarr\",\"version\":\"2.15.4\"},\"rolldown-1.2.4.tgz\":{\"integrity\":\"rSr7irW0K7QRWzjdJXqZowkcRdDtjRduh43rBltnVKd0VFq839l1lJoDvGJb6gl7+4rTTCrPWu+YfujUL8Ug7w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ad2afb8ab5b42bb4115b38dd257a99a3091c45d0ed8d176e878deb065b6754a774545abcdfd975949a03bc625bea097bfb8ad34c2acf5aef987ee8d42fc520ef\",\"name\":\"rolldown\",\"version\":\"1.2.4\"},\"router-2.2.0.tgz\":{\"integrity\":\"nLTrUKm2UyiL7rlhapu/Zl45FwNgkZGaCpZbIHajDYgwlJCOzLSk+cIPAnsEqV955GjILJnKbdQC1nVPz+gAYQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9cb4eb50a9b653288beeb9616a9bbf665e3917036091919a0a965b2076a30d883094908eccb4a4f9c20f027b04a95f79e468c82c99ca6dd402d6754fcfe80061\",\"name\":\"router\",\"version\":\"2.2.0\"},\"run-applescript-7.1.0.tgz\":{\"integrity\":\"DPe5pVFaAsinSaV6QjQ6gdiedWDcRCbUuiQfQa2wmWV7+xC9bGulGI8+TdRmoFkAPaBXk8CrAbnlY2ISniJ47Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0cf7b9a5515a02c8a749a57a42343a81d89e7560dc4426d4ba241f41adb099657bfb10bd6c6ba5188f3e4dd466a059003da05793c0ab01b9e56362129e2278ed\",\"name\":\"run-applescript\",\"version\":\"7.1.0\"},\"run-parallel-1.2.0.tgz\":{\"integrity\":\"5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e65e15c9947ce8b67f943c594d1ea3a8bf00144d92d0814b30fdba01b8ec2d5003c4776107f734194b07fb2dfd51f0a2dddcf3f0e950b8f9a768938ca031d004\",\"name\":\"run-parallel\",\"version\":\"1.2.0\"},\"safe-buffer-5.1.2.tgz\":{\"integrity\":\"Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"19dd94641243917958ec66c9c5fb04f3f9ef2a45045351b7f1cd6c88de903fa6bd3d3f4c98707c1a7a6c71298c252a05f0b388aedf2e77fc0fb688f2b381bafa\",\"name\":\"safe-buffer\",\"version\":\"5.1.2\"},\"safe-buffer-5.2.1.tgz\":{\"integrity\":\"rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ae9dd2a34eca71d9a629b1af81a37141226bedb1954959394bd12ad45fa9a5b468ef4f9879a0f1930e4377c34f37e183e9b8e7626d95b8fb825e6a6e62f9825d\",\"name\":\"safe-buffer\",\"version\":\"5.2.1\"},\"safe-regex2-5.1.1.tgz\":{\"integrity\":\"mOSBvHGDZMuIEZMdOz/aCEYDCv0E7nfcNsIhUF+/P+xC7Hyf3FkvymqgPbg9D1EdSGu+uKbJgy09K/RKKc7kJA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"98e481bc718364cb8811931d3b3fda0846030afd04ee77dc36c221505fbf3fec42ec7c9fdc592fca6aa03db83d0f511d486bbeb8a6c9832d3d2bf44a29cee424\",\"name\":\"safe-regex2\",\"version\":\"5.1.1\"},\"safe-stable-stringify-2.5.0.tgz\":{\"integrity\":\"b3rppTKm9T+PsVCBEOUR46GWI7fdOs00VKZ1+9c1EWDaDMvjQc6tUwuFyIprgGgTcWoVHSKrU8H31ZHA2e0RHA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6f7ae9a532a6f53f8fb1508110e511e3a19623b7dd3acd3454a675fbd7351160da0ccbe341cead530b85c88a6b806813716a151d22ab53c1f7d591c0d9ed111c\",\"name\":\"safe-stable-stringify\",\"version\":\"2.5.0\"},\"safer-buffer-2.1.2.tgz\":{\"integrity\":\"YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"619a372bcd920fb462ca2d04d4440fa232f3ee4a5ea6749023d2323db1c78355d75debdbe5d248eeda72376003c467106c71bbbdcc911e4d1c6f0a9c42b894b6\",\"name\":\"safer-buffer\",\"version\":\"2.1.2\"},\"sanitize-filename-1.6.4.tgz\":{\"integrity\":\"9ZyI08PsvdQl2r/bBIGubpVdR3RR9sY6RDiWFPreA21C/EFlQhmgo20UZlNjZMMZNubusLhAQozkA0Od5J21Eg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f59c88d3c3ecbdd425dabfdb0481ae6e955d477451f6c63a44389614fade036d42fc41654219a0a36d1466536364c31936e6eeb0b840428ce403439de49db512\",\"name\":\"sanitize-filename\",\"version\":\"1.6.4\"},\"sax-1.6.1.tgz\":{\"integrity\":\"42tBVwLWnaQvW5zc4HbZrTuWccECCZfBi92FDuwtqxasH+JbPB3/FOKb1m222K42R4WxuxzzMsTswfzgtSu64Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e36b415702d69da42f5b9cdce076d9ad3b9671c1020997c18bdd850eec2dab16ac1fe25b3c1dff14e29bd66db6d8ae364785b1bb1cf332c4ecc1fce0b52bbae1\",\"name\":\"sax\",\"version\":\"1.6.1\"},\"saxes-6.0.0.tgz\":{\"integrity\":\"xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c4083b48e9c486b9b9cc8de9b8e38acb2d4e31c32520965834963bc4b0704b37b452384f2e759f8f6185d84a53d239b368928858a1cbb1a4926a37f7e5b7189c\",\"name\":\"saxes\",\"version\":\"6.0.0\"},\"scheduler-0.27.0.tgz\":{\"integrity\":\"eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"78dbfe5ab55b2aed5fdef6d8253ff1b62179b320391cf20cb5ff48818fe72a0d2c5aacc0504bea63fc66ece71973fa9a7cbc7f88ef4580e99e480a78bf9b62fd\",\"name\":\"scheduler\",\"version\":\"0.27.0\"},\"secure-json-parse-4.1.0.tgz\":{\"integrity\":\"l4KnYfEyqYJxDwlNVyRfO2E4NTHfMKAWdUuA8J0yve2Dz/E/PdBepY03RvyJpssIpRFwJoCD55wA+mEDs6ByWA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9782a761f132a982710f094d57245f3b61383531df30a016754b80f09d32bded83cff13f3dd05ea58d3746fc89a6cb08a51170268083e79c00fa6103b3a07258\",\"name\":\"secure-json-parse\",\"version\":\"4.1.0\"},\"semver-5.7.2.tgz\":{\"integrity\":\"cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"701ce79d0f4a8c9a94ebb079d91302eb908c6ab2b6eb4d161676e471a8b05aadf1cbfe61685265b21827a63a2f31527e1df7f8f5df06127d1bf3b0b9a43435d2\",\"name\":\"semver\",\"version\":\"5.7.2\"},\"semver-6.3.1.tgz\":{\"integrity\":\"BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"051ed5bc30951cefaadb10445ac9314ba0c9135a919dbec3c7352ba206fbd425a849f89c07162c88019df8a9749a6abf329ac6f7202b464cab4314cee978cccc\",\"name\":\"semver\",\"version\":\"6.3.1\"},\"semver-7.7.4.tgz\":{\"integrity\":\"vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"bc5282d8812d427561a53efc875629f30cf0adff0233e33328c1c62597c1b738593727111675ec1e4e84e53c4892432c80d4bb99d5f700607bc7640cd9d8b894\",\"name\":\"semver\",\"version\":\"7.7.4\"},\"semver-7.8.5.tgz\":{\"integrity\":\"Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"63bfca0ec6fc2e3a28669c1aa86cae94ee8342592c8029dc7211c693eb19218e1206f52870c044147e54af57c8e1d57e26f974c3a723bee71a222e34a6e462a0\",\"name\":\"semver\",\"version\":\"7.8.5\"},\"semver-compare-1.0.0.tgz\":{\"integrity\":\"YM3/ITh2MJ5MtzaM429anh+x2jiLVjqILF4m4oyQB18W7Ggea7BfqdH/wGMK7dDiMghv/6WG7znWMwUDzJiXow==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"60cdff213876309e4cb7368ce36f5a9e1fb1da388b563a882c5e26e28c90075f16ec681e6bb05fa9d1ffc0630aedd0e232086fffa586ef39d6330503cc9897a3\",\"name\":\"semver-compare\",\"version\":\"1.0.0\"},\"send-1.2.1.tgz\":{\"integrity\":\"1gnZf7DFcoIcajTjTwjwuDjzuz4PPcY2StKPlsGAQ1+YH20IRVrBaXSWmdjowTJ6u8Rc01PoYOGHXfP1mYcZNQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d609d97fb0c572821c6a34e34f08f0b838f3bb3e0f3dc6364ad28f96c180435f981f6d08455ac169749699d8e8c1327abbc45cd353e860e1875df3f599871935\",\"name\":\"send\",\"version\":\"1.2.1\"},\"serialize-error-7.0.1.tgz\":{\"integrity\":\"8I8TjW5KMOKsZQTvoxjuSIa7foAwPWGOts+6o7sgjz41/qMD9VQHEDxi6PBvK2l0MXUmqZyNpUK+T2tQaaElvw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f08f138d6e4a30e2ac6504efa318ee4886bb7e80303d618eb6cfbaa3bb208f3e35fea303f55407103c62e8f06f2b6974317526a99c8da542be4f6b5069a125bf\",\"name\":\"serialize-error\",\"version\":\"7.0.1\"},\"serve-static-2.2.1.tgz\":{\"integrity\":\"xRXBn0pPqQTVQiC8wyQrKs2MOlX24zQ0POGaj0kultvoOCstBQM5yvOhAVSUwOMjQtTvsPWoNCHfPGwaaQJhTw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c515c19f4a4fa904d54220bcc3242b2acd8c3a55f6e334343ce19a8f492e96dbe8382b2d050339caf3a1015494c0e32342d4efb0f5a83421df3c6c1a6902614f\",\"name\":\"serve-static\",\"version\":\"2.2.1\"},\"set-cookie-parser-2.7.2.tgz\":{\"integrity\":\"oeM1lpU/UvhTxw+g3cIfxXHyJRc/uidd3yK1P242gzHds0udQBYzs3y8j4gCCW+ZJ7ad0yctld8RYO+bdurlvw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a1e33596953f52f853c70fa0ddc21fc571f225173fba275ddf22b53f6e368331ddb34b9d401633b37cbc8f8802096f9927b69dd3272d95df1160ef9b76eae5bf\",\"name\":\"set-cookie-parser\",\"version\":\"2.7.2\"},\"setprototypeof-1.2.0.tgz\":{\"integrity\":\"E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1392c35fb5aba7ce4a8a5e5b859bf8ea3f2339e6e82aae4932660cde05467461fcc45a4f59750cb0dae53830ab928c4c11e362fd7648c2e46f6385cdc18309a7\",\"name\":\"setprototypeof\",\"version\":\"1.2.0\"},\"shadcn-4.18.0.tgz\":{\"integrity\":\"tUFZgkYmfVNQVm3xX7lhSzOvDsp+O14ac5dwgXIr5mIsr79ISueb/Mu+ZtWMz0DH6v77u4eYyvbQ9TTMpSn3aw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b541598246267d5350566df15fb9614b33af0eca7e3b5e1a73977081722be6622cafbf484ae79bfccbbe66d58ccf40c7eafefbbb8798caf6d0f534cca529f76b\",\"name\":\"shadcn\",\"version\":\"4.18.0\"},\"shebang-command-2.0.0.tgz\":{\"integrity\":\"kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"907c6bdb366962d766acdd6a0e3aeb5ff675ad1d641bc0f1fa09292b51b87979af5ecc26704d614d6056614ce5ada630d7fc99a7a62e0d8efb62dbdb3747660c\",\"name\":\"shebang-command\",\"version\":\"2.0.0\"},\"shebang-regex-3.0.0.tgz\":{\"integrity\":\"7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"efef9d161b5cc77df9dee05aabc0c347836ec417ad0730bb6503a19934089c711de9b4ab5dd884cb30af1b4ed9e3851874b4a1594c97b7933fca1cfc7a471bd4\",\"name\":\"shebang-regex\",\"version\":\"3.0.0\"},\"side-channel-1.1.1.tgz\":{\"integrity\":\"6x6dK6zJdpTzF4sQeNYxwtvBzf6Eg4GtlesS94HOvTudUeyK2WXAaIfmDgsyslYrRBeFIlsi54AYsFGUuhmvrQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"eb1e9d2bacc97694f3178b1078d631c2dbc1cdfe848381ad95eb12f781cebd3b9d51ec8ad965c06887e60e0b32b2562b441785225b22e78018b05194ba19afad\",\"name\":\"side-channel\",\"version\":\"1.1.1\"},\"side-channel-list-1.0.1.tgz\":{\"integrity\":\"mjn/0bi/oUURjc5Xl7IaWi/OJJJumuoJFQJfDDyO46+hBWsfaVM65TBHq2eoZBhzl9EchxOijpkbRC8SVBQU0w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9a39ffd1b8bfa145118dce5797b21a5a2fce24926e9aea0915025f0c3c8ee3afa1056b1f69533ae53047ab67a864187397d11c8713a28e991b442f12541414d3\",\"name\":\"side-channel-list\",\"version\":\"1.0.1\"},\"side-channel-map-1.0.1.tgz\":{\"integrity\":\"VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5428c235f80cb1bcb7b53768d369db8ed33f7b0adaea33c79a94e17a7913621f291bdb9c67fd4ff12a38bb814605e93f063a4e56c0c23282c0fe2b8128815744\",\"name\":\"side-channel-map\",\"version\":\"1.0.1\"},\"side-channel-weakmap-1.0.2.tgz\":{\"integrity\":\"WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"58f4bf1ef1d04d89c78ac2e8f4c72a0473899361641cefed969be5772ae77a6e1a790a7885a8b7832b61b3083aa74d684a84e5e7cadca621408c5d9baf6024d8\",\"name\":\"side-channel-weakmap\",\"version\":\"1.0.2\"},\"siginfo-2.0.0.tgz\":{\"integrity\":\"ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c9bc7458ed7ff1b4812c459766f11dee0316dd29f7245956dd3bd7d674446c32d135035a78d37c58ad26781c0f74068e23b4ed4514499ff12cd7386bac21eeee\",\"name\":\"siginfo\",\"version\":\"2.0.0\"},\"signal-exit-3.0.7.tgz\":{\"integrity\":\"wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c270f6644fa5f923c2feea12d2f5de13d2f5fb4c2e68ca8a95fcfd00c528dfc26cc8b48159215c1d1d51ae2eb62d9735daf2ebd606f78e5ee2c10860c2901b19\",\"name\":\"signal-exit\",\"version\":\"3.0.7\"},\"signal-exit-4.1.0.tgz\":{\"integrity\":\"bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6f3c99d5ef3cc3d3b588d25b2a73a5bd84eb58f0e5e3a3b56c6d03dd7227bfef6d90faf1acdf235144e21650e4926296827d4ce827c8035dd2b86a8e6bd2a8af\",\"name\":\"signal-exit\",\"version\":\"4.1.0\"},\"simple-update-notifier-2.0.0.tgz\":{\"integrity\":\"a2B9Y0KlNXl9u/vsW6sTIu9vGEpfKu2wRV6l1H3XEas/0gUIzGzBoP/IouTcUQbm9JWZLH3COxyn03TYlFax6w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6b607d6342a535797dbbfbec5bab1322ef6f184a5f2aedb0455ea5d47dd711ab3fd20508cc6cc1a0ffc8a2e4dc5106e6f495992c7dc23b1ca7d374d89456b1eb\",\"name\":\"simple-update-notifier\",\"version\":\"2.0.0\"},\"sisteransi-1.0.5.tgz\":{\"integrity\":\"bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6cb186951d50c417329e7d9de589835f83068e566fcb631104344d1cb27c548ea5ebef45522c9314d27422f78e48fd1b7178150cf45c7c6a80d298daa94a5f56\",\"name\":\"sisteransi\",\"version\":\"1.0.5\"},\"smart-buffer-4.2.0.tgz\":{\"integrity\":\"94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f7884ad0787cacfa90976c577371ec681a0e5ca576d0c4e83e4717bf06c84962c4b3eeb8b01ab9905827da42431dbd4faf2f72acfd1dc6b088f5145c8bb4572a\",\"name\":\"smart-buffer\",\"version\":\"4.2.0\"},\"socks-2.8.9.tgz\":{\"integrity\":\"LJhUYUvItdQ0LkJTmPeaEObWXAqFyfmP85x0tch/ez9cahmhlBBLbIqDFnvBnUJGagb0JbIQrkBs1wJ+yRYpEw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2c9854614bc8b5d4342e425398f79a10e6d65c0a85c9f98ff39c74b5c87f7b3f5c6a19a194104b6c8a83167bc19d42466a06f425b210ae406cd7027ec9162913\",\"name\":\"socks\",\"version\":\"2.8.9\"},\"socks-proxy-agent-8.0.5.tgz\":{\"integrity\":\"HehCEsotFqbPW9sJ8WVYB6UbmIMv7kUUORIF2Nncq4VQvBfNBLibW9YZR5dlYCSUhwcD628pRllm7n+E+YTzJw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1de84212ca2d16a6cf5bdb09f1655807a51b98832fee4514391205d8d9dcab8550bc17cd04b89b5bd619479765602494870703eb6f29465966ee7f84f984f327\",\"name\":\"socks-proxy-agent\",\"version\":\"8.0.5\"},\"sonic-boom-4.2.1.tgz\":{\"integrity\":\"w6AxtubXa2wTXAUsZMMWERrsIRAdrK0Sc+FUytWvYAhBJLyuI4llrMIC1DtlNSdI99EI86KZum2MMq3EAZlF9Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c3a031b6e6d76b6c135c052c64c316111aec21101dacad1273e154cad5af60084124bcae238965acc202d43b65352748f7d108f3a299ba6d8c32adc4019945f5\",\"name\":\"sonic-boom\",\"version\":\"4.2.1\"},\"source-map-0.6.1.tgz\":{\"integrity\":\"UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"52381aa6e99695b3219018334fb624739617513e3a17488abbc4865ead1b7303f9773fe1d0f963e9e9c9aa3cf565bab697959aa989eb55bc16396332177178ee\",\"name\":\"source-map\",\"version\":\"0.6.1\"},\"source-map-js-1.2.1.tgz\":{\"integrity\":\"UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"51758c2a12cec1529bef6f0852d40f5f17d853ebac7726ed52b2bff2e184f0240cbeb84ea70bf30c1c23d108522fb31073bbc8b084811bc550f3e203431a5f40\",\"name\":\"source-map-js\",\"version\":\"1.2.1\"},\"source-map-support-0.5.21.tgz\":{\"integrity\":\"uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b811d4dcbddccec232617297f3c7ddac6a2fc5d482a13183459e92617b524712d95331e0e4fffae87b7aba85251eef4466877e8a75e12a8dea420c17513ff2d7\",\"name\":\"source-map-support\",\"version\":\"0.5.21\"},\"split2-4.2.0.tgz\":{\"integrity\":\"UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"51c8dc24e5a49eb36417a3cb5fcdea70733a28781528d915eb663c6b9b980d5bfdc9d19057000730aa877498ded554d6a658c6d1662908386b09d00e607e135a\",\"name\":\"split2\",\"version\":\"4.2.0\"},\"sprintf-js-1.1.3.tgz\":{\"integrity\":\"Oo+0REFV59/rz3gfJNKQiBlwfHaSESl1pcGyABQsnnIfWOFt6JNj5gCog2U6MLZ//IGYD+nA8nI+mTShREReaA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3a8fb4444155e7dfebcf781f24d2908819707c7692112975a5c1b200142c9e721f58e16de89363e600a883653a30b67ffc81980fe9c0f2723e9934a144445e68\",\"name\":\"sprintf-js\",\"version\":\"1.1.3\"},\"stackback-0.0.2.tgz\":{\"integrity\":\"1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d573091397d0a358c61fa63fede6e7c0f3811242049d3e10177d9de51d7e557757bde334201309b7ccdf6b15f53f7421570ad87bee7bebe8e400db524b69816f\",\"name\":\"stackback\",\"version\":\"0.0.2\"},\"stat-mode-1.0.0.tgz\":{\"integrity\":\"jH9EhtKIjuXZ2cWxmXS8ZP80XyC3iasQxMDV8jzhNJpfDb7VbQLVW4Wvsxz9QZvzV+G4YoSfBUVKDOyxLzi/sg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8c7f4486d2888ee5d9d9c5b19974bc64ff345f20b789ab10c4c0d5f23ce1349a5f0dbed56d02d55b85afb31cfd419bf357e1b862849f05454a0cecb12f38bfb2\",\"name\":\"stat-mode\",\"version\":\"1.0.0\"},\"statuses-2.0.2.tgz\":{\"integrity\":\"DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0ef132e795770c1eee927468fb888e193e5f3f5b2547cc10a2155d9278a064f32932cb5a289416870898040089137525da94e70138a18416274616501c606247\",\"name\":\"statuses\",\"version\":\"2.0.2\"},\"std-env-4.2.0.tgz\":{\"integrity\":\"oCUKSupKTHX53EyjDtuZQ64pjLJ6yYCtpmEw0goYxtjG9KpbRe8KAsl2tBUGU9DyMcJ0RwJ8GqJAFzMXcXW1Rw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a0250a4aea4a4c75f9dc4ca30edb9943ae298cb27ac980ada66130d20a18c6d8c6f4aa5b45ef0a02c976b4150653d0f231c27447027c1aa2401733177175b547\",\"name\":\"std-env\",\"version\":\"4.2.0\"},\"stdin-discarder-0.2.2.tgz\":{\"integrity\":\"UhDfHmA92YAlNnCfhmq0VeNL5bDbiZGg7sZ2IvPsXubGkiNa9EC+tUTsjBRsYUAz87btI6/1wf4XoVvQ3uRnmQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5210df1e603dd9802536709f866ab455e34be5b0db8991a0eec67622f3ec5ee6c692235af440beb544ec8c146c614033f3b6ed23aff5c1fe17a15bd0dee46799\",\"name\":\"stdin-discarder\",\"version\":\"0.2.2\"},\"stream-shift-1.0.3.tgz\":{\"integrity\":\"76ORR0DO1o1hlKwTbi/DM3EXWGf3ZJYO8cXX5RJwnul2DEg2oyoZyjLNoQM8WsvZiFKCRfC1O0J7iCvie3RZmQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"efa3914740ced68d6194ac136e2fc33371175867f764960ef1c5d7e512709ee9760c4836a32a19ca32cda1033c5acbd988528245f0b53b427b882be27b745999\",\"name\":\"stream-shift\",\"version\":\"1.0.3\"},\"string-width-4.2.3.tgz\":{\"integrity\":\"wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c0ac90450a63274b08a7ad84ad265d1ac8cc256b1aa79a1136284786ee86ec954effd8c807a5327af2feb57b8eaab9e0f23fdcc4a4d6c96530bd24eb8a2673fe\",\"name\":\"string-width\",\"version\":\"4.2.3\"},\"string-width-7.2.0.tgz\":{\"integrity\":\"tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b6c693224296f5be0df80123f92540f96849cd5effccc85c4aeefc98b2964a4edc5cc3921ec04a15652cd1f5b0abc4322b73202414115fa19b8b89186ddbc691\",\"name\":\"string-width\",\"version\":\"7.2.0\"},\"string_decoder-1.1.1.tgz\":{\"integrity\":\"n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9ff4a19ef0e2e851db6d57ef8aba3e5a88e2173bfeb3c30f30705ccd578f7d4a4324bc282d3d21b759786300426e2f29240bde104767907c8fc933ff9b345fc2\",\"name\":\"string_decoder\",\"version\":\"1.1.1\"},\"string_decoder-1.3.0.tgz\":{\"integrity\":\"hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"864457f14d568c915df0bb03276c90ff0596c5aa2912c0015355df90cf00fa3d3ef392401a9a6dd7a72bd56860e8a21b6f8a2453a32a97a04e8febaea7fc0a78\",\"name\":\"string_decoder\",\"version\":\"1.3.0\"},\"stringify-object-5.0.0.tgz\":{\"integrity\":\"zaJYxz2FtcMb4f+g60KsRNFOpVMUyuJgA51Zi5Z1DOTC3S59+OQiVOzE9GZt0x72uBGWKsQIuBKeF9iusmKFsg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"cda258c73d85b5c31be1ffa0eb42ac44d14ea55314cae260039d598b96750ce4c2dd2e7df8e42254ecc4f4666dd31ef6b811962ac408b8129e17d8aeb26285b2\",\"name\":\"stringify-object\",\"version\":\"5.0.0\"},\"strip-ansi-6.0.1.tgz\":{\"integrity\":\"Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"637f153d21dcaa416b0a916743dbee4979aabaebf9a1738aa46793e9a1abaf7a3719cf409556ba2417d448e0a76f1186645fbfd28a08ecaacfb944b3b54754e4\",\"name\":\"strip-ansi\",\"version\":\"6.0.1\"},\"strip-ansi-7.2.0.tgz\":{\"integrity\":\"yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c833cc363a785b27d80641e78c844b7dc6b58ba28cc860adb1582829eff3d7eeafba481a10d76018166df9998a3dce206afbc46793a01df1ddadace180dc86ef\",\"name\":\"strip-ansi\",\"version\":\"7.2.0\"},\"strip-bom-3.0.0.tgz\":{\"integrity\":\"vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"bdabc03115ce80154d17a9f210498bdc304ad7d891a437282305beb3043e09b1a2bbb963bbab7e264940d4c1f07a85ad69d82de0849552c5cbc83ab7e1d75cc0\",\"name\":\"strip-bom\",\"version\":\"3.0.0\"},\"strip-final-newline-2.0.0.tgz\":{\"integrity\":\"BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"06ba6f7cd004ddd72fabb965df156e9b38ca8d9439b48d6c11420aaf752892cd17525e394addc595ab55a9e7fda6b9388d10f3856e96660fb76e4f77cbaa4b8c\",\"name\":\"strip-final-newline\",\"version\":\"2.0.0\"},\"strip-final-newline-4.0.0.tgz\":{\"integrity\":\"aulFJcD6YK8V1G7iRB5tigAP4TsHBZZrOV8pjV++zdUwmeV8uzbY7yn6h9MswN62adStNZFuCIx4haBnRuMDaw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6ae94525c0fa60af15d46ee2441e6d8a000fe13b0705966b395f298d5fbecdd53099e57cbb36d8ef29fa87d32cc0deb669d4ad35916e088c7885a06746e3036b\",\"name\":\"strip-final-newline\",\"version\":\"4.0.0\"},\"strip-indent-3.0.0.tgz\":{\"integrity\":\"laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"95a2536b725bf95429682e83b1e1e117b75756a1d37c93c24436846e277f76b3a1822b60624bbf95eb4c52a397168595d3320851b8e9747dadfad623e1b40c45\",\"name\":\"strip-indent\",\"version\":\"3.0.0\"},\"strip-json-comments-5.0.3.tgz\":{\"integrity\":\"1tB5mhVo7U+ETBKNf92xT4hrQa3pm0MZ0PQvuDnWgAAGHDsfp4lPSpiS6psrSiet87wyGPh9ft6wmhOMQ0hDiw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d6d0799a1568ed4f844c128d7fddb14f886b41ade99b4319d0f42fb839d68000061c3b1fa7894f4a9892ea9b2b4a27adf3bc3218f87d7edeb09a138c4348438b\",\"name\":\"strip-json-comments\",\"version\":\"5.0.3\"},\"sumchecker-3.0.1.tgz\":{\"integrity\":\"MvjXzkz/BOfyVDkG0oFOtBxHX2u3gKbMHIF/dXblZsgD3BWOFLmHovIpZY7BykJdAjcqRCBi1WYBNdEC9yI7vg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"32f8d7ce4cff04e7f2543906d2814eb41c475f6bb780a6cc1c817f7576e566c803dc158e14b987a2f229658ec1ca425d02372a442062d5660135d102f7223bbe\",\"name\":\"sumchecker\",\"version\":\"3.0.1\"},\"supports-color-7.2.0.tgz\":{\"integrity\":\"qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"aa9080bd197db2db8e1ef78ab27ec79dc251befe74d6a21a70acd094effe2f0c5cf7ed2adb02f2bf80dfbedf34fc33e7da9a8e06c25d0e2a205c647df8ebf047\",\"name\":\"supports-color\",\"version\":\"7.2.0\"},\"symbol-tree-3.2.4.tgz\":{\"integrity\":\"9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f50364e4ac0317e06fcfe3f239b9264988c8e64b15518b635bb014db6af634a71f2c9717a7dea1903594dfe5e774eb146fe010f5085fcdf093d8ef823564f94f\",\"name\":\"symbol-tree\",\"version\":\"3.2.4\"},\"systeminformation-5.33.1.tgz\":{\"integrity\":\"DEN6ICHk3Tk0Uf/hrAHh7xlt7iL5CJFBtPZinA0H62DrGG/KPKqq/Nzj6lCXPS4Ay/sf/14zNnk9LpqKzBIc+w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0c437a2021e4dd393451ffe1ac01e1ef196dee22f9089141b4f6629c0d07eb60eb186fca3caaaafcdce3ea50973d2e00cbfb1fff5e3336793d2e9a8acc121cfb\",\"name\":\"systeminformation\",\"version\":\"5.33.1\"},\"tailwind-merge-3.6.0.tgz\":{\"integrity\":\"uxL7qAVQriqRQPAyK3pj66VqskWqoZ37PW94jwOTwNfq/z9oyu1V+eqrZqtR2+fCiXdYOZe/Modt8GtvqNzu+w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"bb12fba80550ae2a9140f0322b7a63eba56ab245aaa19dfb3d6f788f0393c0d7eaff3f68caed55f9eaab66ab51dbe7c28977583997bf32876df06b6fa8dceefb\",\"name\":\"tailwind-merge\",\"version\":\"3.6.0\"},\"tailwindcss-4.3.3.tgz\":{\"integrity\":\"gOhV3P7ufE62QDGg1zVaTgCR+EtPv92k2nIhVcVKcLmxT1sUBsQGhnZj175j+MqRt4zLF7ic+sCYjfhxMxj7YQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"80e855dcfeee7c4eb64031a0d7355a4e0091f84b4fbfdda4da722155c54a70b9b14f5b1406c406867663d7be63f8ca91b78ccb17b89cfac0988df8713318fb61\",\"name\":\"tailwindcss\",\"version\":\"4.3.3\"},\"tapable-2.3.3.tgz\":{\"integrity\":\"uxc/zpqFg6x7C8vOE7lh6Lbda8eEL9zmVm/PLeTPBRhh1xCgdWaQ+J1CUieGpIfm2HdtsUpRv+HshiasBMcc6A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"bb173fce9a8583ac7b0bcbce13b961e8b6dd6bc7842fdce6566fcf2de4cf051861d710a0756690f89d42522786a487e6d8776db14a51bfe1ec8626ac04c71ce8\",\"name\":\"tapable\",\"version\":\"2.3.3\"},\"tar-7.5.22.tgz\":{\"integrity\":\"MFO/QzvtAOmJbkhOaCTvbGcFN9L9b+JunIsDwaKljSOdcLMea3NJ1k9Usz/rjdfSXTq4dfzfeS7W4p4YOAAHeA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3053bf433bed00e9896e484e6824ef6c670537d2fd6fe26e9c8b03c1a2a58d239d70b31e6b7349d64f54b33feb8dd7d25d3ab875fcdf792ed6e29e1838000778\",\"name\":\"tar\",\"version\":\"7.5.22\"},\"temp-0.9.4.tgz\":{\"integrity\":\"yYrrsWnrXMcdsnu/7YMYAofM1ktpL5By7vZhf15CrXijWWrEYZks5AXBudalfSWJLlnen/QUJUB5aoB0kqZUGA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c98aebb169eb5cc71db27bbfed83180287ccd64b692f9072eef6617f5e42ad78a3596ac461992ce405c1b9d6a57d25892e59de9ff4142540796a807492a65418\",\"name\":\"temp\",\"version\":\"0.9.4\"},\"temp-file-3.4.0.tgz\":{\"integrity\":\"C5tjlC/HCtVUOi3KWVokd4vHVViOmGjtLwIh4MuzPo/nMYTV/p1urt3RnMz2IWXDdKEGJH3k5+KPxtqRsUYGtg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0b9b63942fc70ad5543a2dca595a24778bc755588e9868ed2f0221e0cbb33e8fe73184d5fe9d6eaeddd19cccf62165c374a106247de4e7e28fc6da91b14606b6\",\"name\":\"temp-file\",\"version\":\"3.4.0\"},\"thread-stream-4.2.0.tgz\":{\"integrity\":\"e2zZ96wSChazBsbENf/Pcm/4swHt2cEKQ92rhUjkL9GCKiTDJIaTBenjE/m9DXi0QBmTMDkFDdOomUy20A1tDQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7b6cd9f7ac120a16b306c6c435ffcf726ff8b301edd9c10a43ddab8548e42fd1822a24c324869305e9e313f9bd0d78b44019933039050dd3a8994cb6d00d6d0d\",\"name\":\"thread-stream\",\"version\":\"4.2.0\"},\"tiny-async-pool-1.3.0.tgz\":{\"integrity\":\"01EAw5EDrcVrdgyCLgoSPvqznC0sVxDSVeiOz09FUpjh71G79VCqneOr+xvt7T1r76CF6ZZfPjHorN2+d+3mqA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d35100c39103adc56b760c822e0a123efab39c2d2c5710d255e88ecf4f455298e1ef51bbf550aa9de3abfb1beded3d6befa085e9965f3e31e8acddbe77ede6a8\",\"name\":\"tiny-async-pool\",\"version\":\"1.3.0\"},\"tiny-invariant-1.3.3.tgz\":{\"integrity\":\"+FbBPE1o9QAYvviau/qC5SE3caw21q3xkvWKBtja5vgqOWIHHJ3ioaq1VPfn/Szqctz2bU/oYeKd9/z5BL+PVg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f856c13c4d68f50018bef89abbfa82e5213771ac36d6adf192f58a06d8dae6f82a3962071c9de2a1aab554f7e7fd2cea72dcf66d4fe861e29df7fcf904bf8f56\",\"name\":\"tiny-invariant\",\"version\":\"1.3.3\"},\"tiny-typed-emitter-2.1.0.tgz\":{\"integrity\":\"qVtvMxeXbVej0cQWKqVSSAHmKZEHAvxdF8HEUBFWts8h+xEo5m/lEiPakuyZ3BnCBjOD8i24kzNOiOLLgsSxhA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a95b6f3317976d57a3d1c4162aa5524801e629910702fc5d17c1c4501156b6cf21fb1128e66fe51223da92ec99dc19c2063383f22db893334e88e2cb82c4b184\",\"name\":\"tiny-typed-emitter\",\"version\":\"2.1.0\"},\"tinybench-2.9.0.tgz\":{\"integrity\":\"0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d3e0d4bea58c55a94b9a16ba96be240fc88030ad47cd5d3f68a9c2b566fdbfdeb8d539cffcc15becf7366f1a314234d7004aebc9756050e7efd98a8d965a867a\",\"name\":\"tinybench\",\"version\":\"2.9.0\"},\"tinyexec-1.3.0.tgz\":{\"integrity\":\"QKAl9m8gWWGHV8jZcPeym6j+XULi6tOf1mT83WYJ4Lk2ytW/uwAWkrP0uFsdoYMdueVJ0qs26wZ+23xeB4ibNQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"40a025f66f2059618757c8d970f7b29ba8fe5d42e2ead39fd664fcdd6609e0b936cad5bfbb001692b3f4b85b1da1831db9e549d2ab36eb067edb7c5e07889b35\",\"name\":\"tinyexec\",\"version\":\"1.3.0\"},\"tinyglobby-0.2.17.tgz\":{\"integrity\":\"wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c1747f758a5ca8a99f5a911d66388a24ec023459dd0f40cc9eb5bf7188d51adb449017d581c2c51e836b963e3b9a339589cf72c8dbbae5a96c805e0d4324dada\",\"name\":\"tinyglobby\",\"version\":\"0.2.17\"},\"tinyrainbow-3.1.1.tgz\":{\"integrity\":\"yau8yJdTt989Mm0Bd/236QnzEiPf2xLLTqUZRUJOo/3CB078LSwzei343DgtJVmfJKJE3TMINY1u42SQsP6mXw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c9abbcc89753b7df3d326d0177fdb7e909f31223dfdb12cb4ea51945424ea3fdc2074efc2d2c337a2df8dc382d25599f24a244dd3308358d6ee36490b0fea65f\",\"name\":\"tinyrainbow\",\"version\":\"3.1.1\"},\"tldts-7.4.10.tgz\":{\"integrity\":\"GgouD1B+sWwvkaEq8vXC15DjQitxbvs12oIXELpconwm+Tg3zfcEv4jgzq3vtKverDXsg3VI8aRgNL2Nra0Iog==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1a0a2e0f507eb16c2f91a12af2f5c2d790e3422b716efb35da821710ba5ca27c26f93837cdf704bf88e0ceadefb4abdeac35ec837548f1a46034bd8dadad08a2\",\"name\":\"tldts\",\"version\":\"7.4.10\"},\"tldts-core-7.4.10.tgz\":{\"integrity\":\"KnQjp53ZekKgm/r3l+u8kJGGzYgrWdP8+Mql7a4vijh2WE0IrZWspQj/TpTxDho/YxO+AnOZnIjQcCD+q6iJsw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2a7423a79dd97a42a09bfaf797ebbc909186cd882b59d3fcf8caa5edae2f8a3876584d08ad95aca508ff4e94f10e1a3f6313be0273999c88d07020feaba889b3\",\"name\":\"tldts-core\",\"version\":\"7.4.10\"},\"tmp-0.2.7.tgz\":{\"integrity\":\"e0votIpp4Uo2AJYSzVHV6xCcawuiez3DzqDAbrTc3YxBkplN6e+dM13ZeIcZnDg/QpSuU2zfZ3rzwY8ukEnaXw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7b4be8b48a69e14a36009612cd51d5eb109c6b0ba27b3dc3cea0c06eb4dcdd8c4192994de9ef9d335dd97887199c383f4294ae536cdf677af3c18f2e9049da5f\",\"name\":\"tmp\",\"version\":\"0.2.7\"},\"tmp-promise-3.0.3.tgz\":{\"integrity\":\"RwM7MoPojPxsOBYnyd2hy0bxtIlVrihNs9pj5SUvY8Zz1sQcQG2tG1hSr8PDxfgEB8RNKDhqbIlroIarSNDNsQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"47033b3283e88cfc6c381627c9dda1cb46f1b48955ae284db3da63e5252f63c673d6c41c406dad1b5852afc3c3c5f80407c44d28386a6c896ba086ab48d0cdb1\",\"name\":\"tmp-promise\",\"version\":\"3.0.3\"},\"to-regex-range-5.0.1.tgz\":{\"integrity\":\"65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"eb93fb8b3e97e7212bd5cc1c82f4316db230ed493780ecb974876d678ac3bde2ea86b7493fe2e2fc7c7ab722b43446fed860b29de08c2621aaac00c248d93cb1\",\"name\":\"to-regex-range\",\"version\":\"5.0.1\"},\"toad-cache-3.7.4.tgz\":{\"integrity\":\"m1TdR/rvT7kgGJZhspNtXdsdYk0fddFpJJFlG5s+UkPFo6lkLoZ3YLOaovPYjq1R75NP5JfeTlSHaOsE09peCg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9b54dd47faef4fb920189661b2936d5ddb1d624d1f75d1692491651b9b3e5243c5a3a9642e867760b39aa2f3d88ead51ef934fe497de4e548768eb04d3da5e0a\",\"name\":\"toad-cache\",\"version\":\"3.7.4\"},\"toidentifier-1.0.1.tgz\":{\"integrity\":\"o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a39b123ca12483f0c840d987e37574fee7ab2eba7355e764521f2d18dbda797a5fa6ec2329e9e54a8c7fd8efc14e5654b447be246eece58844cfad3c3e500744\",\"name\":\"toidentifier\",\"version\":\"1.0.1\"},\"tough-cookie-6.0.2.tgz\":{\"integrity\":\"exgYmnmL/sJpR3upZfXG5PoatXQii55xAiXGXzY+sROLZ/Y+SLcp9PgJNI9Vz37HpQ74WvDcLT8eqm+kV3FzrA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7b18189a798bfec269477ba965f5c6e4fa1ab574228b9e710225c65f363eb1138b67f63e48b729f4f809348f55cf7ec7a50ef85af0dc2d3f1eaa6fa4577173ac\",\"name\":\"tough-cookie\",\"version\":\"6.0.2\"},\"tr46-6.0.0.tgz\":{\"integrity\":\"bLVMLPtstlZ4iMQHpFHTR7GAGj2jxi8Dg0s2h2MafAE4uSWF98FC/3MomU51iQAMf8/qDUbKWf5GxuvvVcXEhw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6cb54c2cfb6cb6567888c407a451d347b1801a3da3c62f03834b3687631a7c0138b92585f7c142ff7328994e7589000c7fcfea0d46ca59fe46c6ebef55c5c487\",\"name\":\"tr46\",\"version\":\"6.0.0\"},\"truncate-utf8-bytes-1.0.2.tgz\":{\"integrity\":\"95Pu1QXQvruGEhv62XCMO3Mm90GscOCClvrIUwCM0PYOXK3kaF3l3sIHxx71ThJfcbM2O5Au6SO3AWCSEfW4mQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f793eed505d0bebb86121bfad9708c3b7326f741ac70e08296fac853008cd0f60e5cade4685de5dec207c71ef54e125f71b3363b902ee923b701609211f5b899\",\"name\":\"truncate-utf8-bytes\",\"version\":\"1.0.2\"},\"ts-morph-26.0.0.tgz\":{\"integrity\":\"ztMO++owQnz8c/gIENcM9XfCEzgoGphTv+nKpYNM1bgsdOVC/jRZuEBf6N+mLLDNg68Kl+GgUZfOySaRiG1/Ug==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ced30efbea30427cfc73f80810d70cf577c21338281a9853bfe9caa5834cd5b82c74e542fe3459b8405fe8dfa62cb0cd83af0a97e1a05197cec92691886d7f52\",\"name\":\"ts-morph\",\"version\":\"26.0.0\"},\"tsconfig-paths-4.2.0.tgz\":{\"integrity\":\"NoZ4roiN7LnbKn9QqE1amc9DJfzvZXxF4xDavcOWt1BPkdx+m+0gJuPM+S0vCe7zTJMYUP0R8pO2XMr+Y8oLIg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"368678ae888decb9db2a7f50a84d5a99cf4325fcef657c45e310dabdc396b7504f91dc7e9bed2026e3ccf92d2f09eef34c931850fd11f293b65ccafe63ca0b22\",\"name\":\"tsconfig-paths\",\"version\":\"4.2.0\"},\"tslib-2.8.1.tgz\":{\"integrity\":\"oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a0916ef781d06fe29576e49440bef09e99aa9df98bb0e03f9c087a6fa107d30084a0ad3f98f79753a737c0a0d5f373243ae1cf447b525ca294f7d2016b34bfdb\",\"name\":\"tslib\",\"version\":\"2.8.1\"},\"tsx-4.23.12.tgz\":{\"integrity\":\"FDf4L4sYzKtzWYhU/Xm0AQFdTjdIxNo9ElTf2mxXM6k8YMHXzYUe4yODVaXP4V9uMFbVg8c0qyBccK2OOxb45Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1437f82f8b18ccab73598854fd79b401015d4e3748c4da3d1254dfda6c5733a93c60c1d7cd851ee3238355a5cfe15f6e3056d583c734ab205c70ad8e3b16f8e5\",\"name\":\"tsx\",\"version\":\"4.23.12\"},\"tw-animate-css-1.4.0.tgz\":{\"integrity\":\"7bziOlRqH0hJx80h/3mbicLW7o8qLsH5+RaLR2t+OHM3D0JlWGODQKQ4cxbK7WlvmUxpcj6Kgu6EKqjrGFe3QQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"edbce23a546a1f4849c7cd21ff799b89c2d6ee8f2a2ec1f9f9168b476b7e3873370f426558638340a4387316caed696f994c69723e8a82ee842aa8eb1857b741\",\"name\":\"tw-animate-css\",\"version\":\"1.4.0\"},\"type-fest-0.13.1.tgz\":{\"integrity\":\"34R7HTnG0XIJcBSn5XhDd7nNFPRcXYRZrBB2O2jdKqYODldSzBAqzsWoZYYvduky73toYS/ESqxPvkDf/F0XMg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"df847b1d39c6d172097014a7e5784377b9cd14f45c5d8459ac10763b68dd2aa60e0e5752cc102acec5a865862f76e932ef7b68612fc44aac4fbe40dffc5d1732\",\"name\":\"type-fest\",\"version\":\"0.13.1\"},\"type-is-2.1.0.tgz\":{\"integrity\":\"faYHw0anBbc/kWF3zFTEnxSFOAGUX9GFbOBthvDdLsIlEoWOFOtS0zgCiQYwIskL9iGXZL3kAXD8OoZ4GmMATA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7da607c346a705b73f916177cc54c49f14853801945fd1856ce06d86f0dd2ec22512858e14eb52d3380289063022c90bf6219764bde40170fc3a86781a63004c\",\"name\":\"type-is\",\"version\":\"2.1.0\"},\"typescript-7.0.2.tgz\":{\"integrity\":\"8FYau96o3NKOhbjKi/qNvG/W5jhzxkbdm5sj9AbZ/5T5sWqn3hJgLfGx27sRKZWTvyzCP8dLRBTf5tBTSRVUNA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f0561abbdea8dcd28e85b8ca8bfa8dbc6fd6e63873c646dd9b9b23f406d9ff94f9b16aa7de12602df1b1dbbb11299593bf2cc23fc74b4414dfe6d05349155434\",\"name\":\"typescript\",\"version\":\"7.0.2\"},\"uint8-util-2.3.2.tgz\":{\"integrity\":\"u1c0/eiT1IW+c5+ogbmE2Fu2hmtJQPkuzDmXD/4crMU4FPMjkTkFnjJ2NN/9AsZ9YWcc7yE869uc3WB8wIZEEA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"bb5734fde893d485be739fa881b984d85bb6866b4940f92ecc39970ffe1cacc53814f3239139059e327634dffd02c67d61671cef213cebdb9cdd607cc0864410\",\"name\":\"uint8-util\",\"version\":\"2.3.2\"},\"undici-6.28.0.tgz\":{\"integrity\":\"LIY910g9TI13YS95lrMFrs8Rm/u/irgHeTWoKCoteeJ04CUJ92eEfj0rVn+7VKMPBpUPiUoBKfhNyLI23EE/KA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2c863dd7483d4c8d77612f7996b305aecf119bfbbf8ab8077935a8282a2d79e274e02509f767847e3d2b567fbb54a30f06950f894a0129f84dc8b236dc413f28\",\"name\":\"undici\",\"version\":\"6.28.0\"},\"undici-7.29.0.tgz\":{\"integrity\":\"IDxfleLmmbSskfWSUATiN1nfn2rDuvnMOqb5CWR92iIfojA0Ud+ulOAAEQ57LPr9rWmsreUyf5lwyao+7GNNVw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"203c5f95e2e699b4ac91f5925004e23759df9f6ac3baf9cc3aa6f909647dda221fa2303451dfae94e000110e7b2cfafdad69acade5327f9970c9aa3eec634d57\",\"name\":\"undici\",\"version\":\"7.29.0\"},\"undici-8.10.0.tgz\":{\"integrity\":\"HvltHd7avK13QIw/oLe4qoOLyoVSoafqJ2jYOrtMRBkbYT31eiBQ8O0ehRKZiEZCMEyLFQNIADpgCWC5fALvYQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1ef96d1ddedabcad77408c3fa0b7b8aa838bca8552a1a7ea2768d83abb4c44191b613df57a2050f0ed1e851299884642304c8b150348003a600960b97c02ef61\",\"name\":\"undici\",\"version\":\"8.10.0\"},\"undici-types-7.18.2.tgz\":{\"integrity\":\"AsuCzffGHJybSaRrmr5eHr81mwJU3kjw6M+uprWvCXiNeN9SOGwQ3Jn8jb8m3Z6izVgknn1R0FTCEAP2QrLY/w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"02cb82cdf7c61c9c9b49a46b9abe5e1ebf359b0254de48f0e8cfaea6b5af09788d78df52386c10dc99fc8dbf26dd9ea2cd58249e7d51d054c21003f642b2d8ff\",\"name\":\"undici-types\",\"version\":\"7.18.2\"},\"undici-types-8.3.0.tgz\":{\"integrity\":\"j375ScV60dom+YkPFIfTLcOiPxkN/buHz5GobjLhixFuANaNs3C9l4GmrWqejgXWJ7BbJcFYpTEUkS1Ge8bpZQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8f7ef949c57ad1da26f9890f1487d32dc3a23f190dfdbb87cf91a86e32e18b116e00d68db370bd9781a6ad6a9e8e05d627b05b25c158a53114912d467bc6e965\",\"name\":\"undici-types\",\"version\":\"8.3.0\"},\"unicorn-magic-0.3.0.tgz\":{\"integrity\":\"+QBBXBCvifc56fsbuxZQ6Sic3wqqc3WWaqxs58gvJrcOuN83HGTCwz3oS5phzU9LthRNE9VrJCFCLUgHeeFnfA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f900415c10af89f739e9fb1bbb1650e9289cdf0aaa7375966aac6ce7c82f26b70eb8df371c64c2c33de84b9a61cd4f4bb6144d13d56b2421422d480779e1677c\",\"name\":\"unicorn-magic\",\"version\":\"0.3.0\"},\"universalify-0.1.2.tgz\":{\"integrity\":\"rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ac125e2390970259b2d6957eeb5ed607d27add4e9771acc71c5d9fd9d6c98b1e17ce9505d114b765b8f414620e080bdae4ffddfc604e61a002435c3ed1acd492\",\"name\":\"universalify\",\"version\":\"0.1.2\"},\"universalify-2.0.1.tgz\":{\"integrity\":\"gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"829b4735082120d9dcfef4c6224d12385185357c3b255ae5454b42a2725196f6b0e83b97d303b925e928f6c5ab301861f8fb18019ee85c088e9dffd42a88328b\",\"name\":\"universalify\",\"version\":\"2.0.1\"},\"unpipe-1.0.0.tgz\":{\"integrity\":\"pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a63cb66d8852b2e7f05a52b03dcfa5ddc37bfb0b8994aeaecf461d2443a54036e5ea3a3f6253e2e266fc6a0524542f0117b57c36ecdec8f36a464b00de1ced29\",\"name\":\"unpipe\",\"version\":\"1.0.0\"},\"unzipper-0.12.5.tgz\":{\"integrity\":\"tXYOi9R57Uj/2Z25SOs5RRSzq886MBQj2gY8dPL+xl/kv6s6SvByoKfAtvfVeEuhntWDgjd2o9p2lb4TVPAz0A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b5760e8bd479ed48ffd99db948eb394514b3abcf3a301423da063c74f2fec65fe4bfab3a4af072a0a7c0b6f7d5784ba19ed583823776a3da7695be1354f033d0\",\"name\":\"unzipper\",\"version\":\"0.12.5\"},\"update-browserslist-db-1.3.1.tgz\":{\"integrity\":\"ZZ61DsRsOnakl74HAmp3oSN4aXUmEWXf+i/yv0h7tIBfICc3VdrFErQKUUKPgu3AMsTUMbcongALEN4l6GSUrQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"659eb50ec46c3a76a497be07026a77a123786975261165dffa2ff2bf487bb4805f20273755dac512b40a51428f82edc032c4d431b7289e000b10de25e86494ad\",\"name\":\"update-browserslist-db\",\"version\":\"1.3.1\"},\"use-callback-ref-1.3.3.tgz\":{\"integrity\":\"jQL3lRnocaFtu3V00JToYz/4QkNWswxijDaCVNZRiRTO3HQDLsdu1ZtmIUvV4yPp+rvWm5j0y0TG/S61cuijTg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8d02f79519e871a16dbb7574d094e8633ff8424356b30c628c368254d6518914cedc74032ec76ed59b66214bd5e323e9fabbd69b98f4cb44c6fd2eb572e8a34e\",\"name\":\"use-callback-ref\",\"version\":\"1.3.3\"},\"use-sidecar-1.1.3.tgz\":{\"integrity\":\"Fedw0aZvkhynoPYlA5WXrMCAMm+nSWdZt6lzJQ7Ok8S6Q+VsHmHpRWndVRJ8Be0ZbkfPc5LRYH+5XrzXcEeLRQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"15e770d1a66f921ca7a0f625039597acc080326fa7496759b7a973250ece93c4ba43e56c1e61e94569dd55127c05ed196e47cf7392d1607fb95ebcd770478b45\",\"name\":\"use-sidecar\",\"version\":\"1.1.3\"},\"use-sync-external-store-1.6.0.tgz\":{\"integrity\":\"Pp6GSwGP/NrPIrxVFAIkOQeyw8lFenOHijQWkUTrDvrF4ALqylP2C/KCkeS9dpUM3KvYRQhna5vt7IL95+ZQ9w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3e9e864b018ffcdacf22bc551402243907b2c3c9457a73878a34169144eb0efac5e002eaca53f60bf28291e4bd76950cdcabd84508676b9bedec82fde7e650f7\",\"name\":\"use-sync-external-store\",\"version\":\"1.6.0\"},\"utf8-byte-length-1.0.5.tgz\":{\"integrity\":\"Xn0w3MtiQ6zoz2vFyUVruaCL53O/DwUvkEeOvj+uulMm0BkUGYWmBYVyElqZaSLhY6ZD0ulfU3aBra2aVT4xfA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5e7d30dccb6243ace8cf6bc5c9456bb9a08be773bf0f052f90478ebe3faeba5326d019141985a6058572125a996922e163a643d2e95f537681adad9a553e317c\",\"name\":\"utf8-byte-length\",\"version\":\"1.0.5\"},\"util-deprecate-1.0.2.tgz\":{\"integrity\":\"EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"10f0f9ab5b97c85c49a42acb9c27359c79eade039ae83641a1c008888d93692080ed5089d5424331a802cc891736c5187c3d5d68afff2d3110f318886eb1ed73\",\"name\":\"util-deprecate\",\"version\":\"1.0.2\"},\"uuid-14.0.1.tgz\":{\"integrity\":\"6ZxzVpzDXDa3bJWaHilVayA+BH/1zmxCJoVgvmqJnid/gPoKHxUrS/aC/T6LGQtNHT+XHG9fXPJB4d+IrU30Ew==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e99c73569cc35c36b76c959a1e29556b203e047ff5ce6c42268560be6a899e277f80fa0a1f152b4bf682fd3e8b190b4d1d3f971c6f5f5cf241e1df88ad4df413\",\"name\":\"uuid\",\"version\":\"14.0.1\"},\"validate-npm-package-name-7.0.2.tgz\":{\"integrity\":\"hVDIBwsRruT73PbK7uP5ebUt+ezEtCmzZz3F59BSr2F6OVFnJ/6h8liuvdLrQ88Xmnk6/+xGGuq+pG9WwTuy3A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8550c8070b11aee4fbdcf6caeee3f979b52df9ecc4b429b3673dc5e7d052af617a39516727fea1f258aebdd2eb43cf179a793affec461aeabea46f56c13bb2dc\",\"name\":\"validate-npm-package-name\",\"version\":\"7.0.2\"},\"vary-1.1.2.tgz\":{\"integrity\":\"BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"04d19b58b7ddd1e50f69b8645d4566d23f2ebaf444c93879a2f45afddca8c3f06a01b649c82fb97d4f88cd03b39802b362a6110084a8461750af778867f3d7aa\",\"name\":\"vary\",\"version\":\"1.1.2\"},\"vaul-1.1.2.tgz\":{\"integrity\":\"ZFkClGpWyI2WUQjdLJ/BaGuV6AVQiJ3uELGk3OYtP+B6yCO7Cmn9vPFXVJkRaGkOJu3m8bQMgtyzNHixULceQA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"645902946a56c88d965108dd2c9fc1686b95e80550889dee10b1a4dce62d3fe07ac823bb0a69fdbcf15754991168690e26ede6f1b40c82dcb33478b150b71e40\",\"name\":\"vaul\",\"version\":\"1.1.2\"},\"victory-vendor-37.3.6.tgz\":{\"integrity\":\"SbPDPdDBYp+5MJHhBCAyI7wKM3d5ivekigc2Dk2s7pgbZ9wIgIBYGVw4zGHBml/qTFbexrofXW6Gu4noGxrOwQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"49b3c33dd0c1629fb93091e104203223bc0a3377798af7a48a07360e4dacee981b67dc08808058195c38cc61c19a5fea4c56dec6ba1f5d6e86bb89e81b1acec1\",\"name\":\"victory-vendor\",\"version\":\"37.3.6\"},\"vite-8.2.1.tgz\":{\"integrity\":\"EU/eS7BH3XROHh2YnBefjM6DBKA6ZeMZEYQbj7NLWg5wHYlhB8B/Mayd5XsgWq+NFYccDOTemRpdETWR6Ka/lw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"114fde4bb047dd744e1e1d989c179f8cce8304a03a65e31911841b8fb34b5a0e701d896107c07f31ac9de57b205aaf8d15871c0ce4de991a5d113591e8a6bf97\",\"name\":\"vite\",\"version\":\"8.2.1\"},\"vitest-4.1.10.tgz\":{\"integrity\":\"R9jUTe5S4Qb0HCd4TNqpC7oGcrMssMRGXLW80ubjWsW9VH5GF8y1Y0SFLY9AbqSk6nt0PnOx4H4WNJYZ13GUPw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"47d8d44dee52e106f41c27784cdaa90bba0672b32cb0c4465cb5bcd2e6e35ac5bd547e4617ccb56344852d8f406ea4a4ea7b743e73b1e07e16349619d771943f\",\"name\":\"vitest\",\"version\":\"4.1.10\"},\"vscode-jsonrpc-9.0.1.tgz\":{\"integrity\":\"rfuA6T75H6m5EkbhtEPzre9pT0HPcDI2MMy4+nPFIBks5J8JBAUHD4tRYSgaBOijIEC7SRkC1kKyXTLqbmh9jw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"adfb80e93ef91fa9b91246e1b443f3adef694f41cf70323630ccb8fa73c520192ce49f090405070f8b5161281a04e8a32040bb491902d642b25d32ea6e687d8f\",\"name\":\"vscode-jsonrpc\",\"version\":\"9.0.1\"},\"w3c-xmlserializer-5.0.0.tgz\":{\"integrity\":\"o8qghlI8NZHU1lLPrpi2+Uq7abh4GGPpYANlalzWxyWteJOCsr/P+oPBA49TOLu5FTZO4d3F9MnWJfiMo4BkmA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a3caa086523c3591d4d652cfae98b6f94abb69b8781863e96003656a5cd6c725ad789382b2bfcffa83c1038f5338bbb915364ee1ddc5f4c9d625f88ca3806498\",\"name\":\"w3c-xmlserializer\",\"version\":\"5.0.0\"},\"web-streams-polyfill-3.3.3.tgz\":{\"integrity\":\"d2JWLCivmZYTSIoge9MsgFCZrt571BikcWGYkjC1khllbTeDlGqZ2D8vD8E/lJa8WGWbb7Plm8/XJYV7IJHZZw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7762562c28af999613488a207bd32c805099aede7bd418a47161989230b59219656d3783946a99d83f2f0fc13f9496bc58659b6fb3e59bcfd725857b2091d967\",\"name\":\"web-streams-polyfill\",\"version\":\"3.3.3\"},\"webcrypto-core-1.9.2.tgz\":{\"integrity\":\"gsXecm82UQNlTBURJGuqOWy1Ww08S3kZUcr3aOJS02Pk0xLtkfeUAVC0u0xhgdonFme80edSJUIJyuvL/7250Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"82c5de726f365103654c1511246baa396cb55b0d3c4b791951caf768e252d363e4d312ed91f7940150b4bb4c6181da271667bcd1e752254209caebcbffbdb9d1\",\"name\":\"webcrypto-core\",\"version\":\"1.9.2\"},\"webidl-conversions-8.0.1.tgz\":{\"integrity\":\"BMhLD/Sw+GbJC21C/UgyaZX41nPt8bUTg+jWyDeg7e7YN4xOM05YPSIXceACnXVtqyEw/LMClUQMtMZ+PGGpqQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"04c84b0ff4b0f866c90b6d42fd48326995f8d673edf1b51383e8d6c837a0edeed8378c4e334e583d221771e0029d756dab2130fcb30295440cb4c67e3c61a9a9\",\"name\":\"webidl-conversions\",\"version\":\"8.0.1\"},\"whatwg-mimetype-5.0.0.tgz\":{\"integrity\":\"sXcNcHOC51uPGF0P/D4NVtrkjSU2fNsm9iog4ZvZJsL3rjoDAzXZhkm2MWt1y+PUdggKAYVoMAIYcs78wJ51Cw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b1770d707382e75b8f185d0ffc3e0d56dae48d25367cdb26f62a20e19bd926c2f7ae3a030335d98649b6316b75cbe3d476080a01856830021872cefcc09e750b\",\"name\":\"whatwg-mimetype\",\"version\":\"5.0.0\"},\"whatwg-url-16.0.1.tgz\":{\"integrity\":\"1to4zXBxmXHV3IiSSEInrreIlu02vUOvrhxJJH5vcxYTBDAx51cqZiKdyTxlecdKNSjj8EcxGBxNf6Vg+945gw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d6da38cd70719971d5dc8892484227aeb78896ed36bd43afae1c49247e6f731613043031e7572a66229dc93c6579c74a3528e3f04731181c4d7fa560fbde3983\",\"name\":\"whatwg-url\",\"version\":\"16.0.1\"},\"whatwg-url-17.1.0.tgz\":{\"integrity\":\"3GeworPmc2ZfEEHP7lEbUfBX/L75wdEsi0rLNhXcXxnoN5jyq0SL5gCy06SGW2cyTIZdTvWIDQNQoza++vKeaw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"dc67b0a2b3e673665f1041cfee511b51f057fcbef9c1d12c8b4acb3615dc5f19e83798f2ab448be600b2d3a4865b67324c865d4ef5880d0350a336befaf29e6b\",\"name\":\"whatwg-url\",\"version\":\"17.1.0\"},\"which-2.0.2.tgz\":{\"integrity\":\"BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"04b2374e5d535b73ef97bd25df2ab763ae22f9ac29c17aac181616924a8cb676d782b303fb28fbae15b492e103c7325a6171a3116e6881aa4a34c10a34c8e26c\",\"name\":\"which\",\"version\":\"2.0.2\"},\"which-4.0.0.tgz\":{\"integrity\":\"GlaYyEb07DPxYCKhKzplCWBJtvxZcZMrL+4UkrTSJHHPyZU4mYYTv3qaOe77H7EODLSSopAUFAc6W8U4yqvscg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1a5698c846f4ec33f16022a12b3a65096049b6fc5971932b2fee1492b4d22471cfc99538998613bf7a9a39eefb1fb10e0cb492a2901414073a5bc538caabec72\",\"name\":\"which\",\"version\":\"4.0.0\"},\"which-5.0.0.tgz\":{\"integrity\":\"JEdGzHwwkrbWoGOlIHqQ5gtprKGOenpDHpxE9zVR1bWbOtYRyPPHMe9FaP6x61CmNaTThSkb0DAJte5jD+DmzQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"244746cc7c3092b6d6a063a5207a90e60b69aca18e7a7a431e9c44f73551d5b59b3ad611c8f3c731ef4568feb1eb50a635a4d385291bd03009b5ee630fe0e6cd\",\"name\":\"which\",\"version\":\"5.0.0\"},\"which-6.0.1.tgz\":{\"integrity\":\"oGLe46MIrCRqX7ytPUf66EAYvdeMIZYn3WaocqqKZAxrBpkqHfL/qvTyJ/bTk5+AqHCjXmrv3CEWgy368zhRUg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a062dee3a308ac246a5fbcad3d47fae84018bdd78c219627dd66a872aa8a640c6b06992a1df2ffaaf4f227f6d3939f80a870a35e6aefdc2116832dfaf3385152\",\"name\":\"which\",\"version\":\"6.0.1\"},\"why-is-node-running-2.3.0.tgz\":{\"integrity\":\"hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"854ae669605d543731bd8aa7ca1d3dcee9cacd13968db65388dcbc741123912ede8440d089b5c9ed7be59ad6f0b9372552223237e0b25d00f8566928f1f366f3\",\"name\":\"why-is-node-running\",\"version\":\"2.3.0\"},\"wrap-ansi-7.0.0.tgz\":{\"integrity\":\"YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6151888f691a98b493c70e8db198e80717d2c2c9f4c9c75eb26738a7e436d5ce733ee675a65f8d7f155dc4fb5d1ef98d54e43a5d2606e0052dcadfc58bb0f5e9\",\"name\":\"wrap-ansi\",\"version\":\"7.0.0\"},\"wrappy-1.0.2.tgz\":{\"integrity\":\"l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9784a9fc346c7a8afdc0be84bd5dbe4ee427eb774c90f8d9feca7d5e48214c46d5f4a94f4b5c54b19deeeff2103b8c31b5c141e1b82940f45c477402bdeccf71\",\"name\":\"wrappy\",\"version\":\"1.0.2\"},\"write-file-atomic-8.0.0.tgz\":{\"integrity\":\"dYwyZredl67GyLLIHJnRM3h2PcOmN5SkcgC7eM5DPDEOEl6dLFqVrMg3F1Ea32usj4VSVZtd2H4MtKTNOf6nPg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"758c3266b79d97aec6c8b2c81c99d13378763dc3a63794a47200bb78ce433c310e125e9d2c5a95acc83717511adf6bac8f8552559b5dd87e0cb4a4cd39fea73e\",\"name\":\"write-file-atomic\",\"version\":\"8.0.0\"},\"ws-8.21.3.tgz\":{\"integrity\":\"201TZ/kPWxoPr/OKWjquZR1SWKXcvxdH+e1xrx89b3YbmzLMFCLfnaG1HFIgWzJOEWZ7MvpK++odZufgYR50Rw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"db4d5367f90f5b1a0faff38a5a3aae651d5258a5dcbf1747f9ed71af1f3d6f761b9b32cc1422df9da1b51c52205b324e11667b32fa4afbea1d66e7e0611e7447\",\"name\":\"ws\",\"version\":\"8.21.3\"},\"wsl-utils-1.0.0.tgz\":{\"integrity\":\"Hl0ZOAs672vg+06kfujwRhoS6/jehvULrlFkuF2dRu6pHgA8U06h3xqNIqNNU1LTXPcedxByAR4GS6pwQK0mgA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1e5d19380b3aef6be0fb4ea47ee8f0461a12ebf8de86f50bae5164b85d9d46eea91e003c534ea1df1a8d22a34d5352d35cf71e771072011e064baa7040ad2680\",\"name\":\"wsl-utils\",\"version\":\"1.0.0\"},\"xml-name-validator-5.0.0.tgz\":{\"integrity\":\"EvGK8EJ3DhaHfbRlETOWAS5pO9MZITeauHKJyb8wyajUfQUenkIg2MvLDTZ4T/TgIcm3HU0TFBgWWboAZ30UHg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"12f18af042770e16877db465113396012e693bd31921379ab87289c9bf30c9a8d47d051e9e4220d8cbcb0d36784ff4e021c9b71d4d1314181659ba00677d141e\",\"name\":\"xml-name-validator\",\"version\":\"5.0.0\"},\"xmlbuilder-15.1.1.tgz\":{\"integrity\":\"yMqGBqtXyeN1e3TGYvgNgDVZ3j84W4cwkOXQswghol6APgZWaff9lnbvN7MHYJOiXsvGPXtjTYJEiC9J2wv9Eg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c8ca8606ab57c9e3757b74c662f80d803559de3f385b873090e5d0b30821a25e803e065669f7fd9676ef37b3076093a25ecbc63d7b634d8244882f49db0bfd12\",\"name\":\"xmlbuilder\",\"version\":\"15.1.1\"},\"xmlchars-2.2.0.tgz\":{\"integrity\":\"JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2599c328af01d11083c3ce0535d0c022964af89b89c3eb3b2f3f2792c23b488b94dd45c926c954b61b22fae5815183b03c5c16ed6ecf44b45f50aa718ed8c50b\",\"name\":\"xmlchars\",\"version\":\"2.2.0\"},\"y18n-5.0.8.tgz\":{\"integrity\":\"0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d297c5cde81e0d62472480264cb44fd83c078dd179b3b8e8f6dbb3b5d43102120d09dbd2fb79c620da8f774d00a61a8947fd0b8403544baffeed209bf7c60e7c\",\"name\":\"y18n\",\"version\":\"5.0.8\"},\"yallist-3.1.1.tgz\":{\"integrity\":\"a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6b850641a58f1f9f663975189c01b67b09dc412e22e05e374efdc9a0033eb365430264bd36c2bc1a90cc2eb0873e4b054fb8772ba4cea14367da96fb4685f1e2\",\"name\":\"yallist\",\"version\":\"3.1.1\"},\"yallist-4.0.0.tgz\":{\"integrity\":\"3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"df074689d672ab93c1d3ce172c44b94e9392440df08d7025216321ba6da445cbffe354a7d9e990d1dc9c416e2e6572de8f02af83a12cbdb76554bf8560472dec\",\"name\":\"yallist\",\"version\":\"4.0.0\"},\"yallist-5.0.0.tgz\":{\"integrity\":\"YgvUTfwqyc7UXVMrB+SImsVYSmTS8X/tSrtdNZMImM+n7+QTriRXyXim0mBrTXNeqzVF0KWGgHPeiyViFFrNDw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"620bd44dfc2ac9ced45d532b07e4889ac5584a64d2f17fed4abb5d35930898cfa7efe413ae2457c978a6d2606b4d735eab3545d0a5868073de8b2562145acd0f\",\"name\":\"yallist\",\"version\":\"5.0.0\"},\"yargs-17.7.3.tgz\":{\"integrity\":\"GZtjxm/J/4TSxuL3FNYjCmLktBTnIw/rVmKSIyKeYAZpmJB2ig9VauCC5xsa82GNKVKDAqpOn3KVzNt0zmrU0g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"199b63c66fc9ff84d2c6e2f714d6230a62e4b414e7230feb56629223229e6006699890768a0f556ae082e71b1af3618d29528302aa4e9f7295ccdb74ce6ad4d2\",\"name\":\"yargs\",\"version\":\"17.7.3\"},\"yargs-parser-21.1.1.tgz\":{\"integrity\":\"tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b55a6c256ec376379c0221696c80757b7ab1210b04e8da0f739fde4ddadb6c80b88742d5b16867a1ade0fa6d87725048ba31f3b31678549540f8652e736fcb07\",\"name\":\"yargs-parser\",\"version\":\"21.1.1\"},\"yauzl-3.4.0.tgz\":{\"integrity\":\"jIH9yLR9wqr0wOS0TpBvo/g/2UgZH5qePVbjgRliiF0BYvOZyaBknKsF+x9Iht0O6sqgnB93rCICdOZFecJuDw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8c81fdc8b47dc2aaf4c0e4b44e906fa3f83fd948191f9a9e3d56e3811962885d0162f399c9a0649cab05fb1f4886dd0eeacaa09c1f77ac220274e64579c26e0f\",\"name\":\"yauzl\",\"version\":\"3.4.0\"},\"yocto-queue-0.1.0.tgz\":{\"integrity\":\"rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ad592cbec9cd09d27fa2119ceb180fc3237c7a1782c6c88b33c9b1b84fedfe6395a897b03ee3b59a22e94c74224604ca08b7b12f831e00555a82db3b1e6359d9\",\"name\":\"yocto-queue\",\"version\":\"0.1.0\"},\"yocto-spinner-1.2.2.tgz\":{\"integrity\":\"DODGl1wJjA/s5pnJFKau9lIYHT81lnhob1i3e1TjxZRxEhWRKl74nTbWE6H5KlkViQQTo/Z29YFdxzTZAMY3ng==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0ce0c6975c098c0fece699c914a6aef652181d3f359678686f58b77b54e3c594711215912a5ef89d36d613a1f92a5915890413a3f676f5815dc734d900c6379e\",\"name\":\"yocto-spinner\",\"version\":\"1.2.2\"},\"yoctocolors-2.2.0.tgz\":{\"integrity\":\"xYqdZFUK/VYazNl/oCDYN+3WloWQwMfZxBoiNt6qNyk+xfOdi598muWE42rNZFp1kNOiqW936q5RhUdnpqElSg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c58a9d64550afd561accd97fa020d837edd6968590c0c7d9c41a2236deaa37293ec5f39d8b9f7c9ae584e36acd645a7590d3a2a96f77eaae51854767a6a1254a\",\"name\":\"yoctocolors\",\"version\":\"2.2.0\"},\"zod-3.25.76.tgz\":{\"integrity\":\"gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"83352dfeab7cd675ec14628815c0b76277c4031e4d92e9c27e70e5bee0524854b4d9b717bb82e679ad001485306cb5b158fc7777da7c4b94286ae8ca70d43171\",\"name\":\"zod\",\"version\":\"3.25.76\"},\"zod-4.4.3.tgz\":{\"integrity\":\"ytENFjIJFl2UwYglde2jchW2Hwm4GJFLDiSXWdTrJQBIN9Fcyp7n4DhxJEiWNAJMV1/BqWfW/kkg71UDcHJyTQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"cad10d163209165d94c1882575eda37215b61f09b818914b0e249759d4eb25004837d15cca9ee7e0387124489634024c575fc1a967d6fe4920ef55037072724d\",\"name\":\"zod\",\"version\":\"4.4.3\"},\"zod-to-json-schema-3.25.2.tgz\":{\"integrity\":\"O/PgfnpT1xKSDeQYSCfRI5Gy3hPf91mKVDuYLUHZJMiDFptvP41MSnWofm8dnCm0256ZNfZIM7DSzuSMAFnjHA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3bf3e07e7a53d712920de4184827d12391b2de13dff7598a543b982d41d924c883169b6f3f8d4c4a75a87e6f1d9c29b4db9e9935f64833b0d2cee48c0059e31c\",\"name\":\"zod-to-json-schema\",\"version\":\"3.25.2\"},\"zustand-4.5.7.tgz\":{\"integrity\":\"CHOUy7mu3lbD6o6LJLfllpjkzhHXSBlX8B9+qPddUsIfeF5S/UZ5q0kmCsnRqT1UHFQZchNFDDzMbQsuesHWlw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"087394cbb9aede56c3ea8e8b24b7e59698e4ce11d7481957f01f7ea8f75d52c21f785e52fd4679ab49260ac9d1a93d541c54197213450c3ccc6d0b2e7ac1d697\",\"name\":\"zustand\",\"version\":\"4.5.7\"},\"zustand-5.0.15.tgz\":{\"integrity\":\"MpSEjRiBkA9crSYeOUH32rJC7SVqAbm0Fqcqge/bUi2PPoLcBWKOsG+C8mevmpr8TwXHBVkChbbJiyvkE+i/3A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3294848d1881900f5cad261e3941f7dab242ed256a01b9b416a72a81efdb522d8f3e82dc05628eb06f82f267af9a9afc4f05c705590285b6c98b2be413e8bfdc\",\"name\":\"zustand\",\"version\":\"5.0.15\"}},\"store_version\":\"v11\"}",
"dest-filename": "pnpm-manifest.json",
"dest": "flatpak-node"
},
diff --git a/package.json b/package.json
index a4a97924..06869e3a 100644
--- a/package.json
+++ b/package.json
@@ -32,6 +32,7 @@
"build:builtin": "node scripts/fetch-builtins.mjs",
"build:native-host": "node packages/native-host/build.mjs",
"build:legal": "pnpm run ensure:electron-runtime && node scripts/generate-third-party-notices.mjs",
+ "generate:bridge-vectors": "node scripts/generate-bridge-pairing-vectors.mjs docs/bridge-pairing-protocol-vectors.json",
"package:flatpak-native-host": "node packages/native-host/package-flatpak-companion.mjs",
"build:snap:prepare": "node scripts/prepare-snap-project.mjs",
"build:mac-arm64": "pnpm run build:builtin && pnpm run build:native-host -- --platform darwin --arch arm64 && pnpm run build:electron",
@@ -112,9 +113,11 @@
"@fastify/websocket": "^11.3.0",
"@fontsource-variable/inter": "^5.3.0",
"@hookform/resolvers": "^5.9.1",
- "@motrix/mdxp": "^0.5.0",
+ "@motrix/mdxp": "^0.6.0",
"@motrix/nat": "^0.1.1",
"@motrix/plugin-manifest-schema": "^2.1.0",
+ "@noble/curves": "2.0.1",
+ "@noble/hashes": "2.0.1",
"@resvg/resvg-wasm": "^2.6.2",
"@tailwindcss/vite": "^4.3.3",
"@tanstack/react-virtual": "^3.14.9",
diff --git a/packages/native-host/Cargo.lock b/packages/native-host/Cargo.lock
index adfa83da..8385a2ef 100644
--- a/packages/native-host/Cargo.lock
+++ b/packages/native-host/Cargo.lock
@@ -2,6 +2,85 @@
# It is not intended for manual editing.
version = 4
+[[package]]
+name = "base64"
+version = "0.22.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6"
+
+[[package]]
+name = "block-buffer"
+version = "0.10.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71"
+dependencies = [
+ "generic-array",
+]
+
+[[package]]
+name = "cfg-if"
+version = "1.0.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
+
+[[package]]
+name = "cpufeatures"
+version = "0.2.17"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "59ed5838eebb26a2bb2e58f6d5b5316989ae9d08bab10e0e6d103e656d1b0280"
+dependencies = [
+ "libc",
+]
+
+[[package]]
+name = "crypto-common"
+version = "0.1.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "78c8292055d1c1df0cce5d180393dc8cce0abec0a7102adb6c7b1eef6016d60a"
+dependencies = [
+ "generic-array",
+ "typenum",
+]
+
+[[package]]
+name = "digest"
+version = "0.10.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292"
+dependencies = [
+ "block-buffer",
+ "crypto-common",
+ "subtle",
+]
+
+[[package]]
+name = "generic-array"
+version = "0.14.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a"
+dependencies = [
+ "typenum",
+ "version_check",
+]
+
+[[package]]
+name = "hkdf"
+version = "0.12.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7b5f8eb2ad728638ea2c7d47a21db23b7b58a72ed6a38256b8a1849f15fbbdf7"
+dependencies = [
+ "hmac",
+]
+
+[[package]]
+name = "hmac"
+version = "0.12.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6c49c37c09c17a53d937dfbb742eb3a961d65a994e6bcdcf37e7399d0cc8ab5e"
+dependencies = [
+ "digest",
+]
+
[[package]]
name = "home"
version = "0.5.12"
@@ -23,6 +102,12 @@ version = "1.0.18"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682"
+[[package]]
+name = "libc"
+version = "0.2.189"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3eaf3ede3fee6db1a4c2ee091bf8a8b4dccdc6d17f656fb07896ee72867612f2"
+
[[package]]
name = "memchr"
version = "2.8.3"
@@ -33,10 +118,15 @@ checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"
name = "motrix-native-host"
version = "0.1.0"
dependencies = [
+ "base64",
+ "hkdf",
+ "hmac",
"home",
"humantime",
"serde",
"serde_json",
+ "sha2",
+ "windows-sys",
]
[[package]]
@@ -100,6 +190,23 @@ dependencies = [
"zmij",
]
+[[package]]
+name = "sha2"
+version = "0.10.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a7507d819769d01a365ab707794a4084392c824f54a7a6a7862f8c3d0892b283"
+dependencies = [
+ "cfg-if",
+ "cpufeatures",
+ "digest",
+]
+
+[[package]]
+name = "subtle"
+version = "2.6.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292"
+
[[package]]
name = "syn"
version = "3.0.3"
@@ -111,12 +218,24 @@ dependencies = [
"unicode-ident",
]
+[[package]]
+name = "typenum"
+version = "1.20.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b6f5e870be6c3b371b77fe0ee0bafb859fa4964b4404c27de1d380043c4dda20"
+
[[package]]
name = "unicode-ident"
version = "1.0.24"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
+[[package]]
+name = "version_check"
+version = "0.9.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a"
+
[[package]]
name = "windows-link"
version = "0.2.1"
diff --git a/packages/native-host/Cargo.toml b/packages/native-host/Cargo.toml
index 4234b12d..4cbe8481 100644
--- a/packages/native-host/Cargo.toml
+++ b/packages/native-host/Cargo.toml
@@ -19,13 +19,32 @@ name = "motrix-flatpak-native-host"
path = "src/bin/motrix-flatpak-native-host.rs"
[dependencies]
+base64 = "0.22"
+hkdf = "0.12"
+hmac = "0.12"
home = "0.5"
humantime = "2"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
+sha2 = "0.10"
[profile.release]
codegen-units = 1
lto = true
panic = "abort"
strip = true
+
+# Windows-only, and already in the dependency graph: `home` pulls the same
+# windows-sys 0.61.2, so enabling these namespaces adds no new crate. Feature
+# gating keeps the compiled surface to the DACL/token calls `endpoint.rs` needs
+# out of the 239 namespaces this crate can expose.
+[target."cfg(windows)".dependencies.windows-sys]
+version = "0.61.2"
+features = [
+ "Win32_Foundation",
+ "Win32_Security",
+ "Win32_Security_Authorization",
+ "Win32_System_Memory",
+ "Win32_System_SystemServices",
+ "Win32_System_Threading",
+]
diff --git a/packages/native-host/src/broker_protocol.rs b/packages/native-host/src/broker_protocol.rs
index d7504f6d..a669cd3d 100644
--- a/packages/native-host/src/broker_protocol.rs
+++ b/packages/native-host/src/broker_protocol.rs
@@ -208,6 +208,8 @@ enum ResolveResultWire {
#[serde(deny_unknown_fields)]
struct RequestPairWire {
action: String,
+ #[serde(rename = "protocolVersion")]
+ protocol_version: u32,
port: u16,
nonce: String,
}
@@ -224,6 +226,11 @@ pub fn decode_broker_response(bytes: &[u8]) -> Result<ResolveResult, BrokerProto
if response.action != "requestPair" {
return Err(BrokerProtocolError::InvalidResponse("unexpected action"));
}
+ if response.protocol_version != 1 {
+ return Err(BrokerProtocolError::InvalidResponse(
+ "unexpected protocol version",
+ ));
+ }
if response.port == 0 {
return Err(BrokerProtocolError::InvalidResponse("zero port"));
}
@@ -363,10 +370,11 @@ mod tests {
);
for invalid in [
- json!({ "action": "connect", "port": 55809, "nonce": "AbCdEfGhIjKlMnOpQrStUv" }),
- json!({ "action": "requestPair", "port": 0, "nonce": "AbCdEfGhIjKlMnOpQrStUv" }),
- json!({ "action": "requestPair", "port": 55809, "nonce": "bad=" }),
- json!({ "action": "requestPair", "port": 55809, "nonce": "AbCdEfGhIjKlMnOpQrStUv", "extra": true }),
+ json!({ "action": "connect", "protocolVersion": 1, "port": 55809, "nonce": "AbCdEfGhIjKlMnOpQrStUv" }),
+ json!({ "action": "requestPair", "protocolVersion": 2, "port": 55809, "nonce": "AbCdEfGhIjKlMnOpQrStUv" }),
+ json!({ "action": "requestPair", "protocolVersion": 1, "port": 0, "nonce": "AbCdEfGhIjKlMnOpQrStUv" }),
+ json!({ "action": "requestPair", "protocolVersion": 1, "port": 55809, "nonce": "bad=" }),
+ json!({ "action": "requestPair", "protocolVersion": 1, "port": 55809, "nonce": "AbCdEfGhIjKlMnOpQrStUv", "extra": true }),
json!({ "error": "unknown" }),
] {
let bytes = encode_broker_message(&invalid).expect("encode invalid response");
diff --git a/packages/native-host/src/caller.rs b/packages/native-host/src/caller.rs
new file mode 100644
index 00000000..ede81549
--- /dev/null
+++ b/packages/native-host/src/caller.rs
@@ -0,0 +1,126 @@
+//! Extracts the browser-supplied caller identity from Native Messaging argv
+//! (`docs/bridge-pairing-protocol.md` §9.1): Chromium passes the calling
+//! extension's origin in argv, Firefox passes its extension ID as an
+//! argument.
+//!
+//! This module validates only the *shape* of what it finds — it never
+//! consults an allowlist. Whether an id is trusted is resolved downstream by
+//! the server (§5's tri-state); a caller ID that shapes correctly but is not
+//! on the allowlist is a legitimate `attested-non-official` outcome, not
+//! something this module should reject. `flatpak_companion::validate_browser_
+//! caller` reads the same argv shapes but additionally gates on the
+//! allowlist — that gate is deliberately not replicated here.
+//!
+//! `caller_id` is required to be ASCII (`is_plausible_gecko_id` and the
+//! Chromium `[a-p]{32}` shape both enforce this) so that a caller identity
+//! produced here can never make `ticket::ticket_canonical`'s ASCII
+//! `.expect()` panic: a malformed caller id must surface as `None` here,
+//! never reach ticket minting, and let the caller degrade to a ticketless
+//! reply instead of killing the host process.
+
+/// A browser caller identity extracted from Native Messaging argv, still
+/// unverified against any allowlist.
+#[derive(Clone, Debug, Eq, PartialEq)]
+pub struct CallerIdentity {
+ pub browser: &'static str,
+ pub caller_id: String,
+}
+
+const CHROMIUM_ORIGIN_PREFIX: &str = "chrome-extension://";
+const CHROMIUM_ID_LEN: usize = 32;
+const MAX_GECKO_ID_LEN: usize = 128;
+
+/// The allowlist regex shape (`trusted-extension-registry.ts`'s
+/// `CHROME_ID_RE`): exactly 32 lowercase `[a-p]` characters.
+fn is_chromium_extension_id_shape(id: &str) -> bool {
+ id.len() == CHROMIUM_ID_LEN && id.bytes().all(|byte| (b'a'..=b'p').contains(&byte))
+}
+
+/// A plausible Gecko extension ID: non-empty, bounded, ASCII, and either
+/// `left@right` (an email-like id) or a `{uuid}`-braced form.
+fn is_plausible_gecko_id(id: &str) -> bool {
+ if id.is_empty() || id.len() > MAX_GECKO_ID_LEN || !id.is_ascii() {
+ return false;
+ }
+ id.contains('@') || (id.starts_with('{') && id.ends_with('}') && id.len() >= 2)
+}
+
+/// Scans post-argv0 Native Messaging arguments for a browser caller
+/// identity. Returns `None` for anything that does not match one of the two
+/// documented shapes — including a well-positioned but malformed Chromium
+/// origin or Firefox ID — rather than guessing.
+pub fn extract_caller_identity<I: IntoIterator<Item = String>>(args: I) -> Option<CallerIdentity> {
+ let args: Vec<String> = args.into_iter().collect();
+
+ if let Some(first) = args.first()
+ && let Some(origin) = first.strip_prefix(CHROMIUM_ORIGIN_PREFIX)
+ {
+ let candidate = origin.strip_suffix('/').unwrap_or(origin);
+ if candidate.contains('/') || !is_chromium_extension_id_shape(candidate) {
+ return None;
+ }
+ return Some(CallerIdentity {
+ browser: "chromium",
+ caller_id: candidate.to_owned(),
+ });
+ }
+
+ if let [_, second] = args.as_slice()
+ && is_plausible_gecko_id(second)
+ {
+ return Some(CallerIdentity {
+ browser: "firefox",
+ caller_id: second.clone(),
+ });
+ }
+
+ None
+}
+
+#[cfg(test)]
+mod tests {
+ use super::extract_caller_identity;
+
+ #[test]
+ fn chromium_origin_arg_yields_32_char_id() {
+ let id = extract_caller_identity(vec![
+ "chrome-extension://ibpkjhgpbidfmbmomagmldcdlpbmchgi/".into(),
+ ])
+ .expect("identity");
+ assert_eq!(id.browser, "chromium");
+ assert_eq!(id.caller_id, "ibpkjhgpbidfmbmomagmldcdlpbmchgi");
+ // Windows: --parent-window may accompany the origin
+ assert!(
+ extract_caller_identity(vec![
+ "chrome-extension://ibpkjhgpbidfmbmomagmldcdlpbmchgi/".into(),
+ "--parent-window=42".into(),
+ ])
+ .is_some()
+ );
+ }
+
+ #[test]
+ fn firefox_manifest_path_plus_gecko_id_yields_firefox_identity() {
+ let id = extract_caller_identity(vec![
+ "/usr/lib/mozilla/native-messaging-hosts/app.motrix.bridge.json".into(),
+ "[email protected]".into(),
+ ])
+ .expect("identity");
+ assert_eq!(id.browser, "firefox");
+ assert_eq!(id.caller_id, "[email protected]");
+ }
+
+ #[test]
+ fn malformed_or_absent_identity_yields_none() {
+ assert!(extract_caller_identity(Vec::<String>::new()).is_none());
+ assert!(extract_caller_identity(vec!["chrome-extension://SHOUTING/".into()]).is_none());
+ assert!(extract_caller_identity(vec!["chrome-extension://short/".into()]).is_none());
+ assert!(
+ extract_caller_identity(vec!["one".into(), "two".into(), "three".into()]).is_none()
+ );
+ assert!(
+ extract_caller_identity(vec!["/path/manifest.json".into(), "no-at-sign".into()])
+ .is_none()
+ );
+ }
+}
diff --git a/packages/native-host/src/canonical.rs b/packages/native-host/src/canonical.rs
new file mode 100644
index 00000000..5aaace3a
--- /dev/null
+++ b/packages/native-host/src/canonical.rs
@@ -0,0 +1,99 @@
+//! MBP1 canonical byte-level encoding primitives (`docs/bridge-pairing-protocol.md` §2).
+//!
+//! These bytes are independently produced by a TypeScript implementation
+//! (`src/core/bridge/mbp1/canonical.ts`) and this Rust host; every definition
+//! here must match §2 exactly, byte for byte.
+
+use base64::Engine;
+use base64::engine::general_purpose::URL_SAFE_NO_PAD;
+
+/// `len64LE(n)` — the length of a byte string as an 8-byte little-endian
+/// integer (§2).
+pub fn len64_le(len: u64) -> [u8; 8] {
+ len.to_le_bytes()
+}
+
+/// `enc(s)` — `len64LE(s) ‖ s` (§2) over a raw byte string. Use this for
+/// non-textual fields (for example a raw binding key); canonical *string*
+/// fields go through [`enc_ascii`] instead, which enforces §2's ASCII-only
+/// rule before delegating here.
+pub fn enc(bytes: &[u8]) -> Vec<u8> {
+ let mut out = Vec::with_capacity(8 + bytes.len());
+ out.extend_from_slice(&len64_le(bytes.len() as u64));
+ out.extend_from_slice(bytes);
+ out
+}
+
+/// `enc(s)` for a canonical *string* field (§2): "every string field in a
+/// canonical structure MUST be ASCII-only, and implementations MUST reject
+/// non-ASCII input in those fields." Returns `None` on any non-ASCII byte
+/// instead of silently encoding it.
+pub fn enc_ascii(s: &str) -> Option<Vec<u8>> {
+ s.is_ascii().then(|| enc(s.as_bytes()))
+}
+
+/// `encU32BE(n)` — 4-byte big-endian unsigned integer (§2).
+pub fn enc_u32_be(n: u32) -> [u8; 4] {
+ n.to_be_bytes()
+}
+
+/// `encU64BE(n)` — 8-byte big-endian unsigned integer (§2).
+pub fn enc_u64_be(n: u64) -> [u8; 8] {
+ n.to_be_bytes()
+}
+
+/// Base64url without padding (§2, RFC 4648 §5).
+pub fn base64url_encode(bytes: &[u8]) -> String {
+ URL_SAFE_NO_PAD.encode(bytes)
+}
+
+/// Strict base64url decode (§2: "Decoders MUST reject padded or
+/// non-canonical input"). `URL_SAFE_NO_PAD`'s default decode config already
+/// requires no padding and rejects non-zero trailing bits, so any decode
+/// error — padding, an out-of-alphabet byte, or a non-canonical tail —
+/// collapses to `None`.
+pub fn base64url_decode(text: &str) -> Option<Vec<u8>> {
+ URL_SAFE_NO_PAD.decode(text).ok()
+}
+
+#[cfg(test)]
+mod tests {
+ use super::{base64url_decode, base64url_encode, enc, enc_ascii, enc_u32_be, enc_u64_be};
+ use crate::test_vectors::hex;
+
+ #[test]
+ fn enc_prefixes_eight_byte_le_length() {
+ // enc("chromium") as it appears inside nmTicket.expected.canonical
+ assert_eq!(hex(&enc(b"chromium")), "08000000000000006368726f6d69756d");
+ assert_eq!(hex(&enc(b"")), "0000000000000000");
+ }
+
+ #[test]
+ fn big_endian_ints_match_vector_fields() {
+ assert_eq!(hex(&enc_u32_be(1)), "00000001");
+ // exp = 1755600000 from the nmTicket vector
+ assert_eq!(hex(&enc_u64_be(1_755_600_000)), "0000000068a45480");
+ }
+
+ #[test]
+ fn enc_ascii_matches_raw_enc_for_ascii_input() {
+ assert_eq!(enc_ascii("chromium"), Some(enc(b"chromium")));
+ assert_eq!(enc_ascii(""), Some(enc(b"")));
+ }
+
+ #[test]
+ fn enc_ascii_rejects_non_ascii_input() {
+ assert_eq!(enc_ascii("café"), None);
+ assert_eq!(enc_ascii("\u{1f4a9}"), None);
+ }
+
+ #[test]
+ fn base64url_round_trips_without_padding_and_rejects_padded_input() {
+ let raw: Vec<u8> = (0_u8..32).collect();
+ let encoded = base64url_encode(&raw);
+ assert!(!encoded.contains('='));
+ assert_eq!(base64url_decode(&encoded), Some(raw));
+ assert_eq!(base64url_decode("AA=="), None);
+ assert_eq!(base64url_decode("A+B/"), None);
+ }
+}
diff --git a/packages/native-host/src/endpoint.rs b/packages/native-host/src/endpoint.rs
index 69f1744b..01639a92 100644
--- a/packages/native-host/src/endpoint.rs
+++ b/packages/native-host/src/endpoint.rs
@@ -6,21 +6,358 @@ use serde::Deserialize;
pub const MAX_ENDPOINT_BYTES: usize = 64 * 1024;
-#[derive(Clone, Copy, Debug, Deserialize, Eq, PartialEq)]
+#[derive(Clone, Debug, Deserialize, Eq, PartialEq)]
pub struct EndpointFile {
pub port: u16,
+ #[serde(rename = "localToken", default)]
+ pub local_token: Option<String>,
+ #[serde(default)]
+ pub generation: Option<String>,
}
+#[cfg(unix)]
+fn effective_user_id() -> u32 {
+ unsafe extern "C" {
+ fn geteuid() -> u32;
+ }
+
+ // SAFETY: geteuid has no preconditions and does not dereference pointers.
+ unsafe { geteuid() }
+}
+
+/// Spec §9.1: `endpoint.json`'s 0600 owner-only mode *is* the attestation
+/// root. Reads metadata from the already-open handle, avoiding a TOCTOU
+/// window between checking the file and reading its contents.
+#[cfg(unix)]
+fn is_owner_only(file: &File) -> bool {
+ use std::os::unix::fs::{MetadataExt, PermissionsExt};
+
+ let Ok(metadata) = file.metadata() else {
+ return false;
+ };
+ metadata.uid() == effective_user_id() && metadata.permissions().mode() & 0o077 == 0
+}
+
+/// The Windows counterpart of the 0600 check, and **deliberately weaker than
+/// it** — the difference is documented here rather than glossed, because the
+/// spec's attestation root is stated in POSIX terms and Windows cannot express
+/// exactly that.
+///
+/// What §9.1 actually needs is "nobody who is not already omnipotent could have
+/// written this file", because a file a third party can write cannot root an
+/// attestation. So this requires:
+///
+/// 1. the file's owner SID is the current process user, and
+/// 2. every DACL entry is either a deny-family ACE (which can only subtract
+/// access) or a plain `ACCESS_ALLOWED_ACE` whose SID is that user,
+/// `LocalSystem`, or `BUILTIN\Administrators`. Any other ACE type —
+/// the conditional/object allow variants included — fails the check
+/// closed, because it can grant access under rules this code does not
+/// evaluate (see `ace_policy`).
+///
+/// SYSTEM and Administrators are admitted because they can already rewrite
+/// anything the user owns; excluding them would reject every normal file in
+/// `%APPDATA%` and buy no security. That is the weakening: unlike mode 0600,
+/// this permits an administrator to *read* the file's `localToken`. An
+/// administrator could read it anyway.
+///
+/// A missing DACL (`ppDacl` null with the call succeeding) means "no
+/// protection at all" in Win32, so it is rejected rather than treated as
+/// empty-and-therefore-safe — the one place where the permissive reading of a
+/// Win32 API is the dangerous one.
+///
+/// Reads from the already-open handle, like the Unix path, so there is no
+/// TOCTOU window between the check and the read.
+#[cfg(windows)]
+fn is_owner_only(file: &File) -> bool {
+ use std::os::windows::io::AsRawHandle;
+
+ use windows_sys::Win32::Foundation::{ERROR_SUCCESS, HANDLE, LocalFree};
+ use windows_sys::Win32::Security::Authorization::{GetSecurityInfo, SE_FILE_OBJECT};
+ use windows_sys::Win32::Security::{
+ ACL, DACL_SECURITY_INFORMATION, OWNER_SECURITY_INFORMATION, PSECURITY_DESCRIPTOR, PSID,
+ };
+
+ let handle = file.as_raw_handle() as HANDLE;
+ let mut owner: PSID = std::ptr::null_mut();
+ let mut dacl: *mut ACL = std::ptr::null_mut();
+ let mut descriptor: PSECURITY_DESCRIPTOR = std::ptr::null_mut();
+
+ // SAFETY: `handle` is a live file handle owned by `file`, which outlives
+ // this call. The out-params are all correctly typed null-initialised
+ // pointers; on success Win32 fills them with pointers *into* the
+ // descriptor it allocates, which is why nothing here may outlive the
+ // `LocalFree` below.
+ let status = unsafe {
+ GetSecurityInfo(
+ handle,
+ SE_FILE_OBJECT,
+ OWNER_SECURITY_INFORMATION | DACL_SECURITY_INFORMATION,
+ &mut owner,
+ std::ptr::null_mut(),
+ &mut dacl,
+ std::ptr::null_mut(),
+ &mut descriptor,
+ )
+ };
+ if status != ERROR_SUCCESS {
+ return false;
+ }
+
+ let verdict = dacl_is_owner_only(owner, dacl);
+
+ // SAFETY: `descriptor` is the buffer `GetSecurityInfo` allocated on
+ // success, and `verdict` already copied out everything derived from it.
+ unsafe { LocalFree(descriptor as *mut _) };
+ verdict
+}
+
+/// How one DACL ACE bears on the owner-only question, decided purely by its
+/// `AceType` byte. Split from the FFI walk so the policy is a total function
+/// unit-tested on every platform, not just where the FFI compiles.
+#[cfg_attr(not(windows), allow(dead_code))]
+mod ace_policy {
+ /// `AceType` byte values from `winnt.h`. The ACE format is stable ABI, so
+ /// restating them keeps this policy decidable off Windows; the
+ /// `#[cfg(windows)]` assertions below pin each one to `windows_sys` so
+ /// the two can never drift on the platform that matters.
+ const ACE_ACCESS_ALLOWED: u8 = 0;
+ const ACE_ACCESS_DENIED: u8 = 1;
+ const ACE_ACCESS_DENIED_OBJECT: u8 = 6;
+ const ACE_ACCESS_DENIED_CALLBACK: u8 = 10;
+ const ACE_ACCESS_DENIED_CALLBACK_OBJECT: u8 = 12;
+
+ #[cfg(windows)]
+ const _: () = {
+ use windows_sys::Win32::System::SystemServices as ss;
+ assert!(ss::ACCESS_ALLOWED_ACE_TYPE == ACE_ACCESS_ALLOWED as u32);
+ assert!(ss::ACCESS_DENIED_ACE_TYPE == ACE_ACCESS_DENIED as u32);
+ assert!(ss::ACCESS_DENIED_OBJECT_ACE_TYPE == ACE_ACCESS_DENIED_OBJECT as u32);
+ assert!(ss::ACCESS_DENIED_CALLBACK_ACE_TYPE == ACE_ACCESS_DENIED_CALLBACK as u32);
+ assert!(
+ ss::ACCESS_DENIED_CALLBACK_OBJECT_ACE_TYPE == ACE_ACCESS_DENIED_CALLBACK_OBJECT as u32
+ );
+ };
+
+ #[derive(Clone, Copy, Debug, Eq, PartialEq)]
+ pub(super) enum AceDisposition {
+ /// A plain `ACCESS_ALLOWED_ACE`: grants to its SID, which must
+ /// therefore be one of the admitted SIDs.
+ GrantsToSid,
+ /// A deny-family ACE: whatever its condition or object filter, a deny
+ /// can only subtract access, so it can never widen who may write.
+ NeverGrants,
+ /// Everything else: the conditional/object allow variants
+ /// (`ACCESS_ALLOWED_OBJECT/CALLBACK[_OBJECT]`, compound), audit/alarm
+ /// types that belong in a SACL rather than a DACL, and every type
+ /// newer than this binary. Any of these can (or might) grant access
+ /// under rules this code does not evaluate, so a file carrying one
+ /// cannot be proven owner-only: fail closed rather than
+ /// allow-by-omission.
+ Unsupported,
+ }
+
+ pub(super) fn classify_ace_type(ace_type: u8) -> AceDisposition {
+ match ace_type {
+ ACE_ACCESS_ALLOWED => AceDisposition::GrantsToSid,
+ ACE_ACCESS_DENIED
+ | ACE_ACCESS_DENIED_OBJECT
+ | ACE_ACCESS_DENIED_CALLBACK
+ | ACE_ACCESS_DENIED_CALLBACK_OBJECT => AceDisposition::NeverGrants,
+ _ => AceDisposition::Unsupported,
+ }
+ }
+}
+
+/// The decision itself, split out so the `unsafe` above stays about resource
+/// lifetime and this stays about policy.
+#[cfg(windows)]
+fn dacl_is_owner_only(
+ owner: windows_sys::Win32::Security::PSID,
+ dacl: *mut windows_sys::Win32::Security::ACL,
+) -> bool {
+ use windows_sys::Win32::Security::{ACCESS_ALLOWED_ACE, ACE_HEADER, EqualSid, GetAce, PSID};
+
+ if owner.is_null() || dacl.is_null() {
+ // A null DACL is Win32 for "unprotected", not "empty".
+ return false;
+ }
+ let Some(user) = current_user_sid() else {
+ return false;
+ };
+ // SAFETY: `user.as_ptr()` points at a live, correctly sized SID buffer this
+ // function owns, and `owner` is a SID inside the caller's live descriptor.
+ if unsafe { EqualSid(owner, user.as_ptr() as PSID) } == 0 {
+ return false;
+ }
+
+ let allowed = [
+ user,
+ match well_known_sid(windows_sys::Win32::Security::WinLocalSystemSid) {
+ Some(sid) => sid,
+ None => return false,
+ },
+ match well_known_sid(windows_sys::Win32::Security::WinBuiltinAdministratorsSid) {
+ Some(sid) => sid,
+ None => return false,
+ },
+ ];
+
+ // SAFETY: `dacl` is non-null and points into the caller's live descriptor.
+ let count = unsafe { (*dacl).AceCount };
+ for index in 0..u32::from(count) {
+ let mut ace: *mut core::ffi::c_void = std::ptr::null_mut();
+ // SAFETY: `index` is below `AceCount`, which is the documented
+ // precondition for `GetAce`.
+ if unsafe { GetAce(dacl, index, &mut ace) } == 0 || ace.is_null() {
+ return false;
+ }
+ // SAFETY: every ACE begins with an `ACE_HEADER`, whatever its type.
+ let ace_type = unsafe { (*(ace as *const ACE_HEADER)).AceType };
+ match ace_policy::classify_ace_type(ace_type) {
+ ace_policy::AceDisposition::NeverGrants => continue,
+ // An ACE this code cannot prove harmless could widen who may
+ // write the file, so the file cannot root an attestation.
+ ace_policy::AceDisposition::Unsupported => return false,
+ ace_policy::AceDisposition::GrantsToSid => {}
+ }
+ // SAFETY: `GrantsToSid` establishes this ACE is a plain
+ // ACCESS_ALLOWED_ACE, whose `SidStart` is the first DWORD of its SID.
+ let sid = unsafe { &raw const (*(ace as *const ACCESS_ALLOWED_ACE)).SidStart } as PSID;
+ // SAFETY: both operands are live SIDs — `sid` inside the caller's
+ // descriptor, the candidates in buffers `allowed` owns.
+ if !allowed
+ .iter()
+ .any(|candidate| unsafe { EqualSid(sid, candidate.as_ptr() as PSID) } != 0)
+ {
+ return false;
+ }
+ }
+ true
+}
+
+/// The current process user's SID, as an owned byte buffer.
+#[cfg(windows)]
+fn current_user_sid() -> Option<Vec<u8>> {
+ use windows_sys::Win32::Foundation::{CloseHandle, HANDLE};
+ use windows_sys::Win32::Security::{GetTokenInformation, TOKEN_QUERY, TOKEN_USER, TokenUser};
+ use windows_sys::Win32::System::Threading::{GetCurrentProcess, OpenProcessToken};
+
+ let mut token: HANDLE = std::ptr::null_mut();
+ // SAFETY: `GetCurrentProcess` returns a pseudo-handle that needs no
+ // release, and `token` is a correctly typed out-param.
+ if unsafe { OpenProcessToken(GetCurrentProcess(), TOKEN_QUERY, &mut token) } == 0 {
+ return None;
+ }
+ let mut needed: u32 = 0;
+ // SAFETY: a null buffer with zero length is the documented way to ask
+ // GetTokenInformation for the required size; it fails with
+ // ERROR_INSUFFICIENT_BUFFER and writes `needed`.
+ unsafe { GetTokenInformation(token, TokenUser, std::ptr::null_mut(), 0, &mut needed) };
+ if needed == 0 {
+ // SAFETY: `token` is the handle OpenProcessToken just returned.
+ unsafe { CloseHandle(token) };
+ return None;
+ }
+ let mut buffer = vec![0u8; needed as usize];
+ // SAFETY: `buffer` is `needed` bytes long, which is exactly what the
+ // sizing call above asked for.
+ let ok = unsafe {
+ GetTokenInformation(
+ token,
+ TokenUser,
+ buffer.as_mut_ptr().cast(),
+ needed,
+ &mut needed,
+ )
+ } != 0;
+ // SAFETY: `token` is the handle OpenProcessToken returned and is not used
+ // again after this point.
+ unsafe { CloseHandle(token) };
+ if !ok {
+ return None;
+ }
+ // SAFETY: on success the buffer holds a TOKEN_USER whose `User.Sid` points
+ // into a variable-length SID that follows it in the same buffer.
+ let sid = unsafe { (*(buffer.as_ptr() as *const TOKEN_USER)).User.Sid };
+ copy_sid(sid)
+}
+
+/// A well-known SID (`LocalSystem`, `BUILTIN\Administrators`) as an owned buffer.
+#[cfg(windows)]
+fn well_known_sid(kind: windows_sys::Win32::Security::WELL_KNOWN_SID_TYPE) -> Option<Vec<u8>> {
+ use windows_sys::Win32::Security::CreateWellKnownSid;
+
+ // 68 bytes is `SECURITY_MAX_SID_SIZE`; both SIDs used here are far shorter,
+ // and sizing to the maximum avoids a two-call dance for a fixed constant.
+ let mut buffer = vec![0u8; 68];
+ let mut length = buffer.len() as u32;
+ // SAFETY: `buffer` is SECURITY_MAX_SID_SIZE bytes, the documented upper
+ // bound for any SID this function can produce.
+ let ok = unsafe {
+ CreateWellKnownSid(
+ kind,
+ std::ptr::null_mut(),
+ buffer.as_mut_ptr().cast(),
+ &mut length,
+ )
+ } != 0;
+ if !ok {
+ return None;
+ }
+ buffer.truncate(length as usize);
+ Some(buffer)
+}
+
+/// Copies a borrowed SID into an owned buffer so it can outlive its source.
+#[cfg(windows)]
+fn copy_sid(sid: windows_sys::Win32::Security::PSID) -> Option<Vec<u8>> {
+ use windows_sys::Win32::Security::{GetLengthSid, IsValidSid};
+
+ if sid.is_null() {
+ return None;
+ }
+ // SAFETY: `sid` is non-null; `IsValidSid` is precisely the call that
+ // establishes it is safe to ask for its length.
+ if unsafe { IsValidSid(sid) } == 0 {
+ return None;
+ }
+ // SAFETY: validated immediately above.
+ let length = unsafe { GetLengthSid(sid) } as usize;
+ if length == 0 {
+ return None;
+ }
+ let mut buffer = vec![0u8; length];
+ // SAFETY: `sid` is a valid SID of exactly `length` bytes and `buffer` is
+ // that long; the regions cannot overlap because `buffer` was just created.
+ unsafe { std::ptr::copy_nonoverlapping(sid as *const u8, buffer.as_mut_ptr(), length) };
+ Some(buffer)
+}
+
+/// Reads `endpoint.json`, keeping the ticket-minting fields only when the
+/// file passes the platform's `is_owner_only` above (§9.1): Unix mode-0600
+/// owner check, or its deliberately-weaker Windows owner+DACL analogue.
pub fn read_endpoint(file_path: &Path) -> Option<EndpointFile> {
let file = File::open(file_path).ok()?;
+ let owner_only = is_owner_only(&file);
let mut limited: Take<File> = file.take((MAX_ENDPOINT_BYTES + 1) as u64);
let mut bytes = Vec::new();
limited.read_to_end(&mut bytes).ok()?;
if bytes.len() > MAX_ENDPOINT_BYTES {
return None;
}
- let endpoint: EndpointFile = serde_json::from_slice(&bytes).ok()?;
- (endpoint.port != 0).then_some(endpoint)
+ let mut endpoint: EndpointFile = serde_json::from_slice(&bytes).ok()?;
+ if endpoint.port == 0 {
+ return None;
+ }
+ // Degrade, don't fail: a non-0600 file still reports its port so the
+ // host can bootstrap, but cannot serve as the attestation root, so the
+ // ticket-minting fields are dropped rather than trusted.
+ if !owner_only {
+ endpoint.local_token = None;
+ endpoint.generation = None;
+ }
+ Some(endpoint)
}
#[cfg(test)]
@@ -45,6 +382,54 @@ mod tests {
dir.join(name)
}
+ #[test]
+ fn plain_allow_aces_carry_the_sid_check() {
+ use super::ace_policy::{AceDisposition, classify_ace_type};
+ assert_eq!(classify_ace_type(0), AceDisposition::GrantsToSid);
+ }
+
+ #[test]
+ fn deny_family_aces_never_grant() {
+ use super::ace_policy::{AceDisposition, classify_ace_type};
+ // ACCESS_DENIED (1), ACCESS_DENIED_OBJECT (6),
+ // ACCESS_DENIED_CALLBACK (10), ACCESS_DENIED_CALLBACK_OBJECT (12):
+ // whatever their condition or object filter, a deny can only subtract
+ // access, so skipping them can never hide a widening grant.
+ for deny in [1u8, 6, 10, 12] {
+ assert_eq!(
+ classify_ace_type(deny),
+ AceDisposition::NeverGrants,
+ "type {deny}"
+ );
+ }
+ }
+
+ #[test]
+ fn conditional_object_and_unknown_ace_types_fail_closed() {
+ use super::ace_policy::{AceDisposition, classify_ace_type};
+ // The allow variants a conditional or object-filtered grant rides in:
+ // ACCESS_ALLOWED_COMPOUND (4), ACCESS_ALLOWED_OBJECT (5),
+ // ACCESS_ALLOWED_CALLBACK (9), ACCESS_ALLOWED_CALLBACK_OBJECT (11).
+ // Each grants access under rules this code does not evaluate, so
+ // treating any of them as harmless would be allow-by-omission.
+ for granting in [4u8, 5, 9, 11] {
+ assert_eq!(
+ classify_ace_type(granting),
+ AceDisposition::Unsupported,
+ "type {granting}"
+ );
+ }
+ // Audit/alarm types belong in a SACL, not a DACL; 17+ are label,
+ // attribute, and future types. Fail closed on every one of them.
+ for other in [2u8, 3, 7, 8, 13, 14, 15, 16, 17, 18, 19, 20, 21, 42, 255] {
+ assert_eq!(
+ classify_ace_type(other),
+ AceDisposition::Unsupported,
+ "type {other}"
+ );
+ }
+ }
+
#[test]
fn returns_none_for_missing_or_malformed_file() {
let missing = temp_file("missing.json");
@@ -56,14 +441,147 @@ mod tests {
}
#[test]
- fn parses_endpoint_and_ignores_local_token() {
+ fn parses_local_token_and_generation_from_owner_only_file() {
let path = temp_file("endpoint.json");
fs::write(
&path,
- br#"{"port":55809,"pid":"ignored","writtenAt":null,"localToken":"must-not-leak"}"#,
+ br#"{"port":55809,"pid":1,"writtenAt":0,"localToken":"tok-abc","generation":"gen-1"}"#,
+ )
+ .expect("write endpoint fixture");
+ #[cfg(unix)]
+ {
+ use std::os::unix::fs::PermissionsExt;
+ fs::set_permissions(&path, fs::Permissions::from_mode(0o600)).expect("chmod 0600");
+ }
+ // Same intent as the chmod above: this test is about parsing, so pin
+ // the permissions rather than inherit whatever %TEMP% happens to grant.
+ #[cfg(windows)]
+ {
+ set_owner_only_dacl(&path);
+ }
+ let endpoint = read_endpoint(&path).expect("endpoint parses");
+ assert_eq!(endpoint.port, 55_809);
+ assert_eq!(endpoint.local_token.as_deref(), Some("tok-abc"));
+ assert_eq!(endpoint.generation.as_deref(), Some("gen-1"));
+ }
+
+ /// Windows has no `chmod`, so the DACL is set with `icacls` — present on
+ /// every Windows install, and it exercises the same code path a tampered
+ /// file would. Two details are load-bearing. `/inheritance:r` in both
+ /// tests: without it the file keeps whatever `%TEMP%` grants, which
+ /// differs between a developer machine and a CI runner and would make
+ /// these tests environment-dependent rather than assertions about
+ /// `is_owner_only`. And `icacls`'s grammar makes `/grant[:r]` and its
+ /// `Sid:perm` two separate argv entries — fused into one token, `icacls`
+ /// exits non-zero and the `assert!` below aborts the test before it can
+ /// assert anything about the DACL.
+ #[cfg(windows)]
+ fn set_dacl(path: &std::path::Path, args: &[&str]) {
+ let status = std::process::Command::new("icacls")
+ .arg(path)
+ .args(args)
+ .status()
+ .expect("run icacls");
+ assert!(status.success(), "icacls {args:?} failed");
+ }
+
+ #[cfg(windows)]
+ fn current_windows_user() -> String {
+ let output = std::process::Command::new("whoami")
+ .output()
+ .expect("run whoami");
+ assert!(output.status.success(), "whoami failed");
+ String::from_utf8(output.stdout)
+ .expect("whoami emits UTF-8")
+ .trim()
+ .to_owned()
+ }
+
+ #[cfg(windows)]
+ fn set_owner_only_dacl(path: &std::path::Path) {
+ let user = current_windows_user();
+ set_dacl(path, &["/setowner", &user]);
+ set_dacl(path, &["/inheritance:r"]);
+ set_dacl(path, &["/grant:r", &format!("{user}:F")]);
+ }
+
+ #[cfg(windows)]
+ fn write_endpoint_fixture(name: &str) -> PathBuf {
+ let path = temp_file(name);
+ fs::write(
+ &path,
+ br#"{"port":55809,"localToken":"tok-abc","generation":"gen-1"}"#,
)
.expect("write endpoint fixture");
- assert_eq!(read_endpoint(&path), Some(EndpointFile { port: 55_809 }));
+ path
+ }
+
+ #[cfg(windows)]
+ #[test]
+ fn owner_only_dacl_keeps_token_and_generation() {
+ let path = write_endpoint_fixture("endpoint-win-strict.json");
+ // Drop inheritance, then grant the current user alone full control.
+ set_owner_only_dacl(&path);
+
+ let endpoint = read_endpoint(&path).expect("endpoint parses");
+ assert_eq!(endpoint.port, 55_809);
+ assert_eq!(endpoint.local_token.as_deref(), Some("tok-abc"));
+ assert_eq!(endpoint.generation.as_deref(), Some("gen-1"));
+ }
+
+ /// The Windows analogue of `group_readable_file_keeps_token_but_drops...`:
+ /// a third party who is *not* already omnipotent can write the file, so it
+ /// cannot root an attestation (§9.1) and the ticket-minting fields must be
+ /// dropped while the port still comes through.
+ #[cfg(windows)]
+ #[test]
+ fn dacl_granting_a_third_party_drops_token_fields() {
+ let path = write_endpoint_fixture("endpoint-win-lax.json");
+ set_owner_only_dacl(&path);
+ // `*S-1-1-0` is Everyone, by SID so the test does not depend on the
+ // runner's display language.
+ set_dacl(&path, &["/grant", "*S-1-1-0:(W)"]);
+
+ let endpoint = read_endpoint(&path).expect("endpoint parses");
+ assert_eq!(endpoint.port, 55_809);
+ assert_eq!(endpoint.local_token, None);
+ assert_eq!(endpoint.generation, None);
+ }
+
+ #[cfg(unix)]
+ #[test]
+ fn group_readable_file_keeps_port_but_drops_token_fields() {
+ use std::os::unix::fs::PermissionsExt;
+ let path = temp_file("endpoint-lax.json");
+ fs::write(
+ &path,
+ br#"{"port":55809,"localToken":"tok-abc","generation":"gen-1"}"#,
+ )
+ .expect("write endpoint fixture");
+ fs::set_permissions(&path, fs::Permissions::from_mode(0o644)).expect("chmod 0644");
+ let endpoint = read_endpoint(&path).expect("endpoint parses");
+ assert_eq!(endpoint.port, 55_809);
+ assert_eq!(endpoint.local_token, None);
+ assert_eq!(endpoint.generation, None);
+ }
+
+ #[test]
+ fn missing_token_fields_deserialize_as_none() {
+ let path = temp_file("endpoint-min.json");
+ fs::write(&path, br#"{"port":55809}"#).expect("write endpoint fixture");
+ #[cfg(unix)]
+ {
+ use std::os::unix::fs::PermissionsExt;
+ fs::set_permissions(&path, fs::Permissions::from_mode(0o600)).expect("chmod 0600");
+ }
+ assert_eq!(
+ read_endpoint(&path),
+ Some(EndpointFile {
+ port: 55_809,
+ local_token: None,
+ generation: None
+ })
+ );
}
#[test]
diff --git a/packages/native-host/src/lib.rs b/packages/native-host/src/lib.rs
index 08cc8b82..014f9e33 100644
--- a/packages/native-host/src/lib.rs
+++ b/packages/native-host/src/lib.rs
@@ -1,4 +1,6 @@
pub mod broker_protocol;
+pub mod caller;
+pub mod canonical;
pub mod endpoint;
pub mod flatpak_companion;
pub mod launcher;
@@ -7,6 +9,9 @@ pub mod probe;
pub mod protocol;
pub mod resolve;
pub mod runtime;
+#[cfg(test)]
+pub(crate) mod test_vectors;
+pub mod ticket;
pub mod user_data;
use serde_json::Value;
@@ -28,11 +33,60 @@ pub fn parse_allow_launch(value: &Value) -> Option<bool> {
}
}
+/// A parsed Native Messaging request: either the v1 shape (`action` is
+/// ignored beyond checking for the literal `allowLaunch: true`) or a
+/// `bootstrap` request (`docs/bridge-pairing-protocol.md` §9.1) carrying an
+/// extension's ephemeral binding key.
+#[derive(Clone, Debug, Eq, PartialEq)]
+pub enum HostRequest {
+ Legacy {
+ allow_launch: bool,
+ },
+ Bootstrap {
+ protocol_version: u32,
+ binding_pub: [u8; 32],
+ allow_launch: bool,
+ },
+}
+
+/// Parses `{ action: "bootstrap", protocolVersion: 1, bindingPub, allowLaunch?
+/// }` (§9.1) while preserving the v1 `parse_allow_launch` semantics for
+/// anything else. A `bootstrap` object whose `protocolVersion` is not the
+/// integer `1` or whose `bindingPub` does not base64url-decode to exactly 32
+/// bytes is malformed input — handled exactly like any other malformed
+/// input (`None`), never falling back to v1 semantics. `allowLaunch` keeps
+/// the same literal-`true` rule as v1: an absent or non-boolean value means
+/// `false`, so a bootstrap request that omits it never wakes Motrix.
+pub fn parse_host_request(value: &Value) -> Option<HostRequest> {
+ if let Value::Object(object) = value
+ && object
+ .get("action")
+ .and_then(Value::as_str)
+ .is_some_and(|action| action == "bootstrap")
+ {
+ let protocol_version = object.get("protocolVersion").and_then(Value::as_u64)?;
+ if protocol_version != 1 {
+ return None;
+ }
+ let binding_pub_text = object.get("bindingPub").and_then(Value::as_str)?;
+ let binding_pub_bytes = canonical::base64url_decode(binding_pub_text)?;
+ let binding_pub: [u8; 32] = binding_pub_bytes.try_into().ok()?;
+ let allow_launch = parse_allow_launch(value)?;
+ return Some(HostRequest::Bootstrap {
+ protocol_version: 1,
+ binding_pub,
+ allow_launch,
+ });
+ }
+
+ parse_allow_launch(value).map(|allow_launch| HostRequest::Legacy { allow_launch })
+}
+
#[cfg(test)]
mod tests {
use serde_json::json;
- use super::parse_allow_launch;
+ use super::{HostRequest, parse_allow_launch, parse_host_request};
#[test]
fn accepts_objects_and_only_literal_true_enables_launch() {
@@ -57,4 +111,62 @@ mod tests {
assert_eq!(parse_allow_launch(&json!("start")), None);
assert_eq!(parse_allow_launch(&json!(1)), None);
}
+
+ #[test]
+ fn bootstrap_action_with_valid_binding_pub_parses() {
+ let pub32 = crate::canonical::base64url_encode(&[7_u8; 32]);
+ let parsed = parse_host_request(&json!({
+ "action": "bootstrap",
+ "protocolVersion": 1,
+ "bindingPub": pub32,
+ "allowLaunch": true
+ }));
+ assert!(matches!(
+ parsed,
+ Some(HostRequest::Bootstrap {
+ protocol_version: 1,
+ binding_pub,
+ allow_launch: true
+ }) if binding_pub == [7_u8; 32]
+ ));
+ }
+
+ #[test]
+ fn bootstrap_with_bad_version_or_binding_pub_is_malformed() {
+ let pub32 = crate::canonical::base64url_encode(&[7_u8; 32]);
+ assert!(
+ parse_host_request(&json!({
+ "action": "bootstrap",
+ "protocolVersion": 2,
+ "bindingPub": pub32
+ }))
+ .is_none()
+ );
+ assert!(
+ parse_host_request(&json!({
+ "action": "bootstrap",
+ "protocolVersion": 1,
+ "bindingPub": "AAAA"
+ }))
+ .is_none()
+ );
+ assert!(
+ parse_host_request(&json!({ "action": "bootstrap", "protocolVersion": 1 })).is_none()
+ );
+ }
+
+ #[test]
+ fn non_bootstrap_inputs_keep_v1_semantics() {
+ assert!(matches!(
+ parse_host_request(&json!({ "action": "start", "allowLaunch": true })),
+ Some(HostRequest::Legacy { allow_launch: true })
+ ));
+ assert!(matches!(
+ parse_host_request(&json!([])),
+ Some(HostRequest::Legacy {
+ allow_launch: false
+ })
+ ));
+ assert!(parse_host_request(&json!("start")).is_none());
+ }
}
diff --git a/packages/native-host/src/log.rs b/packages/native-host/src/log.rs
index 2fa58b29..28ac91a7 100644
--- a/packages/native-host/src/log.rs
+++ b/packages/native-host/src/log.rs
@@ -56,9 +56,16 @@ impl NativeHostLogger {
pub fn log_resolve_result(&self, result: &ResolveResult) {
match result {
- ResolveResult::RequestPair { port, .. } => {
+ ResolveResult::RequestPair {
+ port, nm_ticket, ..
+ } => {
+ let ticket = if nm_ticket.is_some() {
+ "present"
+ } else {
+ "absent"
+ };
self.log(&format!(
- "resolve -> requestPair port={port} nonce=[redacted]"
+ "resolve -> requestPair port={port} nonce=[redacted] ticket={ticket}"
));
}
ResolveResult::Error { error } => {
@@ -114,9 +121,45 @@ mod tests {
fs::read_to_string(base.join("logs").join("native-host.log")).expect("read debug log");
assert!(text.contains("spawned second line"));
assert!(text.contains("nonce=[redacted]"));
+ assert!(text.contains("ticket=absent"));
assert!(!text.contains("secret-nonce-value"));
}
+ #[test]
+ fn enabled_logger_reports_ticket_present_without_leaking_ticket_material() {
+ use crate::ticket::NmTicket;
+
+ let base = temp_dir();
+ fs::create_dir_all(base.join("bridge")).expect("create bridge directory");
+ fs::write(base.join("bridge").join(".nh-debug"), b"").expect("write sentinel");
+
+ let ticket = NmTicket {
+ v: 1,
+ purpose: "mbp1-attestation",
+ protocol_version: 1,
+ server_generation: "gen-1".into(),
+ browser: "chromium".into(),
+ caller_id: "ibpkjhgpbidfmbmomagmldcdlpbmchgi".into(),
+ exp: 1_755_600_000,
+ binding_pub: "SECRETPUB".into(),
+ mac: "SECRETMAC".into(),
+ };
+
+ let logger = NativeHostLogger::from_user_data(Some(&base));
+ logger.log_resolve_result(&ResolveResult::request_pair_with_ticket(
+ 55_809,
+ "secret-nonce-value".into(),
+ ticket,
+ ));
+
+ let text =
+ fs::read_to_string(base.join("logs").join("native-host.log")).expect("read debug log");
+ assert!(text.contains("ticket=present"));
+ assert!(!text.contains("secret-nonce-value"));
+ assert!(!text.contains("SECRETMAC"));
+ assert!(!text.contains("SECRETPUB"));
+ }
+
#[test]
fn oversized_log_is_truncated_on_initialization() {
let base = temp_dir();
diff --git a/packages/native-host/src/main.rs b/packages/native-host/src/main.rs
index d3c534a0..4121da0d 100644
--- a/packages/native-host/src/main.rs
+++ b/packages/native-host/src/main.rs
@@ -1,13 +1,49 @@
use std::io::{self, Read};
use std::process::ExitCode;
+use std::time::{SystemTime, UNIX_EPOCH};
+use motrix_native_host::caller::extract_caller_identity;
+use motrix_native_host::endpoint::EndpointFile;
use motrix_native_host::log::NativeHostLogger;
-use motrix_native_host::parse_allow_launch;
use motrix_native_host::protocol::{
INPUT_TIMEOUT, MAX_MESSAGE_BYTES, read_message_with_timeout, write_message,
};
-use motrix_native_host::runtime::resolve_direct;
+use motrix_native_host::resolve::{ResolveResult, resolve_endpoint};
+use motrix_native_host::runtime::SystemResolveDeps;
+use motrix_native_host::ticket::{NmTicket, TICKET_LIFETIME_SECONDS, TicketInputs, mint_ticket};
use motrix_native_host::user_data::{native_host_bridge_data_dir, native_host_user_data_dir};
+use motrix_native_host::{HostRequest, parse_host_request};
+
+/// Mints a ticket for a `bootstrap` request when every trusted input is
+/// available (`docs/bridge-pairing-protocol.md` §9.1/§9.2); otherwise
+/// returns `None` so the caller replies ticketless. Never fabricates a
+/// missing input: an absent caller identity, an absent `localToken` or
+/// `generation` (including the case where `endpoint.json` failed its 0600
+/// check), or a non-ASCII `serverGeneration` all degrade silently rather
+/// than reaching [`mint_ticket`]. A ticketless reply resolves to
+/// `unverified` on the server — exactly the outcome of presenting no
+/// ticket at all — which is strictly safer than a malformed mint, since a
+/// structurally broken ticket aborts the pairing under §9.2's check table.
+fn mint_ticket_for_bootstrap(endpoint: &EndpointFile, binding_pub: &[u8; 32]) -> Option<NmTicket> {
+ let local_token = endpoint.local_token.as_deref()?;
+ let server_generation = endpoint.generation.as_deref()?;
+ if !server_generation.is_ascii() {
+ // endpoint.json is not fully trusted; a non-ASCII generation must
+ // never reach ticket_canonical's ASCII `.expect()`.
+ return None;
+ }
+ let caller = extract_caller_identity(std::env::args().skip(1))?;
+ let now = SystemTime::now().duration_since(UNIX_EPOCH).ok()?.as_secs();
+ let exp = now.checked_add(TICKET_LIFETIME_SECONDS)?;
+ let inputs = TicketInputs {
+ server_generation,
+ browser: caller.browser,
+ caller_id: &caller.caller_id,
+ exp,
+ binding_pub,
+ };
+ Some(mint_ticket(local_token, &inputs))
+}
fn run() -> ExitCode {
let user_data = native_host_user_data_dir();
@@ -25,13 +61,37 @@ fn run() -> ExitCode {
return ExitCode::FAILURE;
}
};
- let Some(allow_launch) = parse_allow_launch(&input) else {
+ let Some(request) = parse_host_request(&input) else {
logger.log("received malformed JSON value; exit 1");
return ExitCode::FAILURE;
};
+ let allow_launch = match &request {
+ HostRequest::Legacy { allow_launch } | HostRequest::Bootstrap { allow_launch, .. } => {
+ *allow_launch
+ }
+ };
logger.log(&format!("received start; allowLaunch={allow_launch}"));
- let result = resolve_direct(allow_launch, bridge_data.as_deref());
+ let mut deps = SystemResolveDeps::from_bridge_data(bridge_data.as_deref());
+ let result = match resolve_endpoint(allow_launch, &mut deps) {
+ Ok(resolved) => {
+ let ticket = match &request {
+ HostRequest::Bootstrap { binding_pub, .. } => {
+ mint_ticket_for_bootstrap(&resolved.endpoint, binding_pub)
+ }
+ HostRequest::Legacy { .. } => None,
+ };
+ match ticket {
+ Some(ticket) => ResolveResult::request_pair_with_ticket(
+ resolved.endpoint.port,
+ resolved.nonce,
+ ticket,
+ ),
+ None => ResolveResult::request_pair(resolved.endpoint.port, resolved.nonce),
+ }
+ }
+ Err(error) => ResolveResult::Error { error },
+ };
logger.log_resolve_result(&result);
let stdout = io::stdout();
diff --git a/packages/native-host/src/probe.rs b/packages/native-host/src/probe.rs
index 2962ac5d..689f4d53 100644
--- a/packages/native-host/src/probe.rs
+++ b/packages/native-host/src/probe.rs
@@ -5,16 +5,28 @@ use std::time::{Duration, Instant};
use serde::Deserialize;
-pub const PROBE_FETCH_TIMEOUT: Duration = Duration::from_secs(1);
pub const MAX_HTTP_HEADER_BYTES: usize = 16 * 1024;
pub const MAX_HTTP_BODY_BYTES: usize = 64 * 1024;
const MAX_HTTP_WIRE_BYTES: usize = 128 * 1024;
+const MAX_DISCOVERY_BODY_BYTES: usize = 4 * 1024;
+const MAX_DISCOVERY_FIELD_BYTES: usize = 128;
+const DISCOVERY_APP: &str = "motrix-bridge";
+const DISCOVERY_API_VERSION: u32 = 1;
#[derive(Deserialize)]
struct NonceResponse {
nonce: String,
}
+#[derive(Deserialize)]
+#[serde(rename_all = "camelCase")]
+struct DiscoveryResponse {
+ app: String,
+ api_version: u32,
+ instance_id: String,
+ app_version: String,
+}
+
#[derive(Clone, Copy)]
enum BodyMode {
ContentLength(usize),
@@ -35,11 +47,10 @@ enum ChunkDecode {
Invalid,
}
-pub fn probe_alive(port: u16) -> Option<String> {
- probe_alive_with_timeout(port, PROBE_FETCH_TIMEOUT)
-}
-
-pub fn probe_alive_with_timeout(port: u16, timeout: Duration) -> Option<String> {
+/// Connects to loopback, sends `request` verbatim, and returns the decoded
+/// response body — shared connect/write/read scaffolding for both the
+/// nonce fetch and the discovery liveness probe below.
+fn fetch_response_body(port: u16, timeout: Duration, request: &str) -> Option<Vec<u8>> {
if port == 0 || timeout.is_zero() {
return None;
}
@@ -49,17 +60,51 @@ pub fn probe_alive_with_timeout(port: u16, timeout: Duration) -> Option<String>
let _ = stream.set_nodelay(true);
stream.set_write_timeout(Some(remaining(deadline)?)).ok()?;
- let request = format!(
- "GET /nonce HTTP/1.1\r\nHost: 127.0.0.1:{port}\r\nAccept: application/json\r\nConnection: close\r\n\r\n"
- );
stream.write_all(request.as_bytes()).ok()?;
stream.flush().ok()?;
- let body = read_response_body(&mut stream, deadline)?;
+ read_response_body(&mut stream, deadline)
+}
+
+/// `POST /nonce` (spec §4.2). The custom header makes the request
+/// non-simple so a browser preflights it; loopback callers like this one
+/// send it directly over a raw socket.
+pub fn fetch_nonce(port: u16, timeout: Duration) -> Option<String> {
+ let request = format!(
+ "POST /nonce HTTP/1.1\r\nHost: 127.0.0.1:{port}\r\nAccept: application/json\r\nX-Motrix-Bridge: 1\r\nContent-Length: 0\r\nConnection: close\r\n\r\n"
+ );
+ let body = fetch_response_body(port, timeout, &request)?;
let response: NonceResponse = serde_json::from_slice(&body).ok()?;
is_base64url_nonce(&response.nonce).then_some(response.nonce)
}
+/// `GET /discovery` (spec §4.1): unauthenticated and replayable, so it is
+/// the cheap liveness check — callers reserve `fetch_nonce` for a single
+/// call once the bridge is known alive rather than burning a nonce per poll.
+pub fn probe_liveness(port: u16, timeout: Duration) -> bool {
+ let request = format!(
+ "GET /discovery HTTP/1.1\r\nHost: 127.0.0.1:{port}\r\nAccept: application/json\r\nConnection: close\r\n\r\n"
+ );
+ let Some(body) = fetch_response_body(port, timeout, &request) else {
+ return false;
+ };
+ if body.len() > MAX_DISCOVERY_BODY_BYTES {
+ return false;
+ }
+ let Ok(response) = serde_json::from_slice::<DiscoveryResponse>(&body) else {
+ return false;
+ };
+ response.app == DISCOVERY_APP
+ && response.api_version == DISCOVERY_API_VERSION
+ && is_reasonable_discovery_field(&response.instance_id)
+ && is_reasonable_discovery_field(&response.app_version)
+}
+
+fn is_reasonable_discovery_field(value: &str) -> bool {
+ (1..=MAX_DISCOVERY_FIELD_BYTES).contains(&value.len())
+ && value.bytes().all(|byte| byte.is_ascii_graphic())
+}
+
fn remaining(deadline: Instant) -> Option<Duration> {
let remaining = deadline.saturating_duration_since(Instant::now());
(!remaining.is_zero()).then_some(remaining)
@@ -277,20 +322,24 @@ mod tests {
use std::thread;
use std::time::Duration;
- use super::{ChunkDecode, MAX_HTTP_BODY_BYTES, decode_chunked, probe_alive_with_timeout};
+ use super::{
+ ChunkDecode, MAX_DISCOVERY_BODY_BYTES, MAX_DISCOVERY_FIELD_BYTES, MAX_HTTP_BODY_BYTES,
+ decode_chunked, fetch_nonce, probe_liveness,
+ };
const NONCE: &str = "AbCdEfGhIjKlMnOpQrStUv";
- fn serve_once(parts: Vec<Vec<u8>>, delay: Duration) -> (u16, thread::JoinHandle<()>) {
+ fn serve_once_capturing(
+ parts: Vec<Vec<u8>>,
+ delay: Duration,
+ ) -> (u16, thread::JoinHandle<String>) {
let listener = TcpListener::bind(("127.0.0.1", 0)).expect("bind fake bridge");
let port = listener.local_addr().expect("fake bridge address").port();
let server = thread::spawn(move || {
let (mut stream, _) = listener.accept().expect("accept probe");
let mut request = [0_u8; 1024];
let read = stream.read(&mut request).expect("read probe request");
- let request = String::from_utf8_lossy(&request[..read]);
- assert!(request.starts_with("GET /nonce HTTP/1.1\r\n"));
- assert!(request.contains("\r\nConnection: close\r\n"));
+ let request = String::from_utf8_lossy(&request[..read]).into_owned();
if !delay.is_zero() {
thread::sleep(delay);
}
@@ -299,10 +348,30 @@ mod tests {
break;
}
}
+ request
});
(port, server)
}
+ #[test]
+ fn fetch_nonce_sends_post_with_bridge_header_and_zero_length() {
+ let body = format!(r#"{{"nonce":"{NONCE}"}}"#);
+ let response = format!(
+ "HTTP/1.1 200 OK\r\nContent-Type: application/json\r\nContent-Length: {}\r\n\r\n{body}",
+ body.len()
+ );
+ let (port, server) = serve_once_capturing(vec![response.into_bytes()], Duration::ZERO);
+ assert_eq!(
+ fetch_nonce(port, Duration::from_secs(1)),
+ Some(NONCE.into())
+ );
+ let request = server.join().expect("fake bridge thread");
+ assert!(request.starts_with("POST /nonce HTTP/1.1\r\n"));
+ assert!(request.contains("\r\nX-Motrix-Bridge: 1\r\n"));
+ assert!(request.contains("\r\nContent-Length: 0\r\n"));
+ assert!(request.contains("\r\nConnection: close\r\n"));
+ }
+
#[test]
fn parses_content_length_nonce_response() {
let body = format!(r#"{{"nonce":"{NONCE}"}}"#);
@@ -310,12 +379,13 @@ mod tests {
"HTTP/1.1 200 OK\r\nContent-Type: application/json\r\nContent-Length: {}\r\n\r\n{body}",
body.len()
);
- let (port, server) = serve_once(vec![response.into_bytes()], Duration::ZERO);
+ let (port, server) = serve_once_capturing(vec![response.into_bytes()], Duration::ZERO);
assert_eq!(
- probe_alive_with_timeout(port, Duration::from_secs(1)),
+ fetch_nonce(port, Duration::from_secs(1)),
Some(NONCE.into())
);
- server.join().expect("fake bridge thread");
+ let request = server.join().expect("fake bridge thread");
+ assert!(request.starts_with("POST /nonce HTTP/1.1\r\n"));
}
#[test]
@@ -327,24 +397,26 @@ mod tests {
first_body.len()
);
let second = format!("{:X}\r\n{second_body}\r\n0\r\n\r\n", second_body.len());
- let (port, server) = serve_once(
+ let (port, server) = serve_once_capturing(
vec![first.into_bytes(), second.into_bytes()],
Duration::ZERO,
);
assert_eq!(
- probe_alive_with_timeout(port, Duration::from_secs(1)),
+ fetch_nonce(port, Duration::from_secs(1)),
Some(NONCE.into())
);
- server.join().expect("fake bridge thread");
+ let request = server.join().expect("fake bridge thread");
+ assert!(request.starts_with("POST /nonce HTTP/1.1\r\n"));
}
#[test]
fn rejects_redirect_without_following_location() {
let response =
b"HTTP/1.1 302 Found\r\nLocation: http://example.com/\r\nContent-Length: 0\r\n\r\n";
- let (port, server) = serve_once(vec![response.to_vec()], Duration::ZERO);
- assert_eq!(probe_alive_with_timeout(port, Duration::from_secs(1)), None);
- server.join().expect("fake bridge thread");
+ let (port, server) = serve_once_capturing(vec![response.to_vec()], Duration::ZERO);
+ assert_eq!(fetch_nonce(port, Duration::from_secs(1)), None);
+ let request = server.join().expect("fake bridge thread");
+ assert!(request.starts_with("POST /nonce HTTP/1.1\r\n"));
}
#[test]
@@ -355,20 +427,22 @@ mod tests {
invalid_body.len()
)
.into_bytes();
- let (port, server) = serve_once(
+ let (port, server) = serve_once_capturing(
vec![invalid_response, invalid_body.to_vec()],
Duration::ZERO,
);
- assert_eq!(probe_alive_with_timeout(port, Duration::from_secs(1)), None);
- server.join().expect("fake bridge thread");
+ assert_eq!(fetch_nonce(port, Duration::from_secs(1)), None);
+ let request = server.join().expect("fake bridge thread");
+ assert!(request.starts_with("POST /nonce HTTP/1.1\r\n"));
let oversized = format!(
"HTTP/1.1 200 OK\r\nContent-Length: {}\r\n\r\n",
MAX_HTTP_BODY_BYTES + 1
);
- let (port, server) = serve_once(vec![oversized.into_bytes()], Duration::ZERO);
- assert_eq!(probe_alive_with_timeout(port, Duration::from_secs(1)), None);
- server.join().expect("fake bridge thread");
+ let (port, server) = serve_once_capturing(vec![oversized.into_bytes()], Duration::ZERO);
+ assert_eq!(fetch_nonce(port, Duration::from_secs(1)), None);
+ let request = server.join().expect("fake bridge thread");
+ assert!(request.starts_with("POST /nonce HTTP/1.1\r\n"));
}
#[test]
@@ -378,12 +452,86 @@ mod tests {
"HTTP/1.1 200 OK\r\nContent-Length: {}\r\n\r\n{body}",
body.len()
);
- let (port, server) = serve_once(vec![response.into_bytes()], Duration::from_millis(100));
- assert_eq!(
- probe_alive_with_timeout(port, Duration::from_millis(20)),
- None
+ let (port, server) =
+ serve_once_capturing(vec![response.into_bytes()], Duration::from_millis(100));
+ assert_eq!(fetch_nonce(port, Duration::from_millis(20)), None);
+ let request = server.join().expect("fake bridge thread");
+ assert!(request.starts_with("POST /nonce HTTP/1.1\r\n"));
+ }
+
+ fn discovery_response(body: &str) -> Vec<u8> {
+ format!(
+ "HTTP/1.1 200 OK\r\nContent-Type: application/json\r\nContent-Length: {}\r\n\r\n{body}",
+ body.len()
+ )
+ .into_bytes()
+ }
+
+ #[test]
+ fn probe_liveness_hits_discovery_and_accepts_motrix_shape() {
+ let body = r#"{"app":"motrix-bridge","apiVersion":1,"instanceId":"i","appVersion":"2.0.0","extensionPairing":{"protocol":"mbp1"}}"#;
+ let (port, server) = serve_once_capturing(vec![discovery_response(body)], Duration::ZERO);
+ assert!(probe_liveness(port, Duration::from_secs(1)));
+ let request = server.join().expect("fake bridge thread");
+ assert!(request.starts_with("GET /discovery HTTP/1.1\r\n"));
+ }
+
+ #[test]
+ fn probe_liveness_rejects_malformed_html_and_wrong_app_bodies() {
+ for body in [
+ r#"{"app":"motrix-bridge""#,
+ "<html><body>another service</body></html>",
+ r#"{"app":"other-service","apiVersion":1,"instanceId":"i","appVersion":"2.0.0"}"#,
+ ] {
+ let (port, server) =
+ serve_once_capturing(vec![discovery_response(body)], Duration::ZERO);
+ assert!(!probe_liveness(port, Duration::from_secs(1)), "{body}");
+ let request = server.join().expect("fake bridge thread");
+ assert!(request.starts_with("GET /discovery HTTP/1.1\r\n"));
+ }
+ }
+
+ #[test]
+ fn probe_liveness_rejects_incompatible_or_unreasonable_motrix_shape() {
+ for body in [
+ r#"{"app":"motrix-bridge","apiVersion":2,"instanceId":"i","appVersion":"2.0.0"}"#,
+ r#"{"app":"motrix-bridge","apiVersion":1,"instanceId":"","appVersion":"2.0.0"}"#,
+ r#"{"app":"motrix-bridge","apiVersion":1,"instanceId":"bad id","appVersion":"2.0.0"}"#,
+ r#"{"app":"motrix-bridge","apiVersion":1,"instanceId":"i","appVersion":""}"#,
+ ] {
+ let (port, server) =
+ serve_once_capturing(vec![discovery_response(body)], Duration::ZERO);
+ assert!(!probe_liveness(port, Duration::from_secs(1)), "{body}");
+ server.join().expect("fake bridge thread");
+ }
+ }
+
+ #[test]
+ fn probe_liveness_bounds_discovery_body_and_fields() {
+ let long_instance = "x".repeat(MAX_DISCOVERY_FIELD_BYTES + 1);
+ let body = format!(
+ r#"{{"app":"motrix-bridge","apiVersion":1,"instanceId":"{long_instance}","appVersion":"2.0.0"}}"#
+ );
+ let (port, server) = serve_once_capturing(vec![discovery_response(&body)], Duration::ZERO);
+ assert!(!probe_liveness(port, Duration::from_secs(1)));
+ server.join().expect("fake bridge thread");
+
+ let padding = "x".repeat(MAX_DISCOVERY_BODY_BYTES);
+ let body = format!(
+ r#"{{"app":"motrix-bridge","apiVersion":1,"instanceId":"i","appVersion":"2.0.0","padding":"{padding}"}}"#
);
+ let (port, server) = serve_once_capturing(vec![discovery_response(&body)], Duration::ZERO);
+ assert!(!probe_liveness(port, Duration::from_secs(1)));
+ server.join().expect("fake bridge thread");
+ }
+
+ #[test]
+ fn probe_liveness_rejects_non_2xx_and_dead_port() {
+ let response = b"HTTP/1.1 404 Not Found\r\nContent-Length: 0\r\n\r\n".to_vec();
+ let (port, server) = serve_once_capturing(vec![response], Duration::ZERO);
+ assert!(!probe_liveness(port, Duration::from_secs(1)));
server.join().expect("fake bridge thread");
+ assert!(!probe_liveness(0, Duration::from_secs(1)));
}
#[test]
diff --git a/packages/native-host/src/resolve.rs b/packages/native-host/src/resolve.rs
index 46a330af..4d8989f5 100644
--- a/packages/native-host/src/resolve.rs
+++ b/packages/native-host/src/resolve.rs
@@ -4,18 +4,29 @@ use std::time::{Duration, Instant};
use serde::{Deserialize, Serialize};
use crate::endpoint::EndpointFile;
+use crate::ticket::NmTicket;
pub const PROBE_TIMEOUT: Duration = Duration::from_secs(1);
pub const LAUNCH_POLL_TIMEOUT: Duration = Duration::from_secs(15);
pub const LAUNCH_POLL_INTERVAL: Duration = Duration::from_millis(200);
+/// NM wire protocol version (`docs/bridge-pairing-protocol.md` §9.1), echoed
+/// in every `requestPair` reply. Distinct from [`crate::ticket::TICKET_PROTOCOL_VERSION`]:
+/// the two happen to share the same value in v1, but one names the outer NM
+/// exchange and the other is a MAC-covered ticket field.
+pub const NM_PROTOCOL_VERSION: u32 = 1;
+
#[derive(Clone, Debug, Eq, PartialEq, Serialize)]
#[serde(untagged)]
pub enum ResolveResult {
RequestPair {
action: &'static str,
+ #[serde(rename = "protocolVersion")]
+ protocol_version: u32,
port: u16,
nonce: String,
+ #[serde(rename = "nmTicket", skip_serializing_if = "Option::is_none")]
+ nm_ticket: Option<NmTicket>,
},
Error {
error: ResolveError,
@@ -23,11 +34,26 @@ pub enum ResolveResult {
}
impl ResolveResult {
+ /// A ticketless `requestPair` reply (legacy callers, or a bootstrap
+ /// caller missing a trusted input for minting).
pub fn request_pair(port: u16, nonce: String) -> Self {
Self::RequestPair {
action: "requestPair",
+ protocol_version: NM_PROTOCOL_VERSION,
+ port,
+ nonce,
+ nm_ticket: None,
+ }
+ }
+
+ /// A `requestPair` reply carrying a minted NM attestation ticket (§9.1).
+ pub fn request_pair_with_ticket(port: u16, nonce: String, ticket: NmTicket) -> Self {
+ Self::RequestPair {
+ action: "requestPair",
+ protocol_version: NM_PROTOCOL_VERSION,
port,
nonce,
+ nm_ticket: Some(ticket),
}
}
}
@@ -42,45 +68,78 @@ pub enum ResolveError {
LaunchFailed,
}
+/// A `endpoint.json` whose recorded port answered a liveness probe and then
+/// yielded a fresh one-shot nonce.
+#[derive(Clone, Debug, Eq, PartialEq)]
+pub struct ResolvedEndpoint {
+ pub endpoint: EndpointFile,
+ pub nonce: String,
+}
+
pub trait ResolveDeps {
fn read_endpoint(&mut self) -> Option<EndpointFile>;
- fn probe(&mut self, port: u16, timeout: Duration) -> Option<String>;
+ /// Cheap, unauthenticated, Motrix-shaped liveness check (spec §4.1
+ /// `GET /discovery`). Callers probe this on every poll iteration; it
+ /// never consumes a nonce.
+ fn probe_liveness(&mut self, port: u16, timeout: Duration) -> bool;
+ /// One-shot nonce acquisition (spec §4.2 `POST /nonce`). Callers must
+ /// call this only once liveness is already known, and at most once per
+ /// resolution — the server caps outstanding nonces and rate-limits
+ /// issuance.
+ fn fetch_nonce(&mut self, port: u16, timeout: Duration) -> Option<String>;
fn launch(&mut self) -> bool;
fn now(&self) -> Instant;
fn sleep(&mut self, duration: Duration);
}
-pub fn resolve_endpoint<D: ResolveDeps>(allow_launch: bool, deps: &mut D) -> ResolveResult {
+/// Resolves the recorded endpoint, launching Motrix first when the caller
+/// allows it and the bridge is not already up.
+///
+/// A successful liveness probe settles the whole resolution: the bridge is
+/// running, so there is nothing to launch, and the single [`ResolveDeps::
+/// fetch_nonce`] call that follows is the only one this resolution makes —
+/// whichever way it goes. Falling through to `launch()` after a failed nonce
+/// fetch would fetch a second nonce from `poll_launched_endpoint` and wake an
+/// app that is already awake, and it would do so in precisely the state where
+/// that is most harmful: `fetch_nonce` answers `None` for any non-2xx reply,
+/// which is what the §4.2 outstanding-nonce cap and issuance rate limit
+/// return. A retry there amplifies the load that caused the refusal.
+///
+/// `NotRunning` is therefore also what a live bridge that will not issue a
+/// nonce reports, matching what `allow_launch = false` already returned for
+/// that state: the flag decides whether to launch, not what a nonce failure
+/// means. The three-code NM error vocabulary (§9.1) has no "running but
+/// unavailable" member, and `NotRunning` is the one that keeps the caller's
+/// remedy — try again — correct.
+pub fn resolve_endpoint<D: ResolveDeps>(
+ allow_launch: bool,
+ deps: &mut D,
+) -> Result<ResolvedEndpoint, ResolveError> {
if let Some(endpoint) = deps.read_endpoint()
- && let Some(nonce) = deps.probe(endpoint.port, PROBE_TIMEOUT)
+ && deps.probe_liveness(endpoint.port, PROBE_TIMEOUT)
{
- return ResolveResult::request_pair(endpoint.port, nonce);
+ return deps
+ .fetch_nonce(endpoint.port, PROBE_TIMEOUT)
+ .map(|nonce| ResolvedEndpoint { endpoint, nonce })
+ .ok_or(ResolveError::NotRunning);
}
if !allow_launch {
- return ResolveResult::Error {
- error: ResolveError::NotRunning,
- };
+ return Err(ResolveError::NotRunning);
}
if !deps.launch() {
- return ResolveResult::Error {
- error: ResolveError::NotInstalled,
- };
+ return Err(ResolveError::NotInstalled);
}
- match poll_launched_endpoint(deps, LAUNCH_POLL_TIMEOUT, LAUNCH_POLL_INTERVAL) {
- Some((port, nonce)) => ResolveResult::request_pair(port, nonce),
- None => ResolveResult::Error {
- error: ResolveError::LaunchFailed,
- },
- }
+ poll_launched_endpoint(deps, LAUNCH_POLL_TIMEOUT, LAUNCH_POLL_INTERVAL)
+ .ok_or(ResolveError::LaunchFailed)
}
pub fn poll_launched_endpoint<D: ResolveDeps>(
deps: &mut D,
timeout: Duration,
interval: Duration,
-) -> Option<(u16, String)> {
+) -> Option<ResolvedEndpoint> {
let deadline = deps.now().checked_add(timeout)?;
loop {
@@ -90,15 +149,27 @@ pub fn poll_launched_endpoint<D: ResolveDeps>(
}
if let Some(endpoint) = deps.read_endpoint() {
- let probe_budget = min(
+ let liveness_budget = min(
PROBE_TIMEOUT,
deadline.saturating_duration_since(deps.now()),
);
- if probe_budget.is_zero() {
+ if liveness_budget.is_zero() {
return None;
}
- if let Some(nonce) = deps.probe(endpoint.port, probe_budget) {
- return Some((endpoint.port, nonce));
+ if deps.probe_liveness(endpoint.port, liveness_budget) {
+ // The bridge is alive: fetch exactly one nonce, bounded by
+ // whatever deadline remains, and return either way — wake
+ // polling must never burn more than one nonce per launch.
+ let nonce_budget = min(
+ PROBE_TIMEOUT,
+ deadline.saturating_duration_since(deps.now()),
+ );
+ if nonce_budget.is_zero() {
+ return None;
+ }
+ return deps
+ .fetch_nonce(endpoint.port, nonce_budget)
+ .map(|nonce| ResolvedEndpoint { endpoint, nonce });
}
}
@@ -116,17 +187,19 @@ mod tests {
use std::time::{Duration, Instant};
use super::{
- LAUNCH_POLL_INTERVAL, LAUNCH_POLL_TIMEOUT, PROBE_TIMEOUT, ResolveDeps, ResolveError,
- ResolveResult, poll_launched_endpoint, resolve_endpoint,
+ LAUNCH_POLL_TIMEOUT, PROBE_TIMEOUT, ResolveDeps, ResolveError, ResolveResult,
+ poll_launched_endpoint, resolve_endpoint,
};
use crate::endpoint::EndpointFile;
struct FakeDeps {
endpoints: VecDeque<Option<EndpointFile>>,
- probes: VecDeque<Option<String>>,
+ liveness: VecDeque<bool>,
+ nonces: VecDeque<Option<String>>,
launch_result: bool,
launch_calls: usize,
- probe_calls: Vec<(u16, Duration)>,
+ liveness_calls: Vec<(u16, Duration)>,
+ nonce_calls: Vec<(u16, Duration)>,
elapsed: Duration,
probe_cost: Duration,
sleeps: Vec<Duration>,
@@ -137,10 +210,12 @@ mod tests {
fn new() -> Self {
Self {
endpoints: VecDeque::new(),
- probes: VecDeque::new(),
+ liveness: VecDeque::new(),
+ nonces: VecDeque::new(),
launch_result: true,
launch_calls: 0,
- probe_calls: Vec::new(),
+ liveness_calls: Vec::new(),
+ nonce_calls: Vec::new(),
elapsed: Duration::ZERO,
probe_cost: Duration::ZERO,
sleeps: Vec::new(),
@@ -154,10 +229,16 @@ mod tests {
self.endpoints.pop_front().flatten()
}
- fn probe(&mut self, port: u16, timeout: Duration) -> Option<String> {
- self.probe_calls.push((port, timeout));
+ fn probe_liveness(&mut self, port: u16, timeout: Duration) -> bool {
+ self.liveness_calls.push((port, timeout));
self.elapsed += self.probe_cost.min(timeout);
- self.probes.pop_front().flatten()
+ self.liveness.pop_front().unwrap_or(false)
+ }
+
+ fn fetch_nonce(&mut self, port: u16, timeout: Duration) -> Option<String> {
+ self.nonce_calls.push((port, timeout));
+ self.elapsed += self.probe_cost.min(timeout);
+ self.nonces.pop_front().flatten()
}
fn launch(&mut self) -> bool {
@@ -176,36 +257,43 @@ mod tests {
}
fn endpoint(port: u16) -> Option<EndpointFile> {
- Some(EndpointFile { port })
+ Some(EndpointFile {
+ port,
+ local_token: None,
+ generation: None,
+ })
}
#[test]
- fn live_endpoint_returns_pair_response_without_launching() {
+ fn live_endpoint_probes_liveness_then_fetches_one_nonce() {
let mut deps = FakeDeps::new();
deps.endpoints.push_back(endpoint(100));
- deps.probes.push_back(Some("nonce-live".into()));
+ deps.liveness.push_back(true);
+ deps.nonces.push_back(Some("nonce-live".into()));
- assert_eq!(
- resolve_endpoint(true, &mut deps),
- ResolveResult::request_pair(100, "nonce-live".into())
- );
+ let resolved = resolve_endpoint(true, &mut deps).expect("resolves");
+ assert_eq!(resolved.endpoint.port, 100);
+ assert_eq!(resolved.nonce, "nonce-live");
assert_eq!(deps.launch_calls, 0);
- assert_eq!(deps.probe_calls, vec![(100, PROBE_TIMEOUT)]);
+ assert_eq!(deps.liveness_calls, vec![(100, PROBE_TIMEOUT)]);
+ assert_eq!(deps.nonce_calls.len(), 1);
}
#[test]
fn dead_endpoint_without_user_intent_never_launches() {
let mut deps = FakeDeps::new();
deps.endpoints.push_back(endpoint(100));
- deps.probes.push_back(None);
+ deps.liveness.push_back(false);
assert_eq!(
resolve_endpoint(false, &mut deps),
- ResolveResult::Error {
- error: ResolveError::NotRunning
- }
+ Err(ResolveError::NotRunning)
);
assert_eq!(deps.launch_calls, 0);
+ assert!(
+ deps.nonce_calls.is_empty(),
+ "a dead endpoint never fetches a nonce"
+ );
}
#[test]
@@ -216,27 +304,91 @@ mod tests {
assert_eq!(
resolve_endpoint(true, &mut deps),
- ResolveResult::Error {
- error: ResolveError::NotInstalled
- }
+ Err(ResolveError::NotInstalled)
);
assert_eq!(deps.launch_calls, 1);
}
#[test]
- fn launch_poll_rereads_endpoint_and_returns_fresh_port_and_nonce() {
+ fn launch_poll_probes_liveness_only_and_fetches_nonce_once_at_the_end() {
let mut deps = FakeDeps::new();
- deps.endpoints.push_back(None);
- deps.endpoints.push_back(None);
+ deps.endpoints.push_back(None); // initial read: not running
+ deps.endpoints.push_back(None); // poll #1: no endpoint yet
+ deps.endpoints.push_back(endpoint(200)); // poll #2
+ deps.liveness.push_back(true);
+ deps.nonces.push_back(Some("nonce-new".into()));
+
+ let resolved = resolve_endpoint(true, &mut deps).expect("resolves");
+ assert_eq!(resolved.endpoint.port, 200);
+ assert_eq!(resolved.nonce, "nonce-new");
+ assert_eq!(deps.launch_calls, 1);
+ assert_eq!(
+ deps.nonce_calls.len(),
+ 1,
+ "wake polling must not burn nonces"
+ );
+ }
+
+ #[test]
+ fn incompatible_recorded_endpoint_does_not_block_user_requested_launch() {
+ let mut deps = FakeDeps::new();
+ deps.endpoints.push_back(endpoint(100));
+ deps.liveness.push_back(false);
deps.endpoints.push_back(endpoint(200));
- deps.probes.push_back(Some("nonce-new".into()));
+ deps.liveness.push_back(true);
+ deps.nonces.push_back(Some("nonce-new".into()));
+
+ let resolved = resolve_endpoint(true, &mut deps).expect("resolves after launch");
+ assert_eq!(resolved.endpoint.port, 200);
+ assert_eq!(deps.launch_calls, 1);
+ assert_eq!(
+ deps.liveness_calls,
+ vec![(100, PROBE_TIMEOUT), (200, PROBE_TIMEOUT)]
+ );
+ assert_eq!(deps.nonce_calls.len(), 1);
+ }
+
+ #[test]
+ fn live_endpoint_with_failed_nonce_fetch_is_not_a_pair() {
+ let mut deps = FakeDeps::new();
+ deps.endpoints.push_back(endpoint(100));
+ deps.liveness.push_back(true);
+ deps.nonces.push_back(None);
+ assert_eq!(
+ resolve_endpoint(false, &mut deps),
+ Err(ResolveError::NotRunning)
+ );
+ }
+
+ #[test]
+ fn live_endpoint_with_failed_nonce_fetch_never_launches_or_refetches() {
+ // The §4.2 outstanding-nonce cap and issuance rate limit answer 429 or
+ // 503, which `fetch_nonce` reports as `None` — so this is the state in
+ // which a retry would amplify the very load that caused the refusal.
+ // A passing liveness probe settles the resolution: one nonce fetch, no
+ // launch, whatever the fetch answers.
+ let mut deps = FakeDeps::new();
+ deps.endpoints.push_back(endpoint(100));
+ deps.liveness.push_back(true);
+ deps.nonces.push_back(None);
+ // Would be consumed by a second attempt, and must not be.
+ deps.endpoints.push_back(endpoint(100));
+ deps.liveness.push_back(true);
+ deps.nonces.push_back(Some("second-nonce".into()));
assert_eq!(
resolve_endpoint(true, &mut deps),
- ResolveResult::request_pair(200, "nonce-new".into())
+ Err(ResolveError::NotRunning)
+ );
+ assert_eq!(
+ deps.nonce_calls.len(),
+ 1,
+ "one resolution must never burn two nonces"
+ );
+ assert_eq!(
+ deps.launch_calls, 0,
+ "a live bridge must never be launched again"
);
- assert_eq!(deps.launch_calls, 1);
- assert_eq!(deps.sleeps, vec![LAUNCH_POLL_INTERVAL]);
}
#[test]
@@ -246,33 +398,50 @@ mod tests {
deps.endpoints.push_back(None); // Initial liveness check.
for _ in 0..32 {
deps.endpoints.push_back(endpoint(300));
- deps.probes.push_back(None);
+ deps.liveness.push_back(false);
}
assert_eq!(
resolve_endpoint(true, &mut deps),
- ResolveResult::Error {
- error: ResolveError::LaunchFailed
- }
+ Err(ResolveError::LaunchFailed)
);
assert_eq!(deps.elapsed, LAUNCH_POLL_TIMEOUT);
assert!(
- deps.probe_calls
+ deps.liveness_calls
.iter()
.all(|(_, budget)| *budget <= PROBE_TIMEOUT)
);
+ assert!(
+ deps.nonce_calls.is_empty(),
+ "liveness never succeeded, so no nonce should ever be fetched"
+ );
+ }
+
+ #[test]
+ fn request_pair_serializes_protocol_version_and_omits_absent_ticket() {
+ let json = serde_json::to_value(ResolveResult::request_pair(
+ 55_809,
+ "n0nceAbCdEfGhIj".into(),
+ ))
+ .expect("serialize");
+ assert_eq!(
+ json,
+ serde_json::json!({ "action": "requestPair", "protocolVersion": 1, "port": 55809, "nonce": "n0nceAbCdEfGhIj" })
+ );
}
#[test]
fn zero_timeout_poll_does_not_read_or_probe() {
let mut deps = FakeDeps::new();
deps.endpoints.push_back(endpoint(42));
- deps.probes.push_back(Some("unused".into()));
+ deps.liveness.push_back(true);
+ deps.nonces.push_back(Some("unused".into()));
assert_eq!(
poll_launched_endpoint(&mut deps, Duration::ZERO, Duration::from_millis(1)),
None
);
- assert!(deps.probe_calls.is_empty());
+ assert!(deps.liveness_calls.is_empty());
+ assert!(deps.nonce_calls.is_empty());
assert_eq!(deps.endpoints.len(), 1);
}
}
diff --git a/packages/native-host/src/runtime.rs b/packages/native-host/src/runtime.rs
index 81c399f1..febcdc8b 100644
--- a/packages/native-host/src/runtime.rs
+++ b/packages/native-host/src/runtime.rs
@@ -4,10 +4,10 @@ use std::time::{Duration, Instant};
use crate::endpoint::{EndpointFile, read_endpoint};
use crate::launcher::launch_motrix;
-use crate::probe::probe_alive_with_timeout;
+use crate::probe::{fetch_nonce, probe_liveness};
use crate::resolve::{
- LAUNCH_POLL_INTERVAL, LAUNCH_POLL_TIMEOUT, PROBE_TIMEOUT, ResolveDeps, ResolveError,
- ResolveResult, poll_launched_endpoint, resolve_endpoint,
+ LAUNCH_POLL_INTERVAL, LAUNCH_POLL_TIMEOUT, ResolveDeps, ResolveError, ResolveResult,
+ poll_launched_endpoint, resolve_endpoint,
};
use crate::user_data::bridge_endpoint_path;
@@ -31,8 +31,12 @@ impl ResolveDeps for SystemResolveDeps {
self.endpoint_path.as_deref().and_then(read_endpoint)
}
- fn probe(&mut self, port: u16, timeout: Duration) -> Option<String> {
- probe_alive_with_timeout(port, timeout)
+ fn probe_liveness(&mut self, port: u16, timeout: Duration) -> bool {
+ probe_liveness(port, timeout)
+ }
+
+ fn fetch_nonce(&mut self, port: u16, timeout: Duration) -> Option<String> {
+ fetch_nonce(port, timeout)
}
fn launch(&mut self) -> bool {
@@ -48,27 +52,55 @@ impl ResolveDeps for SystemResolveDeps {
}
}
-pub fn resolve_direct(allow_launch: bool, bridge_data: Option<&Path>) -> ResolveResult {
- let mut deps = SystemResolveDeps::from_bridge_data(bridge_data);
- resolve_endpoint(allow_launch, &mut deps)
-}
+// There is deliberately no general-purpose `resolve_direct` helper here.
+//
+// One existed and was deleted: a `pub fn resolve_direct(allow_launch,
+// bridge_data)` that resolved the endpoint and answered
+// `ResolveResult::request_pair(..)`. It had no callers, and it was a trap
+// rather than merely dead code. `main.rs`'s live path does the same
+// resolution but branches on `HostRequest::Bootstrap` to mint a §9.2 ticket
+// and answers `request_pair_with_ticket`. So the deleted helper read as a
+// tidier, better-named version of that block while silently dropping
+// attestation — a future refactor replacing `main.rs` with a call to it would
+// type-check, read cleanly, keep every unit test green, and make every
+// extension resolve to `unverified`, putting the `official` /
+// `attested-non-official` tiers permanently out of reach. Only the three
+// integration tests would have caught it.
+//
+// If a ticketless direct resolve is ever genuinely wanted, write it at the
+// call site where the ticketless choice is visible, the way `probe_bridge`
+// below does.
+/// The broker's `Probe` operation: resolve the recorded endpoint without any
+/// launch capability, since only the host-side companion can start a Flatpak
+/// app. Delegating to [`resolve_endpoint`] with `allow_launch = false` keeps
+/// the "liveness, then exactly one nonce" sequence in one place instead of
+/// mirroring it here, where it could drift.
+///
+/// Deliberately ticketless (`request_pair`, never `request_pair_with_ticket`):
+/// the broker has no caller identity to attest — the browser talks to the
+/// companion, not to it — so the reply resolves to `unverified` by design.
+///
+/// A live bridge that refuses a nonce reports `NotRunning`, which the
+/// companion cannot distinguish from a bridge that is down, so it will launch
+/// and call `WaitForEndpoint`, fetching a second nonce. Bounded (two per
+/// resolution, never a loop) but real; removing it needs a broker-protocol
+/// response that separates the two, which the current versioned stdio
+/// contract cannot express without breaking older companions.
pub fn probe_bridge(bridge_data: Option<&Path>) -> ResolveResult {
let mut deps = SystemResolveDeps::from_bridge_data(bridge_data);
- if let Some(endpoint) = deps.read_endpoint()
- && let Some(nonce) = deps.probe(endpoint.port, PROBE_TIMEOUT)
- {
- return ResolveResult::request_pair(endpoint.port, nonce);
- }
- ResolveResult::Error {
- error: ResolveError::NotRunning,
+ match resolve_endpoint(false, &mut deps) {
+ Ok(resolved) => ResolveResult::request_pair(resolved.endpoint.port, resolved.nonce),
+ Err(_) => ResolveResult::Error {
+ error: ResolveError::NotRunning,
+ },
}
}
pub fn wait_for_bridge(bridge_data: Option<&Path>) -> ResolveResult {
let mut deps = SystemResolveDeps::from_bridge_data(bridge_data);
match poll_launched_endpoint(&mut deps, LAUNCH_POLL_TIMEOUT, LAUNCH_POLL_INTERVAL) {
- Some((port, nonce)) => ResolveResult::request_pair(port, nonce),
+ Some(resolved) => ResolveResult::request_pair(resolved.endpoint.port, resolved.nonce),
None => ResolveResult::Error {
error: ResolveError::LaunchFailed,
},
diff --git a/packages/native-host/src/test_vectors.rs b/packages/native-host/src/test_vectors.rs
new file mode 100644
index 00000000..7997232c
--- /dev/null
+++ b/packages/native-host/src/test_vectors.rs
@@ -0,0 +1,52 @@
+//! Shared test-only access to the normative MBP1 vectors.
+//!
+//! `canonical.rs` and `ticket.rs` assert byte-exact encoding and MAC output
+//! against `docs/bridge-pairing-protocol-vectors.json` (spec §13); this
+//! module is the single place that locates and parses that file so every
+//! consumer stays pointed at the same fixture instead of duplicating the
+//! `include_str!` path and hex helpers per module.
+
+const VECTORS_JSON: &str = include_str!(concat!(
+ env!("CARGO_MANIFEST_DIR"),
+ "/../../docs/bridge-pairing-protocol-vectors.json"
+));
+
+/// Parse the normative vector file.
+pub(crate) fn vectors() -> serde_json::Value {
+ serde_json::from_str(VECTORS_JSON).expect("bridge-pairing-protocol-vectors.json is valid json")
+}
+
+/// Render bytes as lowercase hex, matching the vector file's encoding.
+pub(crate) fn hex(bytes: &[u8]) -> String {
+ bytes.iter().map(|b| format!("{b:02x}")).collect()
+}
+
+/// Decode a lowercase hex string produced by [`hex`] or found in the vector file.
+pub(crate) fn unhex(text: &str) -> Vec<u8> {
+ (0..text.len())
+ .step_by(2)
+ .map(|i| u8::from_str_radix(&text[i..i + 2], 16).expect("valid hex byte"))
+ .collect()
+}
+
+#[cfg(test)]
+mod tests {
+ use super::{hex, unhex, vectors};
+
+ #[test]
+ fn loads_the_nm_ticket_vector_group() {
+ let doc = vectors();
+ let group = &doc["nmTicket"];
+ assert!(group["inputs"]["localToken"].is_string());
+ assert!(group["inputs"]["bindingPub"].is_string());
+ assert!(group["expected"]["canonical"].is_string());
+ assert!(group["expected"]["mac"].is_string());
+ }
+
+ #[test]
+ fn hex_and_unhex_round_trip() {
+ let bytes = [0x00, 0x01, 0x7f, 0x80, 0xab, 0xff];
+ assert_eq!(hex(&bytes), "00017f80abff");
+ assert_eq!(unhex(&hex(&bytes)), bytes);
+ }
+}
diff --git a/packages/native-host/src/ticket.rs b/packages/native-host/src/ticket.rs
new file mode 100644
index 00000000..4859bc8f
--- /dev/null
+++ b/packages/native-host/src/ticket.rs
@@ -0,0 +1,209 @@
+//! MBP1 NM attestation ticket minting (`docs/bridge-pairing-protocol.md` §9.2).
+//!
+//! The host mints a one-shot ticket per bootstrap request so the server can
+//! resolve the extension identity tri-state (§5). Every byte produced here
+//! must match the server's verification exactly — see the `nmTicket` vector
+//! group in `docs/bridge-pairing-protocol-vectors.json` (§13).
+//!
+//! Binding-key validation (curve arithmetic, small-order/torsion checks,
+//! `ticketProof` verification) is entirely server-side (§9.1); this module
+//! only echoes the caller-supplied `bindingPub` bytes into the MAC.
+
+use hkdf::Hkdf;
+use hmac::{Hmac, Mac};
+use serde::Serialize;
+use sha2::Sha256;
+
+use crate::canonical::{base64url_encode, enc, enc_ascii, enc_u32_be, enc_u64_be};
+
+/// Ticket format version (§9.2 wire field `v`).
+pub const TICKET_V: u32 = 1;
+
+/// Protocol version this host implements (§9.2 wire field `protocolVersion`).
+pub const TICKET_PROTOCOL_VERSION: u32 = 1;
+
+/// The ticket's fixed purpose string. This constant serves two *distinct*
+/// roles that must never be conflated: it is written verbatim as the wire
+/// `purpose` field below, and — separately — [`ticket_canonical`] feeds it
+/// into the MAC as a hardcoded domain-separation tag (§9.2: "The MAC's
+/// leading `enc(\"mbp1-attestation\")` is a fixed domain tag, not the wire
+/// `purpose`"). Both happen to hold the same literal value in protocol v1,
+/// but the MAC input always uses this constant directly — never a value
+/// read back off any parsed or wire structure — so the two uses cannot
+/// silently drift apart.
+pub const TICKET_PURPOSE: &str = "mbp1-attestation";
+
+/// Remaining-lifetime bound for a minted ticket (§9.2): the server rejects
+/// any ticket whose `exp` is more than 60 seconds in the future, so the
+/// caller must mint with `exp <= now + TICKET_LIFETIME_SECONDS`.
+pub const TICKET_LIFETIME_SECONDS: u64 = 60;
+
+/// Fixed HKDF salt for ticket-key derivation (§9.2).
+const TICKET_KEY_SALT: &[u8] = b"MBP1/nm-ticket/v1";
+
+/// Fixed HKDF info label for ticket-key derivation (§9.2).
+const TICKET_KEY_INFO: &[u8] = b"mac";
+
+/// Inputs the caller has already resolved and trusts: the browser-supplied
+/// caller identity, the live server's `generation`, and the extension's
+/// binding key. This module never validates provenance — a missing or
+/// unverified input is the caller's signal to reply ticketless, not to
+/// mint a placeholder.
+pub struct TicketInputs<'a> {
+ pub server_generation: &'a str,
+ pub browser: &'a str,
+ pub caller_id: &'a str,
+ /// Unix seconds; the caller computes `now + TICKET_LIFETIME_SECONDS` (or
+ /// less) so the server's remaining-lifetime check passes.
+ pub exp: u64,
+ pub binding_pub: &'a [u8; 32],
+}
+
+/// `ticketKey = HKDF-SHA-256(ikm=UTF8(localToken), salt="MBP1/nm-ticket/v1",
+/// info="mac", L=32)` (§9.2).
+pub fn derive_ticket_key(local_token: &str) -> [u8; 32] {
+ let hkdf = Hkdf::<Sha256>::new(Some(TICKET_KEY_SALT), local_token.as_bytes());
+ let mut ticket_key = [0_u8; 32];
+ hkdf.expand(TICKET_KEY_INFO, &mut ticket_key)
+ .expect("32 bytes is a valid HKDF-SHA-256 output length");
+ ticket_key
+}
+
+/// The canonical MAC input (§9.2, field order fixed, independent of JSON key
+/// order): the leading element is the fixed domain tag
+/// `enc("mbp1-attestation")`, never the wire `purpose`.
+pub fn ticket_canonical(inputs: &TicketInputs) -> Vec<u8> {
+ let mut canonical =
+ enc_ascii(TICKET_PURPOSE).expect("ticket domain tag is a static ASCII literal");
+ canonical.extend(enc_u32_be(TICKET_V));
+ canonical.extend(enc_u32_be(TICKET_PROTOCOL_VERSION));
+ canonical.extend(
+ enc_ascii(inputs.server_generation)
+ .expect("server generation must be ASCII (endpoint.json invariant)"),
+ );
+ canonical.extend(
+ enc_ascii(inputs.browser).expect("browser must be ASCII (caller identity invariant)"),
+ );
+ canonical.extend(
+ enc_ascii(inputs.caller_id).expect("caller id must be ASCII (caller identity invariant)"),
+ );
+ canonical.extend(enc_u64_be(inputs.exp));
+ canonical.extend(enc(inputs.binding_pub));
+ canonical
+}
+
+/// `HMAC-SHA-256(ticketKey, canonical)` (§9.2).
+pub fn ticket_mac(ticket_key: &[u8; 32], canonical: &[u8]) -> [u8; 32] {
+ let mut mac =
+ Hmac::<Sha256>::new_from_slice(ticket_key).expect("HMAC-SHA-256 accepts a 32-byte key");
+ mac.update(canonical);
+ mac.finalize()
+ .into_bytes()
+ .as_slice()
+ .try_into()
+ .expect("HMAC-SHA-256 output is 32 bytes")
+}
+
+/// The wire form of an NM attestation ticket (§9.2), ready to embed in a
+/// `requestPair` reply's `nmTicket` field. Never log or print this: `mac`
+/// and `bindingPub` are ticket material (§11).
+#[derive(Clone, Debug, Serialize, Eq, PartialEq)]
+pub struct NmTicket {
+ pub v: u32,
+ pub purpose: &'static str,
+ #[serde(rename = "protocolVersion")]
+ pub protocol_version: u32,
+ #[serde(rename = "serverGeneration")]
+ pub server_generation: String,
+ pub browser: String,
+ #[serde(rename = "callerId")]
+ pub caller_id: String,
+ pub exp: u64,
+ #[serde(rename = "bindingPub")]
+ pub binding_pub: String,
+ pub mac: String,
+}
+
+/// Mint a ticket: derive the key, build the canonical MAC input, MAC it, and
+/// encode the wire form. `local_token` and every field of `inputs` must
+/// already be trustworthy — this function only encodes, it never validates
+/// provenance.
+pub fn mint_ticket(local_token: &str, inputs: &TicketInputs) -> NmTicket {
+ let ticket_key = derive_ticket_key(local_token);
+ let canonical = ticket_canonical(inputs);
+ let mac = ticket_mac(&ticket_key, &canonical);
+ NmTicket {
+ v: TICKET_V,
+ purpose: TICKET_PURPOSE,
+ protocol_version: TICKET_PROTOCOL_VERSION,
+ server_generation: inputs.server_generation.to_owned(),
+ browser: inputs.browser.to_owned(),
+ caller_id: inputs.caller_id.to_owned(),
+ exp: inputs.exp,
+ binding_pub: base64url_encode(inputs.binding_pub),
+ mac: base64url_encode(&mac),
+ }
+}
+
+#[cfg(test)]
+mod tests {
+ use super::{TicketInputs, derive_ticket_key, mint_ticket, ticket_canonical, ticket_mac};
+ use crate::canonical::base64url_encode;
+ use crate::test_vectors::{hex, unhex, vectors};
+
+ #[test]
+ fn matches_normative_nm_ticket_vector() {
+ let doc = vectors();
+ let group = &doc["nmTicket"];
+ let inputs = &group["inputs"];
+ let expected = &group["expected"];
+
+ let binding_pub_bytes = unhex(inputs["bindingPub"].as_str().expect("bindingPub"));
+ let binding_pub: [u8; 32] = binding_pub_bytes.as_slice().try_into().expect("32 bytes");
+ let local_token = inputs["localToken"].as_str().expect("localToken");
+ let ticket_inputs = TicketInputs {
+ server_generation: inputs["serverGeneration"]
+ .as_str()
+ .expect("serverGeneration"),
+ browser: inputs["browser"].as_str().expect("browser"),
+ caller_id: inputs["callerId"].as_str().expect("callerId"),
+ exp: inputs["exp"].as_u64().expect("exp"),
+ binding_pub: &binding_pub,
+ };
+
+ let key = derive_ticket_key(local_token);
+ assert_eq!(
+ hex(&key),
+ expected["ticketKey"].as_str().expect("ticketKey")
+ );
+
+ let canonical = ticket_canonical(&ticket_inputs);
+ assert_eq!(
+ hex(&canonical),
+ expected["canonical"].as_str().expect("canonical")
+ );
+
+ let mac = ticket_mac(&key, &canonical);
+ assert_eq!(hex(&mac), expected["mac"].as_str().expect("mac"));
+
+ let ticket = mint_ticket(local_token, &ticket_inputs);
+ assert_eq!(ticket.v, 1);
+ assert_eq!(ticket.purpose, "mbp1-attestation");
+ assert_eq!(ticket.protocol_version, 1);
+ assert_eq!(
+ ticket.server_generation,
+ inputs["serverGeneration"]
+ .as_str()
+ .expect("serverGeneration")
+ );
+ assert_eq!(ticket.browser, "chromium");
+ assert_eq!(
+ ticket.caller_id,
+ inputs["callerId"].as_str().expect("callerId")
+ );
+ assert_eq!(ticket.exp, ticket_inputs.exp);
+ // wire fields are base64url no-pad of the raw bytes
+ assert_eq!(ticket.binding_pub, base64url_encode(&binding_pub));
+ assert_eq!(ticket.mac, base64url_encode(&mac));
+ }
+}
diff --git a/packages/native-host/tests/flatpak_broker_integration.rs b/packages/native-host/tests/flatpak_broker_integration.rs
index 26189bb5..0534dfa1 100644
--- a/packages/native-host/tests/flatpak_broker_integration.rs
+++ b/packages/native-host/tests/flatpak_broker_integration.rs
@@ -74,25 +74,56 @@ fn probe_request() -> Vec<u8> {
.expect("encode probe")
}
-fn serve_nonce_once() -> (u16, JoinHandle<()>) {
+fn read_request(stream: &mut std::net::TcpStream) -> Vec<u8> {
+ stream
+ .set_read_timeout(Some(Duration::from_secs(2)))
+ .expect("set read timeout");
+ let mut request = Vec::new();
+ let mut buffer = [0_u8; 256];
+ while !request.windows(4).any(|window| window == b"\r\n\r\n") {
+ let read = stream.read(&mut buffer).expect("read request");
+ assert_ne!(read, 0, "broker closed before request headers");
+ request.extend_from_slice(&buffer[..read]);
+ }
+ request
+}
+
+/// The broker's `probe_bridge` (Task B6) makes a liveness probe before the
+/// nonce fetch, exactly like the direct host: `GET /discovery` first, then a
+/// `POST /nonce` (which must carry `X-Motrix-Bridge: 1`). Answers both, on
+/// two separate connections, since `probe.rs` opens a fresh one per request.
+fn serve_bridge() -> (u16, JoinHandle<()>) {
let listener = TcpListener::bind(("127.0.0.1", 0)).expect("bind fake bridge");
let port = listener.local_addr().expect("fake bridge address").port();
let handle = thread::spawn(move || {
- let (mut stream, _) = listener.accept().expect("accept broker probe");
- stream
- .set_read_timeout(Some(Duration::from_secs(2)))
- .expect("set read timeout");
- let mut request = Vec::new();
- let mut buffer = [0_u8; 256];
- while !request.windows(4).any(|window| window == b"\r\n\r\n") {
- let read = stream.read(&mut buffer).expect("read request");
- assert_ne!(read, 0, "broker closed before request headers");
- request.extend_from_slice(&buffer[..read]);
- }
- assert!(request.starts_with(b"GET /nonce HTTP/1.1\r\n"));
+ let (mut discovery_stream, _) = listener.accept().expect("accept discovery probe");
+ let discovery_request = read_request(&mut discovery_stream);
+ assert!(
+ discovery_request.starts_with(b"GET /discovery HTTP/1.1\r\n"),
+ "expected a liveness probe before the nonce fetch"
+ );
+ let discovery_body =
+ r#"{"app":"motrix-bridge","apiVersion":1,"instanceId":"i","appVersion":"2.0.0"}"#;
+ write!(
+ discovery_stream,
+ "HTTP/1.1 200 OK\r\nContent-Type: application/json\r\nContent-Length: {}\r\nConnection: close\r\n\r\n{discovery_body}",
+ discovery_body.len()
+ )
+ .expect("write discovery response");
+
+ let (mut nonce_stream, _) = listener.accept().expect("accept broker probe");
+ let request = read_request(&mut nonce_stream);
+ assert!(request.starts_with(b"POST /nonce HTTP/1.1\r\n"));
+ let bridge_header = b"\r\nX-Motrix-Bridge: 1\r\n";
+ assert!(
+ request
+ .windows(bridge_header.len())
+ .any(|window| window == bridge_header),
+ "nonce fetch is missing the X-Motrix-Bridge header"
+ );
let body = format!(r#"{{"nonce":"{NONCE}"}}"#);
write!(
- stream,
+ nonce_stream,
"HTTP/1.1 200 OK\r\nContent-Type: application/json\r\nContent-Length: {}\r\nConnection: close\r\n\r\n{body}",
body.len()
)
@@ -107,7 +138,7 @@ fn broker_probes_only_the_flatpak_xdg_bridge_and_returns_one_exact_frame() {
let config_home = temp.path.join("config");
let bridge = config_home.join("motrix/bridge");
fs::create_dir_all(&bridge).expect("create bridge directory");
- let (port, server) = serve_nonce_once();
+ let (port, server) = serve_bridge();
fs::write(
bridge.join("endpoint.json"),
format!(r#"{{"port":{port},"pid":1,"writtenAt":0}}"#),
diff --git a/packages/native-host/tests/flatpak_companion_integration.rs b/packages/native-host/tests/flatpak_companion_integration.rs
index 904085eb..f54f7d62 100644
--- a/packages/native-host/tests/flatpak_companion_integration.rs
+++ b/packages/native-host/tests/flatpak_companion_integration.rs
@@ -144,12 +144,17 @@ fn run_browser(installed: &Path, temp: &TempDir, origin: &str, wire: &[u8]) -> O
.stderr(Stdio::piped())
.spawn()
.expect("spawn installed companion");
- child
- .stdin
- .take()
- .expect("companion stdin")
- .write_all(wire)
- .expect("write browser frame");
+ let mut stdin = child.stdin.take().expect("companion stdin");
+ if let Err(error) = stdin.write_all(wire) {
+ drop(stdin);
+ let output = child.wait_with_output().expect("wait for failed companion");
+ panic!(
+ "write browser frame: {error}; status: {}; stderr: {}",
+ output.status,
+ String::from_utf8_lossy(&output.stderr)
+ );
+ }
+ drop(stdin);
child.wait_with_output().expect("wait for companion")
}
diff --git a/packages/native-host/tests/host_integration.rs b/packages/native-host/tests/host_integration.rs
index d860a91d..e79afe77 100644
--- a/packages/native-host/tests/host_integration.rs
+++ b/packages/native-host/tests/host_integration.rs
@@ -41,8 +41,39 @@ fn user_data_for(home: &Path, app_data: &Path) -> PathBuf {
resolve_native_host_user_data_dir(current_platform(), home, Some(app_data.as_os_str()))
}
+#[cfg(unix)]
+fn set_endpoint_owner_only(path: &Path) {
+ use std::os::unix::fs::PermissionsExt;
+
+ fs::set_permissions(path, fs::Permissions::from_mode(0o600))
+ .expect("chmod endpoint fixture to 0600");
+}
+
+#[cfg(windows)]
+fn set_endpoint_owner_only(path: &Path) {
+ let identity = Command::new("whoami").output().expect("run whoami");
+ assert!(identity.status.success(), "whoami failed");
+ let user = String::from_utf8(identity.stdout)
+ .expect("whoami emits UTF-8")
+ .trim()
+ .to_owned();
+
+ for args in [
+ vec!["/setowner", user.as_str()],
+ vec!["/inheritance:r"],
+ vec!["/grant:r", &format!("{user}:F")],
+ ] {
+ let status = Command::new("icacls")
+ .arg(path)
+ .args(&args)
+ .status()
+ .expect("run icacls");
+ assert!(status.success(), "icacls {args:?} failed");
+ }
+}
+
fn run_host(home: &Path, app_data: &Path, wire: &[u8]) -> Output {
- run_host_with_bridge_override(home, app_data, wire, None)
+ run_host_with_options(home, app_data, wire, None, &[])
}
fn run_host_with_bridge_override(
@@ -50,9 +81,26 @@ fn run_host_with_bridge_override(
app_data: &Path,
wire: &[u8],
bridge_data_dir: Option<&Path>,
+) -> Output {
+ run_host_with_options(home, app_data, wire, bridge_data_dir, &[])
+}
+
+/// Runs the host with extra post-argv0 arguments, mimicking the browser
+/// caller identity Chromium/Firefox pass over Native Messaging (§9.1).
+fn run_host_with_argv(home: &Path, app_data: &Path, wire: &[u8], argv: &[&str]) -> Output {
+ run_host_with_options(home, app_data, wire, None, argv)
+}
+
+fn run_host_with_options(
+ home: &Path,
+ app_data: &Path,
+ wire: &[u8],
+ bridge_data_dir: Option<&Path>,
+ argv: &[&str],
) -> Output {
let mut command = Command::new(env!("CARGO_BIN_EXE_motrix-native-host"));
command
+ .args(argv)
.env("HOME", home)
.env("USERPROFILE", home)
.env("APPDATA", app_data)
@@ -93,35 +141,71 @@ fn decode_only_frame(stdout: &[u8]) -> Value {
value
}
-fn serve_chunked_nonce() -> (u16, JoinHandle<String>) {
+/// Reads one HTTP request's headers off `stream` and returns the raw bytes
+/// read so far as text (the caller only inspects the request line/headers,
+/// never a body, matching every request this fake bridge answers).
+fn read_request_head(stream: &mut std::net::TcpStream) -> String {
+ stream
+ .set_read_timeout(Some(Duration::from_secs(2)))
+ .expect("set fake bridge timeout");
+ let mut request = Vec::new();
+ let mut buffer = [0_u8; 256];
+ while !request.windows(4).any(|window| window == b"\r\n\r\n") {
+ let read = stream.read(&mut buffer).expect("read native host request");
+ assert_ne!(read, 0, "native host closed before request headers");
+ request.extend_from_slice(&buffer[..read]);
+ }
+ String::from_utf8(request).expect("request is ASCII")
+}
+
+/// A fake bridge that answers up to `requests` sequential connections: a
+/// `GET /discovery` liveness probe gets a 200 JSON discovery body, and a
+/// `POST /nonce` (which must carry `X-Motrix-Bridge: 1`) gets the chunked
+/// nonce body. Returns every request's text, in arrival order, so callers
+/// can assert both the liveness probe and the nonce fetch (Task B6/B8).
+fn serve_bridge(requests: usize) -> (u16, JoinHandle<Vec<String>>) {
let listener = TcpListener::bind(("127.0.0.1", 0)).expect("bind fake bridge");
let port = listener.local_addr().expect("fake bridge address").port();
let handle = thread::spawn(move || {
- let (mut stream, _) = listener.accept().expect("accept native host probe");
- stream
- .set_read_timeout(Some(Duration::from_secs(2)))
- .expect("set fake bridge timeout");
- let mut request = Vec::new();
- let mut buffer = [0_u8; 256];
- while !request.windows(4).any(|window| window == b"\r\n\r\n") {
- let read = stream.read(&mut buffer).expect("read native host request");
- assert_ne!(read, 0, "native host closed before request headers");
- request.extend_from_slice(&buffer[..read]);
- }
+ let mut captured = Vec::with_capacity(requests);
+ for _ in 0..requests {
+ let (mut stream, _) = listener.accept().expect("accept fake bridge connection");
+ let request = read_request_head(&mut stream);
- let body = format!(r#"{{"nonce":"{NONCE}"}}"#);
- let split = 11;
- let first = &body[..split];
- let second = &body[split..];
- let response = format!(
- "HTTP/1.1 200 OK\r\nContent-Type: application/json\r\nTransfer-Encoding: chunked\r\nConnection: close\r\n\r\n{:X}\r\n{first}\r\n{:X}\r\n{second}\r\n0\r\n\r\n",
- first.len(),
- second.len()
- );
- stream
- .write_all(response.as_bytes())
- .expect("write chunked nonce response");
- String::from_utf8(request).expect("request is ASCII")
+ if request.starts_with("GET /discovery HTTP/1.1\r\n") {
+ let discovery_body = r#"{"app":"motrix-bridge","apiVersion":1,"instanceId":"i","appVersion":"2.0.0"}"#;
+ let discovery_response = format!(
+ "HTTP/1.1 200 OK\r\nContent-Type: application/json\r\nContent-Length: {}\r\n\r\n{discovery_body}",
+ discovery_body.len()
+ );
+ stream
+ .write_all(discovery_response.as_bytes())
+ .expect("write discovery response");
+ } else {
+ assert!(
+ request.starts_with("POST /nonce HTTP/1.1\r\n"),
+ "expected a discovery probe or a nonce fetch, got: {request}"
+ );
+ assert!(
+ request.contains("\r\nX-Motrix-Bridge: 1\r\n"),
+ "nonce fetch is missing the X-Motrix-Bridge header: {request}"
+ );
+ let body = format!(r#"{{"nonce":"{NONCE}"}}"#);
+ let split = 11;
+ let first = &body[..split];
+ let second = &body[split..];
+ let response = format!(
+ "HTTP/1.1 200 OK\r\nContent-Type: application/json\r\nTransfer-Encoding: chunked\r\nConnection: close\r\n\r\n{:X}\r\n{first}\r\n{:X}\r\n{second}\r\n0\r\n\r\n",
+ first.len(),
+ second.len()
+ );
+ stream
+ .write_all(response.as_bytes())
+ .expect("write chunked nonce response");
+ }
+ captured.push(request);
+ }
+ captured
});
(port, handle)
}
@@ -135,12 +219,18 @@ fn subprocess_returns_exact_pair_frame_and_never_logs_nonce_or_local_token() {
fs::create_dir_all(&bridge_dir).expect("create bridge directory");
fs::write(bridge_dir.join(".nh-debug"), b"").expect("enable debug log");
- let (port, server) = serve_chunked_nonce();
+ let (port, server) = serve_bridge(2);
+ let endpoint_path = bridge_dir.join("endpoint.json");
fs::write(
- bridge_dir.join("endpoint.json"),
+ &endpoint_path,
format!(r#"{{"port":{port},"pid":1,"writtenAt":0,"localToken":"endpoint-secret"}}"#),
)
.expect("write endpoint");
+ // Mirror the shell's real 0600 write (spec §9.1) so the host actually
+ // reads `localToken` here rather than dropping it via a lax-permission
+ // fallback — the point of this test is that a read token still never
+ // reaches the log, not that it goes unread.
+ set_endpoint_owner_only(&endpoint_path);
let output = run_host(
&temp.path,
@@ -151,11 +241,13 @@ fn subprocess_returns_exact_pair_frame_and_never_logs_nonce_or_local_token() {
assert!(output.stderr.is_empty());
assert_eq!(
decode_only_frame(&output.stdout),
- json!({ "action": "requestPair", "port": port, "nonce": NONCE })
+ json!({ "action": "requestPair", "protocolVersion": 1, "port": port, "nonce": NONCE })
);
- let request = server.join().expect("fake bridge thread");
- assert!(request.starts_with("GET /nonce HTTP/1.1\r\n"));
+ let requests = server.join().expect("fake bridge thread");
+ assert!(requests[0].starts_with("GET /discovery HTTP/1.1\r\n"));
+ assert!(requests[1].starts_with("POST /nonce HTTP/1.1\r\n"));
+ assert!(requests[1].contains("\r\nX-Motrix-Bridge: 1\r\n"));
let log = fs::read_to_string(user_data.join("logs").join("native-host.log"))
.expect("read native host debug log");
assert!(log.contains("nonce=[redacted]"));
@@ -170,7 +262,7 @@ fn subprocess_reads_endpoint_from_the_shared_bridge_override() {
let bridge_dir = temp.path.join("snap").join("common").join("bridge");
fs::create_dir_all(&bridge_dir).expect("create shared bridge directory");
- let (port, server) = serve_chunked_nonce();
+ let (port, server) = serve_bridge(2);
fs::write(
bridge_dir.join("endpoint.json"),
format!(r#"{{"port":{port},"pid":1,"writtenAt":0}}"#),
@@ -187,7 +279,7 @@ fn subprocess_reads_endpoint_from_the_shared_bridge_override() {
assert!(output.stderr.is_empty());
assert_eq!(
decode_only_frame(&output.stdout),
- json!({ "action": "requestPair", "port": port, "nonce": NONCE })
+ json!({ "action": "requestPair", "protocolVersion": 1, "port": port, "nonce": NONCE })
);
server.join().expect("fake bridge thread");
}
@@ -248,3 +340,152 @@ fn subprocess_rejects_primitive_malformed_truncated_and_oversized_input() {
assert!(!oversized.status.success());
assert!(oversized.stdout.is_empty());
}
+
+// binding pub = 32 bytes of 0x07, base64url no-pad (spec §9.1/§9.2).
+const BOOTSTRAP_BINDING_PUB: &str = "BwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwc";
+const BOOTSTRAP_CALLER_ARGV: &str = "chrome-extension://ibpkjhgpbidfmbmomagmldcdlpbmchgi/";
+
+fn bootstrap_wire(allow_launch: bool) -> Vec<u8> {
+ encode(&json!({
+ "action": "bootstrap",
+ "protocolVersion": 1,
+ "bindingPub": BOOTSTRAP_BINDING_PUB,
+ "allowLaunch": allow_launch,
+ }))
+}
+
+#[test]
+fn bootstrap_request_returns_ticketed_pair_frame_and_never_leaks_secrets() {
+ let temp = TempDir::new("bootstrap");
+ let app_data = temp.path.join("Roaming");
+ let user_data = user_data_for(&temp.path, &app_data);
+ let bridge_dir = user_data.join("bridge");
+ fs::create_dir_all(&bridge_dir).expect("create bridge directory");
+ fs::write(bridge_dir.join(".nh-debug"), b"").expect("enable debug log");
+
+ let (port, server) = serve_bridge(2); // /discovery then POST /nonce
+ let endpoint_path = bridge_dir.join("endpoint.json");
+ fs::write(
+ &endpoint_path,
+ format!(
+ r#"{{"port":{port},"pid":1,"writtenAt":0,"localToken":"endpoint-secret","generation":"gen-1"}}"#
+ ),
+ )
+ .expect("write endpoint");
+ set_endpoint_owner_only(&endpoint_path);
+
+ let output = run_host_with_argv(
+ &temp.path,
+ &app_data,
+ &bootstrap_wire(false),
+ &[BOOTSTRAP_CALLER_ARGV],
+ );
+ assert!(output.status.success());
+ assert!(output.stderr.is_empty());
+ let frame = decode_only_frame(&output.stdout);
+ assert_eq!(frame["action"], "requestPair");
+ assert_eq!(frame["protocolVersion"], 1);
+ assert_eq!(frame["port"], u64::from(port));
+ let ticket = &frame["nmTicket"];
+ assert_eq!(ticket["v"], 1);
+ assert_eq!(ticket["purpose"], "mbp1-attestation");
+ assert_eq!(ticket["callerId"], "ibpkjhgpbidfmbmomagmldcdlpbmchgi");
+ assert_eq!(ticket["browser"], "chromium");
+ assert_eq!(ticket["bindingPub"], BOOTSTRAP_BINDING_PUB);
+ let exp = ticket["exp"].as_u64().expect("exp");
+ let now = SystemTime::now()
+ .duration_since(UNIX_EPOCH)
+ .expect("clock")
+ .as_secs();
+ assert!(exp > now && exp <= now + 61, "exp must be now + 60s");
+
+ let requests = server.join().expect("fake bridge");
+ assert!(requests[0].starts_with("GET /discovery HTTP/1.1\r\n"));
+ assert!(requests[1].starts_with("POST /nonce HTTP/1.1\r\n"));
+ assert!(requests[1].contains("\r\nX-Motrix-Bridge: 1\r\n"));
+
+ let log = fs::read_to_string(user_data.join("logs").join("native-host.log")).expect("log");
+ assert!(log.contains("ticket=present"));
+ assert!(!log.contains("endpoint-secret"));
+ assert!(!log.contains(ticket["mac"].as_str().expect("mac")));
+}
+
+#[cfg(unix)]
+#[test]
+fn bootstrap_request_degrades_to_ticketless_when_endpoint_file_is_lax() {
+ use std::os::unix::fs::PermissionsExt;
+
+ let temp = TempDir::new("bootstrap-lax-endpoint");
+ let app_data = temp.path.join("Roaming");
+ let user_data = user_data_for(&temp.path, &app_data);
+ let bridge_dir = user_data.join("bridge");
+ fs::create_dir_all(&bridge_dir).expect("create bridge directory");
+
+ let (port, server) = serve_bridge(2);
+ let endpoint_path = bridge_dir.join("endpoint.json");
+ fs::write(
+ &endpoint_path,
+ format!(
+ r#"{{"port":{port},"pid":1,"writtenAt":0,"localToken":"endpoint-secret","generation":"gen-1"}}"#
+ ),
+ )
+ .expect("write endpoint");
+ // Group/world-readable: the 0600 owner-only check fails, so the host
+ // must drop `localToken`/`generation` and reply ticketless rather than
+ // trusting an unverified credential (§9.1's attestation root).
+ fs::set_permissions(&endpoint_path, fs::Permissions::from_mode(0o644))
+ .expect("chmod endpoint fixture to 0644");
+
+ let output = run_host_with_argv(
+ &temp.path,
+ &app_data,
+ &bootstrap_wire(false),
+ &[BOOTSTRAP_CALLER_ARGV],
+ );
+ assert!(output.status.success());
+ assert!(output.stderr.is_empty());
+ let frame = decode_only_frame(&output.stdout);
+ assert_eq!(frame["action"], "requestPair");
+ assert_eq!(frame["port"], u64::from(port));
+ assert!(
+ frame.get("nmTicket").is_none(),
+ "a lax-permission endpoint file must degrade to ticketless, got: {frame}"
+ );
+
+ server.join().expect("fake bridge");
+}
+
+#[test]
+fn bootstrap_request_degrades_to_ticketless_without_caller_identity() {
+ let temp = TempDir::new("bootstrap-no-caller");
+ let app_data = temp.path.join("Roaming");
+ let user_data = user_data_for(&temp.path, &app_data);
+ let bridge_dir = user_data.join("bridge");
+ fs::create_dir_all(&bridge_dir).expect("create bridge directory");
+
+ let (port, server) = serve_bridge(2);
+ let endpoint_path = bridge_dir.join("endpoint.json");
+ fs::write(
+ &endpoint_path,
+ format!(
+ r#"{{"port":{port},"pid":1,"writtenAt":0,"localToken":"endpoint-secret","generation":"gen-1"}}"#
+ ),
+ )
+ .expect("write endpoint");
+ set_endpoint_owner_only(&endpoint_path);
+
+ // No argv at all: the host cannot extract a caller identity, so it must
+ // never fabricate one — it degrades to ticketless instead of minting.
+ let output = run_host_with_argv(&temp.path, &app_data, &bootstrap_wire(false), &[]);
+ assert!(output.status.success());
+ assert!(output.stderr.is_empty());
+ let frame = decode_only_frame(&output.stdout);
+ assert_eq!(frame["action"], "requestPair");
+ assert_eq!(frame["port"], u64::from(port));
+ assert!(
+ frame.get("nmTicket").is_none(),
+ "a missing caller identity must degrade to ticketless, got: {frame}"
+ );
+
+ server.join().expect("fake bridge");
+}
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 58420881..878aa847 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -24,14 +24,20 @@ importers:
specifier: ^5.9.1
'@motrix/mdxp':
- specifier: ^0.5.0
- version: 0.5.0
+ specifier: ^0.6.0
+ version: 0.6.0
'@motrix/nat':
specifier: ^0.1.1
version: 0.1.1
'@motrix/plugin-manifest-schema':
specifier: ^2.1.0
version: 2.1.0
+ '@noble/curves':
+ specifier: 2.0.1
+ version: 2.0.1
+ '@noble/hashes':
+ specifier: 2.0.1
+ version: 2.0.1
'@resvg/resvg-wasm':
specifier: ^2.6.2
version: 2.6.2
@@ -227,7 +233,7 @@ importers:
version: 5.3.0
jsdom:
specifier: ^30.0.1
- version: 30.0.1(@noble/[email protected])
+ version: 30.0.1(@noble/[email protected])
playwright:
specifier: ^1.62.1
version: 1.62.1
@@ -242,7 +248,7 @@ importers:
vitest:
specifier: ^4.1.10
optionalDependencies:
electron-liquid-glass:
specifier: ^1.1.1
@@ -938,8 +944,8 @@ packages:
engines: {node: '>=22'}
hasBin: true
- '@motrix/[email protected]':
- resolution: {integrity: sha512-DImm/kxsH43PI2IV/p9jbJnlxe+We0wD45eRPuACSCUFKVgUfDeVpjqK76bXK0umO245Z7bjxXr8qm4AcS/ESA==}
+ '@motrix/[email protected]':
+ resolution: {integrity: sha512-ySgMuME8chFax2lxtELbCYrM9ayGciEN8UikYG6MLGg3Z8I6RTY+XarC40RjhY2vVnMdLrf9ff7ZiH6hSjLkdg==}
'@motrix/[email protected]':
resolution: {integrity: sha512-ORkFuNXMLa8yLhlxRmoLh6WSWtOjhJ4q28Dcx4Wt44JSkB60gjNzuBV8CVCy2VtWc2BhxiOlel4f3RhJ7OmaXw==}
@@ -948,10 +954,18 @@ packages:
'@motrix/[email protected]':
resolution: {integrity: sha512-S6p1uhoQzYbepVkYV86dmmD+7xLagto7ft3vWcLK4Fg8KtvEikV1b+ZPyE5OjgpZO3WEFcMe8uuc/Iymai0fmw==}
+ '@noble/[email protected]':
+ resolution: {integrity: sha512-vs1Az2OOTBiP4q0pwjW5aF0xp9n4MxVrmkFBxc6EKZc6ddYx5gaZiAsZoq0uRRXWbi3AT/sBqn05eRPtn1JCPw==}
+ engines: {node: '>= 20.19.0'}
+
resolution: {integrity: sha512-V1JJ1WTRUqHHrOSh597hURcMqVKVGL/ea3kv0gSnEdsEZ0/+VyPghM1lMNGc00z7CIQorSvbKpuJkxvuHbvdbg==}
engines: {node: '>= 16'}
+ '@noble/[email protected]':
+ resolution: {integrity: sha512-XlOlEbQcE9fmuXxrVTXCTlG2nlRXa9Rj3rr5Ue/+tX+nmkgbX720YHh0VR3hBF9xDvwnb8D2shVGOwNx+ulArw==}
+ engines: {node: '>= 20.19.0'}
+
resolution: {integrity: sha512-oN+QwyX7VSHotibwubG3kpzbwKrfnyR6OOO+3Nk/53ADL7FmgHHz4TgrbaYKvvOw09u6QTx0oiH1cNCIOuN0CQ==}
engines: {node: '>= 20.19.0'}
@@ -5149,9 +5163,9 @@ snapshots:
'@esbuild/[email protected]':
optional: true
optionalDependencies:
- '@noble/hashes': 2.3.0
+ '@noble/hashes': 2.0.1
'@fastify/[email protected]': {}
@@ -5320,7 +5334,7 @@ snapshots:
dependencies:
commander: 12.1.0
- '@motrix/[email protected]':
+ '@motrix/[email protected]':
dependencies:
vscode-jsonrpc: 9.0.1
zod: 4.4.3
@@ -5331,8 +5345,14 @@ snapshots:
dependencies:
zod: 4.4.3
+ '@noble/[email protected]':
+ dependencies:
+ '@noble/hashes': 2.0.1
+
'@noble/[email protected]': {}
+ '@noble/[email protected]': {}
+
'@noble/[email protected]': {}
'@nodelib/[email protected]':
@@ -5683,7 +5703,7 @@ snapshots:
picocolors: 1.1.1
redent: 3.0.0
optionalDependencies:
dependencies:
@@ -5894,7 +5914,7 @@ snapshots:
obug: 2.1.4
std-env: 4.2.0
tinyrainbow: 3.1.1
'@vitest/[email protected]':
dependencies:
@@ -6462,10 +6482,10 @@ snapshots:
dependencies:
whatwg-mimetype: 5.0.0
- whatwg-url: 16.0.1(@noble/[email protected])
+ whatwg-url: 16.0.1(@noble/[email protected])
transitivePeerDependencies:
- '@noble/hashes'
@@ -7139,9 +7159,9 @@ snapshots:
dependencies:
lru-cache: 6.0.0
dependencies:
- '@exodus/bytes': 1.15.1(@noble/[email protected])
+ '@exodus/bytes': 1.15.1(@noble/[email protected])
transitivePeerDependencies:
- '@noble/hashes'
@@ -7317,17 +7337,17 @@ snapshots:
dependencies:
argparse: 2.0.1
dependencies:
'@asamuzakjp/css-color': 6.0.7
'@asamuzakjp/dom-selector': 8.3.2
'@bramus/specificity': 2.4.2
'@csstools/css-syntax-patches-for-csstree': 1.1.8([email protected])
- '@exodus/bytes': 1.15.1(@noble/[email protected])
+ '@exodus/bytes': 1.15.1(@noble/[email protected])
css-tree: 3.2.1
- data-urls: 7.0.0(@noble/[email protected])
+ data-urls: 7.0.0(@noble/[email protected])
decimal.js: 10.6.0
- html-encoding-sniffer: 6.0.0(@noble/[email protected])
+ html-encoding-sniffer: 6.0.0(@noble/[email protected])
is-potential-custom-element-name: 1.0.1
lru-cache: 11.5.2
parse5: 8.0.1
@@ -7338,7 +7358,7 @@ snapshots:
w3c-xmlserializer: 5.0.0
webidl-conversions: 8.0.1
whatwg-mimetype: 5.0.0
- whatwg-url: 17.1.0(@noble/[email protected])
+ whatwg-url: 17.1.0(@noble/[email protected])
xml-name-validator: 5.0.0
transitivePeerDependencies:
- '@noble/hashes'
@@ -8717,7 +8737,7 @@ snapshots:
jiti: 2.7.0
tsx: 4.23.12
dependencies:
'@vitest/expect': 4.1.10
@@ -8742,7 +8762,7 @@ snapshots:
optionalDependencies:
'@types/node': 26.2.0
'@vitest/coverage-v8': 4.1.10([email protected])
- jsdom: 30.0.1(@noble/[email protected])
+ jsdom: 30.0.1(@noble/[email protected])
transitivePeerDependencies:
- msw
@@ -8766,17 +8786,17 @@ snapshots:
dependencies:
- '@exodus/bytes': 1.15.1(@noble/[email protected])
+ '@exodus/bytes': 1.15.1(@noble/[email protected])
tr46: 6.0.0
webidl-conversions: 8.0.1
transitivePeerDependencies:
- '@noble/hashes'
dependencies:
- '@exodus/bytes': 1.15.1(@noble/[email protected])
+ '@exodus/bytes': 1.15.1(@noble/[email protected])
tr46: 6.0.0
webidl-conversions: 8.0.1
transitivePeerDependencies:
diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml
index 13571ab5..8e3a0b49 100644
--- a/pnpm-workspace.yaml
+++ b/pnpm-workspace.yaml
@@ -25,10 +25,12 @@ allowBuilds:
esbuild: true
minimumReleaseAgeExclude:
+ - '@noble/[email protected]'
+ - '@noble/[email protected]'
- [email protected] || 1.31.0
- - '@motrix/[email protected] || 0.3.0 || 0.4.0 || 0.5.0'
+ - '@motrix/[email protected] || 0.3.0 || 0.4.0 || 0.5.0 || 0.6.0'
- '@motrix/[email protected] || 0.1.1'
- '@motrix/[email protected]'
- '@motrix/[email protected]'
diff --git a/scripts/electron-runtime-dependencies.json b/scripts/electron-runtime-dependencies.json
index fb332fbd..6561123c 100644
--- a/scripts/electron-runtime-dependencies.json
+++ b/scripts/electron-runtime-dependencies.json
@@ -11,6 +11,8 @@
"@motrix/mdxp",
"@motrix/nat",
"@motrix/plugin-manifest-schema",
+ "@noble/curves",
+ "@noble/hashes",
"ajv",
"better-sqlite3",
"chokidar",
diff --git a/scripts/generate-bridge-pairing-vectors.mjs b/scripts/generate-bridge-pairing-vectors.mjs
new file mode 100644
index 00000000..c734f8f7
--- /dev/null
+++ b/scripts/generate-bridge-pairing-vectors.mjs
@@ -0,0 +1,834 @@
+// scripts/generate-bridge-pairing-vectors.mjs
+//
+// The §13 reference generator for docs/bridge-pairing-protocol-vectors.json —
+// the spec requires the vectors to come from a script checked in with the
+// Phase-A implementation, and regeneration to be deterministic given the
+// recorded inputs. Usage: `pnpm run generate:bridge-vectors`, or directly
+// `node scripts/generate-bridge-pairing-vectors.mjs <output.json>`.
+//
+// MBP1 reference vector generator (rev 2, after crypto-review round 1).
+// Step 1 validates the generic SPAKE2 core (TT layout, key schedule,
+// confirmation MACs) against ALL FOUR RFC 9382 Appendix B P-256 vectors.
+// Step 2 generates the MBP1 edwards25519 vectors defined by
+// docs/bridge-pairing-protocol.md and self-checks them, including strict
+// Ed25519 verification and weak binding-key rejection.
+import { createCipheriv, createDecipheriv } from 'node:crypto'
+import { writeFileSync } from 'node:fs'
+import { ed25519 } from '@noble/curves/ed25519.js'
+import { p256 } from '@noble/curves/nist.js'
+import { hkdf } from '@noble/hashes/hkdf.js'
+import { hmac } from '@noble/hashes/hmac.js'
+import { scrypt } from '@noble/hashes/scrypt.js'
+import { sha256 } from '@noble/hashes/sha2.js'
+
+// ---------- helpers ----------
+const te = new TextEncoder()
+const utf8 = (s) => te.encode(s)
+const hex = (b) => Buffer.from(b).toString('hex')
+const unhex = (s) =>
+ Uint8Array.from(Buffer.from(s.replaceAll(/\s/g, ''), 'hex'))
+const concat = (...parts) => {
+ const total = parts.reduce((n, p) => n + p.length, 0)
+ const out = new Uint8Array(total)
+ let o = 0
+ for (const p of parts) {
+ out.set(p, o)
+ o += p.length
+ }
+ return out
+}
+const len64LE = (n) => {
+ const b = new Uint8Array(8)
+ new DataView(b.buffer).setBigUint64(0, BigInt(n), true)
+ return b
+}
+const enc = (bytes) => concat(len64LE(bytes.length), bytes)
+const encStr = (s) => enc(utf8(s))
+const encU32BE = (n) => {
+ const b = new Uint8Array(4)
+ new DataView(b.buffer).setUint32(0, n, false)
+ return b
+}
+const encU64BE = (n) => {
+ const b = new Uint8Array(8)
+ new DataView(b.buffer).setBigUint64(0, BigInt(n), false)
+ return b
+}
+const os2ip = (b) => BigInt(`0x${hex(b) || '0'}`)
+const i2osp = (n, k) => {
+ const s = n.toString(16).padStart(k * 2, '0')
+ if (s.length > k * 2) throw new Error('int too large')
+ return unhex(s)
+}
+const assertEq = (label, got, want) => {
+ const g = typeof got === 'string' ? got : hex(got)
+ const w = typeof want === 'string' ? want.replaceAll(/\s/g, '') : hex(want)
+ if (g !== w) {
+ throw new Error(`MISMATCH ${label}\n got ${g}\n want ${w}`)
+ }
+ console.log(`ok ${label}`)
+}
+
+// ---------- generic SPAKE2 core (RFC 9382) ----------
+function spake2Run(cfg, { A, B, w, x, y, aad }) {
+ const { Point, order, cofactor, M, N } = cfg
+ const wr = w % order
+ const X = Point.BASE.multiply(x % order)
+ const pA = M.multiply(wr).add(X)
+ const Y = Point.BASE.multiply(y % order)
+ const pB = N.multiply(wr).add(Y)
+ // A side: K = h * x * (pB - w*N); B side: K = h * y * (pA - w*M)
+ const KA = pB
+ .subtract(N.multiply(wr))
+ .multiply(x % order)
+ .multiply(cofactor)
+ const KB = pA
+ .subtract(M.multiply(wr))
+ .multiply(y % order)
+ .multiply(cofactor)
+ if (hex(cfg.encode(KA)) !== hex(cfg.encode(KB))) throw new Error('K disagree')
+ const K = KA
+ const TT = concat(
+ enc(A),
+ enc(B),
+ enc(cfg.encode(pA)),
+ enc(cfg.encode(pB)),
+ enc(cfg.encode(K)),
+ enc(i2osp(wr, cfg.scalarLen))
+ )
+ const hash = sha256(TT)
+ const Ke = hash.slice(0, 16)
+ const Ka = hash.slice(16)
+ const conf = hkdf(
+ sha256,
+ Ka,
+ undefined,
+ concat(utf8('ConfirmationKeys'), aad ?? new Uint8Array(0)),
+ 32
+ )
+ const KcA = conf.slice(0, 16)
+ const KcB = conf.slice(16)
+ const cA = hmac(sha256, KcA, TT)
+ const cB = hmac(sha256, KcB, TT)
+ return {
+ pA: cfg.encode(pA),
+ pB: cfg.encode(pB),
+ K: cfg.encode(K),
+ TT,
+ Ke,
+ Ka,
+ KcA,
+ KcB,
+ cA,
+ cB,
+ }
+}
+
+// ---------- step 1: ALL FOUR RFC 9382 Appendix B (P-256) core vectors ----------
+const p256cfg = {
+ name: 'P-256',
+ Point: p256.Point,
+ order: p256.Point.Fn.ORDER,
+ cofactor: 1n,
+ M: p256.Point.fromHex(
+ '02886e2f97ace46e55ba9dd7242579f2993b64e16ef3dcab95afd497333d8fa12f'
+ ),
+ N: p256.Point.fromHex(
+ '03d8bbd6c639c62937b04d997f38c3770719c629d7014d49a24b4f98baa1292b49'
+ ),
+ encode: (p) => p.toBytes(false),
+ scalarLen: 32,
+}
+
+const rfcVectors = [
+ {
+ label: "RFC9382 B#1 A='server' B='client'",
+ A: utf8('server'),
+ B: utf8('client'),
+ w: '2ee57912099d31560b3a44b1184b9b4866e904c49d12ac5042c97dca461b1a5f',
+ x: '43dd0fd7215bdcb482879fca3220c6a968e66d70b1356cac18bb26c84a78d729',
+ y: 'dcb60106f276b02606d8ef0a328c02e4b629f84f89786af5befb0bc75b6e66be',
+ pA: '04a56fa807caaa53a4d28dbb9853b9815c61a411118a6fe516a8798434751470f9010153ac33d0d5f2047ffdb1a3e42c9b4e6be662766e1eeb4116988ede5f912c',
+ pB: '0406557e482bd03097ad0cbaa5df82115460d951e3451962f1eaf4367a420676d09857ccbc522686c83d1852abfa8ed6e4a1155cf8f1543ceca528afb591a1e0b7',
+ K: '0412af7e89717850671913e6b469ace67bd90a4df8ce45c2af19010175e37eed69f75897996d539356e2fa6a406d528501f907e04d97515fbe83db277b715d3325',
+ Ke: '0e0672dc86f8e45565d338b0540abe69',
+ Ka: '15bdf72e2b35b5c9e5663168e960a91b',
+ KcA: '00c12546835755c86d8c0db7851ae86f',
+ KcB: 'a9fa3406c3b781b93d804485430ca27a',
+ cA: '58ad4aa88e0b60d5061eb6b5dd93e80d9c4f00d127c65b3b35b1b5281fee38f0',
+ cB: 'd3e2e547f1ae04f2dbdbf0fc4b79f8ecff2dff314b5d32fe9fcef2fb26dc459b',
+ },
+ {
+ label: "RFC9382 B#2 A='' B='client'",
+ A: new Uint8Array(0),
+ B: utf8('client'),
+ w: '0548d8729f730589e579b0475a582c1608138ddf7054b73b5381c7e883e2efae',
+ x: '403abbe3b1b4b9ba17e3032849759d723939a27a27b9d921c500edde18ed654b',
+ y: '903023b6598908936ea7c929bd761af6039577a9c3f9581064187c3049d87065',
+ pA: '04a897b769e681c62ac1c2357319a3d363f610839c4477720d24cbe32f5fd85f44fb92ba966578c1b712be6962498834078262caa5b441ecfa9d4a9485720e918a',
+ pB: '04e0f816fd1c35e22065d5556215c097e799390d16661c386e0ecc84593974a61b881a8c82327687d0501862970c64565560cb5671f696048050ca66ca5f8cc7fc',
+ K: '048f83ec9f6e4f87cc6f9dc740bdc2769725f923364f01c84148c049a39a735ebda82eac03e00112fd6a5710682767cff5361f7e819e53d8d3c3a2922e0d837aa6',
+ Ke: '642f05c473c2cd79909f9a841e2f30a7',
+ Ka: '0bf89b18180af97353ba198789c2b963',
+ KcA: 'c6be376fc7cd1301fd0a13adf3e7bffd',
+ KcB: 'b7243f4ae60440a49b3f8cab3c1fba07',
+ cA: '47d29e6666af1b7dd450d571233085d7a9866e4d49d2645e2df975489521232b',
+ cB: '3313c5cefc361d27fb16847a91c2a73b766ffa90a4839122a9b70a2f6bd1d6df',
+ },
+ {
+ label: "RFC9382 B#3 A='server' B=''",
+ A: utf8('server'),
+ B: new Uint8Array(0),
+ w: '626e0cdc7b14c9db3e52a0b1b3a768c98e37852d5db30febe0497b14eae8c254',
+ x: '07adb3db6bc623d3399726bfdbfd3d15a58ea776ab8a308b00392621291f9633',
+ y: 'b6a4fc8dbb629d4ba51d6f91ed1532cf87adec98f25dd153a75accafafedec16',
+ pA: '04f88fb71c99bfffaea370966b7eb99cd4be0ff1a7d335caac4211c4afd855e2e15a873b298503ad8ba1d9cbb9a392d2ba309b48bfd7879aefd0f2cea6009763b0',
+ pB: '040c269d6be017dccb15182ac6bfcd9e2a14de019dd587eaf4bdfd353f031101e7cca177f8eb362a6e83e7d5e729c0732e1b528879c086f39ba0f31a9661bd34db',
+ K: '0445ee233b8ecb51ebd6e7da3f307e88a1616bae2166121221fdc0dadb986afaf3ec8a988dc9c626fa3b99f58a7ca7c9b844bb3e8dd9554aafc5b53813504c1cbe',
+ Ke: '005184ff460da2ce59062c87733c299c',
+ Ka: '3521297d736598fc0a1127600efa1afb',
+ KcA: 'f3da53604f0aeecea5a33be7bddf6edf',
+ KcB: '9e3f86848736f159bd92b6e107ec6799',
+ cA: 'bc9f9bbe99f26d0b2260e6456e05a86196a3307ec6663a18bf6ac825736533b2',
+ cB: 'c2370e1bf813b086dff0d834e74425a06e6390f48f5411900276dcccc5a297ec',
+ },
+ {
+ label: "RFC9382 B#4 A='' B=''",
+ A: new Uint8Array(0),
+ B: new Uint8Array(0),
+ w: '7bf46c454b4c1b25799527d896508afd5fc62ef4ec59db1efb49113063d70cca',
+ x: '8cef65df64bb2d0f83540c53632de911b5b24b3eab6cc74a97609fd659e95473',
+ y: 'd7a66f64074a84652d8d623a92e20c9675c61cb5b4f6a0063e4648a2fdc02d53',
+ pA: '04a65b367a3f613cf9f0654b1b28a1e3a8a40387956c8ba6063e8658563890f46ca1ef6a676598889fc28de2950ab8120b79a5ef1ea4c9f44bc98f585634b46d66',
+ pB: '04589f13218822710d98d8b2123a079041052d9941b9cf88c6617ddb2fcc0494662eea8ba6b64692dc318250030c6af045cb738bc81ba35b043c3dcb46adf6f58d',
+ K: '041a3c03d51b452537ca2a1fea6110353c6d5ed483c4f0f86f4492ca3f378d40a994b4477f93c64d928edbbcd3e85a7c709b7ea73ee97986ce3d1438e135543772',
+ Ke: 'fc6374762ba5cf11f4b2caa08b2cd1b9',
+ Ka: '907ae0e26e8d6234318d91583cd74c86',
+ KcA: '5dbd2f477166b7fb6d61febbd77a5563',
+ KcB: '7689b4654407a5faeffdc8f18359d8a3',
+ cA: 'dfb4db8d48ae5a675963ea5e6c19d98d4ea028d8e898dad96ea19a80ade95dca',
+ cB: 'd0f0609d1613138d354f7e95f19fb556bf52d751947241e8c7118df5ef0ae175',
+ },
+]
+
+for (const v of rfcVectors) {
+ const run = spake2Run(p256cfg, {
+ A: v.A,
+ B: v.B,
+ w: os2ip(unhex(v.w)),
+ x: os2ip(unhex(v.x)),
+ y: os2ip(unhex(v.y)),
+ aad: new Uint8Array(0),
+ })
+ assertEq(`${v.label} pA`, run.pA, v.pA)
+ assertEq(`${v.label} pB`, run.pB, v.pB)
+ assertEq(`${v.label} K`, run.K, v.K)
+ assertEq(`${v.label} Ke`, run.Ke, v.Ke)
+ assertEq(`${v.label} Ka`, run.Ka, v.Ka)
+ assertEq(`${v.label} KcA`, run.KcA, v.KcA)
+ assertEq(`${v.label} KcB`, run.KcB, v.KcB)
+ assertEq(`${v.label} cA`, run.cA, v.cA)
+ assertEq(`${v.label} cB`, run.cB, v.cB)
+}
+
+// ---------- step 2: MBP1 edwards25519 vectors ----------
+const ed25519cfg = {
+ name: 'edwards25519',
+ Point: ed25519.Point,
+ order: ed25519.Point.Fn.ORDER,
+ cofactor: 8n,
+ M: ed25519.Point.fromHex(
+ 'd048032c6ea0b6d697ddc2e86bda85a33adac920f1bf18e1b0c6d166a5cecdaf'
+ ),
+ N: ed25519.Point.fromHex(
+ 'd3bfb518f44f3430f29d0c92af503865a1ed3281dc69b35dd868ba85f886c4ab'
+ ),
+ encode: (p) => p.toBytes(),
+ scalarLen: 32,
+}
+const ell = ed25519cfg.order
+
+// --- fixed vector inputs (arbitrary but recorded; regeneration is deterministic).
+// The spec (§6.3) requires rejection-sampled uniform scalars at runtime; test
+// vectors supply the scalars directly, mirroring the RFC vectors.
+const codeDisplayed = 'MTX7-K2Q9'
+const codeNormalized = 'MTX7K2Q9'
+const pairNonce = 'vec-nonce-8f3a1c5e7b2d4a90'
+const browser = 'chromium'
+const verifiedOrigin = 'chrome-extension://ibpkjhgpbidfmbmomagmldcdlpbmchgi'
+const claimedExtensionId = 'ibpkjhgpbidfmbmomagmldcdlpbmchgi'
+const clientInstallationId = '5f0b6f9e-8a3d-4c5e-9b2a-7d1e4f6a8c0b'
+const instanceId = '0d9c2b7a-4e6f-4a1b-8c3d-2e5f7a9b1c4d'
+const xSeed = unhex(
+ '9c4c6f8a11d2b35e07a1c8d94e2f6b013a5d7e9f2c4b6a80d1e3f5a7b9c0d2e4' +
+ 'f6a8b0c2d4e6f8091b3d5f7a9c0e2f4b6d8a0c1e3f5b7d9a0c2e4f6b8d0a2c4e'
+)
+const ySeed = unhex(
+ '2b7d9f1a3c5e7b9d0f2a4c6e8b0d2f4a6c8e0b1d3f5a7c9e0b2d4f6a8c1e3f5b' +
+ '7d9a0c2e4f6b8d0a2c4e6f8b1d3a5c7e9f0b2d4a6c8e0f1b3d5a7c9e0f2b4d6a'
+)
+// scrypt(pw, "MBP1/w/v1" || nonce, N=2^14, r=8, p=1, dkLen=64); w = OS2IP mod ell
+const wBytes = scrypt(
+ utf8(codeNormalized),
+ concat(utf8('MBP1/w/v1'), utf8(pairNonce)),
+ { N: 2 ** 14, r: 8, p: 1, dkLen: 64 }
+)
+const w = os2ip(wBytes) % ell
+const x = os2ip(xSeed) % ell
+const y = os2ip(ySeed) % ell
+
+// ticket binding key (Ed25519), fixed seed
+const bindingSeed = unhex(
+ '7f1d3b5a7c9e0f2b4d6a8c0e1f3b5d7a9c0e2f4b6d8a0c2e4f6a8b0d1e3f5a7c'
+)
+const bindingPub = ed25519.getPublicKey(bindingSeed)
+
+// --- binding-key validation per §9.1 (canonical, on-curve, not identity,
+// not small-order, torsion-free) ---
+function isValidBindingPub(bytes) {
+ if (bytes.length !== 32) return false
+ let P
+ try {
+ P = ed25519.Point.fromHex(hex(bytes))
+ } catch {
+ return false
+ }
+ try {
+ if (P.isSmallOrder()) return false
+ if (!P.isTorsionFree()) return false
+ } catch {
+ return false
+ }
+ return true
+}
+if (!isValidBindingPub(bindingPub))
+ throw new Error('honest bindingPub rejected')
+console.log('ok bindingPub validation accepts the honest key')
+
+// --- nm ticket (§9.2) — minted before pairHello, so before the PAKE ---
+const ticketV = 1
+const localToken = 'vector-local-token-0123456789abcdef'
+const serverGeneration = '3c2b1a09-8f7e-4d6c-b5a4-93827160f0e1'
+const exp = 1755600000
+const ticketKey = hkdf(
+ sha256,
+ utf8(localToken),
+ utf8('MBP1/nm-ticket/v1'),
+ utf8('mac'),
+ 32
+)
+const ticketCanonical = concat(
+ encStr('mbp1-attestation'),
+ encU32BE(ticketV),
+ encU32BE(1),
+ encStr(serverGeneration),
+ encStr(browser),
+ encStr(claimedExtensionId),
+ encU64BE(exp),
+ enc(bindingPub)
+)
+const ticketMac = hmac(sha256, ticketKey, ticketCanonical)
+// AAD ticket digest (§6.4): over the CANONICAL ENCODINGS of the ticket's parsed
+// field values (U32BE v/protocolVersion, U64BE exp, UTF-8 strings, raw decoded
+// bytes for bindingPub/mac) — including the wire `purpose` string and `mac`, but
+// NOT the §9.2 MAC canonical (which fixes purpose to a domain tag) and NOT the
+// raw JSON serialization. This is what makes purpose/field tampering fail closed
+// rather than downgrade.
+const ticketWire = concat(
+ encU32BE(ticketV),
+ encStr('mbp1-attestation'), // wire purpose value
+ encU32BE(1), // ticket protocolVersion
+ encStr(serverGeneration),
+ encStr(browser),
+ encStr(claimedExtensionId),
+ encU64BE(exp),
+ enc(bindingPub),
+ enc(ticketMac)
+)
+const ticketDigest = sha256(ticketWire)
+
+// --- identities and AAD per §6.4 (ticketBindingKey + ticket digest in AAD) ---
+const A_id = concat(
+ encStr('MBP1/A/v1'),
+ encStr(browser),
+ encStr(verifiedOrigin),
+ encStr(claimedExtensionId),
+ encStr(clientInstallationId)
+)
+const B_id = concat(
+ encStr('MBP1/B/v1'),
+ encStr('motrix-bridge'),
+ encStr(instanceId)
+)
+const AAD = concat(
+ encU32BE(1),
+ encStr(pairNonce),
+ enc(bindingPub), // ticketBindingKey (== ticket.bindingPub here)
+ enc(ticketDigest)
+)
+const AADnoTicket = concat(
+ encU32BE(1),
+ encStr(pairNonce),
+ enc(new Uint8Array(0)),
+ enc(new Uint8Array(0))
+)
+
+const run = spake2Run(ed25519cfg, { A: A_id, B: B_id, w, x, y, aad: AAD })
+const runNoTicket = spake2Run(ed25519cfg, {
+ A: A_id,
+ B: B_id,
+ w,
+ x,
+ y,
+ aad: AADnoTicket,
+})
+assertEq('mbp1 TT stable across AAD variants', runNoTicket.TT, run.TT)
+// tampering ANY wire field (or the separate bindingKey) => different AAD =>
+// different confirmation keys => fail closed. Cover every field, not a subset.
+const confirmationOf = (aad) =>
+ hex(spake2Run(ed25519cfg, { A: A_id, B: B_id, w, x, y, aad }).cA)
+const wireDigest = (f) =>
+ sha256(
+ concat(
+ encU32BE(f.v ?? ticketV),
+ encStr(f.purpose ?? 'mbp1-attestation'),
+ encU32BE(f.pv ?? 1),
+ encStr(f.gen ?? serverGeneration),
+ encStr(f.browser ?? browser),
+ encStr(f.caller ?? claimedExtensionId),
+ encU64BE(f.exp ?? exp),
+ enc(f.bindingPub ?? bindingPub),
+ enc(f.mac ?? ticketMac)
+ )
+ )
+{
+ const tamperedMac = Uint8Array.from(ticketMac)
+ tamperedMac[0] ^= 0x01
+ const otherKey = ed25519.getPublicKey(unhex('11'.repeat(32)))
+ const fieldTampers = {
+ v: { v: 2 },
+ purpose: { purpose: 'mbp1-attestationX' },
+ ticketProtocolVersion: { pv: 2 },
+ serverGeneration: { gen: `${serverGeneration}X` },
+ browser: { browser: 'firefox' },
+ callerId: { caller: `${claimedExtensionId}X` },
+ exp: { exp: exp + 1 },
+ bindingPub: { bindingPub: otherKey },
+ mac: { mac: tamperedMac },
+ }
+ for (const [field, delta] of Object.entries(fieldTampers)) {
+ const aad = concat(
+ encU32BE(1),
+ encStr(pairNonce),
+ enc(bindingPub),
+ enc(wireDigest(delta))
+ )
+ if (confirmationOf(aad) === hex(run.cA)) {
+ throw new Error(`ticket field tamper not caught: ${field}`)
+ }
+ }
+ // separate pairHello.ticketBindingKey field (outside the digest)
+ const aadBindKey = concat(
+ encU32BE(1),
+ encStr(pairNonce),
+ enc(otherKey),
+ enc(ticketDigest)
+ )
+ if (confirmationOf(aadBindKey) === hex(run.cA))
+ throw new Error('bindingKey tamper not caught')
+ console.log(
+ `ok every ticket field (${Object.keys(fieldTampers).join(',')}) + bindingKey tamper desynchronizes confirmation`
+ )
+}
+
+// --- ticket proof: strict Ed25519 over "MBP1/ticket-proof/v1" || TT ---
+const ticketProofMsg = concat(utf8('MBP1/ticket-proof/v1'), run.TT)
+const ticketProof = ed25519.sign(ticketProofMsg, bindingSeed)
+if (
+ !ed25519.verify(ticketProof, ticketProofMsg, bindingPub, { zip215: false })
+) {
+ throw new Error('strict proof verify failed')
+}
+console.log('ok mbp1 ticketProof verifies (strict)')
+
+// --- weak binding-key rejection (§9.1 / review M3, L4) ---
+const IDENTITY_ENC =
+ '0100000000000000000000000000000000000000000000000000000000000000'
+const SMALL_ORDER_ENC =
+ 'c7176a703d4dd84fba3c0b760d10670f2a2053fa2c39ccc64ec7fd7792ac037a'
+// The full set of edwards25519 small-order point encodings (order dividing 8),
+// per RFC 8032 / the cofactor subgroup. §9.1 MUST reject every one of them.
+const SMALL_ORDER_ENCODINGS = [
+ '0100000000000000000000000000000000000000000000000000000000000000', // identity (order 1)
+ 'ecffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7f', // order 2
+ '0000000000000000000000000000000000000000000000000000000000000000', // order 4
+ '0000000000000000000000000000000000000000000000000000000000000080', // order 4 (x sign set)
+ 'c7176a703d4dd84fba3c0b760d10670f2a2053fa2c39ccc64ec7fd7792ac037a', // order 8
+ 'c7176a703d4dd84fba3c0b760d10670f2a2053fa2c39ccc64ec7fd7792ac03fa', // order 8
+ '26e8958fc2b227b045c3f489f2ef98f0d5dfac05d3c63339b13802886d53fc05', // order 8
+ '26e8958fc2b227b045c3f489f2ef98f0d5dfac05d3c63339b13802886d53fc85', // order 8
+]
+for (const encHex of SMALL_ORDER_ENCODINGS) {
+ if (isValidBindingPub(unhex(encHex))) {
+ throw new Error(`small-order bindingPub accepted: ${encHex}`)
+ }
+}
+// A "dirty" (non-torsion-free) key: a prime-order point plus a small-order
+// component. On the curve, not identity, not small-order, but NOT torsion-free.
+const dirtyPub = ed25519.Point.BASE.add(
+ ed25519.Point.fromHex(SMALL_ORDER_ENC)
+).toBytes()
+const DIRTY_ENC = hex(dirtyPub)
+if (isValidBindingPub(dirtyPub)) {
+ throw new Error('dirty (non-torsion-free) bindingPub accepted')
+}
+console.log('ok identity, small-order, and dirty-torsion bindingPub rejected')
+// The identity-key forgery (R = identity, S = 0) satisfies even the strict
+// cofactorless equation, which is exactly why §9.1 rejects the key itself.
+{
+ const weakPub = unhex(IDENTITY_ENC)
+ const weakSig = concat(weakPub, new Uint8Array(32))
+ let accepted = false
+ try {
+ accepted = ed25519.verify(weakSig, ticketProofMsg, weakPub, {
+ zip215: false,
+ })
+ } catch {
+ accepted = false
+ }
+ console.log(
+ `ok identity-key forgery ${accepted ? 'passes the bare equation (key-level rejection is load-bearing)' : 'is rejected by this library, but key-level rejection is still required'}`
+ )
+}
+// Malleated signature with S' = S + ℓ (S' ≥ ℓ): actual bytes, strict-rejected.
+const S_le = ticketProof.slice(32) // S is little-endian in the signature
+const S_val = os2ip(Uint8Array.from(S_le).reverse())
+const Sbig_le = Uint8Array.from(i2osp(S_val + ell, 32)).reverse()
+const sigSGeqEll = concat(ticketProof.slice(0, 32), Sbig_le)
+{
+ let accepted
+ try {
+ accepted = ed25519.verify(sigSGeqEll, ticketProofMsg, bindingPub, {
+ zip215: false,
+ })
+ } catch {
+ accepted = false
+ }
+ if (accepted) throw new Error('S >= ell signature accepted by strict verify')
+ console.log('ok S>=ell malleated signature rejected (strict)')
+}
+// Non-canonical R: replace R with the non-canonical encoding of the identity
+// (y = p, i.e. 0xED..7F), which strict mode MUST reject as a non-canonical
+// point encoding. Actual bytes emitted for cross-implementation testing.
+const NONCANONICAL_R =
+ 'edffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7f'
+const sigNonCanonicalR = concat(unhex(NONCANONICAL_R), new Uint8Array(32))
+{
+ let accepted
+ try {
+ accepted = ed25519.verify(sigNonCanonicalR, ticketProofMsg, bindingPub, {
+ zip215: false,
+ })
+ } catch {
+ accepted = false
+ }
+ if (accepted)
+ throw new Error('non-canonical R signature accepted by strict verify')
+ console.log('ok non-canonical R signature rejected (strict)')
+}
+
+// --- pair traffic keys per §6.6 (pair-specific labels) ---
+const kC2S = hkdf(
+ sha256,
+ run.Ke,
+ utf8('MBP1/pair/v1'),
+ utf8('MBP1-pair-traffic-c2s'),
+ 32
+)
+const kS2C = hkdf(
+ sha256,
+ run.Ke,
+ utf8('MBP1/pair/v1'),
+ utf8('MBP1-pair-traffic-s2c'),
+ 32
+)
+
+// --- reconnect vector (§8) ---
+const mutualKey = unhex(
+ 'a3b1c5d7e9f0a2b4c6d8e0f1a3b5c7d9e1f0a2c4b6d8e0f2a4b6c8d0e2f4a6b8'
+)
+const credentialId = '9e8d7c6b-5a49-4838-a2b1-c0d9e8f7a6b5'
+const S = unhex(
+ '5a1b2c3d4e5f60718293a4b5c6d7e8f90a1b2c3d4e5f60718293a4b5c6d7e8f9'
+)
+const C = unhex(
+ '0f1e2d3c4b5a69788796a5b4c3d2e1f00f1e2d3c4b5a69788796a5b4c3d2e1f0'
+)
+const RT = concat(
+ encStr('MBP1/reconnect/v1'),
+ encU32BE(1),
+ encStr(credentialId),
+ encStr(browser),
+ encStr(verifiedOrigin),
+ encStr(instanceId)
+)
+const macClient = hmac(sha256, mutualKey, concat(utf8('MBP1-R/c'), S, C, RT))
+const macServer = hmac(sha256, mutualKey, concat(utf8('MBP1-R/s'), S, C, RT))
+const rkC2S = hkdf(
+ sha256,
+ mutualKey,
+ concat(S, C),
+ utf8('MBP1-traffic-c2s'),
+ 32
+)
+const rkS2C = hkdf(
+ sha256,
+ mutualKey,
+ concat(S, C),
+ utf8('MBP1-traffic-s2c'),
+ 32
+)
+
+// --- envelope vectors (§10) ---
+const gcmSeal = (key, dirTag, seq, plaintext) => {
+ const nonce = concat(encU32BE(dirTag), encU64BE(seq))
+ const cipher = createCipheriv('aes-256-gcm', key, nonce)
+ cipher.setAAD(utf8('MBP1/env/v1'))
+ const ct = concat(
+ cipher.update(plaintext),
+ cipher.final(),
+ cipher.getAuthTag()
+ )
+ return concat(encU64BE(seq), ct)
+}
+const gcmOpen = (key, dirTag, expectedSeq, frame) => {
+ const seq = new DataView(frame.buffer, frame.byteOffset).getBigUint64(
+ 0,
+ false
+ )
+ if (seq !== BigInt(expectedSeq)) throw new Error('seq mismatch')
+ const body = frame.slice(8)
+ const ct = body.slice(0, -16)
+ const tag = body.slice(-16)
+ const nonce = concat(encU32BE(dirTag), encU64BE(expectedSeq))
+ const d = createDecipheriv('aes-256-gcm', key, nonce)
+ d.setAAD(utf8('MBP1/env/v1'))
+ d.setAuthTag(tag)
+ return concat(d.update(ct), d.final())
+}
+const pt0 = utf8(
+ '{"jsonrpc":"2.0","id":1,"method":"motrix/initialize","params":{}}'
+)
+const pt1 = utf8('{"jsonrpc":"2.0","id":1,"result":{"ok":true}}')
+const frameC0 = gcmSeal(kC2S, 1, 0, pt0)
+const frameS0 = gcmSeal(kS2C, 2, 0, pt1)
+const frameC1 = gcmSeal(kC2S, 1, 1, pt1)
+assertEq('envelope c2s#0 roundtrip', gcmOpen(kC2S, 1, 0, frameC0), pt0)
+assertEq('envelope s2c#0 roundtrip', gcmOpen(kS2C, 2, 0, frameS0), pt1)
+// rejection self-checks: tamper, dirTag-only mismatch (same key), wrong key
+let rejected = 0
+try {
+ const t = Uint8Array.from(frameC0)
+ t[t.length - 1] ^= 0x01
+ gcmOpen(kC2S, 1, 0, t)
+} catch {
+ rejected++
+}
+try {
+ gcmOpen(kC2S, 2, 0, frameC0) // same key, flipped dirTag only
+} catch {
+ rejected++
+}
+try {
+ gcmOpen(kS2C, 2, 0, frameC0) // wrong key and dirTag
+} catch {
+ rejected++
+}
+if (rejected !== 3) throw new Error('rejection self-check failed')
+console.log('ok envelope tamper/dirTag/key rejection')
+
+// ---------- emit ----------
+const out = {
+ description:
+ 'Normative MBP1 cross-implementation test vectors (rev 2, post crypto-review round 1). ' +
+ 'Generated per docs/bridge-pairing-protocol.md. The generic SPAKE2 core was validated ' +
+ 'against all four RFC 9382 Appendix B P-256 vectors before generation. All byte strings ' +
+ 'are lowercase hex.',
+ generator: {
+ library:
+ '@noble/curves 2.0.1, @noble/hashes 2.0.1, node:crypto AES-256-GCM',
+ coreValidation:
+ 'RFC 9382 Appendix B vectors #1-#4 (P-256) reproduced exactly',
+ },
+ spake2: [
+ {
+ name: 'first-pair, chromium, nm ticket present',
+ inputs: {
+ codeDisplayed,
+ codeNormalized,
+ pairNonce,
+ browser,
+ verifiedOrigin,
+ claimedExtensionId,
+ clientInstallationId,
+ instanceId,
+ x: hex(i2osp(x, 32)),
+ y: hex(i2osp(y, 32)),
+ bindingSeed: hex(bindingSeed),
+ },
+ intermediate: {
+ scryptOutput: hex(wBytes),
+ w: hex(i2osp(w, 32)),
+ aId: hex(A_id),
+ bId: hex(B_id),
+ bindingPub: hex(bindingPub),
+ ticketDigest: hex(ticketDigest),
+ aad: hex(AAD),
+ },
+ expected: {
+ pA: hex(run.pA),
+ pB: hex(run.pB),
+ K: hex(run.K),
+ TT: hex(run.TT),
+ Ke: hex(run.Ke),
+ Ka: hex(run.Ka),
+ KcA: hex(run.KcA),
+ KcB: hex(run.KcB),
+ cA: hex(run.cA),
+ cB: hex(run.cB),
+ ticketProof: hex(ticketProof),
+ trafficC2S: hex(kC2S),
+ trafficS2C: hex(kS2C),
+ },
+ },
+ {
+ name: 'first-pair, same inputs, no nm ticket (AAD variant)',
+ inputs: { note: 'identical to vector 0 except nmTicket absent' },
+ intermediate: { aad: hex(AADnoTicket) },
+ expected: {
+ TT: hex(runNoTicket.TT),
+ KcA: hex(runNoTicket.KcA),
+ KcB: hex(runNoTicket.KcB),
+ cA: hex(runNoTicket.cA),
+ cB: hex(runNoTicket.cB),
+ },
+ },
+ ],
+ scryptW: {
+ inputs: {
+ codeNormalized,
+ pairNonce,
+ params: { N: 16384, r: 8, p: 1, dkLen: 64 },
+ },
+ expected: { scryptOutput: hex(wBytes), w: hex(i2osp(w, 32)) },
+ },
+ reconnect: {
+ inputs: {
+ mutualKey: hex(mutualKey),
+ credentialId,
+ browser,
+ verifiedOrigin,
+ instanceId,
+ S: hex(S),
+ C: hex(C),
+ },
+ expected: {
+ RT: hex(RT),
+ macClient: hex(macClient),
+ macServer: hex(macServer),
+ trafficC2S: hex(rkC2S),
+ trafficS2C: hex(rkS2C),
+ },
+ },
+ nmTicket: {
+ inputs: {
+ v: ticketV,
+ localToken,
+ serverGeneration,
+ browser,
+ callerId: claimedExtensionId,
+ exp,
+ bindingPub: hex(bindingPub),
+ },
+ expected: {
+ ticketKey: hex(ticketKey),
+ canonical: hex(ticketCanonical),
+ mac: hex(ticketMac),
+ ticketDigest: hex(ticketDigest),
+ },
+ mustReject: [
+ {
+ case: 'bindingPub = any small-order / torsion point encoding (full set)',
+ bindingPub: SMALL_ORDER_ENCODINGS,
+ reason:
+ 'every order-dividing-8 encoding rejected by §9.1 validation (identity, order-2, order-4, order-8)',
+ },
+ {
+ case: 'bindingPub = dirty (non-torsion-free) point',
+ bindingPub: DIRTY_ENC,
+ reason:
+ 'has a torsion component; rejected by the §9.1 torsion-free check',
+ },
+ {
+ case: 'ticketProof = (identity || 0) under bindingPub = identity',
+ bindingPub: IDENTITY_ENC,
+ signature: `${IDENTITY_ENC}${'00'.repeat(32)}`,
+ reason:
+ 'passes the bare verification equation for any message; stopped by key-level rejection of identity bindingPub',
+ },
+ {
+ case: 'ticketProof with S >= ell (S malleated by + ell)',
+ signature: hex(sigSGeqEll),
+ reason: 'RFC 8032 strict (zip215:false) rejects S >= ell',
+ },
+ {
+ case: 'ticketProof with a non-canonical R encoding (y = p)',
+ signature: hex(sigNonCanonicalR),
+ reason: 'RFC 8032 strict rejects non-canonical point encodings',
+ },
+ {
+ case: 'any single wire field of the ticket (v, purpose, ticketProtocolVersion, serverGeneration, browser, callerId, exp, bindingPub, mac) modified in transit',
+ reason:
+ 'ticketDigest over the parsed wire fields bound into the PAKE AAD (§6.4) desynchronizes key confirmation → fail closed',
+ },
+ ],
+ note: "A torsion-tweaked proof (R=rB+T, S=r+k·a) by a signer who KNOWS bindingPriv is a conformance caveat of noble's cofactored equation, NOT a forgery, and is intentionally not asserted as rejected (spec §9.1).",
+ },
+ envelope: {
+ inputs: {
+ keyC2S: hex(kC2S),
+ keyS2C: hex(kS2C),
+ aad: 'MBP1/env/v1',
+ plaintext0: hex(pt0),
+ plaintext1: hex(pt1),
+ },
+ expected: {
+ frameC2S_seq0: hex(frameC0),
+ frameS2C_seq0: hex(frameS0),
+ frameC2S_seq1: hex(frameC1),
+ },
+ mustReject: [
+ {
+ case: 'last ciphertext byte of frameC2S_seq0 XOR 0x01',
+ reason: 'gcm auth failure',
+ },
+ {
+ case: 'frameC2S_seq0 decrypted with the SAME key but dirTag 2',
+ reason:
+ 'gcm auth failure (nonce direction tag); catches dirTag-ignoring implementations',
+ },
+ {
+ case: 'frameC2S_seq0 decrypted with the s2c key',
+ reason: 'gcm auth failure',
+ },
+ {
+ case: 'frameC2S_seq1 presented when expected seq is 0',
+ reason: 'strict sequence check',
+ },
+ ],
+ },
+}
+const target = process.argv[2]
+if (!target) throw new Error('usage: node generate.mjs <output.json>')
+writeFileSync(target, `${JSON.stringify(out, null, 2)}\n`)
+console.log('\nwrote', target)
diff --git a/scripts/server-package-size-budgets.json b/scripts/server-package-size-budgets.json
index 74e97f38..a458e931 100644
--- a/scripts/server-package-size-budgets.json
+++ b/scripts/server-package-size-budgets.json
@@ -2,7 +2,7 @@
"schemaVersion": 1,
"artifactBytes": 89128960,
"dependencyBytes": 54525952,
- "packageInstances": 133,
+ "packageInstances": 135,
"unexpectedRuntimeRoots": 0,
"unresolvedExternals": 0,
"foreignNativeBinaries": 0,
diff --git a/scripts/server-runtime-dependencies.json b/scripts/server-runtime-dependencies.json
index 68600219..0458cff5 100644
--- a/scripts/server-runtime-dependencies.json
+++ b/scripts/server-runtime-dependencies.json
@@ -14,6 +14,8 @@
"@fastify/websocket",
"@motrix/mdxp",
"@motrix/plugin-manifest-schema",
+ "@noble/curves",
+ "@noble/hashes",
"ajv",
"better-sqlite3",
"bittorrent-peerid",
diff --git a/scripts/verify-flatpak-packaging.mjs b/scripts/verify-flatpak-packaging.mjs
index 4bf2a433..169517a7 100644
--- a/scripts/verify-flatpak-packaging.mjs
+++ b/scripts/verify-flatpak-packaging.mjs
@@ -48,7 +48,7 @@ const FLATPAK_COMPANION_SMOKE_ARCHIVE =
const BROKER_NOT_RUNNING_FRAME_HEX =
'4d584252010000001e0000007b226572726f72223a226d6f747269782d6e6f742d72756e6e696e67227d'
const COMPANION_PAIR_FRAME_HEX =
- '460000007b22616374696f6e223a227265717565737450616972222c22706f7274223a35353830392c226e6f6e6365223a224162436445664768496a4b6c4d6e4f70517253745576227d'
+ '5a0000007b22616374696f6e223a227265717565737450616972222c2270726f746f636f6c56657273696f6e223a312c22706f7274223a35353830392c226e6f6e6365223a224162436445664768496a4b6c4d6e4f70517253745576227d'
const BUILTIN_SIGNATURE_DIGESTS = Object.freeze({
'motrix.filename-template-1.1.1.moext.sig':
@@ -583,6 +583,9 @@ export async function verifyFlatpakPackaging(root = REPO_ROOT) {
workflow.includes('"$installed_companion" status') &&
workflow.includes('"$installed_companion" uninstall') &&
workflow.includes(`bridge_dir="\${XDG_CONFIG_HOME:?}/motrix/bridge"`) &&
+ workflow.includes("self.path != '/discovery'") &&
+ workflow.includes("self.path != '/nonce'") &&
+ workflow.includes("self.headers.get('X-Motrix-Bridge') != '1'") &&
workflow.includes(
'chrome-extension://ibpkjhgpbidfmbmomagmldcdlpbmchgi/'
) &&
diff --git a/src/core/bridge/__tests__/bridge-connection.test.ts b/src/core/bridge/__tests__/bridge-connection.test.ts
index 59a7d62e..83963328 100644
--- a/src/core/bridge/__tests__/bridge-connection.test.ts
+++ b/src/core/bridge/__tests__/bridge-connection.test.ts
@@ -103,6 +103,23 @@ describe('BridgeConnection', () => {
expect(conn.isReady()).toBe(true)
})
+ it('cuts authorization and readiness immediately when access is revoked', () => {
+ const ws = new FakeWebSocket()
+ const conn = new BridgeConnection(ws as never, {
+ sessionKey: 'chromium:abc',
+ extensionId: 'abc',
+ browser: 'chromium',
+ startedAt: 0,
+ })
+ conn.markAuthorized()
+ conn.markReady()
+
+ conn.revokeAuthorization()
+
+ expect(conn.isAuthorized()).toBe(false)
+ expect(conn.isReady()).toBe(false)
+ })
+
it('dispose tears down the underlying mdxp connection', () => {
const ws = new FakeWebSocket()
const conn = new BridgeConnection(ws as never, {
diff --git a/src/core/bridge/__tests__/device-code-mdxp.test.ts b/src/core/bridge/__tests__/device-code-mdxp.test.ts
index f907d513..550d3461 100644
--- a/src/core/bridge/__tests__/device-code-mdxp.test.ts
+++ b/src/core/bridge/__tests__/device-code-mdxp.test.ts
@@ -65,7 +65,6 @@ describe('device-code HTTP endpoints', () => {
server = new WebSocketBridgeServer({
pairing: makeStatefulFakePairing(),
registry: makeFakeRegistry(),
- onPairRequest: async () => ({ decision: 'deny', addToRegistry: false }),
motrixVersion: '2.0',
runtime: 'electron',
ffmpegAvailable: true,
@@ -164,7 +163,6 @@ describe('device-code verificationUri', () => {
server = new WebSocketBridgeServer({
pairing: makeStatefulFakePairing(),
registry: makeFakeRegistry(),
- onPairRequest: async () => ({ decision: 'deny', addToRegistry: false }),
motrixVersion: '2.0',
runtime: 'electron',
ffmpegAvailable: true,
@@ -190,7 +188,6 @@ describe('device-code endpoints disabled when no DeviceCodeService', () => {
server = new WebSocketBridgeServer({
pairing: makeStatefulFakePairing(),
registry: makeFakeRegistry(),
- onPairRequest: async () => ({ decision: 'deny', addToRegistry: false }),
motrixVersion: '2.0',
runtime: 'electron',
ffmpegAvailable: true,
diff --git a/src/core/bridge/__tests__/fakes.ts b/src/core/bridge/__tests__/fakes.ts
index 6c34b693..26d9c421 100644
--- a/src/core/bridge/__tests__/fakes.ts
+++ b/src/core/bridge/__tests__/fakes.ts
@@ -1,4 +1,13 @@
import { EventEmitter } from 'node:events'
+import { mkdtemp } from 'node:fs/promises'
+import { tmpdir } from 'node:os'
+import { join } from 'node:path'
+import type { Browser } from '@shared/protocol/bridge'
+import {
+ MBP1_CREDENTIALS_FILENAME,
+ Mbp1CredentialStore,
+} from '../credential-store'
+import type { PairDialogHandle, PairDialogRequest } from '../mbp1/pair-session'
import { type PairedClient, PairingService } from '../pairing-service'
import type { TrustedExtensionRegistry } from '../trusted-extension-registry'
@@ -88,3 +97,128 @@ export function makeFakeRegistry(): TrustedExtensionRegistry {
listManifestIds: () => [],
} as unknown as TrustedExtensionRegistry
}
+
+/**
+ * A REAL {@link Mbp1CredentialStore} on a throwaway directory. Not a double:
+ * §6.7's ordering guarantees are the store's, the sessions await them, and a
+ * fake would let a broken ordering pass. The caller owns the temp directory
+ * only for the life of the test.
+ */
+export async function makeTempCredentialStore(): Promise<Mbp1CredentialStore> {
+ const dir = await mkdtemp(join(tmpdir(), 'motrix-mbp1-'))
+ return Mbp1CredentialStore.load(join(dir, MBP1_CREDENTIALS_FILENAME))
+}
+
+/**
+ * The §7.1 approval dialog, recorded rather than rendered. A test reads
+ * `requests` for the identity tri-state the server resolved and for the pairing
+ * code — the same two things the real dialog shows the user.
+ */
+export interface FakeDialogs {
+ requests: PairDialogRequest[]
+ /** The most recent request, or a loud failure if none was queued. */
+ latest(): PairDialogRequest
+ /** The display code of the most recent request. */
+ latestCode(): string
+ /** How many dialogs were closed by the server. */
+ closed: number
+ /** Resolve the newest dialog's `dismissed`, as the user dismissing it. */
+ dismissLatest(): void
+ queue(args: PairDialogRequest): PairDialogHandle
+}
+
+export function makeFakeDialogs(): FakeDialogs {
+ const requests: PairDialogRequest[] = []
+ const dismissals: Array<() => void> = []
+ const state = { closed: 0 }
+ return {
+ requests,
+ get closed() {
+ return state.closed
+ },
+ latest() {
+ const last = requests.at(-1)
+ if (!last) {
+ throw new Error('no pairing dialog was queued')
+ }
+ return last
+ },
+ latestCode() {
+ return this.latest().code
+ },
+ dismissLatest() {
+ const dismiss = dismissals.at(-1)
+ if (!dismiss) {
+ throw new Error('no pairing dialog was queued')
+ }
+ dismiss()
+ },
+ queue(args) {
+ requests.push(args)
+ let resolve!: () => void
+ const dismissed = new Promise<void>((done) => {
+ resolve = done
+ })
+ dismissals.push(resolve)
+ return {
+ dismissed,
+ close: () => {
+ state.closed += 1
+ },
+ }
+ },
+ }
+}
+
+/**
+ * §5's `isOfficialId`, backed by an explicit allowlist. It stands in for the
+ * immutable `native-messaging-extensions.json` set — never the NM manifest set
+ * and never the user registry, both of which admit user-added ids.
+ */
+export function makeAllowlist(
+ entries: ReadonlyArray<[Browser, string]>
+): (browser: Browser, id: string) => boolean {
+ const allowed = new Set(entries.map(([browser, id]) => `${browser}:${id}`))
+ return (browser, id) => allowed.has(`${browser}:${id}`)
+}
+
+/** The six MBP1 `BridgeServerOptions` a test server needs, plus the dialog
+ * fake the pairing code has to be read from. */
+export interface Mbp1TestWiring {
+ dialogs: FakeDialogs
+ options: {
+ instanceId: string
+ serverGeneration: string
+ appVersion: string
+ credentials: Mbp1CredentialStore
+ isOfficialId: (browser: Browser, id: string) => boolean
+ queueMbp1Dialog: (args: PairDialogRequest) => PairDialogHandle
+ }
+}
+
+export const MBP1_TEST_INSTANCE_ID = 'instance-for-tests'
+export const MBP1_TEST_SERVER_GENERATION = 'gen-for-tests'
+export const MBP1_TEST_APP_VERSION = '2.0.0-test'
+
+/**
+ * Wire MBP1 the way a shell will. The six options resolve as a unit — a server
+ * missing any one of them refuses both `/pair` and `/v1` — so a suite that
+ * wants a working extension WebSocket needs all of them, and spreading this
+ * `options` object is the whole of it.
+ */
+export async function makeMbp1TestWiring(
+ allowlist: ReadonlyArray<[Browser, string]> = []
+): Promise<Mbp1TestWiring> {
+ const dialogs = makeFakeDialogs()
+ return {
+ dialogs,
+ options: {
+ instanceId: MBP1_TEST_INSTANCE_ID,
+ serverGeneration: MBP1_TEST_SERVER_GENERATION,
+ appVersion: MBP1_TEST_APP_VERSION,
+ credentials: await makeTempCredentialStore(),
+ isOfficialId: makeAllowlist(allowlist),
+ queueMbp1Dialog: (args) => dialogs.queue(args),
+ },
+ }
+}
diff --git a/src/core/bridge/__tests__/initialize-handler.test.ts b/src/core/bridge/__tests__/initialize-handler.test.ts
index c3bd98f1..b926899a 100644
--- a/src/core/bridge/__tests__/initialize-handler.test.ts
+++ b/src/core/bridge/__tests__/initialize-handler.test.ts
@@ -1,13 +1,14 @@
import { createInitializeHandler } from '@core/bridge/handlers/initialize-handler'
import type { MdxpSessionContext } from '@core/bridge/mdxp-session-context'
-import type { PairRequestArgs } from '@core/bridge/web-socket-bridge-server'
import { ErrorCodes } from '@motrix/mdxp'
+import type { Browser } from '@shared/protocol/bridge'
import { describe, expect, it, vi } from 'vitest'
const baseCapabilities = {
motrixVersion: '2.0',
runtime: 'electron' as const,
ffmpegAvailable: true,
+ supportsTaskReveal: () => false,
}
const validClientInfo = {
@@ -28,140 +29,88 @@ const validClientInfo = {
adapters: [],
}
-const fakePairArgs: PairRequestArgs = {
- extensionId: 'abc',
- browser: 'chromium',
- extensionName: 'Test Ext',
- extensionVersion: '0.1',
-}
-
function makeCtx(opts: {
extensionId?: string
- pendingPair?: PairRequestArgs | null
+ browser?: Browser
markAuthorized?: () => void
}): MdxpSessionContext {
return {
identity: {
kind: 'extension',
- browser: 'chromium',
+ browser: opts.browser ?? 'chromium',
extensionId: opts.extensionId ?? 'abc',
},
startedAt: 0,
isReady: () => false,
markReady: () => {},
- isAuthorized: () => false,
+ // Under MBP1 an extension session is authenticated at the transport, so it
+ // arrives authorized; the handler must not be the gate that grants it.
+ isAuthorized: () => true,
markAuthorized: opts.markAuthorized ?? (() => {}),
- pendingPair: opts.pendingPair ?? null,
+ pendingPair: null,
}
}
describe('initialize handler', () => {
- it('first-pair success: returns pairToken + capabilities', async () => {
- const issueToken = vi.fn().mockResolvedValue({ token: 'tok-1' })
- const onPairRequest = vi
- .fn()
- .mockResolvedValue({ decision: 'allow', addToRegistry: false })
- const handler = createInitializeHandler({
- ...baseCapabilities,
- pairing: { issueToken } as never,
- registry: { has: () => false, add: vi.fn() } as never,
- onPairRequest,
- })
+ it('returns capabilities and never a pairToken', async () => {
+ const handler = createInitializeHandler(baseCapabilities)
- const markAuthorized = vi.fn()
- const result = await handler(
- validClientInfo as never,
- makeCtx({ pendingPair: fakePairArgs, markAuthorized })
- )
+ const result = await handler(validClientInfo as never, makeCtx({}))
expect(result.protocolVersion).toBe('1.0')
expect(result.server.name).toBe('motrix')
- expect(result.pairToken).toBe('tok-1')
- expect(onPairRequest).toHaveBeenCalledWith(fakePairArgs)
- // Approval authorizes the session for control-plane / download methods.
- expect(markAuthorized).toHaveBeenCalledOnce()
- })
-
- it('reports the runtime injected by the Server composition root', async () => {
- const handler = createInitializeHandler({
- ...baseCapabilities,
- runtime: 'server',
- pairing: { issueToken: vi.fn() } as never,
- registry: { has: () => true } as never,
- onPairRequest: vi.fn(),
- })
-
- const result = await handler(
- validClientInfo as never,
- makeCtx({ pendingPair: null })
- )
-
- expect(result.server.runtime).toBe('server')
+ expect(result.pairToken).toBeUndefined()
})
- it('first-pair deny: does NOT authorize the session', async () => {
+ it('does not authorize the session — the transport already did', async () => {
+ // MBP1 authenticates below MDXP: `adoptAuthenticatedSession` marks the
+ // connection authorized before any handler runs. A handler that also
+ // granted authorization would be a second, weaker gate.
const markAuthorized = vi.fn()
- const onPairRequest = vi
- .fn()
- .mockResolvedValue({ decision: 'deny', addToRegistry: false })
- const handler = createInitializeHandler({
- ...baseCapabilities,
- pairing: { issueToken: vi.fn() } as never,
- registry: { has: () => false } as never,
- onPairRequest,
- })
+ const handler = createInitializeHandler(baseCapabilities)
+
+ await handler(validClientInfo as never, makeCtx({ markAuthorized }))
- await expect(
- handler(
- validClientInfo as never,
- makeCtx({ pendingPair: fakePairArgs, markAuthorized })
- )
- ).rejects.toMatchObject({ code: ErrorCodes.PermissionDenied })
expect(markAuthorized).not.toHaveBeenCalled()
})
- it('first-pair deny: throws -32003 Permission denied', async () => {
- const onPairRequest = vi
- .fn()
- .mockResolvedValue({ decision: 'deny', addToRegistry: false })
+ it('reports the runtime injected by the Server composition root', async () => {
const handler = createInitializeHandler({
...baseCapabilities,
- pairing: { issueToken: vi.fn() } as never,
- registry: { has: () => false } as never,
- onPairRequest,
+ runtime: 'server',
})
- await expect(
- handler(validClientInfo as never, makeCtx({ pendingPair: fakePairArgs }))
- ).rejects.toMatchObject({ code: ErrorCodes.PermissionDenied })
+ const result = await handler(validClientInfo as never, makeCtx({}))
+
+ expect(result.server.runtime).toBe('server')
+ expect(result.capabilities.taskReveal).toBe(false)
})
- it('reconnect (pendingPair=null): returns capabilities without minting a token', async () => {
- const issueToken = vi.fn()
+ it('derives taskReveal from the currently registered shell capability', async () => {
+ let registered = false
const handler = createInitializeHandler({
...baseCapabilities,
- pairing: { issueToken } as never,
- registry: { has: () => true } as never,
- onPairRequest: vi.fn(),
+ supportsTaskReveal: () => registered,
})
- const result = await handler(
+ const beforeRegistration = await handler(
validClientInfo as never,
- makeCtx({ pendingPair: null })
+ makeCtx({})
+ )
+ registered = true
+ const afterRegistration = await handler(
+ validClientInfo as never,
+ makeCtx({})
)
- expect(result.protocolVersion).toBe('1.0')
- expect(issueToken).not.toHaveBeenCalled()
- expect(result.pairToken).toBeUndefined()
+ expect(beforeRegistration.capabilities.taskReveal).toBe(false)
+ expect(afterRegistration.capabilities.taskReveal).toBe(true)
})
- it('reconnect rejects mismatched extensionId in params vs session', async () => {
- const handler = createInitializeHandler({
- ...baseCapabilities,
- pairing: { issueToken: vi.fn() } as never,
- registry: { has: () => true } as never,
- onPairRequest: vi.fn(),
- })
+ it('rejects a mismatched extensionId on Chromium', async () => {
+ // On Chromium the verified `Origin` host IS the extension id, so a client
+ // that re-asserts a different one is inconsistent with its own transport.
+ const handler = createInitializeHandler(baseCapabilities)
await expect(
handler(
@@ -169,20 +118,36 @@ describe('initialize handler', () => {
...validClientInfo,
client: { ...validClientInfo.client, extensionId: 'xyz' },
} as never,
- makeCtx({ extensionId: 'abc', pendingPair: null })
+ makeCtx({ extensionId: 'abc' })
)
).rejects.toMatchObject({ code: ErrorCodes.InvalidParams })
})
- it('reconnect fails closed for a non-extension client kind', async () => {
- // v1 only admits extension reconnect; a non-extension kind must be rejected
- // outright, not skip the identity check (no fail-open auth gate).
- const handler = createInitializeHandler({
- ...baseCapabilities,
- pairing: { issueToken: vi.fn() } as never,
- registry: { has: () => true } as never,
- onPairRequest: vi.fn(),
- })
+ it('does not compare extensionId on Firefox, where the origin proves no Gecko id', async () => {
+ // The session id is the `moz-extension://<UUID>` host; the client reports
+ // its Gecko id. §5 says the two cannot be mapped to each other, so
+ // comparing them would reject every legitimate Firefox session.
+ const handler = createInitializeHandler(baseCapabilities)
+
+ const result = await handler(
+ {
+ ...validClientInfo,
+ client: {
+ ...validClientInfo.client,
+ browser: 'firefox',
+ extensionId: '[email protected]',
+ },
+ } as never,
+ makeCtx({ browser: 'firefox', extensionId: 'a1b2c3d4-uuid' })
+ )
+
+ expect(result.protocolVersion).toBe('1.0')
+ })
+
+ it('fails closed for a non-extension client kind', async () => {
+ // The MBP1 routes only admit extensions; a non-extension kind must be
+ // rejected outright rather than skip the identity check.
+ const handler = createInitializeHandler(baseCapabilities)
await expect(
handler(
@@ -190,29 +155,23 @@ describe('initialize handler', () => {
...validClientInfo,
client: { kind: 'cli', name: 'motrix-cli', version: '2.0' },
} as never,
- makeCtx({ extensionId: 'abc', pendingPair: null })
+ makeCtx({ extensionId: 'abc' })
)
).rejects.toMatchObject({ code: ErrorCodes.InvalidParams })
})
- it('reconnect fails closed for a non-extension session identity', async () => {
- // The /v1 route only ever creates extension sessions, but the handler must
- // not assume it: a cli-kind session identity reconnecting (a future
- // device-code session) must be rejected, not silently bypass the
- // extensionId match against an absent field.
- const handler = createInitializeHandler({
- ...baseCapabilities,
- pairing: { issueToken: vi.fn() } as never,
- registry: { has: () => true } as never,
- onPairRequest: vi.fn(),
- })
+ it('fails closed for a non-extension session identity', async () => {
+ // `/pair` and `/v1` only ever create extension sessions, but the handler
+ // must not assume it: a cli-kind session identity must be rejected, not
+ // silently bypass the extensionId match against an absent field.
+ const handler = createInitializeHandler(baseCapabilities)
const cliCtx: MdxpSessionContext = {
identity: { kind: 'cli', id: 'local' },
startedAt: 0,
isReady: () => false,
markReady: () => {},
- isAuthorized: () => false,
+ isAuthorized: () => true,
markAuthorized: () => {},
pendingPair: null,
}
@@ -223,44 +182,21 @@ describe('initialize handler', () => {
})
it('ffmpegAvailable:false → selectionKinds is only ["direct"]', async () => {
- const onPairRequest = vi
- .fn()
- .mockResolvedValue({ decision: 'allow', addToRegistry: false })
const handler = createInitializeHandler({
- motrixVersion: '2.0',
- runtime: 'electron',
+ ...baseCapabilities,
ffmpegAvailable: false,
- pairing: {
- issueToken: vi.fn().mockResolvedValue({ token: 'tok' }),
- } as never,
- registry: { has: () => false, add: vi.fn() } as never,
- onPairRequest,
})
- const result = await handler(
- validClientInfo as never,
- makeCtx({ pendingPair: fakePairArgs })
- )
+
+ const result = await handler(validClientInfo as never, makeCtx({}))
+
expect(result.capabilities.selectionKinds).toEqual(['direct'])
})
it('ffmpegAvailable:true → selectionKinds is ["direct","hls","dash","mux"]', async () => {
- const onPairRequest = vi
- .fn()
- .mockResolvedValue({ decision: 'allow', addToRegistry: false })
- const handler = createInitializeHandler({
- motrixVersion: '2.0',
- runtime: 'electron',
- ffmpegAvailable: true,
- pairing: {
- issueToken: vi.fn().mockResolvedValue({ token: 'tok' }),
- } as never,
- registry: { has: () => false, add: vi.fn() } as never,
- onPairRequest,
- })
- const result = await handler(
- validClientInfo as never,
- makeCtx({ pendingPair: fakePairArgs })
- )
+ const handler = createInitializeHandler(baseCapabilities)
+
+ const result = await handler(validClientInfo as never, makeCtx({}))
+
expect(result.capabilities.selectionKinds).toEqual([
'direct',
'hls',
diff --git a/src/core/bridge/__tests__/integration.e2e.test.ts b/src/core/bridge/__tests__/integration.e2e.test.ts
index 837bc1d9..7b08741d 100644
--- a/src/core/bridge/__tests__/integration.e2e.test.ts
+++ b/src/core/bridge/__tests__/integration.e2e.test.ts
@@ -1,26 +1,37 @@
import { WebSocketBridgeServer } from '@core/bridge/web-socket-bridge-server'
-import {
- WebSocketMessageReader,
- WebSocketMessageWriter,
-} from '@core/bridge/web-socket-message-stream'
-import { createMdxpConnection } from '@motrix/mdxp'
import { afterEach, beforeEach, describe, expect, it } from 'vitest'
-import WebSocket from 'ws'
-import { makeFakeRegistry, makeStatefulFakePairing } from './fakes'
+import {
+ type Mbp1TestWiring,
+ makeFakeRegistry,
+ makeMbp1TestWiring,
+ makeStatefulFakePairing,
+} from './fakes'
+import {
+ type IssuedCredential,
+ initializeParams,
+ mdxpOverChannel,
+ pairAndExchange,
+ reconnect,
+} from './mbp1-client'
+
+const EXTENSION_ID = 'e2eextensionidaaaaaaaaaaaaaaaaaa'
+const ORIGIN = `chrome-extension://${EXTENSION_ID}`
describe('integration: ext ↔ Motrix end-to-end (MDXP spec appendix B.2)', () => {
let server: WebSocketBridgeServer
+ let mbp1: Mbp1TestWiring
let port: number
beforeEach(async () => {
+ mbp1 = await makeMbp1TestWiring([['chromium', EXTENSION_ID]])
server = new WebSocketBridgeServer({
pairing: makeStatefulFakePairing(),
registry: makeFakeRegistry(),
- onPairRequest: async () => ({ decision: 'allow', addToRegistry: false }),
motrixVersion: '2.0',
runtime: 'electron',
ffmpegAvailable: true,
localToken: 'test-token',
+ ...mbp1.options,
})
server.setHandlers({
submitDownload: async () => ({ taskId: 'task-1' }),
@@ -33,58 +44,35 @@ describe('integration: ext ↔ Motrix end-to-end (MDXP spec appendix B.2)', () =
await server.stop()
})
+ /** Step 1 of every flow below: a complete §6 first pair, then drop the
+ * socket, leaving only the stored credential — the extension's cold start. */
+ async function pairAndForget(): Promise<IssuedCredential> {
+ const paired = await pairAndExchange({
+ port,
+ origin: ORIGIN,
+ browser: 'chromium',
+ claimedExtensionId: EXTENSION_ID,
+ code: () => mbp1.dialogs.latestCode(),
+ })
+ paired.wire.ws.close()
+ await paired.wire.closed
+ return paired.credential
+ }
+
it('full flow: pair → reconnect /v1 → submit → progress notifications', async () => {
- // --- 1. pair via /pair to get a token
- const nonce = server.issuePairNonce()
- const pairWs = new WebSocket(
- `ws://127.0.0.1:${port}/pair?nonce=${nonce}&extensionId=abc&browser=chromium&extensionName=test&extensionVersion=0.1`,
- 'motrix-bridge.v1',
- { origin: 'chrome-extension://abc' }
- )
- await new Promise<void>((resolve, reject) => {
- pairWs.once('open', () => resolve())
- pairWs.once('error', reject)
- })
- const pairConn = createMdxpConnection(
- new WebSocketMessageReader(pairWs as never),
- new WebSocketMessageWriter(pairWs as never)
- )
- pairConn.listen()
- const initResult = await pairConn.sendRequest('motrix/initialize', {
- protocolVersion: '1.0',
- client: {
- kind: 'extension',
- name: 'motrix-extension',
- version: '0.1',
- extensionId: 'abc',
- browser: 'chromium',
- browserVersion: '120',
- locale: 'en',
- },
- capabilities: {},
- adapters: [],
- })
- expect(initResult.pairToken).toBeDefined()
- const token = initResult.pairToken!
- pairConn.dispose()
- pairWs.close()
-
- // --- 2. reconnect via /v1 using the token
- const ws = new WebSocket(
- `ws://127.0.0.1:${port}/v1?token=${token}`,
- 'motrix-bridge.v1',
- { origin: 'chrome-extension://abc' }
- )
- await new Promise<void>((resolve, reject) => {
- ws.once('open', () => resolve())
- ws.once('error', reject)
+ const credential = await pairAndForget()
+
+ // --- 2. reconnect via /v1 with the stored credential (§8). No token:
+ // the challenge–response IS the authentication, and it happens below MDXP.
+ const back = await reconnect({
+ port,
+ origin: ORIGIN,
+ instanceId: mbp1.options.instanceId,
+ credential,
})
- const conn = createMdxpConnection(
- new WebSocketMessageReader(ws as never),
- new WebSocketMessageWriter(ws as never)
- )
+ const conn = mdxpOverChannel(back.wire, back.channel)
- // ext registers notification handlers BEFORE listen()
+ // ext registers notification handlers before driving anything.
const progress: unknown[] = []
let completed: unknown = null
conn.onNotification('$/task/progress', (p) => {
@@ -94,23 +82,13 @@ describe('integration: ext ↔ Motrix end-to-end (MDXP spec appendix B.2)', () =
completed = p
})
- conn.listen()
-
- // ext re-initializes on the reconnect (per spec §5)
- await conn.sendRequest('motrix/initialize', {
- protocolVersion: '1.0',
- client: {
- kind: 'extension',
- name: 'motrix-extension',
- version: '0.1',
- extensionId: 'abc',
- browser: 'chromium',
- browserVersion: '120',
- locale: 'en',
- },
- capabilities: {},
- adapters: [],
- })
+ // ext re-initializes on the reconnect — a capabilities exchange now, with
+ // no token in the result.
+ const initResult = await conn.sendRequest(
+ 'motrix/initialize',
+ initializeParams(EXTENSION_ID)
+ )
+ expect(initResult.pairToken).toBeUndefined()
// ext announces it's ready
conn.sendNotification('motrix/initialized', undefined)
@@ -135,8 +113,9 @@ describe('integration: ext ↔ Motrix end-to-end (MDXP spec appendix B.2)', () =
})
expect(submitResult.taskId).toBe('task-1')
- // --- 4. server pushes $/task/progress + $/task/completed
- const session = server.getSession('chromium:abc')
+ // --- 4. server pushes $/task/progress + $/task/completed, sealed by the
+ // session's own envelope and opened by the client's.
+ const session = server.getSession(`chromium:${EXTENSION_ID}`)
if (!session) throw new Error('session not found after submit')
session.conn.sendNotification('$/task/progress', {
taskId: 'task-1',
@@ -167,65 +146,20 @@ describe('integration: ext ↔ Motrix end-to-end (MDXP spec appendix B.2)', () =
})
conn.dispose()
- ws.close()
+ back.wire.ws.close()
})
it('cancel flow: download/cancel response is { ok: true }', async () => {
- // Pair + reconnect (abbreviated)
- const nonce = server.issuePairNonce()
- const pairWs = new WebSocket(
- `ws://127.0.0.1:${port}/pair?nonce=${nonce}&extensionId=abc&browser=chromium`,
- 'motrix-bridge.v1',
- { origin: 'chrome-extension://abc' }
- )
- await new Promise<void>((r) => pairWs.once('open', r))
- const pc = createMdxpConnection(
- new WebSocketMessageReader(pairWs as never),
- new WebSocketMessageWriter(pairWs as never)
- )
- pc.listen()
- const ir = await pc.sendRequest('motrix/initialize', {
- protocolVersion: '1.0',
- client: {
- kind: 'extension',
- name: 'x',
- version: '1',
- extensionId: 'abc',
- browser: 'chromium',
- browserVersion: '1',
- locale: 'en',
- },
- capabilities: {},
- adapters: [],
- })
- pc.dispose()
- pairWs.close()
+ const credential = await pairAndForget()
- const ws = new WebSocket(
- `ws://127.0.0.1:${port}/v1?token=${ir.pairToken}`,
- 'motrix-bridge.v1',
- { origin: 'chrome-extension://abc' }
- )
- await new Promise<void>((r) => ws.once('open', r))
- const conn = createMdxpConnection(
- new WebSocketMessageReader(ws as never),
- new WebSocketMessageWriter(ws as never)
- )
- conn.listen()
- await conn.sendRequest('motrix/initialize', {
- protocolVersion: '1.0',
- client: {
- kind: 'extension',
- name: 'x',
- version: '1',
- extensionId: 'abc',
- browser: 'chromium',
- browserVersion: '1',
- locale: 'en',
- },
- capabilities: {},
- adapters: [],
+ const back = await reconnect({
+ port,
+ origin: ORIGIN,
+ instanceId: mbp1.options.instanceId,
+ credential,
})
+ const conn = mdxpOverChannel(back.wire, back.channel)
+ await conn.sendRequest('motrix/initialize', initializeParams(EXTENSION_ID))
const cancelResult = await conn.sendRequest('download/cancel', {
taskId: 'task-1',
@@ -233,6 +167,6 @@ describe('integration: ext ↔ Motrix end-to-end (MDXP spec appendix B.2)', () =
expect(cancelResult).toMatchObject({ ok: true })
conn.dispose()
- ws.close()
+ back.wire.ws.close()
})
})
diff --git a/src/core/bridge/__tests__/mbp1-client.ts b/src/core/bridge/__tests__/mbp1-client.ts
new file mode 100644
index 00000000..5edd40fd
--- /dev/null
+++ b/src/core/bridge/__tests__/mbp1-client.ts
@@ -0,0 +1,619 @@
+// A client-side MBP1 implementation for the transport integration tests.
+//
+// It deliberately composes the SAME `mbp1/` modules the server uses rather
+// than re-deriving any encoding: the point is to exercise the server's wiring
+// over a real socket, and a hand-rolled client would only prove that two
+// hand-rolled implementations agree with each other. Because the primitives are
+// shared, this doubles as the in-repo cross-check of the server's role
+// assignments — a swapped direction tag, transcript identity, or HKDF label
+// fails here even though both sides call the same function.
+//
+// Test-only. Nothing in `src/` imports this.
+
+import { Buffer } from 'node:buffer'
+import { randomBytes } from 'node:crypto'
+import { createMdxpConnection, type MdxpConnection } from '@motrix/mdxp'
+import { utf8ToBytes } from '@noble/hashes/utils.js'
+import type { Browser } from '@shared/protocol/bridge'
+import WebSocket, { type RawData } from 'ws'
+import { fromBase64Url, toBase64Url } from '../mbp1/canonical'
+import {
+ DIR_C2S,
+ DIR_S2C,
+ EnvelopeOpener,
+ EnvelopeSealer,
+} from '../mbp1/envelope'
+import {
+ type EnvelopeChannel,
+ wrapWithEnvelope,
+} from '../mbp1/envelope-message-stream'
+import { normalizePairingCode } from '../mbp1/pairing-code'
+import {
+ buildRT,
+ reconnectMacClient,
+ reconnectMacServer,
+ reconnectTrafficKeys,
+} from '../mbp1/reconnect-mac'
+import { deriveW } from '../mbp1/scrypt-w'
+import {
+ buildTT,
+ computePublicA,
+ confirmationMacs,
+ drawScalar,
+ EDWARDS25519_GROUP,
+ keySchedule,
+ pairTrafficKeys,
+ sharedFromA,
+} from '../mbp1/spake2-core'
+import { buildAad, buildAId, buildBId, ticketDigest } from '../mbp1/transcript'
+import {
+ type WebSocketLike,
+ WebSocketMessageReader,
+ WebSocketMessageWriter,
+} from '../web-socket-message-stream'
+
+const MBP1_PROTOCOL_VERSION = 1
+const FRAME_TIMEOUT_MS = 5_000
+
+export const random = (n: number): Uint8Array => new Uint8Array(randomBytes(n))
+
+export interface WireFrame {
+ isBinary: boolean
+ bytes: Buffer
+}
+
+export interface CloseInfo {
+ code: number
+ reason: string
+}
+
+/**
+ * A raw socket with an inbox, so a test can await the next frame instead of
+ * racing listeners. `detach()` releases the socket to a later consumer (the
+ * envelope stream), mirroring the server's own handover discipline.
+ */
+export class WireClient {
+ private readonly inbox: WireFrame[] = []
+ private waiter: ((frame: WireFrame) => void) | null = null
+ private attached = true
+ /** Every raw frame ever received, including those an envelope stream later
+ * consumes — the seam a test uses to inspect wire-level sequence numbers. */
+ readonly rawFrames: WireFrame[] = []
+ readonly closed: Promise<CloseInfo>
+
+ private readonly onMessage = (data: RawData, isBinary: boolean): void => {
+ const frame: WireFrame = { isBinary, bytes: rawToBuffer(data) }
+ const waiter = this.waiter
+ if (waiter) {
+ this.waiter = null
+ waiter(frame)
+ return
+ }
+ this.inbox.push(frame)
+ }
+
+ private constructor(readonly ws: WebSocket) {
+ this.closed = new Promise((resolve) => {
+ ws.once('close', (code, reason) =>
+ resolve({ code, reason: reason.toString('utf8') })
+ )
+ })
+ // A rejected upgrade surfaces as an 'error'; without a listener it is an
+ // unhandled event.
+ ws.on('error', () => {})
+ ws.on('message', (data: RawData, isBinary: boolean) => {
+ this.rawFrames.push({ isBinary, bytes: rawToBuffer(data) })
+ })
+ ws.on('message', this.onMessage)
+ }
+
+ /**
+ * `subprotocol: null` offers none at all. It is deliberately NOT `undefined`:
+ * a default parameter is re-applied when the caller passes `undefined`, so
+ * `open(url, origin, undefined)` would silently offer `motrix-bridge.v1` and
+ * the "missing subprotocol is refused" assertion would test nothing.
+ */
+ static async open(
+ url: string,
+ origin: string,
+ subprotocol: string | null = 'motrix-bridge.v1'
+ ): Promise<WireClient> {
+ const ws = new WebSocket(url, subprotocol === null ? [] : subprotocol, {
+ origin,
+ })
+ const client = new WireClient(ws)
+ await new Promise<void>((resolve, reject) => {
+ ws.once('open', resolve)
+ ws.once('error', reject)
+ ws.once('unexpected-response', (_req, res) =>
+ reject(new Error(`unexpected-response ${res.statusCode}`))
+ )
+ })
+ return client
+ }
+
+ /** Release the socket so a later consumer sees every subsequent frame. */
+ detach(): void {
+ if (!this.attached) return
+ this.attached = false
+ this.ws.off('message', this.onMessage)
+ }
+
+ sendJson(json: object): void {
+ this.ws.send(JSON.stringify(json))
+ }
+
+ sendBytes(bytes: Uint8Array): void {
+ this.ws.send(bytes, { binary: true })
+ }
+
+ async take(): Promise<WireFrame> {
+ const queued = this.inbox.shift()
+ if (queued) return queued
+ return new Promise<WireFrame>((resolve, reject) => {
+ const timer = setTimeout(
+ () => reject(new Error('timed out waiting for a frame')),
+ FRAME_TIMEOUT_MS
+ )
+ this.waiter = (frame) => {
+ clearTimeout(timer)
+ resolve(frame)
+ }
+ })
+ }
+
+ async takeJson<T>(): Promise<T> {
+ const frame = await this.take()
+ if (frame.isBinary) {
+ throw new Error('expected a text frame, received binary')
+ }
+ return JSON.parse(frame.bytes.toString('utf8')) as T
+ }
+}
+
+function rawToBuffer(data: RawData): Buffer {
+ if (Buffer.isBuffer(data)) return data
+ if (Array.isArray(data)) return Buffer.concat(data)
+ return Buffer.from(data)
+}
+
+/** An NM attestation ticket plus the binding key the §6.5 proof needs. */
+export interface ClientTicket {
+ wire: Record<string, unknown>
+ bindingKeyB64: string
+ sign(message: Uint8Array): Uint8Array
+}
+
+export interface PairAttemptOptions {
+ port: number
+ origin: string
+ browser: Browser
+ claimedExtensionId: string
+ clientInstallationId?: string
+ ticket?: ClientTicket
+ /**
+ * The `verifiedOrigin` this client binds into `A_id`, when it must differ
+ * from the origin it actually connects with. Only a misbinding test wants
+ * this: `verifiedOrigin` is the ONE transcript input neither side takes from
+ * a frame, so making the two disagree is the only way to prove the server
+ * binds the header it verified rather than something the client claimed.
+ */
+ transcriptOrigin?: string
+}
+
+/** The state a `/pair` client holds between `pairHello` and channel activation. */
+export interface PairHandshake {
+ wire: WireClient
+ instanceId: string
+ pairNonce: string
+ aId: Uint8Array
+ aad: Uint8Array
+ /** The principal this run is pairing, retained so the credential it issues
+ * can carry it into a later reconnect. */
+ origin: string
+ browser: Browser
+}
+
+/** Fetch a nonce the way the native-messaging host does (§4.2). */
+export async function fetchNonce(port: number): Promise<string> {
+ const res = await fetch(`http://127.0.0.1:${port}/nonce`, {
+ method: 'POST',
+ headers: { 'x-motrix-bridge': '1' },
+ })
+ if (!res.ok) {
+ throw new Error(`POST /nonce failed with ${res.status}`)
+ }
+ const body = (await res.json()) as { nonce: string }
+ return body.nonce
+}
+
+/**
+ * Open `/pair`, send `pairHello`, and await `pairAccept`. Stops there because
+ * the code only exists once the server has queued its dialog — the test reads
+ * it from the dialog fake, exactly as a user reads it off the screen.
+ */
+export async function startPair(
+ opts: PairAttemptOptions
+): Promise<PairHandshake> {
+ const pairNonce = await fetchNonce(opts.port)
+ const wire = await WireClient.open(
+ `ws://127.0.0.1:${opts.port}/pair?nonce=${pairNonce}`,
+ opts.origin
+ )
+ const clientInstallationId = opts.clientInstallationId ?? 'install-1'
+
+ wire.sendJson({
+ type: 'pairHello',
+ protocolVersion: MBP1_PROTOCOL_VERSION,
+ browser: opts.browser,
+ claimedExtensionId: opts.claimedExtensionId,
+ clientInstallationId,
+ ...(opts.ticket
+ ? {
+ nmTicket: opts.ticket.wire,
+ ticketBindingKey: opts.ticket.bindingKeyB64,
+ }
+ : {}),
+ })
+
+ const accept = await wire.takeJson<{ type: string; instanceId: string }>()
+ if (accept.type !== 'pairAccept') {
+ throw new PairAborted(accept)
+ }
+
+ return {
+ wire,
+ instanceId: accept.instanceId,
+ pairNonce,
+ origin: opts.origin,
+ browser: opts.browser,
+ aId: buildAId({
+ browser: opts.browser,
+ verifiedOrigin: opts.transcriptOrigin ?? opts.origin,
+ claimedExtensionId: opts.claimedExtensionId,
+ clientInstallationId,
+ }),
+ aad: buildAad(
+ MBP1_PROTOCOL_VERSION,
+ pairNonce,
+ opts.ticket ? fromBase64Url(opts.ticket.bindingKeyB64) : null,
+ opts.ticket ? digestOf(opts.ticket.wire) : null
+ ),
+ }
+}
+
+/** Thrown when the server answered a handshake step with `pairError`. */
+export class PairAborted extends Error {
+ constructor(readonly frame: unknown) {
+ super(`pairing aborted: ${JSON.stringify(frame)}`)
+ }
+}
+
+export interface PakeResult {
+ /** The activated channel, from the client's point of view. */
+ channel: EnvelopeChannel
+ cB: Uint8Array
+}
+
+/**
+ * One §6.3–§6.6 protocol run with `code`. Resolves with the activated channel,
+ * or throws {@link PairAborted} carrying the server's `pairError` — which is
+ * how a wrong code, an exhausted attempt limit, and a failed ticket proof all
+ * surface, indistinguishably except for the code the spec permits.
+ */
+export interface RunPakeOptions {
+ ticket?: ClientTicket
+ ticketProofOverride?: string
+ /**
+ * The `instanceId` this client binds into `B_id`, when it must differ from
+ * the one the server announced. The `B_id` half of the misbinding property.
+ */
+ instanceIdOverride?: string
+ /**
+ * Send this `pA` instead of the honestly-computed one, while still deriving
+ * the client's own key material from its real scalar. Adversarial key
+ * generation, for the Appendix A grinder: it lets a caller offer the group
+ * identity or a small-order point and check the server refuses to reach a
+ * confirmed key either way.
+ */
+ pAOverride?: Uint8Array
+}
+
+export async function runPake(
+ hs: PairHandshake,
+ code: string,
+ opts: RunPakeOptions = {}
+): Promise<PakeResult> {
+ const normalized = normalizePairingCode(code)
+ if (normalized === null) {
+ throw new Error(`not a pairing code: ${code}`)
+ }
+ const w = deriveW(normalized, hs.pairNonce, EDWARDS25519_GROUP.order)
+ const x = drawScalar(EDWARDS25519_GROUP.order, random)
+ const honestPA = computePublicA(EDWARDS25519_GROUP, w, x)
+ const pA = opts.pAOverride ?? honestPA
+
+ hs.wire.sendJson({ type: 'pakeA', pA: toBase64Url(pA) })
+ const pakeB = await hs.wire.takeJson<{ type: string; pB: string }>()
+ if (pakeB.type !== 'pakeB') {
+ throw new PairAborted(pakeB)
+ }
+
+ const pB = fromBase64Url(pakeB.pB)
+ const k = sharedFromA(EDWARDS25519_GROUP, w, x, pB)
+ const bId = buildBId(opts.instanceIdOverride ?? hs.instanceId)
+ const tt = buildTT(hs.aId, bId, pA, pB, k, w)
+ const keys = keySchedule(tt, hs.aad)
+ const macs = confirmationMacs(keys.KcA, keys.KcB, tt)
+
+ const ticketProof =
+ opts.ticketProofOverride ??
+ (opts.ticket
+ ? toBase64Url(opts.ticket.sign(ticketProofMessage(tt)))
+ : undefined)
+
+ hs.wire.sendJson({
+ type: 'confirmA',
+ cA: toBase64Url(macs.cA),
+ ...(ticketProof === undefined ? {} : { ticketProof }),
+ })
+
+ const confirmB = await hs.wire.takeJson<{ type: string; cB: string }>()
+ if (confirmB.type !== 'confirmB') {
+ throw new PairAborted(confirmB)
+ }
+ if (toBase64Url(macs.cB) !== confirmB.cB) {
+ throw new Error('server cB did not verify')
+ }
+
+ const { kC2S, kS2C } = pairTrafficKeys(keys.Ke)
+ return {
+ channel: {
+ sealer: new EnvelopeSealer(kC2S, DIR_C2S),
+ opener: new EnvelopeOpener(kS2C, DIR_S2C),
+ },
+ cB: macs.cB,
+ }
+}
+
+export interface IssuedCredential {
+ credentialId: string
+ mutualKey: Uint8Array
+ /**
+ * The principal the credential was issued to, as the client persists it
+ * alongside the key. §8 builds `RT` from these STORED values on the client
+ * side against the LIVE connection's values on the server side, which is
+ * exactly what makes a credential replayed from another origin fail the MAC
+ * (the misbinding property). Reusing the live origin on both sides would
+ * make every misbinding test agree with itself and prove nothing.
+ */
+ origin: string
+ browser: Browser
+}
+
+/**
+ * The §6.7 credential exchange, inside the freshly activated channel. Returns
+ * the credential the client would persist, so a later reconnect can use it.
+ */
+export async function exchangeCredential(
+ hs: PairHandshake,
+ channel: EnvelopeChannel
+): Promise<IssuedCredential> {
+ const offer = await openSealedJson<{
+ type: string
+ credentialId: string
+ mutualKey: string
+ }>(hs.wire, channel)
+ if (offer.type !== 'credentialOffer') {
+ throw new Error(`expected credentialOffer, got ${offer.type}`)
+ }
+
+ sendSealedJson(hs.wire, channel, {
+ type: 'credentialAck',
+ credentialId: offer.credentialId,
+ })
+
+ const committed = await openSealedJson<{ type: string }>(hs.wire, channel)
+ if (committed.type !== 'credentialCommitted') {
+ throw new Error(`expected credentialCommitted, got ${committed.type}`)
+ }
+
+ return {
+ credentialId: offer.credentialId,
+ mutualKey: fromBase64Url(offer.mutualKey),
+ origin: hs.origin,
+ browser: hs.browser,
+ }
+}
+
+/**
+ * A whole §6 first pair: hello, PAKE, credential exchange. `code` is read
+ * AFTER `pairAccept`, because that is when the server queues its dialog and the
+ * code first exists — the same moment the user can read it off the screen.
+ */
+export async function pairAndExchange(
+ opts: PairAttemptOptions & { code: () => string }
+): Promise<{
+ wire: WireClient
+ channel: EnvelopeChannel
+ credential: IssuedCredential
+}> {
+ const hs = await startPair(opts)
+ const { channel } = await runPake(hs, opts.code(), { ticket: opts.ticket })
+ const credential = await exchangeCredential(hs, channel)
+ return { wire: hs.wire, channel, credential }
+}
+
+/**
+ * §8 reconnect: open `/v1`, answer the challenge, activate the channel.
+ *
+ * `origin` is the LIVE connection's `Origin` header; `RT` is built from the
+ * credential's supplied principal. A legitimate client persists those values;
+ * security tests may deliberately replace them to model an attacker that has
+ * stolen credentialId + mutualKey and recomputes RT for its own live Origin.
+ * The server must reject that case by comparing the durable principal, not by
+ * assuming the client will preserve it.
+ */
+export async function reconnect(opts: {
+ port: number
+ origin: string
+ instanceId: string
+ credential: IssuedCredential
+ /** Overrides the credentialId actually sent, for the unknown-id case. */
+ credentialIdOverride?: string
+ /** Corrupts the MAC, for the bad-MAC case. */
+ corruptMac?: boolean
+ query?: string
+}): Promise<{ wire: WireClient; channel: EnvelopeChannel }> {
+ const wire = await WireClient.open(
+ `ws://127.0.0.1:${opts.port}/v1${opts.query ?? ''}`,
+ opts.origin
+ )
+ const challenge = await wire.takeJson<{ type: string; S: string }>()
+ if (challenge.type !== 'reconnectChallenge') {
+ throw new PairAborted(challenge)
+ }
+
+ const s = fromBase64Url(challenge.S)
+ const c = random(32)
+ const credentialId = opts.credentialIdOverride ?? opts.credential.credentialId
+ const rt = buildRT({
+ protocolVersion: MBP1_PROTOCOL_VERSION,
+ credentialId,
+ // The caller-supplied principal, not automatically `opts.origin` — see the
+ // doc comment above. This distinction lets tests model both honest drift
+ // and an active stolen-key attacker.
+ browser: opts.credential.browser,
+ verifiedOrigin: opts.credential.origin,
+ instanceId: opts.instanceId,
+ })
+ const mac = reconnectMacClient(opts.credential.mutualKey, s, c, rt)
+ if (opts.corruptMac) {
+ mac[0] ^= 0xff
+ }
+
+ wire.sendJson({
+ type: 'reconnectResponse',
+ credentialId,
+ C: toBase64Url(c),
+ mac: toBase64Url(mac),
+ })
+
+ const accept = await wire.takeJson<{ type: string; mac: string }>()
+ if (accept.type !== 'reconnectAccept') {
+ throw new PairAborted(accept)
+ }
+ const expected = reconnectMacServer(opts.credential.mutualKey, s, c, rt)
+ if (toBase64Url(expected) !== accept.mac) {
+ throw new Error('server reconnectAccept mac did not verify')
+ }
+
+ const { kC2S, kS2C } = reconnectTrafficKeys(opts.credential.mutualKey, s, c)
+ return {
+ wire,
+ channel: {
+ sealer: new EnvelopeSealer(kC2S, DIR_C2S),
+ opener: new EnvelopeOpener(kS2C, DIR_S2C),
+ },
+ }
+}
+
+/**
+ * Run MDXP over the activated channel, the way the extension does. The wire
+ * client is detached first: leaving its raw listener attached would advance the
+ * opener twice per frame, which is the same handover rule the server obeys.
+ */
+export function mdxpOverChannel(
+ wire: WireClient,
+ channel: EnvelopeChannel
+): MdxpConnection {
+ wire.detach()
+ const wrapped = wrapWithEnvelope(wire.ws as WebSocketLike, channel, () => {})
+ const conn = createMdxpConnection(
+ new WebSocketMessageReader(wrapped),
+ new WebSocketMessageWriter(wrapped)
+ )
+ conn.listen()
+ return conn
+}
+
+/** `motrix/initialize` params re-asserting `extensionId` (§5 consistency). */
+export function initializeParams(
+ extensionId: string,
+ browser: Browser = 'chromium'
+) {
+ return {
+ protocolVersion: '1.0' as const,
+ client: {
+ kind: 'extension' as const,
+ name: 'motrix-extension',
+ version: '0.1',
+ extensionId,
+ browser,
+ browserVersion: '120',
+ locale: 'en',
+ },
+ capabilities: {},
+ adapters: [] as never[],
+ }
+}
+
+export function sendSealedJson(
+ wire: WireClient,
+ channel: EnvelopeChannel,
+ json: object
+): void {
+ wire.sendBytes(channel.sealer.seal(utf8ToBytes(JSON.stringify(json))))
+}
+
+export async function openSealedJson<T>(
+ wire: WireClient,
+ channel: EnvelopeChannel
+): Promise<T> {
+ const frame = await wire.take()
+ if (!frame.isBinary) {
+ throw new PairAborted(JSON.parse(frame.bytes.toString('utf8')))
+ }
+ return JSON.parse(
+ Buffer.from(channel.opener.open(asBytes(frame.bytes))).toString('utf8')
+ ) as T
+}
+
+/**
+ * A `Buffer` view as a plain `Uint8Array`, which is what every `mbp1/` byte
+ * input must be: `@noble`'s `isBytes` is `instanceof Uint8Array`, and under
+ * vitest's jsdom environment a `Buffer` fails it because the two come from
+ * different realms.
+ */
+function asBytes(frame: Buffer): Uint8Array {
+ return new Uint8Array(frame.buffer, frame.byteOffset, frame.byteLength)
+}
+
+/**
+ * §6.5's signed message: `"MBP1/ticket-proof/v1" ‖ TT`.
+ *
+ * A real `Uint8Array`, not the `Buffer` that `Buffer.concat` would answer: this
+ * value is signed by `@noble`, whose `isBytes` check compares against the jsdom
+ * realm's `Uint8Array` and rejects every `Buffer` as `got type=object`.
+ */
+export function ticketProofMessage(tt: Uint8Array): Uint8Array {
+ const label = utf8ToBytes('MBP1/ticket-proof/v1')
+ const message = new Uint8Array(label.length + tt.length)
+ message.set(label, 0)
+ message.set(tt, label.length)
+ return message
+}
+
+function digestOf(wire: Record<string, unknown>): Uint8Array {
+ return ticketDigest({
+ v: wire.v as number,
+ purpose: wire.purpose as string,
+ protocolVersion: wire.protocolVersion as number,
+ serverGeneration: wire.serverGeneration as string,
+ browser: wire.browser as string,
+ callerId: wire.callerId as string,
+ exp: wire.exp as number,
+ bindingPub: fromBase64Url(wire.bindingPub as string),
+ mac: fromBase64Url(wire.mac as string),
+ })
+}
diff --git a/src/core/bridge/__tests__/mbp1-ticket.ts b/src/core/bridge/__tests__/mbp1-ticket.ts
new file mode 100644
index 00000000..777464bd
--- /dev/null
+++ b/src/core/bridge/__tests__/mbp1-ticket.ts
@@ -0,0 +1,77 @@
+// Mints §9.2 NM attestation tickets for the transport tests, exactly as the
+// native-messaging host would: the ticket key derives from `localToken`, which
+// the test harness shares with the server under test.
+//
+// Composed from the production `mbp1/` primitives (`deriveTicketKey`,
+// `ticketMacInput`) rather than a re-derived MAC input, so a change to either
+// breaks here instead of silently agreeing with itself.
+//
+// Test-only. Nothing in `src/` imports this.
+
+import { randomBytes } from 'node:crypto'
+import { ed25519 } from '@noble/curves/ed25519.js'
+import type { Browser } from '@shared/protocol/bridge'
+import { hmacSha256, toBase64Url } from '../mbp1/canonical'
+import { deriveTicketKey, ticketMacInput } from '../mbp1/ticket-verify'
+import type { ClientTicket } from './mbp1-client'
+
+const TICKET_VERSION = 1
+const TICKET_PURPOSE = 'mbp1-attestation'
+const TICKET_PROTOCOL_VERSION = 1
+
+/** Comfortably inside §9.2's 60 s remaining-lifetime bound. */
+const DEFAULT_REMAINING_SECONDS = 30
+
+/**
+ * A `Buffer` is NOT accepted by `@noble` here. The suite runs under vitest's
+ * jsdom environment, whose `Uint8Array` comes from a different realm than the
+ * one `node:buffer` builds its `Buffer` prototype chain from, so noble's
+ * `isBytes` (`a instanceof Uint8Array`) answers `false` for every `Buffer` and
+ * reports the perfectly-shaped key as `got type=object`. Every byte string
+ * crossing into a noble call must therefore be a real `Uint8Array`.
+ */
+function toBytes(buf: Uint8Array): Uint8Array {
+ return new Uint8Array(buf)
+}
+
+export function mintTicket(opts: {
+ localToken: string
+ serverGeneration: string
+ browser: Browser
+ callerId: string
+ /** Overrides `v`, `purpose`, or `protocolVersion` for the format rows. */
+ overrides?: Partial<{
+ v: number
+ purpose: string
+ protocolVersion: number
+ exp: number
+ }>
+}): ClientTicket {
+ const bindingPriv = toBytes(randomBytes(32))
+ const bindingPub = ed25519.getPublicKey(bindingPriv)
+ const fields = {
+ v: opts.overrides?.v ?? TICKET_VERSION,
+ purpose: opts.overrides?.purpose ?? TICKET_PURPOSE,
+ protocolVersion: opts.overrides?.protocolVersion ?? TICKET_PROTOCOL_VERSION,
+ serverGeneration: opts.serverGeneration,
+ browser: opts.browser,
+ callerId: opts.callerId,
+ exp:
+ opts.overrides?.exp ??
+ Math.floor(Date.now() / 1000) + DEFAULT_REMAINING_SECONDS,
+ }
+ const mac = hmacSha256(
+ deriveTicketKey(opts.localToken),
+ ticketMacInput({ ...fields, bindingPub })
+ )
+
+ return {
+ wire: {
+ ...fields,
+ bindingPub: toBase64Url(bindingPub),
+ mac: toBase64Url(mac),
+ },
+ bindingKeyB64: toBase64Url(bindingPub),
+ sign: (message) => ed25519.sign(toBytes(message), bindingPriv),
+ }
+}
diff --git a/src/core/bridge/__tests__/mbp1-transport.test.ts b/src/core/bridge/__tests__/mbp1-transport.test.ts
new file mode 100644
index 00000000..7d49c552
--- /dev/null
+++ b/src/core/bridge/__tests__/mbp1-transport.test.ts
@@ -0,0 +1,2069 @@
+import { createServer as createHttpServer } from 'node:http'
+import { connect as netConnect } from 'node:net'
+import { MAX_ENVELOPE_PLAINTEXT_BYTES } from '@core/bridge/mbp1/envelope'
+import type { EnvelopeChannel } from '@core/bridge/mbp1/envelope-message-stream'
+import {
+ BRIDGE_CANDIDATE_PORTS,
+ MAX_WEBSOCKET_PAYLOAD_BYTES,
+ WebSocketBridgeServer,
+} from '@core/bridge/web-socket-bridge-server'
+import { ErrorCodes, Notifications } from '@motrix/mdxp'
+import { utf8ToBytes } from '@noble/hashes/utils.js'
+import type { Browser, ClientIdentity } from '@shared/protocol/bridge'
+import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
+import {
+ type FakeDialogs,
+ makeAllowlist,
+ makeFakeDialogs,
+ makeFakeRegistry,
+ makeStatefulFakePairing,
+ makeTempCredentialStore,
+} from './fakes'
+import {
+ exchangeCredential,
+ fetchNonce,
+ type IssuedCredential,
+ initializeParams,
+ mdxpOverChannel,
+ openSealedJson,
+ PairAborted,
+ reconnect,
+ runPake,
+ sendSealedJson,
+ startPair,
+ WireClient,
+} from './mbp1-client'
+import { mintTicket } from './mbp1-ticket'
+
+const INSTANCE_ID = 'instance-abcdef'
+const SERVER_GENERATION = 'gen-1'
+const APP_VERSION = '2.0.0-beta.20'
+const LOCAL_TOKEN = 'local-token-for-tests'
+
+const OFFICIAL_ID = 'officialextensionidaaaaaaaaaaaaa'
+const OFFICIAL_ORIGIN = `chrome-extension://${OFFICIAL_ID}`
+const SIDELOADED_ID = 'sideloadedextensionidbbbbbbbbbbb'
+const SIDELOADED_ORIGIN = `chrome-extension://${SIDELOADED_ID}`
+const FIREFOX_UUID = 'a1b2c3d4-e5f6-4708-9a0b-1c2d3e4f5061'
+const FIREFOX_ORIGIN = `moz-extension://${FIREFOX_UUID}`
+
+interface Harness {
+ server: WebSocketBridgeServer
+ port: number
+ dialogs: FakeDialogs
+ credentials: Awaited<ReturnType<typeof makeTempCredentialStore>>
+ authenticated: Array<ClientIdentity & { kind: 'extension' }>
+}
+
+async function makeHarness(
+ overrides: {
+ allowlist?: ReadonlyArray<[Browser, string]>
+ host?: string
+ } = {}
+): Promise<Harness> {
+ const dialogs = makeFakeDialogs()
+ const authenticated: Array<ClientIdentity & { kind: 'extension' }> = []
+ const credentials = await makeTempCredentialStore()
+ const server = new WebSocketBridgeServer({
+ pairing: makeStatefulFakePairing(),
+ registry: makeFakeRegistry(),
+ motrixVersion: '2.0',
+ runtime: 'electron',
+ ffmpegAvailable: true,
+ localToken: LOCAL_TOKEN,
+ instanceId: INSTANCE_ID,
+ serverGeneration: SERVER_GENERATION,
+ appVersion: APP_VERSION,
+ credentials,
+ isOfficialId: makeAllowlist(
+ overrides.allowlist ?? [['chromium', OFFICIAL_ID]]
+ ),
+ queueMbp1Dialog: (args) => dialogs.queue(args),
+ onExtensionAuthenticated: (identity) => authenticated.push(identity),
+ })
+ server.registerReadMethods({
+ taskManager: { getAll: () => [], getById: () => undefined },
+ statsAggregator: {
+ getStats: () => ({
+ totalDownloadSpeed: 0,
+ totalUploadSpeed: 0,
+ activeTasks: 0,
+ waitingTasks: 0,
+ stoppedTasks: 0,
+ }),
+ },
+ supervisor: {
+ getState: () => 'ready' as never,
+ getFeatureReport: () => null,
+ },
+ })
+ const port = await server.start(overrides.host ?? '127.0.0.1', 0)
+ return { server, port, dialogs, credentials, authenticated }
+}
+
+function deferred(): { promise: Promise<void>; resolve: () => void } {
+ let resolve!: () => void
+ const promise = new Promise<void>((done) => {
+ resolve = done
+ })
+ return { promise, resolve }
+}
+
+/** Send one raw HTTP request with a chosen `Host`, returning the status line. */
+function rawRequest(
+ port: number,
+ lines: string[]
+): Promise<{ status: number; head: string }> {
+ return new Promise((resolve, reject) => {
+ const socket = netConnect(port, '127.0.0.1', () => {
+ socket.write(`${lines.join('\r\n')}\r\n\r\n`)
+ })
+ let head = ''
+ socket.on('data', (chunk) => {
+ head += chunk.toString('utf8')
+ if (head.includes('\r\n\r\n')) {
+ socket.destroy()
+ const match = /^HTTP\/1\.\d (\d{3})/.exec(head)
+ resolve({ status: match ? Number(match[1]) : 0, head })
+ }
+ })
+ socket.on('error', reject)
+ socket.on('close', () => {
+ if (head === '') reject(new Error('socket closed with no response'))
+ })
+ })
+}
+
+function upgradeWithHost(
+ port: number,
+ path: string,
+ host: string
+): Promise<{ status: number; head: string }> {
+ return rawRequest(port, [
+ `GET ${path} HTTP/1.1`,
+ `Host: ${host}`,
+ 'Upgrade: websocket',
+ 'Connection: Upgrade',
+ 'Sec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ==',
+ 'Sec-WebSocket-Version: 13',
+ 'Sec-WebSocket-Protocol: motrix-bridge.v1',
+ `Origin: ${OFFICIAL_ORIGIN}`,
+ ])
+}
+
+/** Drive a complete first pair and return the credential the client stored. */
+async function pairFully(
+ h: Harness,
+ opts: { origin?: string; browser?: Browser; claimedExtensionId?: string } = {}
+): Promise<{
+ wire: WireClient
+ credential: IssuedCredential
+ channel: EnvelopeChannel
+}> {
+ const hs = await startPair({
+ port: h.port,
+ origin: opts.origin ?? OFFICIAL_ORIGIN,
+ browser: opts.browser ?? 'chromium',
+ claimedExtensionId: opts.claimedExtensionId ?? OFFICIAL_ID,
+ })
+ const { channel } = await runPake(hs, h.dialogs.latestCode())
+ const credential = await exchangeCredential(hs, channel)
+ return { wire: hs.wire, credential, channel }
+}
+
+/** A distinct Chromium peer whose origin host matches its claimed id (§5). */
+function peerFor(index: number): { origin: string; id: string } {
+ const id = `peer${String(index).padStart(2, '0')}extensionidaaaaaaaaaa`
+ return { origin: `chrome-extension://${id}`, id }
+}
+
+// ---------------------------------------------------------------------------
+// §4.1 / §4.2 — the unauthenticated HTTP surfaces
+// ---------------------------------------------------------------------------
+
+describe('MBP1 HTTP surfaces', () => {
+ let h: Harness
+
+ beforeEach(async () => {
+ h = await makeHarness()
+ })
+
+ afterEach(async () => {
+ await h.server.stop()
+ })
+
+ it('GET /discovery answers routing and compatibility hints with no-store, pre-auth', async () => {
+ const res = await fetch(`http://127.0.0.1:${h.port}/discovery`)
+
+ expect(res.status).toBe(200)
+ expect(res.headers.get('cache-control')).toBe('no-store')
+ expect(await res.json()).toEqual({
+ app: 'motrix-bridge',
+ apiVersion: 1,
+ instanceId: INSTANCE_ID,
+ appVersion: APP_VERSION,
+ runtime: 'electron',
+ extensionPairing: { protocol: 'mbp1', versions: [1] },
+ applicationProtocols: { mdxp: ['1.0'] },
+ })
+ })
+
+ it('POST /nonce requires X-Motrix-Bridge and answers { nonce, ttlSeconds }', async () => {
+ const refused = await fetch(`http://127.0.0.1:${h.port}/nonce`, {
+ method: 'POST',
+ })
+ expect(refused.status).toBe(403)
+
+ const res = await fetch(`http://127.0.0.1:${h.port}/nonce`, {
+ method: 'POST',
+ headers: { 'x-motrix-bridge': '1' },
+ })
+ expect(res.status).toBe(200)
+ expect(res.headers.get('cache-control')).toBe('no-store')
+ const body = (await res.json()) as { nonce: string; ttlSeconds: number }
+ expect(body.ttlSeconds).toBe(60)
+ expect(body.nonce).toMatch(/^[A-Za-z0-9_-]{16,}$/)
+ })
+
+ it('GET /nonce is gone and falls through to 404', async () => {
+ const res = await fetch(`http://127.0.0.1:${h.port}/nonce`)
+ expect(res.status).toBe(404)
+ })
+
+ it('rate-limits nonce issuance rather than issuing past its cap', async () => {
+ // 32 outstanding is the §4.2 default; the 33rd must be refused.
+ const statuses: number[] = []
+ for (let i = 0; i < 33; i++) {
+ const res = await fetch(`http://127.0.0.1:${h.port}/nonce`, {
+ method: 'POST',
+ headers: { 'x-motrix-bridge': '1' },
+ })
+ statuses.push(res.status)
+ await res.arrayBuffer()
+ }
+ expect(statuses.slice(0, 32)).toEqual(Array(32).fill(200))
+ expect(statuses[32]).toBe(429)
+ })
+})
+
+// ---------------------------------------------------------------------------
+// R1 — §4.3 Host-header validation (DNS rebinding)
+// ---------------------------------------------------------------------------
+
+describe('§4.3 Host validation', () => {
+ let h: Harness
+
+ beforeEach(async () => {
+ h = await makeHarness()
+ })
+
+ afterEach(async () => {
+ await h.server.stop()
+ })
+
+ it('rejects a rebound Host on every surface', async () => {
+ const discovery = await rawRequest(h.port, [
+ 'GET /discovery HTTP/1.1',
+ 'Host: evil.example',
+ ])
+ expect(discovery.status).toBe(403)
+
+ const nonce = await rawRequest(h.port, [
+ 'POST /nonce HTTP/1.1',
+ 'Host: evil.example',
+ 'X-Motrix-Bridge: 1',
+ 'Content-Length: 0',
+ ])
+ expect(nonce.status).toBe(403)
+
+ expect(
+ (await upgradeWithHost(h.port, '/pair', 'evil.example')).status
+ ).toBe(403)
+ expect((await upgradeWithHost(h.port, '/v1', 'evil.example')).status).toBe(
+ 403
+ )
+ })
+
+ it('accepts every loopback spelling, with the bound port', async () => {
+ for (const host of [
+ `127.0.0.1:${h.port}`,
+ `localhost:${h.port}`,
+ `[::1]:${h.port}`,
+ `LOCALHOST:${h.port}`,
+ ]) {
+ const res = await rawRequest(h.port, [
+ 'GET /discovery HTTP/1.1',
+ `Host: ${host}`,
+ ])
+ expect(res.status, `Host: ${host}`).toBe(200)
+ }
+ })
+
+ it('requires the port, and requires it to be the bound one', async () => {
+ for (const host of [
+ '127.0.0.1',
+ 'localhost',
+ `127.0.0.1:${h.port + 1}`,
+ `127.0.0.2:${h.port}`,
+ `[::2]:${h.port}`,
+ ]) {
+ const res = await rawRequest(h.port, [
+ 'GET /discovery HTTP/1.1',
+ `Host: ${host}`,
+ ])
+ expect(res.status, `Host: ${host}`).toBe(403)
+ }
+ })
+
+ it('does not break the loopback CLI on POST /mdxp', async () => {
+ const res = await fetch(`http://127.0.0.1:${h.port}/mdxp`, {
+ method: 'POST',
+ headers: {
+ authorization: `Bearer ${LOCAL_TOKEN}`,
+ 'content-type': 'application/json',
+ },
+ body: JSON.stringify({
+ jsonrpc: '2.0',
+ id: 1,
+ method: 'task/list',
+ params: {},
+ }),
+ })
+ expect(res.status).toBe(200)
+ expect(await res.json()).toMatchObject({ result: { tasks: [], total: 0 } })
+ })
+
+ it('runs BEFORE the nonce is consumed, so a rejected upgrade wastes none', async () => {
+ // The ordering control for R1: if the Host check sat after consumption, a
+ // rebound page could burn every nonce a legitimate pairing needs.
+ const nonce = await fetchNonce(h.port)
+
+ const rejected = await rawRequest(h.port, [
+ `GET /pair?nonce=${nonce} HTTP/1.1`,
+ 'Host: evil.example',
+ 'Upgrade: websocket',
+ 'Connection: Upgrade',
+ 'Sec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ==',
+ 'Sec-WebSocket-Version: 13',
+ 'Sec-WebSocket-Protocol: motrix-bridge.v1',
+ `Origin: ${OFFICIAL_ORIGIN}`,
+ ])
+ expect(rejected.status).toBe(403)
+
+ // The same nonce still opens a real /pair connection.
+ const wire = await WireClient.open(
+ `ws://127.0.0.1:${h.port}/pair?nonce=${nonce}`,
+ OFFICIAL_ORIGIN
+ )
+ expect(wire.ws.readyState).toBe(wire.ws.OPEN)
+ wire.ws.close()
+ })
+
+ it('is inert while bound to a non-loopback host', async () => {
+ // §4.3 scopes itself to loopback; the server shell's configured bind keeps
+ // its token + reverse-proxy model, where Host is the operator's hostname.
+ const remote = await makeHarness({ host: '0.0.0.0' })
+ try {
+ const res = await rawRequest(remote.port, [
+ 'GET /discovery HTTP/1.1',
+ 'Host: motrix.example.com',
+ ])
+ expect(res.status).toBe(200)
+ } finally {
+ await remote.server.stop()
+ }
+ })
+})
+
+// ---------------------------------------------------------------------------
+// §4 — ingress demultiplexing
+// ---------------------------------------------------------------------------
+
+describe('§4 ingress demux', () => {
+ let h: Harness
+
+ beforeEach(async () => {
+ h = await makeHarness()
+ })
+
+ afterEach(async () => {
+ await h.server.stop()
+ })
+
+ it('rejects a non-extension origin and a missing subprotocol', async () => {
+ await expect(
+ WireClient.open(`ws://127.0.0.1:${h.port}/v1`, 'https://evil.example')
+ ).rejects.toThrow()
+ await expect(
+ WireClient.open(`ws://127.0.0.1:${h.port}/v1`, OFFICIAL_ORIGIN, null)
+ ).rejects.toThrow()
+ })
+
+ it('rejects an unknown path', async () => {
+ await expect(
+ WireClient.open(`ws://127.0.0.1:${h.port}/nope`, OFFICIAL_ORIGIN)
+ ).rejects.toThrow()
+ })
+
+ it('refuses /pair with an unknown or replayed nonce', async () => {
+ await expect(
+ WireClient.open(
+ `ws://127.0.0.1:${h.port}/pair?nonce=never-issued`,
+ OFFICIAL_ORIGIN
+ )
+ ).rejects.toThrow()
+
+ const nonce = await fetchNonce(h.port)
+ const first = await WireClient.open(
+ `ws://127.0.0.1:${h.port}/pair?nonce=${nonce}`,
+ OFFICIAL_ORIGIN
+ )
+ await expect(
+ WireClient.open(
+ `ws://127.0.0.1:${h.port}/pair?nonce=${nonce}`,
+ OFFICIAL_ORIGIN
+ )
+ ).rejects.toThrow()
+ first.ws.close()
+ })
+
+ it('ignores a ?token= query on /v1 and still speaks first', async () => {
+ const wire = await WireClient.open(
+ `ws://127.0.0.1:${h.port}/v1?token=whatever`,
+ OFFICIAL_ORIGIN
+ )
+ const challenge = await wire.takeJson<{
+ type: string
+ protocolVersion: number
+ S: string
+ }>()
+
+ expect(challenge.type).toBe('reconnectChallenge')
+ expect(challenge.protocolVersion).toBe(1)
+ wire.ws.close()
+ })
+
+ it('closes an unauthenticated socket before buffering past the active-envelope payload cap', async () => {
+ const wire = await WireClient.open(
+ `ws://127.0.0.1:${h.port}/v1`,
+ OFFICIAL_ORIGIN
+ )
+ await wire.takeJson()
+
+ wire.ws.send(Buffer.alloc(MAX_WEBSOCKET_PAYLOAD_BYTES + 1))
+
+ await expect(wire.closed).resolves.toMatchObject({ code: 1009 })
+ })
+
+ it('refuses both routes when MBP1 is not wired', async () => {
+ const bare = new WebSocketBridgeServer({
+ pairing: makeStatefulFakePairing(),
+ registry: makeFakeRegistry(),
+ motrixVersion: '2.0',
+ runtime: 'server',
+ ffmpegAvailable: false,
+ localToken: LOCAL_TOKEN,
+ })
+ const port = await bare.start('127.0.0.1', 0)
+ try {
+ const nonce = bare.issuePairNonce()
+ await expect(
+ WireClient.open(
+ `ws://127.0.0.1:${port}/pair?nonce=${nonce}`,
+ OFFICIAL_ORIGIN
+ )
+ ).rejects.toThrow()
+ await expect(
+ WireClient.open(`ws://127.0.0.1:${port}/v1`, OFFICIAL_ORIGIN)
+ ).rejects.toThrow()
+ expect((await fetch(`http://127.0.0.1:${port}/discovery`)).status).toBe(
+ 404
+ )
+ } finally {
+ await bare.stop()
+ }
+ })
+})
+
+// ---------------------------------------------------------------------------
+// §5 — the identity tri-state, resolved against a real allowlist
+// ---------------------------------------------------------------------------
+
+describe('§5 identity tri-state', () => {
+ let h: Harness
+
+ beforeEach(async () => {
+ h = await makeHarness()
+ })
+
+ afterEach(async () => {
+ await h.server.stop()
+ })
+
+ it('official: an allowlisted id proven by the Chromium origin', async () => {
+ const hs = await startPair({
+ port: h.port,
+ origin: OFFICIAL_ORIGIN,
+ browser: 'chromium',
+ claimedExtensionId: OFFICIAL_ID,
+ })
+
+ expect(h.dialogs.latest()).toMatchObject({
+ browser: 'chromium',
+ claimedExtensionId: OFFICIAL_ID,
+ identity: 'official',
+ })
+ hs.wire.ws.close()
+ })
+
+ it('attested-non-official: a ticketless Chromium id that is NOT allowlisted', async () => {
+ const hs = await startPair({
+ port: h.port,
+ origin: SIDELOADED_ORIGIN,
+ browser: 'chromium',
+ claimedExtensionId: SIDELOADED_ID,
+ })
+
+ expect(h.dialogs.latest().identity).toBe('attested-non-official')
+ hs.wire.ws.close()
+ })
+
+ it('unverified: a ticketless Firefox peer, whose UUID maps to no Gecko id', async () => {
+ const hs = await startPair({
+ port: h.port,
+ origin: FIREFOX_ORIGIN,
+ browser: 'firefox',
+ claimedExtensionId: '[email protected]',
+ })
+
+ expect(h.dialogs.latest().identity).toBe('unverified')
+ hs.wire.ws.close()
+ })
+
+ it('rejects a Chromium claim that disagrees with its verified origin', async () => {
+ await expect(
+ startPair({
+ port: h.port,
+ origin: OFFICIAL_ORIGIN,
+ browser: 'chromium',
+ claimedExtensionId: SIDELOADED_ID,
+ })
+ ).rejects.toThrow(PairAborted)
+ expect(h.dialogs.requests).toHaveLength(0)
+ })
+
+ it('shows the display-grouped code, never the normalized one', async () => {
+ const hs = await startPair({
+ port: h.port,
+ origin: OFFICIAL_ORIGIN,
+ browser: 'chromium',
+ claimedExtensionId: OFFICIAL_ID,
+ })
+
+ expect(h.dialogs.latestCode()).toMatch(
+ /^[0-9A-HJKMNP-TV-Z]{4}-[0-9A-HJKMNP-TV-Z]{4}$/
+ )
+ expect(h.dialogs.latest().pairingNonce).toBe(hs.pairNonce)
+ hs.wire.ws.close()
+ })
+})
+
+// ---------------------------------------------------------------------------
+// §9 — attested Firefox, and the §6.5 ticketProof disposition split
+// ---------------------------------------------------------------------------
+
+describe('§9 NM attestation over the wire', () => {
+ let h: Harness
+
+ beforeEach(async () => {
+ // The Gecko id, not the moz-extension UUID, is what a ticket attests.
+ h = await makeHarness({
+ allowlist: [
+ ['firefox', '[email protected]'],
+ ['chromium', OFFICIAL_ID],
+ ],
+ })
+ })
+
+ afterEach(async () => {
+ await h.server.stop()
+ })
+
+ it('attests a Firefox caller a ticket proves, raising it out of unverified', async () => {
+ const ticket = mintTicket({
+ localToken: LOCAL_TOKEN,
+ serverGeneration: SERVER_GENERATION,
+ browser: 'firefox',
+ callerId: '[email protected]',
+ })
+ const hs = await startPair({
+ port: h.port,
+ origin: FIREFOX_ORIGIN,
+ browser: 'firefox',
+ claimedExtensionId: '[email protected]',
+ ticket,
+ })
+
+ expect(h.dialogs.latest().identity).toBe('official')
+ hs.wire.ws.close()
+ })
+
+ it('leaves an attested-but-unlisted caller at attested-non-official', async () => {
+ const ticket = mintTicket({
+ localToken: LOCAL_TOKEN,
+ serverGeneration: SERVER_GENERATION,
+ browser: 'firefox',
+ callerId: '[email protected]',
+ })
+ const hs = await startPair({
+ port: h.port,
+ origin: FIREFOX_ORIGIN,
+ browser: 'firefox',
+ claimedExtensionId: '[email protected]',
+ ticket,
+ })
+
+ expect(h.dialogs.latest().identity).toBe('attested-non-official')
+ hs.wire.ws.close()
+ })
+
+ it('keeps a Firefox unknown-generation downgrade at unverified: its origin cannot raise it', async () => {
+ const ticket = mintTicket({
+ localToken: LOCAL_TOKEN,
+ serverGeneration: 'gen-from-a-previous-start',
+ browser: 'firefox',
+ callerId: '[email protected]',
+ })
+ const hs = await startPair({
+ port: h.port,
+ origin: FIREFOX_ORIGIN,
+ browser: 'firefox',
+ claimedExtensionId: '[email protected]',
+ ticket,
+ })
+
+ expect(h.dialogs.latest().identity).toBe('unverified')
+ hs.wire.ws.close()
+ })
+
+ it('resolves a Chromium unknown-generation downgrade from its verified origin: allowlisted stays official (§9.2 only-raise)', async () => {
+ const ticket = mintTicket({
+ localToken: LOCAL_TOKEN,
+ serverGeneration: 'gen-from-a-previous-start',
+ browser: 'chromium',
+ callerId: OFFICIAL_ID,
+ })
+ const hs = await startPair({
+ port: h.port,
+ origin: OFFICIAL_ORIGIN,
+ browser: 'chromium',
+ claimedExtensionId: OFFICIAL_ID,
+ ticket,
+ })
+
+ expect(h.dialogs.latest().identity).toBe('official')
+ hs.wire.ws.close()
+ })
+
+ it('aborts a forged ticket without saying which row it hit', async () => {
+ const ticket = mintTicket({
+ localToken: 'a-different-token-entirely',
+ serverGeneration: SERVER_GENERATION,
+ browser: 'firefox',
+ callerId: '[email protected]',
+ })
+
+ await expect(
+ startPair({
+ port: h.port,
+ origin: FIREFOX_ORIGIN,
+ browser: 'firefox',
+ claimedExtensionId: '[email protected]',
+ ticket,
+ })
+ ).rejects.toMatchObject({
+ // Every §9.2 abort row collapses to this one code, with no detail field.
+ frame: { type: 'pairError', code: 'protocolViolation' },
+ })
+ expect(h.dialogs.requests).toHaveLength(0)
+ })
+
+ it('splits §6.5: a wrong-LENGTH proof is a protocolViolation', async () => {
+ const ticket = mintTicket({
+ localToken: LOCAL_TOKEN,
+ serverGeneration: SERVER_GENERATION,
+ browser: 'firefox',
+ callerId: '[email protected]',
+ })
+ const hs = await startPair({
+ port: h.port,
+ origin: FIREFOX_ORIGIN,
+ browser: 'firefox',
+ claimedExtensionId: '[email protected]',
+ ticket,
+ })
+
+ await expect(
+ runPake(hs, h.dialogs.latestCode(), {
+ ticket,
+ // 32 bytes where §6.5 requires 64: a malformed frame, not a failed
+ // cryptographic check, so it must NOT read as a wrong code.
+ ticketProofOverride: 'A'.repeat(43),
+ })
+ ).rejects.toMatchObject({
+ frame: { type: 'pairError', code: 'protocolViolation' },
+ })
+ })
+
+ it('splits §6.5: a well-formed proof that does not verify is a codeMismatch', async () => {
+ const ticket = mintTicket({
+ localToken: LOCAL_TOKEN,
+ serverGeneration: SERVER_GENERATION,
+ browser: 'firefox',
+ callerId: '[email protected]',
+ })
+ const hs = await startPair({
+ port: h.port,
+ origin: FIREFOX_ORIGIN,
+ browser: 'firefox',
+ claimedExtensionId: '[email protected]',
+ ticket,
+ })
+
+ // A valid signature over the WRONG message: 64 bytes, so the schema
+ // accepts it and the verifier is the one that refuses.
+ const wrongProof = ticket.sign(new Uint8Array(8))
+ await expect(
+ runPake(hs, h.dialogs.latestCode(), {
+ ticket,
+ ticketProofOverride: Buffer.from(wrongProof).toString('base64url'),
+ })
+ ).rejects.toMatchObject({
+ frame: {
+ type: 'pairError',
+ code: 'codeMismatch',
+ attemptsRemaining: 2,
+ },
+ })
+ })
+})
+
+// ---------------------------------------------------------------------------
+// §6 / §10 — the full first pair, then MDXP inside the envelope
+// ---------------------------------------------------------------------------
+
+describe('§6 first pair over the wire', () => {
+ let h: Harness
+
+ beforeEach(async () => {
+ h = await makeHarness()
+ })
+
+ afterEach(async () => {
+ await h.server.stop()
+ })
+
+ it('pairs, then runs motrix/initialize inside the AEAD channel', async () => {
+ const hs = await startPair({
+ port: h.port,
+ origin: OFFICIAL_ORIGIN,
+ browser: 'chromium',
+ claimedExtensionId: OFFICIAL_ID,
+ })
+ const { channel } = await runPake(hs, h.dialogs.latestCode())
+ const credential = await exchangeCredential(hs, channel)
+
+ expect(credential.credentialId).not.toBe('')
+ expect(credential.mutualKey).toHaveLength(32)
+ // The dialog is closed at key confirmation, not left on screen.
+ expect(h.dialogs.closed).toBe(1)
+
+ const conn = mdxpOverChannel(hs.wire, channel)
+ const result = await conn.sendRequest(
+ 'motrix/initialize',
+ initializeParams(OFFICIAL_ID)
+ )
+
+ expect(result.server.name).toBe('motrix')
+ // The token mint is gone: extensions never receive one again.
+ expect(result.pairToken).toBeUndefined()
+
+ const session = h.server.getSession(`chromium:${OFFICIAL_ID}`)
+ expect(session).toBeDefined()
+ expect(Array.from(h.server.iterSessions())).toHaveLength(1)
+ expect(h.authenticated).toEqual([
+ { kind: 'extension', browser: 'chromium', extensionId: OFFICIAL_ID },
+ ])
+
+ conn.dispose()
+ hs.wire.ws.close()
+ })
+
+ it('continues the handed-over sequence rather than restarting at zero', async () => {
+ // R2's mirror failure: a fresh EnvelopeSealer looks like a working
+ // connection until sequence numbers matter. /pair has already sealed
+ // credentialOffer (seq 0) and credentialCommitted (seq 1), so the first
+ // post-handover server frame MUST carry seq 2.
+ const hs = await startPair({
+ port: h.port,
+ origin: OFFICIAL_ORIGIN,
+ browser: 'chromium',
+ claimedExtensionId: OFFICIAL_ID,
+ })
+ const { channel } = await runPake(hs, h.dialogs.latestCode())
+ await exchangeCredential(hs, channel)
+ const framesBefore = hs.wire.rawFrames.length
+
+ const conn = mdxpOverChannel(hs.wire, channel)
+ await conn.sendRequest('motrix/initialize', initializeParams(OFFICIAL_ID))
+
+ const firstAfter = hs.wire.rawFrames[framesBefore]
+ expect(firstAfter).toBeDefined()
+ expect(firstAfter?.isBinary).toBe(true)
+ expect(firstAfter?.bytes.subarray(0, 8).toString('hex')).toBe(
+ '0000000000000002'
+ )
+
+ conn.dispose()
+ hs.wire.ws.close()
+ })
+
+ it('exposes the §10 outbound usage counters on the live session', async () => {
+ const hs = await startPair({
+ port: h.port,
+ origin: OFFICIAL_ORIGIN,
+ browser: 'chromium',
+ claimedExtensionId: OFFICIAL_ID,
+ })
+ const { channel } = await runPake(hs, h.dialogs.latestCode())
+ await exchangeCredential(hs, channel)
+ const conn = mdxpOverChannel(hs.wire, channel)
+ await conn.sendRequest('motrix/initialize', initializeParams(OFFICIAL_ID))
+
+ const session = h.server.getSession(`chromium:${OFFICIAL_ID}`)
+ // The sealer arrived with two frames already spent on the credential
+ // exchange, and the initialize response is the third.
+ expect(session?.envelope.usage.frames).toBe(3)
+ expect(session?.envelope.usage.blocks).toBeGreaterThan(0)
+
+ conn.dispose()
+ hs.wire.ws.close()
+ })
+
+ it('accepts the largest valid active envelope while capping larger WebSocket messages', async () => {
+ const paired = await pairFully(h)
+ const initialized = utf8ToBytes(
+ JSON.stringify({
+ jsonrpc: '2.0',
+ method: 'motrix/initialized',
+ })
+ )
+ const plaintext = new Uint8Array(MAX_ENVELOPE_PLAINTEXT_BYTES).fill(0x20)
+ plaintext.set(initialized)
+
+ paired.wire.sendBytes(paired.channel.sealer.seal(plaintext))
+ await vi.waitFor(() =>
+ expect(
+ h.server.getSession(`chromium:${OFFICIAL_ID}`)?.conn.isReady()
+ ).toBe(true)
+ )
+
+ const conn = mdxpOverChannel(paired.wire, paired.channel)
+ await expect(
+ conn.sendRequest('system/ping', { sentAt: 17 })
+ ).resolves.toMatchObject({ sentAt: 17 })
+
+ conn.dispose()
+ paired.wire.ws.close()
+ })
+
+ it('closes on a text frame injected after channel activation (§10)', async () => {
+ // Note what this does NOT pin: a wrapper discriminating on `typeof data`
+ // instead of `isBinary` also closes 1002 here, because injected plaintext
+ // fails GCM. The §10 rule itself is pinned by the unit test — see the case
+ // below for why the sharp form cannot be written against a real socket.
+ const hs = await startPair({
+ port: h.port,
+ origin: OFFICIAL_ORIGIN,
+ browser: 'chromium',
+ claimedExtensionId: OFFICIAL_ID,
+ })
+ const { channel } = await runPake(hs, h.dialogs.latestCode())
+ await exchangeCredential(hs, channel)
+ mdxpOverChannel(hs.wire, channel)
+
+ hs.wire.ws.send(
+ JSON.stringify({ jsonrpc: '2.0', id: 1, method: 'task/list', params: {} })
+ )
+
+ const closed = await hs.wire.closed
+ expect(closed.code).toBe(1002)
+ })
+
+ it('refuses a sealed frame that arrives flagged as text, at the transport', async () => {
+ // The sharp form of the case above — a payload that WOULD open cleanly, so
+ // that only reading `isBinary` can refuse it — is not expressible here, and
+ // that is itself the finding: `ws`'s own receiver validates that a TEXT
+ // frame is valid UTF-8 and closes 1007 before our wrapper is consulted.
+ // Ciphertext is not valid UTF-8, so a sealed frame can never arrive flagged
+ // as text through a real socket at all.
+ //
+ // The §10 rule is therefore pinned by the unit test that CAN deliver
+ // arbitrary bytes flagged as text (`mbp1/envelope-message-stream.test.ts`,
+ // "refuses a well-formed envelope that arrives flagged as text"); this case
+ // records the transport-level bound that makes the rule defence in depth.
+ const hs = await startPair({
+ port: h.port,
+ origin: OFFICIAL_ORIGIN,
+ browser: 'chromium',
+ claimedExtensionId: OFFICIAL_ID,
+ })
+ const { channel } = await runPake(hs, h.dialogs.latestCode())
+ await exchangeCredential(hs, channel)
+ hs.wire.detach()
+
+ const sealed = channel.sealer.seal(
+ new Uint8Array(Buffer.from('{"jsonrpc":"2.0","method":"x"}', 'utf8'))
+ )
+ // `binary: false` puts those exact bytes in a TEXT frame.
+ hs.wire.ws.send(Buffer.from(sealed), { binary: false })
+
+ const closed = await Promise.race([
+ hs.wire.closed,
+ new Promise<null>((resolve) => setTimeout(() => resolve(null), 2_000)),
+ ])
+ expect(closed?.code).toBe(1007)
+ })
+
+ it('closes on a replayed sealed frame after activation (§10)', async () => {
+ const hs = await startPair({
+ port: h.port,
+ origin: OFFICIAL_ORIGIN,
+ browser: 'chromium',
+ claimedExtensionId: OFFICIAL_ID,
+ })
+ const { channel } = await runPake(hs, h.dialogs.latestCode())
+ await exchangeCredential(hs, channel)
+ hs.wire.detach()
+
+ const frame = channel.sealer.seal(
+ Buffer.from(
+ JSON.stringify({
+ jsonrpc: '2.0',
+ id: 1,
+ method: 'system/ping',
+ params: { sentAt: 1 },
+ }),
+ 'utf8'
+ )
+ )
+ hs.wire.sendBytes(frame)
+ hs.wire.sendBytes(frame)
+
+ const closed = await hs.wire.closed
+ expect(closed.code).toBe(1002)
+ })
+
+ it('serves an initialize pipelined behind credentialAck without dropping it', async () => {
+ // R3(c): the client does not wait for credentialCommitted. The request is
+ // already queued in the pre-authentication pump when the handover happens,
+ // and the session's post-commit guards DROP such frames -- so the pump has
+ // to release its unread tail to the new consumer, or the request vanishes
+ // and the envelope opener falls a sequence behind.
+ const hs = await startPair({
+ port: h.port,
+ origin: OFFICIAL_ORIGIN,
+ browser: 'chromium',
+ claimedExtensionId: OFFICIAL_ID,
+ })
+ const { channel } = await runPake(hs, h.dialogs.latestCode())
+
+ const offer = await openSealedJson<{ credentialId: string }>(
+ hs.wire,
+ channel
+ )
+ sendSealedJson(hs.wire, channel, {
+ type: 'credentialAck',
+ credentialId: offer.credentialId,
+ })
+ // Immediately, with no round trip in between.
+ sendSealedJson(hs.wire, channel, {
+ jsonrpc: '2.0',
+ id: 7,
+ method: 'motrix/initialize',
+ params: initializeParams(OFFICIAL_ID),
+ })
+
+ const committed = await openSealedJson<{ type: string }>(hs.wire, channel)
+ expect(committed.type).toBe('credentialCommitted')
+
+ const response = await openSealedJson<{
+ id: number
+ result?: { server: { name: string } }
+ error?: unknown
+ }>(hs.wire, channel)
+ expect(response.error).toBeUndefined()
+ expect(response.id).toBe(7)
+ expect(response.result?.server.name).toBe('motrix')
+
+ hs.wire.ws.close()
+ })
+
+ it('leaves exactly one raw message listener attached after adoption', async () => {
+ // R3(b): a surviving pre-authentication listener would advance the opener a
+ // second time, and the mismatch would surface as a benign parse error.
+ const hs = await startPair({
+ port: h.port,
+ origin: OFFICIAL_ORIGIN,
+ browser: 'chromium',
+ claimedExtensionId: OFFICIAL_ID,
+ })
+ const { channel } = await runPake(hs, h.dialogs.latestCode())
+ await exchangeCredential(hs, channel)
+ const conn = mdxpOverChannel(hs.wire, channel)
+ await conn.sendRequest('motrix/initialize', initializeParams(OFFICIAL_ID))
+
+ const session = h.server.getSession(`chromium:${OFFICIAL_ID}`)
+ expect(session).toBeDefined()
+ for (const ws of (
+ h.server as unknown as {
+ wss: { clients: Set<{ listenerCount(e: string): number }> }
+ }
+ ).wss.clients) {
+ expect(ws.listenerCount('message')).toBe(1)
+ }
+
+ conn.dispose()
+ hs.wire.ws.close()
+ })
+
+ it('refuses a wrong code three times and then rate-limits', async () => {
+ const hs = await startPair({
+ port: h.port,
+ origin: OFFICIAL_ORIGIN,
+ browser: 'chromium',
+ claimedExtensionId: OFFICIAL_ID,
+ })
+ const wrong =
+ h.dialogs.latestCode() === 'AAAA-AAAA' ? 'BBBB-BBBB' : 'AAAA-AAAA'
+
+ await expect(runPake(hs, wrong)).rejects.toMatchObject({
+ frame: { code: 'codeMismatch', attemptsRemaining: 2 },
+ })
+ await expect(runPake(hs, wrong)).rejects.toMatchObject({
+ frame: { code: 'codeMismatch', attemptsRemaining: 1 },
+ })
+ await expect(runPake(hs, wrong)).rejects.toMatchObject({
+ frame: { code: 'rateLimited' },
+ })
+ await hs.wire.closed
+ })
+
+ it('aborts when the user dismisses the dialog', async () => {
+ const hs = await startPair({
+ port: h.port,
+ origin: OFFICIAL_ORIGIN,
+ browser: 'chromium',
+ claimedExtensionId: OFFICIAL_ID,
+ })
+
+ h.dialogs.dismissLatest()
+
+ const frame = await hs.wire.takeJson<{ type: string; code: string }>()
+ expect(frame).toMatchObject({ type: 'pairError', code: 'aborted' })
+ await hs.wire.closed
+ })
+
+ it('refuses a second pairHello on the same connection', async () => {
+ const hs = await startPair({
+ port: h.port,
+ origin: OFFICIAL_ORIGIN,
+ browser: 'chromium',
+ claimedExtensionId: OFFICIAL_ID,
+ })
+ // The §7.3 pending slot was taken by the first hello. A second one must be
+ // a protocol violation, not a second admission — otherwise one socket could
+ // hold an unbounded number of slots.
+ hs.wire.sendJson({
+ type: 'pairHello',
+ protocolVersion: 1,
+ browser: 'chromium',
+ claimedExtensionId: OFFICIAL_ID,
+ clientInstallationId: 'install-1',
+ })
+
+ const frame = await hs.wire.takeJson<{ type: string; code: string }>()
+ expect(frame).toMatchObject({
+ type: 'pairError',
+ code: 'protocolViolation',
+ })
+ expect(h.dialogs.requests).toHaveLength(1)
+ await hs.wire.closed
+ })
+
+ it('never puts a reason string on a close frame (§11)', async () => {
+ // Every close is bare. A reason names the internal step that produced it —
+ // dismissal, a ticket row, a wrong code — so it would be exactly the
+ // failure oracle §9.2 and §11 forbid, on the one channel a peer always sees.
+ const hs = await startPair({
+ port: h.port,
+ origin: OFFICIAL_ORIGIN,
+ browser: 'chromium',
+ claimedExtensionId: OFFICIAL_ID,
+ })
+ h.dialogs.dismissLatest()
+
+ const closed = await hs.wire.closed
+ expect(closed.reason).toBe('')
+ })
+})
+
+// ---------------------------------------------------------------------------
+// R3 — the adoption boundary
+// ---------------------------------------------------------------------------
+
+describe('R3 adoption boundary', () => {
+ let h: Harness
+
+ beforeEach(async () => {
+ h = await makeHarness()
+ })
+
+ afterEach(async () => {
+ await h.server.stop()
+ })
+
+ it('does not let a mid-flight /pair evict a live authenticated session', async () => {
+ // The vulnerability the pre-authentication table exists to close: the old
+ // wiring disposed a same-key session at ATTACH time, so merely opening an
+ // unauthenticated socket kicked a live one.
+ const live = await pairFully(h)
+ const liveConn = mdxpOverChannel(live.wire, live.channel)
+ await liveConn.sendRequest(
+ 'motrix/initialize',
+ initializeParams(OFFICIAL_ID)
+ )
+ const liveSession = h.server.getSession(`chromium:${OFFICIAL_ID}`)
+ expect(liveSession).toBeDefined()
+
+ // A second /pair for the SAME principal, driven only to mid-handshake.
+ const intruder = await startPair({
+ port: h.port,
+ origin: OFFICIAL_ORIGIN,
+ browser: 'chromium',
+ claimedExtensionId: OFFICIAL_ID,
+ })
+
+ expect(Array.from(h.server.iterSessions())).toEqual([liveSession])
+ // Still alive, not merely still listed.
+ const pong = await liveConn.sendRequest('system/ping', { sentAt: 11 })
+ expect(pong.sentAt).toBe(11)
+
+ intruder.wire.ws.close()
+ liveConn.dispose()
+ live.wire.ws.close()
+ })
+
+ it('replaces a live session atomically, and the old close does not undo it', async () => {
+ const first = await pairFully(h)
+ const firstConn = mdxpOverChannel(first.wire, first.channel)
+ await firstConn.sendRequest(
+ 'motrix/initialize',
+ initializeParams(OFFICIAL_ID)
+ )
+ const firstSession = h.server.getSession(`chromium:${OFFICIAL_ID}`)
+
+ const second = await pairFully(h)
+ const secondSession = h.server.getSession(`chromium:${OFFICIAL_ID}`)
+
+ // The key never went empty, and it now holds the newcomer.
+ expect(secondSession).toBeDefined()
+ expect(secondSession).not.toBe(firstSession)
+ expect(Array.from(h.server.iterSessions())).toHaveLength(1)
+
+ // The replaced socket's close must not delete the replacement's entry.
+ first.wire.ws.close()
+ await first.wire.closed
+ await new Promise((r) => setTimeout(r, 20))
+ expect(h.server.getSession(`chromium:${OFFICIAL_ID}`)).toBe(secondSession)
+
+ const secondConn = mdxpOverChannel(second.wire, second.channel)
+ const pong = await secondConn.sendRequest('system/ping', { sentAt: 5 })
+ expect(pong.sentAt).toBe(5)
+
+ firstConn.dispose()
+ secondConn.dispose()
+ second.wire.ws.close()
+ })
+
+ it('drops a session from the map when its own socket closes', async () => {
+ const paired = await pairFully(h)
+ const conn = mdxpOverChannel(paired.wire, paired.channel)
+ await conn.sendRequest('motrix/initialize', initializeParams(OFFICIAL_ID))
+ expect(h.server.getSession(`chromium:${OFFICIAL_ID}`)).toBeDefined()
+
+ conn.dispose()
+ paired.wire.ws.close()
+ await paired.wire.closed
+ await new Promise((r) => setTimeout(r, 20))
+
+ expect(h.server.getSession(`chromium:${OFFICIAL_ID}`)).toBeUndefined()
+ })
+
+ it('keys a Firefox session by its moz-extension UUID, not the claimed id', async () => {
+ // Keying by the self-reported Gecko id would let one Firefox extension
+ // evict another's live session just by claiming its id.
+ const paired = await pairFully(h, {
+ origin: FIREFOX_ORIGIN,
+ browser: 'firefox',
+ claimedExtensionId: '[email protected]',
+ })
+ const conn = mdxpOverChannel(paired.wire, paired.channel)
+ await conn.sendRequest(
+ 'motrix/initialize',
+ initializeParams('[email protected]', 'firefox')
+ )
+
+ expect(h.server.getSession(`firefox:${FIREFOX_UUID}`)).toBeDefined()
+ expect(h.server.getSession('firefox:[email protected]')).toBeUndefined()
+
+ conn.dispose()
+ paired.wire.ws.close()
+ })
+})
+
+// ---------------------------------------------------------------------------
+// R4 — §7.3 flood control
+// ---------------------------------------------------------------------------
+
+describe('R4 §7.3 flood control', () => {
+ let h: Harness
+
+ beforeEach(async () => {
+ h = await makeHarness()
+ })
+
+ afterEach(async () => {
+ await h.server.stop()
+ })
+
+ it('counts a session that queued a dialog and then just disconnected', async () => {
+ // §7.3 names the early disconnect explicitly, because it is the obvious
+ // dodge: without `recordOutcome` on the close path the counter never moves
+ // and the whole backoff is dead code while every unit test still passes.
+ const first = await startPair({
+ port: h.port,
+ origin: OFFICIAL_ORIGIN,
+ browser: 'chromium',
+ claimedExtensionId: OFFICIAL_ID,
+ })
+ expect(h.dialogs.requests).toHaveLength(1)
+ first.wire.ws.close()
+ await first.wire.closed
+
+ const peer = peerFor(1)
+ await expect(
+ startPair({
+ port: h.port,
+ origin: peer.origin,
+ browser: 'chromium',
+ claimedExtensionId: peer.id,
+ })
+ ).rejects.toMatchObject({
+ // A lockout, not a pending-slot refusal: the failure counter moved.
+ frame: { type: 'pairError', code: 'rateLimited' },
+ })
+ expect(h.dialogs.requests).toHaveLength(1)
+ })
+
+ it('answers busy — not rateLimited — for a same-origin duplicate with no failures', async () => {
+ // The two codes are distinct §11 rows and mean different things to the
+ // client; conflating them would tell a caller to back off for 30 s when it
+ // merely double-submitted.
+ const first = await startPair({
+ port: h.port,
+ origin: OFFICIAL_ORIGIN,
+ browser: 'chromium',
+ claimedExtensionId: OFFICIAL_ID,
+ })
+
+ await expect(
+ startPair({
+ port: h.port,
+ origin: OFFICIAL_ORIGIN,
+ browser: 'chromium',
+ claimedExtensionId: OFFICIAL_ID,
+ })
+ ).rejects.toMatchObject({
+ frame: { type: 'pairError', code: 'busy' },
+ })
+
+ first.wire.ws.close()
+ })
+
+ it('does not count a confirmed pairing as a failure', async () => {
+ const paired = await pairFully(h)
+
+ // No lockout: an unrelated origin can still start a pairing.
+ const other = peerFor(2)
+ const next = await startPair({
+ port: h.port,
+ origin: other.origin,
+ browser: 'chromium',
+ claimedExtensionId: other.id,
+ })
+ expect(h.dialogs.requests).toHaveLength(2)
+
+ next.wire.ws.close()
+ paired.wire.ws.close()
+ })
+
+ it('releases a pending slot exactly once, never another session’s', async () => {
+ // `PairFloodControl` keys pending slots by origin alone, so a second
+ // release for an origin that has since re-admitted would free the NEW
+ // session's slot and quietly raise the effective cap above 3.
+ const paired = await pairFully(h)
+
+ // The same origin takes a fresh slot after its predecessor released one.
+ const readmitted = await startPair({
+ port: h.port,
+ origin: OFFICIAL_ORIGIN,
+ browser: 'chromium',
+ claimedExtensionId: OFFICIAL_ID,
+ })
+ // Closing the confirmed session must not touch the slot that re-admission
+ // just took.
+ paired.wire.ws.close()
+ await paired.wire.closed
+
+ const b = peerFor(3)
+ const c = peerFor(4)
+ const pendingB = await startPair({
+ port: h.port,
+ origin: b.origin,
+ browser: 'chromium',
+ claimedExtensionId: b.id,
+ })
+ const pendingC = await startPair({
+ port: h.port,
+ origin: c.origin,
+ browser: 'chromium',
+ claimedExtensionId: c.id,
+ })
+
+ // Three pending dialogs (re-admitted, B, C) is the §7.3 cap.
+ const d = peerFor(5)
+ await expect(
+ startPair({
+ port: h.port,
+ origin: d.origin,
+ browser: 'chromium',
+ claimedExtensionId: d.id,
+ })
+ ).rejects.toMatchObject({ frame: { code: 'busy' } })
+
+ readmitted.wire.ws.close()
+ pendingB.wire.ws.close()
+ pendingC.wire.ws.close()
+ })
+})
+
+// ---------------------------------------------------------------------------
+// §4 — pre-authentication deadlines
+// ---------------------------------------------------------------------------
+
+describe('§4 pre-authentication deadlines', () => {
+ let h: Harness
+
+ beforeEach(async () => {
+ // Only the timer functions: faking Date or setImmediate would break the
+ // real socket and HTTP machinery this suite still needs.
+ vi.useFakeTimers({ toFake: ['setTimeout', 'clearTimeout'] })
+ h = await makeHarness()
+ })
+
+ afterEach(async () => {
+ vi.useRealTimers()
+ await h.server.stop()
+ })
+
+ it('closes a /v1 socket that upgrades and then says nothing', async () => {
+ // `dispose` does not close the socket, so an `onDeadline` that only
+ // disposes leaves the peer connected forever, holding a slot.
+ const wire = await WireClient.open(
+ `ws://127.0.0.1:${h.port}/v1`,
+ OFFICIAL_ORIGIN
+ )
+ await wire.takeJson()
+
+ vi.advanceTimersByTime(15_000)
+
+ await expect(wire.closed).resolves.toMatchObject({
+ code: expect.any(Number),
+ })
+ })
+
+ it('closes a silent /pair socket and still records its §7.3 outcome', async () => {
+ const wire = await WireClient.open(
+ `ws://127.0.0.1:${h.port}/pair?nonce=${await fetchNonce(h.port)}`,
+ OFFICIAL_ORIGIN
+ )
+
+ vi.advanceTimersByTime(150_000)
+
+ await expect(wire.closed).resolves.toMatchObject({
+ code: expect.any(Number),
+ })
+ // No dialog was queued and no attempt consumed, so §7.3 does NOT count it:
+ // a fresh origin can still pair.
+ expect(h.dialogs.requests).toHaveLength(0)
+ })
+})
+
+// ---------------------------------------------------------------------------
+// §8 — reconnect
+// ---------------------------------------------------------------------------
+
+describe('§8 reconnect over the wire', () => {
+ let h: Harness
+
+ beforeEach(async () => {
+ h = await makeHarness()
+ })
+
+ afterEach(async () => {
+ await h.server.stop()
+ })
+
+ it('authenticates with a stored credential and runs MDXP', async () => {
+ const paired = await pairFully(h)
+ paired.wire.ws.close()
+ await paired.wire.closed
+
+ const back = await reconnect({
+ port: h.port,
+ origin: OFFICIAL_ORIGIN,
+ instanceId: INSTANCE_ID,
+ credential: paired.credential,
+ })
+ const conn = mdxpOverChannel(back.wire, back.channel)
+ const result = await conn.sendRequest(
+ 'motrix/initialize',
+ initializeParams(OFFICIAL_ID)
+ )
+
+ expect(result.server.name).toBe('motrix')
+ expect(h.server.getSession(`chromium:${OFFICIAL_ID}`)).toBeDefined()
+ expect(h.authenticated).toHaveLength(2)
+
+ conn.dispose()
+ back.wire.ws.close()
+ })
+
+ it('durably rejects an old credential and closes its live session after UI-style revocation', async () => {
+ const paired = await pairFully(h)
+ const conn = mdxpOverChannel(paired.wire, paired.channel)
+ await conn.sendRequest('motrix/initialize', initializeParams(OFFICIAL_ID))
+
+ let resolveRevokedNotice!: (notice: { reason: string }) => void
+ const revokedNotice = new Promise<{ reason: string }>((resolve) => {
+ resolveRevokedNotice = resolve
+ })
+ const requestDuringGrace = new Promise<unknown>((resolve, reject) => {
+ conn.onNotification(Notifications.PairRevoked, (notice) => {
+ resolveRevokedNotice(notice)
+ void conn.sendRequest('task/list', {}).then(resolve, reject)
+ })
+ })
+ const revoke = h.server.revokeExtensionAccess(
+ {
+ kind: 'extension',
+ browser: 'chromium',
+ extensionId: OFFICIAL_ID,
+ },
+ 'user-revoked'
+ )
+
+ await expect(revokedNotice).resolves.toEqual({ reason: 'user-revoked' })
+ await expect(requestDuringGrace).rejects.toMatchObject({
+ code: ErrorCodes.PermissionDenied,
+ })
+ await expect(revoke).resolves.toBe(1)
+ await expect(paired.wire.closed).resolves.toMatchObject({ code: 1000 })
+ expect(h.server.getSession(`chromium:${OFFICIAL_ID}`)).toBeUndefined()
+ await expect(
+ reconnect({
+ port: h.port,
+ origin: OFFICIAL_ORIGIN,
+ instanceId: INSTANCE_ID,
+ credential: paired.credential,
+ })
+ ).rejects.toMatchObject({
+ frame: { type: 'pairError', code: 'authFailed' },
+ })
+
+ conn.dispose()
+ })
+
+ it('cancels same-origin pre-auth sessions and refuses replacement handshakes throughout revoke', async () => {
+ // Both sockets are admitted before revoke but deliberately remain
+ // pre-authenticated: `/pair` is silent, while `/v1` has only received the
+ // server challenge. Neither is present in the live-session map.
+ const pendingPair = await WireClient.open(
+ `ws://127.0.0.1:${h.port}/pair?nonce=${await fetchNonce(h.port)}`,
+ OFFICIAL_ORIGIN
+ )
+ const pendingReconnect = await WireClient.open(
+ `ws://127.0.0.1:${h.port}/v1`,
+ OFFICIAL_ORIGIN
+ )
+ await pendingReconnect.takeJson()
+
+ const durableEntered = deferred()
+ const allowDurableRevoke = deferred()
+ const revokeDurably = h.credentials.revokeExtensionIdentity.bind(
+ h.credentials
+ )
+ vi.spyOn(h.credentials, 'revokeExtensionIdentity').mockImplementation(
+ async (browser, extensionId) => {
+ durableEntered.resolve()
+ await allowDurableRevoke.promise
+ return revokeDurably(browser, extensionId)
+ }
+ )
+
+ const revoke = h.server.revokeExtensionAccess(
+ {
+ kind: 'extension',
+ browser: 'chromium',
+ extensionId: OFFICIAL_ID,
+ },
+ 'user-revoked'
+ )
+ await durableEntered.promise
+
+ try {
+ // Cancellation happens synchronously before the durable await, closing
+ // both pre-auth state machines so neither can resume and adopt later.
+ await expect(pendingPair.closed).resolves.toMatchObject({
+ code: expect.any(Number),
+ })
+ await expect(pendingReconnect.closed).resolves.toMatchObject({
+ code: expect.any(Number),
+ })
+ expect(h.authenticated).toHaveLength(0)
+
+ // Hold durable revocation open to make the race deterministic. New pair
+ // and reconnect upgrades for this Origin are refused for the whole
+ // critical section. Pair refusal precedes nonce consumption.
+ const retryNonce = await fetchNonce(h.port)
+ await expect(
+ WireClient.open(
+ `ws://127.0.0.1:${h.port}/pair?nonce=${retryNonce}`,
+ OFFICIAL_ORIGIN
+ )
+ ).rejects.toThrow('unexpected-response 401')
+ await expect(
+ WireClient.open(`ws://127.0.0.1:${h.port}/v1`, OFFICIAL_ORIGIN)
+ ).rejects.toThrow('unexpected-response 401')
+
+ allowDurableRevoke.resolve()
+ await expect(revoke).resolves.toBe(0)
+
+ // The refused attempt did not burn its one-shot nonce; once the revoke
+ // section is complete the user can retry normally with the same value.
+ const after = await WireClient.open(
+ `ws://127.0.0.1:${h.port}/pair?nonce=${retryNonce}`,
+ OFFICIAL_ORIGIN
+ )
+ after.ws.close()
+ await after.closed
+ } finally {
+ // Keep teardown bounded if an assertion above fails before the durable
+ // operation is released.
+ allowDurableRevoke.resolve()
+ await revoke.catch(() => {})
+ }
+ })
+
+ it('cannot resurrect a credential whose durable offer returns after revoke completes', async () => {
+ const offerPersisted = deferred()
+ const allowOfferReturn = deferred()
+ const offerProvisional = h.credentials.offerProvisional.bind(h.credentials)
+ const delayedCredential: { value?: IssuedCredential } = {}
+ vi.spyOn(h.credentials, 'offerProvisional').mockImplementation(
+ async (principal, identity) => {
+ const offer = await offerProvisional(principal, identity)
+ delayedCredential.value = {
+ credentialId: offer.credentialId,
+ mutualKey: new Uint8Array(
+ Buffer.from(offer.mutualKeyB64, 'base64url')
+ ),
+ origin: principal.verifiedOrigin,
+ browser: principal.browser,
+ }
+ offerPersisted.resolve()
+ // Keep PairSession suspended after the real store has durably written
+ // the provisional. Revocation is therefore queued after that write,
+ // deletes it, and disposes the state machine before this call returns.
+ await allowOfferReturn.promise
+ return offer
+ }
+ )
+
+ const hs = await startPair({
+ port: h.port,
+ origin: OFFICIAL_ORIGIN,
+ browser: 'chromium',
+ claimedExtensionId: OFFICIAL_ID,
+ })
+ await runPake(hs, h.dialogs.latestCode())
+ await offerPersisted.promise
+
+ try {
+ await expect(
+ h.server.revokeExtensionAccess(
+ {
+ kind: 'extension',
+ browser: 'chromium',
+ extensionId: OFFICIAL_ID,
+ },
+ 'user-revoked'
+ )
+ ).resolves.toBe(1)
+ await expect(hs.wire.closed).resolves.toMatchObject({
+ code: expect.any(Number),
+ })
+
+ // Let the pre-revoke async continuation run only after the revoking gate
+ // has cleared. `dispose('access-revoked')` keeps it closed, so it cannot
+ // emit the offer or adopt a live session after this point.
+ allowOfferReturn.resolve()
+ await Promise.resolve()
+ await Promise.resolve()
+ expect(h.authenticated).toHaveLength(0)
+ expect(h.server.getSession(`chromium:${OFFICIAL_ID}`)).toBeUndefined()
+
+ const credential = delayedCredential.value
+ if (credential === undefined) {
+ throw new Error('durable offer did not expose its credential')
+ }
+ await expect(
+ reconnect({
+ port: h.port,
+ origin: OFFICIAL_ORIGIN,
+ instanceId: INSTANCE_ID,
+ credential,
+ })
+ ).rejects.toMatchObject({
+ frame: { type: 'pairError', code: 'authFailed' },
+ })
+ } finally {
+ allowOfferReturn.resolve()
+ }
+ })
+
+ it('reports authFailed identically for an unknown id and a bad MAC', async () => {
+ const paired = await pairFully(h)
+ paired.wire.ws.close()
+
+ for (const attempt of [
+ { credentialIdOverride: '00000000-0000-4000-8000-000000000000' },
+ { corruptMac: true },
+ ]) {
+ await expect(
+ reconnect({
+ port: h.port,
+ origin: OFFICIAL_ORIGIN,
+ instanceId: INSTANCE_ID,
+ credential: paired.credential,
+ ...attempt,
+ })
+ ).rejects.toMatchObject({
+ frame: { type: 'pairError', code: 'authFailed' },
+ })
+ }
+ })
+
+ it('rejects a stolen credential even when the attacker recomputes its MAC for the live Origin', async () => {
+ const paired = await pairFully(h)
+ paired.wire.ws.close()
+ const stolenCredential = {
+ ...paired.credential,
+ // Model an active attacker that has credentialId + mutualKey and builds
+ // RT from its own live Origin instead of preserving the victim's stored
+ // principal. Without a server-side principal comparison this MAC passes.
+ origin: SIDELOADED_ORIGIN,
+ }
+
+ await expect(
+ reconnect({
+ port: h.port,
+ origin: SIDELOADED_ORIGIN,
+ instanceId: INSTANCE_ID,
+ credential: stolenCredential,
+ })
+ ).rejects.toMatchObject({
+ frame: { type: 'pairError', code: 'authFailed' },
+ })
+ })
+
+ it('survives a second reconnect, so the provisional was really promoted', async () => {
+ const paired = await pairFully(h)
+ paired.wire.ws.close()
+ await paired.wire.closed
+
+ const first = await reconnect({
+ port: h.port,
+ origin: OFFICIAL_ORIGIN,
+ instanceId: INSTANCE_ID,
+ credential: paired.credential,
+ })
+ first.wire.ws.close()
+ await first.wire.closed
+
+ const second = await reconnect({
+ port: h.port,
+ origin: OFFICIAL_ORIGIN,
+ instanceId: INSTANCE_ID,
+ credential: paired.credential,
+ })
+ expect(second.channel.sealer).toBeDefined()
+ second.wire.ws.close()
+ })
+
+ it('rate-limits reconnect attempts per verified origin and globally', async () => {
+ // §8's closing requirement. `PreAuthTable`'s cap of 32 does NOT cover this:
+ // that bounds CONCURRENT pre-auth sockets, so a peer that connects, fails,
+ // and disconnects holds no slot and can retry as fast as it likes. The
+ // default per-origin allowance is 10 per rolling minute.
+ const opened: WireClient[] = []
+ for (let i = 0; i < 10; i++) {
+ opened.push(
+ await WireClient.open(`ws://127.0.0.1:${h.port}/v1`, OFFICIAL_ORIGIN)
+ )
+ }
+
+ // The 11th from the same origin is refused at the UPGRADE — no socket, no
+ // pre-authentication slot, no session object.
+ await expect(
+ WireClient.open(`ws://127.0.0.1:${h.port}/v1`, OFFICIAL_ORIGIN)
+ ).rejects.toThrow()
+
+ // Metered per origin, so a different extension is unaffected.
+ const other = await WireClient.open(
+ `ws://127.0.0.1:${h.port}/v1`,
+ SIDELOADED_ORIGIN
+ )
+ opened.push(other)
+
+ for (const wire of opened) {
+ wire.ws.close()
+ }
+ })
+})
+
+// ---------------------------------------------------------------------------
+// Appendix A — transcript misbinding and adversarial key generation
+// ---------------------------------------------------------------------------
+
+describe('Appendix A acceptance criteria', () => {
+ let h: Harness
+
+ beforeEach(async () => {
+ h = await makeHarness()
+ })
+
+ afterEach(async () => {
+ await h.server.stop()
+ })
+
+ it('breaks key confirmation when the client binds a different origin', async () => {
+ // Appendix A: "any swap of origin, browser, IDs, versions, nonce, or
+ // binding key between the parties MUST break key confirmation". This is the
+ // coarse form: it proves the server binds SOME origin into `A_id`. The two
+ // cases below pin *which* one.
+ const hs = await startPair({
+ port: h.port,
+ origin: OFFICIAL_ORIGIN,
+ browser: 'chromium',
+ claimedExtensionId: OFFICIAL_ID,
+ transcriptOrigin: SIDELOADED_ORIGIN,
+ })
+
+ // The RIGHT code, so the only disagreement is the transcript itself.
+ await expect(runPake(hs, h.dialogs.latestCode())).rejects.toMatchObject({
+ frame: { type: 'pairError', code: 'codeMismatch' },
+ })
+ })
+
+ // The named regression: a refactor that builds `A_id` from frame-claimed
+ // values instead of `deps.verifiedOrigin`. A client binding some *arbitrary*
+ // wrong origin cannot catch that — both the correct and the broken server
+ // disagree with it, so confirmation fails either way and the test stays
+ // green. Catching it requires the client to bind exactly what the broken
+ // server would bind, so that such a server AGREES and confirms a key.
+ //
+ // Firefox is the setting: there `claimedExtensionId` is the Gecko id and the
+ // verified origin is `moz-extension://<UUID>`, two genuinely different
+ // strings, so a substitution is observable. (On Chromium the server has
+ // already enforced that the origin host equals the claimed id, which is why
+ // several substitutions are indistinguishable there.)
+ const GECKO_ID = '[email protected]'
+
+ it.each([
+ ['the claimed extension id verbatim', GECKO_ID],
+ ['an origin rebuilt from the claimed id', `moz-extension://${GECKO_ID}`],
+ ['an empty origin, i.e. the field dropped', ''],
+ ])(
+ 'does not bind %s in place of the verified Origin',
+ async (_label, substituted) => {
+ const hs = await startPair({
+ port: h.port,
+ origin: FIREFOX_ORIGIN,
+ browser: 'firefox',
+ claimedExtensionId: GECKO_ID,
+ transcriptOrigin: substituted,
+ })
+
+ await expect(runPake(hs, h.dialogs.latestCode())).rejects.toMatchObject({
+ frame: { type: 'pairError', code: 'codeMismatch' },
+ })
+ }
+ )
+
+ // The `B_id` half: the server must bind its own identity into the transcript.
+ // Same reasoning as the `A_id` cases above — an arbitrary wrong instanceId
+ // only proves something is bound, so the empty case is included to catch the
+ // server dropping the field, where a client that also bound nothing would
+ // otherwise agree and confirm.
+ it.each([
+ ['a different instance', 'some-other-instance'],
+ ['an empty instanceId, i.e. the field dropped', ''],
+ ])('does not confirm against %s', async (_label, substituted) => {
+ const hs = await startPair({
+ port: h.port,
+ origin: OFFICIAL_ORIGIN,
+ browser: 'chromium',
+ claimedExtensionId: OFFICIAL_ID,
+ })
+
+ await expect(
+ runPake(hs, h.dialogs.latestCode(), {
+ instanceIdOverride: substituted,
+ })
+ ).rejects.toMatchObject({
+ frame: { type: 'pairError', code: 'codeMismatch' },
+ })
+ })
+
+ it('fails a grinder with adversarial key generation (Appendix A)', async () => {
+ // "Terminating MITM (own PAKE with each side) cannot produce two confirmed
+ // keys without the code; a grinder test with adversarial key generation
+ // MUST fail."
+ //
+ // The adversary never reads the dialog. It runs its own PAKE against the
+ // server, free to choose both its scalar and the `pA` it puts on the wire.
+ //
+ // Each choice gets a PRISTINE server on purpose. Sharing one would let
+ // §7.3's global lockout refuse the later choices at `pairHello`, before
+ // their `pA` ever reached the PAKE — the test would still pass and would
+ // have proven nothing about adversarial key generation.
+ const lowOrder = (hex: string) => new Uint8Array(Buffer.from(hex, 'hex'))
+ const choices: Array<{ label: string; pAOverride?: Uint8Array }> = [
+ { label: 'own PAKE under a guessed code' },
+ // The canonical edwards25519 low-order points. A server that fails to
+ // reject these collapses the shared secret into a value the adversary
+ // knows without knowing the code.
+ {
+ label: 'group identity as pA',
+ pAOverride: lowOrder(
+ '0100000000000000000000000000000000000000000000000000000000000000'
+ ),
+ },
+ {
+ label: 'order-2 pA',
+ pAOverride: lowOrder(
+ 'ecffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7f'
+ ),
+ },
+ {
+ label: 'order-8 pA',
+ pAOverride: lowOrder(
+ 'c7176a703d4dd84fba3c0b760d10670f2a2053fa2c39ccc64ec7fd7792ac037a'
+ ),
+ },
+ ]
+
+ for (const choice of choices) {
+ const fresh = await makeHarness()
+ try {
+ const outcome = await grind(fresh, choice.pAOverride)
+ // Any refusal is acceptable. What must never happen is a confirmed key.
+ expect(outcome, `grinder confirmed a key via ${choice.label}`).toBe(
+ 'REFUSED'
+ )
+ } finally {
+ await fresh.server.stop()
+ }
+ }
+ })
+
+ it('still refuses a grinder that keeps opening fresh sessions', async () => {
+ // The grinding motion itself: a new session per guess, so the per-session
+ // 3-attempt limit never applies. §7.3's global lockout is what stops it,
+ // and it must stop it without ever confirming.
+ const outcomes: string[] = []
+ for (let i = 0; i < 5; i++) {
+ outcomes.push(await grind(h))
+ }
+ expect(outcomes).toEqual(Array(5).fill('REFUSED'))
+ })
+})
+
+/**
+ * One adversarial pairing attempt that never reads the dialog code. Resolves
+ * `'CONFIRMED'` only if the server actually completed key confirmation —
+ * anything else, at any stage, is a refusal.
+ */
+async function grind(
+ h: Harness,
+ pAOverride?: Uint8Array
+): Promise<'CONFIRMED' | 'REFUSED'> {
+ try {
+ const hs = await startPair({
+ port: h.port,
+ origin: OFFICIAL_ORIGIN,
+ browser: 'chromium',
+ claimedExtensionId: OFFICIAL_ID,
+ })
+ try {
+ // A code the adversary picked, never the one on screen.
+ const guessed =
+ h.dialogs.latestCode() === 'AAAA-AAAA' ? 'BBBB-BBBB' : 'AAAA-AAAA'
+ await runPake(hs, guessed, { pAOverride })
+ return 'CONFIRMED'
+ } finally {
+ hs.wire.ws.close()
+ }
+ } catch (err) {
+ // A `pairError` at any stage — including a `rateLimited` refusal before the
+ // handshake even starts — is the server declining to proceed.
+ if (err instanceof PairAborted) {
+ return 'REFUSED'
+ }
+ throw err
+ }
+}
+
+// ---------------------------------------------------------------------------
+// §4 — startOnFirstFree
+// ---------------------------------------------------------------------------
+
+describe('startOnFirstFree', () => {
+ it('exposes the §4 candidate range', () => {
+ expect(BRIDGE_CANDIDATE_PORTS).toEqual([16802, 16803, 16804, 16805, 16806])
+ })
+
+ it('takes the first free candidate and skips an occupied one', async () => {
+ const [taken, free] = await allocatePorts(2)
+ const blocker = await occupy(taken)
+ const h = await makeUnstartedHarness()
+ try {
+ const bound = await h.startOnFirstFree('127.0.0.1', [taken, free])
+ expect(bound).toEqual({ port: free, degraded: false })
+ } finally {
+ await h.stop()
+ await closeServer(blocker)
+ }
+ })
+
+ it('falls back to an ephemeral port and reports degraded', async () => {
+ const ports = await allocatePorts(2)
+ const blockers = await Promise.all(ports.map(occupy))
+ const h = await makeUnstartedHarness()
+ try {
+ const bound = await h.startOnFirstFree('127.0.0.1', ports)
+ expect(bound.degraded).toBe(true)
+ expect(bound.port).toBeGreaterThan(0)
+ expect(ports).not.toContain(bound.port)
+ } finally {
+ await h.stop()
+ await Promise.all(blockers.map(closeServer))
+ }
+ })
+
+ it('rethrows a bind error that is not EADDRINUSE instead of falling back', async () => {
+ const h = await makeUnstartedHarness()
+ try {
+ // An address this host does not own: every candidate would fail the same
+ // way, and silently landing on an ephemeral port would hide it.
+ await expect(
+ h.startOnFirstFree('192.0.2.1', [16802])
+ ).rejects.toMatchObject({
+ code: expect.stringMatching(/EADDRNOTAVAIL|EACCES/),
+ })
+ } finally {
+ await h.stop()
+ }
+ })
+
+ it('still refuses a non-loopback bind without a token', async () => {
+ const h = new WebSocketBridgeServer({
+ pairing: makeStatefulFakePairing(),
+ registry: makeFakeRegistry(),
+ motrixVersion: '2.0',
+ runtime: 'server',
+ ffmpegAvailable: false,
+ localToken: '',
+ })
+ try {
+ await expect(h.startOnFirstFree('0.0.0.0', [16802])).rejects.toThrow(
+ /non-loopback|token/i
+ )
+ } finally {
+ await h.stop()
+ }
+ })
+})
+
+async function makeUnstartedHarness(): Promise<WebSocketBridgeServer> {
+ return new WebSocketBridgeServer({
+ pairing: makeStatefulFakePairing(),
+ registry: makeFakeRegistry(),
+ motrixVersion: '2.0',
+ runtime: 'electron',
+ ffmpegAvailable: false,
+ localToken: LOCAL_TOKEN,
+ })
+}
+
+/** Reserve N ephemeral ports and release them, so the scan has real targets. */
+async function allocatePorts(count: number): Promise<number[]> {
+ const servers = await Promise.all(
+ Array.from({ length: count }, () => occupy(0))
+ )
+ const ports = servers.map((s) => {
+ const addr = s.address()
+ if (!addr || typeof addr === 'string') throw new Error('no port')
+ return addr.port
+ })
+ await Promise.all(servers.map(closeServer))
+ return ports
+}
+
+function occupy(port: number): Promise<ReturnType<typeof createHttpServer>> {
+ const server = createHttpServer()
+ return new Promise((resolve, reject) => {
+ server.once('error', reject)
+ server.listen(port, '127.0.0.1', () => resolve(server))
+ })
+}
+
+function closeServer(
+ server: ReturnType<typeof createHttpServer>
+): Promise<void> {
+ return new Promise((resolve, reject) =>
+ server.close((err) => (err ? reject(err) : resolve()))
+ )
+}
diff --git a/src/core/bridge/__tests__/sse-mdxp.test.ts b/src/core/bridge/__tests__/sse-mdxp.test.ts
index 0898bbad..fa4c350d 100644
--- a/src/core/bridge/__tests__/sse-mdxp.test.ts
+++ b/src/core/bridge/__tests__/sse-mdxp.test.ts
@@ -87,7 +87,6 @@ describe('SSE GET /mdxp/events', () => {
server = new WebSocketBridgeServer({
pairing: makeFakePairing(),
registry: makeFakeRegistry(),
- onPairRequest: async () => ({ decision: 'allow', addToRegistry: false }),
motrixVersion: '2.0',
runtime: 'electron',
ffmpegAvailable: true,
@@ -168,7 +167,6 @@ describe('SSE revocation closes live streams', () => {
server = new WebSocketBridgeServer({
pairing,
registry: makeFakeRegistry(),
- onPairRequest: async () => ({ decision: 'allow', addToRegistry: false }),
motrixVersion: '2.0',
runtime: 'electron',
ffmpegAvailable: true,
@@ -262,7 +260,6 @@ describe('SSE rotation on device-code re-pair (end-to-end)', () => {
server = new WebSocketBridgeServer({
pairing,
registry: makeFakeRegistry(),
- onPairRequest: async () => ({ decision: 'deny', addToRegistry: false }),
motrixVersion: '2.0',
runtime: 'electron',
ffmpegAvailable: true,
diff --git a/src/core/bridge/__tests__/unary-mdxp.test.ts b/src/core/bridge/__tests__/unary-mdxp.test.ts
index a61a6d4b..3a5d9bd4 100644
--- a/src/core/bridge/__tests__/unary-mdxp.test.ts
+++ b/src/core/bridge/__tests__/unary-mdxp.test.ts
@@ -66,7 +66,6 @@ describe('unary POST /mdxp', () => {
server = new WebSocketBridgeServer({
pairing: makeFakePairing(),
registry: makeFakeRegistry(),
- onPairRequest: async () => ({ decision: 'allow', addToRegistry: false }),
motrixVersion: '2.0',
runtime: 'electron',
ffmpegAvailable: true,
@@ -105,8 +104,8 @@ describe('unary POST /mdxp', () => {
server.registerWriteMethods({
taskManager: {
getById: (id) =>
- id === 'created-1'
- ? makeDownloadTask({ id: 'created-1', status: TaskStatus.Queued })
+ id === 'created-1' || id === 'reveal-1'
+ ? makeDownloadTask({ id, status: TaskStatus.Queued })
: undefined,
},
pauseTask: async () => {},
@@ -114,6 +113,7 @@ describe('unary POST /mdxp', () => {
removeTask: async () => {},
createTask: async () => ({ taskId: 'created-1' }),
parseTorrentFileCount: async () => 1,
+ revealTask: async () => {},
})
port = await server.start()
})
@@ -210,6 +210,21 @@ describe('unary POST /mdxp', () => {
expect(res.body.error?.code).toBe(ErrorCodes.CapabilityNotSupported)
})
+ it('rejects paired-UI-only task/reveal on the unary agent surface', async () => {
+ const res = await postMdxp(
+ port,
+ {
+ jsonrpc: '2.0',
+ id: 'reveal',
+ method: 'task/reveal',
+ params: { taskId: 'reveal-1' },
+ },
+ { token: LOCAL_TOKEN }
+ )
+ expect(res.status).toBe(404)
+ expect(res.body.error?.code).toBe(ErrorCodes.CapabilityNotSupported)
+ })
+
it('rejects an unknown method with 404 CapabilityNotSupported', async () => {
const res = await postMdxp(
port,
@@ -264,7 +279,6 @@ describe('unary POST /mdxp — AppError normalization', () => {
server = new WebSocketBridgeServer({
pairing: makeFakePairing(),
registry: makeFakeRegistry(),
- onPairRequest: async () => ({ decision: 'allow', addToRegistry: false }),
motrixVersion: '2.0',
runtime: 'electron',
ffmpegAvailable: true,
@@ -329,7 +343,6 @@ describe('unary POST /mdxp — paired-token auth (device-code)', () => {
server = new WebSocketBridgeServer({
pairing: makeFakePairing({ 'cli-tok': cliClient, 'ext-tok': extClient }),
registry: makeFakeRegistry(),
- onPairRequest: async () => ({ decision: 'deny', addToRegistry: false }),
motrixVersion: '2.0',
runtime: 'electron',
ffmpegAvailable: true,
diff --git a/src/core/bridge/__tests__/web-socket-bridge-server.test.ts b/src/core/bridge/__tests__/web-socket-bridge-server.test.ts
index c88565fc..6b5161ef 100644
--- a/src/core/bridge/__tests__/web-socket-bridge-server.test.ts
+++ b/src/core/bridge/__tests__/web-socket-bridge-server.test.ts
@@ -1,17 +1,50 @@
+import { EventEmitter } from 'node:events'
import type { Browser } from '@core/bridge/bridge-connection'
import type { ReadHandlerDeps } from '@core/bridge/handlers/read-handlers'
import type { WriteHandlerDeps } from '@core/bridge/handlers/write-handlers'
+import {
+ DIR_C2S,
+ DIR_S2C,
+ EnvelopeLimitError,
+ EnvelopeOpener,
+ EnvelopeSealer,
+ EnvelopeViolationError,
+ MAX_ENVELOPE_FRAMES,
+} from '@core/bridge/mbp1/envelope'
import type { TrustedExtensionRegistry } from '@core/bridge/trusted-extension-registry'
-import { WebSocketBridgeServer } from '@core/bridge/web-socket-bridge-server'
import {
- WebSocketMessageReader,
- WebSocketMessageWriter,
-} from '@core/bridge/web-socket-message-stream'
-import { createMdxpConnection } from '@motrix/mdxp'
+ WebSocketBridgeServer,
+ WS_CLOSE_ENVELOPE_USAGE_LIMIT,
+ WS_CLOSE_INTERNAL_ERROR,
+ WS_CLOSE_PROTOCOL_ERROR,
+} from '@core/bridge/web-socket-bridge-server'
+import type { WebSocketLike } from '@core/bridge/web-socket-message-stream'
import { EngineState } from '@shared/types/engine'
-import { afterEach, beforeEach, describe, expect, it } from 'vitest'
+import { TaskStatus } from '@shared/types/task'
+import { makeDownloadTask } from '@test-utils/task'
+import {
+ afterEach,
+ beforeEach,
+ describe,
+ expect,
+ it,
+ type Mock,
+ vi,
+} from 'vitest'
import WebSocket from 'ws'
-import { makeStatefulFakePairing } from './fakes'
+import {
+ type Mbp1TestWiring,
+ makeMbp1TestWiring,
+ makeStatefulFakePairing,
+} from './fakes'
+import {
+ initializeParams,
+ mdxpOverChannel,
+ pairAndExchange,
+} from './mbp1-client'
+
+const EXTENSION_ID = 'wsstextensionidaaaaaaaaaaaaaaaaa'
+const ORIGIN = `chrome-extension://${EXTENSION_ID}`
function makeFakeRegistry(): TrustedExtensionRegistry {
const allow = new Set<string>(['chromium:abc'])
@@ -24,15 +57,37 @@ function makeFakeRegistry(): TrustedExtensionRegistry {
} as unknown as TrustedExtensionRegistry
}
-describe('WebSocketBridgeServer (JSON-RPC)', () => {
+/** An upgrade attempt, resolving `true` only if the socket actually opened. */
+function tryUpgrade(
+ port: number,
+ path: string,
+ opts: { origin?: string; subprotocol?: string } = {}
+): Promise<boolean> {
+ return new Promise((resolve) => {
+ const ws = new WebSocket(
+ `ws://127.0.0.1:${port}${path}`,
+ opts.subprotocol === undefined ? [] : opts.subprotocol,
+ { origin: opts.origin }
+ )
+ ws.once('open', () => {
+ ws.terminate()
+ resolve(true)
+ })
+ ws.once('error', () => resolve(false))
+ })
+}
+
+describe('WebSocketBridgeServer upgrade gates', () => {
let server: WebSocketBridgeServer
let port: number
beforeEach(async () => {
+ // Deliberately WITHOUT the six MBP1 options: this is a shell that has not
+ // wired MBP1, and both extension routes must fail closed rather than fall
+ // back to an unauthenticated surface.
server = new WebSocketBridgeServer({
pairing: makeStatefulFakePairing(),
registry: makeFakeRegistry(),
- onPairRequest: async () => ({ decision: 'allow', addToRegistry: false }),
motrixVersion: '2.0',
runtime: 'electron',
ffmpegAvailable: true,
@@ -45,221 +100,45 @@ describe('WebSocketBridgeServer (JSON-RPC)', () => {
await server.stop()
})
- it('/pair flow returns pairToken via motrix/initialize', async () => {
- const nonce = server.issuePairNonce()
- const ws = new WebSocket(
- `ws://127.0.0.1:${port}/pair?nonce=${nonce}&extensionId=abc&browser=chromium&extensionName=test&extensionVersion=0.1`,
- 'motrix-bridge.v1',
- { origin: 'chrome-extension://abc' }
- )
- await new Promise<void>((resolve, reject) => {
- ws.once('open', () => resolve())
- ws.once('error', reject)
- })
-
- const reader = new WebSocketMessageReader(ws as never)
- const writer = new WebSocketMessageWriter(ws as never)
- const conn = createMdxpConnection(reader, writer)
- conn.listen()
-
- const result = await conn.sendRequest('motrix/initialize', {
- protocolVersion: '1.0',
- client: {
- kind: 'extension',
- name: 'motrix-extension',
- version: '0.1',
- extensionId: 'abc',
- browser: 'chromium',
- browserVersion: '120',
- locale: 'en',
- },
- capabilities: { submitDownload: true },
- adapters: [],
- })
-
- expect(result.protocolVersion).toBe('1.0')
- expect(result.server.name).toBe('motrix')
- expect(result.pairToken).toMatch(/^tok-/)
-
- conn.dispose()
- ws.close()
+ it('rejects a non-extension origin', async () => {
+ await expect(
+ tryUpgrade(port, '/v1', {
+ origin: 'https://evil.example',
+ subprotocol: 'motrix-bridge.v1',
+ })
+ ).resolves.toBe(false)
})
- it('/v1 with valid token succeeds', async () => {
- // First pair to get a token.
- const nonce = server.issuePairNonce()
- const pairWs = new WebSocket(
- `ws://127.0.0.1:${port}/pair?nonce=${nonce}&extensionId=abc&browser=chromium`,
- 'motrix-bridge.v1',
- { origin: 'chrome-extension://abc' }
- )
- await new Promise<void>((resolve) => pairWs.once('open', resolve))
- const pairConn = createMdxpConnection(
- new WebSocketMessageReader(pairWs as never),
- new WebSocketMessageWriter(pairWs as never)
- )
- pairConn.listen()
- const initResult = await pairConn.sendRequest('motrix/initialize', {
- protocolVersion: '1.0',
- client: {
- kind: 'extension',
- name: 'motrix-extension',
- version: '0.1',
- extensionId: 'abc',
- browser: 'chromium',
- browserVersion: '120',
- locale: 'en',
- },
- capabilities: {},
- adapters: [],
- })
- const token = initResult.pairToken
- expect(token).toBeDefined()
- pairConn.dispose()
- pairWs.close()
-
- // Now reconnect via /v1 with the token.
- const v1Ws = new WebSocket(
- `ws://127.0.0.1:${port}/v1?token=${token}`,
- 'motrix-bridge.v1',
- { origin: 'chrome-extension://abc' }
+ it('rejects an upgrade without the motrix-bridge.v1 subprotocol', async () => {
+ await expect(tryUpgrade(port, '/v1', { origin: ORIGIN })).resolves.toBe(
+ false
)
- await new Promise<void>((resolve, reject) => {
- v1Ws.once('open', () => resolve())
- v1Ws.once('error', reject)
- })
- const v1Conn = createMdxpConnection(
- new WebSocketMessageReader(v1Ws as never),
- new WebSocketMessageWriter(v1Ws as never)
- )
- v1Conn.listen()
- const reconnectResult = await v1Conn.sendRequest('motrix/initialize', {
- protocolVersion: '1.0',
- client: {
- kind: 'extension',
- name: 'motrix-extension',
- version: '0.1',
- extensionId: 'abc',
- browser: 'chromium',
- browserVersion: '120',
- locale: 'en',
- },
- capabilities: {},
- adapters: [],
- })
- expect(reconnectResult.protocolVersion).toBe('1.0')
- v1Conn.dispose()
- v1Ws.close()
})
- it('/v1 with invalid token closes with 401', async () => {
- const ws = new WebSocket(
- `ws://127.0.0.1:${port}/v1?token=bogus`,
- 'motrix-bridge.v1',
- { origin: 'chrome-extension://abc' }
- )
+ it('refuses both extension routes when MBP1 is not wired', async () => {
+ // The query is irrelevant on either route now — there is no `?token=` path
+ // and no legacy `/pair` identity query left to reach.
await expect(
- new Promise<void>((resolve, reject) => {
- ws.once('open', resolve)
- ws.once('error', reject)
+ tryUpgrade(port, '/v1?token=bogus', {
+ origin: ORIGIN,
+ subprotocol: 'motrix-bridge.v1',
})
- ).rejects.toThrow()
- })
-
- it('rejects upgrade without motrix-bridge.v1 subprotocol', async () => {
- const ws = new WebSocket(`ws://127.0.0.1:${port}/v1?token=x`, {
- origin: 'chrome-extension://abc',
- })
+ ).resolves.toBe(false)
await expect(
- new Promise<void>((resolve, reject) => {
- ws.once('open', resolve)
- ws.once('error', reject)
+ tryUpgrade(port, '/pair?nonce=bogus', {
+ origin: ORIGIN,
+ subprotocol: 'motrix-bridge.v1',
})
- ).rejects.toThrow()
+ ).resolves.toBe(false)
})
- it('system/ping round-trip on /v1 session', async () => {
- // Pair first
- const nonce = server.issuePairNonce()
- const pairWs = new WebSocket(
- `ws://127.0.0.1:${port}/pair?nonce=${nonce}&extensionId=abc&browser=chromium`,
- 'motrix-bridge.v1',
- { origin: 'chrome-extension://abc' }
- )
- await new Promise<void>((resolve) => pairWs.once('open', resolve))
- const pc = createMdxpConnection(
- new WebSocketMessageReader(pairWs as never),
- new WebSocketMessageWriter(pairWs as never)
- )
- pc.listen()
- const ir = await pc.sendRequest('motrix/initialize', {
- protocolVersion: '1.0',
- client: {
- kind: 'extension',
- name: 'x',
- version: '1',
- extensionId: 'abc',
- browser: 'chromium',
- browserVersion: '1',
- locale: 'en',
- },
- capabilities: {},
- adapters: [],
- })
- pc.dispose()
- pairWs.close()
-
- // Now /v1
- const ws = new WebSocket(
- `ws://127.0.0.1:${port}/v1?token=${ir.pairToken}`,
- 'motrix-bridge.v1',
- { origin: 'chrome-extension://abc' }
- )
- await new Promise<void>((resolve) => ws.once('open', resolve))
- const conn = createMdxpConnection(
- new WebSocketMessageReader(ws as never),
- new WebSocketMessageWriter(ws as never)
- )
- conn.listen()
-
- const before = Date.now()
- const pong = await conn.sendRequest('system/ping', { sentAt: before })
- expect(pong.sentAt).toBe(before)
- expect(pong.recvAt).toBeGreaterThanOrEqual(before)
-
- conn.dispose()
- ws.close()
- })
-
- it('GET /nonce returns a fresh nonce JSON', async () => {
- const res = await fetch(`http://127.0.0.1:${port}/nonce`)
- expect(res.status).toBe(200)
- const json = (await res.json()) as { nonce: string }
- expect(json.nonce).toMatch(/^[A-Za-z0-9_-]{16,}$/)
- })
-
- it('consumes a pairing nonce exactly once', async () => {
- const nonce = server.issuePairNonce()
- const pairUrl = `ws://127.0.0.1:${port}/pair?nonce=${nonce}&extensionId=abc&browser=chromium`
- const first = new WebSocket(pairUrl, 'motrix-bridge.v1', {
- origin: 'chrome-extension://abc',
- })
- await new Promise<void>((resolve, reject) => {
- first.once('open', resolve)
- first.once('error', reject)
- })
-
- const replay = new WebSocket(pairUrl, 'motrix-bridge.v1', {
- origin: 'chrome-extension://abc',
- })
+ it('rejects an unknown path', async () => {
await expect(
- new Promise<void>((resolve, reject) => {
- replay.once('open', resolve)
- replay.once('error', reject)
+ tryUpgrade(port, '/nope', {
+ origin: ORIGIN,
+ subprotocol: 'motrix-bridge.v1',
})
- ).rejects.toThrow()
-
- first.close()
+ ).resolves.toBe(false)
})
})
@@ -268,7 +147,6 @@ describe('WebSocketBridgeServer.start() bind guard', () => {
return new WebSocketBridgeServer({
pairing: makeStatefulFakePairing(),
registry: makeFakeRegistry(),
- onPairRequest: async () => ({ decision: 'allow', addToRegistry: false }),
motrixVersion: '2.0',
runtime: 'electron',
ffmpegAvailable: true,
@@ -330,78 +208,36 @@ function makeFakeReadDeps(): ReadHandlerDeps {
}
}
-function makeFakeWriteDeps(): WriteHandlerDeps {
+function makeFakeWriteDeps(
+ revealTask?: (taskId: string) => Promise<void>
+): WriteHandlerDeps {
return {
- taskManager: { getById: () => undefined },
+ taskManager: {
+ getById: (id) =>
+ id === 'task-1'
+ ? makeDownloadTask({
+ id: 'task-1',
+ status: TaskStatus.Completed,
+ })
+ : undefined,
+ },
pauseTask: async () => {},
resumeTask: async () => {},
removeTask: async () => {},
createTask: async () => ({ taskId: 'new-task' }),
parseTorrentFileCount: async () => 0,
+ ...(revealTask ? { revealTask } : {}),
}
}
-/** Pair an extension via /pair + motrix/initialize and return the pairToken. */
-async function pairExtension(port: number): Promise<{ token: string }> {
- const nonce = (await (
- await fetch(`http://127.0.0.1:${port}/nonce`)
- ).json()) as { nonce: string }
- const ws = new WebSocket(
- `ws://127.0.0.1:${port}/pair?nonce=${nonce.nonce}&extensionId=abc&browser=chromium`,
- 'motrix-bridge.v1',
- { origin: 'chrome-extension://abc' }
- )
- await new Promise<void>((resolve) => ws.once('open', resolve))
- const conn = createMdxpConnection(
- new WebSocketMessageReader(ws as never),
- new WebSocketMessageWriter(ws as never)
- )
- conn.listen()
- const result = await conn.sendRequest('motrix/initialize', {
- protocolVersion: '1.0',
- client: {
- kind: 'extension',
- name: 'motrix-extension',
- version: '0.1',
- extensionId: 'abc',
- browser: 'chromium',
- browserVersion: '120',
- locale: 'en',
- },
- capabilities: { submitDownload: true },
- adapters: [],
- })
- conn.dispose()
- ws.close()
- return { token: result.pairToken as string }
-}
-
-/** Open a /v1 WebSocket with the given token, send motrix/initialized, return the connection. */
-async function openV1Session(
- port: number,
- token: string
-): Promise<{ conn: ReturnType<typeof createMdxpConnection>; ws: WebSocket }> {
- const ws = new WebSocket(
- `ws://127.0.0.1:${port}/v1?token=${token}`,
- 'motrix-bridge.v1',
- { origin: 'chrome-extension://abc' }
- )
- await new Promise<void>((resolve) => ws.once('open', resolve))
- const conn = createMdxpConnection(
- new WebSocketMessageReader(ws as never),
- new WebSocketMessageWriter(ws as never)
- )
- conn.listen()
- // Signal ready (mirrors extension behaviour post-initialize on /v1).
- conn.sendNotification('motrix/initialized', undefined as never)
- return { conn, ws }
-}
-
describe('WebSocketBridgeServer – v1 control-plane over WS', () => {
let server: WebSocketBridgeServer
+ let mbp1: Mbp1TestWiring
let port: number
+ let revealTask: Mock<(taskId: string) => Promise<void>>
beforeEach(async () => {
+ mbp1 = await makeMbp1TestWiring([['chromium', EXTENSION_ID]])
server = new WebSocketBridgeServer({
pairing: makeStatefulFakePairing(),
registry: {
@@ -411,14 +247,15 @@ describe('WebSocketBridgeServer – v1 control-plane over WS', () => {
remove: async () => {},
listManifestIds: () => [],
} as unknown as TrustedExtensionRegistry,
- onPairRequest: async () => ({ decision: 'allow', addToRegistry: false }),
motrixVersion: '2.0',
runtime: 'electron',
ffmpegAvailable: true,
localToken: 'test-token',
+ ...mbp1.options,
})
server.registerReadMethods(makeFakeReadDeps())
- server.registerWriteMethods(makeFakeWriteDeps())
+ revealTask = vi.fn(async (_taskId: string) => {})
+ server.registerWriteMethods(makeFakeWriteDeps(revealTask))
port = await server.start()
})
@@ -427,9 +264,20 @@ describe('WebSocketBridgeServer – v1 control-plane over WS', () => {
})
it('exposes the v1 control-plane over a paired extension WS but not download/add', async () => {
- // Arrange: pair first to get a token, then open /v1.
- const { token } = await pairExtension(port)
- const { conn, ws } = await openV1Session(port, token)
+ const paired = await pairAndExchange({
+ port,
+ origin: ORIGIN,
+ browser: 'chromium',
+ claimedExtensionId: EXTENSION_ID,
+ code: () => mbp1.dialogs.latestCode(),
+ })
+ const conn = mdxpOverChannel(paired.wire, paired.channel)
+ const initialized = await conn.sendRequest(
+ 'motrix/initialize',
+ initializeParams(EXTENSION_ID)
+ )
+ expect(initialized.capabilities.taskReveal).toBe(true)
+ conn.sendNotification('motrix/initialized', undefined as never)
// task/list reaches the dispatcher and returns its shape.
const list = await conn.sendRequest('task/list', {})
@@ -439,6 +287,12 @@ describe('WebSocketBridgeServer – v1 control-plane over WS', () => {
const stats = await conn.sendRequest('stats/get', {})
expect(stats).toHaveProperty('activeTasks')
+ // task/reveal is a user-gesture method on the paired extension surface.
+ await expect(
+ conn.sendRequest('task/reveal', { taskId: 'task-1' })
+ ).resolves.toEqual({ ok: true })
+ expect(revealTask).toHaveBeenCalledWith('task-1')
+
// download/add is NOT wired on WS → MethodNotFound (-32601).
await expect(
conn.sendRequest('download/add', {
@@ -449,6 +303,149 @@ describe('WebSocketBridgeServer – v1 control-plane over WS', () => {
).rejects.toMatchObject({ code: -32601 })
conn.dispose()
- ws.close()
+ paired.wire.ws.close()
+ })
+
+ it('round-trips system/ping inside the AEAD channel', async () => {
+ const paired = await pairAndExchange({
+ port,
+ origin: ORIGIN,
+ browser: 'chromium',
+ claimedExtensionId: EXTENSION_ID,
+ code: () => mbp1.dialogs.latestCode(),
+ })
+ const conn = mdxpOverChannel(paired.wire, paired.channel)
+
+ const before = Date.now()
+ const pong = await conn.sendRequest('system/ping', { sentAt: before })
+ expect(pong.sentAt).toBe(before)
+ expect(pong.recvAt).toBeGreaterThanOrEqual(before)
+
+ conn.dispose()
+ paired.wire.ws.close()
+ })
+})
+
+// ---------------------------------------------------------------------------
+// Envelope-fault -> WS close-code wiring
+// ---------------------------------------------------------------------------
+
+/**
+ * A minimal `WebSocketLike` double, exercised directly against
+ * `adoptAuthenticatedSession` rather than through a real upgrade: the fault
+ * classification these tests cover lives entirely in what the envelope
+ * stream reports and how the wiring maps it to a close code, none of which
+ * depends on a real socket or a completed handshake.
+ */
+class FakeExtensionSocket extends EventEmitter {
+ readyState = 1
+ readonly closedWith: Array<[number | undefined, string | undefined]> = []
+ readonly sent: Array<string | Uint8Array> = []
+
+ send(data: string | Uint8Array): void {
+ this.sent.push(data)
+ }
+
+ close(code?: number, reason?: string): void {
+ this.closedWith.push([code, reason])
+ this.readyState = 3
+ }
+
+ asLike(): WebSocketLike {
+ return this as unknown as WebSocketLike
+ }
+}
+
+describe('WebSocketBridgeServer.adoptAuthenticatedSession — envelope fault close codes', () => {
+ let server: WebSocketBridgeServer
+ const KEY = new Uint8Array(32).fill(3)
+ const IDENTITY = {
+ kind: 'extension' as const,
+ browser: 'chromium' as const,
+ extensionId: EXTENSION_ID,
+ }
+
+ beforeEach(async () => {
+ server = new WebSocketBridgeServer({
+ pairing: makeStatefulFakePairing(),
+ registry: makeFakeRegistry(),
+ motrixVersion: '2.0',
+ runtime: 'electron',
+ ffmpegAvailable: true,
+ localToken: 'test-token',
+ })
+ await server.start()
+ })
+
+ afterEach(async () => {
+ await server.stop()
+ })
+
+ it('closes with the usage-limit code — not protocol-error or internal-error — when an inbound §10 bound is reached', () => {
+ const ws = new FakeExtensionSocket()
+ server.adoptAuthenticatedSession(ws.asLike(), IDENTITY, {
+ sealer: new EnvelopeSealer(KEY, DIR_S2C),
+ // Already AT the frame-count bound: the very next open() throws
+ // EnvelopeLimitError before it even looks at the frame's contents.
+ opener: new EnvelopeOpener(KEY, DIR_C2S, MAX_ENVELOPE_FRAMES),
+ })
+
+ ws.emit('message', Buffer.alloc(8 + 16), true)
+
+ expect(ws.closedWith).toEqual([[WS_CLOSE_ENVELOPE_USAGE_LIMIT, undefined]])
+ })
+
+ it('still closes with the protocol-error code for an ordinary peer violation', () => {
+ const ws = new FakeExtensionSocket()
+ server.adoptAuthenticatedSession(ws.asLike(), IDENTITY, {
+ sealer: new EnvelopeSealer(KEY, DIR_S2C),
+ opener: new EnvelopeOpener(KEY, DIR_C2S),
+ })
+
+ // §10: a text frame after channel activation is a protocol violation.
+ ws.emit('message', Buffer.from('not an envelope'), false)
+
+ expect(ws.closedWith).toEqual([[WS_CLOSE_PROTOCOL_ERROR, undefined]])
+ })
+
+ it('closes with the usage-limit code when an OUTBOUND §10 bound is reached', () => {
+ const ws = new FakeExtensionSocket()
+ server.adoptAuthenticatedSession(ws.asLike(), IDENTITY, {
+ // Already AT the frame-count bound: the very next seal() throws, and no
+ // later one can ever succeed, so the connection must be re-established
+ // with fresh keys (§8) — the one seal failure that is a connection-level
+ // event rather than a single failed write.
+ sealer: new EnvelopeSealer(KEY, DIR_S2C, MAX_ENVELOPE_FRAMES),
+ opener: new EnvelopeOpener(KEY, DIR_C2S),
+ })
+ const session = server.getSession(`chromium:${EXTENSION_ID}`)
+ if (!session) throw new Error('session was not registered')
+
+ expect(() => session.envelope.send('{"jsonrpc":"2.0"}')).toThrow(
+ EnvelopeLimitError
+ )
+
+ expect(ws.closedWith).toEqual([[WS_CLOSE_ENVELOPE_USAGE_LIMIT, undefined]])
+ })
+
+ it('closes with the internal-error code when an outbound frame exceeds the 1 MiB cap', () => {
+ // Outbound oversize is this process violating §10, not the peer violating
+ // it. The refused application frame can desynchronize request state, so
+ // the session fails closed with 1011 rather than staying half-usable.
+ const ws = new FakeExtensionSocket()
+ server.adoptAuthenticatedSession(ws.asLike(), IDENTITY, {
+ sealer: new EnvelopeSealer(KEY, DIR_S2C),
+ opener: new EnvelopeOpener(KEY, DIR_C2S),
+ })
+ const session = server.getSession(`chromium:${EXTENSION_ID}`)
+ if (!session) throw new Error('session was not registered')
+
+ expect(() =>
+ session.envelope.send(new Uint8Array(1024 * 1024 + 1))
+ ).toThrow(EnvelopeViolationError)
+
+ expect(ws.closedWith).toEqual([[WS_CLOSE_INTERNAL_ERROR, undefined]])
+ expect(ws.readyState).toBe(3)
+ expect(ws.sent).toHaveLength(0)
})
})
diff --git a/src/core/bridge/bridge-connection.ts b/src/core/bridge/bridge-connection.ts
index 44ef3f85..196d90bf 100644
--- a/src/core/bridge/bridge-connection.ts
+++ b/src/core/bridge/bridge-connection.ts
@@ -81,6 +81,17 @@ export class BridgeConnection {
this.authorized = true
}
+ /**
+ * Irreversibly cut off this live session before its WebSocket drains.
+ * Revocation notifications are best-effort and may need a short flush
+ * window, but inbound control-plane dispatch and outbound ready-session
+ * selection must stop immediately.
+ */
+ revokeAuthorization(): void {
+ this.authorized = false
+ this.ready = false
+ }
+
/** Begin processing inbound frames. Call AFTER registering handlers. */
listen(): void {
if (this.listened) return
diff --git a/src/core/bridge/bridge-event-bus.test.ts b/src/core/bridge/bridge-event-bus.test.ts
index 2716ef4c..ed973845 100644
--- a/src/core/bridge/bridge-event-bus.test.ts
+++ b/src/core/bridge/bridge-event-bus.test.ts
@@ -10,8 +10,8 @@ describe('BridgeEventBus', () => {
kind: 'extension',
pairingNonce: 'nonce-1',
extensionId: 'ext-1',
- extensionName: 'Test',
- extensionVersion: '1',
+ identity: 'official',
+ code: '1234-5678',
browser: 'chromium',
})
expect(received).toHaveLength(1)
diff --git a/src/core/bridge/bridge-identity.test.ts b/src/core/bridge/bridge-identity.test.ts
new file mode 100644
index 00000000..c7f44221
--- /dev/null
+++ b/src/core/bridge/bridge-identity.test.ts
@@ -0,0 +1,89 @@
+import fs from 'node:fs/promises'
+import os from 'node:os'
+import path from 'node:path'
+import { afterEach, beforeEach, describe, expect, it } from 'vitest'
+import { loadOrCreateBridgeIdentity } from './bridge-identity'
+
+const UUID_PATTERN =
+ /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i
+const TOKEN_PATTERN = /^[A-Za-z0-9_-]{43,128}$/
+
+describe('loadOrCreateBridgeIdentity', () => {
+ let tmpDir: string
+ let tokenFilePath: string
+
+ beforeEach(async () => {
+ tmpDir = await fs.mkdtemp(path.join(os.tmpdir(), 'bridge-identity-'))
+ tokenFilePath = path.join(tmpDir, 'local-token')
+ })
+
+ afterEach(async () => {
+ await fs.rm(tmpDir, { recursive: true, force: true })
+ })
+
+ it('creates a 43-char base64url token file at 0600 on first call', async () => {
+ const identity = await loadOrCreateBridgeIdentity(tokenFilePath)
+
+ expect(identity.localToken).toMatch(TOKEN_PATTERN)
+ expect(identity.localToken).toHaveLength(43)
+ expect(identity.serverGeneration).toMatch(UUID_PATTERN)
+
+ const onDisk = await fs.readFile(tokenFilePath, 'utf-8')
+ expect(onDisk).toBe(identity.localToken)
+
+ if (process.platform !== 'win32') {
+ const st = await fs.stat(tokenFilePath)
+ expect(st.mode & 0o777).toBe(0o600)
+ }
+ })
+
+ it('returns the same localToken but a different serverGeneration on the second call', async () => {
+ const first = await loadOrCreateBridgeIdentity(tokenFilePath)
+ const second = await loadOrCreateBridgeIdentity(tokenFilePath)
+
+ expect(second.localToken).toBe(first.localToken)
+ expect(second.serverGeneration).not.toBe(first.serverGeneration)
+ expect(second.serverGeneration).toMatch(UUID_PATTERN)
+ })
+
+ it('regenerates the token when the file is empty', async () => {
+ await fs.mkdir(path.dirname(tokenFilePath), { recursive: true })
+ await fs.writeFile(tokenFilePath, '', 'utf-8')
+
+ const identity = await loadOrCreateBridgeIdentity(tokenFilePath)
+
+ expect(identity.localToken).toMatch(TOKEN_PATTERN)
+ })
+
+ it('regenerates the token when the file is not base64url', async () => {
+ await fs.mkdir(path.dirname(tokenFilePath), { recursive: true })
+ await fs.writeFile(tokenFilePath, 'not-a-valid-token!!!', 'utf-8')
+
+ const identity = await loadOrCreateBridgeIdentity(tokenFilePath)
+
+ expect(identity.localToken).toMatch(TOKEN_PATTERN)
+ expect(identity.localToken).not.toBe('not-a-valid-token!!!')
+ })
+
+ it('regenerates the token when the file exceeds 128 characters', async () => {
+ await fs.mkdir(path.dirname(tokenFilePath), { recursive: true })
+ await fs.writeFile(tokenFilePath, 'a'.repeat(200), 'utf-8')
+
+ const identity = await loadOrCreateBridgeIdentity(tokenFilePath)
+
+ expect(identity.localToken).toMatch(TOKEN_PATTERN)
+ expect(identity.localToken).not.toBe('a'.repeat(200))
+ })
+
+ it('re-chmods the file to 0600 even when permissions were loosened', async () => {
+ if (process.platform === 'win32') return // POSIX mode bits only
+ const first = await loadOrCreateBridgeIdentity(tokenFilePath)
+ await fs.chmod(tokenFilePath, 0o644)
+
+ const second = await loadOrCreateBridgeIdentity(tokenFilePath)
+ expect(second.localToken).toBe(first.localToken)
+
+ const st = await fs.stat(tokenFilePath)
+ expect(st.mode & 0o777).toBe(0o600)
+ })
+})
diff --git a/src/core/bridge/bridge-identity.ts b/src/core/bridge/bridge-identity.ts
new file mode 100644
index 00000000..87155786
--- /dev/null
+++ b/src/core/bridge/bridge-identity.ts
@@ -0,0 +1,60 @@
+import { randomBytes, randomUUID } from 'node:crypto'
+import { chmod, mkdir, readFile } from 'node:fs/promises'
+import { dirname } from 'node:path'
+import writeFileAtomic from 'write-file-atomic'
+
+const TOKEN_PATTERN = /^[A-Za-z0-9_-]{43,128}$/
+
+export interface BridgeIdentity {
+ localToken: string
+ serverGeneration: string
+}
+
+/**
+ * Load (or create) the bridge's persistent machine-owner identity.
+ *
+ * `localToken` is the attestation root the native host derives its
+ * ticket-MAC key from (spec §9.1) — it MUST survive bridge restarts, so it
+ * is read from `tokenFilePath` when present and only minted once. A file
+ * that is missing, unreadable, or fails the `operator-token`-style shape
+ * check is treated as absent and regenerated.
+ *
+ * `serverGeneration` is the opposite: a fresh UUID on EVERY call, so a
+ * ticket minted before a restart is a stale-generation downgrade rather
+ * than a MAC failure (spec §9.2).
+ *
+ * The token file is written atomically at owner-only (0600) permissions,
+ * and re-chmodded on load so a file loosened out-of-band is tightened
+ * again rather than silently trusted.
+ */
+export async function loadOrCreateBridgeIdentity(
+ tokenFilePath: string
+): Promise<BridgeIdentity> {
+ await mkdir(dirname(tokenFilePath), { recursive: true })
+
+ const existing = await readExistingToken(tokenFilePath)
+ const localToken = existing ?? (await createToken(tokenFilePath))
+
+ return { localToken, serverGeneration: randomUUID() }
+}
+
+async function readExistingToken(
+ tokenFilePath: string
+): Promise<string | undefined> {
+ let raw: string
+ try {
+ raw = await readFile(tokenFilePath, 'utf-8')
+ } catch {
+ return undefined
+ }
+ if (!TOKEN_PATTERN.test(raw)) return undefined
+ await chmod(tokenFilePath, 0o600)
+ return raw
+}
+
+async function createToken(tokenFilePath: string): Promise<string> {
+ const token = randomBytes(32).toString('base64url')
+ await writeFileAtomic(tokenFilePath, token, { mode: 0o600 })
+ await chmod(tokenFilePath, 0o600)
+ return token
+}
diff --git a/src/core/bridge/credential-store.test.ts b/src/core/bridge/credential-store.test.ts
new file mode 100644
index 00000000..5c7a8b84
--- /dev/null
+++ b/src/core/bridge/credential-store.test.ts
@@ -0,0 +1,628 @@
+import fs from 'node:fs/promises'
+import os from 'node:os'
+import path from 'node:path'
+import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
+import type { CredentialPrincipal, StoredCredential } from './credential-store'
+import {
+ Mbp1CredentialStore,
+ PROVISIONAL_TTL_MS,
+ principalKey,
+} from './credential-store'
+
+/**
+ * Counts durable writes without changing any of them: the mock delegates to the
+ * real `write-file-atomic`, so every test in this file keeps writing real files
+ * to a real temp dir. The count exists because §6.7 requires rotation's
+ * commit-new and revoke-old to be ONE durable transaction, and a final-state
+ * assertion cannot tell one write from two — a crash between two writes would
+ * leave the predecessor deleted and the successor still provisional.
+ */
+const writeCount = { n: 0 }
+vi.mock('write-file-atomic', async (importOriginal) => {
+ const actual = (await importOriginal()) as {
+ default: (...args: unknown[]) => Promise<void>
+ }
+ return {
+ default: (...args: unknown[]) => {
+ writeCount.n += 1
+ return actual.default(...args)
+ },
+ }
+})
+
+interface OnDiskDocument {
+ version: number
+ credentials: StoredCredential[]
+ pendingPromote: string | null
+}
+
+const START = 1_700_000_000_000
+
+const PRINCIPAL_A: CredentialPrincipal = {
+ browser: 'chromium',
+ verifiedOrigin: 'chrome-extension://aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
+ clientInstallationId: 'install-a',
+}
+
+const PRINCIPAL_B: CredentialPrincipal = {
+ browser: 'firefox',
+ verifiedOrigin: 'moz-extension://bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb',
+ clientInstallationId: 'install-b',
+}
+
+describe('Mbp1CredentialStore', () => {
+ let tmpDir: string
+ let filePath: string
+ let now: number
+
+ const clock = () => now
+
+ const open = () => Mbp1CredentialStore.load(filePath, { now: clock })
+
+ const readDoc = async (): Promise<OnDiskDocument> =>
+ JSON.parse(await fs.readFile(filePath, 'utf-8'))
+
+ const writeDoc = async (doc: OnDiskDocument): Promise<void> => {
+ await fs.writeFile(filePath, JSON.stringify(doc, null, 2), 'utf-8')
+ }
+
+ const credential = (
+ over: Partial<StoredCredential> & { credentialId: string }
+ ): StoredCredential => ({
+ mutualKeyB64: 'a'.repeat(43),
+ principal: PRINCIPAL_A,
+ predecessorId: null,
+ state: 'committed',
+ identity: 'official',
+ createdAt: START,
+ committedAt: START,
+ ...over,
+ })
+
+ const mode = async (): Promise<number> => {
+ const st = await fs.stat(filePath)
+ return st.mode & 0o777
+ }
+
+ const loosen = async (): Promise<void> => {
+ await fs.chmod(filePath, 0o644)
+ }
+
+ beforeEach(async () => {
+ tmpDir = await fs.mkdtemp(path.join(os.tmpdir(), 'mbp1-credentials-'))
+ filePath = path.join(tmpDir, 'nested', 'mbp1-credentials.json')
+ now = START
+ })
+
+ afterEach(async () => {
+ await fs.rm(tmpDir, { recursive: true, force: true })
+ })
+
+ it('persists the provisional credential durably before offerProvisional resolves', async () => {
+ const store = await open()
+
+ const offer = await store.offerProvisional(PRINCIPAL_A, 'official')
+
+ // Read the FILE, not the instance: the provisional must already be durable
+ // by the time the caller is free to send `credentialOffer` (§6.7 step 1).
+ const doc = await readDoc()
+ expect(doc.version).toBe(1)
+ expect(doc.pendingPromote).toBeNull()
+ expect(doc.credentials).toHaveLength(1)
+ expect(doc.credentials[0]).toMatchObject({
+ credentialId: offer.credentialId,
+ mutualKeyB64: offer.mutualKeyB64,
+ state: 'provisional',
+ identity: 'official',
+ predecessorId: null,
+ createdAt: START,
+ committedAt: null,
+ })
+ expect(doc.credentials[0]?.principal).toEqual(PRINCIPAL_A)
+ expect(offer.mutualKeyB64).toMatch(/^[A-Za-z0-9_-]{43}$/)
+ })
+
+ it('re-offers the identical credential for the same principal and committed predecessor', async () => {
+ const store = await open()
+
+ const first = await store.offerProvisional(PRINCIPAL_A, 'official')
+ const second = await store.offerProvisional(PRINCIPAL_A, 'official')
+
+ // Idempotent single slot (§6.7): never a freshly minted replacement, so a
+ // client that stored the earlier offer and one that did not converge.
+ expect(second.credentialId).toBe(first.credentialId)
+ expect(second.mutualKeyB64).toBe(first.mutualKeyB64)
+
+ const doc = await readDoc()
+ expect(
+ doc.credentials.filter((c) => c.state === 'provisional')
+ ).toHaveLength(1)
+ })
+
+ it('commits a provisional credential durably on the credentialAck path', async () => {
+ const store = await open()
+ const offer = await store.offerProvisional(PRINCIPAL_A, 'official')
+
+ now = START + 1_000
+ await store.commitFromPair(offer.credentialId)
+
+ const doc = await readDoc()
+ expect(doc.credentials).toHaveLength(1)
+ expect(doc.credentials[0]).toMatchObject({
+ credentialId: offer.credentialId,
+ state: 'committed',
+ committedAt: START + 1_000,
+ })
+
+ const reloaded = await open()
+ expect(reloaded.committedFor(PRINCIPAL_A)?.credentialId).toBe(
+ offer.credentialId
+ )
+ expect(reloaded.listCommitted()).toHaveLength(1)
+ })
+
+ it('promotes the successor and revokes the predecessor in one document write', async () => {
+ const store = await open()
+ const c1 = await store.offerProvisional(PRINCIPAL_A, 'official')
+ await store.commitFromPair(c1.credentialId)
+
+ const p2 = await store.offerProvisional(PRINCIPAL_A, 'official')
+ now = START + 5_000
+ writeCount.n = 0
+ await store.promoteOnReconnect(p2.credentialId)
+
+ // The name of this test is the assertion: ONE durable write. Final state
+ // alone cannot distinguish one transaction from two, and two would leave a
+ // crash window where the predecessor is gone and the successor is still
+ // provisional — neither credential valid, which §6.7 forbids.
+ expect(writeCount.n).toBe(1)
+
+ // One read after the fact: the rotation left neither both credentials nor
+ // neither of them — exactly the successor (§6.7 rotation CAS).
+ const doc = await readDoc()
+ expect(doc.pendingPromote).toBeNull()
+ expect(doc.credentials).toHaveLength(1)
+ expect(doc.credentials[0]).toMatchObject({
+ credentialId: p2.credentialId,
+ state: 'committed',
+ committedAt: START + 5_000,
+ })
+ expect(store.findForAuth(c1.credentialId)).toBeNull()
+ })
+
+ it('lets only one of two concurrent rotations from the same credential commit', async () => {
+ const store = await open()
+ const c1 = await store.offerProvisional(PRINCIPAL_A, 'official')
+ await store.commitFromPair(c1.credentialId)
+
+ // Two concurrent rotations started from C1 share the single provisional
+ // slot, so they cannot produce two successors in the first place.
+ //
+ // Not CAS coverage: the loser is rejected by that shared slot, not by the
+ // predecessor comparison. See the stale-predecessor test for the CAS.
+ const [a, b] = await Promise.all([
+ store.offerProvisional(PRINCIPAL_A, 'official'),
+ store.offerProvisional(PRINCIPAL_A, 'official'),
+ ])
+ expect(b.credentialId).toBe(a.credentialId)
+ expect(b.mutualKeyB64).toBe(a.mutualKeyB64)
+
+ const settled = await Promise.allSettled([
+ store.promoteOnReconnect(a.credentialId),
+ store.promoteOnReconnect(b.credentialId),
+ ])
+ expect(settled.filter((r) => r.status === 'fulfilled')).toHaveLength(1)
+ expect(settled.filter((r) => r.status === 'rejected')).toHaveLength(1)
+
+ const doc = await readDoc()
+ expect(doc.credentials).toHaveLength(1)
+ expect(doc.credentials[0]).toMatchObject({
+ credentialId: a.credentialId,
+ state: 'committed',
+ })
+ })
+
+ it('commits only one successor when two share the same predecessor', async () => {
+ // Two live successors of C1 are unreachable through this store's own writes
+ // (the single slot forbids them), so the file is written by hand.
+ //
+ // This does NOT pin the CAS, despite reaching a state that looks like it
+ // should. `enqueue` serializes the two promotions, and the first
+ // `applyPromote` deletes every credential of the principal — including the
+ // rival provisional — so the loser fails the `no live provisional` check
+ // and never reaches the CAS comparison. Verified by mutation: deleting the
+ // CAS leaves this test green. The assertion on the loser's reason below is
+ // what keeps that honest; the CAS is pinned by the stale-predecessor test
+ // that follows, which keeps a live provisional and gives it a predecessor
+ // that is no longer committed.
+ await fs.mkdir(path.dirname(filePath), { recursive: true })
+ await writeDoc({
+ version: 1,
+ credentials: [
+ credential({ credentialId: 'c1' }),
+ credential({
+ credentialId: 'p2',
+ predecessorId: 'c1',
+ state: 'provisional',
+ committedAt: null,
+ }),
+ credential({
+ credentialId: 'p2-prime',
+ predecessorId: 'c1',
+ state: 'provisional',
+ committedAt: null,
+ }),
+ ],
+ pendingPromote: null,
+ })
+ const store = await open()
+
+ const settled = await Promise.allSettled([
+ store.promoteOnReconnect('p2'),
+ store.promoteOnReconnect('p2-prime'),
+ ])
+ expect(settled.filter((r) => r.status === 'fulfilled')).toHaveLength(1)
+ const rejected = settled.filter((r) => r.status === 'rejected')
+ expect(rejected).toHaveLength(1)
+ // The mechanism, not just the count: the rival was deleted, so the loser
+ // stops at the live-provisional gate. If this ever reads `stale rotation`
+ // instead, the serialization or deletion behaviour changed and this test is
+ // measuring something else.
+ expect(String((rejected[0] as PromiseRejectedResult).reason)).toContain(
+ 'no live provisional'
+ )
+
+ const doc = await readDoc()
+ expect(doc.credentials).toHaveLength(1)
+ expect(doc.credentials[0]).toMatchObject({
+ credentialId: 'p2',
+ state: 'committed',
+ })
+ })
+
+ it('rejects a promote whose recorded predecessor is no longer the committed credential', async () => {
+ await fs.mkdir(path.dirname(filePath), { recursive: true })
+ await writeDoc({
+ version: 1,
+ credentials: [
+ credential({ credentialId: 'c1' }),
+ credential({
+ credentialId: 'p-stale',
+ predecessorId: 'c0',
+ state: 'provisional',
+ committedAt: null,
+ }),
+ ],
+ pendingPromote: null,
+ })
+ const store = await open()
+
+ await expect(store.promoteOnReconnect('p-stale')).rejects.toThrow(
+ /stale rotation/
+ )
+ // A credential that cannot be promoted must not authenticate either: the
+ // §6.7 ordering means its reconnect would fail after the accept was owed.
+ expect(store.findForAuth('p-stale')).toBeNull()
+ expect(store.committedFor(PRINCIPAL_A)?.credentialId).toBe('c1')
+ })
+
+ it('replays a pending promote on load before returning', async () => {
+ await fs.mkdir(path.dirname(filePath), { recursive: true })
+ await writeDoc({
+ version: 1,
+ credentials: [
+ credential({ credentialId: 'c1' }),
+ credential({
+ credentialId: 'p2',
+ predecessorId: 'c1',
+ state: 'provisional',
+ createdAt: START,
+ committedAt: null,
+ }),
+ ],
+ pendingPromote: 'p2',
+ })
+
+ now = START + 1_000
+ const store = await open()
+
+ // Converged before load() resolved — /v1 never admits auth against a
+ // half-applied rotation (§6.7).
+ expect(store.listCommitted().map((c) => c.credentialId)).toEqual(['p2'])
+ expect(store.committedFor(PRINCIPAL_A)?.credentialId).toBe('p2')
+ expect(store.findForAuth('c1')).toBeNull()
+
+ const doc = await readDoc()
+ expect(doc.pendingPromote).toBeNull()
+ expect(doc.credentials).toHaveLength(1)
+ expect(doc.credentials[0]).toMatchObject({
+ credentialId: 'p2',
+ state: 'committed',
+ committedAt: START + 1_000,
+ })
+ })
+
+ it('sweeps expired provisionals and leaves committed credentials alone', async () => {
+ const store = await open()
+ const c1 = await store.offerProvisional(PRINCIPAL_A, 'official')
+ await store.commitFromPair(c1.credentialId)
+ const p2 = await store.offerProvisional(PRINCIPAL_A, 'official')
+
+ now = START + PROVISIONAL_TTL_MS + 60_000
+ expect(store.findForAuth(p2.credentialId)).toBeNull()
+
+ await store.sweepExpiredProvisionals()
+
+ const doc = await readDoc()
+ expect(doc.credentials).toHaveLength(1)
+ expect(doc.credentials[0]).toMatchObject({
+ credentialId: c1.credentialId,
+ state: 'committed',
+ })
+ expect(store.findForAuth(c1.credentialId)?.credentialId).toBe(
+ c1.credentialId
+ )
+ })
+
+ it('keeps a rotation of one principal away from another principal', async () => {
+ const store = await open()
+ const a1 = await store.offerProvisional(PRINCIPAL_A, 'official')
+ await store.commitFromPair(a1.credentialId)
+ const b1 = await store.offerProvisional(
+ PRINCIPAL_B,
+ 'attested-non-official'
+ )
+ await store.commitFromPair(b1.credentialId)
+
+ const a2 = await store.offerProvisional(PRINCIPAL_A, 'official')
+ await store.promoteOnReconnect(a2.credentialId)
+
+ expect(store.committedFor(PRINCIPAL_A)?.credentialId).toBe(a2.credentialId)
+ expect(store.committedFor(PRINCIPAL_B)?.credentialId).toBe(b1.credentialId)
+ expect(store.committedFor(PRINCIPAL_B)?.identity).toBe(
+ 'attested-non-official'
+ )
+
+ const doc = await readDoc()
+ expect(doc.credentials.map((c) => c.credentialId).sort()).toEqual(
+ [a2.credentialId, b1.credentialId].sort()
+ )
+ })
+
+ it.runIf(process.platform !== 'win32')(
+ 'writes owner-only (0600) on every mutation',
+ async () => {
+ const store = await open()
+
+ const c1 = await store.offerProvisional(PRINCIPAL_A, 'official')
+ expect(await mode()).toBe(0o600)
+
+ await loosen()
+ await store.commitFromPair(c1.credentialId)
+ expect(await mode()).toBe(0o600)
+
+ const p2 = await store.offerProvisional(PRINCIPAL_A, 'official')
+ await loosen()
+ await store.promoteOnReconnect(p2.credentialId)
+ expect(await mode()).toBe(0o600)
+
+ await store.offerProvisional(PRINCIPAL_B, 'unverified')
+ await loosen()
+ now = START + PROVISIONAL_TTL_MS + 1
+ await store.sweepExpiredProvisionals()
+ expect(await mode()).toBe(0o600)
+
+ await loosen()
+ await store.revoke(p2.credentialId)
+ expect(await mode()).toBe(0o600)
+
+ // Journal replay on load is a write too, and it must not loosen the file.
+ await writeDoc({
+ version: 1,
+ credentials: [
+ credential({ credentialId: 'c1' }),
+ credential({
+ credentialId: 'p2',
+ predecessorId: 'c1',
+ state: 'provisional',
+ committedAt: null,
+ }),
+ ],
+ pendingPromote: 'p2',
+ })
+ await loosen()
+ await open()
+ expect(await mode()).toBe(0o600)
+ }
+ )
+
+ it.runIf(process.platform !== 'win32')(
+ 'leaves memory and disk on the previous state when a write fails',
+ async () => {
+ // `persist` is durable-first, in-memory-second, and this pins that the
+ // order is the one that holds. It matters because there used to be a
+ // fallible step *after* the atomic rename: `writeDocument` chmodded the
+ // renamed target, so a chmod rejection made `persist` throw with the new
+ // document already on disk and `this.credentials` still on the old one.
+ // A later unrelated mutation would then write that stale array back and
+ // resurrect a revoked credential. The chmod is gone — `write-file-atomic`
+ // sets the mode on the temp file before renaming — so every remaining
+ // failure lands before anything is durable.
+ const store = await open()
+ const c1 = await store.offerProvisional(PRINCIPAL_A, 'official')
+ await store.commitFromPair(c1.credentialId)
+ const before = await readDoc()
+
+ // Deny writes to the containing directory so the temp file cannot be
+ // created. The failure therefore happens before the rename.
+ const dir = path.dirname(filePath)
+ await fs.chmod(dir, 0o500)
+ try {
+ await expect(store.revoke(c1.credentialId)).rejects.toThrow()
+ } finally {
+ await fs.chmod(dir, 0o700)
+ }
+
+ // Disk still holds the pre-mutation document...
+ expect(await readDoc()).toEqual(before)
+ // ...and memory agrees with it, rather than claiming the revoke landed.
+ expect(store.findForAuth(c1.credentialId)).not.toBeNull()
+ expect(store.committedFor(PRINCIPAL_A)).not.toBeNull()
+ }
+ )
+
+ it('revokes a credential durably', async () => {
+ const store = await open()
+ const c1 = await store.offerProvisional(PRINCIPAL_A, 'official')
+ await store.commitFromPair(c1.credentialId)
+
+ await store.revoke(c1.credentialId)
+
+ expect(store.findForAuth(c1.credentialId)).toBeNull()
+ expect(store.committedFor(PRINCIPAL_A)).toBeNull()
+ expect((await readDoc()).credentials).toEqual([])
+ })
+
+ it('revokes the pending successor of a revoked credential', async () => {
+ const store = await open()
+ const c1 = await store.offerProvisional(PRINCIPAL_A, 'official')
+ await store.commitFromPair(c1.credentialId)
+ const p2 = await store.offerProvisional(PRINCIPAL_A, 'official')
+ const b1 = await store.offerProvisional(PRINCIPAL_B, 'official')
+
+ await store.revoke(c1.credentialId)
+
+ expect(store.findForAuth(p2.credentialId)).toBeNull()
+ const doc = await readDoc()
+ expect(doc.credentials.map((c) => c.credentialId)).toEqual([
+ b1.credentialId,
+ ])
+ })
+
+ it('revokes every committed and provisional credential for an extension identity in one durable write', async () => {
+ const store = await open()
+ const firstInstall = await store.offerProvisional(PRINCIPAL_A, 'official')
+ await store.commitFromPair(firstInstall.credentialId)
+ const successor = await store.offerProvisional(PRINCIPAL_A, 'official')
+ const secondInstall = await store.offerProvisional(
+ { ...PRINCIPAL_A, clientInstallationId: 'install-a2' },
+ 'official'
+ )
+ await store.commitFromPair(secondInstall.credentialId)
+ const unrelated = await store.offerProvisional(PRINCIPAL_B, 'unverified')
+
+ const writesBeforeRevoke = writeCount.n
+ await expect(
+ store.revokeExtensionIdentity(
+ 'chromium',
+ 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
+ )
+ ).resolves.toBe(3)
+
+ expect(writeCount.n - writesBeforeRevoke).toBe(1)
+ expect(store.findForAuth(firstInstall.credentialId)).toBeNull()
+ expect(store.findForAuth(successor.credentialId)).toBeNull()
+ expect(store.findForAuth(secondInstall.credentialId)).toBeNull()
+ expect(store.findForAuth(unrelated.credentialId)).not.toBeNull()
+ expect((await readDoc()).credentials.map((c) => c.credentialId)).toEqual([
+ unrelated.credentialId,
+ ])
+ })
+
+ it('does not revoke a credential for a different browser or Origin host', async () => {
+ const store = await open()
+ const credential = await store.offerProvisional(PRINCIPAL_A, 'official')
+
+ await expect(
+ store.revokeExtensionIdentity(
+ 'firefox',
+ 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
+ )
+ ).resolves.toBe(0)
+ await expect(
+ store.revokeExtensionIdentity(
+ 'chromium',
+ 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb'
+ )
+ ).resolves.toBe(0)
+
+ expect(store.findForAuth(credential.credentialId)).not.toBeNull()
+ })
+
+ it('authenticates a provisional credential and rejects an unknown one', async () => {
+ const store = await open()
+ const offer = await store.offerProvisional(PRINCIPAL_A, 'official')
+
+ const found = store.findForAuth(offer.credentialId)
+ expect(found?.state).toBe('provisional')
+ expect(found?.mutualKeyB64).toBe(offer.mutualKeyB64)
+ expect(store.findForAuth('nope')).toBeNull()
+ })
+
+ it('mints a fresh slot once the previous provisional expired', async () => {
+ const store = await open()
+ const first = await store.offerProvisional(PRINCIPAL_A, 'official')
+
+ now = START + PROVISIONAL_TTL_MS + 1
+ const second = await store.offerProvisional(PRINCIPAL_A, 'official')
+
+ expect(second.credentialId).not.toBe(first.credentialId)
+ const doc = await readDoc()
+ expect(doc.credentials).toHaveLength(1)
+ expect(doc.credentials[0]?.credentialId).toBe(second.credentialId)
+ })
+
+ it('ignores malformed on-disk records', async () => {
+ await fs.mkdir(path.dirname(filePath), { recursive: true })
+ await fs.writeFile(
+ filePath,
+ JSON.stringify({
+ version: 1,
+ credentials: [
+ { credentialId: 'broken' },
+ null,
+ credential({ credentialId: 'c1' }),
+ ],
+ pendingPromote: null,
+ }),
+ 'utf-8'
+ )
+
+ const store = await open()
+
+ expect(store.listCommitted().map((c) => c.credentialId)).toEqual(['c1'])
+ })
+
+ it('starts empty when the file is missing or unparsable', async () => {
+ const missing = await open()
+ expect(missing.listCommitted()).toEqual([])
+
+ await fs.mkdir(path.dirname(filePath), { recursive: true })
+ await fs.writeFile(filePath, 'not json', 'utf-8')
+ const corrupt = await open()
+ expect(corrupt.listCommitted()).toEqual([])
+ })
+})
+
+describe('principalKey', () => {
+ it('separates principals whose concatenated fields would collide', () => {
+ const left = principalKey({
+ browser: 'chromium',
+ verifiedOrigin: 'a',
+ clientInstallationId: 'bc',
+ })
+ const right = principalKey({
+ browser: 'chromium',
+ verifiedOrigin: 'ab',
+ clientInstallationId: 'c',
+ })
+
+ expect(left).not.toBe(right)
+ })
+
+ it('treats a second browser profile as a different principal', () => {
+ expect(principalKey(PRINCIPAL_A)).not.toBe(
+ principalKey({ ...PRINCIPAL_A, clientInstallationId: 'install-a2' })
+ )
+ })
+})
diff --git a/src/core/bridge/credential-store.ts b/src/core/bridge/credential-store.ts
new file mode 100644
index 00000000..6a55faaf
--- /dev/null
+++ b/src/core/bridge/credential-store.ts
@@ -0,0 +1,534 @@
+import { randomBytes, randomUUID } from 'node:crypto'
+import { mkdir, open as openFile, readFile } from 'node:fs/promises'
+import { dirname } from 'node:path'
+import type { Browser } from '@shared/protocol/bridge'
+import writeFileAtomic from 'write-file-atomic'
+import { z } from 'zod'
+
+/** Default lifetime of a provisional credential that is never acked or used
+ * (spec §6.7). */
+export const PROVISIONAL_TTL_MS = 10 * 60 * 1000
+
+/** Sibling of `pairing.json` / `endpoint.json` in the bridge data directory. */
+export const MBP1_CREDENTIALS_FILENAME = 'mbp1-credentials.json'
+
+const DOCUMENT_VERSION = 1
+
+const BrowserSchema: z.ZodType<Browser> = z.enum(['chromium', 'firefox'])
+
+const CredentialPrincipalSchema = z.object({
+ browser: BrowserSchema,
+ verifiedOrigin: z.string().min(1),
+ clientInstallationId: z.string().min(1),
+})
+
+/** Spec §6.7: a second browser profile is a new principal, so issuing or
+ * rotating one credential never affects another. */
+export type CredentialPrincipal = z.infer<typeof CredentialPrincipalSchema>
+
+const IdentityTriStateSchema = z.enum([
+ 'official',
+ 'attested-non-official',
+ 'unverified',
+])
+
+/** The §5 extension identity tri-state, frozen onto the credential at offer
+ * time so a later reconnect renders the same trust level. */
+export type IdentityTriState = z.infer<typeof IdentityTriStateSchema>
+
+const StoredCredentialSchema = z.object({
+ credentialId: z.string().min(1),
+ mutualKeyB64: z.string().min(1),
+ principal: CredentialPrincipalSchema,
+ /** The principal's committed `credentialId` this successor was offered
+ * against — `null` for a first pair. It is both half of the single-slot key
+ * and the compare-and-swap witness for the rotation (§6.7). Cleared once the
+ * credential itself becomes the committed one. */
+ predecessorId: z.string().min(1).nullable().catch(null),
+ state: z.enum(['provisional', 'committed']),
+ identity: IdentityTriStateSchema,
+ createdAt: z.number().int(),
+ committedAt: z.number().int().nullable(),
+})
+
+export type StoredCredential = z.infer<typeof StoredCredentialSchema>
+
+const CredentialDocumentSchema = z.object({
+ version: z.literal(DOCUMENT_VERSION),
+ credentials: z.array(z.unknown()).catch([]),
+ pendingPromote: z.string().min(1).nullable().catch(null),
+})
+
+interface CredentialDocument {
+ version: typeof DOCUMENT_VERSION
+ credentials: StoredCredential[]
+ pendingPromote: string | null
+}
+
+/**
+ * Injective principal key: a delimiter-free concatenation of three
+ * attacker-influenced strings is not (`{browser:'a', origin:'bc'}` would
+ * collide with `{browser:'ab', origin:'c'}`), so the tuple is JSON-encoded.
+ */
+export function principalKey(p: CredentialPrincipal): string {
+ return JSON.stringify([p.browser, p.verifiedOrigin, p.clientInstallationId])
+}
+
+/**
+ * Durable MBP1 credential storage — the server half of the §6.7 two-phase
+ * commit.
+ *
+ * §6.7 fixes the ordering of durable writes relative to wire messages, not
+ * just the end state, so this store is written around three rules:
+ *
+ * - A credential is durable in state `provisional` **before** the caller may
+ * send `credentialOffer`; `offerProvisional` only resolves once the write
+ * landed.
+ * - A promotion (`credentialAck` or an authenticated reconnect) is durable
+ * **before** the caller may send `credentialCommitted` / `reconnectAccept`,
+ * and for a rotation it commits the successor and revokes the predecessor in
+ * a **single** document write — never both credentials, never neither.
+ * - `load()` reconciles a `pendingPromote` journal entry and converges every
+ * principal to one committed credential **before it returns**, so `/v1`
+ * cannot admit an authentication against a half-applied rotation.
+ *
+ * Every mutation is serialized through one promise chain, computes the next
+ * full document inside that chain, writes it atomically at 0600, and only then
+ * swaps the in-memory array. A failed write therefore leaves memory and disk
+ * agreeing on the previous state.
+ *
+ * The store never logs: credential ids and mutual keys are secrets (§11), so
+ * they must not reach a log sink, and neither do its error messages carry them.
+ */
+export class Mbp1CredentialStore {
+ private persistenceTail: Promise<unknown> = Promise.resolve()
+
+ private constructor(
+ private readonly filePath: string,
+ private credentials: StoredCredential[],
+ private readonly now: () => number
+ ) {}
+
+ static async load(
+ filePath: string,
+ opts?: { now?: () => number }
+ ): Promise<Mbp1CredentialStore> {
+ const now = opts?.now ?? Date.now
+ const parsed = await readDocument(filePath)
+ const { credentials, changed } = reconcile(parsed, now())
+ // The replay is durable before any caller holds the store, which is what
+ // makes "replay completes before /v1 accepts authentication" true.
+ if (changed) await writeDocument(filePath, credentials)
+ return new Mbp1CredentialStore(filePath, credentials, now)
+ }
+
+ /**
+ * Mint (or re-offer) the single provisional successor for this principal.
+ *
+ * At most one outstanding provisional exists per
+ * `{principal, currentCommittedCredentialId}`: a repeated offer for the same
+ * pair re-offers the **identical** `{credentialId, mutualKey}` already on
+ * disk rather than a freshly minted replacement, so a client that stored the
+ * earlier offer and one that did not converge on the same successor (§6.7).
+ */
+ async offerProvisional(
+ principal: CredentialPrincipal,
+ identity: IdentityTriState
+ ): Promise<{ credentialId: string; mutualKeyB64: string }> {
+ return this.enqueue(async () => {
+ const key = principalKey(principal)
+ const predecessorId = this.committedForKey(key)?.credentialId ?? null
+ const slot = this.credentials.find(
+ (c) =>
+ c.state === 'provisional' &&
+ principalKey(c.principal) === key &&
+ c.predecessorId === predecessorId &&
+ !isExpiredAt(c, this.now())
+ )
+ if (slot) {
+ return {
+ credentialId: slot.credentialId,
+ mutualKeyB64: slot.mutualKeyB64,
+ }
+ }
+ const fresh: StoredCredential = {
+ credentialId: randomUUID(),
+ mutualKeyB64: randomBytes(32).toString('base64url'),
+ principal: { ...principal },
+ predecessorId,
+ state: 'provisional',
+ identity,
+ createdAt: this.now(),
+ committedAt: null,
+ }
+ // Replacing the slot (its occupant expired, or the committed credential
+ // moved) drops the previous provisional instead of accumulating P₁…Pₙ.
+ const next = [
+ ...this.credentials.filter(
+ (c) => c.state !== 'provisional' || principalKey(c.principal) !== key
+ ),
+ fresh,
+ ]
+ await this.persist(next)
+ return {
+ credentialId: fresh.credentialId,
+ mutualKeyB64: fresh.mutualKeyB64,
+ }
+ })
+ }
+
+ /**
+ * `credentialAck` path (§6.7 step 3): commit durably, then the caller sends
+ * `credentialCommitted`. When the pair flow ran inside an authenticated
+ * session this is a rotation, so it is the same single durable transaction
+ * as {@link promoteOnReconnect}.
+ */
+ async commitFromPair(credentialId: string): Promise<void> {
+ return this.enqueue(() => this.promoteDurably(credentialId))
+ }
+
+ /**
+ * Reconnect path (§6.7/§8): a successful challenge–response is itself an
+ * authenticated acknowledgment. The caller must run this **after** verifying
+ * `reconnectResponse` and **before** sending `reconnectAccept` — accepting
+ * first would let a crash leave the just-authenticated credential merely
+ * provisional, where it later expires.
+ *
+ * Only a live provisional can be promoted; call it solely for a credential
+ * whose state is `provisional`.
+ */
+ async promoteOnReconnect(credentialId: string): Promise<void> {
+ return this.enqueue(() => this.promoteDurably(credentialId))
+ }
+
+ /** The credential a reconnect may authenticate against: committed, or a
+ * provisional that is still live and still the current successor. */
+ findForAuth(credentialId: string): StoredCredential | null {
+ const found = this.credentials.find((c) => c.credentialId === credentialId)
+ if (!found) return null
+ if (found.state === 'committed') return found
+ if (isExpiredAt(found, this.now())) return null
+ // A successor whose predecessor is no longer the committed credential can
+ // never be promoted, so it must not authenticate either — otherwise the
+ // §6.7 ordering would owe an accept the promote cannot back.
+ const key = principalKey(found.principal)
+ const committedId = this.committedForKey(key)?.credentialId ?? null
+ return committedId === found.predecessorId ? found : null
+ }
+
+ committedFor(principal: CredentialPrincipal): StoredCredential | null {
+ return this.committedForKey(principalKey(principal))
+ }
+
+ listCommitted(): StoredCredential[] {
+ return this.credentials.filter((c) => c.state === 'committed')
+ }
+
+ /** Revoke a credential and, in the same write, the provisional successor it
+ * was to be rotated into — that successor's trust derives entirely from the
+ * revoked credential, and §6.7 allows no silent re-trust. */
+ async revoke(credentialId: string): Promise<void> {
+ return this.enqueue(async () => {
+ const next = this.credentials.filter(
+ (c) =>
+ c.credentialId !== credentialId &&
+ !(c.state === 'provisional' && c.predecessorId === credentialId)
+ )
+ if (next.length === this.credentials.length) return
+ await this.persist(next)
+ })
+ }
+
+ /**
+ * Revoke every credential bound to one verified extension origin.
+ *
+ * A browser profile reinstall changes `clientInstallationId`, and a failed
+ * rotation can leave a provisional successor beside the committed record.
+ * The renderer's revoke action names the transport identity
+ * (`browser` + Origin host), not either of those credential-internal values,
+ * so revocation must remove every matching committed and provisional record
+ * in one durable write. Revoking only the currently displayed credential
+ * would leave another installation slot able to authenticate immediately.
+ */
+ async revokeExtensionIdentity(
+ browser: Browser,
+ extensionId: string
+ ): Promise<number> {
+ return this.enqueue(async () => {
+ const next = this.credentials.filter(
+ (credential) =>
+ !principalMatchesExtensionIdentity(
+ credential.principal,
+ browser,
+ extensionId
+ )
+ )
+ const revoked = this.credentials.length - next.length
+ if (revoked === 0) return 0
+ await this.persist(next)
+ return revoked
+ })
+ }
+
+ /** Drop provisionals that were never acked or used within the TTL (§6.7).
+ * Committed credentials are never swept — only explicit revocation or a
+ * rotation removes one. */
+ async sweepExpiredProvisionals(): Promise<void> {
+ return this.enqueue(async () => {
+ const now = this.now()
+ const next = this.credentials.filter((c) => !isExpiredAt(c, now))
+ if (next.length === this.credentials.length) return
+ await this.persist(next)
+ })
+ }
+
+ /** Commit-new and revoke-old as one document write: a crash can leave both
+ * credentials valid or neither only if these are two writes. */
+ private async promoteDurably(credentialId: string): Promise<void> {
+ const target = this.credentials.find((c) => c.credentialId === credentialId)
+ if (target?.state !== 'provisional' || isExpiredAt(target, this.now())) {
+ throw new Error('mbp1 credential promote rejected: no live provisional')
+ }
+ // Compare-and-swap on the principal's current committed credentialId.
+ // Rotations are serialized by the persistence chain, so the loser of two
+ // concurrent rotations observes the changed current id here and is
+ // rejected — exactly one successor commits.
+ const key = principalKey(target.principal)
+ const committedId = this.committedForKey(key)?.credentialId ?? null
+ if (committedId !== target.predecessorId) {
+ throw new Error('mbp1 credential promote rejected: stale rotation')
+ }
+ await this.persist(applyPromote(this.credentials, target, this.now()))
+ }
+
+ private committedForKey(key: string): StoredCredential | null {
+ return (
+ this.credentials.find(
+ (c) => c.state === 'committed' && principalKey(c.principal) === key
+ ) ?? null
+ )
+ }
+
+ /**
+ * `rename` → memory → parent-directory sync, in that order, and the order is
+ * the whole design.
+ *
+ * `writeDocument` returns once the atomic rename has landed, so at that point
+ * **disk already holds `next`** — which is why memory is updated before the
+ * directory sync rather than after. The sync only makes the rename's
+ * directory entry survive power loss; it cannot un-land it. If it rejects,
+ * this method still rejects (the caller has not been promised durability),
+ * but memory and disk agree, so a later mutation cannot write a stale
+ * snapshot back.
+ *
+ * Contrast the `chmod` that used to sit here: that step was **redundant**,
+ * because `write-file-atomic` already set the mode on the temp file, so the
+ * fix was to delete it. This step is not redundant — §6.7's crash
+ * consistency depends on it — so it stays and the memory update moves ahead
+ * of it instead. Same window, opposite remedy, because one step was doing
+ * nothing and the other is load-bearing.
+ */
+ private async persist(next: StoredCredential[]): Promise<void> {
+ await writeDocument(this.filePath, next)
+ this.credentials = next
+ await syncParentDirectory(this.filePath)
+ }
+
+ private enqueue<T>(operation: () => Promise<T>): Promise<T> {
+ const result = this.persistenceTail.then(operation)
+ // Keep the queue usable after an operation rejects while preserving that
+ // rejection for the operation's own caller.
+ this.persistenceTail = result.then(
+ () => undefined,
+ () => undefined
+ )
+ return result
+ }
+}
+
+function principalMatchesExtensionIdentity(
+ principal: CredentialPrincipal,
+ browser: Browser,
+ extensionId: string
+): boolean {
+ if (principal.browser !== browser) return false
+ try {
+ const origin = new URL(principal.verifiedOrigin)
+ const protocol =
+ browser === 'chromium' ? 'chrome-extension:' : 'moz-extension:'
+ return (
+ origin.protocol === protocol && origin.host === extensionId.toLowerCase()
+ )
+ } catch {
+ return false
+ }
+}
+
+/** The promoted credential becomes the principal's sole credential: the
+ * predecessor and any other outstanding successor go in the same write. */
+function applyPromote(
+ credentials: StoredCredential[],
+ target: StoredCredential,
+ now: number
+): StoredCredential[] {
+ const key = principalKey(target.principal)
+ return [
+ ...credentials.filter((c) => principalKey(c.principal) !== key),
+ {
+ ...target,
+ state: 'committed',
+ committedAt: target.committedAt ?? now,
+ predecessorId: null,
+ },
+ ]
+}
+
+function isExpiredAt(credential: StoredCredential, now: number): boolean {
+ return (
+ credential.state === 'provisional' &&
+ now - credential.createdAt >= PROVISIONAL_TTL_MS
+ )
+}
+
+interface ParsedDocument {
+ credentials: StoredCredential[]
+ pendingPromote: string | null
+}
+
+/** Read the document defensively: a missing, unparsable, or wrong-version file
+ * yields an empty store, and individual malformed records are dropped rather
+ * than failing the whole load. */
+async function readDocument(filePath: string): Promise<ParsedDocument> {
+ const empty: ParsedDocument = { credentials: [], pendingPromote: null }
+ let raw: string
+ try {
+ raw = await readFile(filePath, 'utf-8')
+ } catch {
+ return empty
+ }
+ let json: unknown
+ try {
+ json = JSON.parse(raw)
+ } catch {
+ return empty
+ }
+ const envelope = CredentialDocumentSchema.safeParse(json)
+ if (!envelope.success) return empty
+
+ const credentials: StoredCredential[] = []
+ for (const record of envelope.data.credentials) {
+ const parsed = StoredCredentialSchema.safeParse(record)
+ if (parsed.success) credentials.push(parsed.data)
+ }
+ return { credentials, pendingPromote: envelope.data.pendingPromote }
+}
+
+/** Journal replay plus convergence to one committed credential per principal
+ * (§6.7). Reports whether the result must be written back before the store is
+ * handed out. */
+function reconcile(
+ doc: ParsedDocument,
+ now: number
+): { credentials: StoredCredential[]; changed: boolean } {
+ let credentials = doc.credentials
+ // A journal entry always forces the write-back, if only to clear it.
+ let changed = doc.pendingPromote !== null
+
+ if (doc.pendingPromote !== null) {
+ const target = credentials.find(
+ (c) => c.credentialId === doc.pendingPromote
+ )
+ if (target) credentials = applyPromote(credentials, target, now)
+ }
+
+ // Keep the newest committed credential per principal. Two committed
+ // credentials for one principal are not reachable through this store's
+ // writes; converging anyway means a hand-edited or foreign document cannot
+ // let a principal authenticate against a stale credential.
+ const newest = new Map<string, StoredCredential>()
+ for (const c of credentials) {
+ if (c.state !== 'committed') continue
+ const key = principalKey(c.principal)
+ const seen = newest.get(key)
+ if (!seen || committedOrder(c) >= committedOrder(seen)) newest.set(key, c)
+ }
+
+ const converged = credentials.filter((c) =>
+ c.state === 'committed'
+ ? newest.get(principalKey(c.principal)) === c
+ : !isExpiredAt(c, now)
+ )
+ if (converged.length !== credentials.length) changed = true
+ return { credentials: converged, changed }
+}
+
+function committedOrder(credential: StoredCredential): number {
+ return credential.committedAt ?? credential.createdAt
+}
+
+/**
+ * Fsyncs the directory holding `filePath`, so the rename that published the new
+ * document is itself durable.
+ *
+ * `[email protected]` fsyncs the temp file's fd before renaming but never
+ * opens the parent directory, so without this the *contents* are durable while
+ * the directory entry naming them may not be. §6.7 requires the server to
+ * "durably promote ... and only then send `reconnectAccept`", and names the
+ * exact failure this closes: "a crash after the accept could leave the
+ * just-authenticated credential merely provisional and let it later expire."
+ * Power loss between the rename and the directory metadata reaching stable
+ * storage could also re-expose the previous document, resurrecting a credential
+ * this store had revoked.
+ *
+ * Skipped on Windows by an explicit platform check rather than by catching the
+ * open failure: a directory cannot be opened as a file there, so the guarantee
+ * rests on the filesystem instead. Inferring the platform from an error would
+ * have made a genuine `EACCES` on Unix indistinguishable from "unsupported",
+ * silently downgrading a real durability failure — so on every platform that
+ * has the syscall, every failure here propagates.
+ */
+async function syncParentDirectory(filePath: string): Promise<void> {
+ if (process.platform === 'win32') return
+ const handle = await openFile(dirname(filePath), 'r')
+ try {
+ await handle.sync()
+ } finally {
+ await handle.close()
+ }
+}
+
+async function writeDocument(
+ filePath: string,
+ credentials: StoredCredential[]
+): Promise<void> {
+ await mkdir(dirname(filePath), { recursive: true })
+ const document: CredentialDocument = {
+ version: DOCUMENT_VERSION,
+ credentials,
+ // Always null on the write path: every mutation is one atomic rename, so
+ // there is no window a journal entry could describe. The field is honored
+ // on load so a document written by a recovery tool still converges.
+ pendingPromote: null,
+ }
+ // Atomic: temp file, fsync, rename over the target — a crash mid-write leaves
+ // the previous document intact. Owner-only (0600) because the file holds
+ // mutual keys.
+ //
+ // There is deliberately no `chmod` after this call, and the absence is
+ // load-bearing. `write-file-atomic` creates the temp file with an explicitly
+ // supplied `mode` (it only inherits the existing target's mode when `mode` is
+ // omitted), chmods that temp file, and *then* renames — so a mode failure
+ // happens before the commit point and leaves the old document intact, while
+ // the rename replaces the inode and the result carries 0600 by construction.
+ //
+ // A post-rename `chmod` was therefore redundant, and being redundant was the
+ // smaller half of the problem: it was a fallible step *after* the data was
+ // durable, so `chmod` rejecting made `persist` throw before
+ // `this.credentials = next`. Disk held the promoted successor while memory
+ // still held the revoked predecessor, and any later mutation would write that
+ // stale array back — resurrecting a credential this store had already revoked,
+ // against §6.7's requirement that rotation converge on exactly one.
+ await writeFileAtomic(filePath, JSON.stringify(document, null, 2), {
+ mode: 0o600,
+ })
+}
diff --git a/src/core/bridge/endpoint-file-writer.test.ts b/src/core/bridge/endpoint-file-writer.test.ts
index 0a4e100b..d5da18eb 100644
--- a/src/core/bridge/endpoint-file-writer.test.ts
+++ b/src/core/bridge/endpoint-file-writer.test.ts
@@ -16,7 +16,7 @@ describe('EndpointFileWriter', () => {
it('writes endpoint.json with port and PID', async () => {
const w = new EndpointFileWriter(join(dir, 'endpoint.json'))
- await w.write(54321, 'tok')
+ await w.write(54321, 'tok', 'gen-1')
const content = JSON.parse(
await readFile(join(dir, 'endpoint.json'), 'utf-8')
)
@@ -26,18 +26,38 @@ describe('EndpointFileWriter', () => {
it('persists the local token', async () => {
const w = new EndpointFileWriter(join(dir, 'endpoint.json'))
- await w.write(54321, 'secret-token-abc')
+ await w.write(54321, 'secret-token-abc', 'gen-1')
const content = JSON.parse(
await readFile(join(dir, 'endpoint.json'), 'utf-8')
)
expect(content.localToken).toBe('secret-token-abc')
})
+ it('persists the generation', async () => {
+ const w = new EndpointFileWriter(join(dir, 'endpoint.json'))
+ await w.write(54321, 'tok', 'gen-abc-123')
+ const content = JSON.parse(
+ await readFile(join(dir, 'endpoint.json'), 'utf-8')
+ )
+ expect(content.generation).toBe('gen-abc-123')
+ })
+
+ it('writes all five documented fields as parseable JSON', async () => {
+ const w = new EndpointFileWriter(join(dir, 'endpoint.json'))
+ await w.write(54321, 'tok', 'gen-1')
+ const content = JSON.parse(
+ await readFile(join(dir, 'endpoint.json'), 'utf-8')
+ )
+ expect(Object.keys(content).sort()).toEqual(
+ ['generation', 'localToken', 'pid', 'port', 'writtenAt'].sort()
+ )
+ })
+
it('writes the file with owner-only (0600) permissions', async () => {
if (process.platform === 'win32') return // POSIX mode bits only
const path = join(dir, 'endpoint.json')
const w = new EndpointFileWriter(path)
- await w.write(54321, 'tok')
+ await w.write(54321, 'tok', 'gen-1')
const { mode } = await stat(path)
expect(mode & 0o777).toBe(0o600)
})
@@ -46,27 +66,48 @@ describe('EndpointFileWriter', () => {
if (process.platform === 'win32') return
const path = join(dir, 'endpoint.json')
const w = new EndpointFileWriter(path)
- await w.write(11111, 'tok-1')
- await w.write(22222, 'tok-2')
+ await w.write(11111, 'tok-1', 'gen-1')
+ await w.write(22222, 'tok-2', 'gen-2')
const { mode } = await stat(path)
expect(mode & 0o777).toBe(0o600)
})
it('clears the file on stop', async () => {
const w = new EndpointFileWriter(join(dir, 'endpoint.json'))
- await w.write(54321, 'tok')
+ await w.write(54321, 'tok', 'gen-1')
await w.clear()
await expect(readFile(join(dir, 'endpoint.json'))).rejects.toThrow()
})
it('rewrites file on each write call', async () => {
const w = new EndpointFileWriter(join(dir, 'endpoint.json'))
- await w.write(11111, 'tok-1')
- await w.write(22222, 'tok-2')
+ await w.write(11111, 'tok-1', 'gen-1')
+ await w.write(22222, 'tok-2', 'gen-2')
const content = JSON.parse(
await readFile(join(dir, 'endpoint.json'), 'utf-8')
)
expect(content.port).toBe(22222)
expect(content.localToken).toBe('tok-2')
+ expect(content.generation).toBe('gen-2')
+ })
+
+ it('leaves a complete, parseable file under concurrent writes', async () => {
+ // endpoint.json is the attestation root (spec §9.1): a connect-storm of
+ // concurrent bridge restarts/writes must never leave a truncated or
+ // interleaved file on disk. write-file-atomic's temp-file + rename means
+ // each write is all-or-nothing from a reader's perspective, even if the
+ // final winner among concurrent writers is unspecified.
+ const path = join(dir, 'endpoint.json')
+ const w = new EndpointFileWriter(path)
+ await Promise.all(
+ Array.from({ length: 20 }, (_, i) =>
+ w.write(10000 + i, `tok-${i}`, `gen-${i}`)
+ )
+ )
+ const raw = await readFile(path, 'utf-8')
+ const content = JSON.parse(raw)
+ expect(typeof content.port).toBe('number')
+ expect(typeof content.localToken).toBe('string')
+ expect(typeof content.generation).toBe('string')
})
})
diff --git a/src/core/bridge/endpoint-file-writer.ts b/src/core/bridge/endpoint-file-writer.ts
index b36386d8..205731e4 100644
--- a/src/core/bridge/endpoint-file-writer.ts
+++ b/src/core/bridge/endpoint-file-writer.ts
@@ -1,41 +1,58 @@
-import { chmod, mkdir, rm, writeFile } from 'node:fs/promises'
+import { chmod, mkdir, rm } from 'node:fs/promises'
import { dirname } from 'node:path'
+import writeFileAtomic from 'write-file-atomic'
/**
* Writes a small JSON file describing the running WebSocket bridge endpoint
* so the Native Messaging host binary can discover Motrix's WS port and a
- * same-machine CLI/agent can discover the port + the machine-owner local token.
+ * same-machine CLI/agent can discover the port + the machine-owner local
+ * token + the current server generation.
*
- * The file contains `{ port, pid, writtenAt, localToken }` and lives at a known
- * location (e.g. `~/Library/Application Support/Motrix/bridge/endpoint.json`).
- * The bridge server writes it on start and clears it on stop.
+ * The file contains `{ port, pid, writtenAt, localToken, generation }` and
+ * lives at a known location (e.g.
+ * `~/Library/Application Support/Motrix/bridge/endpoint.json`). The bridge
+ * server writes it on start and clears it on stop.
*
- * `localToken` is a Bearer secret for the unary `POST /mdxp` transport, so the
- * file is written with owner-only (`0600`) permissions and never logged.
+ * `localToken` is a Bearer secret for the unary `POST /mdxp` transport, so
+ * the file is written atomically (temp file + fsync + rename — a crash
+ * mid-write leaves the previous endpoint.json intact, never a truncated or
+ * interleaved one) at owner-only (`0600`) permissions on POSIX, and never
+ * logged. This file's ownership is the attestation root the native host
+ * derives its ticket-MAC key from (spec §9.1), so a reader must never observe
+ * a partial write. On Windows the `0600` is not achievable from here — see
+ * the note at the `chmod` below — and the host's own check is what decides
+ * whether the file can root an attestation there.
*/
export class EndpointFileWriter {
constructor(private readonly filePath: string) {}
- async write(port: number, localToken: string): Promise<void> {
+ async write(
+ port: number,
+ localToken: string,
+ generation: string
+ ): Promise<void> {
await mkdir(dirname(this.filePath), { recursive: true })
- const writtenAt = Date.now()
const content = JSON.stringify({
port,
pid: process.pid,
- writtenAt,
+ writtenAt: Date.now(),
localToken,
+ generation,
})
- // `mode` on writeFile only applies when CREATING the file; an existing
- // endpoint.json (e.g. after an unclean shutdown) keeps its old perms, so
- // chmod unconditionally to guarantee the token is never group/other-readable.
- await writeFile(this.filePath, content, { encoding: 'utf-8', mode: 0o600 })
+ // The atomic write's `mode` only applies when CREATING the file; an
+ // existing endpoint.json (e.g. after an unclean shutdown) keeps its old
+ // perms, so chmod unconditionally to guarantee the token is never
+ // group/other-readable.
+ //
+ // POSIX only. Node's `chmod` on Windows toggles the read-only attribute
+ // and does not touch the ACL, so there the file simply inherits the
+ // parent directory's DACL. That is why the native host's Windows
+ // owner-only check admits SYSTEM and Administrators: nothing here can
+ // produce a DACL narrower than what `%APPDATA%` grants, and a reader
+ // check stricter than the writer can satisfy would reject every healthy
+ // install.
+ await writeFileAtomic(this.filePath, content, { mode: 0o600 })
await chmod(this.filePath, 0o600)
- // `writtenAt` is diagnostic metadata only. The native host determines
- // liveness by probing the recorded loopback port and never reads or logs
- // `localToken`.
- console.log(
- `[bridge-debug] endpoint.json written port=${port} writtenAt=${writtenAt}`
- )
}
async clear(): Promise<void> {
diff --git a/src/core/bridge/handlers/initialize-handler.ts b/src/core/bridge/handlers/initialize-handler.ts
index 6a055b58..1af98065 100644
--- a/src/core/bridge/handlers/initialize-handler.ts
+++ b/src/core/bridge/handlers/initialize-handler.ts
@@ -5,32 +5,34 @@ import {
makeMdxpError,
} from '@motrix/mdxp'
import type { MdxpSessionContext } from '../mdxp-session-context'
-import type { PairingService } from '../pairing-service'
-import type { TrustedExtensionRegistry } from '../trusted-extension-registry'
-import type { PairDecision, PairRequestArgs } from '../web-socket-bridge-server'
export interface InitializeHandlerDeps {
motrixVersion: string
runtime: 'electron' | 'server'
ffmpegAvailable: boolean
- pairing: PairingService
- registry: TrustedExtensionRegistry
- onPairRequest: (args: PairRequestArgs) => Promise<PairDecision>
+ /** Read lazily so capabilities match the methods actually registered. */
+ supportsTaskReveal: () => boolean
}
/**
- * `motrix/initialize` request handler. Behaves differently depending
- * on whether the connection came in via `/pair` (`pairArgs != null`)
- * or `/v1` (`pairArgs === null`).
+ * `motrix/initialize` request handler — a capabilities exchange and nothing
+ * more.
*
- * - first-pair: trigger PairingDialog, on allow mint token, on deny
- * throw `-32003 Permission denied`
- * - reconnect: validate params extensionId matches session, return
- * capabilities without a new token
+ * MBP1 authenticates *below* MDXP (docs/bridge-pairing-protocol.md §4, §6, §8):
+ * by the time a frame reaches this handler the connection has completed either
+ * the first-pair PAKE or the reconnect challenge–response, and the wiring has
+ * already marked it authorized. So there is no pairing decision to make here,
+ * no token to mint — extensions never receive a `pairToken` again — and no
+ * branch on how the connection arrived. Device-code (`cli`) pairing keeps its
+ * own independent mint in `DeviceCodeService`.
*
- * Throws MdxpError-shaped objects with `code` matching MDXP error
- * conventions. vscode-jsonrpc auto-maps thrown values to JSON-RPC
- * error responses.
+ * What remains is one consistency assertion: a Chromium client must re-assert
+ * the extension id its verified `Origin` already proved. Both `kind` checks
+ * around it fail CLOSED rather than skipping that assertion, so a future
+ * non-extension principal can never reach it against an absent field.
+ *
+ * Throws MdxpError-shaped objects with `code` matching MDXP error conventions.
+ * vscode-jsonrpc auto-maps thrown values to JSON-RPC error responses.
*/
export function createInitializeHandler(
deps: InitializeHandlerDeps
@@ -40,67 +42,39 @@ export function createInitializeHandler(
) => Promise<InitializeResult> {
return async (params, ctx) => {
// Params are validated by the dispatcher before reaching here.
- if (ctx.pendingPair === null) {
- // Reconnect (/v1): the client must re-assert the SAME identity the paired
- // token was issued for. v1 only admits extension reconnect, so fail CLOSED
- // for any other kind rather than skipping the identity check — skipping
- // would be a latent fail-open auth gate the moment a later spec issues
- // cli/agent tokens. That later spec generalizes this to per-kind identity
- // matching when it admits non-extension clients.
- if (params.client.kind !== 'extension') {
- throw makeMdxpError(
- ErrorCodes.InvalidParams,
- `unsupported client kind for reconnect: ${params.client.kind}`
- )
- }
- // The /v1 route only ever creates extension sessions, but the handler
- // must not assume it: fail CLOSED for any other session-identity kind so
- // a future cli/agent session can never bypass the extensionId match by
- // comparing against an absent field.
- if (ctx.identity.kind !== 'extension') {
- throw makeMdxpError(
- ErrorCodes.InvalidParams,
- `unsupported session kind for reconnect: ${ctx.identity.kind}`
- )
- }
- if (params.client.extensionId !== ctx.identity.extensionId) {
- throw makeMdxpError(
- ErrorCodes.InvalidParams,
- `extensionId mismatch: params=${params.client.extensionId}, session=${ctx.identity.extensionId}`
- )
- }
- // A /v1 reconnect is authorized at upgrade (its token was verified),
- // but assert it here too so the invariant holds at the one gate.
- ctx.markAuthorized()
- return buildResult(deps, undefined)
+ if (params.client.kind !== 'extension') {
+ throw makeMdxpError(
+ ErrorCodes.InvalidParams,
+ `unsupported client kind: ${params.client.kind}`
+ )
}
-
- const decision = await deps.onPairRequest(ctx.pendingPair)
- if (decision.decision === 'deny') {
- throw makeMdxpError(ErrorCodes.PermissionDenied, 'User denied pairing', {
- appCode: 'pair.denied',
- })
+ if (ctx.identity.kind !== 'extension') {
+ throw makeMdxpError(
+ ErrorCodes.InvalidParams,
+ `unsupported session kind: ${ctx.identity.kind}`
+ )
}
-
- const paired = await deps.pairing.issueToken(
- {
- kind: 'extension',
- browser: ctx.pendingPair.browser,
- extensionId: ctx.pendingPair.extensionId,
- },
- ctx.pendingPair.extensionName
- )
- // Pairing approved and token minted: this /pair connection may now drive
- // control-plane / download methods. Until this point it was unauthorized.
- ctx.markAuthorized()
- return buildResult(deps, paired.token)
+ // §5: on Chromium the session's `extensionId` is the verified `Origin`
+ // host, which IS the extension id, so a disagreeing `params.client` is a
+ // client inconsistent with its own transport. On Firefox the session id is
+ // the `moz-extension://<UUID>` host, which cannot be mapped to the Gecko id
+ // the client reports — the same asymmetry `pair-session.ts` applies to
+ // `claimedExtensionId` — so there is nothing to compare, and comparing
+ // would reject every legitimate Firefox session.
+ if (
+ ctx.identity.browser === 'chromium' &&
+ params.client.extensionId !== ctx.identity.extensionId
+ ) {
+ throw makeMdxpError(
+ ErrorCodes.InvalidParams,
+ `extensionId mismatch: params=${params.client.extensionId}, session=${ctx.identity.extensionId}`
+ )
+ }
+ return buildResult(deps)
}
}
-function buildResult(
- deps: InitializeHandlerDeps,
- pairToken: string | undefined
-): InitializeResult {
+function buildResult(deps: InitializeHandlerDeps): InitializeResult {
return {
protocolVersion: '1.0',
server: {
@@ -115,8 +89,8 @@ function buildResult(
: ['direct'],
progress: true,
cancellation: true,
+ taskReveal: deps.supportsTaskReveal(),
},
serverAdapters: [],
- ...(pairToken !== undefined ? { pairToken } : {}),
}
}
diff --git a/src/core/bridge/handlers/write-handlers.test.ts b/src/core/bridge/handlers/write-handlers.test.ts
index ebded798..9dfdca1a 100644
--- a/src/core/bridge/handlers/write-handlers.test.ts
+++ b/src/core/bridge/handlers/write-handlers.test.ts
@@ -182,6 +182,67 @@ describe('task/remove', () => {
})
})
+describe('task/reveal', () => {
+ it('registers only when the shell provides the capability', async () => {
+ const revealTask = vi.fn(async () => {})
+ const { d } = setup({ revealTask })
+
+ await expect(
+ d.dispatch('task/reveal', { taskId: 'task-1' }, cliCtx)
+ ).resolves.toEqual({ ok: true })
+ expect(revealTask).toHaveBeenCalledOnce()
+ expect(revealTask).toHaveBeenCalledWith('task-1')
+
+ const withoutShell = setup({ revealTask: undefined }).d
+ await expect(
+ withoutShell.dispatch('task/reveal', { taskId: 'task-1' }, cliCtx)
+ ).rejects.toMatchObject({ code: ErrorCodes.CapabilityNotSupported })
+ })
+
+ it('requires a trusted task id before calling the shell', async () => {
+ const revealTask = vi.fn(async () => {})
+ const { d } = setup({ revealTask })
+
+ await expect(
+ d.dispatch('task/reveal', { taskId: 'missing' }, cliCtx)
+ ).rejects.toMatchObject({ code: ErrorCodes.ResourceUnavailable })
+ expect(revealTask).not.toHaveBeenCalled()
+ })
+
+ it('rejects caller-supplied paths at the schema boundary', async () => {
+ const revealTask = vi.fn(async () => {})
+ const { d } = setup({ revealTask })
+
+ await expect(
+ d.dispatch(
+ 'task/reveal',
+ { taskId: 'task-1', path: '/caller/controlled' },
+ cliCtx
+ )
+ ).rejects.toMatchObject({ code: ErrorCodes.InvalidParams })
+ expect(revealTask).not.toHaveBeenCalled()
+ })
+
+ it('does not leak a path from a shell failure', async () => {
+ const secretPath = '/Users/alice/private/download.iso'
+ const { d } = setup({
+ revealTask: vi.fn(async () => {
+ throw new Error(`cannot reveal ${secretPath}`)
+ }),
+ })
+
+ try {
+ await d.dispatch('task/reveal', { taskId: 'task-1' }, cliCtx)
+ throw new Error('expected task/reveal to reject')
+ } catch (error) {
+ expect(error).toMatchObject({ code: ErrorCodes.ResourceUnavailable })
+ expect(String((error as { message?: unknown }).message)).not.toContain(
+ secretPath
+ )
+ }
+ })
+})
+
describe('download/add', () => {
it('creates a url download and returns the created task snapshot', async () => {
const { d, deps } = setup()
diff --git a/src/core/bridge/handlers/write-handlers.ts b/src/core/bridge/handlers/write-handlers.ts
index 5bfba78a..60b187fe 100644
--- a/src/core/bridge/handlers/write-handlers.ts
+++ b/src/core/bridge/handlers/write-handlers.ts
@@ -8,6 +8,7 @@ import {
TaskPauseParamsSchema,
TaskRemoveParamsSchema,
TaskResumeParamsSchema,
+ TaskRevealParamsSchema,
} from '@motrix/mdxp'
import { clientKey } from '@shared/protocol/bridge'
import type { TaskCreateRequest } from '@shared/schemas/add-task'
@@ -23,7 +24,8 @@ import type { MdxpDispatcher } from '../mdxp-dispatcher'
* fake. Pause/resume are deliberately public-id actions: the core action owns
* engine/media fan-out, durable publication, and transition recording.
* `removeTask` keys by public id and honors `deleteFiles`; `createTask` +
- * `parseTorrentFileCount` back `download/add`.
+ * `parseTorrentFileCount` back `download/add`. `revealTask` is an optional
+ * Electron-shell capability: the headless server deliberately omits it.
*/
export interface WriteHandlerDeps {
taskManager: { getById(id: string): DownloadTask | undefined }
@@ -34,6 +36,8 @@ export interface WriteHandlerDeps {
createTask: (req: TaskCreateRequest) => Promise<{ taskId: string }>
/** File count of a base64 torrent — for the torrent select-all default. */
parseTorrentFileCount: (base64: string) => Promise<number>
+ /** Reveal a task-owned output in the platform file manager. */
+ revealTask?: (taskId: string) => Promise<void>
}
const OK: OkResult = { ok: true }
@@ -54,7 +58,7 @@ function requireTask(
return task
}
-/** Register `task/pause`, `task/resume`, `task/remove`, `download/add`. */
+/** Register the v1 write surface, including optional shell capabilities. */
export function registerWriteHandlers(
dispatcher: MdxpDispatcher,
deps: WriteHandlerDeps
@@ -91,6 +95,31 @@ export function registerWriteHandlers(
}
)
+ if (deps.revealTask) {
+ const revealTask = deps.revealTask
+ dispatcher.register(
+ Methods.TaskReveal,
+ TaskRevealParamsSchema,
+ async (params): Promise<OkResult> => {
+ // Resolve the public id before crossing into the shell. The protocol
+ // never accepts a caller-supplied path; the Electron handler derives
+ // the destination from this trusted task record.
+ requireTask(deps, params.taskId)
+ try {
+ await revealTask(params.taskId)
+ } catch {
+ // Shell/OS errors can contain an absolute path. Keep that detail out
+ // of the remote response and expose only the capability-level fact.
+ throw makeMdxpError(
+ ErrorCodes.ResourceUnavailable,
+ 'task output cannot be revealed'
+ )
+ }
+ return OK
+ }
+ )
+ }
+
// Keyed replays (lost response, prompt retry) must return the first
// submission's snapshot instead of minting a second task. Scoped by
// clientKey so identities can never share a dedup namespace. Keyless
diff --git a/src/core/bridge/mbp1/__tests__/fixtures/rfc9382-p256-vectors.json b/src/core/bridge/mbp1/__tests__/fixtures/rfc9382-p256-vectors.json
new file mode 100644
index 00000000..e5633844
--- /dev/null
+++ b/src/core/bridge/mbp1/__tests__/fixtures/rfc9382-p256-vectors.json
@@ -0,0 +1,79 @@
+{
+ "description": "The four SPAKE2 test vectors of RFC 9382 Appendix B, over the P256-SHA256-HKDF-HMAC ciphersuite. RFC 9382 publishes vectors only for P-256, so these gate the group-generic SPAKE2 core in spake2-core.ts before its edwards25519 instantiation (docs/bridge-pairing-protocol.md \u00a73, \u00a713) is trusted. All byte strings are lowercase hex; A and B are the RFC identity strings, and points use the SEC1 uncompressed encoding with its 0x04 prefix.",
+ "source": "https://www.rfc-editor.org/rfc/rfc9382.txt, Appendix B, parsed programmatically (the RFC line-wraps long hex values).",
+ "ttProvenance": "TT is transcribed from the RFC rather than generated. Deriving it by running our own implementation would make the transcript assertion circular and defeat the gate: the point of these vectors is to prove the TT layout, key schedule, and confirmation MACs independently of our code. Three cross-checks back the transcription: (1) each vector's Ke || Ka equals the Hash(TT) the RFC prints separately; (2) each TT was reconstructed in Python as enc(A) || enc(B) || enc(pA) || enc(pB) || enc(K) || enc(I2OSP(w,32)) from that same vector's own pA/pB/K/w, independent of this repository's encoders; (3) every field except TT is byte-identical to the independent copy in the reference vector generator that produced docs/bridge-pairing-protocol-vectors.json.",
+ "vectors": [
+ {
+ "label": "RFC9382 B#1 A='server' B='client'",
+ "A": "server",
+ "B": "client",
+ "w": "2ee57912099d31560b3a44b1184b9b4866e904c49d12ac5042c97dca461b1a5f",
+ "x": "43dd0fd7215bdcb482879fca3220c6a968e66d70b1356cac18bb26c84a78d729",
+ "y": "dcb60106f276b02606d8ef0a328c02e4b629f84f89786af5befb0bc75b6e66be",
+ "pA": "04a56fa807caaa53a4d28dbb9853b9815c61a411118a6fe516a8798434751470f9010153ac33d0d5f2047ffdb1a3e42c9b4e6be662766e1eeb4116988ede5f912c",
+ "pB": "0406557e482bd03097ad0cbaa5df82115460d951e3451962f1eaf4367a420676d09857ccbc522686c83d1852abfa8ed6e4a1155cf8f1543ceca528afb591a1e0b7",
+ "K": "0412af7e89717850671913e6b469ace67bd90a4df8ce45c2af19010175e37eed69f75897996d539356e2fa6a406d528501f907e04d97515fbe83db277b715d3325",
+ "TT": "06000000000000007365727665720600000000000000636c69656e74410000000000000004a56fa807caaa53a4d28dbb9853b9815c61a411118a6fe516a8798434751470f9010153ac33d0d5f2047ffdb1a3e42c9b4e6be662766e1eeb4116988ede5f912c41000000000000000406557e482bd03097ad0cbaa5df82115460d951e3451962f1eaf4367a420676d09857ccbc522686c83d1852abfa8ed6e4a1155cf8f1543ceca528afb591a1e0b741000000000000000412af7e89717850671913e6b469ace67bd90a4df8ce45c2af19010175e37eed69f75897996d539356e2fa6a406d528501f907e04d97515fbe83db277b715d332520000000000000002ee57912099d31560b3a44b1184b9b4866e904c49d12ac5042c97dca461b1a5f",
+ "Ke": "0e0672dc86f8e45565d338b0540abe69",
+ "Ka": "15bdf72e2b35b5c9e5663168e960a91b",
+ "KcA": "00c12546835755c86d8c0db7851ae86f",
+ "KcB": "a9fa3406c3b781b93d804485430ca27a",
+ "cA": "58ad4aa88e0b60d5061eb6b5dd93e80d9c4f00d127c65b3b35b1b5281fee38f0",
+ "cB": "d3e2e547f1ae04f2dbdbf0fc4b79f8ecff2dff314b5d32fe9fcef2fb26dc459b"
+ },
+ {
+ "label": "RFC9382 B#2 A='' B='client'",
+ "A": "",
+ "B": "client",
+ "w": "0548d8729f730589e579b0475a582c1608138ddf7054b73b5381c7e883e2efae",
+ "x": "403abbe3b1b4b9ba17e3032849759d723939a27a27b9d921c500edde18ed654b",
+ "y": "903023b6598908936ea7c929bd761af6039577a9c3f9581064187c3049d87065",
+ "pA": "04a897b769e681c62ac1c2357319a3d363f610839c4477720d24cbe32f5fd85f44fb92ba966578c1b712be6962498834078262caa5b441ecfa9d4a9485720e918a",
+ "pB": "04e0f816fd1c35e22065d5556215c097e799390d16661c386e0ecc84593974a61b881a8c82327687d0501862970c64565560cb5671f696048050ca66ca5f8cc7fc",
+ "K": "048f83ec9f6e4f87cc6f9dc740bdc2769725f923364f01c84148c049a39a735ebda82eac03e00112fd6a5710682767cff5361f7e819e53d8d3c3a2922e0d837aa6",
+ "TT": "00000000000000000600000000000000636c69656e74410000000000000004a897b769e681c62ac1c2357319a3d363f610839c4477720d24cbe32f5fd85f44fb92ba966578c1b712be6962498834078262caa5b441ecfa9d4a9485720e918a410000000000000004e0f816fd1c35e22065d5556215c097e799390d16661c386e0ecc84593974a61b881a8c82327687d0501862970c64565560cb5671f696048050ca66ca5f8cc7fc4100000000000000048f83ec9f6e4f87cc6f9dc740bdc2769725f923364f01c84148c049a39a735ebda82eac03e00112fd6a5710682767cff5361f7e819e53d8d3c3a2922e0d837aa620000000000000000548d8729f730589e579b0475a582c1608138ddf7054b73b5381c7e883e2efae",
+ "Ke": "642f05c473c2cd79909f9a841e2f30a7",
+ "Ka": "0bf89b18180af97353ba198789c2b963",
+ "KcA": "c6be376fc7cd1301fd0a13adf3e7bffd",
+ "KcB": "b7243f4ae60440a49b3f8cab3c1fba07",
+ "cA": "47d29e6666af1b7dd450d571233085d7a9866e4d49d2645e2df975489521232b",
+ "cB": "3313c5cefc361d27fb16847a91c2a73b766ffa90a4839122a9b70a2f6bd1d6df"
+ },
+ {
+ "label": "RFC9382 B#3 A='server' B=''",
+ "A": "server",
+ "B": "",
+ "w": "626e0cdc7b14c9db3e52a0b1b3a768c98e37852d5db30febe0497b14eae8c254",
+ "x": "07adb3db6bc623d3399726bfdbfd3d15a58ea776ab8a308b00392621291f9633",
+ "y": "b6a4fc8dbb629d4ba51d6f91ed1532cf87adec98f25dd153a75accafafedec16",
+ "pA": "04f88fb71c99bfffaea370966b7eb99cd4be0ff1a7d335caac4211c4afd855e2e15a873b298503ad8ba1d9cbb9a392d2ba309b48bfd7879aefd0f2cea6009763b0",
+ "pB": "040c269d6be017dccb15182ac6bfcd9e2a14de019dd587eaf4bdfd353f031101e7cca177f8eb362a6e83e7d5e729c0732e1b528879c086f39ba0f31a9661bd34db",
+ "K": "0445ee233b8ecb51ebd6e7da3f307e88a1616bae2166121221fdc0dadb986afaf3ec8a988dc9c626fa3b99f58a7ca7c9b844bb3e8dd9554aafc5b53813504c1cbe",
+ "TT": "06000000000000007365727665720000000000000000410000000000000004f88fb71c99bfffaea370966b7eb99cd4be0ff1a7d335caac4211c4afd855e2e15a873b298503ad8ba1d9cbb9a392d2ba309b48bfd7879aefd0f2cea6009763b04100000000000000040c269d6be017dccb15182ac6bfcd9e2a14de019dd587eaf4bdfd353f031101e7cca177f8eb362a6e83e7d5e729c0732e1b528879c086f39ba0f31a9661bd34db41000000000000000445ee233b8ecb51ebd6e7da3f307e88a1616bae2166121221fdc0dadb986afaf3ec8a988dc9c626fa3b99f58a7ca7c9b844bb3e8dd9554aafc5b53813504c1cbe2000000000000000626e0cdc7b14c9db3e52a0b1b3a768c98e37852d5db30febe0497b14eae8c254",
+ "Ke": "005184ff460da2ce59062c87733c299c",
+ "Ka": "3521297d736598fc0a1127600efa1afb",
+ "KcA": "f3da53604f0aeecea5a33be7bddf6edf",
+ "KcB": "9e3f86848736f159bd92b6e107ec6799",
+ "cA": "bc9f9bbe99f26d0b2260e6456e05a86196a3307ec6663a18bf6ac825736533b2",
+ "cB": "c2370e1bf813b086dff0d834e74425a06e6390f48f5411900276dcccc5a297ec"
+ },
+ {
+ "label": "RFC9382 B#4 A='' B=''",
+ "A": "",
+ "B": "",
+ "w": "7bf46c454b4c1b25799527d896508afd5fc62ef4ec59db1efb49113063d70cca",
+ "x": "8cef65df64bb2d0f83540c53632de911b5b24b3eab6cc74a97609fd659e95473",
+ "y": "d7a66f64074a84652d8d623a92e20c9675c61cb5b4f6a0063e4648a2fdc02d53",
+ "pA": "04a65b367a3f613cf9f0654b1b28a1e3a8a40387956c8ba6063e8658563890f46ca1ef6a676598889fc28de2950ab8120b79a5ef1ea4c9f44bc98f585634b46d66",
+ "pB": "04589f13218822710d98d8b2123a079041052d9941b9cf88c6617ddb2fcc0494662eea8ba6b64692dc318250030c6af045cb738bc81ba35b043c3dcb46adf6f58d",
+ "K": "041a3c03d51b452537ca2a1fea6110353c6d5ed483c4f0f86f4492ca3f378d40a994b4477f93c64d928edbbcd3e85a7c709b7ea73ee97986ce3d1438e135543772",
+ "TT": "00000000000000000000000000000000410000000000000004a65b367a3f613cf9f0654b1b28a1e3a8a40387956c8ba6063e8658563890f46ca1ef6a676598889fc28de2950ab8120b79a5ef1ea4c9f44bc98f585634b46d66410000000000000004589f13218822710d98d8b2123a079041052d9941b9cf88c6617ddb2fcc0494662eea8ba6b64692dc318250030c6af045cb738bc81ba35b043c3dcb46adf6f58d4100000000000000041a3c03d51b452537ca2a1fea6110353c6d5ed483c4f0f86f4492ca3f378d40a994b4477f93c64d928edbbcd3e85a7c709b7ea73ee97986ce3d1438e13554377220000000000000007bf46c454b4c1b25799527d896508afd5fc62ef4ec59db1efb49113063d70cca",
+ "Ke": "fc6374762ba5cf11f4b2caa08b2cd1b9",
+ "Ka": "907ae0e26e8d6234318d91583cd74c86",
+ "KcA": "5dbd2f477166b7fb6d61febbd77a5563",
+ "KcB": "7689b4654407a5faeffdc8f18359d8a3",
+ "cA": "dfb4db8d48ae5a675963ea5e6c19d98d4ea028d8e898dad96ea19a80ade95dca",
+ "cB": "d0f0609d1613138d354f7e95f19fb556bf52d751947241e8c7118df5ef0ae175"
+ }
+ ]
+}
diff --git a/src/core/bridge/mbp1/__tests__/vectors.test.ts b/src/core/bridge/mbp1/__tests__/vectors.test.ts
new file mode 100644
index 00000000..837a93d1
--- /dev/null
+++ b/src/core/bridge/mbp1/__tests__/vectors.test.ts
@@ -0,0 +1,15 @@
+import { describe, expect, it } from 'vitest'
+import { loadMbp1Vectors } from './vectors'
+
+describe('mbp1 vector fixture', () => {
+ it('loads the five normative groups', () => {
+ const v = loadMbp1Vectors()
+ expect(v.spake2).toHaveLength(2)
+ expect(v.scryptW.expected.w).toMatch(/^[0-9a-f]{64}$/)
+ expect(v.reconnect.expected.macClient).toMatch(/^[0-9a-f]{64}$/)
+ expect(v.nmTicket.expected.mac).toMatch(/^[0-9a-f]{64}$/)
+ expect(v.envelope.expected.frameC2S_seq0.length).toBeGreaterThan(0)
+ expect(v.nmTicket.mustReject.length).toBeGreaterThanOrEqual(6)
+ expect(v.envelope.mustReject.length).toBeGreaterThanOrEqual(4)
+ })
+})
diff --git a/src/core/bridge/mbp1/__tests__/vectors.ts b/src/core/bridge/mbp1/__tests__/vectors.ts
new file mode 100644
index 00000000..d708e3f7
--- /dev/null
+++ b/src/core/bridge/mbp1/__tests__/vectors.ts
@@ -0,0 +1,111 @@
+// Typed loader for the normative MBP1 cross-implementation test vectors in
+// docs/bridge-pairing-protocol-vectors.json (spec docs/bridge-pairing-protocol.md
+// §13). Every mbp1 crypto test (canonical encoding, SPAKE2, transcript,
+// envelope, ticket verification) imports `loadMbp1Vectors` from this module —
+// its path and exported names are fixed across the whole mbp1 test suite.
+import { readFileSync } from 'node:fs'
+import { resolve } from 'node:path'
+import { bytesToHex, hexToBytes } from '@noble/hashes/utils.js'
+
+export { bytesToHex, hexToBytes }
+
+/** One SPAKE2 vector. Later vectors may omit fields identical to vector 0
+ * (see `spake2[1].inputs.note` in the fixture), so the nested groups are
+ * loosely typed hex-string maps rather than fully required shapes. */
+interface Spake2Vector {
+ name: string
+ inputs: Record<string, string>
+ intermediate: Record<string, string>
+ expected: Record<string, string>
+}
+
+/** A single negative-vector entry under a group's `mustReject` array. Shape
+ * varies by case (e.g. `bindingPub` may be a single hex string or an array
+ * of them), so only the fields every case carries are required. */
+interface MustRejectCase {
+ case: string
+ reason: string
+ [key: string]: unknown
+}
+
+export interface Mbp1Vectors {
+ description: string
+ generator: {
+ library: string
+ coreValidation: string
+ }
+ spake2: Spake2Vector[]
+ scryptW: {
+ inputs: {
+ codeNormalized: string
+ pairNonce: string
+ params: { N: number; r: number; p: number; dkLen: number }
+ }
+ expected: {
+ scryptOutput: string
+ w: string
+ }
+ }
+ reconnect: {
+ inputs: {
+ mutualKey: string
+ credentialId: string
+ browser: string
+ verifiedOrigin: string
+ instanceId: string
+ S: string
+ C: string
+ }
+ expected: {
+ RT: string
+ macClient: string
+ macServer: string
+ trafficC2S: string
+ trafficS2C: string
+ }
+ }
+ nmTicket: {
+ inputs: {
+ v: number
+ localToken: string
+ serverGeneration: string
+ browser: string
+ callerId: string
+ exp: number
+ bindingPub: string
+ }
+ expected: {
+ ticketKey: string
+ canonical: string
+ mac: string
+ ticketDigest: string
+ }
+ mustReject: MustRejectCase[]
+ note: string
+ }
+ envelope: {
+ inputs: {
+ keyC2S: string
+ keyS2C: string
+ aad: string
+ plaintext0: string
+ plaintext1: string
+ }
+ expected: {
+ frameC2S_seq0: string
+ frameS2C_seq0: string
+ frameC2S_seq1: string
+ }
+ mustReject: MustRejectCase[]
+ }
+}
+
+const VECTORS_PATH = resolve(
+ __dirname,
+ '../../../../../docs/bridge-pairing-protocol-vectors.json'
+)
+
+export function loadMbp1Vectors(): Mbp1Vectors {
+ const raw = readFileSync(VECTORS_PATH, 'utf-8')
+ return JSON.parse(raw) as Mbp1Vectors
+}
diff --git a/src/core/bridge/mbp1/canonical.test.ts b/src/core/bridge/mbp1/canonical.test.ts
new file mode 100644
index 00000000..0f0a4cf4
--- /dev/null
+++ b/src/core/bridge/mbp1/canonical.test.ts
@@ -0,0 +1,80 @@
+import { describe, expect, it } from 'vitest'
+import { bytesToHex, hexToBytes, loadMbp1Vectors } from './__tests__/vectors'
+import {
+ concatBytes,
+ enc,
+ encU32BE,
+ encU64BE,
+ fromBase64Url,
+ len64LE,
+ ProtocolViolationError,
+ toBase64Url,
+} from './canonical'
+
+const v = loadMbp1Vectors()
+
+describe('canonical encoding (§2)', () => {
+ it('reproduces A_id from the spake2 vector', () => {
+ // A_id = enc("MBP1/A/v1") ‖ enc(browser) ‖ enc(verifiedOrigin) ‖ enc(claimedExtensionId) ‖ enc(clientInstallationId) (§6.4)
+ const i = v.spake2[0].inputs
+ const aId = concatBytes(
+ enc('MBP1/A/v1'),
+ enc(i.browser),
+ enc(i.verifiedOrigin),
+ enc(i.claimedExtensionId),
+ enc(i.clientInstallationId)
+ )
+ expect(bytesToHex(aId)).toBe(v.spake2[0].intermediate.aId)
+ })
+ it('reproduces B_id', () => {
+ const i = v.spake2[0].inputs
+ const bId = concatBytes(
+ enc('MBP1/B/v1'),
+ enc('motrix-bridge'),
+ enc(i.instanceId)
+ )
+ expect(bytesToHex(bId)).toBe(v.spake2[0].intermediate.bId)
+ })
+ it('len64LE / U32BE / U64BE are byte-exact', () => {
+ expect(bytesToHex(len64LE(9))).toBe('0900000000000000')
+ expect(bytesToHex(encU32BE(1))).toBe('00000001')
+ expect(bytesToHex(encU64BE(1755600000))).toBe('0000000068a45480') // nmTicket exp inside expected.canonical
+ })
+ it('base64url is strict', () => {
+ expect(
+ toBase64Url(
+ hexToBytes(
+ 'fd64b13bcbdd3fcaaac3953f6212c769495003162d404066e119f5fcc1551173'
+ )
+ )
+ ).not.toContain('=')
+ expect(() => fromBase64Url('AAA=')).toThrow() // padded
+ expect(() => fromBase64Url('A+/A')).toThrow() // wrong alphabet
+ expect(() => fromBase64Url('AB')).toThrow() // non-canonical trailing bits ('AB' decodes with leftover bits set)
+ expect(fromBase64Url(toBase64Url(new Uint8Array([0, 255, 7])))).toEqual(
+ new Uint8Array([0, 255, 7])
+ )
+ })
+ it('enc rejects non-ASCII strings', () => {
+ expect(() => enc('mötrix')).toThrow()
+ })
+ it('len64LE rejects out-of-range or non-integer input', () => {
+ expect(() => len64LE(-1)).toThrow(ProtocolViolationError)
+ expect(() => len64LE(-1n)).toThrow(ProtocolViolationError)
+ expect(() => len64LE(2 ** 64)).toThrow(ProtocolViolationError)
+ expect(() => len64LE(2n ** 64n)).toThrow(ProtocolViolationError)
+ expect(() => len64LE(1.5)).toThrow(ProtocolViolationError)
+ })
+ it('encU32BE rejects out-of-range or non-integer input', () => {
+ expect(() => encU32BE(-1)).toThrow(ProtocolViolationError)
+ expect(() => encU32BE(2 ** 32)).toThrow(ProtocolViolationError)
+ expect(() => encU32BE(1.5)).toThrow(ProtocolViolationError)
+ })
+ it('encU64BE rejects out-of-range or non-integer input', () => {
+ expect(() => encU64BE(-1)).toThrow(ProtocolViolationError)
+ expect(() => encU64BE(-1n)).toThrow(ProtocolViolationError)
+ expect(() => encU64BE(2 ** 64)).toThrow(ProtocolViolationError)
+ expect(() => encU64BE(2n ** 64n)).toThrow(ProtocolViolationError)
+ expect(() => encU64BE(1.5)).toThrow(ProtocolViolationError)
+ })
+})
diff --git a/src/core/bridge/mbp1/canonical.ts b/src/core/bridge/mbp1/canonical.ts
new file mode 100644
index 00000000..f7b02b7d
--- /dev/null
+++ b/src/core/bridge/mbp1/canonical.ts
@@ -0,0 +1,172 @@
+// MBP1 canonical byte-level encoding primitives (docs/bridge-pairing-protocol.md §2)
+// plus the two fixed symmetric primitives every module derives keys with (§3).
+//
+// These are the shared building blocks every later mbp1 crypto module
+// (scrypt-w, spake2-core, transcript, reconnect-mac, envelope, ticket-verify)
+// composes into protocol structures. The same bytes are independently
+// produced by a Rust and a browser-extension implementation, so every
+// definition here must match §2 exactly — do not "improve" the encoding.
+
+import { Buffer } from 'node:buffer'
+import { createHmac, hkdfSync } from 'node:crypto'
+import { concatBytes, utf8ToBytes } from '@noble/hashes/utils.js'
+
+export { concatBytes }
+
+export class ProtocolViolationError extends Error {
+ constructor(message: string) {
+ super(message)
+ this.name = 'ProtocolViolationError'
+ }
+}
+
+/** Throws `ProtocolViolationError` unless every code unit of `s` is ASCII (§2). */
+export function assertAscii(s: string, field: string): void {
+ for (let i = 0; i < s.length; i++) {
+ if (s.charCodeAt(i) > 0x7f) {
+ throw new ProtocolViolationError(`${field} must be ASCII-only`)
+ }
+ }
+}
+
+/**
+ * `len64LE(n)` — encodes the already-computed length `n` (in bytes) as an
+ * 8-byte little-endian integer (§2). `n` must be a non-negative integer
+ * representable in 64 bits; anything else throws `ProtocolViolationError`
+ * rather than silently wrapping, since a flipped-length field must change
+ * the encoded bytes.
+ */
+export function len64LE(n: number | bigint): Uint8Array {
+ const value = assertUint64Range(n, 'len64LE')
+ const view = new DataView(new ArrayBuffer(8))
+ view.setBigUint64(0, value, true)
+ return new Uint8Array(view.buffer)
+}
+
+/** `enc(s)` — `len64LE(s) ‖ s` (§2). Strings are ASCII-checked, then UTF-8 encoded. */
+export function enc(s: Uint8Array | string): Uint8Array {
+ const bytes = typeof s === 'string' ? asciiStringToBytes(s) : s
+ return concatBytes(len64LE(bytes.length), bytes)
+}
+
+function asciiStringToBytes(s: string): Uint8Array {
+ assertAscii(s, 'enc(string)')
+ return utf8ToBytes(s)
+}
+
+/**
+ * `encU32BE(n)` — 4-byte big-endian unsigned integer (§2). `n` must be a
+ * non-negative integer within uint32 range; out-of-range or non-integer
+ * input throws `ProtocolViolationError` instead of silently wrapping.
+ */
+export function encU32BE(n: number): Uint8Array {
+ if (!Number.isInteger(n) || n < 0 || n >= 2 ** 32) {
+ throw new ProtocolViolationError(
+ 'encU32BE input must be a non-negative integer within uint32 range'
+ )
+ }
+ const view = new DataView(new ArrayBuffer(4))
+ view.setUint32(0, n, false)
+ return new Uint8Array(view.buffer)
+}
+
+/**
+ * `encU64BE(n)` — 8-byte big-endian unsigned integer (§2). `n` must be a
+ * non-negative integer representable in 64 bits; out-of-range or
+ * non-integer input throws `ProtocolViolationError` instead of silently
+ * wrapping.
+ */
+export function encU64BE(n: number | bigint): Uint8Array {
+ const value = assertUint64Range(n, 'encU64BE')
+ const view = new DataView(new ArrayBuffer(8))
+ view.setBigUint64(0, value, false)
+ return new Uint8Array(view.buffer)
+}
+
+/**
+ * Shared range/integer check for the two 64-bit integer encoders. Handles
+ * both arms of the `number | bigint` union and returns the validated value
+ * as a `bigint` ready for `DataView.setBigUint64`. `DataView` itself does
+ * not throw on negative or overflowing input — it silently wraps — which
+ * would break the protocol's requirement that any flipped wire field
+ * changes the encoded (and later, MAC'd/digested) bytes.
+ */
+function assertUint64Range(n: number | bigint, field: string): bigint {
+ if (typeof n === 'bigint') {
+ if (n < 0n || n >= 2n ** 64n) {
+ throw new ProtocolViolationError(
+ `${field} input must be a non-negative integer within uint64 range`
+ )
+ }
+ return n
+ }
+ if (!Number.isInteger(n) || n < 0 || n >= 2 ** 64) {
+ throw new ProtocolViolationError(
+ `${field} input must be a non-negative integer within uint64 range`
+ )
+ }
+ return BigInt(n)
+}
+
+/**
+ * `OS2IP(b)` — big-endian interpretation of a byte string as an integer (§2).
+ * Shared by every mbp1 module that turns raw bytes (a hash digest, CSPRNG
+ * output) into a numeric value: `scrypt-w.ts`'s `w` derivation,
+ * `pairing-code.ts`'s bit-grouping, and later §6.3 scalar rejection sampling.
+ */
+export function os2ip(bytes: Uint8Array): bigint {
+ let n = 0n
+ for (const byte of bytes) {
+ n = (n << 8n) | BigInt(byte)
+ }
+ return n
+}
+
+/**
+ * `HKDF-SHA-256(ikm, salt, info, L=32)` — the fixed MBP1 KDF (§3). Every MBP1
+ * key derivation asks for exactly 32 bytes (§6.5's `KcA ‖ KcB`, §6.6's and
+ * §8's traffic keys, §9.2's `ticketKey`), so the length is not a parameter:
+ * a caller that wants two 16-byte keys slices this output rather than
+ * re-invoking HKDF with a different `L`, which would produce different bytes.
+ */
+export function hkdf32(
+ ikm: Uint8Array,
+ salt: Uint8Array,
+ info: Uint8Array
+): Uint8Array {
+ return new Uint8Array(hkdfSync('sha256', ikm, salt, info, 32))
+}
+
+/** `HMAC-SHA-256(key, data)` — the fixed MBP1 MAC (§3). */
+export function hmacSha256(key: Uint8Array, data: Uint8Array): Uint8Array {
+ return new Uint8Array(createHmac('sha256', key).update(data).digest())
+}
+
+const BASE64URL_ALPHABET = /^[A-Za-z0-9_-]*$/
+
+/** Base64url without padding (§2, RFC 4648 §5). */
+export function toBase64Url(bytes: Uint8Array): string {
+ return Buffer.from(bytes).toString('base64url')
+}
+
+/**
+ * Strict base64url decoder (§2): rejects padding, rejects non-alphabet
+ * characters, and rejects non-canonical trailing bits via a round-trip check.
+ */
+export function fromBase64Url(s: string): Uint8Array {
+ if (!BASE64URL_ALPHABET.test(s)) {
+ throw new ProtocolViolationError(
+ 'base64url input contains padding or non-alphabet characters'
+ )
+ }
+ if (s.length % 4 === 1) {
+ throw new ProtocolViolationError('base64url input has invalid length')
+ }
+ const decoded = new Uint8Array(Buffer.from(s, 'base64url'))
+ if (toBase64Url(decoded) !== s) {
+ throw new ProtocolViolationError(
+ 'base64url input has non-canonical trailing bits'
+ )
+ }
+ return decoded
+}
diff --git a/src/core/bridge/mbp1/envelope-message-stream.test.ts b/src/core/bridge/mbp1/envelope-message-stream.test.ts
new file mode 100644
index 00000000..3555bb4e
--- /dev/null
+++ b/src/core/bridge/mbp1/envelope-message-stream.test.ts
@@ -0,0 +1,546 @@
+import { Buffer } from 'node:buffer'
+import { EventEmitter } from 'node:events'
+import { describe, expect, it, type Mock, vi } from 'vitest'
+import type { WebSocketLike } from '../web-socket-message-stream'
+import {
+ WebSocketMessageReader,
+ WebSocketMessageWriter,
+} from '../web-socket-message-stream'
+import { ProtocolViolationError } from './canonical'
+import {
+ DIR_C2S,
+ DIR_S2C,
+ EnvelopeLimitError,
+ EnvelopeOpener,
+ EnvelopeSealer,
+ EnvelopeViolationError,
+} from './envelope'
+import {
+ type EnvelopeStreamFault,
+ wrapWithEnvelope,
+} from './envelope-message-stream'
+
+const KEY_C2S = new Uint8Array(32).fill(7)
+const KEY_S2C = new Uint8Array(32).fill(9)
+
+/**
+ * A `ws`-shaped double that carries the `isBinary` flag the real socket
+ * supplies. It deliberately emits a `Buffer` for BOTH text and binary frames,
+ * exactly as `ws` does in its default `binaryType: 'nodebuffer'` mode — a
+ * double that emitted a `string` for text frames would let a wrapper that
+ * discriminates on `typeof data` pass while production stays open (§10).
+ */
+class FakeSocket extends EventEmitter {
+ readonly sent: Uint8Array[] = []
+ readyState = 1
+ closedWith: Array<[number | undefined, string | undefined]> = []
+
+ send(data: string | Uint8Array): void {
+ this.sent.push(
+ typeof data === 'string' ? Buffer.from(data, 'utf8') : data.slice()
+ )
+ }
+
+ close(code?: number, reason?: string): void {
+ this.closedWith.push([code, reason])
+ this.readyState = 3
+ }
+
+ /** Deliver a frame the way `ws` does: `(data, isBinary)`. */
+ deliverBinary(frame: Uint8Array): void {
+ this.emit('message', Buffer.from(frame), true)
+ }
+
+ deliverText(text: string): void {
+ this.emit('message', Buffer.from(text, 'utf8'), false)
+ }
+
+ asLike(): WebSocketLike {
+ return this as unknown as WebSocketLike
+ }
+}
+
+/** The first fault reported, or a loud failure if none was. */
+function firstFault(onViolation: Mock): EnvelopeStreamFault {
+ const fault = onViolation.mock.calls[0]?.[0]
+ if (!fault) {
+ throw new Error('onViolation was never called')
+ }
+ return fault as EnvelopeStreamFault
+}
+
+/** The peer's half of the same channel, so a test can seal and open for real. */
+function makePeer(startSeqC2S = 0, startSeqS2C = 0) {
+ return {
+ /** Seals what the client sends to the server. */
+ sealer: new EnvelopeSealer(KEY_C2S, DIR_C2S, startSeqC2S),
+ /** Opens what the server sends to the client. */
+ opener: new EnvelopeOpener(KEY_S2C, DIR_S2C, startSeqS2C),
+ }
+}
+
+/** The server's half. */
+function makeServerChannel(startSeqS2C = 0, startSeqC2S = 0) {
+ return {
+ sealer: new EnvelopeSealer(KEY_S2C, DIR_S2C, startSeqS2C),
+ opener: new EnvelopeOpener(KEY_C2S, DIR_C2S, startSeqC2S),
+ }
+}
+
+describe('wrapWithEnvelope — inbound', () => {
+ it('opens a sealed binary frame and delivers the plaintext to every listener', () => {
+ const ws = new FakeSocket()
+ const peer = makePeer()
+ const wrapped = wrapWithEnvelope(ws.asLike(), makeServerChannel(), vi.fn())
+
+ const first: string[] = []
+ const second: string[] = []
+ wrapped.on('message', (data) => {
+ first.push(data.toString('utf8'))
+ })
+ wrapped.on('message', (data) => {
+ second.push(data.toString('utf8'))
+ })
+
+ ws.deliverBinary(peer.sealer.seal(Buffer.from('{"a":1}', 'utf8')))
+
+ expect(first).toEqual(['{"a":1}'])
+ expect(second).toEqual(['{"a":1}'])
+ })
+
+ it('delivers a value whose toString("utf8") is the plaintext, not comma-joined digits', () => {
+ // `WebSocketMessageReader.messageListener` calls `data.toString('utf8')`.
+ // A bare `Uint8Array` would answer "123,34,97..." and die at JSON.parse.
+ const ws = new FakeSocket()
+ const peer = makePeer()
+ const wrapped = wrapWithEnvelope(ws.asLike(), makeServerChannel(), vi.fn())
+ const reader = new WebSocketMessageReader(wrapped)
+ const received: unknown[] = []
+ reader.listen((m) => {
+ received.push(m)
+ })
+ const errors: Error[] = []
+ reader.onError((e) => {
+ errors.push(e)
+ })
+
+ ws.deliverBinary(
+ peer.sealer.seal(
+ Buffer.from(JSON.stringify({ jsonrpc: '2.0', method: 'x' }), 'utf8')
+ )
+ )
+
+ expect(errors).toEqual([])
+ expect(received).toEqual([{ jsonrpc: '2.0', method: 'x' }])
+ })
+
+ it('treats a text frame after channel activation as a peer violation and delivers nothing', () => {
+ const ws = new FakeSocket()
+ const onViolation = vi.fn()
+ const wrapped = wrapWithEnvelope(
+ ws.asLike(),
+ makeServerChannel(),
+ onViolation
+ )
+ const delivered = vi.fn()
+ wrapped.on('message', delivered)
+
+ ws.deliverText('{"jsonrpc":"2.0","method":"x"}')
+
+ expect(delivered).not.toHaveBeenCalled()
+ expect(onViolation).toHaveBeenCalledTimes(1)
+ const fault = firstFault(onViolation)
+ expect(fault.kind).toBe('peer-violation')
+ expect(fault.cause).toBeInstanceOf(EnvelopeViolationError)
+ })
+
+ it('refuses a well-formed envelope that arrives flagged as text', () => {
+ // The sharp form of the case above, and the one that survives a wrapper
+ // discriminating on `typeof data`: the payload WOULD open cleanly, so only
+ // reading `isBinary` can refuse it. Under `binaryType: 'nodebuffer'` a real
+ // `ws` hands both frame types over as a `Buffer`, so a `typeof` check would
+ // accept injected plaintext as an authenticated envelope (§10).
+ const ws = new FakeSocket()
+ const peer = makePeer()
+ const onViolation = vi.fn()
+ const wrapped = wrapWithEnvelope(
+ ws.asLike(),
+ makeServerChannel(),
+ onViolation
+ )
+ const delivered = vi.fn()
+ wrapped.on('message', delivered)
+
+ const sealed = peer.sealer.seal(Buffer.from('{"a":1}', 'utf8'))
+ ws.emit('message', Buffer.from(sealed), false)
+
+ expect(delivered).not.toHaveBeenCalled()
+ expect(onViolation).toHaveBeenCalledTimes(1)
+ expect(firstFault(onViolation).cause.message).toMatch(/text frame/)
+ })
+
+ it('refuses a frame that arrives with no binary flag at all', () => {
+ const ws = new FakeSocket()
+ const peer = makePeer()
+ const onViolation = vi.fn()
+ const wrapped = wrapWithEnvelope(
+ ws.asLike(),
+ makeServerChannel(),
+ onViolation
+ )
+ const delivered = vi.fn()
+ wrapped.on('message', delivered)
+
+ ws.emit('message', Buffer.from(peer.sealer.seal(Buffer.from('x', 'utf8'))))
+
+ expect(delivered).not.toHaveBeenCalled()
+ expect(onViolation).toHaveBeenCalledTimes(1)
+ })
+
+ it('treats a tampered frame as a peer violation and delivers nothing', () => {
+ const ws = new FakeSocket()
+ const peer = makePeer()
+ const onViolation = vi.fn()
+ const wrapped = wrapWithEnvelope(
+ ws.asLike(),
+ makeServerChannel(),
+ onViolation
+ )
+ const delivered = vi.fn()
+ wrapped.on('message', delivered)
+
+ const frame = peer.sealer.seal(Buffer.from('{"a":1}', 'utf8'))
+ frame[frame.length - 1] ^= 0xff
+
+ ws.deliverBinary(frame)
+
+ expect(delivered).not.toHaveBeenCalled()
+ expect(onViolation).toHaveBeenCalledTimes(1)
+ expect(firstFault(onViolation).kind).toBe('peer-violation')
+ })
+
+ it('treats a replayed frame as a violation (strict sequence, no window)', () => {
+ const ws = new FakeSocket()
+ const peer = makePeer()
+ const onViolation = vi.fn()
+ const wrapped = wrapWithEnvelope(
+ ws.asLike(),
+ makeServerChannel(),
+ onViolation
+ )
+ const delivered = vi.fn()
+ wrapped.on('message', delivered)
+
+ const frame = peer.sealer.seal(Buffer.from('{"a":1}', 'utf8'))
+ ws.deliverBinary(frame)
+ ws.deliverBinary(frame)
+
+ expect(delivered).toHaveBeenCalledTimes(1)
+ expect(onViolation).toHaveBeenCalledTimes(1)
+ })
+
+ it('resumes from constructor-injected sequence state rather than a test back door', () => {
+ const ws = new FakeSocket()
+ // Both halves resume at c2s seq 5 — the shape a handover mid-stream has.
+ const peer = makePeer(5)
+ const onViolation = vi.fn()
+ const wrapped = wrapWithEnvelope(
+ ws.asLike(),
+ makeServerChannel(0, 5),
+ onViolation
+ )
+ const received: string[] = []
+ wrapped.on('message', (data) => {
+ received.push(data.toString('utf8'))
+ })
+
+ ws.deliverBinary(peer.sealer.seal(Buffer.from('resumed', 'utf8')))
+
+ expect(onViolation).not.toHaveBeenCalled()
+ expect(received).toEqual(['resumed'])
+ })
+
+ it('reports an internal opener fault as NOT the peer, with the original cause attached', () => {
+ // The bug class this guards: an implementation TypeError reported as "GCM
+ // authentication failed", which reads as a wire attack during debugging.
+ const ws = new FakeSocket()
+ const boom = new TypeError('opener is broken')
+ const brokenOpener = {
+ open(): Uint8Array {
+ throw boom
+ },
+ } as unknown as EnvelopeOpener
+ const onViolation = vi.fn()
+ const wrapped = wrapWithEnvelope(
+ ws.asLike(),
+ { sealer: new EnvelopeSealer(KEY_S2C, DIR_S2C), opener: brokenOpener },
+ onViolation
+ )
+ const delivered = vi.fn()
+ wrapped.on('message', delivered)
+
+ ws.deliverBinary(new Uint8Array(32))
+
+ expect(delivered).not.toHaveBeenCalled()
+ const fault = firstFault(onViolation)
+ expect(fault.kind).toBe('internal')
+ expect(fault.cause.cause).toBe(boom)
+ })
+
+ it('reports a ProtocolViolationError from the opener as a peer violation', () => {
+ const ws = new FakeSocket()
+ const brokenOpener = {
+ open(): Uint8Array {
+ throw new ProtocolViolationError('non-canonical')
+ },
+ } as unknown as EnvelopeOpener
+ const onViolation = vi.fn()
+ const wrapped = wrapWithEnvelope(
+ ws.asLike(),
+ { sealer: new EnvelopeSealer(KEY_S2C, DIR_S2C), opener: brokenOpener },
+ onViolation
+ )
+ wrapped.on('message', vi.fn())
+
+ ws.deliverBinary(new Uint8Array(32))
+
+ expect(firstFault(onViolation).kind).toBe('peer-violation')
+ })
+
+ it('reports an inbound EnvelopeLimitError as a usage-limit closure, not a peer violation or internal fault', () => {
+ // The opener's frame-count check reads only its own counter, before the
+ // frame is even parsed, so an arbitrary length-valid buffer trips it
+ // without needing real encryption (mirrors envelope.test.ts).
+ const ws = new FakeSocket()
+ const onViolation = vi.fn()
+ const wrapped = wrapWithEnvelope(
+ ws.asLike(),
+ {
+ sealer: new EnvelopeSealer(KEY_S2C, DIR_S2C),
+ opener: new EnvelopeOpener(KEY_C2S, DIR_C2S, 2 ** 24),
+ },
+ onViolation
+ )
+ const delivered = vi.fn()
+ wrapped.on('message', delivered)
+
+ ws.deliverBinary(new Uint8Array(8 + 16))
+
+ expect(delivered).not.toHaveBeenCalled()
+ expect(onViolation).toHaveBeenCalledTimes(1)
+ const fault = firstFault(onViolation)
+ expect(fault.kind).toBe('usage-limit')
+ expect(fault.cause).toBeInstanceOf(EnvelopeLimitError)
+ })
+})
+
+describe('wrapWithEnvelope — outbound', () => {
+ it('seals a written string into a binary frame the peer opener round-trips', () => {
+ const ws = new FakeSocket()
+ const peer = makePeer()
+ const wrapped = wrapWithEnvelope(ws.asLike(), makeServerChannel(), vi.fn())
+
+ wrapped.send('{"a":1}')
+
+ expect(ws.sent).toHaveLength(1)
+ const frame = ws.sent[0]
+ if (!frame) throw new Error('no frame sent')
+ expect(Buffer.from(peer.opener.open(frame)).toString('utf8')).toBe(
+ '{"a":1}'
+ )
+ })
+
+ it('carries the handed-over sealer, so the first post-handover frame continues its sequence', () => {
+ // Pair hands over a sealer that already sent `credentialCommitted`: the
+ // next server frame must be seq 1, not a fresh 0 (§10).
+ const ws = new FakeSocket()
+ const peer = makePeer(0, 1)
+ const wrapped = wrapWithEnvelope(ws.asLike(), makeServerChannel(1), vi.fn())
+
+ wrapped.send('post-handover')
+
+ const frame = ws.sent[0]
+ if (!frame) throw new Error('no frame sent')
+ expect(Buffer.from(frame.subarray(0, 8)).toString('hex')).toBe(
+ '0000000000000001'
+ )
+ expect(Buffer.from(peer.opener.open(frame)).toString('utf8')).toBe(
+ 'post-handover'
+ )
+ })
+
+ it('exposes the §10 outbound usage counters', () => {
+ const ws = new FakeSocket()
+ const wrapped = wrapWithEnvelope(ws.asLike(), makeServerChannel(), vi.fn())
+
+ expect(wrapped.usage).toEqual({ frames: 0, blocks: 0 })
+ wrapped.send('0123456789abcdef0123')
+ expect(wrapped.usage).toEqual({ frames: 1, blocks: 2 })
+ })
+
+ it('reports an outbound EnvelopeLimitError as a usage-limit closure, and still throws to the caller', () => {
+ // A sealer already AT the frame-count bound: the very next seal() throws.
+ const ws = new FakeSocket()
+ const onViolation = vi.fn()
+ const channel = {
+ sealer: new EnvelopeSealer(KEY_S2C, DIR_S2C, 2 ** 24),
+ opener: new EnvelopeOpener(KEY_C2S, DIR_C2S),
+ }
+ const wrapped = wrapWithEnvelope(ws.asLike(), channel, onViolation)
+
+ expect(() => wrapped.send('{"a":1}')).toThrow(EnvelopeLimitError)
+
+ expect(ws.sent).toHaveLength(0)
+ expect(onViolation).toHaveBeenCalledTimes(1)
+ const fault = firstFault(onViolation)
+ expect(fault.kind).toBe('usage-limit')
+ expect(fault.cause).toBeInstanceOf(EnvelopeLimitError)
+ })
+
+ it('reports an oversized outbound plaintext as an internal fault', () => {
+ // `EnvelopeViolationError` from outbound `seal()` is this process's own
+ // §10 mistake, never the peer's. Leaving the socket alive after refusing
+ // an application frame can desynchronize higher-level request state, so
+ // the transport fails closed and lets the server map this to 1011.
+ const ws = new FakeSocket()
+ const onViolation = vi.fn()
+ const wrapped = wrapWithEnvelope(
+ ws.asLike(),
+ makeServerChannel(),
+ onViolation
+ )
+
+ expect(() => wrapped.send(new Uint8Array(1024 * 1024 + 1))).toThrow(
+ EnvelopeViolationError
+ )
+
+ expect(ws.sent).toHaveLength(0)
+ expect(onViolation).toHaveBeenCalledTimes(1)
+ const fault = firstFault(onViolation)
+ expect(fault.kind).toBe('internal')
+ expect(fault.cause).toBeInstanceOf(EnvelopeViolationError)
+ })
+
+ it('does not advance channel counters before reporting an oversized write', () => {
+ const ws = new FakeSocket()
+ const wrapped = wrapWithEnvelope(ws.asLike(), makeServerChannel(), vi.fn())
+
+ expect(() => wrapped.send(new Uint8Array(1024 * 1024 + 1))).toThrow(
+ EnvelopeViolationError
+ )
+
+ expect(wrapped.usage).toEqual({ frames: 0, blocks: 0 })
+ expect(ws.sent).toHaveLength(0)
+ })
+
+ it('reports an unexpected broken sealer as an internal fault', () => {
+ const ws = new FakeSocket()
+ const boom = new TypeError('sealer is broken')
+ const brokenSealer = {
+ seal(): Uint8Array {
+ throw boom
+ },
+ } as unknown as EnvelopeSealer
+ const onViolation = vi.fn()
+ const wrapped = wrapWithEnvelope(
+ ws.asLike(),
+ { sealer: brokenSealer, opener: new EnvelopeOpener(KEY_C2S, DIR_C2S) },
+ onViolation
+ )
+
+ expect(() => wrapped.send('{"a":1}')).toThrow(boom)
+
+ expect(ws.sent).toHaveLength(0)
+ expect(onViolation).toHaveBeenCalledTimes(1)
+ expect(firstFault(onViolation)).toEqual({ kind: 'internal', cause: boom })
+ })
+})
+
+describe('wrapWithEnvelope — socket surface', () => {
+ it('reads readyState live rather than copying it at wrap time', () => {
+ const ws = new FakeSocket()
+ const wrapped = wrapWithEnvelope(ws.asLike(), makeServerChannel(), vi.fn())
+
+ expect(wrapped.readyState).toBe(1)
+ ws.readyState = 3
+ expect(wrapped.readyState).toBe(3)
+ })
+
+ it('closes with no arguments, as MessageWriter.end() calls it', () => {
+ const ws = new FakeSocket()
+ const wrapped = wrapWithEnvelope(ws.asLike(), makeServerChannel(), vi.fn())
+ const writer = new WebSocketMessageWriter(wrapped)
+
+ writer.end()
+
+ expect(ws.closedWith).toEqual([[undefined, undefined]])
+ })
+
+ it('removes a message listener by identity and leaves the others attached', () => {
+ const ws = new FakeSocket()
+ const peer = makePeer()
+ const wrapped = wrapWithEnvelope(ws.asLike(), makeServerChannel(), vi.fn())
+ const kept = vi.fn()
+ const removed = vi.fn()
+ wrapped.on('message', kept)
+ wrapped.on('message', removed)
+
+ wrapped.off('message', removed)
+ ws.deliverBinary(peer.sealer.seal(Buffer.from('x', 'utf8')))
+
+ expect(kept).toHaveBeenCalledTimes(1)
+ expect(removed).not.toHaveBeenCalled()
+ })
+
+ it('detaches from the raw socket once its last message listener is removed', () => {
+ const ws = new FakeSocket()
+ const wrapped = wrapWithEnvelope(ws.asLike(), makeServerChannel(), vi.fn())
+ const listener = vi.fn()
+
+ wrapped.on('message', listener)
+ expect(ws.listenerCount('message')).toBe(1)
+ wrapped.off('message', listener)
+ expect(ws.listenerCount('message')).toBe(0)
+ })
+
+ it('supports the two close listeners the reader and writer each register', () => {
+ const ws = new FakeSocket()
+ const wrapped = wrapWithEnvelope(ws.asLike(), makeServerChannel(), vi.fn())
+ const reader = new WebSocketMessageReader(wrapped)
+ const writer = new WebSocketMessageWriter(wrapped)
+ const readerClosed = vi.fn()
+ const writerClosed = vi.fn()
+ reader.listen(vi.fn())
+ reader.onClose(readerClosed)
+ writer.onClose(writerClosed)
+
+ ws.emit('close')
+
+ expect(readerClosed).toHaveBeenCalledTimes(1)
+ expect(writerClosed).toHaveBeenCalledTimes(1)
+
+ reader.dispose()
+ writer.dispose()
+ ws.emit('close')
+ expect(readerClosed).toHaveBeenCalledTimes(1)
+ expect(writerClosed).toHaveBeenCalledTimes(1)
+ })
+
+ it('passes error events through to their listener', () => {
+ const ws = new FakeSocket()
+ // EventEmitter rethrows an 'error' with no listener, which would mask the
+ // assertion below once `off` has removed ours.
+ ws.on('error', () => {})
+ const wrapped = wrapWithEnvelope(ws.asLike(), makeServerChannel(), vi.fn())
+ const onError = vi.fn()
+ wrapped.on('error', onError)
+
+ const err = new Error('socket blew up')
+ ws.emit('error', err)
+
+ expect(onError).toHaveBeenCalledWith(err)
+ wrapped.off('error', onError)
+ ws.emit('error', err)
+ expect(onError).toHaveBeenCalledTimes(1)
+ })
+})
diff --git a/src/core/bridge/mbp1/envelope-message-stream.ts b/src/core/bridge/mbp1/envelope-message-stream.ts
new file mode 100644
index 00000000..bb133d11
--- /dev/null
+++ b/src/core/bridge/mbp1/envelope-message-stream.ts
@@ -0,0 +1,303 @@
+// MBP1 AEAD envelope as a WebSocket adapter
+// (docs/bridge-pairing-protocol.md §10).
+//
+// `envelope.ts` owns the frame format; this module is the seam that puts it
+// underneath MDXP. It wraps a live socket so that everything above it — the
+// `WebSocketMessageReader`/`WebSocketMessageWriter` pair and therefore the
+// whole `MdxpConnection` — keeps speaking plain JSON while every byte on the
+// wire is a sealed binary frame.
+//
+// Three properties are load-bearing and each is easy to lose by accident:
+//
+// 1. **A frame is opened exactly once, then fanned out.** Two adapters share
+// one wrapper (the reader registers `'message'`, and both the reader and
+// the writer register `'close'`), and `EnvelopeOpener` advances its strict
+// sequence counter on every successful open. Opening per listener would
+// make the second listener see a sequence mismatch on every frame.
+//
+// 2. **Only binary frames are envelopes.** `ws` in its default
+// `binaryType: 'nodebuffer'` mode delivers a TEXT frame as a `Buffer`
+// too, so `typeof data === 'string'` is not a discriminator; the
+// `isBinary` flag is. §10 makes a post-activation text frame a protocol
+// violation, and a wrapper that accepted one would hand injected
+// plaintext to MDXP as if it had been authenticated.
+//
+// 3. **A peer violation, a usage-bound closure, and an internal fault are
+// three different events, not two.** `EnvelopeViolationError`/
+// `ProtocolViolationError` mean the peer sent something §10 forbids;
+// `EnvelopeLimitError` means a direction reached its §10 frame/block
+// usage bound and MUST reconnect — expected, spec-mandated, and nobody's
+// fault; anything else means this process is broken. Collapsing the
+// first and third reports our own `TypeError` as "GCM authentication
+// failed", which reads as a wire attack during debugging. Collapsing the
+// second into either one instead reports a routine reconnect boundary as
+// an attack or a crash, which is exactly the same class of misattribution
+// one level up.
+//
+// This module handles traffic keys and plaintext MDXP payloads, so it logs
+// nothing at any level (§11).
+
+import { Buffer } from 'node:buffer'
+import { utf8ToBytes } from '@noble/hashes/utils.js'
+import type { WebSocketLike } from '../web-socket-message-stream'
+import { ProtocolViolationError } from './canonical'
+import {
+ EnvelopeLimitError,
+ type EnvelopeOpener,
+ type EnvelopeSealer,
+ EnvelopeViolationError,
+} from './envelope'
+
+/** The live AEAD endpoints a completed MBP1 handshake hands over (§6.6, §8). */
+export interface EnvelopeChannel {
+ sealer: EnvelopeSealer
+ opener: EnvelopeOpener
+}
+
+/**
+ * Why the stream refused an inbound frame or failed to seal an outbound one.
+ *
+ * - `'peer-violation'` — the peer sent something §10 forbids (bad frame,
+ * tampering, replay, a post-activation text frame). The wiring MUST close;
+ * it is the peer's fault.
+ * - `'usage-limit'` — a direction's §10 frame- or block-count usage bound was
+ * reached (`EnvelopeLimitError`). The wiring MUST close, but this is
+ * neither side's fault: §10 requires it before either bound is exceeded,
+ * and the remedy — reconnect and derive fresh keys (§8) — is the same
+ * whichever direction tripped it.
+ * - `'internal'` — this process is broken (a bug, not a protocol event).
+ *
+ * A two-state `fromPeer` boolean cannot represent this: a usage-limit closure
+ * is neither an accusation nor a confession, and forcing it into either
+ * bucket reports a routine, spec-mandated reconnect boundary as either an
+ * attack or a crash — the same misattribution the `EnvelopeViolationError`
+ * vs. internal-fault split above already exists to avoid one level down.
+ */
+export type EnvelopeStreamFaultKind =
+ | 'peer-violation'
+ | 'usage-limit'
+ | 'internal'
+
+export interface EnvelopeStreamFault {
+ readonly kind: EnvelopeStreamFaultKind
+ /** The violation/limit error itself, or — for an internal fault — a
+ * wrapper whose `cause` is the original error. */
+ readonly cause: Error
+}
+
+/** §10 usage counters for the outbound direction. Exposed so a caller could
+ * re-establish the connection with fresh keys before either bound is reached
+ * — but **no production code reads this yet**, so `EnvelopeLimitError` at the
+ * boundary is currently the operative path rather than a backstop behind a
+ * proactive one. */
+export interface EnvelopeUsage {
+ readonly frames: number
+ readonly blocks: number
+}
+
+export interface EnvelopeStream extends WebSocketLike {
+ readonly usage: EnvelopeUsage
+}
+
+type MessageListener = (data: Buffer | string, isBinary?: boolean) => void
+type CloseListener = () => void
+type ErrorListener = (err: Error) => void
+
+/**
+ * Wraps `ws` so inbound binary envelopes surface as plaintext `'message'`
+ * events and outbound writes leave sealed.
+ *
+ * `channel` MUST be the pair of endpoints the handshake produced, never
+ * freshly constructed ones: their sequence counters continue from the
+ * credential exchange (`/pair` already sealed `credentialCommitted`), and a
+ * fresh `EnvelopeSealer` would silently restart at seq 0 and desynchronize the
+ * peer's opener.
+ */
+export function wrapWithEnvelope(
+ ws: WebSocketLike,
+ channel: EnvelopeChannel,
+ onViolation: (fault: EnvelopeStreamFault) => void
+): EnvelopeStream {
+ return new EnvelopeMessageStream(ws, channel, onViolation)
+}
+
+class EnvelopeMessageStream implements EnvelopeStream {
+ private readonly listeners = new Set<MessageListener>()
+ private attached = false
+
+ /** The single raw listener; opens each frame once and fans the plaintext
+ * out to every registered listener. */
+ private readonly rawListener: MessageListener = (data, isBinary) => {
+ if (isBinary !== true) {
+ // §10: text frames after channel activation are a protocol violation.
+ this.onViolation({
+ kind: 'peer-violation',
+ cause: new EnvelopeViolationError(
+ 'received a text frame after channel activation'
+ ),
+ })
+ return
+ }
+
+ let plaintext: Uint8Array
+ try {
+ plaintext = this.channel.opener.open(toBytes(data))
+ } catch (error) {
+ this.onViolation(faultFromOpen(error))
+ return
+ }
+
+ // A `Buffer`, never a bare `Uint8Array`: `WebSocketMessageReader` calls
+ // `data.toString('utf8')`, which on a plain `Uint8Array` answers
+ // comma-joined digits and then dies at `JSON.parse`.
+ const frame = Buffer.from(plaintext)
+ // Snapshot: a listener may remove itself (or another) while dispatching.
+ for (const listener of [...this.listeners]) {
+ listener(frame, true)
+ }
+ }
+
+ constructor(
+ private readonly ws: WebSocketLike,
+ private readonly channel: EnvelopeChannel,
+ private readonly onViolation: (fault: EnvelopeStreamFault) => void
+ ) {}
+
+ /** Live, not copied: `MessageWriter.write`/`end` compare it per call. */
+ get readyState(): number {
+ return this.ws.readyState
+ }
+
+ get usage(): EnvelopeUsage {
+ return {
+ frames: this.channel.sealer.sealedFrameCount,
+ blocks: this.channel.sealer.sealedBlockCount,
+ }
+ }
+
+ on(event: 'message', listener: MessageListener): void
+ on(event: 'close', listener: CloseListener): void
+ on(event: 'error', listener: ErrorListener): void
+ on(
+ event: 'message' | 'close' | 'error',
+ listener: MessageListener | CloseListener | ErrorListener
+ ): void {
+ if (event === 'message') {
+ this.listeners.add(listener as MessageListener)
+ if (!this.attached) {
+ this.attached = true
+ this.ws.on('message', this.rawListener)
+ }
+ return
+ }
+ if (event === 'close') {
+ this.ws.on('close', listener as CloseListener)
+ return
+ }
+ this.ws.on('error', listener as ErrorListener)
+ }
+
+ off(event: 'message', listener: MessageListener): void
+ off(event: 'close', listener: CloseListener): void
+ off(event: 'error', listener: ErrorListener): void
+ off(
+ event: 'message' | 'close' | 'error',
+ listener: MessageListener | CloseListener | ErrorListener
+ ): void {
+ if (event === 'message') {
+ this.listeners.delete(listener as MessageListener)
+ if (this.attached && this.listeners.size === 0) {
+ this.attached = false
+ this.ws.off('message', this.rawListener)
+ }
+ return
+ }
+ if (event === 'close') {
+ this.ws.off('close', listener as CloseListener)
+ return
+ }
+ this.ws.off('error', listener as ErrorListener)
+ }
+
+ /**
+ * Seals and sends.
+ *
+ * A `seal` failure is a connection-level event. `EnvelopeLimitError` means
+ * the §10 usage bound requires a reconnect with fresh keys. An outbound
+ * `EnvelopeViolationError` means this process attempted to violate §10's
+ * 1 MiB plaintext limit; unlike the same class from inbound `open()`, that
+ * is an internal error rather than a peer protocol error. Both go to the
+ * fault sink before being rethrown so the WebSocket cannot remain live after
+ * the transport has refused an application frame. Any unexpected sealer
+ * failure is classified as internal for the same fail-closed reason.
+ *
+ * Either way the error is rethrown to the immediate caller —
+ * `WebSocketMessageWriter.write` reports it on its own error emitter and
+ * rethrows again — because the specific write that failed still needs to
+ * fail for whoever issued it (e.g. a pending `sendRequest`'s promise).
+ */
+ send(data: string | Uint8Array): void {
+ const plaintext = typeof data === 'string' ? utf8ToBytes(data) : data
+ let sealed: Uint8Array
+ try {
+ sealed = this.channel.sealer.seal(plaintext)
+ } catch (error) {
+ if (error instanceof EnvelopeLimitError) {
+ // Not wrapped, for the same reason `faultFromOpen` does not wrap it:
+ // the error's own message already reads as a usage-bound close.
+ this.onViolation({ kind: 'usage-limit', cause: error })
+ } else {
+ this.onViolation({
+ kind: 'internal',
+ cause:
+ error instanceof Error
+ ? error
+ : new Error('envelope stream failed to seal an outbound frame', {
+ cause: error,
+ }),
+ })
+ }
+ throw error
+ }
+ this.ws.send(sealed)
+ }
+
+ close(code?: number, reason?: string): void {
+ this.ws.close(code, reason)
+ }
+}
+
+/** A zero-copy view of the raw frame; `data` is a `Buffer` on every real socket. */
+function toBytes(data: Buffer | string): Uint8Array {
+ return typeof data === 'string'
+ ? utf8ToBytes(data)
+ : new Uint8Array(data.buffer, data.byteOffset, data.byteLength)
+}
+
+/**
+ * Classifies an `EnvelopeOpener.open` (inbound) failure. `EnvelopeLimitError`
+ * is checked before the peer-violation types: it is thrown from a check on
+ * this direction's OWN counter, before the frame is even parsed (see
+ * `envelope.ts`), so it is never also an `EnvelopeViolationError` — the order
+ * here documents that these are disjoint, not a priority between them.
+ */
+function faultFromOpen(error: unknown): EnvelopeStreamFault {
+ if (error instanceof EnvelopeLimitError) {
+ // Not wrapped: `EnvelopeLimitError`'s own message ("usage bound reached
+ // ...; reconnect required") already reads as a usage-bound close without
+ // needing the reader to know this `kind` exists.
+ return { kind: 'usage-limit', cause: error }
+ }
+ if (
+ error instanceof EnvelopeViolationError ||
+ error instanceof ProtocolViolationError
+ ) {
+ return { kind: 'peer-violation', cause: error }
+ }
+ return {
+ kind: 'internal',
+ cause: new Error('envelope stream failed to open an inbound frame', {
+ cause: error,
+ }),
+ }
+}
diff --git a/src/core/bridge/mbp1/envelope.test.ts b/src/core/bridge/mbp1/envelope.test.ts
new file mode 100644
index 00000000..c14d8ad1
--- /dev/null
+++ b/src/core/bridge/mbp1/envelope.test.ts
@@ -0,0 +1,261 @@
+import { createCipheriv } from 'node:crypto'
+import { utf8ToBytes } from '@noble/hashes/utils.js'
+import { describe, expect, it } from 'vitest'
+import { bytesToHex, hexToBytes, loadMbp1Vectors } from './__tests__/vectors'
+import { concatBytes, encU32BE, encU64BE } from './canonical'
+import {
+ DIR_C2S,
+ DIR_S2C,
+ type EnvelopeDirection,
+ EnvelopeLimitError,
+ EnvelopeOpener,
+ EnvelopeSealer,
+ EnvelopeViolationError,
+} from './envelope'
+
+const v = loadMbp1Vectors()
+const { inputs, expected } = v.envelope
+
+const keyC2S = hexToBytes(inputs.keyC2S)
+const keyS2C = hexToBytes(inputs.keyS2C)
+const plaintext0 = hexToBytes(inputs.plaintext0)
+const plaintext1 = hexToBytes(inputs.plaintext1)
+
+// Reimplements the wire format `seq64BE ‖ AES-256-GCM(...)` outside of
+// `EnvelopeSealer.seal`, whose own §10 bound checks refuse to produce a
+// frame at or past MAX_ENVELOPE_FRAMES / MAX_ENVELOPE_BLOCKS. A compliant
+// sealer can never hand back such a frame, so the only way to prove
+// `EnvelopeOpener.open` enforces its OWN bound — independently of whether
+// the sender complied — is to seal one by hand. This is exactly the "peer
+// implementation that simply never reconnects" scenario §10's bound exists
+// to guard against.
+const ENVELOPE_AAD = utf8ToBytes('MBP1/env/v1')
+
+function sealRawFrame(
+ key: Uint8Array,
+ dir: EnvelopeDirection,
+ seq: number,
+ plaintext: Uint8Array
+): Uint8Array {
+ const seqBytes = encU64BE(seq)
+ const cipher = createCipheriv(
+ 'aes-256-gcm',
+ key,
+ concatBytes(encU32BE(dir), seqBytes)
+ )
+ cipher.setAAD(ENVELOPE_AAD)
+ const ciphertext = concatBytes(
+ new Uint8Array(cipher.update(plaintext)),
+ new Uint8Array(cipher.final())
+ )
+ const tag = new Uint8Array(cipher.getAuthTag())
+ return concatBytes(seqBytes, ciphertext, tag)
+}
+
+describe('EnvelopeSealer (§10)', () => {
+ it('reproduces frameC2S_seq0 then frameC2S_seq1 from successive seals', () => {
+ const sealer = new EnvelopeSealer(keyC2S, DIR_C2S)
+ const f0 = sealer.seal(plaintext0)
+ const f1 = sealer.seal(plaintext1)
+ expect(bytesToHex(f0)).toBe(expected.frameC2S_seq0)
+ expect(bytesToHex(f1)).toBe(expected.frameC2S_seq1)
+ })
+
+ it('reproduces frameS2C_seq0', () => {
+ const sealer = new EnvelopeSealer(keyS2C, DIR_S2C)
+ const f0 = sealer.seal(plaintext1)
+ expect(bytesToHex(f0)).toBe(expected.frameS2C_seq0)
+ })
+})
+
+describe('EnvelopeOpener (§10)', () => {
+ it('round-trips frameC2S_seq0 then frameC2S_seq1 in order', () => {
+ const opener = new EnvelopeOpener(keyC2S, DIR_C2S)
+ const p0 = opener.open(hexToBytes(expected.frameC2S_seq0))
+ const p1 = opener.open(hexToBytes(expected.frameC2S_seq1))
+ expect(bytesToHex(p0)).toBe(bytesToHex(plaintext0))
+ expect(bytesToHex(p1)).toBe(bytesToHex(plaintext1))
+ })
+
+ it('round-trips frameS2C_seq0', () => {
+ const opener = new EnvelopeOpener(keyS2C, DIR_S2C)
+ const p0 = opener.open(hexToBytes(expected.frameS2C_seq0))
+ expect(bytesToHex(p0)).toBe(bytesToHex(plaintext1))
+ })
+})
+
+describe('EnvelopeOpener mustReject (§10)', () => {
+ it('rejects frameC2S_seq0 with its last ciphertext byte flipped (gcm auth failure)', () => {
+ const tampered = hexToBytes(expected.frameC2S_seq0)
+ tampered[tampered.length - 1] ^= 0x01
+ const opener = new EnvelopeOpener(keyC2S, DIR_C2S)
+ expect(() => opener.open(tampered)).toThrow(EnvelopeViolationError)
+ })
+
+ it('rejects frameC2S_seq0 opened with the same key but DIR_S2C (dirTag-only mismatch)', () => {
+ const opener = new EnvelopeOpener(keyC2S, DIR_S2C)
+ expect(() => opener.open(hexToBytes(expected.frameC2S_seq0))).toThrow(
+ EnvelopeViolationError
+ )
+ })
+
+ it('rejects frameC2S_seq0 opened with the s2c key', () => {
+ const opener = new EnvelopeOpener(keyS2C, DIR_C2S)
+ expect(() => opener.open(hexToBytes(expected.frameC2S_seq0))).toThrow(
+ EnvelopeViolationError
+ )
+ })
+
+ it('rejects frameC2S_seq1 presented when the expected seq is 0 (strict sequence check)', () => {
+ const opener = new EnvelopeOpener(keyC2S, DIR_C2S)
+ expect(() => opener.open(hexToBytes(expected.frameC2S_seq1))).toThrow(
+ EnvelopeViolationError
+ )
+ })
+
+ it('rejects a frame carrying more than the 1 MiB plaintext limit', () => {
+ // §10 caps the plaintext of a FRAME, not just of what we send. The receive
+ // side is the direction that protects us: an authenticated peer holding the
+ // traffic key could otherwise make us allocate and decrypt an arbitrarily
+ // large frame. Refused on length alone, before any crypto runs, so the
+ // frame need not be a genuinely sealed one.
+ //
+ // The message is asserted, not just the class: an unsealed oversized frame
+ // ALSO fails GCM, so a bare `toThrow(EnvelopeViolationError)` would pass
+ // just as happily with no length check at all. Only the reason separates
+ // the control being tested from the one behind it.
+ const oversized = new Uint8Array(8 + 16 + 1024 * 1024 + 1)
+ const opener = new EnvelopeOpener(keyC2S, DIR_C2S)
+ expect(() => opener.open(oversized)).toThrow(/1 MiB plaintext limit/)
+ })
+
+ it('admits a frame whose plaintext is exactly at the 1 MiB limit', () => {
+ // The boundary, sealed for real, so the cap cannot be off by one against a
+ // frame a conforming peer is allowed to send.
+ const sealer = new EnvelopeSealer(keyC2S, DIR_C2S)
+ const atLimit = sealer.seal(new Uint8Array(1024 * 1024))
+ const opener = new EnvelopeOpener(keyC2S, DIR_C2S)
+ expect(opener.open(atLimit)).toHaveLength(1024 * 1024)
+ })
+})
+
+describe('EnvelopeSealer usage bounds and size cap (§10)', () => {
+ it('throws EnvelopeLimitError once the 2^24 frame-count bound is reached', () => {
+ const sealer = new EnvelopeSealer(keyC2S, DIR_C2S, 2 ** 24)
+ expect(() => sealer.seal(new Uint8Array([1]))).toThrow(EnvelopeLimitError)
+ })
+
+ it('does not throw one frame below the 2^24 frame-count bound', () => {
+ const sealer = new EnvelopeSealer(keyC2S, DIR_C2S, 2 ** 24 - 1)
+ expect(() => sealer.seal(new Uint8Array([1]))).not.toThrow()
+ })
+
+ it('throws EnvelopeLimitError once the 2^30 encrypted-block bound is reached', () => {
+ const sealer = new EnvelopeSealer(keyC2S, DIR_C2S, 0, 2 ** 30)
+ expect(() => sealer.seal(new Uint8Array([1]))).toThrow(EnvelopeLimitError)
+ })
+
+ it('does not throw one block below the 2^30 encrypted-block bound', () => {
+ const sealer = new EnvelopeSealer(keyC2S, DIR_C2S, 0, 2 ** 30 - 1)
+ expect(() => sealer.seal(new Uint8Array([1]))).not.toThrow()
+ })
+
+ it('throws EnvelopeViolationError for plaintext over the 1 MiB frame limit', () => {
+ const sealer = new EnvelopeSealer(keyC2S, DIR_C2S)
+ const oversized = new Uint8Array(1024 * 1024 + 1)
+ expect(() => sealer.seal(oversized)).toThrow(EnvelopeViolationError)
+ })
+
+ it('accepts plaintext exactly at the 1 MiB frame limit', () => {
+ const sealer = new EnvelopeSealer(keyC2S, DIR_C2S)
+ const atLimit = new Uint8Array(1024 * 1024)
+ expect(() => sealer.seal(atLimit)).not.toThrow()
+ })
+})
+
+describe('EnvelopeOpener usage bounds (§10)', () => {
+ it('throws EnvelopeLimitError once the 2^24 frame-count bound is reached', () => {
+ // The frame-count check reads only the opener's own counter, never the
+ // frame, so it fires before the frame is parsed at all — an arbitrary
+ // length-valid buffer exercises it without needing real encryption.
+ const opener = new EnvelopeOpener(keyC2S, DIR_C2S, 2 ** 24)
+ const arbitraryValidLengthFrame = new Uint8Array(8 + 16)
+ expect(() => opener.open(arbitraryValidLengthFrame)).toThrow(
+ EnvelopeLimitError
+ )
+ })
+
+ it('does not throw one frame below the 2^24 frame-count bound', () => {
+ // Below the bound, a genuinely sealed frame must still round-trip: the
+ // guard must not fire early against a compliant sender.
+ const sealer = new EnvelopeSealer(keyC2S, DIR_C2S, 2 ** 24 - 1)
+ const frame = sealer.seal(new Uint8Array([1]))
+ const opener = new EnvelopeOpener(keyC2S, DIR_C2S, 2 ** 24 - 1)
+ expect(() => opener.open(frame)).not.toThrow()
+ })
+
+ it('throws EnvelopeLimitError once the 2^30 encrypted-block bound is reached', () => {
+ // A compliant EnvelopeSealer would refuse to produce this frame (its own
+ // block bound matches), so it is sealed by hand: this is the "peer never
+ // reconnects" scenario, not a compliant sender's last legal frame.
+ const frame = sealRawFrame(keyC2S, DIR_C2S, 0, new Uint8Array([1]))
+ const opener = new EnvelopeOpener(keyC2S, DIR_C2S, 0, 2 ** 30)
+ expect(() => opener.open(frame)).toThrow(EnvelopeLimitError)
+ })
+
+ it('does not throw one block below the 2^30 encrypted-block bound', () => {
+ const sealer = new EnvelopeSealer(keyC2S, DIR_C2S, 0, 2 ** 30 - 1)
+ const frame = sealer.seal(new Uint8Array([1]))
+ const opener = new EnvelopeOpener(keyC2S, DIR_C2S, 0, 2 ** 30 - 1)
+ expect(() => opener.open(frame)).not.toThrow()
+ })
+
+ it('rejects a tampered frame at the block bound with a GCM failure, not a limit error', () => {
+ // Proves the block-count check runs on the AUTHENTICATED plaintext, not
+ // the frame's declared length: if it ran on the declared length before
+ // decryption, this tampered frame's length alone would already trip
+ // EnvelopeLimitError, silently hiding that the frame was never actually
+ // authentic.
+ const frame = sealRawFrame(keyC2S, DIR_C2S, 0, new Uint8Array([1]))
+ frame[frame.length - 1] ^= 0x01 // flip the last tag byte -> GCM auth fails
+ const opener = new EnvelopeOpener(keyC2S, DIR_C2S, 0, 2 ** 30)
+ expect(() => opener.open(frame)).toThrow(EnvelopeViolationError)
+ })
+
+ it('does not advance seq after the block bound throws, so re-presenting the same frame keeps failing the same way', () => {
+ // If `seq` (or `blockCount`) had advanced despite the throw, presenting
+ // the identical frame again would report a sequence mismatch instead of
+ // the same limit error — proving the rejected frame was never admitted.
+ const frame = sealRawFrame(keyC2S, DIR_C2S, 5, new Uint8Array([1]))
+ const opener = new EnvelopeOpener(keyC2S, DIR_C2S, 5, 2 ** 30)
+ expect(() => opener.open(frame)).toThrow(EnvelopeLimitError)
+ expect(() => opener.open(frame)).toThrow(EnvelopeLimitError)
+ })
+})
+
+describe('EnvelopeSealer proactive-reconnect counters (§10)', () => {
+ it('starts sealedFrameCount and sealedBlockCount at the constructor seams', () => {
+ const sealer = new EnvelopeSealer(keyC2S, DIR_C2S, 7, 42)
+ expect(sealer.sealedFrameCount).toBe(7)
+ expect(sealer.sealedBlockCount).toBe(42)
+ })
+
+ it('advances sealedFrameCount by exactly 1 per seal', () => {
+ const sealer = new EnvelopeSealer(keyC2S, DIR_C2S)
+ sealer.seal(new Uint8Array(1))
+ expect(sealer.sealedFrameCount).toBe(1)
+ sealer.seal(new Uint8Array(1))
+ expect(sealer.sealedFrameCount).toBe(2)
+ })
+
+ it('advances sealedBlockCount by ceil(plaintextLength / 16) per seal', () => {
+ const sealer = new EnvelopeSealer(keyC2S, DIR_C2S)
+ expect(sealer.sealedBlockCount).toBe(0)
+ sealer.seal(new Uint8Array(16)) // ceil(16/16) = 1 block
+ expect(sealer.sealedBlockCount).toBe(1)
+ sealer.seal(new Uint8Array(17)) // ceil(17/16) = 2 blocks
+ expect(sealer.sealedBlockCount).toBe(3)
+ sealer.seal(new Uint8Array(0)) // ceil(0/16) = 0 blocks
+ expect(sealer.sealedBlockCount).toBe(3)
+ })
+})
diff --git a/src/core/bridge/mbp1/envelope.ts b/src/core/bridge/mbp1/envelope.ts
new file mode 100644
index 00000000..ba518808
--- /dev/null
+++ b/src/core/bridge/mbp1/envelope.ts
@@ -0,0 +1,300 @@
+// MBP1 AEAD envelope (docs/bridge-pairing-protocol.md §10).
+//
+// Wraps every post-handshake frame in both directions, sitting below MDXP:
+// the MDXP JSON-RPC payload bytes are the plaintext, unchanged. Frames are
+// WebSocket binary messages, one frame per message. `seq` is a strict
+// monotonic per-direction counter with no receive window — any gap, repeat,
+// or GCM authentication failure MUST close the connection immediately. This
+// strict sequence check IS the replay protection; there is no separate
+// replay cache.
+//
+// Nonce uniqueness holds per key by construction (`dirTag ‖ seq`, seq never
+// repeats within a direction), but usage bounds are a separate concern: a
+// connection MUST be re-established via reconnect — deriving fresh keys —
+// before either direction exceeds 2^24 frames or 2^30 encrypted AES blocks.
+// There is no in-place rekey in v1.
+//
+// Keys and plaintexts handled here are secret-adjacent; this module logs
+// nothing at any level.
+
+import { createCipheriv, createDecipheriv } from 'node:crypto'
+import { utf8ToBytes } from '@noble/hashes/utils.js'
+import { concatBytes, encU32BE, encU64BE, os2ip } from './canonical'
+
+export const DIR_C2S = 1 as const
+export const DIR_S2C = 2 as const
+export type EnvelopeDirection = typeof DIR_C2S | typeof DIR_S2C
+
+/** Malformed frame, dirTag/key mismatch, GCM auth failure, or out-of-order `seq` (§10, §11 `protocolViolation`). */
+export class EnvelopeViolationError extends Error {}
+
+/**
+ * A direction has reached its 2^24-frame or 2^30-block usage bound and MUST
+ * reconnect (§10). Thrown by both `EnvelopeSealer.seal` (outbound) and
+ * `EnvelopeOpener.open` (inbound): the remedy is identical either way — close
+ * the connection and re-establish it with fresh keys — so this is kept
+ * distinct from `EnvelopeViolationError` even on the inbound side, where the
+ * frame that trips it is otherwise entirely well-formed and authentic. A peer
+ * that kept sending past the point where §10 required it to reconnect failed
+ * a MUST, but it is not the same failure mode as a forged or replayed frame,
+ * and the caller's response — reconnect, don't accuse — is the same as when
+ * this side is the one approaching the bound.
+ */
+export class EnvelopeLimitError extends Error {}
+
+const AAD = utf8ToBytes('MBP1/env/v1')
+const SEQ_LENGTH = 8
+const TAG_LENGTH = 16
+const BLOCK_SIZE = 16
+/** §10 maximum plaintext carried by one envelope. */
+export const MAX_ENVELOPE_PLAINTEXT_BYTES = 1024 * 1024
+/** Largest binary WebSocket message a conforming §10 envelope can produce. */
+export const MAX_ENVELOPE_FRAME_BYTES =
+ MAX_ENVELOPE_PLAINTEXT_BYTES + SEQ_LENGTH + TAG_LENGTH
+
+/** §10 usage bound: a direction MUST reconnect with fresh keys before sealing this many frames. */
+export const MAX_ENVELOPE_FRAMES = 2 ** 24
+
+/** §10 usage bound: a direction MUST reconnect with fresh keys before sealing this many encrypted AES blocks (16 GiB of plaintext). */
+export const MAX_ENVELOPE_BLOCKS = 2 ** 30
+
+/**
+ * The §10 usage-bound checks, shared by both directions.
+ *
+ * Extracted because the two sites were byte-identical, message included — which
+ * made a log unable to say which direction had exhausted, and made a mutation
+ * test unable to target one site without hitting the other. `side` fixes both:
+ * the logic has one home, and the message names the direction.
+ */
+function assertFrameBoundNotReached(
+ seq: number,
+ side: 'outbound' | 'inbound'
+): void {
+ if (seq >= MAX_ENVELOPE_FRAMES) {
+ throw new EnvelopeLimitError(
+ `envelope ${side} frame-count usage bound reached (2^24 frames); reconnect required`
+ )
+ }
+}
+
+function assertBlockBoundNotReached(
+ blockCount: number,
+ blocks: number,
+ side: 'outbound' | 'inbound'
+): void {
+ if (blockCount + blocks > MAX_ENVELOPE_BLOCKS) {
+ throw new EnvelopeLimitError(
+ `envelope ${side} encrypted-block usage bound reached (2^30 blocks); reconnect required`
+ )
+ }
+}
+
+/** `ceil(plaintextLength / 16)` encrypted AES blocks, for the §10 usage bound. */
+function blockCountFor(length: number): number {
+ return Math.ceil(length / BLOCK_SIZE)
+}
+
+/** `nonce = dirTag(4 bytes BE) ‖ seq64BE` (12 bytes, §10). */
+function buildNonce(dir: EnvelopeDirection, seqBytes: Uint8Array): Uint8Array {
+ return concatBytes(encU32BE(dir), seqBytes)
+}
+
+/**
+ * Seals plaintext into successive envelope frames for one direction.
+ *
+ * `startSeq` and `startBlockCount` (both default 0, the real starting point
+ * for a fresh connection — there is no in-place rekey in v1, so production
+ * code never passes non-default values) are resume seams: the point at
+ * which this sealer's counters begin, expressed as ordinary constructor
+ * arguments rather than a production-only setter, so the 2^24-frame and
+ * 2^30-block usage bounds are reachable and verifiable from a test.
+ *
+ * `sealedFrameCount`/`sealedBlockCount` expose this direction's §10 usage so a
+ * caller *could* close and reconnect with fresh keys before either bound is
+ * reached.
+ *
+ * **Nothing does that today.** Outside tests, the only reader is
+ * `EnvelopeMessageStream`, which forwards them as `EnvelopeUsage`; no
+ * production code consults that. So `EnvelopeLimitError` is the operative
+ * path, not a backstop behind a proactive one, and §10's MUST is met by the
+ * refusal at the boundary rather than by anticipating it. `EnvelopeOpener`
+ * exposes no counter getters at all, so a future proactive layer would need
+ * inbound ones added before it could act on that direction.
+ */
+export class EnvelopeSealer {
+ private readonly key: Uint8Array
+ private readonly dir: EnvelopeDirection
+ private seq: number
+ private blockCount: number
+
+ constructor(
+ key: Uint8Array,
+ dir: EnvelopeDirection,
+ startSeq = 0,
+ startBlockCount = 0
+ ) {
+ this.key = key
+ this.dir = dir
+ this.seq = startSeq
+ this.blockCount = startBlockCount
+ }
+
+ /** Number of frames this instance has sealed so far (§10 proactive-reconnect signal). */
+ get sealedFrameCount(): number {
+ return this.seq
+ }
+
+ /** Cumulative `ceil(plaintextLength / 16)` encrypted AES blocks this instance has sealed so far (§10 proactive-reconnect signal). */
+ get sealedBlockCount(): number {
+ return this.blockCount
+ }
+
+ /** `frame = seq64BE ‖ AES-256-GCM(key, nonce, plaintext, aad)` (§10). */
+ seal(plaintext: Uint8Array): Uint8Array {
+ if (plaintext.length > MAX_ENVELOPE_PLAINTEXT_BYTES) {
+ throw new EnvelopeViolationError(
+ `envelope plaintext of ${plaintext.length} bytes exceeds the 1 MiB frame limit`
+ )
+ }
+ assertFrameBoundNotReached(this.seq, 'outbound')
+ const blocks = blockCountFor(plaintext.length)
+ assertBlockBoundNotReached(this.blockCount, blocks, 'outbound')
+
+ const seqBytes = encU64BE(this.seq)
+ const cipher = createCipheriv(
+ 'aes-256-gcm',
+ this.key,
+ buildNonce(this.dir, seqBytes)
+ )
+ cipher.setAAD(AAD)
+ const ciphertext = concatBytes(
+ new Uint8Array(cipher.update(plaintext)),
+ new Uint8Array(cipher.final())
+ )
+ const tag = new Uint8Array(cipher.getAuthTag())
+
+ this.seq += 1
+ this.blockCount += blocks
+
+ return concatBytes(seqBytes, ciphertext, tag)
+ }
+}
+
+/**
+ * Opens envelope frames for one direction, enforcing the strict monotonic
+ * sequence check: `seq` must equal the expected counter exactly, with no
+ * window. Any gap, repeat, dirTag/key mismatch, or GCM authentication
+ * failure throws `EnvelopeViolationError`, which the caller MUST treat as an
+ * immediate connection close (§10, §11).
+ *
+ * Also enforces the same §10 usage bounds as `EnvelopeSealer`: this
+ * direction MUST reconnect with fresh keys before it has opened
+ * `MAX_ENVELOPE_FRAMES` frames or `MAX_ENVELOPE_BLOCKS` encrypted blocks,
+ * regardless of which side is sending — the advantage bound the limits exist
+ * to protect grows with frames processed under a key, not with frames a
+ * single side chose to seal. Exceeding either throws `EnvelopeLimitError`.
+ *
+ * With the strict sequence check above, this direction's counters advance in
+ * lockstep with frames the peer actually sent, so a compliant peer's own
+ * `seal` would already have refused to transmit whatever frame would push
+ * this bound past its limit. This check is therefore a receive-side
+ * backstop against a peer that does not enforce that bound on itself — the
+ * same defense-in-depth rationale that already justifies enforcing the
+ * 1 MiB frame cap on receive rather than trusting the sender alone.
+ *
+ * `startSeq`/`startBlockCount` (both default 0, the real starting point for
+ * a fresh connection — there is no in-place rekey in v1, so production code
+ * never passes non-default values) are the same kind of resume seam as
+ * `EnvelopeSealer`'s constructor arguments — ordinary constructor arguments,
+ * not a production-only setter, so the usage bounds are reachable and
+ * verifiable from a test.
+ */
+export class EnvelopeOpener {
+ private readonly key: Uint8Array
+ private readonly dir: EnvelopeDirection
+ private seq: number
+ private blockCount: number
+
+ constructor(
+ key: Uint8Array,
+ dir: EnvelopeDirection,
+ startSeq = 0,
+ startBlockCount = 0
+ ) {
+ this.key = key
+ this.dir = dir
+ this.seq = startSeq
+ this.blockCount = startBlockCount
+ }
+
+ open(frame: Uint8Array): Uint8Array {
+ if (frame.length < SEQ_LENGTH + TAG_LENGTH) {
+ throw new EnvelopeViolationError(
+ `envelope frame of ${frame.length} bytes is shorter than the seq+tag minimum`
+ )
+ }
+ // §10 states the 1 MiB cap as a property of a FRAME, not of the sender, so
+ // it binds this direction too. Checked here rather than after decryption:
+ // GCM ciphertext and plaintext are the same length, so the bound is known
+ // up front, and refusing early is what actually protects us — an
+ // authenticated peer holding the traffic key could otherwise make us
+ // allocate and decrypt an arbitrarily large frame before anyone objects.
+ if (frame.length - SEQ_LENGTH - TAG_LENGTH > MAX_ENVELOPE_PLAINTEXT_BYTES) {
+ throw new EnvelopeViolationError(
+ 'envelope frame carries more than the 1 MiB plaintext limit'
+ )
+ }
+ // §10 frame-count usage bound. Unlike the block bound below, this reads
+ // only our own counter — nothing from `frame` — so there is no
+ // "unauthenticated data" concern in checking it this early: once this
+ // direction has opened MAX_ENVELOPE_FRAMES frames, no further frame is
+ // admissible no matter what it contains, exactly mirroring where
+ // `EnvelopeSealer.seal` checks it, before doing any work.
+ assertFrameBoundNotReached(this.seq, 'inbound')
+
+ const seqBytes = frame.subarray(0, SEQ_LENGTH)
+ if (os2ip(seqBytes) !== BigInt(this.seq)) {
+ throw new EnvelopeViolationError(
+ `envelope sequence mismatch: expected ${this.seq}`
+ )
+ }
+
+ const ciphertext = frame.subarray(SEQ_LENGTH, frame.length - TAG_LENGTH)
+ const tag = frame.subarray(frame.length - TAG_LENGTH)
+
+ const decipher = createDecipheriv(
+ 'aes-256-gcm',
+ this.key,
+ buildNonce(this.dir, seqBytes)
+ )
+ decipher.setAAD(AAD)
+ decipher.setAuthTag(tag)
+
+ let plaintext: Uint8Array
+ try {
+ plaintext = concatBytes(
+ new Uint8Array(decipher.update(ciphertext)),
+ new Uint8Array(decipher.final())
+ )
+ } catch {
+ throw new EnvelopeViolationError('envelope GCM authentication failed')
+ }
+
+ // §10 block-count usage bound, counted from the AUTHENTICATED plaintext
+ // rather than the frame's declared length, and checked only now that GCM
+ // has verified this frame. AES-GCM ciphertext and plaintext are the same
+ // length, so the two lengths agree for every frame that reaches this
+ // line — they diverge only for a frame that fails authentication, and
+ // that frame already threw above without ever reaching here. Checking
+ // pre-decryption on the declared length instead would let an
+ // unauthenticated, possibly forged frame dictate whether this direction
+ // is told to reconnect, which is the same mistake as letting it move
+ // `blockCount` at all.
+ const blocks = blockCountFor(plaintext.length)
+ assertBlockBoundNotReached(this.blockCount, blocks, 'inbound')
+
+ this.seq += 1
+ this.blockCount += blocks
+ return plaintext
+ }
+}
diff --git a/src/core/bridge/mbp1/flood-control.test.ts b/src/core/bridge/mbp1/flood-control.test.ts
new file mode 100644
index 00000000..514f2276
--- /dev/null
+++ b/src/core/bridge/mbp1/flood-control.test.ts
@@ -0,0 +1,172 @@
+import { describe, expect, it } from 'vitest'
+import { PairFloodControl } from './flood-control'
+
+describe('PairFloodControl (§7.3)', () => {
+ it('dedups a same-origin admit while one is already pending', () => {
+ const fc = new PairFloodControl()
+ expect(fc.admit('https://a.example')).toEqual({ ok: true })
+ expect(fc.admit('https://a.example')).toEqual({
+ ok: false,
+ code: 'busy',
+ })
+ })
+
+ it('rejects a 4th distinct-origin pending under the default global cap of 3', () => {
+ const fc = new PairFloodControl()
+ expect(fc.admit('https://a.example')).toEqual({ ok: true })
+ expect(fc.admit('https://b.example')).toEqual({ ok: true })
+ expect(fc.admit('https://c.example')).toEqual({ ok: true })
+ expect(fc.admit('https://d.example')).toEqual({
+ ok: false,
+ code: 'busy',
+ })
+ })
+
+ it('frees a pending slot on release, letting a new origin admit', () => {
+ const fc = new PairFloodControl()
+ fc.admit('https://a.example')
+ fc.admit('https://b.example')
+ fc.admit('https://c.example')
+ expect(fc.admit('https://d.example')).toEqual({
+ ok: false,
+ code: 'busy',
+ })
+ fc.release('https://a.example')
+ expect(fc.admit('https://d.example')).toEqual({ ok: true })
+ })
+
+ it('locks out for 30s after the 1st consecutive failure (n=1)', () => {
+ let t = 0
+ const fc = new PairFloodControl({ now: () => t })
+ fc.recordOutcome({
+ queuedDialog: true,
+ consumedAttempt: false,
+ confirmed: false,
+ })
+ expect(fc.lockoutRemainingMs()).toBe(30_000)
+ expect(fc.admit('https://a.example')).toEqual({
+ ok: false,
+ code: 'rateLimited',
+ })
+
+ t += 29_999
+ expect(fc.admit('https://a.example')).toEqual({
+ ok: false,
+ code: 'rateLimited',
+ })
+
+ t += 2 // now 30_001ms since the failure
+ expect(fc.lockoutRemainingMs()).toBe(0)
+ expect(fc.admit('https://a.example')).toEqual({ ok: true })
+ })
+
+ it('locks out for 60s after the 2nd consecutive failure (n=2)', () => {
+ let t = 0
+ const fc = new PairFloodControl({ now: () => t })
+ fc.recordOutcome({
+ queuedDialog: true,
+ consumedAttempt: false,
+ confirmed: false,
+ })
+ t += 30_001 // clear the n=1 lockout
+ fc.recordOutcome({
+ queuedDialog: true,
+ consumedAttempt: false,
+ confirmed: false,
+ })
+ expect(fc.lockoutRemainingMs()).toBe(60_000)
+
+ t += 60_001
+ expect(fc.lockoutRemainingMs()).toBe(0)
+ })
+
+ it('caps the lockout at 3600s once consecutive failures reach n=8', () => {
+ let t = 0
+ const fc = new PairFloodControl({ now: () => t })
+ // n=1..7 escalate: 30, 60, 120, 240, 480, 960, 1920 -- clear each lockout
+ // before recording the next failure so the count keeps climbing.
+ const priorLockouts = [30, 60, 120, 240, 480, 960, 1920]
+ for (const lockoutS of priorLockouts) {
+ fc.recordOutcome({
+ queuedDialog: true,
+ consumedAttempt: false,
+ confirmed: false,
+ })
+ t += lockoutS * 1_000 + 1
+ }
+ // 8th consecutive failure: min(30 * 2^7, 3600) = 3600
+ fc.recordOutcome({
+ queuedDialog: true,
+ consumedAttempt: false,
+ confirmed: false,
+ })
+ expect(fc.lockoutRemainingMs()).toBe(3_600_000)
+ })
+
+ it('resets the failure counter on a confirmed pairing', () => {
+ let t = 0
+ const fc = new PairFloodControl({ now: () => t })
+ fc.recordOutcome({
+ queuedDialog: true,
+ consumedAttempt: false,
+ confirmed: false,
+ })
+ t += 30_001
+ fc.recordOutcome({
+ queuedDialog: true,
+ consumedAttempt: true,
+ confirmed: true,
+ })
+ expect(fc.lockoutRemainingMs()).toBe(0)
+
+ // The next failure is n=1 again (30s), not n=3 (120s).
+ fc.recordOutcome({
+ queuedDialog: true,
+ consumedAttempt: false,
+ confirmed: false,
+ })
+ expect(fc.lockoutRemainingMs()).toBe(30_000)
+ })
+
+ it('increments the counter when an attempt was consumed even without a dialog queued (§7.3 disconnect-early dodge)', () => {
+ const t = 0
+ const fc = new PairFloodControl({ now: () => t })
+ fc.recordOutcome({
+ queuedDialog: false,
+ consumedAttempt: true,
+ confirmed: false,
+ })
+ expect(fc.lockoutRemainingMs()).toBe(30_000)
+ })
+
+ it('does not increment the counter for an outcome with neither a queued dialog nor a consumed attempt', () => {
+ const t = 0
+ const fc = new PairFloodControl({ now: () => t })
+ fc.recordOutcome({
+ queuedDialog: false,
+ consumedAttempt: false,
+ confirmed: false,
+ })
+ expect(fc.lockoutRemainingMs()).toBe(0)
+ })
+
+ it('resets the failure counter after 24h of silence', () => {
+ let t = 0
+ const fc = new PairFloodControl({ now: () => t })
+ fc.recordOutcome({
+ queuedDialog: true,
+ consumedAttempt: false,
+ confirmed: false,
+ })
+ t += 24 * 60 * 60 * 1000 // exactly 24h later
+ expect(fc.lockoutRemainingMs()).toBe(0)
+
+ // The next failure is n=1 again (30s), not n=2 (60s).
+ fc.recordOutcome({
+ queuedDialog: true,
+ consumedAttempt: false,
+ confirmed: false,
+ })
+ expect(fc.lockoutRemainingMs()).toBe(30_000)
+ })
+})
diff --git a/src/core/bridge/mbp1/flood-control.ts b/src/core/bridge/mbp1/flood-control.ts
new file mode 100644
index 00000000..e8d7ef27
--- /dev/null
+++ b/src/core/bridge/mbp1/flood-control.ts
@@ -0,0 +1,147 @@
+// MBP1 pairing flood control (docs/bridge-pairing-protocol.md §7.3).
+//
+// This defends against a local process that can rotate a fake `Origin` on
+// every connection attempt (unlike a cross-origin web page, which the
+// `/nonce` header requirement already excludes entirely) from spamming the
+// user with approval dialogs. That is why the pending cap and the failure
+// lockout are both GLOBAL, not per-origin: per-origin bookkeeping would let
+// such a process simply mint a new origin per attempt and never be
+// throttled. The pending-pair dedup below IS per-origin, but only as a
+// convenience against a single origin double-submitting — it does nothing
+// against a rotating-origin flood, which the global cap and lockout cover.
+//
+// §7.3 is explicit that the failure counter must increment on a session that
+// queued a dialog or consumed an attempt and then ended without
+// confirmation — including one that simply disconnects early — so a guesser
+// cannot dodge the counter by closing the socket before exhausting a code.
+//
+// This module logs nothing at any level (§11): origins and outcome
+// booleans are the only inputs, and both are security-sensitive here.
+
+const DEFAULT_PENDING_CAP = 3
+const BASE_LOCKOUT_SECONDS = 30
+const MAX_LOCKOUT_SECONDS = 3600
+const RESET_AFTER_MS = 24 * 60 * 60 * 1000
+
+export interface PairFloodControlOptions {
+ /** Global cap on concurrently pending `/pair` dialogs. Default 3 (§7.3). */
+ pendingCap?: number
+ /** Injectable clock (tests). Default `Date.now`. */
+ now?: () => number
+}
+
+export type AdmitResult =
+ | { ok: true }
+ | { ok: false; code: 'busy' | 'rateLimited' }
+
+export interface PairOutcome {
+ /** An approval dialog was shown to the user for this session. */
+ queuedDialog: boolean
+ /** The session reached `pakeA` and consumed at least one pairing attempt. */
+ consumedAttempt: boolean
+ /** The session ended in mutual confirmation. */
+ confirmed: boolean
+}
+
+export class PairFloodControl {
+ private readonly pendingCap: number
+ private readonly now: () => number
+
+ /** Verified origins with a currently-admitted, not-yet-released dialog. */
+ private readonly pendingOrigins = new Set<string>()
+
+ /** Consecutive failures since the last confirmed pairing or 24h reset. */
+ private failureCount = 0
+ /** Timestamp of the most recent qualifying failure, or `null` if none. */
+ private lastFailureAt: number | null = null
+
+ constructor(opts: PairFloodControlOptions = {}) {
+ this.pendingCap = opts.pendingCap ?? DEFAULT_PENDING_CAP
+ this.now = opts.now ?? Date.now
+ }
+
+ /**
+ * Admits a new `/pair` session for `verifiedOrigin`, or refuses it
+ * **before any session mutation** (§7.3):
+ *
+ * - `rateLimited` while the global failure lockout is active, regardless
+ * of pending-slot availability — a fresh origin gets no free pass
+ * during a lockout.
+ * - `busy` if this origin already has a pending dialog (dedup), or if
+ * the global pending cap is already full.
+ */
+ admit(verifiedOrigin: string): AdmitResult {
+ if (this.lockoutRemainingMs() > 0) {
+ return { ok: false, code: 'rateLimited' }
+ }
+ if (this.pendingOrigins.has(verifiedOrigin)) {
+ return { ok: false, code: 'busy' }
+ }
+ if (this.pendingOrigins.size >= this.pendingCap) {
+ return { ok: false, code: 'busy' }
+ }
+ this.pendingOrigins.add(verifiedOrigin)
+ return { ok: true }
+ }
+
+ /** Frees the pending slot for `verifiedOrigin`, e.g. once its dialog
+ * resolves or its session ends. */
+ release(verifiedOrigin: string): void {
+ this.pendingOrigins.delete(verifiedOrigin)
+ }
+
+ /**
+ * Records how a pairing session ended. A qualifying failure — one that
+ * queued a dialog OR consumed at least one attempt, and did not end in
+ * confirmation — increments the global counter regardless of *why* it
+ * failed (bad code, abort, dismissal, or an early disconnect: §7.3 names
+ * the disconnect case explicitly so it cannot be used to dodge the
+ * counter). `confirmed: true` always resets the counter, even if it also
+ * reports a queued dialog or consumed attempt.
+ */
+ recordOutcome(outcome: PairOutcome): void {
+ const t = this.now()
+ this.resetIfStale(t)
+
+ if (outcome.confirmed) {
+ this.failureCount = 0
+ this.lastFailureAt = null
+ return
+ }
+
+ if (outcome.queuedDialog || outcome.consumedAttempt) {
+ this.failureCount += 1
+ this.lastFailureAt = t
+ }
+ }
+
+ /** Milliseconds remaining in the current global lockout, or 0 if none is
+ * active. Before dialog `n` (the `n`th consecutive failure), the lockout
+ * is `min(30 * 2^(n-1), 3600)` seconds from that failure (§7.3). */
+ lockoutRemainingMs(): number {
+ const t = this.now()
+ this.resetIfStale(t)
+ if (this.failureCount === 0 || this.lastFailureAt === null) {
+ return 0
+ }
+ const lockoutSeconds = Math.min(
+ BASE_LOCKOUT_SECONDS * 2 ** (this.failureCount - 1),
+ MAX_LOCKOUT_SECONDS
+ )
+ const lockoutEndsAt = this.lastFailureAt + lockoutSeconds * 1000
+ return Math.max(0, lockoutEndsAt - t)
+ }
+
+ /** Lazily resets the failure counter once 24h have passed since the last
+ * failure (§7.3), so a long-idle instance does not carry a stale
+ * escalated lockout into an unrelated future session. */
+ private resetIfStale(t: number): void {
+ if (
+ this.lastFailureAt !== null &&
+ t - this.lastFailureAt >= RESET_AFTER_MS
+ ) {
+ this.failureCount = 0
+ this.lastFailureAt = null
+ }
+ }
+}
diff --git a/src/core/bridge/mbp1/frames.ts b/src/core/bridge/mbp1/frames.ts
new file mode 100644
index 00000000..8d7b597a
--- /dev/null
+++ b/src/core/bridge/mbp1/frames.ts
@@ -0,0 +1,327 @@
+// MBP1 pre-channel wire frames (docs/bridge-pairing-protocol.md §6.1, §6.7,
+// §8, §11).
+//
+// Every message exchanged before the AEAD channel activates — and the three
+// §6.7 credential messages that travel inside it — is a single WebSocket text
+// frame carrying exactly one JSON object with a `type` discriminator, with
+// binary fields base64url-encoded (§6.1). This module is the single source of
+// truth for those shapes; `pair-session.ts` and `reconnect-session.ts` parse
+// and emit through it rather than hand-rolling field checks.
+//
+// Three deliberate choices:
+//
+// 1. **Binary fields stay base64url strings in the inferred types.** The
+// schemas *validate* that a field decodes canonically to its exact
+// expected length (via `fromBase64Url`, which rejects padding,
+// non-alphabet characters, and non-canonical trailing bits), but they do
+// not transform. Keeping the parsed shape identical to the wire shape in
+// both directions means one schema describes both what the server accepts
+// and what it emits, and it keeps `sendText(json)` a plain JSON object.
+//
+// 2. **`protocolVersion` is NOT a `z.literal(1)`.** §11 gives a wrong version
+// its own code, `unsupportedVersion`, distinct from `protocolViolation`.
+// Pinning the literal here would collapse the two and turn a
+// version-2 client's clean "no negotiation" rejection into a malformed
+// frame report.
+//
+// 3. **Inbound object schemas are strict.** MBP1 has no negotiation (§3), and
+// §6.1 requires schema-invalid JSON to abort. An unrecognized field is
+// covered by neither the transcript nor the AAD (§6.4), so silently
+// dropping one would weaken the misbinding property.
+//
+// Nothing here logs: `pairHello` carries a ticket and `credentialOffer`
+// carries key material (§11).
+
+import type { Browser } from '@shared/protocol/bridge'
+import { z } from 'zod'
+import { fromBase64Url } from './canonical'
+
+/** The only `protocolVersion` MBP1 v1 speaks (§3). */
+export const MBP1_PROTOCOL_VERSION = 1
+
+/** Maximum size of a pre-authentication frame, in bytes (§6.1). */
+export const MAX_PRE_AUTH_FRAME_BYTES = 16 * 1024
+
+const POINT_BYTES = 32
+const MAC_BYTES = 32
+const SIGNATURE_BYTES = 64
+const KEY_BYTES = 32
+const NONCE_BYTES = 32
+
+/** `exp` in seconds, bounded so `exp * 1000` stays an exact JS integer. */
+const MAX_EXP_SECONDS = Math.floor(Number.MAX_SAFE_INTEGER / 1000)
+
+function isAscii(s: string): boolean {
+ for (let i = 0; i < s.length; i++) {
+ if (s.charCodeAt(i) > 0x7f) {
+ return false
+ }
+ }
+ return true
+}
+
+/**
+ * A string field that reaches `enc()` (§2) and therefore must be ASCII-only.
+ * `enc` throws `ProtocolViolationError` on a non-ASCII string, so rejecting it
+ * at the schema turns a would-be exception deep inside transcript
+ * construction into an ordinary `protocolViolation` at frame parse time.
+ */
+const asciiString = () =>
+ z.string().refine(isAscii, { message: 'must be ASCII-only' })
+
+/**
+ * A base64url field decoding to exactly `byteLength` bytes (§2, §6.1). Length
+ * is part of the wire shape for every binary field MBP1 defines — points,
+ * MACs, keys, nonces, and signatures all have fixed widths — so a wrong-length
+ * field is a malformed frame, not a cryptographic failure to be reported as
+ * one.
+ */
+const base64UrlBytes = (byteLength: number) =>
+ z.string().refine(
+ (s) => {
+ try {
+ return fromBase64Url(s).length === byteLength
+ } catch {
+ return false
+ }
+ },
+ { message: `must be canonical base64url of exactly ${byteLength} bytes` }
+ )
+
+const protocolVersionField = z.number().int().min(0).max(0xffff_ffff)
+
+const browserField: z.ZodType<Browser> = z.enum(['chromium', 'firefox'])
+
+/**
+ * The `pairHello.nmTicket` wire shape (§9.2), used **only** to recover the
+ * parsed field values §6.4's `ticketDigest` hashes.
+ *
+ * `ticket-verify.ts` owns ticket validation and keeps its own strict schema;
+ * this one is a reader, applied after `verifyNmTicket` has already returned a
+ * non-abort verdict. That ordering is what keeps the duplication safe: the
+ * authoritative accept/reject decision is made in exactly one place, and this
+ * schema never gets to admit a ticket that module rejected.
+ */
+export const nmTicketWireSchema = z
+ .object({
+ v: z.number().int().min(0).max(0xffff_ffff),
+ purpose: asciiString(),
+ protocolVersion: z.number().int().min(0).max(0xffff_ffff),
+ serverGeneration: asciiString(),
+ browser: asciiString(),
+ callerId: asciiString(),
+ exp: z.number().int().min(0).max(MAX_EXP_SECONDS),
+ bindingPub: z.string(),
+ mac: z.string(),
+ })
+ .strict()
+
+export type NmTicketWire = z.infer<typeof nmTicketWireSchema>
+
+/**
+ * `pairHello` (A→B, §6.1). `nmTicket` stays `unknown` so the raw object
+ * reaches `verifyNmTicket` untouched — §9.2's outcome table, not this schema,
+ * decides whether a presented ticket aborts the pairing.
+ *
+ * `ticketBindingKey` is "required iff `nmTicket` present" (§6.1), enforced in
+ * both directions: a ticket without its binding key cannot satisfy §9.2's
+ * binding-key row, and a binding key without a ticket would make §6.4's
+ * `ticketBindingKeyOrEmpty` ambiguous.
+ */
+export const pairHelloFrameSchema = z
+ .object({
+ type: z.literal('pairHello'),
+ protocolVersion: protocolVersionField,
+ browser: browserField,
+ claimedExtensionId: asciiString(),
+ clientInstallationId: asciiString(),
+ nmTicket: z.unknown().optional(),
+ ticketBindingKey: base64UrlBytes(KEY_BYTES).optional(),
+ })
+ .strict()
+ .refine(
+ (f) => (f.nmTicket === undefined) === (f.ticketBindingKey === undefined),
+ {
+ message:
+ 'ticketBindingKey is required if and only if nmTicket is present',
+ }
+ )
+
+export type PairHelloFrame = z.infer<typeof pairHelloFrameSchema>
+
+/**
+ * `pairAccept` (B→A, §6.1). Sent when the dialog is queued; it carries **no**
+ * approval semantics — only successful key confirmation proves the user
+ * approved.
+ */
+export const pairAcceptFrameSchema = z
+ .object({
+ type: z.literal('pairAccept'),
+ protocolVersion: protocolVersionField,
+ instanceId: asciiString(),
+ })
+ .strict()
+
+export type PairAcceptFrame = z.infer<typeof pairAcceptFrameSchema>
+
+/** `pakeA` (A→B, §6.1): A's SPAKE2 public share. */
+export const pakeAFrameSchema = z
+ .object({
+ type: z.literal('pakeA'),
+ pA: base64UrlBytes(POINT_BYTES),
+ })
+ .strict()
+
+export type PakeAFrame = z.infer<typeof pakeAFrameSchema>
+
+/** `pakeB` (B→A, §6.1): B's SPAKE2 public share. */
+export const pakeBFrameSchema = z
+ .object({
+ type: z.literal('pakeB'),
+ pB: base64UrlBytes(POINT_BYTES),
+ })
+ .strict()
+
+export type PakeBFrame = z.infer<typeof pakeBFrameSchema>
+
+/**
+ * `confirmA` (A→B, §6.1, §6.5). `ticketProof` is required iff an `nmTicket`
+ * was sent in `pairHello`; that cross-frame condition is enforced by the
+ * session, which is the only party that remembers whether a ticket was
+ * presented. Its 64-byte length is enforced here, so a wrong-length proof is a
+ * `protocolViolation` rather than reaching the verifier as a `codeMismatch`
+ * (§6.5).
+ */
+export const confirmAFrameSchema = z
+ .object({
+ type: z.literal('confirmA'),
+ cA: base64UrlBytes(MAC_BYTES),
+ ticketProof: base64UrlBytes(SIGNATURE_BYTES).optional(),
+ })
+ .strict()
+
+export type ConfirmAFrame = z.infer<typeof confirmAFrameSchema>
+
+/** `confirmB` (B→A, §6.1, §6.5). */
+export const confirmBFrameSchema = z
+ .object({
+ type: z.literal('confirmB'),
+ cB: base64UrlBytes(MAC_BYTES),
+ })
+ .strict()
+
+export type ConfirmBFrame = z.infer<typeof confirmBFrameSchema>
+
+/**
+ * `credentialOffer` (B→A, §6.7 step 1). Travels inside the AEAD envelope. The
+ * server persists the credential durably in state `provisional` **before**
+ * sending this.
+ */
+export const credentialOfferFrameSchema = z
+ .object({
+ type: z.literal('credentialOffer'),
+ credentialId: asciiString(),
+ mutualKey: base64UrlBytes(KEY_BYTES),
+ })
+ .strict()
+
+export type CredentialOfferFrame = z.infer<typeof credentialOfferFrameSchema>
+
+/** `credentialAck` (A→B, §6.7 step 2). Travels inside the AEAD envelope. */
+export const credentialAckFrameSchema = z
+ .object({
+ type: z.literal('credentialAck'),
+ credentialId: asciiString(),
+ })
+ .strict()
+
+export type CredentialAckFrame = z.infer<typeof credentialAckFrameSchema>
+
+/** `credentialCommitted` (B→A, §6.7 step 3). Travels inside the AEAD envelope. */
+export const credentialCommittedFrameSchema = z
+ .object({
+ type: z.literal('credentialCommitted'),
+ })
+ .strict()
+
+export type CredentialCommittedFrame = z.infer<
+ typeof credentialCommittedFrameSchema
+>
+
+/** `reconnectChallenge` (B→A, §8). The server speaks first on `/v1`. */
+export const reconnectChallengeFrameSchema = z
+ .object({
+ type: z.literal('reconnectChallenge'),
+ protocolVersion: protocolVersionField,
+ S: base64UrlBytes(NONCE_BYTES),
+ })
+ .strict()
+
+export type ReconnectChallengeFrame = z.infer<
+ typeof reconnectChallengeFrameSchema
+>
+
+/** `reconnectResponse` (A→B, §8). */
+export const reconnectResponseFrameSchema = z
+ .object({
+ type: z.literal('reconnectResponse'),
+ credentialId: asciiString(),
+ C: base64UrlBytes(NONCE_BYTES),
+ mac: base64UrlBytes(MAC_BYTES),
+ })
+ .strict()
+
+export type ReconnectResponseFrame = z.infer<
+ typeof reconnectResponseFrameSchema
+>
+
+/** `reconnectAccept` (B→A, §8). */
+export const reconnectAcceptFrameSchema = z
+ .object({
+ type: z.literal('reconnectAccept'),
+ mac: base64UrlBytes(MAC_BYTES),
+ })
+ .strict()
+
+export type ReconnectAcceptFrame = z.infer<typeof reconnectAcceptFrameSchema>
+
+/**
+ * The §11 error codes. Beyond `codeMismatch`/`attemptsRemaining`, which the
+ * user needs, a `pairError` MUST NOT reveal which internal step failed — so
+ * these codes are the entire vocabulary, and no free-form detail field exists
+ * to leak one.
+ */
+export const PAIR_ERROR_CODES = [
+ 'unsupportedVersion',
+ 'busy',
+ 'rateLimited',
+ 'codeMismatch',
+ 'expired',
+ 'aborted',
+ 'authFailed',
+ 'protocolViolation',
+ 'pairingFailed',
+] as const
+
+export type PairErrorCode = (typeof PAIR_ERROR_CODES)[number]
+
+/** `pairError` (B→A, §11). Pre-channel only. */
+export const pairErrorFrameSchema = z
+ .object({
+ type: z.literal('pairError'),
+ code: z.enum(PAIR_ERROR_CODES),
+ attemptsRemaining: z.number().int().min(0).optional(),
+ })
+ .strict()
+
+export type PairErrorFrame = z.infer<typeof pairErrorFrameSchema>
+
+/**
+ * The discriminator envelope every pre-channel frame shares (§6.1): one JSON
+ * object with a string `type`. A frame that does not even reach this shape —
+ * a JSON array, a bare string, `null` — is malformed, and an unrecognized
+ * `type` aborts with `protocolViolation`. Sessions parse this first so they
+ * can distinguish "unknown message type" from "known type, invalid body"
+ * before dispatching to the specific schema above.
+ */
+export const frameEnvelopeSchema = z.object({ type: z.string() })
diff --git a/src/core/bridge/mbp1/nonce-service.test.ts b/src/core/bridge/mbp1/nonce-service.test.ts
new file mode 100644
index 00000000..3112bd47
--- /dev/null
+++ b/src/core/bridge/mbp1/nonce-service.test.ts
@@ -0,0 +1,97 @@
+import { describe, expect, it } from 'vitest'
+import { NonceService } from './nonce-service'
+
+describe('NonceService (§4.2)', () => {
+ it('issues a nonce and lets it be consumed exactly once', () => {
+ const svc = new NonceService()
+ const issued = svc.issue(null)
+ expect('nonce' in issued).toBe(true)
+ if (!('nonce' in issued)) throw new Error('expected a nonce')
+ expect(svc.consume(issued.nonce)).toBe(true)
+ expect(svc.consume(issued.nonce)).toBe(false)
+ })
+
+ it('reports a 60s ttl by default', () => {
+ const svc = new NonceService()
+ const issued = svc.issue(null)
+ if (!('nonce' in issued)) throw new Error('expected a nonce')
+ expect(issued.ttlSeconds).toBe(60)
+ })
+
+ it('rejects the 33rd outstanding nonce under the default cap of 32', () => {
+ const svc = new NonceService()
+ for (let i = 0; i < 32; i++) {
+ const issued = svc.issue(null)
+ expect('nonce' in issued).toBe(true)
+ }
+ const rejected = svc.issue(null)
+ expect(rejected).toEqual({ error: 'limited' })
+ })
+
+ it('frees outstanding cap slots once entries expire', () => {
+ let t = 0
+ const svc = new NonceService({
+ maxOutstanding: 2,
+ ttlMs: 1_000,
+ now: () => t,
+ })
+ expect('nonce' in svc.issue(null)).toBe(true)
+ expect('nonce' in svc.issue(null)).toBe(true)
+ // cap is exhausted: a 3rd nonce is rejected even though none expired yet
+ expect(svc.issue(null)).toEqual({ error: 'limited' })
+
+ t += 1_001 // past the 1s ttl
+ const revived = svc.issue(null)
+ expect('nonce' in revived).toBe(true)
+ })
+
+ it('applies a global issuance rate limit of 60/min by default', () => {
+ let t = 0
+ const svc = new NonceService({ now: () => t })
+ for (let i = 0; i < 60; i++) {
+ const issued = svc.issue(null)
+ expect('nonce' in issued).toBe(true)
+ if ('nonce' in issued) expect(svc.consume(issued.nonce)).toBe(true)
+ t += 100 // stay inside the 60s window; consuming avoids the cap of 32
+ }
+ const rejected = svc.issue(null)
+ expect(rejected).toEqual({ error: 'limited' })
+ })
+
+ it('lets issuance resume once the rate-limit window rolls forward', () => {
+ let t = 0
+ const svc = new NonceService({ ratePerMinute: 2, now: () => t })
+ expect('nonce' in svc.issue(null)).toBe(true)
+ expect('nonce' in svc.issue(null)).toBe(true)
+ expect(svc.issue(null)).toEqual({ error: 'limited' })
+
+ t += 60_001 // past the 60s window
+ expect('nonce' in svc.issue(null)).toBe(true)
+ })
+
+ it('applies a per-verified-origin quota of 10/min by default, counted only when origin is non-null', () => {
+ let t = 0
+ const svc = new NonceService({ now: () => t })
+ for (let i = 0; i < 10; i++) {
+ const issued = svc.issue('https://a.example')
+ expect('nonce' in issued).toBe(true)
+ if ('nonce' in issued) expect(svc.consume(issued.nonce)).toBe(true)
+ t += 100
+ }
+ const rejected = svc.issue('https://a.example')
+ expect(rejected).toEqual({ error: 'limited' })
+
+ // A distinct origin has its own quota.
+ const otherOrigin = svc.issue('https://b.example')
+ expect('nonce' in otherOrigin).toBe(true)
+
+ // Null origin (no verified origin) is never subject to the per-origin
+ // quota, even past the per-origin count.
+ for (let i = 0; i < 15; i++) {
+ const issued = svc.issue(null)
+ expect('nonce' in issued).toBe(true)
+ if ('nonce' in issued) expect(svc.consume(issued.nonce)).toBe(true)
+ t += 100
+ }
+ })
+})
diff --git a/src/core/bridge/mbp1/nonce-service.ts b/src/core/bridge/mbp1/nonce-service.ts
new file mode 100644
index 00000000..6c2859e4
--- /dev/null
+++ b/src/core/bridge/mbp1/nonce-service.ts
@@ -0,0 +1,130 @@
+// MBP1 pairing nonce issuance (docs/bridge-pairing-protocol.md §4.2).
+//
+// `POST /nonce` is unauthenticated by design (a fresh caller has no
+// credential yet), so it is the surface a blind flooder — one that cannot
+// read responses, since the custom `X-Motrix-Bridge` header keeps a
+// cross-origin web page from ever reaching it at all — can still hit
+// directly. The three caps here (outstanding, global rate, per-origin rate)
+// bound that flood without depending on the header holding in every runtime.
+//
+// Nonces themselves are secret-adjacent bearer material for `/pair`, so this
+// module logs nothing at any level (§11).
+
+import { randomBytes } from 'node:crypto'
+import { toBase64Url } from './canonical'
+
+const DEFAULT_TTL_MS = 60_000
+const DEFAULT_MAX_OUTSTANDING = 32
+const DEFAULT_RATE_PER_MINUTE = 60
+const DEFAULT_PER_ORIGIN_PER_MINUTE = 10
+const RATE_WINDOW_MS = 60_000
+
+export interface NonceServiceOptions {
+ /** Nonce lifetime. Default 60s (§4.2). */
+ ttlMs?: number
+ /** Max unconsumed nonces at once. Default 32 (§4.2). */
+ maxOutstanding?: number
+ /** Global `issue()` calls per rolling minute. Default 60 (§4.2). */
+ ratePerMinute?: number
+ /** Per-verified-origin `issue()` calls per rolling minute. Default 10
+ * (§4.2). Only enforced when `issue()` is called with a non-null origin. */
+ perOriginPerMinute?: number
+ /** Injectable clock (tests). Default `Date.now`. */
+ now?: () => number
+}
+
+export type IssueResult =
+ | { nonce: string; ttlSeconds: number }
+ | { error: 'limited' }
+
+export class NonceService {
+ private readonly ttlMs: number
+ private readonly maxOutstanding: number
+ private readonly ratePerMinute: number
+ private readonly perOriginPerMinute: number
+ private readonly now: () => number
+
+ /** Outstanding nonce -> its expiry timestamp. */
+ private readonly nonces = new Map<string, number>()
+ /** Global issuance timestamps within the current rate window. */
+ private issueTimes: number[] = []
+ /** Per-verified-origin issuance timestamps within the current rate window. */
+ private readonly originIssueTimes = new Map<string, number[]>()
+
+ constructor(opts: NonceServiceOptions = {}) {
+ this.ttlMs = opts.ttlMs ?? DEFAULT_TTL_MS
+ this.maxOutstanding = opts.maxOutstanding ?? DEFAULT_MAX_OUTSTANDING
+ this.ratePerMinute = opts.ratePerMinute ?? DEFAULT_RATE_PER_MINUTE
+ this.perOriginPerMinute =
+ opts.perOriginPerMinute ?? DEFAULT_PER_ORIGIN_PER_MINUTE
+ this.now = opts.now ?? Date.now
+ }
+
+ /**
+ * Issues a one-shot pairing nonce, or `{ error: 'limited' }` if any cap is
+ * hit. Nothing is mutated on a rejection (§4.2's caps gate before any state
+ * change, mirroring the pending-pair "before any session mutation" rule in
+ * §7.3). `verifiedOrigin` is the caller's Chromium-verified `Origin`, or
+ * `null` when none exists (e.g. the native-messaging host); the per-origin
+ * quota only applies when it is non-null.
+ */
+ issue(verifiedOrigin: string | null): IssueResult {
+ const t = this.now()
+ this.sweepExpiredNonces(t)
+
+ if (this.nonces.size >= this.maxOutstanding) {
+ return { error: 'limited' }
+ }
+
+ const cutoff = t - RATE_WINDOW_MS
+ const recentGlobal = this.issueTimes.filter((ts) => ts > cutoff)
+ if (recentGlobal.length >= this.ratePerMinute) {
+ this.issueTimes = recentGlobal
+ return { error: 'limited' }
+ }
+
+ let recentOrigin: number[] | undefined
+ if (verifiedOrigin !== null) {
+ recentOrigin = (this.originIssueTimes.get(verifiedOrigin) ?? []).filter(
+ (ts) => ts > cutoff
+ )
+ if (recentOrigin.length >= this.perOriginPerMinute) {
+ this.originIssueTimes.set(verifiedOrigin, recentOrigin)
+ return { error: 'limited' }
+ }
+ }
+
+ recentGlobal.push(t)
+ this.issueTimes = recentGlobal
+ if (verifiedOrigin !== null && recentOrigin) {
+ recentOrigin.push(t)
+ this.originIssueTimes.set(verifiedOrigin, recentOrigin)
+ }
+
+ const nonce = toBase64Url(randomBytes(16))
+ this.nonces.set(nonce, t + this.ttlMs)
+ return { nonce, ttlSeconds: Math.floor(this.ttlMs / 1000) }
+ }
+
+ /** One-shot consume: `true` only for an outstanding, unexpired nonce.
+ * Removes the entry either way, so a replayed or expired nonce can never
+ * be consumed twice. */
+ consume(nonce: string): boolean {
+ const expiresAt = this.nonces.get(nonce)
+ if (expiresAt === undefined) {
+ return false
+ }
+ this.nonces.delete(nonce)
+ return expiresAt > this.now()
+ }
+
+ /** Drops expired entries so the outstanding cap frees up over time instead
+ * of being permanently consumed by abandoned/never-consumed nonces. */
+ private sweepExpiredNonces(t: number): void {
+ for (const [nonce, expiresAt] of this.nonces) {
+ if (expiresAt <= t) {
+ this.nonces.delete(nonce)
+ }
+ }
+ }
+}
diff --git a/src/core/bridge/mbp1/pair-session.test.ts b/src/core/bridge/mbp1/pair-session.test.ts
new file mode 100644
index 00000000..78855a8d
--- /dev/null
+++ b/src/core/bridge/mbp1/pair-session.test.ts
@@ -0,0 +1,1424 @@
+import { Buffer } from 'node:buffer'
+import { randomBytes } from 'node:crypto'
+import { ed25519 } from '@noble/curves/ed25519.js'
+import { utf8ToBytes } from '@noble/hashes/utils.js'
+import type { Browser } from '@shared/protocol/bridge'
+import { beforeEach, describe, expect, it, vi } from 'vitest'
+import type { CredentialPrincipal, IdentityTriState } from '../credential-store'
+import { hexToBytes, loadMbp1Vectors } from './__tests__/vectors'
+import {
+ concatBytes,
+ fromBase64Url,
+ hmacSha256,
+ toBase64Url,
+} from './canonical'
+import { DIR_C2S, DIR_S2C, EnvelopeOpener, EnvelopeSealer } from './envelope'
+import type { PairErrorFrame } from './frames'
+import type { PairSessionDeps } from './pair-session'
+import { PairSession } from './pair-session'
+import { normalizePairingCode } from './pairing-code'
+import { deriveW } from './scrypt-w'
+import {
+ buildTT,
+ computePublicA,
+ confirmationMacs,
+ drawScalar,
+ EDWARDS25519_GROUP,
+ keySchedule,
+ pairTrafficKeys,
+ sharedFromA,
+} from './spake2-core'
+import {
+ deriveTicketKey,
+ TicketReplayCache,
+ ticketMacInput,
+} from './ticket-verify'
+import { buildAad, buildAId, buildBId, ticketDigest } from './transcript'
+
+const vectors = loadMbp1Vectors()
+const bindingSeed = hexToBytes(vectors.spake2[0].inputs.bindingSeed as string)
+
+const PROOF_LABEL = utf8ToBytes('MBP1/ticket-proof/v1')
+
+const INSTANCE_ID = '0d9c2b7a-4e6f-4a1b-8c3d-2e5f7a9b1c4d'
+const SERVER_GENERATION = '3c2b1a09-8f7e-4d6c-b5a4-93827160f0e1'
+const LOCAL_TOKEN = 'vector-local-token-0123456789abcdef'
+const EXTENSION_ID = 'ibpkjhgpbidfmbmomagmldcdlpbmchgi'
+const ORIGIN = `chrome-extension://${EXTENSION_ID}`
+const INSTALLATION_ID = '5f0b6f9e-8a3d-4c5e-9b2a-7d1e4f6a8c0b'
+const PAIR_NONCE = 'vec-nonce-8f3a1c5e7b2d4a90'
+const T0 = 1_755_600_000_000
+
+// ---------------------------------------------------------------------------
+// Test harness
+// ---------------------------------------------------------------------------
+
+interface DialogArgs {
+ browser: Browser
+ claimedExtensionId: string
+ identity: IdentityTriState
+ code: string
+ pairingNonce: string
+}
+
+interface Deferred<T> {
+ promise: Promise<T>
+ resolve: (value: T) => void
+}
+
+function deferred<T>(): Deferred<T> {
+ let resolve!: (value: T) => void
+ const promise = new Promise<T>((r) => {
+ resolve = r
+ })
+ return { promise, resolve }
+}
+
+interface HarnessOptions {
+ browser?: Browser
+ verifiedOrigin?: string
+ official?: boolean
+ admit?: () => { ok: true } | { ok: false; code: 'busy' | 'rateLimited' }
+ /** When set, `offerProvisional` resolves only once the test resolves this. */
+ gateOffer?: Deferred<void>
+ /** When set, `commitFromPair` resolves only once the test resolves this. */
+ gateCommit?: Deferred<void>
+ nonceValid?: boolean
+ now?: () => number
+ random?: (n: number) => Uint8Array
+ offerProvisional?: () => Promise<{
+ credentialId: string
+ mutualKeyB64: string
+ }>
+}
+
+function makeHarness(opts: HarnessOptions = {}) {
+ const sent: Record<string, unknown>[] = []
+ const binary: Uint8Array[] = []
+ const closed: string[] = []
+ const dialogs: DialogArgs[] = []
+ const order: string[] = []
+ const dismissals: Deferred<void>[] = []
+ const dialogClosed: number[] = []
+ const released: string[] = []
+ let authenticated: { sealer: EnvelopeSealer; opener: EnvelopeOpener } | null =
+ null
+
+ const replay = new TicketReplayCache()
+ const replayAdd = vi.spyOn(replay, 'add').mockImplementation(function (
+ this: TicketReplayCache,
+ macB64: string,
+ expMs: number,
+ nowMs: number
+ ) {
+ order.push('replay.add')
+ return TicketReplayCache.prototype.add.call(this, macB64, expMs, nowMs)
+ })
+
+ const offerProvisional = vi.fn(
+ async (
+ _principal: CredentialPrincipal,
+ _identity: IdentityTriState
+ ): Promise<{ credentialId: string; mutualKeyB64: string }> => {
+ order.push('offerProvisional:start')
+ // Always yields before reporting completion, for the same reason
+ // `commitFromPair` does: otherwise §6.7's ordering assertions would hold
+ // even for a caller that never awaited the durable write.
+ await (opts.gateOffer ? opts.gateOffer.promise : Promise.resolve())
+ if (opts.offerProvisional) {
+ return await opts.offerProvisional()
+ }
+ order.push('offerProvisional:resolved')
+ return {
+ credentialId: 'cred-1111-2222-3333',
+ mutualKeyB64: toBase64Url(new Uint8Array(32).fill(7)),
+ }
+ }
+ )
+ const commitFromPair = vi.fn(async (_credentialId: string): Promise<void> => {
+ order.push('commitFromPair:start')
+ // Always yield before reporting completion: a fake that logs its result
+ // synchronously would report the same order whether or not the caller
+ // awaited it, and the §6.7 ordering assertions would be vacuous.
+ await (opts.gateCommit ? opts.gateCommit.promise : Promise.resolve())
+ order.push('commitFromPair:resolved')
+ })
+
+ const deps: PairSessionDeps = {
+ nonceValid: opts.nonceValid ?? true,
+ pairNonce: PAIR_NONCE,
+ verifiedOrigin: opts.verifiedOrigin ?? ORIGIN,
+ // Defaults to what `ORIGIN`'s scheme derives to, so an existing test that
+ // overrides only `verifiedOrigin` still gets a consistent pair.
+ browser: opts.browser ?? 'chromium',
+ instanceId: INSTANCE_ID,
+ serverGeneration: SERVER_GENERATION,
+ localToken: LOCAL_TOKEN,
+ isOfficialId: vi.fn(() => opts.official ?? true),
+ credentials: { offerProvisional, commitFromPair },
+ replay,
+ admit: vi.fn(() => {
+ order.push('admit')
+ return opts.admit ? opts.admit() : { ok: true as const }
+ }),
+ release: vi.fn((origin: string) => {
+ order.push('release')
+ released.push(origin)
+ }),
+ queueDialog: vi.fn((args: DialogArgs) => {
+ order.push('queueDialog')
+ dialogs.push(args)
+ const d = deferred<void>()
+ dismissals.push(d)
+ const index = dismissals.length - 1
+ return {
+ dismissed: d.promise,
+ close: () => {
+ dialogClosed.push(index)
+ },
+ }
+ }),
+ sendText: (json: object) => {
+ order.push('sendText')
+ sent.push(json as Record<string, unknown>)
+ },
+ sendBinary: (frame: Uint8Array) => {
+ order.push('sendBinary')
+ binary.push(frame)
+ },
+ close: (reason: string) => {
+ closed.push(reason)
+ },
+ onAuthenticated: (channel) => {
+ order.push('onAuthenticated')
+ authenticated = channel
+ },
+ now: opts.now ?? (() => T0),
+ random: opts.random ?? ((n: number) => new Uint8Array(randomBytes(n))),
+ }
+
+ const session = new PairSession(deps)
+
+ return {
+ session,
+ deps,
+ sent,
+ binary,
+ closed,
+ dialogs,
+ order,
+ dismissals,
+ dialogClosed,
+ released,
+ replayAdd,
+ offerProvisional,
+ commitFromPair,
+ get authenticated() {
+ return authenticated
+ },
+ text(frame: object): Promise<void> {
+ const raw = JSON.stringify(frame)
+ return session.handleText(raw, Buffer.byteLength(raw))
+ },
+ raw(raw: string, byteLength?: number): Promise<void> {
+ return session.handleText(raw, byteLength ?? Buffer.byteLength(raw))
+ },
+ lastSent(): Record<string, unknown> {
+ const frame = sent.at(-1)
+ if (!frame) throw new Error('no frame sent')
+ return frame
+ },
+ error(): PairErrorFrame {
+ return this.lastSent() as unknown as PairErrorFrame
+ },
+ }
+}
+
+type Harness = ReturnType<typeof makeHarness>
+
+// ---------------------------------------------------------------------------
+// Scripted client double — the extension (A) side, built from the same
+// crypto modules, so a passing handshake proves the two roles interoperate
+// rather than proving the server agrees with itself.
+// ---------------------------------------------------------------------------
+
+interface TicketMaterial {
+ wire: Record<string, unknown>
+ bindingKeyB64: string
+ digest: Uint8Array
+ seed: Uint8Array
+}
+
+function mintTicket(
+ over: Partial<{
+ v: number
+ purpose: string
+ protocolVersion: number
+ serverGeneration: string
+ browser: string
+ callerId: string
+ exp: number
+ bindingPub: Uint8Array
+ mac: Uint8Array
+ }> = {},
+ nowMs = T0
+): TicketMaterial {
+ const bindingPub = over.bindingPub ?? ed25519.getPublicKey(bindingSeed)
+ const fields = {
+ v: over.v ?? 1,
+ purpose: over.purpose ?? 'mbp1-attestation',
+ protocolVersion: over.protocolVersion ?? 1,
+ serverGeneration: over.serverGeneration ?? SERVER_GENERATION,
+ browser: over.browser ?? 'chromium',
+ callerId: over.callerId ?? EXTENSION_ID,
+ exp: over.exp ?? Math.floor(nowMs / 1000) + 30,
+ bindingPub,
+ }
+ const mac =
+ over.mac ?? hmacSha256(deriveTicketKey(LOCAL_TOKEN), ticketMacInput(fields))
+ const wire = {
+ ...fields,
+ bindingPub: toBase64Url(bindingPub),
+ mac: toBase64Url(mac),
+ }
+ return {
+ wire,
+ bindingKeyB64: toBase64Url(bindingPub),
+ digest: ticketDigest({ ...fields, mac }),
+ seed: bindingSeed,
+ }
+}
+
+interface ClientOptions {
+ code: string
+ browser?: Browser
+ verifiedOrigin?: string
+ claimedExtensionId?: string
+ ticket?: TicketMaterial | null
+}
+
+/** The extension side of §6.2–§6.7, assembled from the shipped mbp1 modules. */
+class ClientDouble {
+ private readonly w: bigint
+ private x = 0n
+ private pA: Uint8Array = new Uint8Array()
+ private tt: Uint8Array = new Uint8Array()
+ private keys: ReturnType<typeof keySchedule> | null = null
+ readonly browser: Browser
+ readonly verifiedOrigin: string
+ readonly claimedExtensionId: string
+ readonly ticket: TicketMaterial | null
+
+ constructor(opts: ClientOptions) {
+ const normalized = normalizePairingCode(opts.code)
+ if (!normalized) throw new Error('client got an unusable code')
+ this.browser = opts.browser ?? 'chromium'
+ this.verifiedOrigin = opts.verifiedOrigin ?? ORIGIN
+ this.claimedExtensionId = opts.claimedExtensionId ?? EXTENSION_ID
+ this.ticket = opts.ticket ?? null
+ this.w = deriveW(normalized, PAIR_NONCE, EDWARDS25519_GROUP.order)
+ }
+
+ pakeA(): object {
+ this.x = drawScalar(
+ EDWARDS25519_GROUP.order,
+ (n) => new Uint8Array(randomBytes(n))
+ )
+ this.pA = computePublicA(EDWARDS25519_GROUP, this.w, this.x)
+ return { type: 'pakeA', pA: toBase64Url(this.pA) }
+ }
+
+ confirmA(pakeB: Record<string, unknown>): object {
+ const pB = fromBase64Url(pakeB.pB as string)
+ const K = sharedFromA(EDWARDS25519_GROUP, this.w, this.x, pB)
+ const aId = buildAId({
+ browser: this.browser,
+ verifiedOrigin: this.verifiedOrigin,
+ claimedExtensionId: this.claimedExtensionId,
+ clientInstallationId: INSTALLATION_ID,
+ })
+ this.tt = buildTT(aId, buildBId(INSTANCE_ID), this.pA, pB, K, this.w)
+ const aad = buildAad(
+ 1,
+ PAIR_NONCE,
+ this.ticket ? fromBase64Url(this.ticket.bindingKeyB64) : null,
+ this.ticket ? this.ticket.digest : null
+ )
+ this.keys = keySchedule(this.tt, aad)
+ const { cA } = confirmationMacs(this.keys.KcA, this.keys.KcB, this.tt)
+
+ const frame: Record<string, unknown> = {
+ type: 'confirmA',
+ cA: toBase64Url(cA),
+ }
+ if (this.ticket) {
+ frame.ticketProof = toBase64Url(
+ ed25519.sign(concatBytes(PROOF_LABEL, this.tt), this.ticket.seed)
+ )
+ }
+ return frame
+ }
+
+ verifyConfirmB(confirmB: Record<string, unknown>): boolean {
+ if (!this.keys) throw new Error('no key schedule yet')
+ const { cB } = confirmationMacs(this.keys.KcA, this.keys.KcB, this.tt)
+ return toBase64Url(cB) === confirmB.cB
+ }
+
+ /** Client-side envelope endpoints: it seals c2s and opens s2c (§6.6, §10). */
+ channel(): { sealer: EnvelopeSealer; opener: EnvelopeOpener } {
+ if (!this.keys) throw new Error('no key schedule yet')
+ const { kC2S, kS2C } = pairTrafficKeys(this.keys.Ke)
+ return {
+ sealer: new EnvelopeSealer(kC2S, DIR_C2S),
+ opener: new EnvelopeOpener(kS2C, DIR_S2C),
+ }
+ }
+
+ hello(): object {
+ const frame: Record<string, unknown> = {
+ type: 'pairHello',
+ protocolVersion: 1,
+ browser: this.browser,
+ claimedExtensionId: this.claimedExtensionId,
+ clientInstallationId: INSTALLATION_ID,
+ }
+ if (this.ticket) {
+ frame.nmTicket = this.ticket.wire
+ frame.ticketBindingKey = this.ticket.bindingKeyB64
+ }
+ return frame
+ }
+}
+
+function helloFrame(over: Record<string, unknown> = {}): object {
+ return {
+ type: 'pairHello',
+ protocolVersion: 1,
+ browser: 'chromium',
+ claimedExtensionId: EXTENSION_ID,
+ clientInstallationId: INSTALLATION_ID,
+ ...over,
+ }
+}
+
+/** Drives pairHello → pairAccept and returns the code the dialog was given. */
+async function openSession(
+ h: Harness,
+ hello: object = helloFrame()
+): Promise<string> {
+ await h.text(hello)
+ const args = h.dialogs.at(-1)
+ if (!args) throw new Error('no dialog queued')
+ return args.code
+}
+
+/** Drives one full successful run from pakeA through confirmB. */
+async function runHandshake(h: Harness, client: ClientDouble): Promise<void> {
+ await h.text(client.pakeA())
+ const pakeB = h.lastSent()
+ expect(pakeB.type).toBe('pakeB')
+ await h.text(client.confirmA(pakeB))
+}
+
+// ---------------------------------------------------------------------------
+
+describe('PairSession', () => {
+ describe('scenario 1: happy path without a ticket', () => {
+ let h: Harness
+ let client: ClientDouble
+
+ beforeEach(async () => {
+ h = makeHarness()
+ const code = await openSession(h)
+ client = new ClientDouble({ code })
+ })
+
+ it('sends pairAccept carrying the instanceId as soon as the dialog is queued', () => {
+ expect(h.sent).toEqual([
+ { type: 'pairAccept', protocolVersion: 1, instanceId: INSTANCE_ID },
+ ])
+ expect(h.dialogs).toHaveLength(1)
+ })
+
+ it('shows the dialog the §7.1 grouped display form of the code', () => {
+ expect(h.dialogs[0].code).toMatch(
+ /^[0-9A-HJKMNP-TV-Z]{4}-[0-9A-HJKMNP-TV-Z]{4}$/
+ )
+ expect(h.dialogs[0].pairingNonce).toBe(PAIR_NONCE)
+ expect(h.dialogs[0].identity).toBe('official')
+ })
+
+ it('completes key confirmation and activates the AEAD channel', async () => {
+ await runHandshake(h, client)
+ const confirmB = h.lastSent()
+ expect(confirmB.type).toBe('confirmB')
+ expect(client.verifyConfirmB(confirmB)).toBe(true)
+ expect(h.closed).toEqual([])
+ })
+
+ it('issues, acks, and commits the credential inside the envelope', async () => {
+ await runHandshake(h, client)
+ const channel = client.channel()
+
+ expect(h.binary).toHaveLength(1)
+ const offer = JSON.parse(
+ Buffer.from(channel.opener.open(h.binary[0])).toString('utf-8')
+ )
+ expect(offer).toEqual({
+ type: 'credentialOffer',
+ credentialId: 'cred-1111-2222-3333',
+ mutualKey: toBase64Url(new Uint8Array(32).fill(7)),
+ })
+
+ await h.session.handleBinary(
+ channel.sealer.seal(
+ utf8ToBytes(
+ JSON.stringify({
+ type: 'credentialAck',
+ credentialId: offer.credentialId,
+ })
+ )
+ )
+ )
+
+ expect(h.commitFromPair).toHaveBeenCalledWith('cred-1111-2222-3333')
+ expect(h.binary).toHaveLength(2)
+ const committed = JSON.parse(
+ Buffer.from(channel.opener.open(h.binary[1])).toString('utf-8')
+ )
+ expect(committed).toEqual({ type: 'credentialCommitted' })
+ })
+
+ it('hands the live envelope endpoints to the wiring after committing', async () => {
+ await runHandshake(h, client)
+ const channel = client.channel()
+ const offer = JSON.parse(
+ Buffer.from(channel.opener.open(h.binary[0])).toString('utf-8')
+ )
+ await h.session.handleBinary(
+ channel.sealer.seal(
+ utf8ToBytes(
+ JSON.stringify({
+ type: 'credentialAck',
+ credentialId: offer.credentialId,
+ })
+ )
+ )
+ )
+
+ expect(h.authenticated).not.toBeNull()
+ expect(h.order.indexOf('onAuthenticated')).toBeGreaterThan(
+ h.order.lastIndexOf('sendBinary')
+ )
+ })
+
+ it('offers the credential to the caller as the store principal and identity', async () => {
+ await runHandshake(h, client)
+ expect(h.offerProvisional).toHaveBeenCalledWith(
+ {
+ browser: 'chromium',
+ verifiedOrigin: ORIGIN,
+ clientInstallationId: INSTALLATION_ID,
+ },
+ 'official'
+ )
+ })
+ })
+
+ describe('scenario 1b: §6.7 issuance ordering', () => {
+ it('emits credentialOffer only after offerProvisional has resolved', async () => {
+ const gateOffer = deferred<void>()
+ const h = makeHarness({ gateOffer })
+ const code = await openSession(h)
+ const client = new ClientDouble({ code })
+
+ await h.text(client.pakeA())
+ const pending = h.text(client.confirmA(h.lastSent()))
+ await Promise.resolve()
+ await Promise.resolve()
+
+ // confirmB is out (the channel is active), but nothing durable has
+ // resolved yet, so no offer may exist on the wire.
+ expect(h.lastSent().type).toBe('confirmB')
+ expect(h.order).toContain('offerProvisional:start')
+ expect(h.order).not.toContain('offerProvisional:resolved')
+ expect(h.binary).toHaveLength(0)
+
+ gateOffer.resolve()
+ await pending
+
+ expect(h.binary).toHaveLength(1)
+ expect(h.order.indexOf('offerProvisional:resolved')).toBeLessThan(
+ h.order.lastIndexOf('sendBinary')
+ )
+ })
+
+ it('sends credentialCommitted only after the durable commit resolved', async () => {
+ const gateCommit = deferred<void>()
+ const h = makeHarness({ gateCommit })
+ const code = await openSession(h)
+ const client = new ClientDouble({ code })
+ await runHandshake(h, client)
+ const channel = client.channel()
+ channel.opener.open(h.binary[0])
+
+ const pending = h.session.handleBinary(
+ channel.sealer.seal(
+ utf8ToBytes(
+ JSON.stringify({
+ type: 'credentialAck',
+ credentialId: 'cred-1111-2222-3333',
+ })
+ )
+ )
+ )
+ await Promise.resolve()
+ await Promise.resolve()
+
+ // The commit is in flight; only the offer may be on the wire so far.
+ expect(h.order).toContain('commitFromPair:start')
+ expect(h.order).not.toContain('commitFromPair:resolved')
+ expect(h.binary).toHaveLength(1)
+ expect(h.authenticated).toBeNull()
+
+ gateCommit.resolve()
+ await pending
+
+ expect(h.binary).toHaveLength(2)
+ expect(h.order.indexOf('commitFromPair:resolved')).toBeLessThan(
+ h.order.lastIndexOf('sendBinary')
+ )
+ expect(h.authenticated).not.toBeNull()
+ })
+ })
+
+ describe('scenario 2: happy path with an NM attestation ticket', () => {
+ it('resolves official through the allowlist and accepts the ticketProof', async () => {
+ const h = makeHarness({ official: true })
+ const ticket = mintTicket()
+ const client0 = new ClientDouble({ code: '00000000', ticket })
+ const code = await openSession(h, client0.hello())
+ const client = new ClientDouble({ code, ticket })
+
+ expect(h.dialogs[0].identity).toBe('official')
+ expect(h.deps.isOfficialId).toHaveBeenCalledWith('chromium', EXTENSION_ID)
+
+ await runHandshake(h, client)
+ expect(h.lastSent().type).toBe('confirmB')
+ expect(client.verifyConfirmB(h.lastSent())).toBe(true)
+ })
+
+ it('resolves attested-non-official when the proven id is not allowlisted', async () => {
+ const h = makeHarness({ official: false })
+ const ticket = mintTicket()
+ const client0 = new ClientDouble({ code: '00000000', ticket })
+ await openSession(h, client0.hello())
+ expect(h.dialogs[0].identity).toBe('attested-non-official')
+ })
+
+ it('resolves an unknown-generation downgrade from the verified origin: allowlisted stays official (§9.2 only-raise)', async () => {
+ const h = makeHarness({ official: true })
+ const ticket = mintTicket({ serverGeneration: 'some-older-generation' })
+ const client0 = new ClientDouble({ code: '00000000', ticket })
+ await openSession(h, client0.hello())
+ expect(h.dialogs[0].identity).toBe('official')
+ expect(h.deps.isOfficialId).toHaveBeenCalledWith('chromium', EXTENSION_ID)
+ })
+
+ it('resolves an expired-ticket downgrade from the verified origin (§9.2 only-raise)', async () => {
+ const h = makeHarness({ official: true })
+ const ticket = mintTicket({ exp: Math.floor(T0 / 1000) - 1 })
+ const client0 = new ClientDouble({ code: '00000000', ticket })
+ await openSession(h, client0.hello())
+ expect(h.dialogs[0].identity).toBe('official')
+ })
+
+ it('resolves a downgraded ticket from a non-allowlisted Chromium origin as attested-non-official, matching the ticketless outcome', async () => {
+ const h = makeHarness({ official: false })
+ const ticket = mintTicket({ serverGeneration: 'some-older-generation' })
+ const client0 = new ClientDouble({ code: '00000000', ticket })
+ await openSession(h, client0.hello())
+ expect(h.dialogs[0].identity).toBe('attested-non-official')
+ })
+
+ it('keeps a downgraded Firefox ticket at unverified: a moz-extension origin cannot raise it', async () => {
+ const origin = 'moz-extension://8c1a0d6e-1f2b-4c3d-9e0a-5b6c7d8e9f01'
+ const h = makeHarness({ browser: 'firefox', verifiedOrigin: origin })
+ const ticket = mintTicket({
+ browser: 'firefox',
+ callerId: '[email protected]',
+ serverGeneration: 'some-older-generation',
+ })
+ const client0 = new ClientDouble({
+ code: '00000000',
+ ticket,
+ browser: 'firefox',
+ verifiedOrigin: origin,
+ claimedExtensionId: '[email protected]',
+ })
+ await openSession(h, client0.hello())
+ expect(h.dialogs[0].identity).toBe('unverified')
+ })
+
+ it('rejects a confirmA whose ticketProof does not verify as a failed attempt', async () => {
+ const h = makeHarness()
+ const ticket = mintTicket()
+ const client0 = new ClientDouble({ code: '00000000', ticket })
+ const code = await openSession(h, client0.hello())
+ const client = new ClientDouble({ code, ticket })
+
+ await h.text(client.pakeA())
+ const confirm = client.confirmA(h.lastSent()) as Record<string, unknown>
+ // A syntactically valid 64-byte signature that is not the right one.
+ confirm.ticketProof = toBase64Url(
+ ed25519.sign(utf8ToBytes('some other message'), bindingSeed)
+ )
+ await h.text(confirm)
+
+ expect(h.error()).toEqual({
+ type: 'pairError',
+ code: 'codeMismatch',
+ attemptsRemaining: 2,
+ })
+ })
+
+ it('treats a missing ticketProof as a protocol violation, not a wrong code', async () => {
+ const h = makeHarness()
+ const ticket = mintTicket()
+ const client0 = new ClientDouble({ code: '00000000', ticket })
+ const code = await openSession(h, client0.hello())
+ const client = new ClientDouble({ code, ticket })
+
+ await h.text(client.pakeA())
+ const confirm = client.confirmA(h.lastSent()) as Record<string, unknown>
+ delete confirm.ticketProof
+ await h.text(confirm)
+
+ expect(h.error().code).toBe('protocolViolation')
+ expect(h.closed).toHaveLength(1)
+ })
+
+ it('treats a ticketProof sent without a ticket as a protocol violation', async () => {
+ const h = makeHarness()
+ const code = await openSession(h)
+ const client = new ClientDouble({ code })
+
+ await h.text(client.pakeA())
+ const confirm = client.confirmA(h.lastSent()) as Record<string, unknown>
+ confirm.ticketProof = toBase64Url(
+ ed25519.sign(utf8ToBytes('unexpected'), bindingSeed)
+ )
+ await h.text(confirm)
+
+ expect(h.error().code).toBe('protocolViolation')
+ })
+ })
+
+ describe('scenario 2b: ticket aborts (§9.2)', () => {
+ it('aborts with protocolViolation and never reveals the abort reason', async () => {
+ const h = makeHarness()
+ const ticket = mintTicket({ mac: new Uint8Array(32).fill(9) })
+ await h.text(
+ helloFrame({
+ nmTicket: ticket.wire,
+ ticketBindingKey: ticket.bindingKeyB64,
+ })
+ )
+
+ expect(h.error()).toEqual({
+ type: 'pairError',
+ code: 'protocolViolation',
+ })
+ expect(h.dialogs).toHaveLength(0)
+ expect(h.closed).toHaveLength(1)
+ })
+
+ it('lets a structural abort take precedence over an official identity', async () => {
+ const h = makeHarness({ official: true })
+ // Same allowlisted caller and verified origin that would otherwise
+ // resolve `official`, but the ticket's binding key does not match the
+ // one presented in pairHello (§9.2 bindingKeyMismatch).
+ const ticket = mintTicket()
+ const otherKey = ed25519.getPublicKey(new Uint8Array(32).fill(3))
+ await h.text(
+ helloFrame({
+ nmTicket: ticket.wire,
+ ticketBindingKey: toBase64Url(otherKey),
+ })
+ )
+
+ expect(h.error().code).toBe('protocolViolation')
+ expect(h.dialogs).toHaveLength(0)
+ })
+
+ it('rejects a ticket presented without its binding key at the schema', async () => {
+ const h = makeHarness()
+ const ticket = mintTicket()
+ await h.text(helloFrame({ nmTicket: ticket.wire }))
+ expect(h.error().code).toBe('protocolViolation')
+ })
+
+ it('rejects a binding key presented without a ticket at the schema', async () => {
+ const h = makeHarness()
+ const ticket = mintTicket()
+ await h.text(helloFrame({ ticketBindingKey: ticket.bindingKeyB64 }))
+ expect(h.error().code).toBe('protocolViolation')
+ })
+ })
+
+ describe('scenario 3: wrong code and attempt exhaustion (§7.2)', () => {
+ it('reports codeMismatch with the remaining attempts and keeps the socket open', async () => {
+ const h = makeHarness()
+ await openSession(h)
+ const wrong = new ClientDouble({ code: 'ZZZZZZZZ' })
+
+ await h.text(wrong.pakeA())
+ await h.text(wrong.confirmA(h.lastSent()))
+
+ expect(h.error()).toEqual({
+ type: 'pairError',
+ code: 'codeMismatch',
+ attemptsRemaining: 2,
+ })
+ expect(h.closed).toEqual([])
+ expect(h.session.attemptCount).toBe(1)
+ })
+
+ it('lets a fresh run start on the same socket after a failure', async () => {
+ const h = makeHarness()
+ const code = await openSession(h)
+ const wrong = new ClientDouble({ code: 'ZZZZZZZZ' })
+ await h.text(wrong.pakeA())
+ await h.text(wrong.confirmA(h.lastSent()))
+
+ const right = new ClientDouble({ code })
+ await h.text(right.pakeA())
+ expect(h.lastSent().type).toBe('pakeB')
+ await h.text(right.confirmA(h.lastSent()))
+
+ expect(h.lastSent().type).toBe('confirmB')
+ expect(right.verifyConfirmB(h.lastSent())).toBe(true)
+ expect(h.session.attemptCount).toBe(2)
+ })
+
+ it('rate-limits, closes, and invalidates the code on the third failure', async () => {
+ const h = makeHarness()
+ const code = await openSession(h)
+ const wrong = new ClientDouble({ code: 'ZZZZZZZZ' })
+
+ for (const expected of [2, 1]) {
+ await h.text(wrong.pakeA())
+ await h.text(wrong.confirmA(h.lastSent()))
+ expect(h.error()).toEqual({
+ type: 'pairError',
+ code: 'codeMismatch',
+ attemptsRemaining: expected,
+ })
+ }
+
+ await h.text(wrong.pakeA())
+ await h.text(wrong.confirmA(h.lastSent()))
+
+ expect(h.error()).toEqual({ type: 'pairError', code: 'rateLimited' })
+ expect(h.closed).toHaveLength(1)
+ expect(h.session.attemptCount).toBe(3)
+ expect(h.dialogClosed).toEqual([0])
+
+ // The code is dead: even the right one cannot start another run.
+ const right = new ClientDouble({ code })
+ const before = h.sent.length
+ await h.text(right.pakeA())
+ expect(h.sent).toHaveLength(before)
+ })
+
+ it('treats an identity K exactly like a wrong code, revealing nothing extra', async () => {
+ const h = makeHarness()
+ const code = await openSession(h)
+ const normalized = normalizePairingCode(code)
+ if (!normalized) throw new Error('unusable code')
+ const w = deriveW(normalized, PAIR_NONCE, EDWARDS25519_GROUP.order)
+ // pA = w·M makes pA − w·M the identity, so K is the identity (§6.3).
+ const pA = EDWARDS25519_GROUP.encodePoint(
+ EDWARDS25519_GROUP.M.multiply(w)
+ )
+
+ await h.text({ type: 'pakeA', pA: toBase64Url(pA) })
+
+ expect(h.error()).toEqual({
+ type: 'pairError',
+ code: 'codeMismatch',
+ attemptsRemaining: 2,
+ })
+ expect(h.session.attemptCount).toBe(1)
+ })
+ })
+
+ describe('scenario 4: frame discipline (§6.1)', () => {
+ it('aborts on an unknown frame type', async () => {
+ const h = makeHarness()
+ await h.text({ type: 'somethingElse' })
+ expect(h.error().code).toBe('protocolViolation')
+ expect(h.closed).toHaveLength(1)
+ })
+
+ it('aborts on a duplicate pakeA mid-run', async () => {
+ const h = makeHarness()
+ const code = await openSession(h)
+ const client = new ClientDouble({ code })
+ await h.text(client.pakeA())
+ await h.text(client.pakeA())
+
+ expect(h.error().code).toBe('protocolViolation')
+ expect(h.closed).toHaveLength(1)
+ })
+
+ it('aborts on a duplicate pairHello', async () => {
+ const h = makeHarness()
+ await openSession(h)
+ await h.text(helloFrame())
+ expect(h.error().code).toBe('protocolViolation')
+ })
+
+ it('aborts on an out-of-order confirmA before pakeA', async () => {
+ const h = makeHarness()
+ await openSession(h)
+ await h.text({ type: 'confirmA', cA: toBase64Url(new Uint8Array(32)) })
+ expect(h.error().code).toBe('protocolViolation')
+ })
+
+ it('aborts on a pre-auth text frame larger than 16 KiB using the byte length', async () => {
+ const h = makeHarness()
+ const raw = JSON.stringify(helloFrame())
+ await h.raw(raw, 16 * 1024 + 1)
+ expect(h.error().code).toBe('protocolViolation')
+ expect(h.dialogs).toHaveLength(0)
+ })
+
+ it('aborts on schema-invalid JSON and on non-JSON text', async () => {
+ const h = makeHarness()
+ await h.raw('{not json')
+ expect(h.error().code).toBe('protocolViolation')
+
+ const h2 = makeHarness()
+ await h2.raw('[]')
+ expect(h2.error().code).toBe('protocolViolation')
+ })
+
+ it('aborts on a malformed base64url point, and still spends the attempt', async () => {
+ const h = makeHarness()
+ await openSession(h)
+ await h.text({ type: 'pakeA', pA: '!!!!not-base64url!!!!' })
+ expect(h.error().code).toBe('protocolViolation')
+ expect(h.closed).toHaveLength(1)
+ // §7.2 counts "malformed point after pakeA" as a failed attempt, so an
+ // unparseable pakeA must not be a free probe.
+ expect(h.session.attemptCount).toBe(1)
+ })
+
+ it('aborts on a well-formed but non-canonical curve point, consuming the attempt', async () => {
+ const h = makeHarness()
+ await openSession(h)
+ // y = p: a canonical-length encoding that is not a canonical point (§6.3).
+ const nonCanonical = Buffer.from(
+ 'edffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7f',
+ 'hex'
+ )
+ await h.text({
+ type: 'pakeA',
+ pA: toBase64Url(new Uint8Array(nonCanonical)),
+ })
+
+ expect(h.error().code).toBe('protocolViolation')
+ expect(h.session.attemptCount).toBe(1)
+ })
+
+ it('treats a text frame after channel activation as a violation (§10)', async () => {
+ const h = makeHarness()
+ const code = await openSession(h)
+ const client = new ClientDouble({ code })
+ await runHandshake(h, client)
+ const before = h.sent.length
+
+ await h.text({ type: 'pakeA', pA: toBase64Url(new Uint8Array(32)) })
+
+ // Closed *silently*: §11 scopes `pairError` to pre-channel, so leaking a
+ // plaintext error here would be the very §11 violation this path exists
+ // to prevent. Asserting only "the socket closed" would pass either way.
+ expect(h.sent).toHaveLength(before)
+ expect(h.closed).toHaveLength(1)
+ })
+
+ it('closes without a plaintext pairError when an envelope frame fails to open', async () => {
+ const h = makeHarness()
+ const code = await openSession(h)
+ const client = new ClientDouble({ code })
+ await runHandshake(h, client)
+ const before = h.sent.length
+
+ await h.session.handleBinary(new Uint8Array(64))
+
+ expect(h.sent).toHaveLength(before)
+ expect(h.closed).toHaveLength(1)
+ })
+ })
+
+ describe('scenario 5: attempt accounting survives disconnection (§7.2)', () => {
+ it('keeps a consumed attempt after the socket closes mid-run', async () => {
+ const h = makeHarness()
+ const code = await openSession(h)
+ const client = new ClientDouble({ code })
+
+ await h.text(client.pakeA())
+ expect(h.session.attemptCount).toBe(1)
+
+ h.session.dispose('socket-closed')
+ expect(h.session.attemptCount).toBe(1)
+ expect(h.dialogClosed).toEqual([0])
+ })
+
+ it('does not consume an attempt for a session that never reached pakeA', async () => {
+ const h = makeHarness()
+ await openSession(h)
+ h.session.dispose('socket-closed')
+ expect(h.session.attemptCount).toBe(0)
+ })
+ })
+
+ describe('scenario 6: pairAccept carries no approval semantics', () => {
+ it('sends pairAccept with the dialog still pending and no user action taken', async () => {
+ const h = makeHarness()
+ await h.text(helloFrame())
+
+ expect(h.sent).toEqual([
+ { type: 'pairAccept', protocolVersion: 1, instanceId: INSTANCE_ID },
+ ])
+ expect(h.dialogClosed).toEqual([])
+ expect(h.order.indexOf('queueDialog')).toBeLessThan(
+ h.order.indexOf('sendText')
+ )
+ })
+ })
+
+ describe('scenario 7: 120 s code lifetime (§7.2)', () => {
+ it('expires the code 120 s after the dialog was queued', async () => {
+ let now = T0
+ const h = makeHarness({ now: () => now })
+ const code = await openSession(h)
+ const client = new ClientDouble({ code })
+
+ await h.text(client.pakeA())
+ now = T0 + 120_001
+ await h.text(client.confirmA(h.lastSent()))
+
+ expect(h.error()).toEqual({ type: 'pairError', code: 'expired' })
+ expect(h.closed).toHaveLength(1)
+ expect(h.dialogClosed).toEqual([0])
+ })
+
+ it('still accepts a run that starts inside the window', async () => {
+ let now = T0
+ const h = makeHarness({ now: () => now })
+ const code = await openSession(h)
+ const client = new ClientDouble({ code })
+
+ now = T0 + 119_000
+ await runHandshake(h, client)
+ expect(h.lastSent().type).toBe('confirmB')
+ })
+
+ it('rejects a pakeA that arrives after expiry', async () => {
+ let now = T0
+ const h = makeHarness({ now: () => now })
+ const code = await openSession(h)
+ const client = new ClientDouble({ code })
+
+ now = T0 + 200_000
+ await h.text(client.pakeA())
+
+ expect(h.error()).toEqual({ type: 'pairError', code: 'expired' })
+ expect(h.session.attemptCount).toBe(0)
+ })
+ })
+
+ describe('scenario 8: dialog dismissal', () => {
+ it('aborts and closes when the user dismisses the dialog', async () => {
+ const h = makeHarness()
+ await openSession(h)
+
+ h.dismissals[0].resolve()
+ await Promise.resolve()
+ await Promise.resolve()
+
+ expect(h.error()).toEqual({ type: 'pairError', code: 'aborted' })
+ expect(h.closed).toHaveLength(1)
+ })
+
+ it('ignores a dismissal that arrives after the pairing already succeeded', async () => {
+ const h = makeHarness()
+ const code = await openSession(h)
+ const client = new ClientDouble({ code })
+ await runHandshake(h, client)
+
+ const before = h.sent.length
+ h.dismissals[0].resolve()
+ await Promise.resolve()
+ await Promise.resolve()
+
+ expect(h.sent).toHaveLength(before)
+ expect(h.closed).toEqual([])
+ })
+ })
+
+ describe('§7.3 admission ordering', () => {
+ it('runs admission before any session mutation, ticket work, or dialog', async () => {
+ const h = makeHarness({ admit: () => ({ ok: false, code: 'busy' }) })
+ const ticket = mintTicket()
+
+ await h.text(
+ helloFrame({
+ nmTicket: ticket.wire,
+ ticketBindingKey: ticket.bindingKeyB64,
+ })
+ )
+
+ expect(h.error()).toEqual({ type: 'pairError', code: 'busy' })
+ expect(h.closed).toHaveLength(1)
+ expect(h.dialogs).toHaveLength(0)
+ expect(h.replayAdd).not.toHaveBeenCalled()
+ expect(h.order[0]).toBe('admit')
+ })
+
+ it('frees the pending slot at key confirmation, and never twice', async () => {
+ const h = makeHarness()
+ const code = await openSession(h)
+ const client = new ClientDouble({ code })
+ expect(h.released).toEqual([])
+
+ await runHandshake(h, client)
+
+ // Released at confirmation, not at socket close: a paired connection
+ // lives for hours, and three of them would otherwise block every dialog.
+ expect(h.released).toEqual([ORIGIN])
+ expect(h.dialogClosed).toEqual([0])
+
+ h.session.dispose('socket-closed')
+ expect(h.released).toEqual([ORIGIN])
+ // The dialog is closed exactly once too: `PairDialogHandle.close` is not
+ // required to be idempotent, and confirmation + dispose both reach it.
+ expect(h.dialogClosed).toEqual([0])
+ })
+
+ it('frees the pending slot when the session ends without pairing', async () => {
+ for (const end of [
+ async (h: Harness) => {
+ h.dismissals[0].resolve()
+ await Promise.resolve()
+ await Promise.resolve()
+ },
+ async (h: Harness) => {
+ await h.text({ type: 'somethingElse' })
+ },
+ async (h: Harness) => {
+ h.session.dispose('socket-closed')
+ },
+ async (h: Harness) => {
+ h.session.dispose('timeout')
+ },
+ ]) {
+ const h = makeHarness()
+ await openSession(h)
+ await end(h)
+ expect(h.released).toEqual([ORIGIN])
+ }
+ })
+
+ it('never frees a slot it did not take', async () => {
+ // The slot this admission was refused against belongs to another live
+ // session; releasing it here would hand that session's slot away.
+ for (const code of ['busy', 'rateLimited'] as const) {
+ const h = makeHarness({ admit: () => ({ ok: false, code }) })
+ await h.text(helloFrame())
+ h.session.dispose('socket-closed')
+ expect(h.released).toEqual([])
+ }
+
+ // A session that never got as far as pairHello holds no slot either.
+ const never = makeHarness()
+ never.session.dispose('socket-closed')
+ expect(never.released).toEqual([])
+ })
+
+ it('surfaces a rateLimited admission verdict verbatim', async () => {
+ const h = makeHarness({
+ admit: () => ({ ok: false, code: 'rateLimited' }),
+ })
+ await h.text(helloFrame())
+ expect(h.error()).toEqual({ type: 'pairError', code: 'rateLimited' })
+ })
+
+ it('admits before touching the ticket replay cache on the accepted path', async () => {
+ const h = makeHarness()
+ const ticket = mintTicket()
+ await h.text(
+ helloFrame({
+ nmTicket: ticket.wire,
+ ticketBindingKey: ticket.bindingKeyB64,
+ })
+ )
+ expect(h.order.indexOf('admit')).toBeLessThan(
+ h.order.indexOf('replay.add')
+ )
+ expect(h.order.indexOf('replay.add')).toBeLessThan(
+ h.order.indexOf('queueDialog')
+ )
+ })
+ })
+
+ describe('§5 identity and §11 version handling', () => {
+ it('rejects a protocolVersion other than 1 with unsupportedVersion', async () => {
+ const h = makeHarness()
+ await h.text(helloFrame({ protocolVersion: 2 }))
+ expect(h.error()).toEqual({
+ type: 'pairError',
+ code: 'unsupportedVersion',
+ })
+ expect(h.closed).toHaveLength(1)
+ })
+
+ it('rejects a chromium hello whose claimed id does not match the origin', async () => {
+ const h = makeHarness()
+ await h.text(helloFrame({ claimedExtensionId: 'someotherextensionid' }))
+ expect(h.error().code).toBe('protocolViolation')
+ expect(h.dialogs).toHaveLength(0)
+ })
+
+ it('rejects a hello whose browser contradicts the derived one', async () => {
+ // §5: identity never comes from a self-reported field. The rejection also
+ // has to land before `admit`, or a client could spend other sessions'
+ // §7.3 pending slots on frames that were never going to be accepted.
+ let admitted = false
+ const h = makeHarness({
+ browser: 'chromium',
+ admit: () => {
+ admitted = true
+ return { ok: true }
+ },
+ })
+ await h.text(helloFrame({ browser: 'firefox' }))
+ expect(h.error().code).toBe('protocolViolation')
+ expect(h.dialogs).toHaveLength(0)
+ expect(admitted).toBe(false)
+ })
+
+ it('does not let a declared firefox skip the chromium origin check', async () => {
+ // The attack the previous shape allowed: connect from a real
+ // `chrome-extension://` origin, declare `firefox` so the origin/claimedId
+ // predicate does not apply, and then claim any id at all. Identity landed
+ // in `unverified`, which renders the *claimed* id in the approval dialog —
+ // so the payoff was showing the user a recognizable extension id from an
+ // extension that was not it.
+ const h = makeHarness({ browser: 'chromium' })
+ await h.text(
+ helloFrame({
+ browser: 'firefox',
+ claimedExtensionId: 'someotherextensionid',
+ })
+ )
+ expect(h.error().code).toBe('protocolViolation')
+ expect(h.dialogs).toHaveLength(0)
+ })
+
+ it('resolves a ticketless firefox caller as unverified', async () => {
+ const h = makeHarness({
+ official: true,
+ browser: 'firefox',
+ verifiedOrigin: 'moz-extension://8c1a0d6e-1f2b-4c3d-9e0a-5b6c7d8e9f01',
+ })
+ await h.text(helloFrame({ browser: 'firefox' }))
+ expect(h.dialogs[0].identity).toBe('unverified')
+ })
+
+ it('resolves a ticketless chromium caller from the allowlist alone', async () => {
+ const official = makeHarness({ official: true })
+ await official.text(helloFrame())
+ expect(official.dialogs[0].identity).toBe('official')
+
+ const other = makeHarness({ official: false })
+ await other.text(helloFrame())
+ expect(other.dialogs[0].identity).toBe('attested-non-official')
+ })
+
+ it('closes a session whose nonce the demux already rejected', async () => {
+ const h = makeHarness({ nonceValid: false })
+ await h.text(helloFrame())
+ expect(h.error()).toEqual({ type: 'pairError', code: 'expired' })
+ expect(h.closed).toHaveLength(1)
+ expect(h.dialogs).toHaveLength(0)
+ expect(h.deps.admit).not.toHaveBeenCalled()
+ })
+ })
+
+ describe('local faults are never reported as the peer’s violation', () => {
+ it('reports a short CSPRNG draw as pairingFailed, not protocolViolation', async () => {
+ // `drawScalar` throws `ProtocolViolationError` for a short draw, but the
+ // fault is ours, not the peer's (§11). Five bytes still satisfy the
+ // pairing-code draw, so the session reaches pakeA before failing.
+ const h = makeHarness({
+ random: (n: number) =>
+ n === 5 ? new Uint8Array(randomBytes(5)) : new Uint8Array(31),
+ })
+ const code = await openSession(h)
+ const client = new ClientDouble({ code })
+
+ await h.text(client.pakeA())
+
+ expect(h.error()).toEqual({ type: 'pairError', code: 'pairingFailed' })
+ expect(h.closed).toHaveLength(1)
+ })
+
+ it('reports a non-ASCII verified origin as pairingFailed', async () => {
+ // `enc()` refuses a non-ASCII string (§2), which would otherwise throw
+ // out of the frame handler while building A_id.
+ //
+ // Uses a Firefox origin throughout rather than declaring `firefox` over a
+ // `chrome-extension://` one. The old version did the latter to skip the
+ // Chromium origin/claimedId check and reach `enc()` — which is exactly
+ // the bypass that check now refuses, so the test was quietly relying on
+ // the defect it sat next to.
+ const h = makeHarness({
+ browser: 'firefox',
+ verifiedOrigin: 'moz-extension://ídentity',
+ })
+ await h.text(helloFrame({ browser: 'firefox' }))
+ expect(h.error()).toEqual({ type: 'pairError', code: 'pairingFailed' })
+ expect(h.dialogs).toHaveLength(0)
+ })
+
+ it('closes without a plaintext error when the durable offer write fails', async () => {
+ const h = makeHarness({
+ offerProvisional: () => Promise.reject(new Error('disk is full')),
+ })
+ const code = await openSession(h)
+ const client = new ClientDouble({ code })
+ await runHandshake(h, client)
+
+ expect(h.binary).toHaveLength(0)
+ expect(h.closed).toHaveLength(1)
+ expect(h.lastSent().type).toBe('confirmB')
+ })
+
+ it('terminates locally rather than emit a pairAccept a broken deps wiring produced', async () => {
+ // `pairAcceptFrameSchema` requires `instanceId` to be ASCII (it reaches
+ // `enc()` via §6.4's B_id). `PairSessionDeps` is structural, so `tsc`
+ // proves nothing about the string's contents — a non-ASCII value must
+ // close locally, not go out as a malformed frame the peer has to reject.
+ const h = makeHarness()
+ h.deps.instanceId = 'bad-é-instance'
+
+ await h.text(helloFrame())
+
+ expect(h.sent).toEqual([])
+ expect(h.closed).toHaveLength(1)
+ })
+ })
+
+ describe('credential exchange discipline (§6.7)', () => {
+ it('closes on a credentialAck naming a credential that was never offered', async () => {
+ const h = makeHarness()
+ const code = await openSession(h)
+ const client = new ClientDouble({ code })
+ await runHandshake(h, client)
+ const channel = client.channel()
+ channel.opener.open(h.binary[0])
+
+ await h.session.handleBinary(
+ channel.sealer.seal(
+ utf8ToBytes(
+ JSON.stringify({ type: 'credentialAck', credentialId: 'not-mine' })
+ )
+ )
+ )
+
+ expect(h.commitFromPair).not.toHaveBeenCalled()
+ expect(h.closed).toHaveLength(1)
+ })
+
+ it('refuses to emit a credentialOffer the store filled in wrongly', async () => {
+ // `PairCredentialIssuer` is structural, so `tsc` proves the store's
+ // method shapes but never its string contents. A `mutualKeyB64` that is
+ // not 32 bytes of base64url must close locally, not go out malformed.
+ const h = makeHarness({
+ offerProvisional: () =>
+ Promise.resolve({
+ credentialId: 'cred-1111-2222-3333',
+ mutualKeyB64: toBase64Url(new Uint8Array(16).fill(7)),
+ }),
+ })
+ const code = await openSession(h)
+ const client = new ClientDouble({ code })
+ await runHandshake(h, client)
+
+ expect(h.binary).toHaveLength(0)
+ expect(h.closed).toHaveLength(1)
+ expect(h.authenticated).toBeNull()
+ })
+
+ it('does not resurrect a closed session when the seal fails', async () => {
+ const h = makeHarness()
+ const code = await openSession(h)
+ const client = new ClientDouble({ code })
+ await runHandshake(h, client)
+ const channel = client.channel()
+ channel.opener.open(h.binary[0])
+
+ // Force the credentialCommitted seal to throw, the way an envelope usage
+ // bound would (§10). The session is already closed by then, so it must
+ // not go on to hand the wiring a channel after `close` already fired.
+ h.deps.sendBinary = () => {
+ throw new Error('seal failed')
+ }
+
+ await h.session.handleBinary(
+ channel.sealer.seal(
+ utf8ToBytes(
+ JSON.stringify({
+ type: 'credentialAck',
+ credentialId: 'cred-1111-2222-3333',
+ })
+ )
+ )
+ )
+
+ expect(h.authenticated).toBeNull()
+ expect(h.closed).toHaveLength(1)
+ })
+
+ it('closes on a binary frame that arrives before the channel exists', async () => {
+ const h = makeHarness()
+ await openSession(h)
+ await h.session.handleBinary(new Uint8Array(64))
+ expect(h.closed).toHaveLength(1)
+ })
+ })
+
+ describe('post-close discipline', () => {
+ it('ignores further frames once the session has been closed', async () => {
+ const h = makeHarness()
+ await h.text({ type: 'somethingElse' })
+ const before = h.sent.length
+ await h.text(helloFrame())
+ expect(h.sent).toHaveLength(before)
+ expect(h.closed).toHaveLength(1)
+ })
+
+ it('ignores further frames after dispose', async () => {
+ const h = makeHarness()
+ await openSession(h)
+ h.session.dispose('timeout')
+ const before = h.sent.length
+ await h.text({ type: 'pakeA', pA: toBase64Url(new Uint8Array(32)) })
+ expect(h.sent).toHaveLength(before)
+ })
+ })
+})
diff --git a/src/core/bridge/mbp1/pair-session.ts b/src/core/bridge/mbp1/pair-session.ts
new file mode 100644
index 00000000..dacadbea
--- /dev/null
+++ b/src/core/bridge/mbp1/pair-session.ts
@@ -0,0 +1,1055 @@
+// MBP1 first-pair session state machine
+// (docs/bridge-pairing-protocol.md §6, §7, §9.2, §11).
+//
+// This is where the reviewed mbp1 crypto modules become the §6 protocol: it
+// owns the `/pair` conversation from `pairHello` through `credentialCommitted`
+// and then hands the live AEAD endpoints to the wiring, which runs MDXP over
+// them. It is deliberately transport-neutral — every byte leaves through the
+// injected `sendText`/`sendBinary`/`close` — so `src/core/bridge/` keeps its
+// "only `web-socket-bridge-server.ts` may import `ws`" boundary.
+//
+// Four orderings here are load-bearing and are the whole point of the module.
+// Rearranging any of them looks harmless and is not:
+//
+// 1. **§7.3 admission runs before anything else touches state.** `admit()`
+// is called immediately after the version and origin checks and *before*
+// ticket validation, because `verifyNmTicket` consumes the ticket's
+// one-shot replay slot (§9.2's replay row). Validating first would burn a
+// legitimate ticket on a session that is then refused `busy`, and its
+// retry would abort as `replayed`.
+//
+// 2. **A ticket abort outranks identity.** A presented-but-broken ticket
+// ends the pairing even for a caller whose verified origin would
+// otherwise make it `official` (§9.2). The abort *reason* is never put on
+// the wire: each reason names a distinct §9.2 table row, so echoing it
+// would turn `pairError` into a row-identifying oracle that §11 forbids.
+//
+// 3. **An attempt is consumed the moment a run reaches `pakeA`.** §7.2
+// counts a run that ends without mutual confirmation *for any reason* —
+// including the socket simply closing — so the counter increments up
+// front and `dispose` never gives it back.
+//
+// 4. **The provisional credential is durable before `credentialOffer`
+// exists** (§6.7 step 1), and the commit is durable before
+// `credentialCommitted` (step 3).
+//
+// Every failure that is not a plain framing error must also be
+// *indistinguishable*: §11 permits `codeMismatch`/`attemptsRemaining` and
+// nothing else about which internal step failed. That is why a wrong `cA`, a
+// failed `ticketProof`, and an identity `K` all produce the identical frame.
+//
+// This module logs nothing at any level: the pairing code, `w`, the PAKE
+// intermediates, the traffic keys, the confirmation MACs, and the ticket are
+// all in scope here and all forbidden from any log (§11).
+
+import { Buffer } from 'node:buffer'
+import { timingSafeEqual } from 'node:crypto'
+import { utf8ToBytes } from '@noble/hashes/utils.js'
+import type { Browser } from '@shared/protocol/bridge'
+import type { CredentialPrincipal, IdentityTriState } from '../credential-store'
+import { fromBase64Url, toBase64Url } from './canonical'
+import { DIR_C2S, DIR_S2C, EnvelopeOpener, EnvelopeSealer } from './envelope'
+import {
+ confirmAFrameSchema,
+ confirmBFrameSchema,
+ credentialAckFrameSchema,
+ credentialCommittedFrameSchema,
+ credentialOfferFrameSchema,
+ frameEnvelopeSchema,
+ MAX_PRE_AUTH_FRAME_BYTES,
+ MBP1_PROTOCOL_VERSION,
+ nmTicketWireSchema,
+ type PairErrorCode,
+ type PairErrorFrame,
+ pairAcceptFrameSchema,
+ pairErrorFrameSchema,
+ pairHelloFrameSchema,
+ pakeAFrameSchema,
+ pakeBFrameSchema,
+} from './frames'
+import { formatPairingCode, generatePairingCode } from './pairing-code'
+import { deriveW } from './scrypt-w'
+import {
+ buildTT,
+ computePublicB,
+ confirmationMacs,
+ drawScalar,
+ EDWARDS25519_GROUP,
+ IdentityKError,
+ keySchedule,
+ pairTrafficKeys,
+ sharedFromB,
+} from './spake2-core'
+import {
+ type TicketReplayCache,
+ verifyNmTicket,
+ verifyTicketProofStrict,
+} from './ticket-verify'
+import { buildAad, buildAId, buildBId, ticketDigest } from './transcript'
+
+/** Attempts a single pairing code allows before it dies (§7.2). */
+const MAX_ATTEMPTS = 3
+
+/** Pairing-code lifetime from the moment the dialog is queued (§7.2). */
+const CODE_LIFETIME_MS = 120_000
+
+const CHROMIUM_ORIGIN_SCHEME = 'chrome-extension://'
+
+/**
+ * The §7.3 admission verdict. Structurally identical to
+ * `PairFloodControl.admit`, which is what the wiring passes through.
+ */
+export type PairAdmission =
+ | { ok: true }
+ | { ok: false; code: 'busy' | 'rateLimited' }
+
+/** Everything `pairHello` needs to describe the approval prompt (§5, §7.1). */
+export interface PairDialogRequest {
+ browser: Browser
+ claimedExtensionId: string
+ identity: IdentityTriState
+ /** The §7.1 **display** form, grouped `XXXX-XXXX`. The dialog renders it verbatim. */
+ code: string
+ pairingNonce: string
+ /**
+ * The verified `Origin` this `/pair` connection presented (§5) — never a
+ * self-reported field. The shell's dialog controller keys its per-key
+ * prompt dedup on this, never on `claimedExtensionId`: on Firefox the
+ * claimed id is self-reported, so keying on it would let one extension
+ * suppress another's prompt by claiming its id. Internal bookkeeping only —
+ * never surfaced to the renderer.
+ */
+ verifiedOrigin: string
+}
+
+/** A queued approval dialog. `dismissed` resolves when the user dismisses it. */
+export interface PairDialogHandle {
+ dismissed: Promise<void>
+ close(): void
+}
+
+/**
+ * The two `Mbp1CredentialStore` operations §6.7's first-pair flow needs.
+ * Narrowed to what this module calls so the session can be driven by a double
+ * without standing up a real on-disk store; the real store satisfies it
+ * structurally.
+ */
+export interface PairCredentialIssuer {
+ offerProvisional(
+ principal: CredentialPrincipal,
+ identity: IdentityTriState
+ ): Promise<{ credentialId: string; mutualKeyB64: string }>
+ commitFromPair(credentialId: string): Promise<void>
+}
+
+export interface PairSessionDeps {
+ /** Whether the demux's one-shot `?nonce=` consumption succeeded (§6.1). */
+ nonceValid: boolean
+ /** The exact ASCII nonce this `/pair` connection consumed; binds `w` and the AAD (§6.2, §6.4). */
+ pairNonce: string
+ /** The `Origin` header value, never a self-reported field (§5). */
+ verifiedOrigin: string
+ /**
+ * The browser this connection actually came from, derived by the wiring from
+ * the `Origin` scheme — never `pairHello.browser` (§5). `ReconnectSessionDeps`
+ * has always taken it this way; `/pair` did not, and the asymmetry was a
+ * defect: the credential principal stored the client's self-report while §8
+ * builds `RT` from the live connection, so a client whose two producers
+ * disagreed paired successfully and then failed **every** reconnect with the
+ * uniform `authFailed` it is forbidden to delete a credential over
+ * (§6.7/§12) — an unrecoverable pairing indistinguishable from a forged
+ * listener. `onPairHello` now rejects the mismatch instead.
+ */
+ browser: Browser
+ instanceId: string
+ serverGeneration: string
+ localToken: string
+ /** Reads the immutable allowlist **only** — never the NM manifest set (§5). */
+ isOfficialId(browser: Browser, id: string): boolean
+ credentials: PairCredentialIssuer
+ replay: TicketReplayCache
+ /**
+ * §7.3 dedup, global pending cap, and backoff. Called before any session
+ * state exists; a refusal is reported verbatim and ends the session.
+ */
+ admit(verifiedOrigin: string): PairAdmission
+ /**
+ * Frees the pending slot `admit` took. The session calls this **exactly
+ * once**, and only if its own `admit` succeeded, at the earliest of key
+ * confirmation, termination, or `dispose`.
+ *
+ * Both halves of that rule matter, because `PairFloodControl` keys its
+ * pending set by origin alone and cannot tell two sessions apart. Releasing
+ * a slot this session never took would free the slot held by whichever
+ * session *did* take it, and releasing twice would free the slot of a later
+ * session that re-admitted the same origin in between — either one raises
+ * the effective pending cap for an attacker that reconnects on a fixed
+ * origin.
+ *
+ * The caller still owns the §7.3 *failure counter*, which it can compute
+ * from `attemptCount` and whether `onAuthenticated` fired.
+ */
+ release(verifiedOrigin: string): void
+ queueDialog(args: PairDialogRequest): PairDialogHandle
+ sendText(json: object): void
+ sendBinary(frame: Uint8Array): void
+ close(reason: string): void
+ /**
+ * Fires once `credentialCommitted` is on the wire, handing over the *live*
+ * envelope endpoints — their sequence counters continue from the credential
+ * exchange, so MDXP must reuse these instances rather than derive new ones.
+ */
+ onAuthenticated(channel: {
+ sealer: EnvelopeSealer
+ opener: EnvelopeOpener
+ }): void
+ now(): number
+ random(n: number): Uint8Array
+}
+
+type PairState =
+ | 'awaiting-hello'
+ | 'awaiting-pakeA'
+ | 'awaiting-confirmA'
+ | 'channel-active'
+ | 'offer-sent'
+ | 'acked'
+ | 'committed'
+ | 'closed'
+
+/** Per-run SPAKE2 state. Discarded whenever a run ends, successfully or not (§6.3). */
+interface PakeRun {
+ tt: Uint8Array
+ ke: Uint8Array
+ expectedCA: Uint8Array
+ cB: Uint8Array
+}
+
+/** The `pairHello` facts every later step binds against. */
+interface HelloContext {
+ browser: Browser
+ claimedExtensionId: string
+ clientInstallationId: string
+ aId: Uint8Array
+ aad: Uint8Array
+ identity: IdentityTriState
+ /** The ticket's binding key when one was presented, else `null` (§6.5). */
+ ticketBindingPub: Uint8Array | null
+}
+
+export class PairSession {
+ private readonly deps: PairSessionDeps
+ private state: PairState = 'awaiting-hello'
+ private hello: HelloContext | null = null
+ private dialog: PairDialogHandle | null = null
+ private codeNormalized: string | null = null
+ private codeExpiresAt = 0
+ private w: bigint | null = null
+ private run: PakeRun | null = null
+ private channel: { sealer: EnvelopeSealer; opener: EnvelopeOpener } | null =
+ null
+ private offeredCredentialId: string | null = null
+ private confirmed = false
+ private attempts = 0
+ /** Whether this session's own `admit` took a §7.3 pending slot. */
+ private admitted = false
+ /** Whether that slot has already been given back. */
+ private released = false
+
+ constructor(deps: PairSessionDeps) {
+ this.deps = deps
+ }
+
+ /**
+ * Attempts this session has consumed (§7.2). Never decremented: the wiring
+ * reads it after the socket closes to decide whether the run counts toward
+ * the §7.3 global failure counter.
+ */
+ get attemptCount(): number {
+ return this.attempts
+ }
+
+ async handleText(raw: string, byteLength: number): Promise<void> {
+ if (this.state === 'closed' || this.state === 'committed') {
+ return
+ }
+ if (!this.deps.nonceValid) {
+ this.fail('expired')
+ return
+ }
+ if (this.channel !== null) {
+ // §10: a text frame after channel activation is a violation, and
+ // `pairError` is pre-channel only (§11) — so this closes without a frame.
+ this.terminate('textAfterChannelActivation')
+ return
+ }
+ if (byteLength > MAX_PRE_AUTH_FRAME_BYTES) {
+ this.violation()
+ return
+ }
+
+ let body: unknown
+ try {
+ body = JSON.parse(raw)
+ } catch {
+ this.violation()
+ return
+ }
+
+ const envelope = frameEnvelopeSchema.safeParse(body)
+ if (!envelope.success) {
+ this.violation()
+ return
+ }
+
+ switch (envelope.data.type) {
+ case 'pairHello':
+ this.onPairHello(body)
+ return
+ case 'pakeA':
+ this.onPakeA(body)
+ return
+ case 'confirmA':
+ await this.onConfirmA(body)
+ return
+ default:
+ this.violation()
+ }
+ }
+
+ async handleBinary(data: Uint8Array): Promise<void> {
+ if (this.state === 'closed' || this.state === 'committed') {
+ return
+ }
+ if (this.state !== 'offer-sent' || this.channel === null) {
+ this.terminate('unexpectedBinaryFrame')
+ return
+ }
+
+ let plaintext: Uint8Array
+ try {
+ plaintext = this.channel.opener.open(data)
+ } catch {
+ // §10: any gap, repeat, or GCM failure closes the connection immediately.
+ this.terminate('envelopeViolation')
+ return
+ }
+
+ let body: unknown
+ try {
+ body = JSON.parse(Buffer.from(plaintext).toString('utf-8'))
+ } catch {
+ this.terminate('protocolViolation')
+ return
+ }
+
+ const ack = credentialAckFrameSchema.safeParse(body)
+ if (!ack.success || ack.data.credentialId !== this.offeredCredentialId) {
+ this.terminate('protocolViolation')
+ return
+ }
+
+ this.state = 'acked'
+ try {
+ // §6.7 step 3: durable first, then the message that announces it.
+ await this.deps.credentials.commitFromPair(ack.data.credentialId)
+ } catch {
+ this.terminate('credentialCommitFailed')
+ return
+ }
+ // Captured into a local, not re-read from `this`: `sendSealed` can
+ // `terminate` (which nulls `this.channel`), and TypeScript keeps the
+ // narrowing above alive across that call.
+ const channel = this.channel
+ if (this.state !== 'acked' || channel === null) {
+ return
+ }
+
+ const committedFrame = { type: 'credentialCommitted' }
+ if (!credentialCommittedFrameSchema.safeParse(committedFrame).success) {
+ this.terminate('credentialCommittedInvalid')
+ return
+ }
+ // A failed seal has already closed the session. Continuing would set
+ // `state = 'committed'` on a closed session and hand the wiring a channel
+ // after its `close` callback had fired.
+ if (!this.sendSealed(committedFrame)) {
+ return
+ }
+ this.state = 'committed'
+ this.deps.onAuthenticated(channel)
+ }
+
+ /**
+ * Ends the session without writing to the socket: the peer is gone
+ * (`socket-closed`), the wiring's pre-auth deadline is closing it
+ * (`timeout`), or an explicit credential revoke is cancelling every
+ * same-Origin handshake (`access-revoked`). The consumed attempt count is
+ * deliberately preserved (§7.2).
+ */
+ dispose(_reason: 'socket-closed' | 'timeout' | 'access-revoked'): void {
+ if (this.state === 'closed') {
+ return
+ }
+ this.state = 'closed'
+ this.discardRunState()
+ try {
+ this.closeDialog()
+ } finally {
+ // A renderer/dialog teardown fault must not leak §7.3's pending slot.
+ this.releasePendingSlot()
+ }
+ }
+
+ // -- §6.1 pairHello ------------------------------------------------------
+
+ private onPairHello(body: unknown): void {
+ if (this.state !== 'awaiting-hello') {
+ this.violation()
+ return
+ }
+
+ const parsed = pairHelloFrameSchema.safeParse(body)
+ if (!parsed.success) {
+ this.violation()
+ return
+ }
+ const frame = parsed.data
+
+ if (frame.protocolVersion !== MBP1_PROTOCOL_VERSION) {
+ this.fail('unsupportedVersion')
+ return
+ }
+
+ // §5 forbids taking identity from a self-reported field, so `browser` must
+ // agree with what the `Origin` scheme already proved. Rejecting the
+ // mismatch here — before admission, so it costs no §7.3 slot — is what
+ // keeps every later use of `frame.browser` sound, and it moves an honest
+ // client's detection bug from "pairs, then fails every reconnect forever"
+ // to one abort it can actually diagnose.
+ if (frame.browser !== this.deps.browser) {
+ this.violation()
+ return
+ }
+
+ // §5: on Chromium the verified `Origin` host proves the extension id, so a
+ // `claimedExtensionId` that disagrees with it is a rejected pairing. On
+ // Firefox a `moz-extension://<UUID>` origin cannot be mapped to a Gecko
+ // id, so there is nothing to compare. Host-header validation is the
+ // wiring's, since the header never reaches this module.
+ //
+ // Branches on the **derived** browser, not the frame's. The check above
+ // makes them equal, so this is belt and braces — but this is the check
+ // §5's whole identity proof rests on, and while it keyed off the client's
+ // own field a Chromium caller could declare `firefox` to skip it entirely
+ // and then claim any `claimedExtensionId` it liked. Identity resolved to
+ // `unverified`, which renders the *claimed* id in the dialog, so the
+ // payoff was showing the user a recognizable id from an extension that
+ // was not it. Never let this predicate depend on a frame field again.
+ if (
+ this.deps.browser === 'chromium' &&
+ this.deps.verifiedOrigin !==
+ `${CHROMIUM_ORIGIN_SCHEME}${frame.claimedExtensionId}`
+ ) {
+ this.violation()
+ return
+ }
+
+ // §7.3, before any session state, ticket work, or dialog.
+ const admission = this.deps.admit(this.deps.verifiedOrigin)
+ if (!admission.ok) {
+ // No slot was taken, so `releasePendingSlot` must stay a no-op — the
+ // slot this was refused against belongs to another live session.
+ this.fail(admission.code)
+ return
+ }
+ this.admitted = true
+
+ const resolved = this.resolveIdentity(frame)
+ if (resolved === null) {
+ return
+ }
+
+ // `generatePairingCode`, `buildAad`, and `buildAId` all throw rather than
+ // encode something the peer could not reproduce — a short CSPRNG draw, or
+ // a non-ASCII `pairNonce`/`verifiedOrigin` reaching `enc()` (§2). None of
+ // those are the peer's fault in a way §11 has a code for, so they collapse
+ // into the generic `pairingFailed` instead of escaping the frame handler.
+ let code: string
+ let aad: Uint8Array
+ let aId: Uint8Array
+ try {
+ code = generatePairingCode(this.deps.random(5))
+ aad = buildAad(
+ MBP1_PROTOCOL_VERSION,
+ this.deps.pairNonce,
+ frame.ticketBindingKey === undefined
+ ? null
+ : fromBase64Url(frame.ticketBindingKey),
+ resolved.digest
+ )
+ aId = buildAId({
+ browser: frame.browser,
+ verifiedOrigin: this.deps.verifiedOrigin,
+ claimedExtensionId: frame.claimedExtensionId,
+ clientInstallationId: frame.clientInstallationId,
+ })
+ } catch {
+ this.fail('pairingFailed')
+ return
+ }
+
+ this.hello = {
+ browser: frame.browser,
+ claimedExtensionId: frame.claimedExtensionId,
+ clientInstallationId: frame.clientInstallationId,
+ aId,
+ aad,
+ identity: resolved.identity,
+ ticketBindingPub: resolved.bindingPub,
+ }
+ this.codeNormalized = code
+ this.codeExpiresAt = this.deps.now() + CODE_LIFETIME_MS
+
+ this.dialog = this.deps.queueDialog({
+ browser: frame.browser,
+ claimedExtensionId: frame.claimedExtensionId,
+ identity: resolved.identity,
+ code: formatPairingCode(code),
+ pairingNonce: this.deps.pairNonce,
+ verifiedOrigin: this.deps.verifiedOrigin,
+ })
+ this.dialog.dismissed.then(
+ () => this.onDismissed(),
+ () => this.onDismissed()
+ )
+
+ // §6.1: sent when the dialog is queued, and carrying no approval
+ // semantics — only key confirmation proves the user approved.
+ const acceptFrame = {
+ type: 'pairAccept',
+ protocolVersion: MBP1_PROTOCOL_VERSION,
+ instanceId: this.deps.instanceId,
+ }
+ if (!pairAcceptFrameSchema.safeParse(acceptFrame).success) {
+ this.terminate('pairAcceptInvalid')
+ return
+ }
+ this.state = 'awaiting-pakeA'
+ this.deps.sendText(acceptFrame)
+ }
+
+ /**
+ * Applies §9.2's outcome table and §5's tri-state. Returns `null` once the
+ * session has already been ended by an abort.
+ */
+ private resolveIdentity(frame: {
+ browser: Browser
+ claimedExtensionId: string
+ nmTicket?: unknown
+ ticketBindingKey?: string
+ }): {
+ identity: IdentityTriState
+ bindingPub: Uint8Array | null
+ digest: Uint8Array | null
+ } | null {
+ if (frame.nmTicket === undefined) {
+ // No ticket. §5's table has a genuinely empty cell here — a ticketless
+ // Chromium caller whose id is *not* allowlisted — so this reading is a
+ // controller ruling, not a transcription of the table. Do not "fix" it
+ // to `unverified` without re-reading the whole argument:
+ //
+ // - §5's `official` row admits TWO independent bases for a proven
+ // caller identity: "the Chromium verified `Origin` host, OR the
+ // `callerId` inside a valid NM attestation ticket". The Origin check
+ // above already rejected any Chromium session whose origin host
+ // disagrees with `claimedExtensionId`, so a surviving Chromium
+ // session has proven *which* extension it is, ticket or no ticket.
+ // - `official` vs `attested-non-official` is then purely "is that
+ // proven id on the immutable allowlist". Returning `unverified` for
+ // the not-allowlisted case would be internally inconsistent: the
+ // identical evidence would be strong enough to grant `official` when
+ // the id IS allowlisted, yet too weak to say "we know which
+ // extension this is" when it is not.
+ // - `unverified` is reserved for callers whose id genuinely cannot be
+ // established: Firefox's `moz-extension://<UUID>`, which maps to no
+ // Gecko id, and candidate-sweep peers.
+ // - The display consequence follows. `attested-non-official` shows the
+ // raw *proven* id, which on Chromium is truthful;`unverified` shows a
+ // raw *claimed* id with warning styling, understating what the server
+ // knows.
+ //
+ // §5's "native local processes can forge any Origin header" caveat does
+ // not change this: it applies equally to the `official` row and the spec
+ // accepts it there. The user-facing boundary is the pairing code, the
+ // approval dialog, and the global prompt caps (§7.3) — never the Origin.
+ return {
+ identity: this.originIdentity(frame),
+ bindingPub: null,
+ digest: null,
+ }
+ }
+
+ const verdict = verifyNmTicket(frame.nmTicket, {
+ localToken: this.deps.localToken,
+ serverGeneration: this.deps.serverGeneration,
+ nowMs: this.deps.now(),
+ helloBrowser: frame.browser,
+ helloClaimedExtensionId: frame.claimedExtensionId,
+ helloTicketBindingKey: this.helloBindingKey(frame),
+ replay: this.deps.replay,
+ })
+
+ if (verdict.kind === 'abort') {
+ // The reason identifies a §9.2 row and never reaches the wire (§11).
+ this.violation()
+ return null
+ }
+
+ const digest = this.digestOf(frame.nmTicket)
+ if (digest === null) {
+ // Unreachable: a non-abort verdict means ticket-verify's own strict
+ // schema already accepted this object. Fail generically rather than
+ // report a peer violation for what would be our own inconsistency.
+ this.fail('pairingFailed')
+ return null
+ }
+
+ // §9.2's two boundary rules, in order: a structural abort outranks
+ // identity and was handled above, and a surviving ticket's contribution
+ // can only *raise* an identity, never lower one. `attested` proves
+ // *which* caller it is — the immutable allowlist, and only the allowlist,
+ // then decides whether that caller is official (§5). A semantic
+ // downgrade contributes nothing, so identity falls back to what the
+ // verified origin alone establishes — the exact ticketless outcome, so a
+ // stale ticket is never worse for a caller than presenting none.
+ const identity: IdentityTriState =
+ verdict.kind === 'attested'
+ ? this.deps.isOfficialId(frame.browser, verdict.callerId)
+ ? 'official'
+ : 'attested-non-official'
+ : this.originIdentity(frame)
+
+ return { identity, bindingPub: verdict.deferredProof.bindingPub, digest }
+ }
+
+ /**
+ * §5's origin-only identity: what the connection proves with no ticket
+ * contribution. A surviving Chromium session's origin host already agrees
+ * with `claimedExtensionId` (checked before `resolveIdentity`), so the id
+ * is proven and the allowlist alone splits `official` from
+ * `attested-non-official`; a Firefox `moz-extension://<UUID>` origin maps
+ * to no Gecko id, so it stays `unverified`.
+ */
+ private originIdentity(frame: {
+ browser: Browser
+ claimedExtensionId: string
+ }): IdentityTriState {
+ return frame.browser === 'firefox'
+ ? 'unverified'
+ : this.deps.isOfficialId(frame.browser, frame.claimedExtensionId)
+ ? 'official'
+ : 'attested-non-official'
+ }
+
+ private helloBindingKey(frame: {
+ ticketBindingKey?: string
+ }): Uint8Array | null {
+ if (frame.ticketBindingKey === undefined) {
+ return null
+ }
+ try {
+ return fromBase64Url(frame.ticketBindingKey)
+ } catch {
+ return null
+ }
+ }
+
+ /** §6.4's `ticketDigest` over the parsed values of every ticket wire field. */
+ private digestOf(wire: unknown): Uint8Array | null {
+ const parsed = nmTicketWireSchema.safeParse(wire)
+ if (!parsed.success) {
+ return null
+ }
+ try {
+ return ticketDigest({
+ ...parsed.data,
+ bindingPub: fromBase64Url(parsed.data.bindingPub),
+ mac: fromBase64Url(parsed.data.mac),
+ })
+ } catch {
+ return null
+ }
+ }
+
+ // -- §6.3 pakeA ----------------------------------------------------------
+
+ private onPakeA(body: unknown): void {
+ if (this.state !== 'awaiting-pakeA' || this.hello === null) {
+ this.violation()
+ return
+ }
+ if (this.codeExpired()) {
+ this.expire()
+ return
+ }
+
+ // §7.2: the run has begun. Consuming the attempt here — before the schema
+ // parse, and never on its outcome — is what makes both a mid-run
+ // disconnect and a malformed frame unable to reclaim it. §7.2 lists
+ // "malformed point after `pakeA`" among the failures that count, so an
+ // unparseable `pakeA` spends an attempt just as a bad `cA` does.
+ this.attempts += 1
+
+ const parsed = pakeAFrameSchema.safeParse(body)
+ if (!parsed.success) {
+ this.violation()
+ return
+ }
+
+ let w: bigint
+ try {
+ w = this.deriveWOnce()
+ } catch {
+ // `w = 0` (§6.2) and a broken local invariant alike: generic, never a
+ // peer violation.
+ this.fail('pairingFailed')
+ return
+ }
+
+ let y: bigint
+ try {
+ y = drawScalar(EDWARDS25519_GROUP.order, this.deps.random)
+ } catch {
+ // `drawScalar` throws `ProtocolViolationError` for a short CSPRNG draw —
+ // a local fault, not the peer's. Reporting it as `protocolViolation`
+ // would misattribute our own failure.
+ this.fail('pairingFailed')
+ return
+ }
+
+ const pA = fromBase64Url(parsed.data.pA)
+ const pB = computePublicB(EDWARDS25519_GROUP, w, y)
+
+ let k: Uint8Array
+ try {
+ k = sharedFromB(EDWARDS25519_GROUP, w, y, pA)
+ } catch (error) {
+ if (error instanceof IdentityKError) {
+ // §6.3/§7.2: a failed attempt. It must be indistinguishable from a bad
+ // `cA` — otherwise it is an oracle for "your `pA` equalled `w·M`",
+ // i.e. for `w` itself.
+ this.failRun()
+ return
+ }
+ // A non-canonical or off-curve `pA` (§6.3).
+ this.violation()
+ return
+ }
+
+ const tt = buildTT(
+ this.hello.aId,
+ buildBId(this.deps.instanceId),
+ pA,
+ pB,
+ k,
+ w
+ )
+ const keys = keySchedule(tt, this.hello.aad)
+ const macs = confirmationMacs(keys.KcA, keys.KcB, tt)
+ this.run = { tt, ke: keys.Ke, expectedCA: macs.cA, cB: macs.cB }
+
+ const pakeBFrame = { type: 'pakeB', pB: toBase64Url(pB) }
+ if (!pakeBFrameSchema.safeParse(pakeBFrame).success) {
+ this.terminate('pakeBInvalid')
+ return
+ }
+ this.state = 'awaiting-confirmA'
+ this.deps.sendText(pakeBFrame)
+ }
+
+ // -- §6.5 confirmA -------------------------------------------------------
+
+ private async onConfirmA(body: unknown): Promise<void> {
+ const run = this.run
+ if (this.state !== 'awaiting-confirmA' || run === null || !this.hello) {
+ this.violation()
+ return
+ }
+ if (this.codeExpired()) {
+ this.expire()
+ return
+ }
+
+ const parsed = confirmAFrameSchema.safeParse(body)
+ if (!parsed.success) {
+ this.violation()
+ return
+ }
+
+ const bindingPub = this.hello.ticketBindingPub
+ const proof = parsed.data.ticketProof
+ // §6.5: `ticketProof` is required iff an `nmTicket` was presented. Its
+ // 64-byte length is a schema concern, so anything reaching here is either
+ // present-and-well-formed or absent.
+ if ((bindingPub !== null) !== (proof !== undefined)) {
+ this.violation()
+ return
+ }
+
+ const macOk = constantTimeEqual(
+ fromBase64Url(parsed.data.cA),
+ run.expectedCA
+ )
+ // `verifyTicketProofStrict`'s precondition holds: `bindingPub` is the key
+ // `verifyNmTicket` already accepted, which is why it does not re-validate.
+ // Both checks are evaluated before either is branched on, so which one
+ // failed is not observable.
+ const proofOk =
+ bindingPub === null ||
+ proof === undefined ||
+ verifyTicketProofStrict(bindingPub, run.tt, fromBase64Url(proof))
+
+ if (!macOk || !proofOk) {
+ this.failRun()
+ return
+ }
+
+ const confirmBFrame = { type: 'confirmB', cB: toBase64Url(run.cB) }
+ if (!confirmBFrameSchema.safeParse(confirmBFrame).success) {
+ this.terminate('confirmBInvalid')
+ return
+ }
+ this.confirmed = true
+ this.deps.sendText(confirmBFrame)
+
+ // §6.6: the channel is live in both directions from here on.
+ const { kC2S, kS2C } = pairTrafficKeys(run.ke)
+ this.channel = {
+ sealer: new EnvelopeSealer(kS2C, DIR_S2C),
+ opener: new EnvelopeOpener(kC2S, DIR_C2S),
+ }
+ this.state = 'channel-active'
+ this.run = null
+ this.w = null
+ this.codeNormalized = null
+ this.closeDialog()
+ // The dialog is gone, so the §7.3 pending slot is free — and it must be
+ // freed here rather than at `dispose`, or a long-lived paired connection
+ // would hold a slot for its whole lifetime and three of them would block
+ // every new dialog.
+ this.releasePendingSlot()
+
+ await this.issueCredential()
+ }
+
+ // -- §6.7 credential issuance -------------------------------------------
+
+ private async issueCredential(): Promise<void> {
+ if (this.hello === null) {
+ return
+ }
+ // `browser` comes from the derived value, not `this.hello.browser`, and the
+ // distinction is the whole point: §8 rebuilds `RT` from the **live**
+ // connection's browser on every reconnect, so a principal recorded from
+ // anything else fails the MAC forever. `onPairHello` proves the two are
+ // equal, so this is the same value either way — but it now comes from the
+ // same source the reconnect side reads, which is what makes that true by
+ // construction rather than by a check someone could later move.
+ const principal: CredentialPrincipal = {
+ browser: this.deps.browser,
+ verifiedOrigin: this.deps.verifiedOrigin,
+ clientInstallationId: this.hello.clientInstallationId,
+ }
+
+ let offer: { credentialId: string; mutualKeyB64: string }
+ try {
+ // §6.7 step 1: durable in state `provisional` *before* the offer exists.
+ offer = await this.deps.credentials.offerProvisional(
+ principal,
+ this.hello.identity
+ )
+ } catch {
+ this.terminate('credentialPersistFailed')
+ return
+ }
+ if (this.state !== 'channel-active' || this.channel === null) {
+ return
+ }
+
+ // Self-check the frame we are about to emit. `credentialOfferFrameSchema`
+ // asserts `mutualKey` is canonical base64url of exactly 32 bytes (§6.7),
+ // and nothing else verifies that the store honours it: `PairCredentialIssuer`
+ // is a structural interface, so `tsc` proves the method shapes match but
+ // says nothing about the *contents* of the string it returns. Validating
+ // here turns a store-contract violation into a local, diagnosable close
+ // instead of a malformed frame the peer has to reject, and makes
+ // `frames.ts`'s "one schema describes both directions" claim literally true.
+ const offerFrame = {
+ type: 'credentialOffer',
+ credentialId: offer.credentialId,
+ mutualKey: offer.mutualKeyB64,
+ }
+ if (!credentialOfferFrameSchema.safeParse(offerFrame).success) {
+ this.terminate('credentialOfferInvalid')
+ return
+ }
+
+ this.offeredCredentialId = offer.credentialId
+ this.state = 'offer-sent'
+ if (!this.sendSealed(offerFrame)) {
+ return
+ }
+ }
+
+ // -- shared helpers ------------------------------------------------------
+
+ private deriveWOnce(): bigint {
+ if (this.w === null) {
+ if (this.codeNormalized === null) {
+ throw new Error('no live pairing code')
+ }
+ // Derived lazily so scrypt is paid only by a session that actually
+ // attempts, and cached so all three runs share one `w` per code (§6.2).
+ this.w = deriveW(
+ this.codeNormalized,
+ this.deps.pairNonce,
+ EDWARDS25519_GROUP.order
+ )
+ }
+ return this.w
+ }
+
+ private codeExpired(): boolean {
+ return this.deps.now() >= this.codeExpiresAt
+ }
+
+ /** A run that reached `pakeA` and ended without mutual confirmation (§7.2). */
+ private failRun(): void {
+ this.run = null
+ if (this.attempts >= MAX_ATTEMPTS) {
+ this.fail('rateLimited')
+ return
+ }
+ if (
+ !this.sendPairError({
+ type: 'pairError',
+ code: 'codeMismatch',
+ attemptsRemaining: MAX_ATTEMPTS - this.attempts,
+ })
+ ) {
+ return
+ }
+ this.state = 'awaiting-pakeA'
+ }
+
+ private onDismissed(): void {
+ if (this.confirmed || this.state === 'closed') {
+ return
+ }
+ this.fail('aborted')
+ }
+
+ private expire(): void {
+ this.fail('expired')
+ }
+
+ private violation(): void {
+ this.fail('protocolViolation')
+ }
+
+ private fail(code: PairErrorCode): void {
+ if (!this.sendPairError({ type: 'pairError', code })) {
+ return
+ }
+ this.terminate(code)
+ }
+
+ /**
+ * Validates a `pairError` frame against its own schema before it reaches
+ * the peer. `pairError`'s fields are locally constructed — a typed `code`
+ * and a computed `attemptsRemaining` — but validating it too is what makes
+ * `frames.ts`'s "one schema describes both directions" claim total rather
+ * than true for six frames out of seven. A frame that fails here is our own
+ * construction bug, and there is nowhere left to report it: a second
+ * `pairError` could be just as broken, so this terminates silently instead
+ * of recursing into `fail`.
+ */
+ private sendPairError(frame: PairErrorFrame): boolean {
+ if (!pairErrorFrameSchema.safeParse(frame).success) {
+ this.terminate('pairErrorFrameInvalid')
+ return false
+ }
+ this.deps.sendText(frame)
+ return true
+ }
+
+ private terminate(reason: string): void {
+ if (this.state === 'closed') {
+ return
+ }
+ this.state = 'closed'
+ this.discardRunState()
+ this.closeDialog()
+ this.releasePendingSlot()
+ this.deps.close(reason)
+ }
+
+ /**
+ * Closes the approval dialog at most once. `PairDialogHandle.close` is not
+ * required to be idempotent, and the close sites overlap: key confirmation
+ * closes the dialog, and the later `dispose` on socket close would close it
+ * a second time.
+ */
+ private closeDialog(): void {
+ const dialog = this.dialog
+ if (dialog === null) {
+ return
+ }
+ this.dialog = null
+ dialog.close()
+ }
+
+ /** See `PairSessionDeps.release`: at most once, and only for a slot we took. */
+ private releasePendingSlot(): void {
+ if (!this.admitted || this.released) {
+ return
+ }
+ this.released = true
+ this.deps.release(this.deps.verifiedOrigin)
+ }
+
+ /** §6.3: all PAKE state is in-memory only and dies with the run. */
+ private discardRunState(): void {
+ this.run = null
+ this.w = null
+ this.codeNormalized = null
+ this.channel = null
+ }
+
+ /**
+ * Seals and sends one frame, reporting whether it actually went out. A
+ * `false` return means the session is **already closed** — every caller must
+ * return immediately rather than continue on the assumption that the frame
+ * was delivered.
+ */
+ private sendSealed(frame: object): boolean {
+ if (this.channel === null) {
+ return false
+ }
+ try {
+ this.deps.sendBinary(
+ this.channel.sealer.seal(utf8ToBytes(JSON.stringify(frame)))
+ )
+ return true
+ } catch {
+ this.terminate('envelopeSealFailed')
+ return false
+ }
+ }
+}
+
+/** Constant-time equality; lengths are public, so an early length exit leaks nothing (§2). */
+function constantTimeEqual(a: Uint8Array, b: Uint8Array): boolean {
+ return a.length === b.length && timingSafeEqual(a, b)
+}
diff --git a/src/core/bridge/mbp1/pairing-code.test.ts b/src/core/bridge/mbp1/pairing-code.test.ts
new file mode 100644
index 00000000..e75e8141
--- /dev/null
+++ b/src/core/bridge/mbp1/pairing-code.test.ts
@@ -0,0 +1,85 @@
+import { randomBytes } from 'node:crypto'
+import { describe, expect, it } from 'vitest'
+import { loadMbp1Vectors } from './__tests__/vectors'
+import { ProtocolViolationError } from './canonical'
+import {
+ CROCKFORD_ALPHABET,
+ formatPairingCode,
+ generatePairingCode,
+ normalizePairingCode,
+} from './pairing-code'
+
+const v = loadMbp1Vectors()
+
+describe('pairing code format (§7.1)', () => {
+ it('has the 32-symbol Crockford alphabet excluding I, L, O, U', () => {
+ expect(CROCKFORD_ALPHABET).toBe('0123456789ABCDEFGHJKMNPQRSTVWXYZ')
+ expect(CROCKFORD_ALPHABET.length).toBe(32)
+ })
+
+ it('generates all-zero bits as the first symbol repeated 8 times', () => {
+ expect(generatePairingCode(new Uint8Array(5))).toBe('00000000')
+ })
+
+ it('generates all-one bits as the last symbol repeated 8 times', () => {
+ expect(
+ generatePairingCode(new Uint8Array([0xff, 0xff, 0xff, 0xff, 0xff]))
+ ).toBe('ZZZZZZZZ')
+ })
+
+ it('splits 40 bits into eight big-endian 5-bit groups', () => {
+ expect(
+ generatePairingCode(new Uint8Array([0b00001000, 0b01000010, 0, 0, 0]))
+ ).toBe('11100000')
+ })
+
+ it('rejects a shorter-than-5-byte input', () => {
+ expect(() => generatePairingCode(new Uint8Array(4))).toThrow(
+ ProtocolViolationError
+ )
+ })
+
+ it('rejects a longer-than-5-byte input', () => {
+ expect(() => generatePairingCode(new Uint8Array(6))).toThrow(
+ ProtocolViolationError
+ )
+ })
+
+ it('formats a code with a hyphen after the 4th symbol', () => {
+ expect(formatPairingCode('MTX7K2Q9')).toBe('MTX7-K2Q9')
+ })
+
+ it('normalizes by stripping hyphens/spaces and uppercasing', () => {
+ expect(normalizePairingCode('mtx7-k2q9 ')).toBe('MTX7K2Q9')
+ })
+
+ it('remaps O, I, L in both cases (O→0, I→1, L→1)', () => {
+ // 'iI-oO-lL7K' -> strip '-' -> 'iIoOlL7K' -> upper -> 'IIOOLL7K'
+ // -> O:0, I:1, L:1 -> '1100117K' (independently hand-verified against
+ // §7.1, not derived from the code under test)
+ expect(normalizePairingCode('iI-oO-lL7K')).toBe('1100117K')
+ })
+
+ it('matches the spake2[0] vector linkage', () => {
+ expect(normalizePairingCode(v.spake2[0].inputs.codeDisplayed)).toBe(
+ v.spake2[0].inputs.codeNormalized
+ )
+ })
+
+ it('rejects a symbol outside the Crockford alphabet', () => {
+ expect(normalizePairingCode('MTXU-K2Q9')).toBeNull()
+ })
+
+ it('rejects fewer than 8 symbols', () => {
+ expect(normalizePairingCode('MTX7K2Q')).toBeNull()
+ })
+
+ it('rejects more than 8 symbols after normalization', () => {
+ expect(normalizePairingCode('MTX7-K2Q99')).toBeNull()
+ })
+
+ it('round-trips generate -> format -> normalize', () => {
+ const code = generatePairingCode(randomBytes(5))
+ expect(normalizePairingCode(formatPairingCode(code))).toBe(code)
+ })
+})
diff --git a/src/core/bridge/mbp1/pairing-code.ts b/src/core/bridge/mbp1/pairing-code.ts
new file mode 100644
index 00000000..870fc58a
--- /dev/null
+++ b/src/core/bridge/mbp1/pairing-code.ts
@@ -0,0 +1,61 @@
+// MBP1 pairing code format (docs/bridge-pairing-protocol.md §7.1).
+//
+// The pairing code IS the PAKE password: it MUST never be logged, in either
+// generated, displayed, or normalized form.
+
+import { os2ip, ProtocolViolationError } from './canonical'
+
+/** Crockford base32 alphabet (32 symbols; excludes I, L, O, U) (§7.1). */
+export const CROCKFORD_ALPHABET = '0123456789ABCDEFGHJKMNPQRSTVWXYZ'
+
+/**
+ * Draws an 8-symbol pairing code from 40 bits of CSPRNG entropy: the 40 bits
+ * split big-endian into eight 5-bit groups, each indexing the alphabet (§7.1).
+ * `random5` must be exactly 5 bytes — a shorter or longer input would
+ * silently shift or discard entropy rather than produce the full 40-bit
+ * value the protocol assumes, so an off-length input throws instead.
+ */
+export function generatePairingCode(random5: Uint8Array): string {
+ if (random5.length !== 5) {
+ throw new ProtocolViolationError(
+ 'generatePairingCode requires exactly 5 bytes of entropy'
+ )
+ }
+
+ const bits = os2ip(random5)
+ let code = ''
+ for (let group = 7; group >= 0; group--) {
+ const index = Number((bits >> BigInt(group * 5)) & 0b11111n)
+ code += CROCKFORD_ALPHABET[index]
+ }
+ return code
+}
+
+/** Display grouping: an already-uppercase 8-symbol code as `XXXX-XXXX` (§7.1). */
+export function formatPairingCode(code: string): string {
+ return `${code.slice(0, 4)}-${code.slice(4, 8)}`
+}
+
+/**
+ * Input normalization (§7.1): strip ASCII hyphens and spaces, uppercase, map
+ * `O→0`, `I→1`, `L→1`, then require exactly 8 alphabet symbols. Returns
+ * `null` if normalization does not yield exactly 8 valid symbols.
+ */
+export function normalizePairingCode(input: string): string | null {
+ const normalized = input
+ .replace(/[- ]/g, '')
+ .toUpperCase()
+ .replace(/O/g, '0')
+ .replace(/I/g, '1')
+ .replace(/L/g, '1')
+
+ if (normalized.length !== 8) {
+ return null
+ }
+ for (const symbol of normalized) {
+ if (!CROCKFORD_ALPHABET.includes(symbol)) {
+ return null
+ }
+ }
+ return normalized
+}
diff --git a/src/core/bridge/mbp1/pre-auth-table.test.ts b/src/core/bridge/mbp1/pre-auth-table.test.ts
new file mode 100644
index 00000000..d18ebd5f
--- /dev/null
+++ b/src/core/bridge/mbp1/pre-auth-table.test.ts
@@ -0,0 +1,142 @@
+import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
+import { PreAuthTable } from './pre-auth-table'
+
+describe('PreAuthTable (§4)', () => {
+ beforeEach(() => {
+ vi.useFakeTimers()
+ })
+
+ afterEach(() => {
+ vi.useRealTimers()
+ })
+
+ it('enforces the total cap, rejecting admission once full', () => {
+ const onDeadline = vi.fn()
+ const table = new PreAuthTable<string>({
+ cap: 2,
+ deadlineMs: 10_000,
+ onDeadline,
+ })
+ expect(table.admit('a')).toBe(true)
+ expect(table.admit('b')).toBe(true)
+ expect(table.admit('c')).toBe(false)
+ expect(table.size()).toBe(2)
+ })
+
+ it('fires onDeadline for an entry that never settles', () => {
+ const onDeadline = vi.fn()
+ const table = new PreAuthTable<string>({
+ cap: 5,
+ deadlineMs: 10_000,
+ onDeadline,
+ })
+ table.admit('conn-1')
+ vi.advanceTimersByTime(10_000)
+ expect(onDeadline).toHaveBeenCalledExactlyOnceWith('conn-1')
+ expect(table.size()).toBe(0)
+ })
+
+ it('settle before the deadline removes the entry and cancels its timer', () => {
+ const onDeadline = vi.fn()
+ const table = new PreAuthTable<string>({
+ cap: 5,
+ deadlineMs: 10_000,
+ onDeadline,
+ })
+ table.admit('conn-1')
+ table.settle('conn-1')
+ expect(table.size()).toBe(0)
+
+ // No leaked timer: advancing well past the deadline must not fire it.
+ vi.advanceTimersByTime(60_000)
+ expect(onDeadline).not.toHaveBeenCalled()
+ })
+
+ it('settle frees a cap slot for a new admission', () => {
+ const onDeadline = vi.fn()
+ const table = new PreAuthTable<string>({
+ cap: 1,
+ deadlineMs: 10_000,
+ onDeadline,
+ })
+ expect(table.admit('conn-1')).toBe(true)
+ expect(table.admit('conn-2')).toBe(false)
+ table.settle('conn-1')
+ expect(table.admit('conn-2')).toBe(true)
+ })
+
+ it('rejects re-admitting an already-admitted entry without leaking its timer', () => {
+ const onDeadline = vi.fn()
+ const table = new PreAuthTable<string>({
+ cap: 5,
+ deadlineMs: 10_000,
+ onDeadline,
+ })
+ expect(table.admit('conn-1')).toBe(true)
+ // Advance between the two admits so a leaked timer would fire at a
+ // DIFFERENT instant than the original: admitting twice at the same fake
+ // instant cannot tell a leaked timer from a wrong return value.
+ vi.advanceTimersByTime(4_000)
+ expect(table.admit('conn-1')).toBe(false)
+ expect(table.size()).toBe(1)
+
+ // The original timer must still be the one armed -- not orphaned by a
+ // second admit() silently overwriting its slot.
+ vi.advanceTimersByTime(6_000)
+ expect(onDeadline).toHaveBeenCalledExactlyOnceWith('conn-1')
+ vi.advanceTimersByTime(60_000)
+ expect(onDeadline).toHaveBeenCalledTimes(1)
+ })
+
+ it('clear() cancels every armed deadline and empties the table', () => {
+ const onDeadline = vi.fn()
+ const table = new PreAuthTable<string>({
+ cap: 5,
+ deadlineMs: 10_000,
+ onDeadline,
+ })
+ table.admit('conn-1')
+ table.admit('conn-2')
+
+ table.clear()
+
+ expect(table.size()).toBe(0)
+ vi.advanceTimersByTime(60_000)
+ expect(onDeadline).not.toHaveBeenCalled()
+ })
+
+ it('takeWhere synchronously removes matching entries and cancels only their deadlines', () => {
+ const onDeadline = vi.fn()
+ const table = new PreAuthTable<string>({
+ cap: 5,
+ deadlineMs: 10_000,
+ onDeadline,
+ })
+ table.admit('same-origin-pair')
+ table.admit('other-origin-pair')
+ table.admit('same-origin-reconnect')
+
+ expect(table.takeWhere((entry) => entry.startsWith('same-origin'))).toEqual(
+ ['same-origin-pair', 'same-origin-reconnect']
+ )
+ expect(table.size()).toBe(1)
+
+ vi.advanceTimersByTime(10_000)
+ expect(onDeadline).toHaveBeenCalledExactlyOnceWith('other-origin-pair')
+ })
+
+ it('settle on an entry that already hit its deadline is a harmless no-op', () => {
+ const onDeadline = vi.fn()
+ const table = new PreAuthTable<string>({
+ cap: 5,
+ deadlineMs: 10_000,
+ onDeadline,
+ })
+ table.admit('conn-1')
+ vi.advanceTimersByTime(10_000)
+ expect(onDeadline).toHaveBeenCalledExactlyOnceWith('conn-1')
+
+ expect(() => table.settle('conn-1')).not.toThrow()
+ expect(onDeadline).toHaveBeenCalledTimes(1)
+ })
+})
diff --git a/src/core/bridge/mbp1/pre-auth-table.ts b/src/core/bridge/mbp1/pre-auth-table.ts
new file mode 100644
index 00000000..e735e1d0
--- /dev/null
+++ b/src/core/bridge/mbp1/pre-auth-table.ts
@@ -0,0 +1,124 @@
+// MBP1 pre-authentication connection table (docs/bridge-pairing-protocol.md
+// §4).
+//
+// "Connections on either route live in a pre-authentication table with hard
+// deadlines and caps until MBP1 completes; they never enter the live-session
+// map and cannot evict an authenticated session." This table IS that
+// pre-authentication table: a generic holding area, keyed by cap and a
+// per-entry deadline, that a caller uses in place of inserting an
+// unauthenticated connection directly into a session map. It replaced an
+// attach path that disposed a same-key session the moment a socket upgraded,
+// which let an unauthenticated `/pair` connection kick a live authenticated
+// one; a connection admitted here can never evict anything, because it was
+// never in the live-session map to begin with.
+//
+// This module logs nothing at any level (§11): entries are typically
+// connection/session identifiers.
+
+export interface PreAuthTableOptions<T> {
+ /** Total number of entries this table admits at once. */
+ cap: number
+ /** How long an admitted entry may stay before `onDeadline` fires. */
+ deadlineMs: number
+ /** Injectable clock (tests). Default `Date.now`. */
+ now?: () => number
+ /** Fires for an entry that neither settles nor is otherwise removed
+ * before its deadline. */
+ onDeadline: (entry: T) => void
+}
+
+interface Slot {
+ timer: ReturnType<typeof setTimeout>
+ admittedAt: number
+}
+
+export class PreAuthTable<T> {
+ private readonly cap: number
+ private readonly deadlineMs: number
+ private readonly now: () => number
+ private readonly onDeadline: (entry: T) => void
+ private readonly entries = new Map<T, Slot>()
+
+ constructor(opts: PreAuthTableOptions<T>) {
+ this.cap = opts.cap
+ this.deadlineMs = opts.deadlineMs
+ this.now = opts.now ?? Date.now
+ this.onDeadline = opts.onDeadline
+ }
+
+ /** Admits `entry`, arming its deadline timer. Returns `false` without any
+ * mutation if the table is already at capacity, or if `entry` is already
+ * admitted — re-admitting the same key would otherwise overwrite its slot
+ * without clearing the prior timer, leaking it. */
+ admit(entry: T): boolean {
+ if (this.entries.has(entry) || this.entries.size >= this.cap) {
+ return false
+ }
+ const timer = setTimeout(() => this.fireDeadline(entry), this.deadlineMs)
+ timer.unref?.()
+ this.entries.set(entry, { timer, admittedAt: this.now() })
+ return true
+ }
+
+ /** Removes `entry` from the table — because it authenticated or its
+ * connection closed — and cancels its deadline timer so it can never fire
+ * for a settled entry. A no-op for an entry that already left the table
+ * (settled twice, or its deadline already fired). */
+ settle(entry: T): void {
+ const slot = this.entries.get(entry)
+ if (!slot) {
+ return
+ }
+ clearTimeout(slot.timer)
+ this.entries.delete(entry)
+ }
+
+ /**
+ * Atomically removes every entry selected by `predicate`, cancelling each
+ * deadline and returning the removed entries for caller-owned teardown.
+ *
+ * The selection and removal deliberately happen in one synchronous pass:
+ * security-sensitive callers (for example credential revocation) must be
+ * able to establish that no matching pre-authentication session remains
+ * admitted before they begin asynchronous durable work.
+ */
+ takeWhere(predicate: (entry: T) => boolean): T[] {
+ const taken: T[] = []
+ for (const [entry, slot] of this.entries) {
+ if (!predicate(entry)) continue
+ clearTimeout(slot.timer)
+ this.entries.delete(entry)
+ taken.push(entry)
+ }
+ return taken
+ }
+
+ /**
+ * Cancels every deadline timer and empties the table — the shutdown path.
+ *
+ * Pre-authentication entries never enter the live-session map, so a server
+ * teardown that only drains sessions would leave these timers armed to fire
+ * `onDeadline` into an already-stopped server. `unref()` keeps them from
+ * holding the process open but does not stop them running while it lives, so
+ * a re-enable cycle would otherwise inherit the previous instance's timers.
+ */
+ clear(): void {
+ for (const slot of this.entries.values()) {
+ clearTimeout(slot.timer)
+ }
+ this.entries.clear()
+ }
+
+ /** Current number of admitted, not-yet-settled entries. */
+ size(): number {
+ return this.entries.size
+ }
+
+ private fireDeadline(entry: T): void {
+ if (!this.entries.has(entry)) {
+ return
+ }
+ this.entries.delete(entry)
+ this.onDeadline(entry)
+ }
+}
diff --git a/src/core/bridge/mbp1/reconnect-mac.test.ts b/src/core/bridge/mbp1/reconnect-mac.test.ts
new file mode 100644
index 00000000..89c3849a
--- /dev/null
+++ b/src/core/bridge/mbp1/reconnect-mac.test.ts
@@ -0,0 +1,62 @@
+import { describe, expect, it } from 'vitest'
+import { bytesToHex, hexToBytes, loadMbp1Vectors } from './__tests__/vectors'
+import {
+ buildRT,
+ reconnectMacClient,
+ reconnectMacServer,
+ reconnectTrafficKeys,
+} from './reconnect-mac'
+
+const v = loadMbp1Vectors()
+const { inputs, expected } = v.reconnect
+
+const mutualKey = hexToBytes(inputs.mutualKey)
+const s = hexToBytes(inputs.S)
+const c = hexToBytes(inputs.C)
+
+describe('reconnect transcript RT (§8)', () => {
+ it('reproduces RT from the reconnect vector inputs', () => {
+ const rt = buildRT({
+ protocolVersion: 1,
+ credentialId: inputs.credentialId,
+ browser: inputs.browser,
+ verifiedOrigin: inputs.verifiedOrigin,
+ instanceId: inputs.instanceId,
+ })
+ expect(bytesToHex(rt)).toBe(expected.RT)
+ })
+})
+
+describe('reconnect MACs (§8)', () => {
+ const rt = hexToBytes(expected.RT)
+
+ it('reproduces macClient with the "MBP1-R/c" label', () => {
+ const mac = reconnectMacClient(mutualKey, s, c, rt)
+ expect(bytesToHex(mac)).toBe(expected.macClient)
+ })
+
+ it('reproduces macServer with the "MBP1-R/s" label', () => {
+ const mac = reconnectMacServer(mutualKey, s, c, rt)
+ expect(bytesToHex(mac)).toBe(expected.macServer)
+ })
+
+ it('changes macClient when browser is misbound (misbinding property)', () => {
+ const tamperedRt = buildRT({
+ protocolVersion: 1,
+ credentialId: inputs.credentialId,
+ browser: 'firefox',
+ verifiedOrigin: inputs.verifiedOrigin,
+ instanceId: inputs.instanceId,
+ })
+ const mac = reconnectMacClient(mutualKey, s, c, tamperedRt)
+ expect(bytesToHex(mac)).not.toBe(expected.macClient)
+ })
+})
+
+describe('reconnect traffic keys (§8)', () => {
+ it('reproduces kC2S and kS2C', () => {
+ const { kC2S, kS2C } = reconnectTrafficKeys(mutualKey, s, c)
+ expect(bytesToHex(kC2S)).toBe(expected.trafficC2S)
+ expect(bytesToHex(kS2C)).toBe(expected.trafficS2C)
+ })
+})
diff --git a/src/core/bridge/mbp1/reconnect-mac.ts b/src/core/bridge/mbp1/reconnect-mac.ts
new file mode 100644
index 00000000..06c34182
--- /dev/null
+++ b/src/core/bridge/mbp1/reconnect-mac.ts
@@ -0,0 +1,83 @@
+// MBP1 reconnect transcript, MACs, and traffic keys
+// (docs/bridge-pairing-protocol.md §8).
+//
+// Reconnect binds a stored credential's `mutualKey` to the live connection's
+// `browser`/`verifiedOrigin` through the challenge–response MAC: any
+// disagreement between the stored principal and the live one changes the
+// transcript and desynchronizes the MAC (misbinding property). The `"MBP1-R/c"`
+// and `"MBP1-R/s"` MAC labels and the `"MBP1-traffic-c2s"`/`"-s2c"` HKDF info
+// strings are distinct from §6.6's pair-session labels by design — reconnect
+// key material must never collide with first-pair key material even if an
+// implementation reused the same `mutualKey`/`Ke` accidentally.
+//
+// Everything here is secret-adjacent (`mutualKey`, the MACs, the traffic
+// keys), so this module logs nothing at any level.
+
+import { utf8ToBytes } from '@noble/hashes/utils.js'
+import { concatBytes, enc, encU32BE, hkdf32, hmacSha256 } from './canonical'
+
+const RT_LABEL = 'MBP1/reconnect/v1'
+const MAC_CLIENT_LABEL = utf8ToBytes('MBP1-R/c')
+const MAC_SERVER_LABEL = utf8ToBytes('MBP1-R/s')
+const TRAFFIC_INFO_C2S = utf8ToBytes('MBP1-traffic-c2s')
+const TRAFFIC_INFO_S2C = utf8ToBytes('MBP1-traffic-s2c')
+
+/**
+ * `RT = enc("MBP1/reconnect/v1") ‖ encU32BE(protocolVersion) ‖ enc(credentialId)
+ * ‖ enc(browser) ‖ enc(verifiedOrigin) ‖ enc(instanceId)` (§8).
+ */
+export function buildRT(f: {
+ protocolVersion: number
+ credentialId: string
+ browser: string
+ verifiedOrigin: string
+ instanceId: string
+}): Uint8Array {
+ return concatBytes(
+ enc(RT_LABEL),
+ encU32BE(f.protocolVersion),
+ enc(f.credentialId),
+ enc(f.browser),
+ enc(f.verifiedOrigin),
+ enc(f.instanceId)
+ )
+}
+
+/**
+ * `macClient = HMAC-SHA-256(mutualKey, "MBP1-R/c" ‖ S ‖ C ‖ RT)` (§8). The
+ * label is the raw ASCII bytes prepended directly, not `enc()`-wrapped.
+ */
+export function reconnectMacClient(
+ mutualKey: Uint8Array,
+ s: Uint8Array,
+ c: Uint8Array,
+ rt: Uint8Array
+): Uint8Array {
+ return hmacSha256(mutualKey, concatBytes(MAC_CLIENT_LABEL, s, c, rt))
+}
+
+/** `macServer = HMAC-SHA-256(mutualKey, "MBP1-R/s" ‖ S ‖ C ‖ RT)` (§8). */
+export function reconnectMacServer(
+ mutualKey: Uint8Array,
+ s: Uint8Array,
+ c: Uint8Array,
+ rt: Uint8Array
+): Uint8Array {
+ return hmacSha256(mutualKey, concatBytes(MAC_SERVER_LABEL, s, c, rt))
+}
+
+/**
+ * `kC2S = HKDF-SHA-256(ikm=mutualKey, salt=S‖C, info="MBP1-traffic-c2s", L=32)`
+ * and `kS2C` the same with `"MBP1-traffic-s2c"` (§8).
+ */
+export function reconnectTrafficKeys(
+ mutualKey: Uint8Array,
+ s: Uint8Array,
+ c: Uint8Array
+): { kC2S: Uint8Array; kS2C: Uint8Array } {
+ const salt = concatBytes(s, c)
+ return {
+ kC2S: hkdf32(mutualKey, salt, TRAFFIC_INFO_C2S),
+ kS2C: hkdf32(mutualKey, salt, TRAFFIC_INFO_S2C),
+ }
+}
diff --git a/src/core/bridge/mbp1/reconnect-rate-limit.test.ts b/src/core/bridge/mbp1/reconnect-rate-limit.test.ts
new file mode 100644
index 00000000..053d699a
--- /dev/null
+++ b/src/core/bridge/mbp1/reconnect-rate-limit.test.ts
@@ -0,0 +1,142 @@
+import { describe, expect, it } from 'vitest'
+import { ReconnectRateLimit } from './reconnect-rate-limit'
+
+const ORIGIN_A = 'chrome-extension://aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
+const ORIGIN_B = 'chrome-extension://bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb'
+
+/** A controllable clock, so nothing here depends on wall time. */
+function fakeClock(start = 1_000_000) {
+ const state = { t: start }
+ return {
+ now: () => state.t,
+ advance: (ms: number) => {
+ state.t += ms
+ },
+ }
+}
+
+describe('ReconnectRateLimit (§8)', () => {
+ it('admits up to the per-origin quota and refuses the next attempt', () => {
+ const clock = fakeClock()
+ const limit = new ReconnectRateLimit({
+ perOriginPerMinute: 3,
+ globalPerMinute: 100,
+ now: clock.now,
+ })
+
+ expect([1, 2, 3].map(() => limit.admit(ORIGIN_A))).toEqual([
+ true,
+ true,
+ true,
+ ])
+ expect(limit.admit(ORIGIN_A)).toBe(false)
+ })
+
+ it('meters each origin separately', () => {
+ const clock = fakeClock()
+ const limit = new ReconnectRateLimit({
+ perOriginPerMinute: 2,
+ globalPerMinute: 100,
+ now: clock.now,
+ })
+
+ limit.admit(ORIGIN_A)
+ limit.admit(ORIGIN_A)
+ expect(limit.admit(ORIGIN_A)).toBe(false)
+ // B's own budget is untouched by A exhausting its quota.
+ expect(limit.admit(ORIGIN_B)).toBe(true)
+ })
+
+ it('refuses past the global quota even for an origin with budget left', () => {
+ const clock = fakeClock()
+ const limit = new ReconnectRateLimit({
+ perOriginPerMinute: 10,
+ globalPerMinute: 2,
+ now: clock.now,
+ })
+
+ expect(limit.admit(ORIGIN_A)).toBe(true)
+ expect(limit.admit(ORIGIN_B)).toBe(true)
+ // The rotating-origin dodge: a fresh origin gets no free pass, because the
+ // global counter is what a local process rotating its Origin cannot escape.
+ expect(
+ limit.admit('chrome-extension://cccccccccccccccccccccccccccccccc')
+ ).toBe(false)
+ })
+
+ it('is a rolling window, not a fixed bucket', () => {
+ const clock = fakeClock()
+ const limit = new ReconnectRateLimit({
+ perOriginPerMinute: 2,
+ globalPerMinute: 100,
+ now: clock.now,
+ })
+
+ limit.admit(ORIGIN_A)
+ clock.advance(30_000)
+ limit.admit(ORIGIN_A)
+ expect(limit.admit(ORIGIN_A)).toBe(false)
+
+ // 31s later the FIRST attempt has aged out but the second has not, so
+ // exactly one slot frees up — a fixed 60s bucket would have freed both.
+ clock.advance(31_000)
+ expect(limit.admit(ORIGIN_A)).toBe(true)
+ expect(limit.admit(ORIGIN_A)).toBe(false)
+ })
+
+ it('does not let a refused attempt deepen the throttle', () => {
+ const clock = fakeClock()
+ const limit = new ReconnectRateLimit({
+ perOriginPerMinute: 1,
+ globalPerMinute: 100,
+ now: clock.now,
+ })
+
+ limit.admit(ORIGIN_A)
+ // Hammer while throttled. If a refusal recorded a timestamp, the window
+ // would keep sliding forward and the origin could never recover.
+ for (let i = 0; i < 20; i++) {
+ expect(limit.admit(ORIGIN_A)).toBe(false)
+ clock.advance(1_000)
+ }
+ // 21s after the single admitted attempt, it has NOT yet aged out...
+ expect(limit.admit(ORIGIN_A)).toBe(false)
+ // ...and at 60s it has.
+ clock.advance(40_000)
+ expect(limit.admit(ORIGIN_A)).toBe(true)
+ })
+
+ it('bounds tracked origins by the global quota, not by origins seen', () => {
+ const clock = fakeClock()
+ const limit = new ReconnectRateLimit({
+ perOriginPerMinute: 10,
+ globalPerMinute: 5,
+ now: clock.now,
+ })
+
+ // A local process can put any Origin it likes on a /v1 upgrade, so this is
+ // the shape of a real attack, not a hypothetical.
+ for (let i = 0; i < 500; i++) {
+ limit.admit(`chrome-extension://rotating${i}`)
+ }
+ expect(limit.trackedOrigins()).toBeLessThanOrEqual(5)
+ })
+
+ it('forgets an origin once its attempts age out', () => {
+ const clock = fakeClock()
+ const limit = new ReconnectRateLimit({
+ perOriginPerMinute: 10,
+ globalPerMinute: 100,
+ now: clock.now,
+ })
+
+ limit.admit(ORIGIN_A)
+ expect(limit.trackedOrigins()).toBe(1)
+
+ clock.advance(61_000)
+ limit.admit(ORIGIN_B)
+ // A's bucket is gone, not merely empty — otherwise a long-running instance
+ // accumulates one entry per origin it has ever seen.
+ expect(limit.trackedOrigins()).toBe(1)
+ })
+})
diff --git a/src/core/bridge/mbp1/reconnect-rate-limit.ts b/src/core/bridge/mbp1/reconnect-rate-limit.ts
new file mode 100644
index 00000000..43b335a5
--- /dev/null
+++ b/src/core/bridge/mbp1/reconnect-rate-limit.ts
@@ -0,0 +1,117 @@
+// MBP1 reconnect rate limiting (docs/bridge-pairing-protocol.md §8).
+//
+// §8 closes with "Reconnect attempts are rate-limited per verified origin and
+// globally." This is that limiter, and it is deliberately NOT `PairFloodControl`:
+//
+// - §7.3's counter bounds how often the USER is interrupted by an approval
+// dialog, and escalates a lockout on failed code guesses. Its unit is a
+// pairing attempt that a human saw.
+// - This one bounds how fast a peer may attempt the §8 challenge–response at
+// all. No human is involved and nothing is being guessed: the credential
+// either verifies or it does not.
+//
+// Sharing counters between the two would be a bug in both directions. Reconnect
+// churn — which a flaky network produces on its own — would drive the pairing
+// lockout and stop the user from pairing a new browser; and a run of failed
+// code entries would block a legitimate extension from reconnecting.
+//
+// `PreAuthTable` is not a substitute either. Its cap of 32 bounds CONCURRENT
+// pre-authentication sockets, which is a concurrency bound, not a rate: a peer
+// that connects, fails the challenge, and disconnects holds no slot and can
+// repeat immediately, as fast as the loop allows.
+//
+// This module logs nothing at any level (§11): verified origins are the only
+// input, and they identify a principal.
+
+/** Per-verified-origin attempts per rolling minute. */
+const DEFAULT_PER_ORIGIN_PER_MINUTE = 10
+
+/**
+ * Global attempts per rolling minute.
+ *
+ * It MUST stay above the per-origin allowance, and the gap is what stops one
+ * noisy origin from starving every other: a single origin is cut off by its own
+ * quota long before it can consume the global budget. A `perOrigin` raised to
+ * meet `global` would reintroduce exactly that starvation.
+ */
+const DEFAULT_GLOBAL_PER_MINUTE = 60
+
+const RATE_WINDOW_MS = 60_000
+
+export interface ReconnectRateLimitOptions {
+ /** Per-verified-origin attempts per rolling minute. Default 10 (§8). */
+ perOriginPerMinute?: number
+ /** Global attempts per rolling minute. Default 60 (§8). */
+ globalPerMinute?: number
+ /** Injectable clock (tests). Default `Date.now`. */
+ now?: () => number
+}
+
+export class ReconnectRateLimit {
+ private readonly perOriginPerMinute: number
+ private readonly globalPerMinute: number
+ private readonly now: () => number
+
+ /** Attempt timestamps within the current window, across all origins. */
+ private globalAttempts: number[] = []
+ /** Per-verified-origin attempt timestamps within the current window. */
+ private readonly originAttempts = new Map<string, number[]>()
+
+ constructor(opts: ReconnectRateLimitOptions = {}) {
+ this.perOriginPerMinute =
+ opts.perOriginPerMinute ?? DEFAULT_PER_ORIGIN_PER_MINUTE
+ this.globalPerMinute = opts.globalPerMinute ?? DEFAULT_GLOBAL_PER_MINUTE
+ this.now = opts.now ?? Date.now
+ }
+
+ /**
+ * Admits one `/v1` attempt from `verifiedOrigin`, or refuses it.
+ *
+ * A refusal records nothing, so a peer being throttled cannot deepen its own
+ * throttle — and, with the stale-bucket prune below, that is also what bounds
+ * memory here. At most `globalPerMinute` timestamps can exist in the window,
+ * so at most that many origin buckets can be non-empty. This matters more
+ * than it looks: unlike a browser page, a local process can put any `Origin`
+ * it likes on a `/v1` upgrade, so a per-origin map that grew on every
+ * *attempt* would be an unbounded allocation driven by a rotating attacker.
+ */
+ admit(verifiedOrigin: string): boolean {
+ const t = this.now()
+ const cutoff = t - RATE_WINDOW_MS
+
+ this.globalAttempts = this.globalAttempts.filter((ts) => ts > cutoff)
+ if (this.globalAttempts.length >= this.globalPerMinute) {
+ return false
+ }
+
+ const recent = (this.originAttempts.get(verifiedOrigin) ?? []).filter(
+ (ts) => ts > cutoff
+ )
+ if (recent.length >= this.perOriginPerMinute) {
+ this.originAttempts.set(verifiedOrigin, recent)
+ return false
+ }
+
+ this.globalAttempts.push(t)
+ recent.push(t)
+ this.originAttempts.set(verifiedOrigin, recent)
+ this.pruneStaleOrigins(cutoff)
+ return true
+ }
+
+ /** Number of origins currently holding at least one in-window attempt.
+ * Exposed so a test can pin the memory bound described on `admit`. */
+ trackedOrigins(): number {
+ return this.originAttempts.size
+ }
+
+ /** Drops buckets whose every timestamp has aged out. Without this an origin
+ * seen once would occupy an entry forever. */
+ private pruneStaleOrigins(cutoff: number): void {
+ for (const [origin, times] of this.originAttempts) {
+ if (times.length === 0 || times[times.length - 1] <= cutoff) {
+ this.originAttempts.delete(origin)
+ }
+ }
+ }
+}
diff --git a/src/core/bridge/mbp1/reconnect-session.test.ts b/src/core/bridge/mbp1/reconnect-session.test.ts
new file mode 100644
index 00000000..02651418
--- /dev/null
+++ b/src/core/bridge/mbp1/reconnect-session.test.ts
@@ -0,0 +1,985 @@
+import { Buffer } from 'node:buffer'
+import { randomBytes } from 'node:crypto'
+import type { Browser } from '@shared/protocol/bridge'
+import { describe, expect, it, vi } from 'vitest'
+import type { StoredCredential } from '../credential-store'
+import { fromBase64Url, toBase64Url } from './canonical'
+import { DIR_C2S, DIR_S2C, EnvelopeOpener, EnvelopeSealer } from './envelope'
+import type {
+ PairErrorFrame,
+ ReconnectAcceptFrame,
+ ReconnectChallengeFrame,
+} from './frames'
+import { MBP1_PROTOCOL_VERSION } from './frames'
+import {
+ buildRT,
+ reconnectMacClient,
+ reconnectMacServer,
+ reconnectTrafficKeys,
+} from './reconnect-mac'
+import type {
+ ReconnectCredentialAuthenticator,
+ ReconnectSessionDeps,
+} from './reconnect-session'
+import { ReconnectSession } from './reconnect-session'
+
+const INSTANCE_ID = '0d9c2b7a-4e6f-4a1b-8c3d-2e5f7a9b1c4d'
+const EXTENSION_ID = 'ibpkjhgpbidfmbmomagmldcdlpbmchgi'
+const ORIGIN = `chrome-extension://${EXTENSION_ID}`
+const ATTACKER_ORIGIN = 'chrome-extension://aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
+const CREDENTIAL_ID = 'a5e3c9f0-1b2d-4e6f-8a9c-0d1e2f3a4b5c'
+const T0 = 1_755_600_000_000
+
+// ---------------------------------------------------------------------------
+// Test harness
+// ---------------------------------------------------------------------------
+
+interface Deferred<T> {
+ promise: Promise<T>
+ resolve: (value: T) => void
+}
+
+function deferred<T>(): Deferred<T> {
+ let resolve!: (value: T) => void
+ const promise = new Promise<T>((r) => {
+ resolve = r
+ })
+ return { promise, resolve }
+}
+
+function makeCredential(
+ overrides: Partial<StoredCredential> = {}
+): StoredCredential {
+ return {
+ credentialId: CREDENTIAL_ID,
+ mutualKeyB64: toBase64Url(new Uint8Array(32).fill(9)),
+ principal: {
+ browser: 'chromium',
+ verifiedOrigin: ORIGIN,
+ clientInstallationId: 'install-0000-1111-2222',
+ },
+ state: 'provisional',
+ identity: 'official',
+ createdAt: T0,
+ committedAt: null,
+ predecessorId: null,
+ ...overrides,
+ }
+}
+
+interface HarnessOptions {
+ verifiedOrigin?: string
+ browser?: Browser
+ instanceId?: string
+ now?: () => number
+ random?: (n: number) => Uint8Array
+ findForAuth?: (id: string) => StoredCredential | null
+ /** When set, `promoteOnReconnect` resolves only once the test resolves this. */
+ gatePromote?: Deferred<void>
+ promoteOnReconnect?: (id: string) => Promise<void>
+}
+
+function makeHarness(opts: HarnessOptions = {}) {
+ const sent: Record<string, unknown>[] = []
+ const closed: string[] = []
+ const order: string[] = []
+ let authenticated: {
+ channel: { sealer: EnvelopeSealer; opener: EnvelopeOpener }
+ credential: StoredCredential
+ } | null = null
+
+ const findForAuth = vi.fn(opts.findForAuth ?? (() => null))
+ const promoteOnReconnect = vi.fn(async (id: string): Promise<void> => {
+ order.push('promoteOnReconnect:start')
+ // Always yields before reporting completion — otherwise the §6.7
+ // ordering assertion would hold even for a caller that never awaited
+ // the durable promotion (the exact vacuous-test shape Task 16's own
+ // mutation evidence warned about).
+ await (opts.gatePromote ? opts.gatePromote.promise : Promise.resolve())
+ if (opts.promoteOnReconnect) {
+ await opts.promoteOnReconnect(id)
+ }
+ order.push('promoteOnReconnect:resolved')
+ })
+
+ const credentials: ReconnectCredentialAuthenticator = {
+ findForAuth,
+ promoteOnReconnect,
+ }
+
+ const deps: ReconnectSessionDeps = {
+ verifiedOrigin: opts.verifiedOrigin ?? ORIGIN,
+ browser: opts.browser ?? 'chromium',
+ instanceId: opts.instanceId ?? INSTANCE_ID,
+ credentials,
+ sendText: (json: object) => {
+ order.push('sendText')
+ sent.push(json as Record<string, unknown>)
+ },
+ close: (reason: string) => {
+ closed.push(reason)
+ },
+ onAuthenticated: (channel, credential) => {
+ order.push('onAuthenticated')
+ authenticated = { channel, credential }
+ },
+ now: opts.now ?? (() => T0),
+ random: opts.random ?? ((n: number) => new Uint8Array(randomBytes(n))),
+ }
+
+ const session = new ReconnectSession(deps)
+
+ return {
+ session,
+ deps,
+ sent,
+ closed,
+ order,
+ findForAuth,
+ promoteOnReconnect,
+ get authenticated() {
+ return authenticated
+ },
+ text(frame: object): Promise<void> {
+ const raw = JSON.stringify(frame)
+ return session.handleText(raw, Buffer.byteLength(raw))
+ },
+ raw(raw: string, byteLength?: number): Promise<void> {
+ return session.handleText(raw, byteLength ?? Buffer.byteLength(raw))
+ },
+ lastSent(): Record<string, unknown> {
+ const frame = sent.at(-1)
+ if (!frame) {
+ throw new Error('no frame sent')
+ }
+ return frame
+ },
+ error(): PairErrorFrame {
+ return this.lastSent() as unknown as PairErrorFrame
+ },
+ }
+}
+
+type Harness = ReturnType<typeof makeHarness>
+
+/** Spies on the private constant-time MAC verify seam without weakening its type elsewhere. */
+function spyOnVerify(session: ReconnectSession) {
+ return vi.spyOn(
+ session as unknown as {
+ verifyClientMac: (...args: unknown[]) => boolean
+ },
+ 'verifyClientMac'
+ )
+}
+
+function challengeFrom(h: Harness): { S: Uint8Array } {
+ const challenge = h.lastSent() as unknown as ReconnectChallengeFrame
+ expect(challenge.type).toBe('reconnectChallenge')
+ return { S: fromBase64Url(challenge.S) }
+}
+
+// ---------------------------------------------------------------------------
+// Client double — the extension (A) side, built from the same reviewed
+// `reconnect-mac.ts` module, so a passing exchange proves the two roles
+// interoperate rather than proving the server agrees with itself.
+// ---------------------------------------------------------------------------
+
+interface ClientArgs {
+ mutualKey: Uint8Array
+ S: Uint8Array
+ credentialId: string
+ browser: string
+ verifiedOrigin: string
+ instanceId: string
+ c?: Uint8Array
+}
+
+function buildResponse(args: ClientArgs): {
+ frame: Record<string, unknown>
+ C: Uint8Array
+} {
+ const c = args.c ?? new Uint8Array(randomBytes(32))
+ const rt = buildRT({
+ protocolVersion: MBP1_PROTOCOL_VERSION,
+ credentialId: args.credentialId,
+ browser: args.browser,
+ verifiedOrigin: args.verifiedOrigin,
+ instanceId: args.instanceId,
+ })
+ const mac = reconnectMacClient(args.mutualKey, args.S, c, rt)
+ return {
+ frame: {
+ type: 'reconnectResponse',
+ credentialId: args.credentialId,
+ C: toBase64Url(c),
+ mac: toBase64Url(mac),
+ },
+ C: c,
+ }
+}
+
+function verifyAccept(
+ args: ClientArgs & { C: Uint8Array; presented: ReconnectAcceptFrame }
+): boolean {
+ const rt = buildRT({
+ protocolVersion: MBP1_PROTOCOL_VERSION,
+ credentialId: args.credentialId,
+ browser: args.browser,
+ verifiedOrigin: args.verifiedOrigin,
+ instanceId: args.instanceId,
+ })
+ const expected = reconnectMacServer(args.mutualKey, args.S, args.C, rt)
+ return toBase64Url(expected) === args.presented.mac
+}
+
+// ---------------------------------------------------------------------------
+
+describe('ReconnectSession (§8)', () => {
+ describe('scenario 1: happy path — a provisional credential is promoted', () => {
+ it('emits reconnectChallenge with a 32-byte S on start()', () => {
+ const h = makeHarness()
+ h.session.start()
+ const challenge = h.lastSent() as unknown as ReconnectChallengeFrame
+ expect(challenge).toEqual({
+ type: 'reconnectChallenge',
+ protocolVersion: 1,
+ S: challenge.S,
+ })
+ expect(fromBase64Url(challenge.S)).toHaveLength(32)
+ })
+
+ it('awaits promoteOnReconnect before sending reconnectAccept, derives interoperable traffic keys, and hands over the promoted credential', async () => {
+ const mutualKey = new Uint8Array(32).fill(9)
+ const provisional = makeCredential({
+ state: 'provisional',
+ mutualKeyB64: toBase64Url(mutualKey),
+ })
+ const promoted = makeCredential({
+ state: 'committed',
+ mutualKeyB64: toBase64Url(mutualKey),
+ committedAt: T0 + 1,
+ })
+ const gatePromote = deferred<void>()
+ let findCalls = 0
+ const h = makeHarness({
+ gatePromote,
+ findForAuth: (id) => {
+ if (id !== CREDENTIAL_ID) {
+ return null
+ }
+ findCalls += 1
+ return findCalls === 1 ? provisional : promoted
+ },
+ })
+ h.session.start()
+ const { S } = challengeFrom(h)
+ const { frame, C } = buildResponse({
+ mutualKey,
+ S,
+ credentialId: CREDENTIAL_ID,
+ browser: 'chromium',
+ verifiedOrigin: ORIGIN,
+ instanceId: INSTANCE_ID,
+ })
+
+ const pending = h.text(frame)
+
+ // The promote is in flight; nothing beyond the initial challenge may
+ // be on the wire yet, and the handover must not have happened.
+ expect(h.order).toContain('promoteOnReconnect:start')
+ expect(h.order).not.toContain('promoteOnReconnect:resolved')
+ expect(h.sent.some((f) => f.type === 'reconnectAccept')).toBe(false)
+ expect(h.authenticated).toBeNull()
+
+ gatePromote.resolve()
+ await pending
+
+ expect(h.order.indexOf('promoteOnReconnect:resolved')).toBeLessThan(
+ h.order.lastIndexOf('sendText')
+ )
+ const accept = h.lastSent() as unknown as ReconnectAcceptFrame
+ expect(accept.type).toBe('reconnectAccept')
+ expect(
+ verifyAccept({
+ mutualKey,
+ S,
+ C,
+ credentialId: CREDENTIAL_ID,
+ browser: 'chromium',
+ verifiedOrigin: ORIGIN,
+ instanceId: INSTANCE_ID,
+ presented: accept,
+ })
+ ).toBe(true)
+ expect(h.promoteOnReconnect).toHaveBeenCalledExactlyOnceWith(
+ CREDENTIAL_ID
+ )
+ expect(h.authenticated).not.toBeNull()
+ expect(h.authenticated?.credential).toBe(promoted)
+ expect(h.authenticated?.credential.state).toBe('committed')
+
+ // Traffic keys derived per §8, proven by round-tripping through a
+ // client-side opener/sealer built independently from the same vectors.
+ const { kC2S, kS2C } = reconnectTrafficKeys(mutualKey, S, C)
+ const clientOpener = new EnvelopeOpener(kS2C, DIR_S2C)
+ const serverSealed = h.authenticated?.channel.sealer.seal(
+ Buffer.from('server->client probe')
+ )
+ expect(serverSealed).toBeDefined()
+ expect(
+ Buffer.from(clientOpener.open(serverSealed as Uint8Array)).toString()
+ ).toBe('server->client probe')
+
+ const clientSealer = new EnvelopeSealer(kC2S, DIR_C2S)
+ const clientSealed = clientSealer.seal(
+ Buffer.from('client->server probe')
+ )
+ expect(
+ Buffer.from(
+ h.authenticated?.channel.opener.open(clientSealed) as Uint8Array
+ ).toString()
+ ).toBe('client->server probe')
+ })
+ })
+
+ describe('scenario 2: unknown credentialId and a bad MAC are indistinguishable (§8, §11)', () => {
+ it('rejects an unknown credentialId with a single authFailed after exactly one verify call', async () => {
+ const mutualKey = new Uint8Array(32).fill(9)
+ const h = makeHarness({ findForAuth: () => null })
+ h.session.start()
+ const { S } = challengeFrom(h)
+ const { frame } = buildResponse({
+ mutualKey,
+ S,
+ credentialId: 'this-credential-id-does-not-exist',
+ browser: 'chromium',
+ verifiedOrigin: ORIGIN,
+ instanceId: INSTANCE_ID,
+ })
+ const verifySpy = spyOnVerify(h.session)
+
+ await h.text(frame)
+
+ expect(verifySpy).toHaveBeenCalledTimes(1)
+ // The whole emitted sequence, not just the last frame: reconnectChallenge
+ // then exactly one pairError, nothing else — same shape scenario 2's
+ // other test must also produce.
+ expect(h.sent).toHaveLength(2)
+ expect(h.error()).toEqual({ type: 'pairError', code: 'authFailed' })
+ expect(h.closed).toEqual(['authFailed'])
+ expect(h.authenticated).toBeNull()
+ expect(h.promoteOnReconnect).not.toHaveBeenCalled()
+ })
+
+ it('rejects a known credentialId with a wrong MAC through the exact same single-verify-call, single authFailed shape', async () => {
+ const realKey = new Uint8Array(32).fill(9)
+ const wrongKey = new Uint8Array(32).fill(3)
+ const credential = makeCredential({
+ state: 'committed',
+ committedAt: T0 - 1,
+ mutualKeyB64: toBase64Url(realKey),
+ })
+ const h = makeHarness({
+ findForAuth: (id) => (id === CREDENTIAL_ID ? credential : null),
+ })
+ h.session.start()
+ const { S } = challengeFrom(h)
+ const { frame } = buildResponse({
+ mutualKey: wrongKey,
+ S,
+ credentialId: CREDENTIAL_ID,
+ browser: 'chromium',
+ verifiedOrigin: ORIGIN,
+ instanceId: INSTANCE_ID,
+ })
+ const verifySpy = spyOnVerify(h.session)
+
+ await h.text(frame)
+
+ expect(verifySpy).toHaveBeenCalledTimes(1)
+ expect(h.sent).toHaveLength(2)
+ expect(h.error()).toEqual({ type: 'pairError', code: 'authFailed' })
+ expect(h.closed).toEqual(['authFailed'])
+ expect(h.authenticated).toBeNull()
+ expect(h.promoteOnReconnect).not.toHaveBeenCalled()
+ })
+ })
+
+ describe('scenario 3: a provisional credential (no predecessor) is reconnect-valid and is promoted (§6.7)', () => {
+ it('authenticates a first-reconnect provisional exactly as it would a rotation provisional', async () => {
+ const mutualKey = new Uint8Array(32).fill(5)
+ const provisional = makeCredential({
+ state: 'provisional',
+ mutualKeyB64: toBase64Url(mutualKey),
+ predecessorId: null,
+ identity: 'unverified',
+ })
+ const promoted = makeCredential({
+ ...provisional,
+ state: 'committed',
+ committedAt: T0 + 5,
+ })
+ let calls = 0
+ const h = makeHarness({
+ findForAuth: (id) => {
+ if (id !== CREDENTIAL_ID) {
+ return null
+ }
+ calls += 1
+ return calls === 1 ? provisional : promoted
+ },
+ })
+ h.session.start()
+ const { S } = challengeFrom(h)
+ const { frame } = buildResponse({
+ mutualKey,
+ S,
+ credentialId: CREDENTIAL_ID,
+ browser: 'chromium',
+ verifiedOrigin: ORIGIN,
+ instanceId: INSTANCE_ID,
+ })
+
+ await h.text(frame)
+
+ expect(h.promoteOnReconnect).toHaveBeenCalledExactlyOnceWith(
+ CREDENTIAL_ID
+ )
+ expect(h.authenticated?.credential.state).toBe('committed')
+ expect(h.lastSent().type).toBe('reconnectAccept')
+ })
+ })
+
+ describe('an already-committed credential skips promotion entirely', () => {
+ it('sends reconnectAccept without ever calling promoteOnReconnect', async () => {
+ const mutualKey = new Uint8Array(32).fill(2)
+ const committed = makeCredential({
+ state: 'committed',
+ committedAt: T0 - 1000,
+ mutualKeyB64: toBase64Url(mutualKey),
+ })
+ const h = makeHarness({
+ findForAuth: (id) => (id === CREDENTIAL_ID ? committed : null),
+ })
+ h.session.start()
+ const { S } = challengeFrom(h)
+ const { frame } = buildResponse({
+ mutualKey,
+ S,
+ credentialId: CREDENTIAL_ID,
+ browser: 'chromium',
+ verifiedOrigin: ORIGIN,
+ instanceId: INSTANCE_ID,
+ })
+
+ await h.text(frame)
+
+ expect(h.promoteOnReconnect).not.toHaveBeenCalled()
+ expect(h.lastSent().type).toBe('reconnectAccept')
+ expect(h.authenticated?.credential).toBe(committed)
+ })
+ })
+
+ describe('scenario 4: 10 s challenge-response deadline (§8)', () => {
+ it('treats a response arriving at/after the 10 s deadline as authFailed even though it is otherwise valid', async () => {
+ const mutualKey = new Uint8Array(32).fill(9)
+ const credential = makeCredential({
+ state: 'committed',
+ committedAt: T0 - 1,
+ mutualKeyB64: toBase64Url(mutualKey),
+ })
+ let clock = T0
+ const h = makeHarness({
+ now: () => clock,
+ findForAuth: (id) => (id === CREDENTIAL_ID ? credential : null),
+ })
+ h.session.start()
+ const { S } = challengeFrom(h)
+ const { frame } = buildResponse({
+ mutualKey,
+ S,
+ credentialId: CREDENTIAL_ID,
+ browser: 'chromium',
+ verifiedOrigin: ORIGIN,
+ instanceId: INSTANCE_ID,
+ })
+
+ clock = T0 + 10_000
+ await h.text(frame)
+
+ expect(h.error()).toEqual({ type: 'pairError', code: 'authFailed' })
+ expect(h.closed).toEqual(['authFailed'])
+ expect(h.promoteOnReconnect).not.toHaveBeenCalled()
+ expect(h.authenticated).toBeNull()
+ })
+
+ it('fails authFailed when the durable promotion outlives the deadline, instead of accepting late', async () => {
+ const mutualKey = new Uint8Array(32).fill(9)
+ const provisional = makeCredential({
+ state: 'provisional',
+ mutualKeyB64: toBase64Url(mutualKey),
+ })
+ let clock = T0
+ const h = makeHarness({
+ now: () => clock,
+ findForAuth: (id) => (id === CREDENTIAL_ID ? provisional : null),
+ // The store transaction is durable but slow: it resolves only after
+ // the §8 deadline has already passed.
+ promoteOnReconnect: async () => {
+ clock = T0 + 10_000
+ },
+ })
+ h.session.start()
+ const { S } = challengeFrom(h)
+ const { frame } = buildResponse({
+ mutualKey,
+ S,
+ credentialId: CREDENTIAL_ID,
+ browser: 'chromium',
+ verifiedOrigin: ORIGIN,
+ instanceId: INSTANCE_ID,
+ })
+
+ clock = T0 + 9_999
+ await h.text(frame)
+
+ // §6.7 durable-first is untouched: the promotion itself still ran…
+ expect(h.promoteOnReconnect).toHaveBeenCalledExactlyOnceWith(
+ CREDENTIAL_ID
+ )
+ // …but the exchange missed §8's 10 s deadline, so no accept, no
+ // channel, and the same uniform failure a late response gets.
+ expect(h.sent.some((f) => f.type === 'reconnectAccept')).toBe(false)
+ expect(h.error()).toEqual({ type: 'pairError', code: 'authFailed' })
+ expect(h.closed).toEqual(['authFailed'])
+ expect(h.authenticated).toBeNull()
+ })
+
+ it('accepts a response that arrives just under the 10 s deadline', async () => {
+ const mutualKey = new Uint8Array(32).fill(9)
+ const credential = makeCredential({
+ state: 'committed',
+ committedAt: T0 - 1,
+ mutualKeyB64: toBase64Url(mutualKey),
+ })
+ let clock = T0
+ const h = makeHarness({
+ now: () => clock,
+ findForAuth: (id) => (id === CREDENTIAL_ID ? credential : null),
+ })
+ h.session.start()
+ const { S } = challengeFrom(h)
+ const { frame } = buildResponse({
+ mutualKey,
+ S,
+ credentialId: CREDENTIAL_ID,
+ browser: 'chromium',
+ verifiedOrigin: ORIGIN,
+ instanceId: INSTANCE_ID,
+ })
+
+ clock = T0 + 9_999
+ await h.text(frame)
+
+ expect(h.lastSent().type).toBe('reconnectAccept')
+ expect(h.authenticated).not.toBeNull()
+ })
+
+ it("documents the silent-client boundary: dispose('timeout') leaves the session terminal with no frame beyond the challenge, and a subsequently-arriving response is refused", async () => {
+ // This module cannot itself close the transport when the client never
+ // responds at all — there is no injected timer, only `deps.now()` — so
+ // that case is Task 18's `PreAuthTable` real-timer responsibility
+ // (mirrors `PairSession`'s own reactive-only 120 s code lifetime). What
+ // this test pins is the boundary: once the wiring's deadline fires and
+ // calls `dispose('timeout')`, this session is provably inert from then
+ // on, emitting nothing further and accepting nothing further, even if a
+ // response arrives on the wire after all.
+ const mutualKey = new Uint8Array(32).fill(9)
+ const credential = makeCredential({
+ state: 'committed',
+ committedAt: T0 - 1,
+ mutualKeyB64: toBase64Url(mutualKey),
+ })
+ const h = makeHarness({
+ findForAuth: (id) => (id === CREDENTIAL_ID ? credential : null),
+ })
+ h.session.start()
+ const { S } = challengeFrom(h)
+ const { frame } = buildResponse({
+ mutualKey,
+ S,
+ credentialId: CREDENTIAL_ID,
+ browser: 'chromium',
+ verifiedOrigin: ORIGIN,
+ instanceId: INSTANCE_ID,
+ })
+
+ h.session.dispose('timeout')
+
+ expect(h.sent).toHaveLength(1) // only the initial reconnectChallenge
+ expect(h.closed).toEqual([]) // dispose itself never closes (Task 18's job)
+
+ await h.text(frame)
+
+ expect(h.sent).toHaveLength(1)
+ expect(h.closed).toEqual([])
+ expect(h.authenticated).toBeNull()
+ })
+ })
+
+ describe('scenario 5: misbinding — RT is built from the live connection, never the client claim (§8)', () => {
+ it('rejects a stolen key even when the attacker recomputes a valid MAC for its own live Origin', async () => {
+ const mutualKey = new Uint8Array(32).fill(9)
+ const credential = makeCredential({
+ state: 'committed',
+ committedAt: T0 - 1,
+ mutualKeyB64: toBase64Url(mutualKey),
+ principal: {
+ browser: 'chromium',
+ verifiedOrigin: ORIGIN,
+ clientInstallationId: 'install-0000-1111-2222',
+ },
+ })
+ const h = makeHarness({
+ verifiedOrigin: ATTACKER_ORIGIN,
+ findForAuth: (id) => (id === CREDENTIAL_ID ? credential : null),
+ })
+ const verify = spyOnVerify(h.session)
+ h.session.start()
+ const { S } = challengeFrom(h)
+ const { frame } = buildResponse({
+ mutualKey,
+ S,
+ credentialId: CREDENTIAL_ID,
+ browser: 'chromium',
+ verifiedOrigin: ATTACKER_ORIGIN,
+ instanceId: INSTANCE_ID,
+ })
+
+ await h.text(frame)
+
+ // Proves the cryptographic check itself passed: rejection is caused by
+ // binding the durable credential principal to the live connection.
+ expect(verify).toHaveReturnedWith(true)
+ expect(h.error()).toEqual({ type: 'pairError', code: 'authFailed' })
+ expect(h.promoteOnReconnect).not.toHaveBeenCalled()
+ expect(h.authenticated).toBeNull()
+ })
+
+ it('fails the MAC when the client computed it against a different verifiedOrigin than the live connection', async () => {
+ const mutualKey = new Uint8Array(32).fill(9)
+ const credential = makeCredential({
+ state: 'committed',
+ committedAt: T0 - 1,
+ mutualKeyB64: toBase64Url(mutualKey),
+ })
+ const h = makeHarness({
+ verifiedOrigin: ORIGIN,
+ findForAuth: (id) => (id === CREDENTIAL_ID ? credential : null),
+ })
+ h.session.start()
+ const { S } = challengeFrom(h)
+ // The client's own transcript uses a different verifiedOrigin than the
+ // live connection the server actually has — simulating a stored
+ // principal that has drifted from the connection it is now on.
+ const { frame } = buildResponse({
+ mutualKey,
+ S,
+ credentialId: CREDENTIAL_ID,
+ browser: 'chromium',
+ verifiedOrigin: ATTACKER_ORIGIN,
+ instanceId: INSTANCE_ID,
+ })
+
+ await h.text(frame)
+
+ expect(h.error()).toEqual({ type: 'pairError', code: 'authFailed' })
+ expect(h.promoteOnReconnect).not.toHaveBeenCalled()
+ expect(h.authenticated).toBeNull()
+ })
+
+ it('fails the MAC when the client computed it against a different browser than the live connection', async () => {
+ const mutualKey = new Uint8Array(32).fill(9)
+ const credential = makeCredential({
+ state: 'committed',
+ committedAt: T0 - 1,
+ mutualKeyB64: toBase64Url(mutualKey),
+ })
+ const h = makeHarness({
+ browser: 'chromium',
+ findForAuth: (id) => (id === CREDENTIAL_ID ? credential : null),
+ })
+ h.session.start()
+ const { S } = challengeFrom(h)
+ const { frame } = buildResponse({
+ mutualKey,
+ S,
+ credentialId: CREDENTIAL_ID,
+ browser: 'firefox',
+ verifiedOrigin: ORIGIN,
+ instanceId: INSTANCE_ID,
+ })
+
+ await h.text(frame)
+
+ expect(h.error()).toEqual({ type: 'pairError', code: 'authFailed' })
+ })
+ })
+
+ describe('scenario 6: frame discipline (§6.1, §8)', () => {
+ it('rejects an oversized frame with protocolViolation', async () => {
+ const h = makeHarness()
+ h.session.start()
+ await h.raw('{}', 16 * 1024 + 1)
+ expect(h.error()).toEqual({
+ type: 'pairError',
+ code: 'protocolViolation',
+ })
+ expect(h.closed).toEqual(['protocolViolation'])
+ })
+
+ it('rejects an unknown frame type with protocolViolation', async () => {
+ const h = makeHarness()
+ h.session.start()
+ await h.text({ type: 'somethingElse' })
+ expect(h.error()).toEqual({
+ type: 'pairError',
+ code: 'protocolViolation',
+ })
+ })
+
+ it('rejects malformed JSON with protocolViolation', async () => {
+ const h = makeHarness()
+ h.session.start()
+ await h.raw('not valid json')
+ expect(h.error()).toEqual({
+ type: 'pairError',
+ code: 'protocolViolation',
+ })
+ })
+
+ it('rejects a schema-invalid reconnectResponse with protocolViolation', async () => {
+ const h = makeHarness()
+ h.session.start()
+ await h.text({
+ type: 'reconnectResponse',
+ credentialId: CREDENTIAL_ID,
+ C: 'short',
+ mac: 'short',
+ })
+ expect(h.error()).toEqual({
+ type: 'pairError',
+ code: 'protocolViolation',
+ })
+ })
+
+ it('rejects a second reconnectResponse arriving while the first is still mid-promote, and never resurrects the first', async () => {
+ const mutualKey = new Uint8Array(32).fill(9)
+ const provisional = makeCredential({
+ state: 'provisional',
+ mutualKeyB64: toBase64Url(mutualKey),
+ })
+ const gatePromote = deferred<void>()
+ const h = makeHarness({
+ gatePromote,
+ findForAuth: (id) => (id === CREDENTIAL_ID ? provisional : null),
+ })
+ h.session.start()
+ const { S } = challengeFrom(h)
+ const { frame } = buildResponse({
+ mutualKey,
+ S,
+ credentialId: CREDENTIAL_ID,
+ browser: 'chromium',
+ verifiedOrigin: ORIGIN,
+ instanceId: INSTANCE_ID,
+ })
+
+ const first = h.text(frame)
+ // Fired in the same synchronous tick, while the first response is
+ // suspended inside `promoteOnReconnect`'s gate.
+ const duplicate = h.text(frame)
+
+ gatePromote.resolve()
+ await Promise.all([first, duplicate])
+
+ expect(h.closed).toEqual(['protocolViolation'])
+ expect(h.sent.some((f) => f.type === 'reconnectAccept')).toBe(false)
+ expect(h.authenticated).toBeNull()
+ })
+ })
+
+ describe('post-terminal discipline', () => {
+ it('ignores further text frames once authenticated', async () => {
+ const mutualKey = new Uint8Array(32).fill(4)
+ const credential = makeCredential({
+ state: 'committed',
+ committedAt: T0 - 1,
+ mutualKeyB64: toBase64Url(mutualKey),
+ })
+ const h = makeHarness({
+ findForAuth: (id) => (id === CREDENTIAL_ID ? credential : null),
+ })
+ h.session.start()
+ const { S } = challengeFrom(h)
+ const { frame } = buildResponse({
+ mutualKey,
+ S,
+ credentialId: CREDENTIAL_ID,
+ browser: 'chromium',
+ verifiedOrigin: ORIGIN,
+ instanceId: INSTANCE_ID,
+ })
+ await h.text(frame)
+ const sentBefore = h.sent.length
+ const closedBefore = h.closed.length
+
+ await h.text(frame)
+
+ expect(h.sent).toHaveLength(sentBefore)
+ expect(h.closed).toHaveLength(closedBefore)
+ })
+
+ it('dispose is idempotent, discards the challenge secret, and does not itself close the transport', () => {
+ const h = makeHarness()
+ h.session.start()
+
+ h.session.dispose('timeout')
+ h.session.dispose('timeout')
+
+ // Mirrors `PairSession.dispose`: by the time the wiring calls this,
+ // it is either already closing the transport itself or the peer is
+ // already gone, so this must not also call `deps.close`.
+ expect(h.closed).toEqual([])
+ // No frame beyond the initial challenge was ever emitted.
+ expect(h.sent).toHaveLength(1)
+ })
+
+ it('ignores a text frame delivered after dispose', async () => {
+ const mutualKey = new Uint8Array(32).fill(9)
+ const credential = makeCredential({
+ state: 'committed',
+ committedAt: T0 - 1,
+ mutualKeyB64: toBase64Url(mutualKey),
+ })
+ const h = makeHarness({
+ findForAuth: (id) => (id === CREDENTIAL_ID ? credential : null),
+ })
+ h.session.start()
+ const { S } = challengeFrom(h)
+ const { frame } = buildResponse({
+ mutualKey,
+ S,
+ credentialId: CREDENTIAL_ID,
+ browser: 'chromium',
+ verifiedOrigin: ORIGIN,
+ instanceId: INSTANCE_ID,
+ })
+
+ h.session.dispose('socket-closed')
+ await h.text(frame)
+
+ expect(h.sent).toHaveLength(1) // only the initial reconnectChallenge
+ expect(h.authenticated).toBeNull()
+ })
+ })
+
+ describe('a failed durable promotion is a local fault, not a peer violation', () => {
+ it('closes without any frame when promoteOnReconnect rejects', async () => {
+ const mutualKey = new Uint8Array(32).fill(9)
+ const provisional = makeCredential({
+ state: 'provisional',
+ mutualKeyB64: toBase64Url(mutualKey),
+ })
+ const h = makeHarness({
+ findForAuth: (id) => (id === CREDENTIAL_ID ? provisional : null),
+ promoteOnReconnect: async () => {
+ throw new Error('stale rotation: CAS observed a changed current id')
+ },
+ })
+ h.session.start()
+ const { S } = challengeFrom(h)
+ const { frame } = buildResponse({
+ mutualKey,
+ S,
+ credentialId: CREDENTIAL_ID,
+ browser: 'chromium',
+ verifiedOrigin: ORIGIN,
+ instanceId: INSTANCE_ID,
+ })
+
+ await h.text(frame)
+
+ expect(h.sent).toHaveLength(1) // only the initial reconnectChallenge
+ expect(h.closed).toEqual(['reconnectPromoteFailed'])
+ expect(h.authenticated).toBeNull()
+ })
+ })
+
+ describe('non-schema-validated inputs never escape handleText as an uncaught rejection', () => {
+ it('treats a non-ASCII live verifiedOrigin (deps-supplied, not schema-checked like a frame field) as authFailed rather than throwing out of handleText', async () => {
+ const mutualKey = new Uint8Array(32).fill(9)
+ const nonAsciiOrigin = 'chrome-extension://éxt-not-ascii'
+ const credential = makeCredential({
+ state: 'committed',
+ committedAt: T0 - 1,
+ mutualKeyB64: toBase64Url(mutualKey),
+ })
+ // The harness's live-connection `verifiedOrigin` is the non-ASCII
+ // value that will make the *server's* own `buildRT` throw. The client
+ // double still computes a normal (ASCII) transcript for whatever it
+ // believes — its exact MAC is irrelevant here, since the server never
+ // gets far enough to compare it.
+ const h = makeHarness({
+ verifiedOrigin: nonAsciiOrigin,
+ findForAuth: (id) => (id === CREDENTIAL_ID ? credential : null),
+ })
+ h.session.start()
+ const { S } = challengeFrom(h)
+ const { frame } = buildResponse({
+ mutualKey,
+ S,
+ credentialId: CREDENTIAL_ID,
+ browser: 'chromium',
+ verifiedOrigin: ORIGIN,
+ instanceId: INSTANCE_ID,
+ })
+
+ // Must resolve (not reject) and reach the uniform failure frame.
+ await expect(h.text(frame)).resolves.toBeUndefined()
+
+ expect(h.error()).toEqual({ type: 'pairError', code: 'authFailed' })
+ expect(h.closed).toEqual(['authFailed'])
+ expect(h.sent).toHaveLength(2)
+ expect(h.authenticated).toBeNull()
+ })
+
+ it('treats a corrupted stored mutualKeyB64 (store-supplied, not schema-checked) as authFailed rather than throwing out of handleText', async () => {
+ const credential = makeCredential({
+ state: 'committed',
+ committedAt: T0 - 1,
+ mutualKeyB64: 'not*valid#base64url',
+ })
+ const h = makeHarness({
+ findForAuth: (id) => (id === CREDENTIAL_ID ? credential : null),
+ })
+ h.session.start()
+ const { S } = challengeFrom(h)
+ const { frame } = buildResponse({
+ mutualKey: new Uint8Array(32).fill(9),
+ S,
+ credentialId: CREDENTIAL_ID,
+ browser: 'chromium',
+ verifiedOrigin: ORIGIN,
+ instanceId: INSTANCE_ID,
+ })
+
+ await expect(h.text(frame)).resolves.toBeUndefined()
+
+ expect(h.error()).toEqual({ type: 'pairError', code: 'authFailed' })
+ expect(h.closed).toEqual(['authFailed'])
+ expect(h.sent).toHaveLength(2)
+ expect(h.authenticated).toBeNull()
+ })
+ })
+})
diff --git a/src/core/bridge/mbp1/reconnect-session.ts b/src/core/bridge/mbp1/reconnect-session.ts
new file mode 100644
index 00000000..25a7e268
--- /dev/null
+++ b/src/core/bridge/mbp1/reconnect-session.ts
@@ -0,0 +1,413 @@
+// MBP1 reconnect session state machine
+// (docs/bridge-pairing-protocol.md §8, §6.7's durable-promotion paragraph,
+// §11).
+//
+// This is the `/v1` counterpart to `pair-session.ts`: a returning extension
+// authenticates through a challenge–response, never a bearer token on the
+// wire. The whole exchange is one round trip — the server speaks first with
+// `reconnectChallenge`, the client answers with exactly one `reconnectResponse`,
+// and the server either promotes-then-accepts or fails uniformly. Every byte
+// leaves through the injected `sendText`/`close`, matching `pair-session.ts`'s
+// transport-neutral shape.
+//
+// Two orderings here are load-bearing:
+//
+// 1. **§6.7 durable promotion precedes the accept.** When the authenticating
+// credential is `provisional`, `promoteOnReconnect` — the store's single
+// durable transaction that CAS-promotes the successor and revokes the
+// predecessor together — MUST resolve before `reconnectAccept` reaches
+// the wire. A crash between "verified" and "promoted" would otherwise
+// leave a just-authenticated credential merely provisional, where it can
+// later expire and strand the client. An already-`committed` credential
+// needs no promotion and is never passed to `promoteOnReconnect` — the
+// store rejects anything that is not a live provisional (mirrors
+// `commitFromPair`'s contract in `credential-store.ts`), so calling it
+// unconditionally would break the ordinary, no-rotation reconnect.
+//
+// 2. **Unknown-`credentialId` and bad-MAC are the same code path.** The MAC
+// is verified against a real key when the id is known and a fixed-length
+// dummy key when it is not, and the verify call happens exactly once
+// either way — no short-circuit `return` before it — so a stored-id
+// oracle never opens up (§8, §11).
+//
+// This module logs nothing at any level: `mutualKey`, the reconnect MACs, and
+// the traffic keys are all in scope here and all forbidden from any log
+// (§11).
+
+import { timingSafeEqual } from 'node:crypto'
+import type { Browser } from '@shared/protocol/bridge'
+import type { StoredCredential } from '../credential-store'
+import { fromBase64Url, toBase64Url } from './canonical'
+import { DIR_C2S, DIR_S2C, EnvelopeOpener, EnvelopeSealer } from './envelope'
+import {
+ frameEnvelopeSchema,
+ MAX_PRE_AUTH_FRAME_BYTES,
+ MBP1_PROTOCOL_VERSION,
+ type PairErrorCode,
+ type PairErrorFrame,
+ pairErrorFrameSchema,
+ reconnectAcceptFrameSchema,
+ reconnectChallengeFrameSchema,
+ reconnectResponseFrameSchema,
+} from './frames'
+import {
+ buildRT,
+ reconnectMacClient,
+ reconnectMacServer,
+ reconnectTrafficKeys,
+} from './reconnect-mac'
+
+/** The whole challenge–response must complete within this many ms of `start()` (§8). */
+const RECONNECT_DEADLINE_MS = 10_000
+
+/** `S`'s length: 32 CSPRNG bytes (§8). */
+const CHALLENGE_BYTES = 32
+
+/**
+ * Fixed-length stand-in for an unknown credential's `mutualKey` (§8): keeps
+ * the HMAC verify's cost identical whether or not `credentialId` exists, so
+ * the surface never becomes a credential-ID oracle. Never a real key, so its
+ * fixed (not random) value carries no risk.
+ */
+const DUMMY_MUTUAL_KEY = new Uint8Array(32)
+
+/**
+ * The two `Mbp1CredentialStore` operations §8's reconnect flow needs.
+ * Narrowed to what this module calls, matching `pair-session.ts`'s
+ * `PairCredentialIssuer`: `Mbp1CredentialStore` is a class with private
+ * state, so a test double is not structurally assignable to it, while the
+ * real store satisfies this narrower shape without any change.
+ */
+export interface ReconnectCredentialAuthenticator {
+ /** Looks up a credential for authentication, provisional or committed (§8). */
+ findForAuth(credentialId: string): StoredCredential | null
+ /**
+ * Durable CAS promote-new+revoke-old, run as one transaction, for a
+ * `provisional` credential (§6.7). Must be called only for a credential
+ * whose `state` is `provisional` — the store rejects anything else.
+ */
+ promoteOnReconnect(credentialId: string): Promise<void>
+}
+
+export interface ReconnectSessionDeps {
+ /** The `Origin` header value, never a self-reported field (§5, §8). */
+ verifiedOrigin: string
+ browser: Browser
+ instanceId: string
+ credentials: ReconnectCredentialAuthenticator
+ sendText(json: object): void
+ close(reason: string): void
+ /**
+ * Fires once `reconnectAccept` is on the wire, handing over the *live*
+ * envelope endpoints and the credential that authenticated — already
+ * promoted, if this run promoted it.
+ */
+ onAuthenticated(
+ channel: { sealer: EnvelopeSealer; opener: EnvelopeOpener },
+ credential: StoredCredential
+ ): void
+ now(): number
+ random(n: number): Uint8Array
+}
+
+type ReconnectState =
+ | 'awaiting-response'
+ | 'processing'
+ | 'authenticated'
+ | 'closed'
+
+export class ReconnectSession {
+ private readonly deps: ReconnectSessionDeps
+ private state: ReconnectState = 'awaiting-response'
+ private challengeS: Uint8Array | null = null
+ private deadlineAt = 0
+
+ constructor(deps: ReconnectSessionDeps) {
+ this.deps = deps
+ }
+
+ /** Server speaks first on `/v1`: `reconnectChallenge` with a fresh `S` (§8). */
+ start(): void {
+ this.challengeS = this.deps.random(CHALLENGE_BYTES)
+ this.deadlineAt = this.deps.now() + RECONNECT_DEADLINE_MS
+ const challengeFrame = {
+ type: 'reconnectChallenge',
+ protocolVersion: MBP1_PROTOCOL_VERSION,
+ S: toBase64Url(this.challengeS),
+ }
+ if (!reconnectChallengeFrameSchema.safeParse(challengeFrame).success) {
+ this.terminate('reconnectChallengeInvalid')
+ return
+ }
+ this.deps.sendText(challengeFrame)
+ }
+
+ async handleText(raw: string, byteLength: number): Promise<void> {
+ if (this.state === 'closed' || this.state === 'authenticated') {
+ return
+ }
+ if (byteLength > MAX_PRE_AUTH_FRAME_BYTES) {
+ this.violation()
+ return
+ }
+
+ let body: unknown
+ try {
+ body = JSON.parse(raw)
+ } catch {
+ this.violation()
+ return
+ }
+
+ const envelope = frameEnvelopeSchema.safeParse(body)
+ if (!envelope.success) {
+ this.violation()
+ return
+ }
+
+ switch (envelope.data.type) {
+ case 'reconnectResponse':
+ await this.onReconnectResponse(body)
+ return
+ default:
+ this.violation()
+ }
+ }
+
+ /**
+ * Ends the session without writing to the socket: the peer is gone, the
+ * wiring's own pre-authentication deadline table is closing it, or explicit
+ * credential revocation is cancelling same-Origin handshakes. Mirrors
+ * `PairSession.dispose`.
+ */
+ dispose(_reason: 'socket-closed' | 'timeout' | 'access-revoked'): void {
+ if (this.state === 'closed') {
+ return
+ }
+ this.state = 'closed'
+ this.challengeS = null
+ }
+
+ // -- §8 reconnectResponse -------------------------------------------------
+
+ private async onReconnectResponse(body: unknown): Promise<void> {
+ if (this.state !== 'awaiting-response' || this.challengeS === null) {
+ this.violation()
+ return
+ }
+ // A response that arrives after the 10 s deadline is treated exactly
+ // like a failed challenge–response (§8): the whole exchange did not
+ // complete in time, and this must not be distinguishable from a bad MAC.
+ if (this.deps.now() >= this.deadlineAt) {
+ this.fail('authFailed')
+ return
+ }
+
+ const parsed = reconnectResponseFrameSchema.safeParse(body)
+ if (!parsed.success) {
+ this.violation()
+ return
+ }
+
+ // Reject any further frame from here on — including a second
+ // `reconnectResponse` racing the `await` below — before doing any of the
+ // (synchronous) verification work.
+ this.state = 'processing'
+
+ const c = fromBase64Url(parsed.data.C)
+ const presentedMac = fromBase64Url(parsed.data.mac)
+
+ // §8: `browser`/`verifiedOrigin` in RT are the live connection's values,
+ // never anything the client claims. That protects against an honest client
+ // replaying a credential with its stored transcript, but it is NOT enough
+ // when an attacker has stolen the key and recomputes the MAC for its own
+ // Origin; the explicit stored-principal comparison below closes that gap.
+ const credential = this.deps.credentials.findForAuth(
+ parsed.data.credentialId
+ )
+
+ // `buildRT`'s `enc()` throws on a non-ASCII `verifiedOrigin`/`instanceId`
+ // — deps-supplied, unlike the frame's own fields, and not schema-validated
+ // the way `credentialId`/`C`/`mac` are — and a corrupted `mutualKeyB64`
+ // fails `fromBase64Url`'s canonical check. Neither is the peer's fault in
+ // a way §11 has a code for, so both collapse into the same uniform
+ // authFailed + close as every other reconnect authentication failure —
+ // never an uncaught rejection escaping this handler (mirrors
+ // `pair-session.ts`'s guarded `buildAad`/`buildAId`/`generatePairingCode`).
+ let rt: Uint8Array
+ let key: Uint8Array
+ try {
+ rt = buildRT({
+ protocolVersion: MBP1_PROTOCOL_VERSION,
+ credentialId: parsed.data.credentialId,
+ browser: this.deps.browser,
+ verifiedOrigin: this.deps.verifiedOrigin,
+ instanceId: this.deps.instanceId,
+ })
+ key =
+ credential === null
+ ? DUMMY_MUTUAL_KEY
+ : fromBase64Url(credential.mutualKeyB64)
+ } catch {
+ this.fail('authFailed')
+ return
+ }
+
+ // Called exactly once regardless of whether `credentialId` was known —
+ // no short-circuit before it — so an unknown id costs the same work as a
+ // bad MAC and the surface is never an oracle for which ids exist (§8, §11).
+ const macOk = this.verifyClientMac(
+ key,
+ this.challengeS,
+ c,
+ rt,
+ presentedMac
+ )
+ const principalMatches =
+ credential !== null && this.matchesLivePrincipal(credential)
+
+ if (credential === null || !macOk || !principalMatches) {
+ this.fail('authFailed')
+ return
+ }
+
+ let authenticated: StoredCredential = credential
+ if (credential.state === 'provisional') {
+ try {
+ // §6.7: durable first — a single transaction that promotes the
+ // successor and revokes the predecessor together — and only then may
+ // `reconnectAccept` exist. Never awaited-and-forgotten: a crash
+ // between these two steps must not be possible.
+ await this.deps.credentials.promoteOnReconnect(credential.credentialId)
+ } catch {
+ // A store-side fault (e.g. a lost single-flight CAS race). Local, not
+ // the peer's — no frame, matching `pair-session.ts`'s
+ // `credentialCommitFailed`/`credentialPersistFailed`.
+ this.terminate('reconnectPromoteFailed')
+ return
+ }
+ // The `await` above is the only yield point in this method. A
+ // `dispose` or another frame's `violation()` during it already moved
+ // `state` off `'processing'`; do not resurrect a session that ended
+ // while we waited.
+ if (this.state !== 'processing') {
+ return
+ }
+
+ // Re-read after promotion: `findForAuth` returns the live stored
+ // object, and the credential's `state` (and `committedAt`) changed
+ // under us during the `await` above, so the pre-promotion reference is
+ // stale.
+ const promoted = this.deps.credentials.findForAuth(
+ credential.credentialId
+ )
+ if (promoted === null) {
+ // Unreachable in a correct store: a credential this call just
+ // promoted must still be findable. Fail closed rather than hand the
+ // wiring a channel with no credential to attach. Distinct reason from
+ // the real promotion failure above, so a future diagnosis can tell
+ // "the store rejected the promote" from "the store accepted it but
+ // then lost the record" apart.
+ this.terminate('reconnectPromotedCredentialMissing')
+ return
+ }
+ if (!this.matchesLivePrincipal(promoted)) {
+ // A store replacement/race must not change the principal between MAC
+ // verification and adoption. Keep the peer-facing result uniform with
+ // every other credential authentication failure.
+ this.fail('authFailed')
+ return
+ }
+ authenticated = promoted
+ }
+
+ // §8's 10 s deadline covers the whole exchange, including the durable
+ // promotion await above — never send an accept the client's own deadline
+ // has already abandoned. The promotion itself stands either way (§6.7
+ // durable-first), so the next reconnect finds a committed credential;
+ // this attempt just fails with the same uniform code a late response gets.
+ if (this.deps.now() >= this.deadlineAt) {
+ this.fail('authFailed')
+ return
+ }
+
+ const macServer = reconnectMacServer(key, this.challengeS, c, rt)
+ const acceptFrame = {
+ type: 'reconnectAccept',
+ mac: toBase64Url(macServer),
+ }
+ if (!reconnectAcceptFrameSchema.safeParse(acceptFrame).success) {
+ this.terminate('reconnectAcceptInvalid')
+ return
+ }
+ this.deps.sendText(acceptFrame)
+
+ const { kC2S, kS2C } = reconnectTrafficKeys(key, this.challengeS, c)
+ const channel = {
+ sealer: new EnvelopeSealer(kS2C, DIR_S2C),
+ opener: new EnvelopeOpener(kC2S, DIR_C2S),
+ }
+ this.state = 'authenticated'
+ this.challengeS = null
+ this.deps.onAuthenticated(channel, authenticated)
+ }
+
+ // -- shared helpers ---------------------------------------------------------
+
+ /**
+ * The constant-time MAC verify seam: computes `reconnectMacClient` and
+ * compares in constant time. Kept as its own method (rather than inlined)
+ * so both the known-id and unknown-id paths visibly funnel through the
+ * same single call.
+ */
+ private verifyClientMac(
+ mutualKey: Uint8Array,
+ s: Uint8Array,
+ c: Uint8Array,
+ rt: Uint8Array,
+ presentedMac: Uint8Array
+ ): boolean {
+ const expected = reconnectMacClient(mutualKey, s, c, rt)
+ return constantTimeEqual(expected, presentedMac)
+ }
+
+ private matchesLivePrincipal(credential: StoredCredential): boolean {
+ return (
+ credential.principal.browser === this.deps.browser &&
+ credential.principal.verifiedOrigin === this.deps.verifiedOrigin
+ )
+ }
+
+ private violation(): void {
+ this.fail('protocolViolation')
+ }
+
+ private fail(code: PairErrorCode): void {
+ const frame: PairErrorFrame = { type: 'pairError', code }
+ // Validated for the same reason `pair-session.ts`'s `sendPairError` is:
+ // `frames.ts` claims one schema describes both directions, and a
+ // construction bug in this locally-built frame is ours, not the peer's —
+ // there is nowhere left to report it, so this terminates silently rather
+ // than risk sending a second, possibly-also-broken `pairError`.
+ if (!pairErrorFrameSchema.safeParse(frame).success) {
+ this.terminate('pairErrorFrameInvalid')
+ return
+ }
+ this.deps.sendText(frame)
+ this.terminate(code)
+ }
+
+ private terminate(reason: string): void {
+ if (this.state === 'closed') {
+ return
+ }
+ this.state = 'closed'
+ this.challengeS = null
+ this.deps.close(reason)
+ }
+}
+
+/** Constant-time equality; lengths are public, so an early length exit leaks nothing (§2). */
+function constantTimeEqual(a: Uint8Array, b: Uint8Array): boolean {
+ return a.length === b.length && timingSafeEqual(a, b)
+}
diff --git a/src/core/bridge/mbp1/scrypt-w.test.ts b/src/core/bridge/mbp1/scrypt-w.test.ts
new file mode 100644
index 00000000..c679c0b1
--- /dev/null
+++ b/src/core/bridge/mbp1/scrypt-w.test.ts
@@ -0,0 +1,18 @@
+import { ed25519 } from '@noble/curves/ed25519.js'
+import { describe, expect, it } from 'vitest'
+import { loadMbp1Vectors } from './__tests__/vectors'
+import { deriveW } from './scrypt-w'
+
+const ORDER = ed25519.Point.Fn.ORDER
+const v = loadMbp1Vectors()
+
+describe('w derivation (§6.2)', () => {
+ it('matches scryptW.expected.w', () => {
+ const w = deriveW(
+ v.scryptW.inputs.codeNormalized,
+ v.scryptW.inputs.pairNonce,
+ ORDER
+ )
+ expect(w.toString(16).padStart(64, '0')).toBe(v.scryptW.expected.w)
+ })
+})
diff --git a/src/core/bridge/mbp1/scrypt-w.ts b/src/core/bridge/mbp1/scrypt-w.ts
new file mode 100644
index 00000000..e0f6c6ee
--- /dev/null
+++ b/src/core/bridge/mbp1/scrypt-w.ts
@@ -0,0 +1,44 @@
+// MBP1 pairing-code → SPAKE2 password scalar derivation
+// (docs/bridge-pairing-protocol.md §6.2).
+//
+// The pairing code IS the PAKE password: never log `codeNormalized`, the
+// scrypt output, or the derived scalar `w`.
+
+import { Buffer } from 'node:buffer'
+import { scryptSync } from 'node:crypto'
+import { assertAscii, os2ip } from './canonical'
+
+export class PairingFailedError extends Error {}
+
+/**
+ * `w = OS2IP(scrypt(pw, salt, N=2^14, r=8, p=1, dkLen=64)) mod order` (§6.2).
+ * `pw` is the 8 ASCII bytes of `codeNormalized`; `salt = "MBP1/w/v1" ‖ pairNonce`.
+ * `order` is the caller-supplied group order to reduce modulo. Throws
+ * `PairingFailedError` if the reduced scalar is 0 (§6.2, probability ≈ 2^-252).
+ */
+export function deriveW(
+ codeNormalized: string,
+ pairNonce: string,
+ order: bigint
+): bigint {
+ assertAscii(codeNormalized, 'codeNormalized')
+ assertAscii(pairNonce, 'pairNonce')
+
+ const pw = Buffer.from(codeNormalized, 'ascii')
+ const salt = Buffer.concat([
+ Buffer.from('MBP1/w/v1', 'ascii'),
+ Buffer.from(pairNonce, 'ascii'),
+ ])
+ const h = scryptSync(pw, salt, 64, {
+ N: 16384,
+ r: 8,
+ p: 1,
+ maxmem: 64 * 1024 * 1024,
+ })
+
+ const w = os2ip(h) % order
+ if (w === 0n) {
+ throw new PairingFailedError('derived w is 0')
+ }
+ return w
+}
diff --git a/src/core/bridge/mbp1/spake2-core.test.ts b/src/core/bridge/mbp1/spake2-core.test.ts
new file mode 100644
index 00000000..621727b1
--- /dev/null
+++ b/src/core/bridge/mbp1/spake2-core.test.ts
@@ -0,0 +1,339 @@
+import { p256 } from '@noble/curves/nist.js'
+import { describe, expect, it } from 'vitest'
+import rfc from './__tests__/fixtures/rfc9382-p256-vectors.json'
+import { bytesToHex, hexToBytes, loadMbp1Vectors } from './__tests__/vectors'
+import { os2ip, ProtocolViolationError } from './canonical'
+import {
+ buildTT,
+ computePublicA,
+ computePublicB,
+ confirmationMacs,
+ drawScalar,
+ EDWARDS25519_GROUP,
+ IdentityKError,
+ keySchedule,
+ pairTrafficKeys,
+ type Spake2Group,
+ sharedFromA,
+ sharedFromB,
+} from './spake2-core'
+
+const ascii = (s: string) => new TextEncoder().encode(s)
+const EMPTY = new Uint8Array(0)
+const scalarBytes = (n: bigint) => hexToBytes(n.toString(16).padStart(64, '0'))
+
+/**
+ * P-256 with the RFC 9382 §6 constants, cofactor 1, and SEC1 uncompressed point
+ * encoding — the group the Appendix B vectors are stated over. It lives here
+ * rather than in `spake2-core.ts` because it has no runtime purpose: exporting
+ * it from the module would drag `@noble/curves/nist.js` into the shipped
+ * bundle. The core is group-generic by design, so injecting the group from the
+ * test exercises exactly the same production code paths.
+ */
+const P256_TEST_GROUP: Spake2Group = {
+ Point: p256.Point,
+ order: p256.Point.Fn.ORDER,
+ cofactor: 1n,
+ M: p256.Point.fromHex(
+ '02886e2f97ace46e55ba9dd7242579f2993b64e16ef3dcab95afd497333d8fa12f'
+ ),
+ N: p256.Point.fromHex(
+ '03d8bbd6c639c62937b04d997f38c3770719c629d7014d49a24b4f98baa1292b49'
+ ),
+ encodePoint: (p) => p.toBytes(false),
+}
+
+// RFC 9382 Appendix B provides SPAKE2 vectors only for P-256, so the group-generic
+// core is proven against all four of them before its edwards25519 instantiation is
+// trusted (docs/bridge-pairing-protocol.md §13). The RFC transcript layout is the
+// same as MBP1 §6.4 — enc(A) ‖ enc(B) ‖ enc(pA) ‖ enc(pB) ‖ enc(K) ‖ enc(I2OSP(w,32))
+// — differing only in what the identity byte strings contain: the RFC passes the
+// bare identity strings, MBP1 passes the §6.4 composite `A_id`/`B_id`. `buildTT`
+// therefore takes already-assembled identities and serves both callers.
+describe('SPAKE2 core — RFC 9382 Appendix B P-256 gate', () => {
+ it('runs every published Appendix B vector', () => {
+ expect(rfc.vectors).toHaveLength(4)
+ })
+
+ for (const v of rfc.vectors) {
+ describe(v.label, () => {
+ const w = os2ip(hexToBytes(v.w))
+ const x = os2ip(hexToBytes(v.x))
+ const y = os2ip(hexToBytes(v.y))
+
+ it('reproduces pA and pB', () => {
+ expect(bytesToHex(computePublicA(P256_TEST_GROUP, w, x))).toBe(v.pA)
+ expect(bytesToHex(computePublicB(P256_TEST_GROUP, w, y))).toBe(v.pB)
+ })
+
+ it('reproduces K from both sides', () => {
+ const fromA = sharedFromA(P256_TEST_GROUP, w, x, hexToBytes(v.pB))
+ const fromB = sharedFromB(P256_TEST_GROUP, w, y, hexToBytes(v.pA))
+ expect(bytesToHex(fromA)).toBe(v.K)
+ expect(bytesToHex(fromB)).toBe(v.K)
+ })
+
+ it('reproduces the transcript TT', () => {
+ const tt = buildTT(
+ ascii(v.A),
+ ascii(v.B),
+ hexToBytes(v.pA),
+ hexToBytes(v.pB),
+ hexToBytes(v.K),
+ w
+ )
+ expect(bytesToHex(tt)).toBe(v.TT)
+ })
+
+ it('reproduces the key schedule and confirmation MACs', () => {
+ const keys = keySchedule(hexToBytes(v.TT), EMPTY)
+ expect(bytesToHex(keys.Ke)).toBe(v.Ke)
+ expect(bytesToHex(keys.Ka)).toBe(v.Ka)
+ expect(bytesToHex(keys.KcA)).toBe(v.KcA)
+ expect(bytesToHex(keys.KcB)).toBe(v.KcB)
+
+ const macs = confirmationMacs(
+ hexToBytes(v.KcA),
+ hexToBytes(v.KcB),
+ hexToBytes(v.TT)
+ )
+ expect(bytesToHex(macs.cA)).toBe(v.cA)
+ expect(bytesToHex(macs.cB)).toBe(v.cB)
+ })
+ })
+ }
+})
+
+// With the composition proven on P-256, the same code paths are re-run on the
+// real MBP1 ciphersuite (§3) against the normative in-tree vectors (§13). This
+// half is what exercises edwards25519's 32-byte compressed encoding, the
+// cofactor-8 path, and the §6.6 traffic-key labels — none of which the
+// cofactor-1 P-256 gate can reach.
+describe('SPAKE2 core — MBP1 edwards25519 vectors', () => {
+ const vectors = loadMbp1Vectors()
+ const v0 = vectors.spake2[0]
+ const v1 = vectors.spake2[1]
+ const G = EDWARDS25519_GROUP
+ const w = os2ip(hexToBytes(v0.intermediate.w))
+ const x = os2ip(hexToBytes(v0.inputs.x))
+ const y = os2ip(hexToBytes(v0.inputs.y))
+
+ it('reproduces pA and pB', () => {
+ expect(bytesToHex(computePublicA(G, w, x))).toBe(v0.expected.pA)
+ expect(bytesToHex(computePublicB(G, w, y))).toBe(v0.expected.pB)
+ })
+
+ it('reproduces K from both sides', () => {
+ const fromA = sharedFromA(G, w, x, hexToBytes(v0.expected.pB))
+ const fromB = sharedFromB(G, w, y, hexToBytes(v0.expected.pA))
+ expect(bytesToHex(fromA)).toBe(v0.expected.K)
+ expect(bytesToHex(fromB)).toBe(v0.expected.K)
+ })
+
+ it('reproduces the transcript TT from the composite identities', () => {
+ const tt = buildTT(
+ hexToBytes(v0.intermediate.aId),
+ hexToBytes(v0.intermediate.bId),
+ hexToBytes(v0.expected.pA),
+ hexToBytes(v0.expected.pB),
+ hexToBytes(v0.expected.K),
+ w
+ )
+ expect(bytesToHex(tt)).toBe(v0.expected.TT)
+ })
+
+ it('reproduces the key schedule and confirmation MACs', () => {
+ const keys = keySchedule(
+ hexToBytes(v0.expected.TT),
+ hexToBytes(v0.intermediate.aad)
+ )
+ expect(bytesToHex(keys.Ke)).toBe(v0.expected.Ke)
+ expect(bytesToHex(keys.Ka)).toBe(v0.expected.Ka)
+ expect(bytesToHex(keys.KcA)).toBe(v0.expected.KcA)
+ expect(bytesToHex(keys.KcB)).toBe(v0.expected.KcB)
+
+ const macs = confirmationMacs(
+ hexToBytes(v0.expected.KcA),
+ hexToBytes(v0.expected.KcB),
+ hexToBytes(v0.expected.TT)
+ )
+ expect(bytesToHex(macs.cA)).toBe(v0.expected.cA)
+ expect(bytesToHex(macs.cB)).toBe(v0.expected.cB)
+ })
+
+ it('reproduces the pair-session traffic keys', () => {
+ const traffic = pairTrafficKeys(hexToBytes(v0.expected.Ke))
+ expect(bytesToHex(traffic.kC2S)).toBe(v0.expected.trafficC2S)
+ expect(bytesToHex(traffic.kS2C)).toBe(v0.expected.trafficS2C)
+ })
+
+ // Vector 1 is vector 0 with the nmTicket absent: the transcript is unchanged
+ // because the ticket is bound through the AAD, not TT (§6.4), so only the
+ // confirmation keys and MACs move.
+ it('binds the AAD variant into the confirmation keys only', () => {
+ expect(v1.expected.TT).toBe(v0.expected.TT)
+
+ const keys = keySchedule(
+ hexToBytes(v1.expected.TT),
+ hexToBytes(v1.intermediate.aad)
+ )
+ expect(bytesToHex(keys.Ke)).toBe(v0.expected.Ke)
+ expect(bytesToHex(keys.Ka)).toBe(v0.expected.Ka)
+ expect(bytesToHex(keys.KcA)).toBe(v1.expected.KcA)
+ expect(bytesToHex(keys.KcB)).toBe(v1.expected.KcB)
+
+ const macs = confirmationMacs(
+ keys.KcA,
+ keys.KcB,
+ hexToBytes(v1.expected.TT)
+ )
+ expect(bytesToHex(macs.cA)).toBe(v1.expected.cA)
+ expect(bytesToHex(macs.cB)).toBe(v1.expected.cB)
+ })
+})
+
+describe('drawScalar rejection sampling (§6.3)', () => {
+ const order = EDWARDS25519_GROUP.order
+
+ // Pinned against the §3 literal rather than against itself. The vectors
+ // constrain the cofactor and M/N through pA/pB/K, but nothing constrains
+ // `order`: noble validates scalars against its own curve params, and the
+ // rejection bounds below are derived from this same constant — so an
+ // `Fn.ORDER` → `Fp.ORDER` slip would pass every other test in this file.
+ it('exposes the edwards25519 group order ℓ from §3', () => {
+ expect(order).toBe(2n ** 252n + 27742317777372353535851937790883648493n)
+ })
+
+ it('redraws on 0 and on values at or above the order', () => {
+ const queue = [
+ scalarBytes(order + 1n),
+ scalarBytes(order),
+ scalarBytes(0n),
+ scalarBytes(7n),
+ ]
+ let draws = 0
+ const rng = () => {
+ draws += 1
+ return queue.shift() as Uint8Array
+ }
+
+ expect(drawScalar(order, rng)).toBe(7n)
+ expect(draws).toBe(4)
+ })
+
+ it('asks for 32 bytes per draw and rejects a short draw', () => {
+ const widths: number[] = []
+ expect(
+ drawScalar(order, (n) => {
+ widths.push(n)
+ return scalarBytes(9n)
+ })
+ ).toBe(9n)
+ expect(widths).toEqual([32])
+
+ expect(() => drawScalar(order, () => new Uint8Array(31))).toThrow(
+ ProtocolViolationError
+ )
+ })
+})
+
+describe('SPAKE2 core failure handling', () => {
+ const G = EDWARDS25519_GROUP
+ const vectors = loadMbp1Vectors()
+ const v0 = vectors.spake2[0]
+ const w = os2ip(hexToBytes(v0.intermediate.w))
+ const x = os2ip(hexToBytes(v0.inputs.x))
+ const y = os2ip(hexToBytes(v0.inputs.y))
+
+ // A peer that replays exactly w·N drives pB − w·N to the identity, so K is
+ // the identity element and the run is a failed attempt (§6.3, §7.2).
+ it('rejects a peer share that drives K to the identity element', () => {
+ const pB = G.encodePoint(G.N.multiply(w))
+ expect(() => sharedFromA(G, w, x, pB)).toThrow(IdentityKError)
+
+ const pA = G.encodePoint(G.M.multiply(w))
+ expect(() => sharedFromB(G, w, y, pA)).toThrow(IdentityKError)
+ })
+
+ it('rejects peer shares that are not canonical curve points', () => {
+ // y = 2^255 - 1 exceeds the field prime, which RFC 8032 forbids.
+ const nonCanonical = new Uint8Array(32).fill(0xff)
+ expect(() => sharedFromA(G, w, x, nonCanonical)).toThrow(
+ ProtocolViolationError
+ )
+ expect(() => sharedFromB(G, w, y, nonCanonical)).toThrow(
+ ProtocolViolationError
+ )
+ expect(() => sharedFromA(G, w, x, new Uint8Array(31))).toThrow(
+ ProtocolViolationError
+ )
+ })
+
+ // DO NOT DELETE THIS TEST AS REDUNDANT WITH THE VECTORS. It is the only
+ // check in the suite that pins the correct cofactor form. Folding the
+ // cofactor into the scalar as `(pB − w·N)·(h·x mod ℓ)` — the plausible
+ // "simplification" of `sharedSecret` — passes every published vector, RFC
+ // 9382 Appendix B and MBP1 alike: those vectors are generated from honest
+ // shares, so `pB − w·N` is torsion-free and both forms agree exactly on the
+ // prime-order subgroup.
+ //
+ // A torsion-carrying peer point is necessary but NOT automatically
+ // sufficient to separate them. Writing `s = 8x mod ℓ`, the two forms differ
+ // by exactly `(s mod ord(T))·T`, so the torsion point's order decides how
+ // often the guard bites:
+ //
+ // - order 2 (the point `ecff…7f`): differ only when `s` is odd, i.e. when
+ // `floor(8x/ℓ)` is odd — true for this vector's `x`, but a coin flip over
+ // `x` in general. Such a guard would silently stop discriminating if the
+ // vectors were ever regenerated.
+ // - order 8 (used below): since ℓ ≡ 5 (mod 8), `s mod 8 = 3·floor(8x/ℓ)
+ // mod 8`, which vanishes only when `floor(8x/ℓ) = 0`. In that case
+ // `s = 8x` exactly and the two forms are the *same expression*, so no
+ // test could separate them. Order 8 is therefore maximally
+ // discriminating: it bites for every `x` where biting is possible.
+ //
+ // The explicit folded-form assertion below keeps this self-checking — if a
+ // future fixture ever stops separating the two forms, the build fails loudly
+ // instead of going quietly blind. Verified by mutation: with the folded form
+ // in `sharedSecret`, this is the single failing test in the file (29 of 30
+ // stay green, the order-8 check among them since it never calls the core).
+ const orderEightPoint = G.Point.fromBytes(
+ hexToBytes(
+ '26e8958fc2b227b045c3f489f2ef98f0d5dfac05d3c63339b13802886d53fc05'
+ )
+ )
+
+ it('uses a torsion point of order exactly 8', () => {
+ expect(orderEightPoint.multiplyUnsafe(8n).is0()).toBe(true)
+ expect(orderEightPoint.multiplyUnsafe(4n).is0()).toBe(false)
+ })
+
+ it('clears a torsion component added to the peer share', () => {
+ const taintedB = G.encodePoint(
+ G.Point.fromBytes(hexToBytes(v0.expected.pB)).add(orderEightPoint)
+ )
+ const taintedA = G.encodePoint(
+ G.Point.fromBytes(hexToBytes(v0.expected.pA)).add(orderEightPoint)
+ )
+ expect(taintedB).not.toEqual(hexToBytes(v0.expected.pB))
+ expect(taintedA).not.toEqual(hexToBytes(v0.expected.pA))
+
+ expect(bytesToHex(sharedFromA(G, w, x, taintedB))).toBe(v0.expected.K)
+ expect(bytesToHex(sharedFromB(G, w, y, taintedA))).toBe(v0.expected.K)
+
+ // Self-check: the folded form must actually disagree on these inputs,
+ // otherwise the assertions above prove nothing about the cofactor.
+ const foldedFromA = G.encodePoint(
+ G.Point.fromBytes(taintedB)
+ .subtract(G.N.multiply(w))
+ .multiply((G.cofactor * x) % G.order)
+ )
+ const foldedFromB = G.encodePoint(
+ G.Point.fromBytes(taintedA)
+ .subtract(G.M.multiply(w))
+ .multiply((G.cofactor * y) % G.order)
+ )
+ expect(bytesToHex(foldedFromA)).not.toBe(v0.expected.K)
+ expect(bytesToHex(foldedFromB)).not.toBe(v0.expected.K)
+ })
+})
diff --git a/src/core/bridge/mbp1/spake2-core.ts b/src/core/bridge/mbp1/spake2-core.ts
new file mode 100644
index 00000000..6515e9c5
--- /dev/null
+++ b/src/core/bridge/mbp1/spake2-core.ts
@@ -0,0 +1,303 @@
+// MBP1 group-generic SPAKE2 core (docs/bridge-pairing-protocol.md §3, §6.3–§6.6).
+//
+// The group is injected rather than hard-coded so the same composition — public
+// share derivation, cofactor-cleared shared secret, transcript layout, key
+// schedule, confirmation MACs — can be validated against the RFC 9382
+// Appendix B P-256 vectors before MBP1's edwards25519 instantiation is trusted
+// (§13). Passing only the MBP1 vectors would prove nothing about the
+// composition: a wrong-but-self-consistent implementation reproduces its own
+// generated vectors. Only MBP1's own group is defined here; the P-256 group
+// those RFC vectors need is built inside `spake2-core.test.ts`, so the NIST
+// curve implementation never reaches a production bundle.
+//
+// Everything this module handles is secret: `w`, `x`, `y`, `K`, `Ke`, `Ka`,
+// `KcA`, `KcB`, the confirmation MACs, and the traffic keys (§11). It therefore
+// logs nothing at any level, and all state is caller-owned and in-memory only.
+
+import { createHash } from 'node:crypto'
+import { ed25519 } from '@noble/curves/ed25519.js'
+import { utf8ToBytes } from '@noble/hashes/utils.js'
+import {
+ concatBytes,
+ enc,
+ hkdf32,
+ hmacSha256,
+ os2ip,
+ ProtocolViolationError,
+} from './canonical'
+
+/** `K` came out as the identity element, which is a failed attempt (§6.3, §7.2). */
+export class IdentityKError extends Error {
+ constructor(message: string) {
+ super(message)
+ this.name = 'IdentityKError'
+ }
+}
+
+/**
+ * The point operations SPAKE2 needs, satisfied structurally by the noble
+ * `Point` classes. `toBytes` carries the optional compression flag only
+ * because the P-256 group injected by the RFC-vector test must ask for the
+ * RFC 9382 uncompressed encoding; the edwards25519 group ignores it.
+ */
+export interface GroupPoint {
+ add(other: GroupPoint): GroupPoint
+ subtract(other: GroupPoint): GroupPoint
+ /** Constant-time in `scalar`; required for every secret scalar. */
+ multiply(scalar: bigint): GroupPoint
+ /** Variable-time; only for public constants such as the cofactor. */
+ multiplyUnsafe(scalar: bigint): GroupPoint
+ is0(): boolean
+ toBytes(isCompressed?: boolean): Uint8Array
+}
+
+export interface Spake2Group {
+ Point: { fromBytes(b: Uint8Array): GroupPoint; BASE: GroupPoint }
+ order: bigint
+ cofactor: bigint
+ M: GroupPoint
+ N: GroupPoint
+ encodePoint(p: GroupPoint): Uint8Array
+}
+
+/** MBP1 ciphersuite group: edwards25519 with the RFC 9382 §6 constants (§3). */
+export const EDWARDS25519_GROUP: Spake2Group = {
+ Point: ed25519.Point,
+ order: ed25519.Point.Fn.ORDER,
+ cofactor: 8n,
+ M: ed25519.Point.fromHex(
+ 'd048032c6ea0b6d697ddc2e86bda85a33adac920f1bf18e1b0c6d166a5cecdaf'
+ ),
+ N: ed25519.Point.fromHex(
+ 'd3bfb518f44f3430f29d0c92af503865a1ed3281dc69b35dd868ba85f886c4ab'
+ ),
+ encodePoint: (p) => p.toBytes(),
+}
+
+/** Width of a SPAKE2 scalar draw and of `I2OSP(w, 32)` in the transcript (§6.3, §6.4). */
+const SCALAR_BYTES = 32
+
+const CONFIRMATION_KEYS_LABEL = utf8ToBytes('ConfirmationKeys')
+const PAIR_TRAFFIC_SALT = utf8ToBytes('MBP1/pair/v1')
+const PAIR_TRAFFIC_INFO_C2S = utf8ToBytes('MBP1-pair-traffic-c2s')
+const PAIR_TRAFFIC_INFO_S2C = utf8ToBytes('MBP1-pair-traffic-s2c')
+
+/**
+ * Draws a scalar uniformly from `[1, order)` by rejection sampling (§6.3,
+ * RFC 9382 §7): take 32 CSPRNG bytes, read them big-endian, and redraw while
+ * the value is 0 or ≥ `order`. Modular reduction is deliberately not used —
+ * it would bias the low end of the range. A short draw would silently lower
+ * the entropy of the scalar, so an off-length `rng` result throws instead.
+ */
+export function drawScalar(
+ order: bigint,
+ rng: (n: number) => Uint8Array
+): bigint {
+ for (;;) {
+ const bytes = rng(SCALAR_BYTES)
+ if (bytes.length !== SCALAR_BYTES) {
+ throw new ProtocolViolationError(
+ 'drawScalar requires exactly 32 bytes of entropy per draw'
+ )
+ }
+ const candidate = os2ip(bytes)
+ if (candidate !== 0n && candidate < order) {
+ return candidate
+ }
+ }
+}
+
+/**
+ * `pA = w·M + x·P` (§6.3). `w` and `x` must already lie in `[1, order)`:
+ * `deriveW` guarantees that for `w`, `drawScalar` for `x`.
+ */
+export function computePublicA(
+ g: Spake2Group,
+ w: bigint,
+ x: bigint
+): Uint8Array {
+ return g.encodePoint(g.M.multiply(w).add(g.Point.BASE.multiply(x)))
+}
+
+/** `pB = w·N + y·P` (§6.3). Same scalar preconditions as `computePublicA`. */
+export function computePublicB(
+ g: Spake2Group,
+ w: bigint,
+ y: bigint
+): Uint8Array {
+ return g.encodePoint(g.N.multiply(w).add(g.Point.BASE.multiply(y)))
+}
+
+/** A's shared secret `K = h·x·(pB − w·N)` (§6.3). */
+export function sharedFromA(
+ g: Spake2Group,
+ w: bigint,
+ x: bigint,
+ pB: Uint8Array
+): Uint8Array {
+ return sharedSecret(g, x, decodePoint(g, pB, 'pB'), g.N, w)
+}
+
+/** B's shared secret `K = h·y·(pA − w·M)` (§6.3). */
+export function sharedFromB(
+ g: Spake2Group,
+ w: bigint,
+ y: bigint,
+ pA: Uint8Array
+): Uint8Array {
+ return sharedSecret(g, y, decodePoint(g, pA, 'pA'), g.M, w)
+}
+
+function sharedSecret(
+ g: Spake2Group,
+ scalar: bigint,
+ peerShare: GroupPoint,
+ mask: GroupPoint,
+ w: bigint
+): Uint8Array {
+ const d = peerShare.subtract(mask.multiply(w))
+ // DO NOT "simplify" the next line into `d.multiply((h * scalar) % order)`.
+ // The cofactor multiply must stay a separate step: `d` may carry a low-order
+ // torsion component `T`, and `h·scalar·d` kills it because `8 | h·scalar`,
+ // whereas reducing `h·scalar` modulo the prime subgroup order destroys that
+ // divisibility and leaves a residual torsion term. The two forms then
+ // disagree whenever a peer sends a share with torsion in it.
+ //
+ // No test vector catches the difference — RFC 9382 Appendix B and the MBP1
+ // vectors alike are generated from honest shares, whose `pB − w·N` is
+ // torsion-free, and on the prime-order subgroup both forms agree exactly.
+ // The only thing pinning this is the crafted torsion-share test in
+ // `spake2-core.test.ts` ("clears a torsion component added to the peer
+ // share"); a green vector suite is NOT evidence that this line is right.
+ //
+ // `multiplyUnsafe` is acceptable for `h` because it is a public curve
+ // constant, not a secret; the secret scalar goes through constant-time
+ // `multiply`.
+ const k = d.multiply(scalar).multiplyUnsafe(g.cofactor)
+ if (k.is0()) {
+ throw new IdentityKError('SPAKE2 shared secret K is the identity element')
+ }
+ return g.encodePoint(k)
+}
+
+/**
+ * Decodes a peer's share. Received points must be canonical encodings of
+ * points on the curve; noble rejects non-canonical encodings, and anything it
+ * rejects aborts the run with `protocolViolation` (§6.3).
+ */
+function decodePoint(
+ g: Spake2Group,
+ bytes: Uint8Array,
+ field: string
+): GroupPoint {
+ try {
+ return g.Point.fromBytes(bytes)
+ } catch {
+ throw new ProtocolViolationError(
+ `${field} is not a canonical encoding of a curve point`
+ )
+ }
+}
+
+/**
+ * `TT = enc(A_id) ‖ enc(B_id) ‖ enc(pA) ‖ enc(pB) ‖ enc(K) ‖ enc(I2OSP(w, 32))`
+ * (§6.4). The identity arguments are already-assembled byte strings, so the
+ * caller decides what an identity contains: MBP1 passes the §6.4 composites,
+ * while the RFC 9382 vectors pass the bare identity strings. The layout is
+ * identical either way.
+ *
+ * `w` must already be reduced mod the group order — `deriveW` guarantees that.
+ * The value is encoded as given, so an unreduced `w` would produce a
+ * transcript inconsistent with the `pA` the caller derived from it.
+ */
+export function buildTT(
+ aIdentity: Uint8Array,
+ bIdentity: Uint8Array,
+ pA: Uint8Array,
+ pB: Uint8Array,
+ K: Uint8Array,
+ w: bigint
+): Uint8Array {
+ return concatBytes(
+ enc(aIdentity),
+ enc(bIdentity),
+ enc(pA),
+ enc(pB),
+ enc(K),
+ enc(i2ospScalar(w))
+ )
+}
+
+/**
+ * `Ke ‖ Ka = SHA-256(TT)` and
+ * `KcA ‖ KcB = HKDF-SHA-256(ikm=Ka, salt=empty, info="ConfirmationKeys" ‖ AAD, L=32)`,
+ * 16 bytes each (§6.5). Binding the AAD into the confirmation keys is what
+ * makes tampering with any AAD-covered field fail the pairing closed (§6.4).
+ */
+export function keySchedule(
+ tt: Uint8Array,
+ aad: Uint8Array
+): { Ke: Uint8Array; Ka: Uint8Array; KcA: Uint8Array; KcB: Uint8Array } {
+ const digest = new Uint8Array(createHash('sha256').update(tt).digest())
+ const Ka = digest.slice(16)
+ const confirmation = hkdf32(
+ Ka,
+ new Uint8Array(0),
+ concatBytes(CONFIRMATION_KEYS_LABEL, aad)
+ )
+ return {
+ Ke: digest.slice(0, 16),
+ Ka,
+ KcA: confirmation.slice(0, 16),
+ KcB: confirmation.slice(16),
+ }
+}
+
+/** `cA = HMAC-SHA-256(KcA, TT)`, `cB = HMAC-SHA-256(KcB, TT)` (§6.5). */
+export function confirmationMacs(
+ kcA: Uint8Array,
+ kcB: Uint8Array,
+ tt: Uint8Array
+): { cA: Uint8Array; cB: Uint8Array } {
+ return { cA: hmacSha256(kcA, tt), cB: hmacSha256(kcB, tt) }
+}
+
+/**
+ * Pair-session traffic keys derived from `Ke` after mutual confirmation (§6.6).
+ * The `info` labels are deliberately distinct from the §8 reconnect labels, so
+ * key separation never rests on incidental differences in IKM or salt alone.
+ */
+export function pairTrafficKeys(ke: Uint8Array): {
+ kC2S: Uint8Array
+ kS2C: Uint8Array
+} {
+ return {
+ kC2S: hkdf32(ke, PAIR_TRAFFIC_SALT, PAIR_TRAFFIC_INFO_C2S),
+ kS2C: hkdf32(ke, PAIR_TRAFFIC_SALT, PAIR_TRAFFIC_INFO_S2C),
+ }
+}
+
+/**
+ * `I2OSP(w, 32)` — big-endian, zero-padded to the constant transcript width
+ * required by RFC 9382 §3.3 (§6.4).
+ *
+ * A negative or oversized `w` is a broken local invariant, not peer-supplied
+ * data, so these throw plain `Error`: `ProtocolViolationError` is mapped onto
+ * the peer-facing `protocolViolation` pairError, and reporting our own bug as
+ * the peer's violation would misattribute the failure.
+ */
+function i2ospScalar(w: bigint): Uint8Array {
+ if (w < 0n) {
+ throw new Error('w must be non-negative')
+ }
+ const out = new Uint8Array(SCALAR_BYTES)
+ let remaining = w
+ for (let i = SCALAR_BYTES - 1; i >= 0; i--) {
+ out[i] = Number(remaining & 0xffn)
+ remaining >>= 8n
+ }
+ if (remaining !== 0n) {
+ throw new Error('w does not fit in 32 bytes')
+ }
+ return out
+}
diff --git a/src/core/bridge/mbp1/ticket-verify.test.ts b/src/core/bridge/mbp1/ticket-verify.test.ts
new file mode 100644
index 00000000..25ab46b8
--- /dev/null
+++ b/src/core/bridge/mbp1/ticket-verify.test.ts
@@ -0,0 +1,483 @@
+import { ed25519 } from '@noble/curves/ed25519.js'
+import { utf8ToBytes } from '@noble/hashes/utils.js'
+import { describe, expect, it } from 'vitest'
+import { bytesToHex, hexToBytes, loadMbp1Vectors } from './__tests__/vectors'
+import { hmacSha256, toBase64Url } from './canonical'
+import type { TicketContext } from './ticket-verify'
+import {
+ deriveTicketKey,
+ MAX_REMAINING_LIFETIME_MS,
+ TicketReplayCache,
+ ticketMacInput,
+ validateBindingPub,
+ verifyNmTicket,
+ verifyTicketProofStrict,
+} from './ticket-verify'
+
+const v = loadMbp1Vectors()
+const { inputs, expected, mustReject } = v.nmTicket
+
+const ticketKey = deriveTicketKey(inputs.localToken)
+const vectorBindingPub = hexToBytes(inputs.bindingPub)
+
+/** The MAC-covered field set of a ticket, in parsed (not wire) form. */
+interface TicketFields {
+ v: number
+ purpose: string
+ protocolVersion: number
+ serverGeneration: string
+ browser: string
+ callerId: string
+ exp: number
+ bindingPub: Uint8Array
+}
+
+const BASE: TicketFields = {
+ v: inputs.v,
+ purpose: 'mbp1-attestation',
+ protocolVersion: 1,
+ serverGeneration: inputs.serverGeneration,
+ browser: inputs.browser,
+ callerId: inputs.callerId,
+ exp: inputs.exp,
+ bindingPub: vectorBindingPub,
+}
+
+/**
+ * Builds a wire ticket carrying a MAC that is *valid* under the vector
+ * `localToken`. Re-minting matters for every §9.2 row below the MAC row: the
+ * MAC covers `v`, `protocolVersion`, `serverGeneration`, `browser`,
+ * `callerId`, `exp`, and `bindingPub`, so tampering one of those without
+ * re-minting would stop at the MAC row and prove nothing about the row the
+ * test is aiming at. `deriveTicketKey`/`ticketMacInput` are pinned to the
+ * normative vector by the first describe block before being used this way.
+ */
+function minted(over: Partial<TicketFields> = {}): Record<string, unknown> {
+ const t = { ...BASE, ...over }
+ return {
+ ...t,
+ bindingPub: toBase64Url(t.bindingPub),
+ mac: toBase64Url(hmacSha256(ticketKey, ticketMacInput(t))),
+ }
+}
+
+function ctx(over: Partial<TicketContext> = {}): TicketContext {
+ return {
+ localToken: inputs.localToken,
+ serverGeneration: inputs.serverGeneration,
+ nowMs: (inputs.exp - 30) * 1000,
+ helloBrowser: inputs.browser,
+ helloClaimedExtensionId: inputs.callerId,
+ helloTicketBindingKey: vectorBindingPub,
+ replay: new TicketReplayCache(),
+ ...over,
+ }
+}
+
+const smallOrderBindingPubs = mustReject[0].bindingPub as string[]
+const dirtyBindingPub = mustReject[1].bindingPub as string
+const identityBindingPub = mustReject[2].bindingPub as string
+const identityForgerySig = mustReject[2].signature as string
+const sigWithLargeS = mustReject[3].signature as string
+const sigWithNonCanonicalR = mustReject[4].signature as string
+
+describe('ticketKey and canonical MAC input (§9.2)', () => {
+ it('derives ticketKey from localToken alone', () => {
+ expect(bytesToHex(ticketKey)).toBe(expected.ticketKey)
+ })
+
+ it('reproduces the canonical MAC input', () => {
+ expect(bytesToHex(ticketMacInput(BASE))).toBe(expected.canonical)
+ })
+
+ it('reproduces the ticket mac', () => {
+ expect(bytesToHex(hmacSha256(ticketKey, ticketMacInput(BASE)))).toBe(
+ expected.mac
+ )
+ })
+
+ it('mints the vector mac, so re-minted tampered tickets are trustworthy', () => {
+ expect(minted().mac).toBe(toBase64Url(hexToBytes(expected.mac)))
+ })
+
+ it('leads with the fixed domain tag, not the wire purpose (§9.2 vs §6.4)', () => {
+ const other = ticketMacInput({ ...BASE, purpose: 'other' })
+ expect(bytesToHex(other)).toBe(expected.canonical)
+ })
+})
+
+describe('bindingPub validation (§9.1)', () => {
+ it('accepts the vector binding key', () => {
+ expect(validateBindingPub(vectorBindingPub)).toBe(true)
+ })
+
+ it.each(smallOrderBindingPubs)(
+ 'rejects the small-order encoding %s',
+ (hex) => {
+ expect(validateBindingPub(hexToBytes(hex))).toBe(false)
+ }
+ )
+
+ it('rejects a dirty (non-torsion-free) point', () => {
+ expect(validateBindingPub(hexToBytes(dirtyBindingPub))).toBe(false)
+ })
+
+ it('rejects a non-canonical encoding (y = p)', () => {
+ expect(
+ validateBindingPub(
+ hexToBytes(
+ 'edffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7f'
+ )
+ )
+ ).toBe(false)
+ })
+
+ it('rejects a point that is not on the curve', () => {
+ expect(
+ validateBindingPub(
+ hexToBytes(
+ '0200000000000000000000000000000000000000000000000000000000000000'
+ )
+ )
+ ).toBe(false)
+ })
+
+ it('rejects a key that is not 32 bytes', () => {
+ expect(validateBindingPub(vectorBindingPub.subarray(0, 31))).toBe(false)
+ })
+})
+
+describe('verifyNmTicket — valid ticket (§9.2)', () => {
+ it('attests the ticket callerId and defers the §6.5 proof', () => {
+ expect(verifyNmTicket(minted(), ctx())).toEqual({
+ kind: 'attested',
+ callerId: inputs.callerId,
+ deferredProof: { bindingPub: vectorBindingPub },
+ })
+ })
+
+ it('accepts a remaining lifetime of exactly 60 s', () => {
+ const verdict = verifyNmTicket(
+ minted(),
+ ctx({ nowMs: (inputs.exp - 60) * 1000 })
+ )
+ expect(verdict.kind).toBe('attested')
+ })
+})
+
+describe('verifyNmTicket — abort rows (§9.2)', () => {
+ it('aborts when the mac fails constant-time recompute', () => {
+ const wire = minted()
+ const mac = hexToBytes(expected.mac)
+ mac[0] ^= 0x01
+ expect(verifyNmTicket({ ...wire, mac: toBase64Url(mac) }, ctx())).toEqual({
+ kind: 'abort',
+ reason: 'macMismatch',
+ })
+ })
+
+ it('aborts when the mac has the wrong length', () => {
+ const wire = minted()
+ const short = hexToBytes(expected.mac).subarray(0, 31)
+ expect(verifyNmTicket({ ...wire, mac: toBase64Url(short) }, ctx())).toEqual(
+ { kind: 'abort', reason: 'macMismatch' }
+ )
+ })
+
+ it('aborts when v is not exactly 1', () => {
+ expect(verifyNmTicket(minted({ v: 2 }), ctx())).toEqual({
+ kind: 'abort',
+ reason: 'formatMismatch',
+ })
+ })
+
+ it('aborts when purpose is not exactly "mbp1-attestation"', () => {
+ expect(verifyNmTicket(minted({ purpose: 'other' }), ctx())).toEqual({
+ kind: 'abort',
+ reason: 'formatMismatch',
+ })
+ })
+
+ it('aborts when protocolVersion is not exactly 1', () => {
+ expect(verifyNmTicket(minted({ protocolVersion: 2 }), ctx())).toEqual({
+ kind: 'abort',
+ reason: 'formatMismatch',
+ })
+ })
+
+ it.each(smallOrderBindingPubs)(
+ 'aborts on the small-order bindingPub %s',
+ (hex) => {
+ const bindingPub = hexToBytes(hex)
+ expect(
+ verifyNmTicket(
+ minted({ bindingPub }),
+ ctx({ helloTicketBindingKey: bindingPub })
+ )
+ ).toEqual({ kind: 'abort', reason: 'bindingKeyInvalid' })
+ }
+ )
+
+ it('aborts on a dirty (non-torsion-free) bindingPub', () => {
+ const bindingPub = hexToBytes(dirtyBindingPub)
+ expect(
+ verifyNmTicket(
+ minted({ bindingPub }),
+ ctx({ helloTicketBindingKey: bindingPub })
+ )
+ ).toEqual({ kind: 'abort', reason: 'bindingKeyInvalid' })
+ })
+
+ it('aborts when bindingPub differs from pairHello.ticketBindingKey', () => {
+ const otherKey = ed25519.getPublicKey(hexToBytes(expected.ticketKey))
+ expect(
+ verifyNmTicket(minted(), ctx({ helloTicketBindingKey: otherKey }))
+ ).toEqual({ kind: 'abort', reason: 'bindingKeyMismatch' })
+ })
+
+ it('aborts when pairHello carried no ticketBindingKey', () => {
+ expect(
+ verifyNmTicket(minted(), ctx({ helloTicketBindingKey: null }))
+ ).toEqual({ kind: 'abort', reason: 'bindingKeyMismatch' })
+ })
+
+ it('aborts when callerId differs from pairHello.claimedExtensionId', () => {
+ expect(verifyNmTicket(minted({ callerId: 'a'.repeat(32) }), ctx())).toEqual(
+ { kind: 'abort', reason: 'callerIdMismatch' }
+ )
+ })
+
+ it('aborts when nmTicket.browser differs from pairHello.browser', () => {
+ expect(verifyNmTicket(minted({ browser: 'firefox' }), ctx())).toEqual({
+ kind: 'abort',
+ reason: 'browserMismatch',
+ })
+ })
+
+ it('aborts on a replayed ticket mac (one-shot)', () => {
+ const shared = ctx()
+ expect(verifyNmTicket(minted(), shared).kind).toBe('attested')
+ expect(verifyNmTicket(minted(), shared)).toEqual({
+ kind: 'abort',
+ reason: 'replayed',
+ })
+ })
+
+ it('aborts when the remaining lifetime exceeds 60 s', () => {
+ expect(
+ verifyNmTicket(minted(), ctx({ nowMs: (inputs.exp - 3600) * 1000 }))
+ ).toEqual({ kind: 'abort', reason: 'expTooFar' })
+ })
+
+ it('aborts on a structurally invalid wire object', () => {
+ expect(verifyNmTicket({ v: 1 }, ctx())).toEqual({
+ kind: 'abort',
+ reason: 'schema',
+ })
+ expect(verifyNmTicket(null, ctx())).toEqual({
+ kind: 'abort',
+ reason: 'schema',
+ })
+ })
+
+ it('aborts on an unknown wire field, which no MAC or digest covers', () => {
+ expect(verifyNmTicket({ ...minted(), extra: 1 }, ctx())).toEqual({
+ kind: 'abort',
+ reason: 'schema',
+ })
+ })
+
+ it('aborts on a non-ASCII string field (§2)', () => {
+ const wire = { ...minted(), callerId: 'ibpkjhgpbidfmbmomagmldcdlpbmchgé' }
+ expect(verifyNmTicket(wire, ctx())).toEqual({
+ kind: 'abort',
+ reason: 'schema',
+ })
+ })
+
+ it('aborts on padded (non-canonical) base64url ticket bytes', () => {
+ const wire = minted()
+ expect(
+ verifyNmTicket(
+ { ...wire, bindingPub: `${wire.bindingPub as string}=` },
+ ctx()
+ )
+ ).toEqual({ kind: 'abort', reason: 'schema' })
+ })
+})
+
+describe('verifyNmTicket — downgrade rows (§9.2)', () => {
+ it('downgrades an authentic ticket from an unknown server generation', () => {
+ expect(
+ verifyNmTicket(
+ minted(),
+ ctx({ serverGeneration: '00000000-0000-4000-8000-000000000000' })
+ )
+ ).toEqual({
+ kind: 'downgrade',
+ reason: 'unknownGeneration',
+ deferredProof: { bindingPub: vectorBindingPub },
+ })
+ })
+
+ it('downgrades an authentic ticket that has expired', () => {
+ expect(
+ verifyNmTicket(minted(), ctx({ nowMs: (inputs.exp + 1) * 1000 }))
+ ).toEqual({
+ kind: 'downgrade',
+ reason: 'expired',
+ deferredProof: { bindingPub: vectorBindingPub },
+ })
+ })
+
+ it('aborts rather than downgrades when a stale generation also has a bad mac', () => {
+ const wire = minted()
+ const mac = hexToBytes(expected.mac)
+ mac[31] ^= 0x80
+ expect(
+ verifyNmTicket(
+ { ...wire, mac: toBase64Url(mac) },
+ ctx({ serverGeneration: '00000000-0000-4000-8000-000000000000' })
+ )
+ ).toEqual({ kind: 'abort', reason: 'macMismatch' })
+ })
+})
+
+describe('verifyNmTicket — identity rows (§5)', () => {
+ // This module proves *which* extension called; §5 leaves the official vs
+ // attested-non-official split to the immutable allowlist, which the pairing
+ // wiring owns. These two rows assert that the attested verdict carries the
+ // MAC-covered ticket `callerId` — the value that allowlist lookup consumes.
+ it('yields a callerId that resolves to official when allowlisted', () => {
+ const verdict = verifyNmTicket(minted(), ctx())
+ expect(verdict).toMatchObject({ kind: 'attested' })
+ const allowlist = [inputs.callerId]
+ expect(
+ verdict.kind === 'attested' && allowlist.includes(verdict.callerId)
+ ).toBe(true)
+ })
+
+ it('yields a callerId that resolves to attested-non-official otherwise', () => {
+ const verdict = verifyNmTicket(minted(), ctx())
+ expect(verdict).toMatchObject({ kind: 'attested' })
+ const allowlist = ['b'.repeat(32)]
+ expect(
+ verdict.kind === 'attested' && allowlist.includes(verdict.callerId)
+ ).toBe(false)
+ })
+})
+
+describe('deferred ticketProof verification (§6.5, §9.1)', () => {
+ const tt = hexToBytes(v.spake2[0].expected.TT)
+ const proof = hexToBytes(v.spake2[0].expected.ticketProof as string)
+
+ it('accepts the vector proof under the vector bindingPub', () => {
+ expect(verifyTicketProofStrict(vectorBindingPub, tt, proof)).toBe(true)
+ })
+
+ it('rejects a proof over a different transcript', () => {
+ const other = Uint8Array.from(tt)
+ other[0] ^= 0x01
+ expect(verifyTicketProofStrict(vectorBindingPub, other, proof)).toBe(false)
+ })
+
+ it('stops the (identity ‖ 0) forgery at the key check, before verification', () => {
+ expect(validateBindingPub(hexToBytes(identityBindingPub))).toBe(false)
+ })
+
+ it('also rejects the (identity ‖ 0) forgery in strict mode (zip215:false)', () => {
+ // noble's own default is the permissive zip215:true, which accepts this
+ // signature for every message. This is the only vector input that tells
+ // the two modes apart, so it is the regression guard for the option.
+ expect(
+ verifyTicketProofStrict(
+ hexToBytes(identityBindingPub),
+ tt,
+ hexToBytes(identityForgerySig)
+ )
+ ).toBe(false)
+ })
+
+ it('rejects S >= ell under RFC 8032 strict mode', () => {
+ expect(
+ verifyTicketProofStrict(vectorBindingPub, tt, hexToBytes(sigWithLargeS))
+ ).toBe(false)
+ })
+
+ it('rejects a non-canonical R encoding under RFC 8032 strict mode', () => {
+ expect(
+ verifyTicketProofStrict(
+ vectorBindingPub,
+ tt,
+ hexToBytes(sigWithNonCanonicalR)
+ )
+ ).toBe(false)
+ })
+
+ it('returns false instead of throwing on a signature that is not 64 bytes', () => {
+ expect(
+ verifyTicketProofStrict(vectorBindingPub, tt, proof.subarray(0, 63))
+ ).toBe(false)
+ })
+
+ it('binds the proof to the "MBP1/ticket-proof/v1" label', () => {
+ const seed = hexToBytes(v.spake2[0].inputs.bindingSeed)
+ const unlabelled = ed25519.sign(tt, seed)
+ expect(verifyTicketProofStrict(vectorBindingPub, tt, unlabelled)).toBe(
+ false
+ )
+ const labelled = ed25519.sign(
+ new Uint8Array([...utf8ToBytes('MBP1/ticket-proof/v1'), ...tt]),
+ seed
+ )
+ expect(bytesToHex(labelled)).toBe(v.spake2[0].expected.ticketProof)
+ })
+})
+
+describe('TicketReplayCache', () => {
+ it('remembers a mac until it is pruned past its exp', () => {
+ const cache = new TicketReplayCache()
+ const key = toBase64Url(hexToBytes(expected.mac))
+ cache.add(key, inputs.exp * 1000, inputs.exp * 1000 - 1000)
+ expect(cache.has(key)).toBe(true)
+ cache.prune(inputs.exp * 1000 - 1)
+ expect(cache.has(key)).toBe(true)
+ cache.prune(inputs.exp * 1000)
+ expect(cache.has(key)).toBe(false)
+ })
+
+ it('clamps retention so a far-future exp cannot pin an entry forever', () => {
+ // `add` runs before the `expTooFar` row, so an absurd `exp` from a host
+ // holding `localToken` would otherwise leave an entry `prune` never drops.
+ const cache = new TicketReplayCache()
+ const key = toBase64Url(hexToBytes(expected.mac))
+ const now = 1_000_000
+ cache.add(key, now + 100 * 365 * 24 * 3600 * 1000, now)
+
+ expect(cache.has(key)).toBe(true)
+ cache.prune(now + MAX_REMAINING_LIFETIME_MS - 1)
+ expect(cache.has(key)).toBe(true)
+ cache.prune(now + MAX_REMAINING_LIFETIME_MS)
+ expect(cache.has(key)).toBe(false)
+ })
+
+ it('still honours an exp nearer than the clamp', () => {
+ const cache = new TicketReplayCache()
+ const key = toBase64Url(hexToBytes(expected.mac))
+ const now = 1_000_000
+ cache.add(key, now + 5_000, now)
+
+ cache.prune(now + 5_000)
+ expect(cache.has(key)).toBe(false)
+ })
+
+ it('cannot raise identity by replaying a ticket whose entry was pruned', () => {
+ const shared = ctx()
+ expect(verifyNmTicket(minted(), shared).kind).toBe('attested')
+ const later = { ...shared, nowMs: (inputs.exp + 1) * 1000 }
+ expect(verifyNmTicket(minted(), later)).toMatchObject({
+ kind: 'downgrade',
+ reason: 'expired',
+ })
+ })
+})
diff --git a/src/core/bridge/mbp1/ticket-verify.ts b/src/core/bridge/mbp1/ticket-verify.ts
new file mode 100644
index 00000000..da832032
--- /dev/null
+++ b/src/core/bridge/mbp1/ticket-verify.ts
@@ -0,0 +1,419 @@
+// MBP1 NM attestation-ticket verification
+// (docs/bridge-pairing-protocol.md §9.1, §9.2, §5).
+//
+// The native-messaging host is the only party that can mint a ticket: the
+// `ticketKey` derives from `localToken`, which never leaves the host side
+// (§9.1). Verifying a ticket at `pairHello` is therefore what lets the server
+// resolve the §5 identity tri-state for a caller whose origin it cannot
+// otherwise attribute.
+//
+// Two properties of §9.2 are load-bearing and easy to break by "tidying" the
+// control flow:
+//
+// 1. **The MAC is verified first.** `ticketKey` depends on `localToken`
+// alone, which persists across bridge restarts while `serverGeneration`
+// rotates. Checking the MAC before the generation / `exp` / `callerId`
+// checks is what makes an honest ticket minted by a *previous* generation
+// resolve as a semantic `unverified` downgrade instead of being
+// misclassified as a forged-MAC abort — and conversely keeps a genuinely
+// forged MAC an abort no matter what its `serverGeneration` says.
+// Reordering these checks converts an abort into a downgrade and hands an
+// attacker a semantic bypass.
+// 2. **Structural and cryptographic failures abort; only content failures
+// downgrade.** A legitimate extension never presents a malformed ticket,
+// and §6.4's ticket digest already fails in-transit tampering closed at
+// key confirmation. Aborting also resolves the otherwise contradictory
+// case where §6.5 demands a valid `ticketProof` that an invalid
+// `bindingPub` could never satisfy.
+//
+// The MAC input's leading element is the fixed domain tag
+// `enc("mbp1-attestation")`, *not* the wire `purpose` field — the opposite
+// convention from §6.4's `ticketDigest`, which hashes the wire value so that
+// flipping `purpose` still changes the digest. Both are deliberate.
+//
+// Validation here runs before the approval dialog and touches no prompt or
+// failure counter (§9.2), so a corrupted ticket cannot amplify the DoS
+// surface. `localToken`, `ticketKey`, and the ticket MAC are all secret or
+// secret-adjacent (§9.1, §11), so this module logs nothing at any level.
+
+import { timingSafeEqual } from 'node:crypto'
+import { ed25519 } from '@noble/curves/ed25519.js'
+import { utf8ToBytes } from '@noble/hashes/utils.js'
+import { z } from 'zod'
+import {
+ concatBytes,
+ enc,
+ encU32BE,
+ encU64BE,
+ fromBase64Url,
+ hkdf32,
+ hmacSha256,
+ toBase64Url,
+} from './canonical'
+import type { TicketWire } from './transcript'
+
+/** The only `v`, `purpose`, and `protocolVersion` a v1 ticket may carry (§9.2). */
+const TICKET_VERSION = 1
+const TICKET_PURPOSE = 'mbp1-attestation'
+const TICKET_PROTOCOL_VERSION = 1
+
+const TICKET_KEY_SALT = utf8ToBytes('MBP1/nm-ticket/v1')
+const TICKET_KEY_INFO = utf8ToBytes('mac')
+const MAC_DOMAIN_TAG = enc(TICKET_PURPOSE)
+const PROOF_LABEL = utf8ToBytes('MBP1/ticket-proof/v1')
+
+const POINT_LENGTH = 32
+const SIGNATURE_LENGTH = 64
+
+/** `exp` is a remaining-lifetime bound, not a mint timestamp (§9.2). */
+export const MAX_REMAINING_LIFETIME_MS = 60_000
+
+/** Which §9.2 abort row a ticket hit. Every value maps to `pairError {code:"protocolViolation"}`. */
+export type TicketAbortReason =
+ | 'schema'
+ | 'macMismatch'
+ | 'formatMismatch'
+ | 'bindingKeyInvalid'
+ | 'bindingKeyMismatch'
+ | 'callerIdMismatch'
+ | 'browserMismatch'
+ | 'replayed'
+ | 'expTooFar'
+
+/** Which §9.2 downgrade row a ticket hit. Both map to the §5 `unverified` state. */
+export type TicketDowngradeReason = 'unknownGeneration' | 'expired'
+
+/**
+ * The §6.5 obligation that §9.2's last two table rows defer out of
+ * `pairHello`: whenever a ticket was presented, `confirmA.ticketProof` MUST be
+ * a 64-byte Ed25519 signature over `"MBP1/ticket-proof/v1" ‖ TT` that verifies
+ * under this `bindingPub` in the strict mode of §9.1. A proof that is not 64
+ * bytes is a `protocolViolation`; a well-formed proof that fails to verify is
+ * a `codeMismatch` that consumes an attempt (§6.5, §7.2). Neither outcome is
+ * knowable at `pairHello`, so a non-abort verdict only names the obligation
+ * and the key it must be discharged against.
+ */
+export interface DeferredTicketProof {
+ bindingPub: Uint8Array
+}
+
+/**
+ * The three dispositions of §9.2's exhaustive outcome table. `attested`
+ * carries the *proven* caller identity; whether that identity is `official` or
+ * `attested-non-official` is decided by the immutable allowlist (§5), never
+ * here.
+ */
+export type TicketVerdict =
+ | { kind: 'abort'; reason: TicketAbortReason }
+ | {
+ kind: 'downgrade'
+ reason: TicketDowngradeReason
+ deferredProof: DeferredTicketProof
+ }
+ | { kind: 'attested'; callerId: string; deferredProof: DeferredTicketProof }
+
+/** Everything §9.2 compares a ticket against: the host secret, the live generation, the clock, and the `pairHello` fields. */
+export interface TicketContext {
+ localToken: string
+ serverGeneration: string
+ nowMs: number
+ helloBrowser: string
+ helloClaimedExtensionId: string
+ /** Raw `pairHello.ticketBindingKey`, or `null` when the field was absent. */
+ helloTicketBindingKey: Uint8Array | null
+ replay: TicketReplayCache
+}
+
+/**
+ * `ticketKey = HKDF-SHA-256(ikm=UTF8(localToken), salt="MBP1/nm-ticket/v1",
+ * info="mac", L=32)` (§9.2). Depends on `localToken` alone, which is why
+ * `localToken` MUST persist across bridge restarts: a rotated `localToken`
+ * turns every outstanding honest ticket into a MAC abort instead of the
+ * intended generation downgrade.
+ */
+export function deriveTicketKey(localToken: string): Uint8Array {
+ return hkdf32(utf8ToBytes(localToken), TICKET_KEY_SALT, TICKET_KEY_INFO)
+}
+
+/**
+ * `enc("mbp1-attestation") ‖ encU32BE(v) ‖ encU32BE(protocolVersion)
+ * ‖ enc(serverGeneration) ‖ enc(browser) ‖ enc(callerId) ‖ encU64BE(exp)
+ * ‖ enc(bindingPub)` (§9.2).
+ *
+ * `purpose` is part of the parameter only because a ticket carries it on the
+ * wire; the MAC covers the fixed domain tag instead, so the wire value cannot
+ * change these bytes. §6.4's `ticketDigest` is what pins `purpose`.
+ */
+export function ticketMacInput(t: Omit<TicketWire, 'mac'>): Uint8Array {
+ return concatBytes(
+ MAC_DOMAIN_TAG,
+ encU32BE(t.v),
+ encU32BE(t.protocolVersion),
+ enc(t.serverGeneration),
+ enc(t.browser),
+ enc(t.callerId),
+ encU64BE(t.exp),
+ enc(t.bindingPub)
+ )
+}
+
+/**
+ * §9.1 binding-key validation: a canonical RFC 8032 encoding of an
+ * on-curve point that is not the identity, not of small order, and lies in
+ * the prime-order subgroup.
+ *
+ * Skipping this check is what would turn the ticket into a bearer object:
+ * `bindingPub` = identity together with `ticketProof` = (identity ‖ 0)
+ * satisfies the group equation for *every* message, so possession of
+ * `bindingPriv` would prove nothing.
+ */
+export function validateBindingPub(bytes: Uint8Array): boolean {
+ if (bytes.length !== POINT_LENGTH) {
+ return false
+ }
+ try {
+ // `fromBytes` is the canonical RFC 8032 decode (it rejects `y >= p` and
+ // off-curve encodings by throwing); `is0` is the identity test. The
+ // identity is doubly covered, since `ord(identity) = 1` divides 8.
+ const point = ed25519.Point.fromBytes(bytes)
+ return !point.is0() && !point.isSmallOrder() && point.isTorsionFree()
+ } catch {
+ return false
+ }
+}
+
+/**
+ * Verifies a §6.5 `ticketProof`: an Ed25519 signature over
+ * `"MBP1/ticket-proof/v1" ‖ TT` under `bindingPub`, in **RFC 8032 strict mode
+ * (`zip215: false`)**. The permissive ZIP-215 default MUST NOT be used (§9.1):
+ * it accepts non-canonical `R` encodings and the (identity ‖ 0) forgery that
+ * strict mode rejects.
+ *
+ * Callers own the §6.5 disposition split, which this boolean cannot express: a
+ * proof that is not `SIGNATURE_LENGTH` bytes is a `protocolViolation` and MUST
+ * be rejected before this call, whereas `false` from a well-formed proof is a
+ * `codeMismatch` that consumes an attempt. A wrong-length signature returns
+ * `false` here only so a missed length check can never become a silent pass.
+ *
+ * `bindingPub` is *not* re-validated here: §9.2's binding-key row already
+ * aborted the pairing before §6.5 can be reached, which is the normative order.
+ * Strict mode independently rejects a small-order key, so the (identity ‖ 0)
+ * bearer forgery fails here too rather than depending on that ordering.
+ *
+ * Conformance caveat (§9.1): noble's strict mode still checks the *cofactored*
+ * equation, so a signer that legitimately knows `bindingPriv` can produce a
+ * torsion-tweaked signature this accepts. That requires the private key, so it
+ * is not a forgery and MBP1 does not rely on cofactorless equality.
+ */
+export function verifyTicketProofStrict(
+ bindingPub: Uint8Array,
+ tt: Uint8Array,
+ sig: Uint8Array
+): boolean {
+ if (sig.length !== SIGNATURE_LENGTH) {
+ return false
+ }
+ try {
+ return ed25519.verify(sig, concatBytes(PROOF_LABEL, tt), bindingPub, {
+ zip215: false,
+ })
+ } catch {
+ return false
+ }
+}
+
+/**
+ * One-shot store for ticket MACs, keyed by the canonical base64url encoding of
+ * the 32 MAC bytes (§9.2 replay row). Entries are retained until their
+ * ticket's `exp` passes: after that the ticket can only resolve as the
+ * `expired` downgrade, which grants no identity a ticketless peer would not
+ * already get, so pruning cannot be used to raise an identity.
+ *
+ * **Scope is one process.** The one-shot guarantee does not survive a restart,
+ * and nothing rescues it except `serverGeneration` rotating on every bridge
+ * start: a ticket replayed into a later process downgrades to `unverified` on
+ * the generation row, which is exactly what presenting no ticket at all yields.
+ * A change that ever made `serverGeneration` persist across restarts would
+ * therefore open a real one-shot replay window here and must restore a durable
+ * cache in the same change.
+ */
+export class TicketReplayCache {
+ private readonly seen = new Map<string, number>()
+
+ has(macB64: string): boolean {
+ return this.seen.has(macB64)
+ }
+
+ /**
+ * Records a consumed MAC. Retention is clamped to
+ * `min(expMs, nowMs + MAX_REMAINING_LIFETIME_MS)` because `add` runs *before*
+ * the `expTooFar` row: without the clamp, a buggy or compromised host holding
+ * `localToken` could mint tickets whose `exp` is centuries away and pin an
+ * entry `prune` can never remove, growing the map for the life of the
+ * process. The clamp costs nothing — a ticket beyond the remaining-lifetime
+ * bound is aborted on the very next row and can never be honoured, so there
+ * is no window in which forgetting it early admits anything.
+ */
+ add(macB64: string, expMs: number, nowMs: number): void {
+ this.seen.set(macB64, Math.min(expMs, nowMs + MAX_REMAINING_LIFETIME_MS))
+ }
+
+ prune(nowMs: number): void {
+ for (const [macB64, expMs] of this.seen) {
+ if (expMs <= nowMs) {
+ this.seen.delete(macB64)
+ }
+ }
+ }
+}
+
+/** `exp` in seconds, bounded so `exp * 1000` stays an exact JS integer. */
+const MAX_EXP_SECONDS = Math.floor(Number.MAX_SAFE_INTEGER / 1000)
+
+/**
+ * The wire shape of `pairHello.nmTicket` (§9.2). Structural only: the exact
+ * `v` / `purpose` / `protocolVersion` values are a separate §9.2 row checked
+ * *after* the MAC, so enforcing them here would preempt the normative order.
+ * The integer bounds keep `ticketMacInput`'s encoders in range.
+ *
+ * Strict, because §9.2 states that every wire field except `mac` is MAC-covered
+ * so that no field can be swapped independently. An unknown extra field would
+ * be covered by neither the MAC nor §6.4's ticket digest, so accepting and
+ * silently dropping one would weaken that invariant; a legitimate host — which
+ * mints exactly these nine fields — never sends one.
+ */
+const ticketWireSchema = z
+ .object({
+ v: z.number().int().min(0).max(0xffff_ffff),
+ purpose: z.string(),
+ protocolVersion: z.number().int().min(0).max(0xffff_ffff),
+ serverGeneration: z.string(),
+ browser: z.string(),
+ callerId: z.string(),
+ exp: z.number().int().min(0).max(MAX_EXP_SECONDS),
+ bindingPub: z.string(),
+ mac: z.string(),
+ })
+ .strict()
+
+interface ParsedTicket {
+ ticket: TicketWire
+ macInput: Uint8Array
+}
+
+/**
+ * Parses the wire object into the field values §9.2 encodes, returning `null`
+ * for anything that cannot be canonically decoded at all — a bad shape, a
+ * padded or non-canonical base64url field, or a non-ASCII string field (§2).
+ * This is the one rejection that necessarily precedes the MAC check: without
+ * these bytes there is no MAC to recompute.
+ */
+function parseTicketWire(wire: unknown): ParsedTicket | null {
+ const parsed = ticketWireSchema.safeParse(wire)
+ if (!parsed.success) {
+ return null
+ }
+ try {
+ const ticket: TicketWire = {
+ ...parsed.data,
+ bindingPub: fromBase64Url(parsed.data.bindingPub),
+ mac: fromBase64Url(parsed.data.mac),
+ }
+ return { ticket, macInput: ticketMacInput(ticket) }
+ } catch {
+ return null
+ }
+}
+
+/** Constant-time byte equality; lengths are public, so an early length exit leaks nothing (§2). */
+function constantTimeEqual(a: Uint8Array, b: Uint8Array): boolean {
+ return a.length === b.length && timingSafeEqual(a, b)
+}
+
+function abort(reason: TicketAbortReason): TicketVerdict {
+ return { kind: 'abort', reason }
+}
+
+/**
+ * Applies §9.2's exhaustive outcome table to a presented `nmTicket`, in the
+ * table's normative order — MAC first, then the format, binding-key, caller,
+ * browser, replay, and lifetime abort rows, then the two downgrade rows.
+ *
+ * Called only when a ticket *was* presented: a caller that presents none is
+ * unaffected and resolves its identity from the verified origin alone (§5).
+ * A structural abort takes precedence over identity, so an abort verdict ends
+ * the pairing even for a caller that the verified origin would make
+ * `official`.
+ */
+export function verifyNmTicket(
+ wire: unknown,
+ ctx: TicketContext
+): TicketVerdict {
+ const parsed = parseTicketWire(wire)
+ if (parsed === null) {
+ return abort('schema')
+ }
+ const t = parsed.ticket
+
+ // §9.2: the mac is verified first, before any semantic check.
+ const expectedMac = hmacSha256(
+ deriveTicketKey(ctx.localToken),
+ parsed.macInput
+ )
+ if (!constantTimeEqual(t.mac, expectedMac)) {
+ return abort('macMismatch')
+ }
+
+ if (
+ t.v !== TICKET_VERSION ||
+ t.purpose !== TICKET_PURPOSE ||
+ t.protocolVersion !== TICKET_PROTOCOL_VERSION
+ ) {
+ return abort('formatMismatch')
+ }
+
+ if (!validateBindingPub(t.bindingPub)) {
+ return abort('bindingKeyInvalid')
+ }
+
+ if (
+ ctx.helloTicketBindingKey === null ||
+ !constantTimeEqual(t.bindingPub, ctx.helloTicketBindingKey)
+ ) {
+ return abort('bindingKeyMismatch')
+ }
+
+ if (t.callerId !== ctx.helloClaimedExtensionId) {
+ return abort('callerIdMismatch')
+ }
+
+ if (t.browser !== ctx.helloBrowser) {
+ return abort('browserMismatch')
+ }
+
+ const expMs = t.exp * 1000
+ const macKey = toBase64Url(t.mac)
+ ctx.replay.prune(ctx.nowMs)
+ if (ctx.replay.has(macKey)) {
+ return abort('replayed')
+ }
+ // Consumed at the table's replay position: every preceding abort row has
+ // passed, so the ticket has been used even if a later row rejects it.
+ ctx.replay.add(macKey, expMs, ctx.nowMs)
+
+ if (expMs > ctx.nowMs + MAX_REMAINING_LIFETIME_MS) {
+ return abort('expTooFar')
+ }
+
+ const deferredProof: DeferredTicketProof = { bindingPub: t.bindingPub }
+
+ if (t.serverGeneration !== ctx.serverGeneration) {
+ return { kind: 'downgrade', reason: 'unknownGeneration', deferredProof }
+ }
+
+ if (expMs <= ctx.nowMs) {
+ return { kind: 'downgrade', reason: 'expired', deferredProof }
+ }
+
+ return { kind: 'attested', callerId: t.callerId, deferredProof }
+}
diff --git a/src/core/bridge/mbp1/transcript.test.ts b/src/core/bridge/mbp1/transcript.test.ts
new file mode 100644
index 00000000..03fa79f5
--- /dev/null
+++ b/src/core/bridge/mbp1/transcript.test.ts
@@ -0,0 +1,74 @@
+import { describe, expect, it } from 'vitest'
+import { bytesToHex, hexToBytes, loadMbp1Vectors } from './__tests__/vectors'
+import { buildAad, buildAId, buildBId, ticketDigest } from './transcript'
+
+const v = loadMbp1Vectors()
+const v0 = v.spake2[0]
+const v1 = v.spake2[1]
+
+describe('identities (§6.4)', () => {
+ it('reproduces A_id from the pairHello fields', () => {
+ const aId = buildAId({
+ browser: v0.inputs.browser,
+ verifiedOrigin: v0.inputs.verifiedOrigin,
+ claimedExtensionId: v0.inputs.claimedExtensionId,
+ clientInstallationId: v0.inputs.clientInstallationId,
+ })
+ expect(bytesToHex(aId)).toBe(v0.intermediate.aId)
+ })
+
+ it('reproduces B_id from the instance id', () => {
+ const bId = buildBId(v0.inputs.instanceId)
+ expect(bytesToHex(bId)).toBe(v0.intermediate.bId)
+ })
+})
+
+describe('ticketDigest (§6.4)', () => {
+ it('reproduces the ticket digest over the wire purpose string, not a fixed domain tag', () => {
+ const digest = ticketDigest({
+ v: v.nmTicket.inputs.v,
+ purpose: 'mbp1-attestation',
+ protocolVersion: 1,
+ serverGeneration: v.nmTicket.inputs.serverGeneration,
+ browser: v.nmTicket.inputs.browser,
+ callerId: v.nmTicket.inputs.callerId,
+ exp: v.nmTicket.inputs.exp,
+ bindingPub: hexToBytes(v.nmTicket.inputs.bindingPub),
+ mac: hexToBytes(v.nmTicket.expected.mac),
+ })
+ expect(bytesToHex(digest)).toBe(v.nmTicket.expected.ticketDigest)
+ expect(bytesToHex(digest)).toBe(v0.intermediate.ticketDigest)
+ })
+
+ it('changes when the wire purpose string flips (not hashing the fixed MAC domain tag)', () => {
+ const digest = ticketDigest({
+ v: v.nmTicket.inputs.v,
+ purpose: 'something-else',
+ protocolVersion: 1,
+ serverGeneration: v.nmTicket.inputs.serverGeneration,
+ browser: v.nmTicket.inputs.browser,
+ callerId: v.nmTicket.inputs.callerId,
+ exp: v.nmTicket.inputs.exp,
+ bindingPub: hexToBytes(v.nmTicket.inputs.bindingPub),
+ mac: hexToBytes(v.nmTicket.expected.mac),
+ })
+ expect(bytesToHex(digest)).not.toBe(v.nmTicket.expected.ticketDigest)
+ })
+})
+
+describe('AAD (§6.4)', () => {
+ it('reproduces the ticketed AAD', () => {
+ const aad = buildAad(
+ 1,
+ v0.inputs.pairNonce,
+ hexToBytes(v0.intermediate.bindingPub),
+ hexToBytes(v0.intermediate.ticketDigest)
+ )
+ expect(bytesToHex(aad)).toBe(v0.intermediate.aad)
+ })
+
+ it('reproduces the ticketless AAD with empty enc("") slots', () => {
+ const aad = buildAad(1, v0.inputs.pairNonce, null, null)
+ expect(bytesToHex(aad)).toBe(v1.intermediate.aad)
+ })
+})
diff --git a/src/core/bridge/mbp1/transcript.ts b/src/core/bridge/mbp1/transcript.ts
new file mode 100644
index 00000000..380c8c74
--- /dev/null
+++ b/src/core/bridge/mbp1/transcript.ts
@@ -0,0 +1,102 @@
+// MBP1 transcript identities, AAD, and ticket digest
+// (docs/bridge-pairing-protocol.md §6.4).
+//
+// `buildTT` in `spake2-core.ts` already owns the TT byte layout; this module
+// supplies the identity byte strings (`A_id`, `B_id`) it composes, plus the
+// AAD and ticket digest bound into confirmation via `keySchedule`. Nothing
+// here is secret on its own, but a ticket digest and AAD feed directly into
+// key confirmation, so getting the field order wrong silently desynchronizes
+// both parties rather than throwing.
+
+import { createHash } from 'node:crypto'
+import { concatBytes, enc, encU32BE, encU64BE } from './canonical'
+
+const A_ID_LABEL = 'MBP1/A/v1'
+const B_ID_LABEL = 'MBP1/B/v1'
+const B_ID_ROLE = 'motrix-bridge'
+const EMPTY = ''
+
+/** `A_id = enc("MBP1/A/v1") ‖ enc(browser) ‖ enc(verifiedOrigin) ‖ enc(claimedExtensionId) ‖ enc(clientInstallationId)` (§6.4). */
+export function buildAId(f: {
+ browser: string
+ verifiedOrigin: string
+ claimedExtensionId: string
+ clientInstallationId: string
+}): Uint8Array {
+ return concatBytes(
+ enc(A_ID_LABEL),
+ enc(f.browser),
+ enc(f.verifiedOrigin),
+ enc(f.claimedExtensionId),
+ enc(f.clientInstallationId)
+ )
+}
+
+/** `B_id = enc("MBP1/B/v1") ‖ enc("motrix-bridge") ‖ enc(instanceId)` (§6.4). */
+export function buildBId(instanceId: string): Uint8Array {
+ return concatBytes(enc(B_ID_LABEL), enc(B_ID_ROLE), enc(instanceId))
+}
+
+/**
+ * The parsed values of every wire field of an `nmTicket` (§9.2), used to
+ * compute the AAD's `ticketDigest` (§6.4). `bindingPub` and `mac` are the raw
+ * bytes their base64url wire encodings decode to.
+ */
+export interface TicketWire {
+ v: number
+ purpose: string
+ protocolVersion: number
+ serverGeneration: string
+ browser: string
+ callerId: string
+ exp: number
+ bindingPub: Uint8Array
+ mac: Uint8Array
+}
+
+/**
+ * `ticketDigest = SHA-256(encU32BE(v) ‖ enc(purpose) ‖ encU32BE(protocolVersion)
+ * ‖ enc(serverGeneration) ‖ enc(browser) ‖ enc(callerId) ‖ encU64BE(exp)
+ * ‖ enc(bindingPub) ‖ enc(mac))` (§6.4).
+ *
+ * This hashes the **wire `purpose` string** as received, not the fixed
+ * `"mbp1-attestation"` domain tag the §9.2 MAC input hard-codes — that
+ * deliberate difference is what makes flipping `purpose` (or any other wire
+ * field, including `mac` itself) change the digest and fail key confirmation
+ * closed, rather than being absorbed by a MAC that never covers `purpose`.
+ */
+export function ticketDigest(t: TicketWire): Uint8Array {
+ const data = concatBytes(
+ encU32BE(t.v),
+ enc(t.purpose),
+ encU32BE(t.protocolVersion),
+ enc(t.serverGeneration),
+ enc(t.browser),
+ enc(t.callerId),
+ encU64BE(t.exp),
+ enc(t.bindingPub),
+ enc(t.mac)
+ )
+ return new Uint8Array(createHash('sha256').update(data).digest())
+}
+
+/**
+ * `AAD = encU32BE(protocolVersion) ‖ enc(pairNonce) ‖ enc(ticketBindingKeyOrEmpty)
+ * ‖ enc(ticketDigestOrEmpty)` (§6.4). `ticketBindingKey` and `digest` are
+ * `null` when no `nmTicket` was presented, encoding as `enc("")` — the empty
+ * string, not an absent field — so both parties compute the same AAD length
+ * either way.
+ */
+export function buildAad(
+ protocolVersion: number,
+ pairNonce: string,
+ ticketBindingKey: Uint8Array | null,
+ digest: Uint8Array | null
+): Uint8Array {
+ return concatBytes(
+ encU32BE(protocolVersion),
+ enc(pairNonce),
+ enc(ticketBindingKey ?? EMPTY),
+ enc(digest ?? EMPTY)
+ )
+}
diff --git a/src/core/bridge/mdxp-session-context.ts b/src/core/bridge/mdxp-session-context.ts
index a5388758..02685c7e 100644
--- a/src/core/bridge/mdxp-session-context.ts
+++ b/src/core/bridge/mdxp-session-context.ts
@@ -18,17 +18,23 @@ export interface MdxpSessionContext {
isReady(): boolean
markReady(): void
/**
- * Whether the peer may invoke control-plane / download methods. `/v1`
- * reconnects and the bearer-authenticated unary path are authorized; a
- * `/pair` first-connect is authorized only after the initialize handler
- * records a pairing approval via `markAuthorized`.
+ * Whether the peer may invoke control-plane / download methods.
+ *
+ * Every WebSocket session is authorized **at the transport**: MBP1
+ * authenticates below MDXP, and `adoptAuthenticatedSession` marks the
+ * connection before registering a single handler
+ * (docs/bridge-pairing-protocol.md §4, §6.6, §8). The bearer-authenticated
+ * unary path is likewise authorized by the time a context exists. No handler
+ * grants authorization any more; `markAuthorized` remains only so a future
+ * transport can promote a session it deliberately admitted unauthorized.
*/
isAuthorized(): boolean
markAuthorized(): void
/**
- * Pairing context from the transport: a first-pair connection (`/pair`)
- * carries `PairRequestArgs`; reconnect (`/v1`) and unary requests carry
- * `null`. Only `motrix/initialize` reads it.
+ * Legacy pairing context from the transport. Always `null` for an MBP1
+ * extension session and for unary requests: the approval dialog now lives
+ * inside the `/pair` state machine, below MDXP, so no handler reads this.
+ * Kept as a seam for a transport that must hand a handler pre-MDXP context.
*/
readonly pendingPair: PairRequestArgs | null
/**
diff --git a/src/core/bridge/web-socket-bridge-server.authz.test.ts b/src/core/bridge/web-socket-bridge-server.authz.test.ts
index cadf1300..120b1de1 100644
--- a/src/core/bridge/web-socket-bridge-server.authz.test.ts
+++ b/src/core/bridge/web-socket-bridge-server.authz.test.ts
@@ -1,12 +1,13 @@
-import {
- WebSocketMessageReader,
- WebSocketMessageWriter,
-} from '@core/bridge/web-socket-message-stream'
-import { createMdxpConnection } from '@motrix/mdxp'
import { TaskStatus } from '@shared/types/task'
import { makeDownloadTask } from '@test-utils/task'
import { describe, expect, it, vi } from 'vitest'
import { WebSocket } from 'ws'
+import { type Mbp1TestWiring, makeMbp1TestWiring } from './__tests__/fakes'
+import {
+ initializeParams,
+ mdxpOverChannel,
+ pairAndExchange,
+} from './__tests__/mbp1-client'
import {
type PairedClient,
PairingService,
@@ -14,6 +15,9 @@ import {
} from './pairing-service'
import { WebSocketBridgeServer } from './web-socket-bridge-server'
+const EXTENSION_ID = 'authzextensionidaaaaaaaaaaaaaaaa'
+const ORIGIN = `chrome-extension://${EXTENSION_ID}`
+
function makePairingStore(): PairingStore {
let list: PairedClient[] = []
return {
@@ -38,22 +42,9 @@ function makeRegistryStore() {
}
}
-const INITIALIZE_PARAMS = {
- protocolVersion: '1.0' as const,
- client: {
- kind: 'extension' as const,
- name: 'test',
- version: '1',
- extensionId: 'testext',
- browser: 'chromium' as const,
- browserVersion: '1',
- locale: 'en',
- },
- capabilities: {},
- adapters: [] as never[],
-}
-
-async function makeServer(): Promise<{
+/** `mbp1: null` deliberately omits the six MBP1 options, which is how a shell
+ * that has not wired MBP1 yet is configured. */
+async function makeServer(mbp1: Mbp1TestWiring | null): Promise<{
server: WebSocketBridgeServer
removeTask: ReturnType<typeof vi.fn>
}> {
@@ -67,11 +58,11 @@ async function makeServer(): Promise<{
const server = new WebSocketBridgeServer({
pairing,
registry,
- onPairRequest: async () => ({ decision: 'allow', addToRegistry: false }),
motrixVersion: '0.0.0-test',
runtime: 'electron',
ffmpegAvailable: false,
localToken: 'test-local-token',
+ ...(mbp1 === null ? {} : mbp1.options),
})
const removeTask = vi.fn(async () => {})
server.registerWriteMethods({
@@ -88,75 +79,69 @@ async function makeServer(): Promise<{
return { server, removeTask }
}
-function connectPair(port: number, nonce: string): Promise<WebSocket> {
+function openRaw(port: number, path: string): Promise<WebSocket> {
return new Promise((resolve, reject) => {
const ws = new WebSocket(
- `ws://127.0.0.1:${port}/pair?nonce=${nonce}&extensionId=testext&browser=chromium`,
+ `ws://127.0.0.1:${port}${path}`,
'motrix-bridge.v1',
- { origin: 'chrome-extension://abcdefghabcdefghabcdefghabcdefgh' }
+ { origin: ORIGIN }
)
ws.once('open', () => resolve(ws))
ws.once('error', reject)
})
}
-function mdxpOver(ws: WebSocket) {
- const conn = createMdxpConnection(
- new WebSocketMessageReader(ws as never),
- new WebSocketMessageWriter(ws as never)
- )
- conn.listen()
- return conn
-}
-
describe('WebSocketBridgeServer control-plane authorization', () => {
- it('rejects a control-plane call on a /pair session before pairing approval', async () => {
- const { server, removeTask } = await makeServer()
+ it('gives an unauthenticated peer no MDXP surface to drive at all', async () => {
+ // The old attack was: upgrade via /pair (a one-shot nonce, no user
+ // interaction), skip motrix/initialize so the approval dialog never
+ // appears, and call task/remove on an unauthorized session. MBP1 moves the
+ // whole gate below MDXP: /pair speaks the §6 handshake and nothing else, so
+ // there is no unauthorized JSON-RPC session left to reach the dispatcher
+ // from. With MBP1 unwired there is no extension WebSocket surface at all —
+ // fail closed rather than fall back to an unauthenticated one.
+ const { server, removeTask } = await makeServer(null)
const port = await server.start('127.0.0.1', 0)
try {
- const ws = await connectPair(port, server.issuePairNonce())
- const conn = mdxpOver(ws)
-
- // The malicious path: connect via /pair (one-shot nonce, no user
- // interaction) and drive task/remove WITHOUT sending motrix/initialize,
- // so the pairing dialog never even appears. This must be denied.
- const call = conn.sendRequest('task/remove', {
- taskId: 'task-1',
- deleteFiles: true,
- })
- // The security property under test: the call is refused for lack of
- // authorization and removeTask never runs. (The precise MDXP code does
- // not survive vscode-jsonrpc here — plain MdxpError objects are not
- // ResponseError instances — which is pre-existing bridge behavior; the
- // handler message is preserved and carries the reason.)
- await expect(call).rejects.toThrow(/not authorized/i)
+ await expect(openRaw(port, '/pair?nonce=whatever')).rejects.toThrow()
+ await expect(openRaw(port, '/v1')).rejects.toThrow()
expect(removeTask).not.toHaveBeenCalled()
-
- conn.dispose()
- ws.terminate()
} finally {
await server.stop()
}
})
- it('allows control-plane calls once initialize approves the /pair session', async () => {
- const { server, removeTask } = await makeServer()
+ it('authorizes a completed MBP1 session without any motrix/initialize', async () => {
+ const mbp1 = await makeMbp1TestWiring([['chromium', EXTENSION_ID]])
+ const { server, removeTask } = await makeServer(mbp1)
const port = await server.start('127.0.0.1', 0)
try {
- const ws = await connectPair(port, server.issuePairNonce())
- const conn = mdxpOver(ws)
+ const paired = await pairAndExchange({
+ port,
+ origin: ORIGIN,
+ browser: 'chromium',
+ claimedExtensionId: EXTENSION_ID,
+ code: () => mbp1.dialogs.latestCode(),
+ })
+ const conn = mdxpOverChannel(paired.wire, paired.channel)
- // Legitimate flow: initialize triggers the approval dialog (allow), which
- // authorizes the session. The same connection may then manage tasks.
- await conn.sendRequest('motrix/initialize', INITIALIZE_PARAMS)
+ // No motrix/initialize first: authorization came from the transport, and
+ // a handler that re-granted it would be the fail-open shape this replaces.
await conn.sendRequest('task/remove', {
taskId: 'task-1',
deleteFiles: false,
})
expect(removeTask).toHaveBeenCalledWith('task-1', { deleteFiles: false })
+ // The handshake assertion still runs, and still returns no pairToken.
+ const result = await conn.sendRequest(
+ 'motrix/initialize',
+ initializeParams(EXTENSION_ID)
+ )
+ expect(result.pairToken).toBeUndefined()
+
conn.dispose()
- ws.terminate()
+ paired.wire.ws.close()
} finally {
await server.stop()
}
diff --git a/src/core/bridge/web-socket-bridge-server.stop.test.ts b/src/core/bridge/web-socket-bridge-server.stop.test.ts
index 04ca45e9..c321385f 100644
--- a/src/core/bridge/web-socket-bridge-server.stop.test.ts
+++ b/src/core/bridge/web-socket-bridge-server.stop.test.ts
@@ -2,15 +2,16 @@ import {
createServer as createHttpServer,
request as httpRequest,
} from 'node:http'
-import {
- WebSocketMessageReader,
- WebSocketMessageWriter,
-} from '@core/bridge/web-socket-message-stream'
-import { createMdxpConnection } from '@motrix/mdxp'
import { TaskStatus } from '@shared/types/task'
import { makeDownloadTask } from '@test-utils/task'
import { describe, expect, it, vi } from 'vitest'
import { WebSocket } from 'ws'
+import { type Mbp1TestWiring, makeMbp1TestWiring } from './__tests__/fakes'
+import {
+ fetchNonce,
+ mdxpOverChannel,
+ pairAndExchange,
+} from './__tests__/mbp1-client'
import {
type PairedClient,
PairingService,
@@ -18,6 +19,9 @@ import {
} from './pairing-service'
import { WebSocketBridgeServer } from './web-socket-bridge-server'
+const EXTENSION_ID = 'stopextensionidaaaaaaaaaaaaaaaaa'
+const ORIGIN = `chrome-extension://${EXTENSION_ID}`
+
function makePairingStore(): PairingStore {
let list: PairedClient[] = []
return {
@@ -42,7 +46,9 @@ function makeRegistryStore() {
}
}
-async function makeServer(): Promise<WebSocketBridgeServer> {
+async function makeServer(
+ mbp1: Mbp1TestWiring | null = null
+): Promise<WebSocketBridgeServer> {
const pairing = new PairingService(makePairingStore())
await pairing.load()
const { TrustedExtensionRegistry } = await import(
@@ -53,20 +59,27 @@ async function makeServer(): Promise<WebSocketBridgeServer> {
return new WebSocketBridgeServer({
pairing,
registry,
- onPairRequest: async () => ({ decision: 'allow', addToRegistry: false }),
motrixVersion: '0.0.0-test',
runtime: 'electron',
ffmpegAvailable: false,
localToken: 'test-local-token',
+ ...(mbp1 === null ? {} : mbp1.options),
})
}
-function connect(port: number, nonce: string): Promise<WebSocket> {
+/**
+ * Upgrade `/pair` and stop there, so the socket is live but PRE-authenticated.
+ * That is the interesting case for `stop()`: a pre-auth connection is held in
+ * `PreAuthTable`, never in `this.sessions`, so the dispose loop does not see it
+ * and only the `wss.clients` terminate loop can kill it.
+ */
+async function connectPreAuth(port: number): Promise<WebSocket> {
+ const nonce = await fetchNonce(port)
return new Promise((resolve, reject) => {
const ws = new WebSocket(
- `ws://127.0.0.1:${port}/pair?nonce=${nonce}&extensionId=testext&browser=chromium`,
+ `ws://127.0.0.1:${port}/pair?nonce=${nonce}`,
'motrix-bridge.v1',
- { origin: 'chrome-extension://abcdefghabcdefghabcdefghabcdefgh' }
+ { origin: ORIGIN }
)
ws.once('open', () => resolve(ws))
ws.once('error', reject)
@@ -118,10 +131,9 @@ function postPause(port: number): Promise<void> {
describe('WebSocketBridgeServer.stop', () => {
it('resolves promptly even while an extension WebSocket is still open', async () => {
- const server = await makeServer()
+ const server = await makeServer(await makeMbp1TestWiring())
const port = await server.start('127.0.0.1', 0)
- const nonce = server.issuePairNonce()
- const ws = await connect(port, nonce)
+ const ws = await connectPreAuth(port)
const result = await Promise.race([
server.stop().then(() => 'stopped' as const),
@@ -175,7 +187,8 @@ describe('WebSocketBridgeServer.stop', () => {
})
it('drains an accepted WebSocket handler and rejects dispatch admitted after the gate closes', async () => {
- const server = await makeServer()
+ const mbp1 = await makeMbp1TestWiring([['chromium', EXTENSION_ID]])
+ const server = await makeServer(mbp1)
const handlerStarted = deferred()
const releaseHandler = deferred()
server.registerWriteMethods({
@@ -196,26 +209,15 @@ describe('WebSocketBridgeServer.stop', () => {
parseTorrentFileCount: vi.fn(async () => 1),
})
const port = await server.start('127.0.0.1', 0)
- const ws = await connect(port, server.issuePairNonce())
- const conn = createMdxpConnection(
- new WebSocketMessageReader(ws as never),
- new WebSocketMessageWriter(ws as never)
- )
- conn.listen()
- await conn.sendRequest('motrix/initialize', {
- protocolVersion: '1.0',
- client: {
- kind: 'extension',
- name: 'test',
- version: '1',
- extensionId: 'testext',
- browser: 'chromium',
- browserVersion: '1',
- locale: 'en',
- },
- capabilities: {},
- adapters: [],
+ const paired = await pairAndExchange({
+ port,
+ origin: ORIGIN,
+ browser: 'chromium',
+ claimedExtensionId: EXTENSION_ID,
+ code: () => mbp1.dialogs.latestCode(),
})
+ const ws = paired.wire.ws
+ const conn = mdxpOverChannel(paired.wire, paired.channel)
conn.sendNotification('motrix/initialized', undefined as never)
const request = conn.sendRequest('task/pause', { taskId: 'task-1' })
void request.catch(() => {})
diff --git a/src/core/bridge/web-socket-bridge-server.ts b/src/core/bridge/web-socket-bridge-server.ts
index 40c0a102..4603dca3 100644
--- a/src/core/bridge/web-socket-bridge-server.ts
+++ b/src/core/bridge/web-socket-bridge-server.ts
@@ -12,6 +12,7 @@ import {
InitializeParamsSchema,
Methods,
makeMdxpError,
+ Notifications,
Tools,
} from '@motrix/mdxp'
import { AppError, ErrorCode } from '@shared/errors'
@@ -22,8 +23,10 @@ import {
makeSessionKey,
type PairRequestPayload,
} from '@shared/protocol/bridge'
-import { type WebSocket, WebSocketServer } from 'ws'
+import { ResponseError } from 'vscode-jsonrpc'
+import { type RawData, type WebSocket, WebSocketServer } from 'ws'
import { BridgeConnection } from './bridge-connection'
+import type { Mbp1CredentialStore } from './credential-store'
import type { DeviceCodeService } from './device-code-service'
import { createInitializeHandler } from './handlers/initialize-handler'
import {
@@ -34,6 +37,24 @@ import {
registerWriteHandlers,
type WriteHandlerDeps,
} from './handlers/write-handlers'
+import { MAX_ENVELOPE_FRAME_BYTES } from './mbp1/envelope'
+import {
+ type EnvelopeChannel,
+ type EnvelopeStream,
+ type EnvelopeStreamFaultKind,
+ wrapWithEnvelope,
+} from './mbp1/envelope-message-stream'
+import { PairFloodControl } from './mbp1/flood-control'
+import { NonceService } from './mbp1/nonce-service'
+import {
+ type PairDialogHandle,
+ type PairDialogRequest,
+ PairSession,
+} from './mbp1/pair-session'
+import { PreAuthTable } from './mbp1/pre-auth-table'
+import { ReconnectRateLimit } from './mbp1/reconnect-rate-limit'
+import { ReconnectSession } from './mbp1/reconnect-session'
+import { TicketReplayCache } from './mbp1/ticket-verify'
import { MdxpDispatcher } from './mdxp-dispatcher'
import {
contextFromConnection,
@@ -41,13 +62,7 @@ import {
} from './mdxp-session-context'
import type { PairingService } from './pairing-service'
import type { TrustedExtensionRegistry } from './trusted-extension-registry'
-
-export interface PairDecision {
- decision: 'allow' | 'deny'
- /** Whether the user chose to remember this extension. Owned by dialog
- * controller — controller calls `registry.add(...)` before resolving. */
- addToRegistry: boolean
-}
+import type { WebSocketLike } from './web-socket-message-stream'
export interface PairRequestArgs {
extensionId: string
@@ -59,7 +74,6 @@ export interface PairRequestArgs {
export interface BridgeServerOptions {
pairing: PairingService
registry: TrustedExtensionRegistry
- onPairRequest: (args: PairRequestArgs) => Promise<PairDecision>
motrixVersion: string
runtime: 'electron' | 'server'
ffmpegAvailable: boolean
@@ -78,7 +92,7 @@ export interface BridgeServerOptions {
/**
* Fired when a device-code `pair/request` arrives, so the shell can surface an
* approval prompt (the bootstrap wires this to `bus.emitPairRequested`). The
- * server itself stays bus-agnostic, mirroring the `onPairRequest` pattern.
+ * server itself stays bus-agnostic; only the shell knows how to prompt.
*/
onPairRequested?: (payload: PairRequestPayload) => void
/**
@@ -91,6 +105,98 @@ export interface BridgeServerOptions {
* rather than pointing the user at this bridge (which 404s `/`).
*/
verificationUri?: string
+ /**
+ * This bridge instance's stable identity, reported by `GET /discovery` and
+ * bound into both MBP1 transcripts (§4.1, §6.2, §8). A routing hint only —
+ * never a trust signal, and emitted verbatim however the shell configured it.
+ */
+ instanceId?: string
+ /**
+ * Rotates on every bridge start and is never persisted (§9.2). An NM ticket
+ * minted under a previous generation downgrades to `unverified` rather than
+ * aborting, which is also what keeps the per-process replay cache sound
+ * across restarts.
+ */
+ serverGeneration?: string
+ /** Reported verbatim by `GET /discovery` (§4.1). */
+ appVersion?: string
+ /**
+ * The durable MBP1 credential store, shared by both session paths (§6.7, §8).
+ * Typed as the real class rather than a narrowed interface so `tsc` checks it
+ * against `PairCredentialIssuer` / `ReconnectCredentialAuthenticator` — those
+ * exist for testability, and without a production assignment the compiler
+ * would only ever have seen the fakes.
+ */
+ credentials?: Mbp1CredentialStore
+ /**
+ * Reads the immutable allowlist **only** — never the NM manifest set and
+ * never the user registry, both of which admit user-added ids (§5).
+ */
+ isOfficialId?: (browser: Browser, id: string) => boolean
+ /**
+ * Shows the §7.1 approval dialog. Error-free by construction: §7.3 admission
+ * (dedup, the global pending cap, and the failure lockout) is core's, runs
+ * *before* ticket validation, and is applied by this server through
+ * `PairFloodControl` — the shell only renders.
+ */
+ queueMbp1Dialog?: (args: PairDialogRequest) => PairDialogHandle
+ /**
+ * Fired once an extension session authenticates over MBP1 — first pair or
+ * reconnect alike. It is the only remaining signal that an extension became
+ * usable, now that `motrix/initialize` no longer mints anything: the shell's
+ * paired-client list, revoke command, and revoke-kick all hang off it.
+ */
+ onExtensionAuthenticated?: (
+ identity: ClientIdentity & { kind: 'extension' }
+ ) => void
+}
+
+/**
+ * The MBP1 options resolved as a unit. They arrive together or not at all: a
+ * `/pair` session needs every one of them, so admitting a connection against a
+ * half-configured surface would mean discovering the gap mid-handshake, with a
+ * dialog possibly already on screen. One `null` check, one place to audit.
+ */
+interface Mbp1Wiring {
+ instanceId: string
+ serverGeneration: string
+ appVersion: string
+ credentials: Mbp1CredentialStore
+ isOfficialId: (browser: Browser, id: string) => boolean
+ queueMbp1Dialog: (args: PairDialogRequest) => PairDialogHandle
+}
+
+function resolveMbp1Wiring(opts: BridgeServerOptions): Mbp1Wiring | null {
+ const {
+ instanceId,
+ serverGeneration,
+ appVersion,
+ credentials,
+ isOfficialId,
+ queueMbp1Dialog,
+ } = opts
+ if (
+ instanceId === undefined ||
+ serverGeneration === undefined ||
+ appVersion === undefined ||
+ credentials === undefined ||
+ isOfficialId === undefined ||
+ queueMbp1Dialog === undefined
+ ) {
+ return null
+ }
+ // Assigning the REAL `Mbp1CredentialStore` here is what makes `tsc` check it
+ // against the narrowed `PairCredentialIssuer` / `ReconnectCredentialAuthenticator`
+ // the two session modules consume: those interfaces exist for testability, so
+ // without a production assignment the compiler has only ever seen the fakes.
+ return {
+ instanceId,
+ serverGeneration,
+ appVersion,
+ credentials,
+ isOfficialId,
+ queueMbp1Dialog,
+ }
}
export interface BridgeSession {
@@ -98,6 +204,9 @@ export interface BridgeSession {
extensionId: string
browser: Browser
startedAt: number
+ /** The AEAD stream under this session's MDXP connection; `usage` exposes the
+ * §10 outbound frame/block counters. */
+ envelope: EnvelopeStream
}
/**
@@ -131,23 +240,212 @@ const EXTENSION_WS_CONTROL_PLANE = [
Methods.TaskPause,
Methods.TaskResume,
Methods.TaskRemove,
+ Methods.TaskReveal,
Methods.StatsGet,
Methods.EngineStatus,
] as const
-const PAIR_NONCE_TTL_MS = 60_000
const SSE_HEARTBEAT_MS = 15_000
const LOOPBACK_HOSTS = new Set(['127.0.0.1', '::1', 'localhost'])
+/** §4: the candidate range the bridge tries in order before falling back. */
+export const BRIDGE_CANDIDATE_PORTS = [
+ 16802, 16803, 16804, 16805, 16806,
+] as const
+
+/** §4: total pre-authentication connections admitted per route at once. */
+const PRE_AUTH_CAP = 32
+/** Let a maximum-size active §10 envelope through while replacing `ws`'s
+ * 100 MiB default with a bound an unauthenticated peer cannot exceed. */
+export const MAX_WEBSOCKET_PAYLOAD_BYTES = MAX_ENVELOPE_FRAME_BYTES
+const REVOKE_NOTIFICATION_GRACE_MS = 50
+
+/**
+ * How long a `/pair` connection may stay pre-authenticated.
+ *
+ * It must EXCEED the §7.2 code lifetime (`CODE_LIFETIME_MS = 120 s`), not
+ * undercut it: the user is reading a code off one screen and typing it into
+ * another, and a shorter table deadline would kill legitimate pairings while
+ * they type and make the session's own `expired` branch unreachable in
+ * production. The code lifetime stays the real bound; this is the backstop for
+ * a peer that upgrades and then says nothing at all.
+ */
+const PAIR_PRE_AUTH_DEADLINE_MS = 150_000
+
+/**
+ * How long a `/v1` connection may stay pre-authenticated. §8's own 10 s
+ * protocol deadline fires first and produces a proper `authFailed`; this is
+ * deliberately a little longer so the uniform failure — not a bare socket
+ * close — is what a real client sees.
+ */
+const RECONNECT_PRE_AUTH_DEADLINE_MS = 15_000
+
+/** RFC 6455 close codes used when the envelope stream refuses a frame (§10).
+ * Exported so tests can assert on the exact wire value rather than
+ * duplicating it as an untethered magic number. */
+export const WS_CLOSE_PROTOCOL_ERROR = 1002
+export const WS_CLOSE_INTERNAL_ERROR = 1011
+/**
+ * §10 usage-bound closure (`EnvelopeLimitError`): a direction reached its
+ * frame- or block-count bound and this connection MUST be re-established via
+ * reconnect (§8) with fresh keys. Neither 1002 nor 1011 fits — this is not
+ * the peer breaking §10, and it is not this process malfunctioning; it is
+ * the backstop for the exact condition §10 requires to happen before either
+ * bound is exceeded. Sending 1011 here (as an internal error) told a
+ * conforming client this process crashed, when the designed response is to
+ * silently reconnect instead of surfacing an error to the user.
+ *
+ * RFC 6455 §7.4.2 reserves 1000-2999 for the protocol/extensions/IANA-
+ * registered schemes and 3000-3999 for IANA-registered libraries — using
+ * either for a code with a meaning specific to this application would
+ * misuse the registry the same way 1002/1011 would. 4000-4999 is reserved
+ * for exactly this: private use "by prior agreement between WebSocket
+ * applications", which MBP1 endpoints are. `4001` is arbitrary within that
+ * range; what matters is only that it differs from 1002/1011 so a client can
+ * branch on it.
+ */
+export const WS_CLOSE_ENVELOPE_USAGE_LIMIT = 4001
+
+/** Maps an envelope-stream fault to the RFC 6455 close code the wiring sends. */
+function closeCodeForEnvelopeFault(kind: EnvelopeStreamFaultKind): number {
+ switch (kind) {
+ case 'peer-violation':
+ return WS_CLOSE_PROTOCOL_ERROR
+ case 'usage-limit':
+ return WS_CLOSE_ENVELOPE_USAGE_LIMIT
+ case 'internal':
+ return WS_CLOSE_INTERNAL_ERROR
+ }
+}
+
function isLoopbackHost(host: string): boolean {
return LOOPBACK_HOSTS.has(host)
}
+/**
+ * `host[:port]`, with an IPv6 literal in brackets (RFC 7230 §5.4). Used only
+ * to split a Host header; `isLoopbackHost` above validates a *bind* host and
+ * carries no port, so the two are not interchangeable.
+ */
+const HOST_HEADER = /^(?:\[([0-9a-fA-F:]+)\]|([^:[\]]+)):(\d{1,5})$/
+
+/**
+ * §4.3: while bound to loopback, every route and upgrade must reject a `Host`
+ * that is not `127.0.0.1[:port]`, `localhost[:port]`, or `[::1][:port]`. That
+ * closes DNS rebinding — a page on an attacker's domain can reach the loopback
+ * port, but the browser sends the attacker's hostname in `Host`.
+ *
+ * The port is REQUIRED and must equal the port actually bound. On loopback
+ * there is no proxy rewriting anything and every real client sends the port it
+ * connected to, so exact matching costs nothing and additionally refuses a
+ * same-host confused deputy pointed at a different port. A `Host` with no port
+ * implies 80, which this server never binds.
+ */
+function isLoopbackHostHeader(
+ rawHost: string | undefined,
+ boundPort: number
+): boolean {
+ if (!rawHost) {
+ return false
+ }
+ const parts = HOST_HEADER.exec(rawHost)
+ if (!parts) {
+ return false
+ }
+ const name = (parts[1] ?? parts[2] ?? '').toLowerCase()
+ return LOOPBACK_HOSTS.has(name) && Number(parts[3]) === boundPort
+}
+
+/**
+ * The §5 verified peer, derived from the upgrade `Origin` header and nothing
+ * else — never a query parameter, never a self-reported message field.
+ *
+ * `extensionId` is the origin's host component uniformly. On Chromium that IS
+ * the extension id, and `pair-session.ts` separately enforces
+ * `Origin host === claimedExtensionId`. On Firefox it is the `moz-extension`
+ * UUID rather than the Gecko id: the Gecko id is self-reported and
+ * unverifiable there, so keying the live-session map by it would let one
+ * extension evict another's session simply by claiming its id. Showing the
+ * claimed id is a UI concern, not a session-identity one.
+ */
+interface ExtensionPeer {
+ browser: Browser
+ extensionId: string
+ origin: string
+}
+
+function parseExtensionOrigin(origin: string): ExtensionPeer | null {
+ const browser: Browser | null = origin.startsWith('chrome-extension://')
+ ? 'chromium'
+ : origin.startsWith('moz-extension://')
+ ? 'firefox'
+ : null
+ if (browser === null) {
+ return null
+ }
+ let host: string
+ try {
+ host = new URL(origin).host
+ } catch {
+ return null
+ }
+ if (host === '') {
+ return null
+ }
+ return { browser, extensionId: host, origin }
+}
+
+/** A `/pair` connection held in the pre-authentication table (§4, §7.3). */
+interface PairPreAuthEntry {
+ readonly ws: WebSocket
+ /** Verified Origin-derived identity used for revoke-critical cancellation. */
+ readonly sessionKey: string
+ /** Assigned immediately after admission; `null` only inside `admit` itself. */
+ session: PairSession | null
+ /** Whether an approval dialog was actually shown for this session — the one
+ * §7.3 outcome flag `PairSession` does not expose. */
+ queuedDialog: boolean
+ confirmed: boolean
+ /** §7.3's counter must move exactly once per session, whichever terminal
+ * path (success, deadline, close) gets there first. */
+ outcomeRecorded: boolean
+}
+
+/** A `/v1` connection held in the pre-authentication table (§4, §8). */
+interface ReconnectPreAuthEntry {
+ readonly ws: WebSocket
+ /** Verified Origin-derived identity used for revoke-critical cancellation. */
+ readonly sessionKey: string
+ session: ReconnectSession | null
+}
+
export class WebSocketBridgeServer {
private http: HttpServer
private wss: WebSocketServer
- private pairNonces = new Map<string, number>()
+ private readonly mbp1: Mbp1Wiring | null
+ private readonly nonces = new NonceService()
+ private readonly floodControl = new PairFloodControl()
+ /**
+ * §9.2's one-shot ticket store, one instance per bridge start. Its scope is
+ * this process, which is sound only because `serverGeneration` also rotates
+ * per start: a ticket replayed into a later process downgrades to
+ * `unverified`, which is what presenting no ticket yields anyway.
+ */
+ private readonly replay = new TicketReplayCache()
+ /** §8's per-origin + global reconnect throttle. Deliberately separate from
+ * `floodControl`: see `mbp1/reconnect-rate-limit.ts` for why sharing
+ * counters between the two would be a bug in both directions. */
+ private readonly reconnectRate = new ReconnectRateLimit()
+ private readonly preAuthPair: PreAuthTable<PairPreAuthEntry>
+ private readonly preAuthReconnect: PreAuthTable<ReconnectPreAuthEntry>
+ /** The host and port actually bound, for the §4.3 Host guard. */
+ private boundHost: string | null = null
+ private boundPort = 0
private sessions = new Map<string, BridgeSession>()
+ /** Session keys in the durable-revocation critical section. Matching
+ * pre-auth sessions are cancelled, new upgrades are refused, and any MBP1
+ * flow that still finishes concurrently is refused again at adoption. */
+ private readonly revokingExtensionKeys = new Map<string, number>()
// Open SSE connections (GET /mdxp/events) → their heartbeat timer + the
// authenticated caller identity. The CLI `watch` firehose; a global
// (non-session) push of $/task/* + $/stats. The identity is retained so a
@@ -163,6 +461,30 @@ export class WebSocketBridgeServer {
private stopPromise: Promise<void> | null = null
constructor(private opts: BridgeServerOptions) {
+ this.mbp1 = resolveMbp1Wiring(opts)
+ // `PreAuthTable` holds unauthenticated connections OUT of `this.sessions`,
+ // which is what makes "a `/pair` attempt cannot evict a live authenticated
+ // session" true by construction rather than by discipline (§4).
+ this.preAuthPair = new PreAuthTable<PairPreAuthEntry>({
+ cap: PRE_AUTH_CAP,
+ deadlineMs: PAIR_PRE_AUTH_DEADLINE_MS,
+ onDeadline: (entry) => this.expirePairPreAuth(entry),
+ })
+ this.preAuthReconnect = new PreAuthTable<ReconnectPreAuthEntry>({
+ cap: PRE_AUTH_CAP,
+ deadlineMs: RECONNECT_PRE_AUTH_DEADLINE_MS,
+ onDeadline: (entry) => {
+ try {
+ entry.session?.dispose('timeout')
+ } finally {
+ // `dispose` deliberately does NOT close the socket — both session
+ // modules read it as "the peer is already gone, or the wiring is
+ // closing it" — so the wiring must close, or a peer that upgrades and
+ // then says nothing holds its slot until the process exits.
+ entry.ws.close()
+ }
+ },
+ })
// `motrix/initialize` is always available; the shell registers domain
// methods (download/*) later via setHandlers().
this.dispatcher.register(
@@ -172,9 +494,7 @@ export class WebSocketBridgeServer {
motrixVersion: opts.motrixVersion,
runtime: opts.runtime,
ffmpegAvailable: opts.ffmpegAvailable,
- pairing: opts.pairing,
- registry: opts.registry,
- onPairRequest: opts.onPairRequest,
+ supportsTaskReveal: () => this.dispatcher.has(Methods.TaskReveal),
})
)
// Revocation/rotation must reach live SSE firehose streams, not just future
@@ -192,20 +512,21 @@ export class WebSocketBridgeServer {
this.closeSseForIdentity(identity)
)
this.http = createServer()
- this.wss = new WebSocketServer({ noServer: true })
+ this.wss = new WebSocketServer({
+ noServer: true,
+ maxPayload: MAX_WEBSOCKET_PAYLOAD_BYTES,
+ })
this.http.on('upgrade', (req, socket, head) => {
+ // The base is a placeholder for relative-URL parsing only. The Host
+ // header is validated separately below and is never derived from here.
const url = new URL(req.url ?? '/', 'http://localhost')
- const origin = req.headers.origin ?? ''
const protoHeader = req.headers['sec-websocket-protocol'] ?? ''
- // DEBUG(connect-storm): every WS upgrade attempt Motrix sees.
- // TODO(remove-after-rootcause).
- console.log(
- `[bridge-debug] upgrade path=${url.pathname} origin=${origin || 'none'}`
- )
- if (!/^chrome-extension:\/\/|^moz-extension:\/\//.test(origin)) {
- console.log('[bridge-debug] reject 401: bad origin')
+ // §5: the verified origin, and every identity fact taken from it, comes
+ // from this header alone.
+ const peer = parseExtensionOrigin(req.headers.origin ?? '')
+ if (peer === null) {
return this.reject(socket, 401)
}
if (
@@ -214,29 +535,67 @@ export class WebSocketBridgeServer {
.map((s) => s.trim())
.includes('motrix-bridge.v1')
) {
- console.log('[bridge-debug] reject 401: missing subprotocol')
return this.reject(socket, 401)
}
+ // §4.3/§6.1: before the route decides anything, before a nonce is
+ // consumed, and before any session object exists.
+ if (!this.hostHeaderAllowed(req)) {
+ return this.reject(socket, 403)
+ }
+ const mbp1 = this.mbp1
+ if (mbp1 === null) {
+ // Both routes speak MBP1 and nothing else (§4). A shell that has not
+ // wired it has no extension WebSocket surface at all — the same 404 an
+ // unknown path gets, so the response says nothing about which it was.
+ return this.reject(socket, 404)
+ }
if (url.pathname === '/pair') {
- return this.handlePairUpgrade(req, socket, head, url)
+ return this.handleMbp1PairUpgrade(req, socket, head, url, peer, mbp1)
}
if (url.pathname === '/v1') {
- return this.handleV1Upgrade(req, socket, head, url)
+ return this.handleMbp1ReconnectUpgrade(req, socket, head, peer, mbp1)
}
- console.log('[bridge-debug] reject 404: unknown path')
this.reject(socket, 404)
})
this.http.on('request', (req, res) => {
const pathname = new URL(req.url ?? '/', 'http://localhost').pathname
- // GET /nonce — one-shot pairing nonce for the native-messaging host.
- if (req.method === 'GET' && pathname === '/nonce') {
- const nonce = this.issuePairNonce()
- // DEBUG(connect-storm). TODO(remove-after-rootcause).
- console.log('[bridge-debug] GET /nonce → issued')
- res.writeHead(200, { 'content-type': 'application/json' })
- res.end(JSON.stringify({ nonce }))
+ // §4.3 DNS-rebinding guard, ahead of every route including the CLI's.
+ // The body names no condition, so it is not an oracle for which check
+ // rejected the request (§11).
+ if (!this.hostHeaderAllowed(req)) {
+ writeJson(res, 403, {
+ error: { code: ErrorCodes.PermissionDenied, message: 'forbidden' },
+ })
+ return
+ }
+ // GET /discovery — §4.1. Unauthenticated, replayable, and explicitly a
+ // routing hint rather than a trust signal: an extension may pin a port
+ // only after a mutually-authenticated MBP1 session on it. `instanceId`
+ // is emitted verbatim, whatever the shell configured.
+ if (req.method === 'GET' && pathname === '/discovery') {
+ const mbp1 = this.mbp1
+ if (mbp1 === null) {
+ res.writeHead(404)
+ res.end()
+ return
+ }
+ writeJson(res, 200, {
+ app: 'motrix-bridge',
+ apiVersion: 1,
+ instanceId: mbp1.instanceId,
+ appVersion: mbp1.appVersion,
+ runtime: this.opts.runtime,
+ extensionPairing: { protocol: 'mbp1', versions: [1] },
+ applicationProtocols: { mdxp: ['1.0'] },
+ })
+ return
+ }
+ // POST /nonce — §4.2. The former GET route is gone and now falls through
+ // to the bare 404 below, which is what the spec requires.
+ if (req.method === 'POST' && pathname === '/nonce') {
+ this.handleNonceIssue(req, res)
return
}
// GET /mdxp/events — Server-Sent Events firehose for CLI/agents (watch).
@@ -313,21 +672,99 @@ export class WebSocketBridgeServer {
* unauthenticated LAN surface. (Remote token issuance is Spec 7.)
*/
async start(host = '127.0.0.1', port = 0): Promise<number> {
+ this.assertBindAllowed(host)
+ const bound = await this.listenOnce(host, port)
+ this.recordBinding(host, bound)
+ return bound
+ }
+
+ /**
+ * Bind the first free port of `ports`, in order, falling back to an
+ * ephemeral one (§4). `degraded` reports that fallback, so a caller can tell
+ * "an extension's port pin will still work" from "every candidate was taken
+ * and a sweep is required".
+ *
+ * Deliberately additive rather than a replacement for {@link start}: the
+ * server shell binds a configured host and port from its operator's config
+ * and must never walk off it.
+ */
+ async startOnFirstFree(
+ host: string,
+ ports: readonly number[]
+ ): Promise<{ port: number; degraded: boolean }> {
+ // Hoisted out of the loop: the guard is about the host, not the port.
+ this.assertBindAllowed(host)
+ for (const candidate of ports) {
+ try {
+ const bound = await this.listenOnce(host, candidate)
+ this.recordBinding(host, bound)
+ return { port: bound, degraded: false }
+ } catch (err) {
+ // Only a taken port advances the scan. EACCES, EADDRNOTAVAIL, and
+ // friends are configuration faults that the next port would hit too,
+ // and swallowing them would turn a misconfiguration into a silent
+ // ephemeral bind on an address nobody expects.
+ if ((err as NodeJS.ErrnoException).code !== 'EADDRINUSE') {
+ throw err
+ }
+ }
+ }
+ const bound = await this.listenOnce(host, 0)
+ this.recordBinding(host, bound)
+ return { port: bound, degraded: true }
+ }
+
+ /** Binding a NON-loopback host requires a configured `localToken` — fail
+ * closed so we never stand up an unauthenticated LAN surface. */
+ private assertBindAllowed(host: string): void {
if (!isLoopbackHost(host) && !this.opts.localToken) {
throw new Error(
`refusing to bind the MDXP bridge to non-loopback host "${host}" without a token`
)
}
+ }
+
+ /**
+ * One `listen` attempt, resolving the bound port or rejecting with the raw
+ * error. The error listener is removed on BOTH outcomes: re-`listen`ing the
+ * same `HttpServer` after a failed attempt would otherwise leave the earlier
+ * attempt's rejection handler armed, so a later error would settle an
+ * already-settled promise or abort the whole scan.
+ */
+ private listenOnce(host: string, port: number): Promise<number> {
return new Promise((resolve, reject) => {
+ const onError = (err: Error) => {
+ this.http.removeListener('error', onError)
+ reject(err)
+ }
+ this.http.once('error', onError)
this.http.listen(port, host, () => {
+ this.http.removeListener('error', onError)
const addr = this.http.address()
if (addr && typeof addr === 'object') resolve(addr.port)
else reject(new Error('failed to bind'))
})
- this.http.once('error', reject)
})
}
+ private recordBinding(host: string, port: number): void {
+ this.boundHost = host
+ this.boundPort = port
+ }
+
+ /**
+ * §4.3, scoped to a loopback bind. The non-loopback server shell keeps its
+ * existing token + reverse-proxy model and is explicitly out of MBP1 scope;
+ * applying the rule there would 403 every request it serves, since a proxied
+ * request legitimately carries the operator's public hostname.
+ */
+ private hostHeaderAllowed(req: IncomingMessage): boolean {
+ if (this.boundHost === null || !isLoopbackHost(this.boundHost)) {
+ return true
+ }
+ return isLoopbackHostHeader(req.headers.host, this.boundPort)
+ }
+
stop(): Promise<void> {
if (this.stopPromise) return this.stopPromise
@@ -342,6 +779,13 @@ export class WebSocketBridgeServer {
private async closeTransportsAndDrain(
acceptedHandlers: Promise<void>
): Promise<void> {
+ // Pre-authentication connections never enter `sessions`, so the dispose
+ // loop below would not touch them. Cancel their deadline timers here or
+ // they fire `onDeadline` into a stopped server — `unref()` keeps them from
+ // holding the process open but does not stop them running while it lives.
+ // Their sockets die with the `wss.clients` terminate loop further down.
+ this.preAuthPair.clear()
+ this.preAuthReconnect.clear()
for (const session of this.sessions.values()) {
session.conn.dispose()
}
@@ -378,17 +822,21 @@ export class WebSocketBridgeServer {
await acceptedHandlers
}
+ /**
+ * Issue a one-shot pairing nonce directly, bypassing the `POST /nonce` route
+ * (§4.2). A thin façade over {@link NonceService}, kept so in-process callers
+ * need not speak HTTP to themselves.
+ *
+ * Throws when a cap is hit rather than retrying: callers expect a string, and
+ * silently retrying past a breached cap would defeat the very limit that was
+ * reached.
+ */
issuePairNonce(): string {
- // Sweep expired nonces before inserting. Denied/abandoned/retried pair
- // attempts issue nonces that are never consumed by /pair, so without this
- // the Map grows unbounded over the lifetime of the desktop process.
- const now = Date.now()
- for (const [key, expires] of this.pairNonces) {
- if (expires <= now) this.pairNonces.delete(key)
+ const issued = this.nonces.issue(null)
+ if ('error' in issued) {
+ throw new Error('pairing nonce issuance is rate-limited')
}
- const nonce = randomBytes(16).toString('base64url')
- this.pairNonces.set(nonce, now + PAIR_NONCE_TTL_MS)
- return nonce
+ return issued.nonce
}
/** Register the shell's domain handlers. Call BEFORE the first connection. */
@@ -427,11 +875,10 @@ export class WebSocketBridgeServer {
/**
* Register the v1 WRITE methods (`task/pause`, `task/resume`, `task/remove`,
- * `download/add`) on the dispatcher. Call BEFORE start(). The write methods
- * in `EXTENSION_WS_CONTROL_PLANE` (`task/pause`, `task/resume`,
- * `task/remove`) are reachable both via the unary `POST /mdxp` transport and
- * over the extension WebSocket for a paired session. `download/add` is
- * excluded from the WebSocket surface — extensions add via `download/submit`.
+ * optional `task/reveal`, `download/add`) on the dispatcher. Call BEFORE
+ * start(). Pause/resume/remove are available on both unary and paired WS;
+ * `task/reveal` is deliberately paired-WS only, while `download/add` is unary
+ * only (extensions add via `download/submit`).
*/
registerWriteMethods(deps: WriteHandlerDeps): void {
registerWriteHandlers(this.dispatcher, deps)
@@ -541,6 +988,147 @@ export class WebSocketBridgeServer {
return this.sessions.get(sessionKey)
}
+ /**
+ * Cancel an extension's pending handshakes, durably revoke its MBP1
+ * authorization, and disconnect its live session. Credential removal happens
+ * before UI bookkeeping: a UI/pairing-store failure may leave stale display
+ * state, but it can never leave the secret usable.
+ */
+ async revokeExtensionAccess(
+ identity: ClientIdentity & { kind: 'extension' },
+ reason: string
+ ): Promise<number> {
+ const mbp1 = this.mbp1
+ if (mbp1 === null) return 0
+ const sessionKey = makeSessionKey(identity.browser, identity.extensionId)
+ this.revokingExtensionKeys.set(
+ sessionKey,
+ (this.revokingExtensionKeys.get(sessionKey) ?? 0) + 1
+ )
+ // Authorization stops synchronously, before either durable IO or the
+ // notification grace window can yield back to an inbound request.
+ this.sessions.get(sessionKey)?.conn.revokeAuthorization()
+ this.cancelPreAuthForSessionKey(sessionKey)
+ try {
+ const revoked = await mbp1.credentials.revokeExtensionIdentity(
+ identity.browser,
+ identity.extensionId
+ )
+ await this.disconnectExtensionSession(identity, reason)
+ return revoked
+ } catch (error) {
+ // Do not send an authenticated PairRevoked notice when persistence did
+ // not land (the peer would delete its only key while the server kept it),
+ // but keep this live transport fail-closed.
+ this.closeExtensionSessionNow(sessionKey)
+ throw error
+ } finally {
+ const remaining = (this.revokingExtensionKeys.get(sessionKey) ?? 1) - 1
+ if (remaining === 0) {
+ this.revokingExtensionKeys.delete(sessionKey)
+ } else {
+ this.revokingExtensionKeys.set(sessionKey, remaining)
+ }
+ }
+ }
+
+ /**
+ * End every handshake for this verified Origin before durable revocation
+ * yields. Otherwise a `/pair` admitted immediately before revoke could
+ * finish afterwards and mint/adopt a replacement credential.
+ */
+ private cancelPreAuthForSessionKey(sessionKey: string): void {
+ for (const entry of this.preAuthPair.takeWhere(
+ (candidate) => candidate.sessionKey === sessionKey
+ )) {
+ try {
+ entry.session?.dispose('access-revoked')
+ } catch {
+ // The authorization cutoff and durable delete must survive a broken
+ // dialog/flood-control teardown callback.
+ }
+ try {
+ this.recordPairOutcome(entry)
+ } catch {
+ // Outcome accounting is secondary to credential removal.
+ }
+ try {
+ entry.ws.close()
+ } catch {
+ // Already torn down; its close handler is idempotent.
+ }
+ }
+ for (const entry of this.preAuthReconnect.takeWhere(
+ (candidate) => candidate.sessionKey === sessionKey
+ )) {
+ try {
+ entry.session?.dispose('access-revoked')
+ } catch {
+ // Durable credential removal remains the fail-closed boundary.
+ }
+ try {
+ entry.ws.close()
+ } catch {
+ // Already torn down; its close handler is idempotent.
+ }
+ }
+ }
+
+ private async disconnectExtensionSession(
+ identity: ClientIdentity & { kind: 'extension' },
+ reason: string
+ ): Promise<void> {
+ const sessionKey = makeSessionKey(identity.browser, identity.extensionId)
+ const notified = this.sessions.get(sessionKey)
+ if (!notified) return
+
+ notified.conn.revokeAuthorization()
+
+ try {
+ notified.conn.sendNotification(Notifications.PairRevoked, { reason })
+ } catch {
+ // A broken writer is already equivalent to a disconnected peer; the
+ // authorization cutoff below must still run.
+ }
+ await new Promise((resolve) =>
+ setTimeout(resolve, REVOKE_NOTIFICATION_GRACE_MS)
+ )
+
+ // Authentication can replace a map entry while the final notification is
+ // draining. Close both the notified record and whichever matching record
+ // is current so revocation cannot lose that race.
+ const current = this.sessions.get(sessionKey)
+ const targets =
+ current && current !== notified ? [notified, current] : [notified]
+ for (const target of targets) {
+ if (this.sessions.get(sessionKey) === target) {
+ this.sessions.delete(sessionKey)
+ }
+ this.closeSessionTransport(target)
+ }
+ }
+
+ private closeExtensionSessionNow(sessionKey: string): void {
+ const session = this.sessions.get(sessionKey)
+ if (!session) return
+ session.conn.revokeAuthorization()
+ this.sessions.delete(sessionKey)
+ this.closeSessionTransport(session)
+ }
+
+ private closeSessionTransport(session: BridgeSession): void {
+ try {
+ session.envelope.close(1000)
+ } catch {
+ // Closing is best-effort, but listener disposal below is not optional.
+ }
+ try {
+ session.conn.dispose()
+ } catch {
+ // Authorization was already cut and the session-map entry removed.
+ }
+ }
+
/** Iterate active sessions (e.g. for broadcast). */
*iterSessions(): IterableIterator<BridgeSession> {
yield* this.sessions.values()
@@ -808,120 +1396,354 @@ export class WebSocketBridgeServer {
writeJson(res, 200, dc.poll(requestId))
}
- private reject(socket: Duplex, code: 401 | 404): void {
- const reason = code === 401 ? 'Unauthorized' : 'Not Found'
- socket.write(`HTTP/1.1 ${code} ${reason}\r\n\r\n`)
+ private reject(socket: Duplex, code: 401 | 403 | 404 | 429): void {
+ socket.write(`HTTP/1.1 ${code} ${REJECT_REASONS[code]}\r\n\r\n`)
socket.destroy()
}
- private consumeNonce(nonce: string): boolean {
- const expires = this.pairNonces.get(nonce)
- if (!expires) return false
- this.pairNonces.delete(nonce)
- return expires > Date.now()
+ /** `POST /nonce` — §4.2 one-shot pairing nonce issuance. */
+ private handleNonceIssue(req: IncomingMessage, res: ServerResponse): void {
+ // §4.2: the custom header makes the request non-simple, so the browser
+ // preflight (we grant no CORS) stops a cross-origin page before it reaches
+ // this handler at all. The caps below do not depend on that holding.
+ if (req.headers['x-motrix-bridge'] !== '1') {
+ writeJson(res, 403, {
+ error: { code: ErrorCodes.PermissionDenied, message: 'forbidden' },
+ })
+ return
+ }
+ // The native-messaging host has no Origin; `issue(null)` skips the
+ // per-origin quota by design and still applies both global caps.
+ const issued = this.nonces.issue(req.headers.origin ?? null)
+ if ('error' in issued) {
+ writeJson(res, 429, {
+ error: {
+ code: ErrorCodes.RateLimited,
+ message: 'nonce issuance is rate-limited',
+ },
+ })
+ return
+ }
+ writeJson(res, 200, issued)
}
- private handlePairUpgrade(
+ /**
+ * `/pair` — the §6 first-pair state machine, and nothing else. There is no
+ * token mode and no legacy frame format to downgrade into.
+ */
+ private handleMbp1PairUpgrade(
req: IncomingMessage,
socket: Duplex,
head: Buffer,
- url: URL
+ url: URL,
+ peer: ExtensionPeer,
+ mbp1: Mbp1Wiring
): void {
- const nonce = url.searchParams.get('nonce') ?? ''
- const extensionId = url.searchParams.get('extensionId') ?? ''
- const browser = (url.searchParams.get('browser') ?? '') as Browser
- const extensionName = url.searchParams.get('extensionName') ?? ''
- const extensionVersion = url.searchParams.get('extensionVersion') ?? ''
-
- if (
- !this.consumeNonce(nonce) ||
- !extensionId ||
- (browser !== 'chromium' && browser !== 'firefox')
- ) {
- // DEBUG(connect-storm): nonce already consumed above, so we log
- // raw inputs rather than re-validating. TODO(remove-after-rootcause).
- console.log(
- `[bridge-debug] /pair reject 401: noncePresent=${nonce !== ''} ` +
- `extId=${extensionId || 'none'} browser=${browser || 'none'}`
- )
+ const sessionKey = makeSessionKey(peer.browser, peer.extensionId)
+ // A revoke owns this verified Origin until durable removal and transport
+ // teardown finish. Refuse before consuming the one-shot nonce so the user
+ // can retry after the critical section rather than being forced to mint a
+ // new nonce for a request the server intentionally did not admit.
+ if (this.revokingExtensionKeys.has(sessionKey)) {
this.reject(socket, 401)
return
}
- console.log(`[bridge-debug] /pair accepted extId=${extensionId}`)
- // For first-time pair: registry check is deferred to the
- // initialize handler (which may call onPairRequest dialog).
+ // §4/§6.1: after the server-owned revocation gate, consuming the one-shot
+ // nonce is the FIRST protocol admission action — before any session
+ // object, dialog, or flood-control slot exists.
+ //
+ // An unknown or replayed nonce is refused HERE rather than admitted and
+ // failed with `pairError {expired}`. Requiring a live nonce to occupy a
+ // pre-authentication slot is what puts `POST /nonce`'s three caps
+ // (outstanding, global rate, per-origin rate) in front of the pre-auth
+ // table; without it, upgrades are free and a peer that connects and then
+ // stays silent could fill all 32 slots for the whole deadline at no cost.
+ // `PairSessionDeps.nonceValid` therefore stays `true` for every session
+ // this demux builds, and remains as the session's own defence in depth.
+ const pairNonce = url.searchParams.get('nonce') ?? ''
+ if (!this.nonces.consume(pairNonce)) {
+ this.reject(socket, 401)
+ return
+ }
+ // No `extensionId`/`browser`/`extensionName` query reads: §5 forbids
+ // trusting self-reported identity, and every one of those now comes from
+ // `pairHello` bound to the verified Origin.
this.wss.handleUpgrade(req, socket, head, (ws) => {
- const pairArgs: PairRequestArgs = {
- extensionId,
- browser,
- extensionName,
- extensionVersion,
+ // Defence in depth for a future asynchronous upgrade implementation:
+ // never admit a socket if revoke began after the pre-upgrade check.
+ if (this.revokingExtensionKeys.has(sessionKey)) {
+ ws.close()
+ return
+ }
+ const entry: PairPreAuthEntry = {
+ ws,
+ sessionKey,
+ session: null,
+ queuedDialog: false,
+ confirmed: false,
+ outcomeRecorded: false,
}
- this.attachConnection(ws, extensionId, browser, pairArgs, false)
+ if (!this.preAuthPair.admit(entry)) {
+ // §4: the table is full. Nothing is constructed, so this attempt
+ // cannot touch flood control or any live session.
+ ws.close()
+ return
+ }
+ // A dead socket's `send` emits 'error'; without a listener that is an
+ // unhandled event and takes the process down.
+ ws.on('error', () => {})
+
+ const session = new PairSession({
+ nonceValid: true,
+ pairNonce,
+ verifiedOrigin: peer.origin,
+ // Both from the same `parseExtensionOrigin` result, so `/pair` and
+ // `/v1` cannot disagree about which browser a credential belongs to.
+ browser: peer.browser,
+ instanceId: mbp1.instanceId,
+ serverGeneration: mbp1.serverGeneration,
+ localToken: this.opts.localToken,
+ isOfficialId: mbp1.isOfficialId,
+ credentials: mbp1.credentials,
+ replay: this.replay,
+ // §7.3 admission is core's and runs before ticket validation, so a
+ // session refused `busy` never burns a legitimate ticket's one-shot
+ // replay slot. Passed straight through — `release` in particular must
+ // not be double-called, since pending slots are keyed by origin alone.
+ admit: (origin) => this.floodControl.admit(origin),
+ release: (origin) => this.floodControl.release(origin),
+ queueDialog: (args) => {
+ // The one §7.3 outcome flag the session does not expose.
+ entry.queuedDialog = true
+ return mbp1.queueMbp1Dialog(args)
+ },
+ sendText: (json) => sendText(ws, json),
+ sendBinary: (frame) => sendBinary(ws, frame),
+ // The reason names an internal step, so it stays off the wire and out
+ // of every log (§11).
+ close: () => ws.close(),
+ onAuthenticated: (channel) => {
+ // Synchronous, in the same tick: no `await` may separate the
+ // session's `committed` state from this handover, or the post-commit
+ // drop guards swallow the client's first real frames.
+ detachPreAuth()
+ this.preAuthPair.settle(entry)
+ entry.confirmed = true
+ this.recordPairOutcome(entry)
+ this.adoptAuthenticatedSession(
+ ws,
+ {
+ kind: 'extension',
+ browser: peer.browser,
+ extensionId: peer.extensionId,
+ },
+ channel
+ )
+ },
+ now: () => Date.now(),
+ random: (n) => new Uint8Array(randomBytes(n)),
+ })
+ entry.session = session
+
+ const pump = createPreAuthFramePump(ws, (frame, isBinary) =>
+ isBinary
+ ? session.handleBinary(asProtocolBytes(frame))
+ : // The true byte length, not the decoded string's length: §6.1's
+ // 16 KiB pre-authentication cap is measured on the wire.
+ session.handleText(frame.toString('utf8'), frame.length)
+ )
+ const onMessage = (data: RawData, isBinary: boolean): void => {
+ pump.push(rawToBuffer(data), isBinary)
+ }
+ const detachPreAuth = (): void => {
+ ws.off('message', onMessage)
+ pump.handOver()
+ }
+ ws.on('message', onMessage)
+
+ ws.on('close', () => {
+ detachPreAuth()
+ this.preAuthPair.settle(entry)
+ session.dispose('socket-closed')
+ // §7.3 names the early disconnect explicitly: a guesser must not be
+ // able to dodge the failure counter by closing the socket.
+ this.recordPairOutcome(entry)
+ })
})
}
- private handleV1Upgrade(
+ /**
+ * `/v1` — the §8 challenge–response. The upgrade carries no credentials in
+ * the URL; a `?token=` query is simply ignored, because there is no token
+ * path left for it to reach.
+ */
+ private handleMbp1ReconnectUpgrade(
req: IncomingMessage,
socket: Duplex,
head: Buffer,
- url: URL
+ peer: ExtensionPeer,
+ mbp1: Mbp1Wiring
): void {
- const token = url.searchParams.get('token') ?? ''
- const paired = this.opts.pairing.findByToken(token)
- // /v1 is the EXTENSION WebSocket reconnect path; a cli/agent uses the
- // unary HTTP transport, never this socket. Admit only extension identities.
- if (paired?.identity.kind !== 'extension') {
- // DEBUG(connect-storm): stale/invalid token → 401. The browser WS
- // API only surfaces this as a generic close 1006 to the ext.
- // TODO(remove-after-rootcause).
- console.log(
- `[bridge-debug] /v1 reject 401: token ${token ? 'present-but-unknown' : 'missing'}`
- )
+ const sessionKey = makeSessionKey(peer.browser, peer.extensionId)
+ // Keep a revoke critical section closed to both credential reuse and new
+ // first-pair credential creation for the same verified Origin.
+ if (this.revokingExtensionKeys.has(sessionKey)) {
this.reject(socket, 401)
return
}
- const { browser, extensionId } = paired.identity
- console.log(
- `[bridge-debug] /v1 accepted extId=${extensionId} browser=${browser}`
- )
+ // §8's closing requirement: reconnect attempts are rate-limited per
+ // verified origin and globally. Refused HERE rather than after the upgrade,
+ // for the same reason `/pair` refuses an unknown nonce before it: a
+ // throttled peer should not get a WebSocket, a pre-authentication slot, or
+ // a session object out of the attempt.
+ //
+ // This is not an authentication oracle. It answers only "you are asking too
+ // often", which is true regardless of whether any credential exists — §8's
+ // requirement that an unknown `credentialId` and a bad MAC be
+ // indistinguishable concerns what happens *after* admission.
+ if (!this.reconnectRate.admit(peer.origin)) {
+ this.reject(socket, 429)
+ return
+ }
+
this.wss.handleUpgrade(req, socket, head, (ws) => {
- this.attachConnection(ws, extensionId, browser, null, true)
- this.opts.pairing.markActive(paired.identity)
+ if (this.revokingExtensionKeys.has(sessionKey)) {
+ ws.close()
+ return
+ }
+ const entry: ReconnectPreAuthEntry = { ws, sessionKey, session: null }
+ if (!this.preAuthReconnect.admit(entry)) {
+ ws.close()
+ return
+ }
+ ws.on('error', () => {})
+
+ const session = new ReconnectSession({
+ verifiedOrigin: peer.origin,
+ // Derived from the Origin scheme, never from a stored or claimed
+ // field: §8 binds the live connection's values into the MAC.
+ browser: peer.browser,
+ instanceId: mbp1.instanceId,
+ credentials: mbp1.credentials,
+ sendText: (json) => sendText(ws, json),
+ close: () => ws.close(),
+ onAuthenticated: (channel) => {
+ detachPreAuth()
+ this.preAuthReconnect.settle(entry)
+ this.adoptAuthenticatedSession(
+ ws,
+ {
+ kind: 'extension',
+ browser: peer.browser,
+ extensionId: peer.extensionId,
+ },
+ channel
+ )
+ },
+ now: () => Date.now(),
+ random: (n) => new Uint8Array(randomBytes(n)),
+ })
+ entry.session = session
+
+ const pump = createPreAuthFramePump(ws, (frame, isBinary) =>
+ // §8 pre-channel framing is text-only, exactly as §6.1. A binary frame
+ // is routed through the same handler with a body that cannot parse, so
+ // the session emits its own uniform `protocolViolation` rather than the
+ // wiring inventing a second, differently-shaped failure path.
+ session.handleText(isBinary ? '' : frame.toString('utf8'), frame.length)
+ )
+ const onMessage = (data: RawData, isBinary: boolean): void => {
+ pump.push(rawToBuffer(data), isBinary)
+ }
+ const detachPreAuth = (): void => {
+ ws.off('message', onMessage)
+ pump.handOver()
+ }
+ ws.on('message', onMessage)
+
+ ws.on('close', () => {
+ detachPreAuth()
+ this.preAuthReconnect.settle(entry)
+ session.dispose('socket-closed')
+ })
+
+ // The server speaks first on `/v1`; the listener is already attached, so
+ // a fast client's response cannot race it.
+ session.start()
})
}
- private attachConnection(
- ws: WebSocket,
- extensionId: string,
- browser: Browser,
- pairArgs: PairRequestArgs | null,
- authorized: boolean
+ /**
+ * Promote a socket that has completed MBP1 into the live session map, with
+ * MDXP running inside the AEAD envelope.
+ *
+ * The caller MUST have detached its pre-authentication `'message'` listener
+ * in the same tick: Node fans `'message'` out to every listener, so a
+ * surviving one would advance the opener's strict sequence a second time and
+ * the real consumer would see a mismatch on the very next frame.
+ */
+ adoptAuthenticatedSession(
+ ws: WebSocketLike,
+ identity: ClientIdentity & { kind: 'extension' },
+ channel: EnvelopeChannel
): void {
- const sessionKey = makeSessionKey(browser, extensionId)
- const existing = this.sessions.get(sessionKey)
- if (existing) {
- existing.conn.dispose()
- }
+ // Byte-identical to `clientKey(identity)`, which the SSE revoke matcher
+ // and `getSession` both rely on.
+ const sessionKey = makeSessionKey(identity.browser, identity.extensionId)
const startedAt = Date.now()
- const conn = new BridgeConnection(ws, {
+ // The handed-over endpoints, never fresh ones: their sequence counters
+ // continue from the handshake (`/pair` has already sealed
+ // `credentialCommitted`).
+ const envelope = wrapWithEnvelope(ws, channel, (fault) => {
+ // §10: any gap, repeat, tampered frame, post-activation text frame, or
+ // usage-bound reached (inbound or outbound) closes immediately. The
+ // close code separates "the peer broke the protocol", "this process
+ // did", and "a usage bound was reached — reconnect" without naming
+ // which check failed — every §10 violation of a given kind reports the
+ // same code (§11).
+ ws.close(closeCodeForEnvelopeFault(fault.kind))
+ })
+ const conn = new BridgeConnection(envelope, {
sessionKey,
- extensionId,
- browser,
+ extensionId: identity.extensionId,
+ browser: identity.browser,
startedAt,
})
- // `/v1` reconnects arrive with a pair token already verified at upgrade,
- // so they are authorized immediately. `/pair` first-connects are NOT:
- // control-plane / download methods stay closed until the initialize
- // handler records a pairing approval.
- if (authorized) conn.markAuthorized()
-
- this.applyHandlers(conn, pairArgs)
+ // MBP1 authenticated the transport below MDXP, so the session is
+ // authorized on arrival. No handler grants this any more.
+ conn.markAuthorized()
+ if (this.revokingExtensionKeys.has(sessionKey)) {
+ conn.revokeAuthorization()
+ this.closeSessionTransport({
+ conn,
+ extensionId: identity.extensionId,
+ browser: identity.browser,
+ startedAt,
+ envelope,
+ })
+ return
+ }
+ this.applyHandlers(conn, null)
- const session: BridgeSession = { conn, extensionId, browser, startedAt }
+ const session: BridgeSession = {
+ conn,
+ extensionId: identity.extensionId,
+ browser: identity.browser,
+ startedAt,
+ envelope,
+ }
+ // Register BEFORE disposing the predecessor, and only ever from here —
+ // the unconditional pre-construction eviction this replaces let an
+ // unauthenticated `/pair` connection kick a live authenticated session
+ // just by opening a socket (§4).
+ const existing = this.sessions.get(sessionKey)
this.sessions.set(sessionKey, session)
+ existing?.conn.dispose()
+
ws.on('close', () => {
+ // Only ever remove OUR OWN entry: the replaced socket's imminent close
+ // must not delete the replacement that just took its key.
if (this.sessions.get(sessionKey) === session) {
this.sessions.delete(sessionKey)
}
@@ -929,6 +1751,37 @@ export class WebSocketBridgeServer {
})
conn.listen()
+ this.opts.onExtensionAuthenticated?.(identity)
+ }
+
+ /** §7.3's counter moves exactly once per `/pair` session, on whichever
+ * terminal path arrives first. */
+ private recordPairOutcome(entry: PairPreAuthEntry): void {
+ if (entry.outcomeRecorded) {
+ return
+ }
+ entry.outcomeRecorded = true
+ this.floodControl.recordOutcome({
+ queuedDialog: entry.queuedDialog,
+ // §7.2 never gives a consumed attempt back, so reading it after the fact
+ // is exactly the "reached pakeA and did not confirm" test §7.3 wants.
+ consumedAttempt: (entry.session?.attemptCount ?? 0) > 0,
+ confirmed: entry.confirmed,
+ })
+ }
+
+ private expirePairPreAuth(entry: PairPreAuthEntry): void {
+ try {
+ entry.session?.dispose('timeout')
+ this.recordPairOutcome(entry)
+ } finally {
+ // `dispose` deliberately does NOT close the socket — both session modules
+ // read it as "the peer is already gone, or the wiring is closing it" — so
+ // the wiring must, and must do so even if the bookkeeping above throws.
+ // This runs from a timer callback, where a lost close means a peer that
+ // upgraded and then said nothing holds its slot for the process's life.
+ entry.ws.close()
+ }
}
private applyHandlers(
@@ -937,24 +1790,25 @@ export class WebSocketBridgeServer {
): void {
const ctx = contextFromConnection(conn, pairArgs)
// Every method EXCEPT the handshake pair (motrix/initialize, system/ping)
- // requires an authorized session. A `/pair` first-connect is unauthorized
- // until its initialize handler records a pairing approval, so without this
- // a caller that merely consumed a one-shot nonce could drive download +
- // control-plane methods before (or entirely without) user approval. The
+ // requires an authorized session. Under MBP1 every WebSocket session is
+ // authorized before this runs, so the gate is defence in depth rather than
+ // the live boundary: it is what stops a future transport that admits an
+ // unauthorized connection from silently reaching the control plane. The
// dispatcher itself has no authz notion, so the gate lives at the wiring.
const authorizedDispatch = (
method: string,
params: unknown
): Promise<unknown> => {
if (!ctx.isAuthorized()) {
- // Reject (not sync-throw) so the MdxpError travels the same path as a
- // dispatcher rejection and keeps its code on the wire.
+ const error = makeMdxpError(
+ ErrorCodes.PermissionDenied,
+ 'session is not authorized; complete pairing first',
+ { appCode: 'pair.required' }
+ )
+ // vscode-jsonrpc preserves a ResponseError on the wire; rejecting its
+ // handler with the package's plain MdxpError shape collapses to -32603.
return Promise.reject(
- makeMdxpError(
- ErrorCodes.PermissionDenied,
- 'session is not authorized; complete pairing first',
- { appCode: 'pair.required' }
- )
+ new ResponseError(error.code, error.message, error.data)
)
}
return this.dispatchTracked(method, params, ctx)
@@ -1014,6 +1868,134 @@ export class WebSocketBridgeServer {
}
}
+const REJECT_REASONS = {
+ 401: 'Unauthorized',
+ 403: 'Forbidden',
+ 404: 'Not Found',
+ 429: 'Too Many Requests',
+} as const
+
+/** One WebSocket text frame carrying one JSON object (§6.1). */
+function sendText(ws: WebSocket, json: object): void {
+ if (ws.readyState !== ws.OPEN) {
+ return
+ }
+ ws.send(JSON.stringify(json))
+}
+
+/** One WebSocket binary frame carrying one sealed envelope (§10). */
+function sendBinary(ws: WebSocket, frame: Uint8Array): void {
+ if (ws.readyState !== ws.OPEN) {
+ return
+ }
+ ws.send(frame, { binary: true })
+}
+
+/**
+ * Normalize whatever `ws` delivered into one contiguous `Buffer`. In the
+ * default `binaryType: 'nodebuffer'` mode that is already a `Buffer`, but the
+ * declared `RawData` also admits a fragment array and an `ArrayBuffer`, and a
+ * pre-authentication frame's byte length is load-bearing (§6.1's 16 KiB cap).
+ */
+function rawToBuffer(data: RawData): Buffer {
+ if (Buffer.isBuffer(data)) {
+ return data
+ }
+ if (Array.isArray(data)) {
+ return Buffer.concat(data)
+ }
+ return Buffer.from(data)
+}
+
+/**
+ * The same bytes as a plain `Uint8Array`, zero-copy — so §6.1's byte-length
+ * accounting is unaffected.
+ *
+ * `mbp1/` hands its byte inputs to `@noble` helpers that accept a value only
+ * when `value instanceof Uint8Array`, and a `Buffer` fails that check whenever
+ * the two were built in different realms. Handing `EnvelopeOpener.open` a
+ * `Buffer` therefore risks a `TypeError` from inside the AEAD layer, which
+ * `PairSession.handleBinary` would report to the peer as a §10 envelope
+ * violation — our own fault dressed up as the peer's.
+ */
+function asProtocolBytes(frame: Buffer): Uint8Array {
+ return new Uint8Array(frame.buffer, frame.byteOffset, frame.byteLength)
+}
+
+interface PreAuthFramePump {
+ /** Enqueue one raw frame from the socket. */
+ push(frame: Buffer, isBinary: boolean): void
+ /** Stop feeding the handshake and release the unread tail. */
+ handOver(): void
+}
+
+/**
+ * Feeds pre-authentication frames to a session **one at a time**, and hands
+ * the unread tail to whoever takes the socket over.
+ *
+ * Serializing is the first half: both session handlers are `async` and await
+ * the credential store, so a per-event call would let a second frame enter the
+ * state machine mid-transition.
+ *
+ * Releasing the tail is the second half, and it is the part that is easy to
+ * miss. A client may pipeline its first MDXP request straight behind the last
+ * handshake frame, without waiting for `credentialCommitted` /
+ * `reconnectAccept`. That frame is already queued here when the handover
+ * happens, and the session's post-handover guards **drop** such frames rather
+ * than treating them as violations — so dispatching it would swallow the
+ * request AND leave the envelope opener one sequence number behind, killing the
+ * connection on the next frame with a mismatch that looks like tampering.
+ * Re-emitting it on the socket instead delivers it to the MDXP consumer that
+ * has just attached, in order.
+ */
+function createPreAuthFramePump(
+ ws: WebSocket,
+ consume: (frame: Buffer, isBinary: boolean) => Promise<void>
+): PreAuthFramePump {
+ const pending: Array<[Buffer, boolean]> = []
+ let running = false
+ let handedOver = false
+
+ const drain = async (): Promise<void> => {
+ if (running) {
+ return
+ }
+ running = true
+ try {
+ while (!handedOver) {
+ const next = pending.shift()
+ if (next === undefined) {
+ break
+ }
+ await consume(next[0], next[1])
+ }
+ } catch {
+ // Both session handlers contain their own faults, so a rejection here is
+ // an internal one. Close rather than strand every later frame; nothing is
+ // logged, because the value may carry protocol state (§11).
+ pending.length = 0
+ ws.close(WS_CLOSE_INTERNAL_ERROR)
+ } finally {
+ running = false
+ }
+ if (handedOver && pending.length > 0) {
+ for (const [frame, isBinary] of pending.splice(0)) {
+ ws.emit('message', frame, isBinary)
+ }
+ }
+ }
+
+ return {
+ push(frame, isBinary) {
+ pending.push([frame, isBinary])
+ void drain()
+ },
+ handOver() {
+ handedOver = true
+ },
+ }
+}
+
/** Generous cap for the unary body; the read methods carry tiny params, and
* download/add's torrent base64 (Spec 4) stays comfortably under this. */
const MAX_UNARY_BODY_BYTES = 4 * 1024 * 1024
diff --git a/src/core/bridge/web-socket-message-stream.ts b/src/core/bridge/web-socket-message-stream.ts
index 413ffea6..767e4b18 100644
--- a/src/core/bridge/web-socket-message-stream.ts
+++ b/src/core/bridge/web-socket-message-stream.ts
@@ -21,15 +21,32 @@ import { Emitter } from 'vscode-jsonrpc'
// Minimal subset of ws.WebSocket we depend on. Avoids a hard dep on
// `ws` types in @core, which would be an architectural smell (core is
// engine-agnostic). Caller passes any object matching this shape.
+//
+// `isBinary` is NOT optional in spirit, only in the type: `ws` runs in its
+// default `binaryType: 'nodebuffer'` mode, where a text frame and a binary
+// frame BOTH arrive as a `Buffer`, so `typeof data === 'string'` cannot tell
+// them apart. Anything that must distinguish the two — the MBP1 envelope
+// stream, the pre-authentication demux — has to read this flag. It is declared
+// optional so a socket double that omits it still satisfies the interface; the
+// consumers treat "absent" as "not binary", which is the fail-closed reading.
+//
+// `send` accepts bytes as well as text because the envelope stream sends
+// sealed binary frames through the same seam the JSON writer uses.
export interface WebSocketLike {
readyState: number
- on(event: 'message', listener: (data: Buffer | string) => void): void
+ on(
+ event: 'message',
+ listener: (data: Buffer | string, isBinary?: boolean) => void
+ ): void
on(event: 'close', listener: () => void): void
on(event: 'error', listener: (err: Error) => void): void
- off(event: 'message', listener: (data: Buffer | string) => void): void
+ off(
+ event: 'message',
+ listener: (data: Buffer | string, isBinary?: boolean) => void
+ ): void
off(event: 'close', listener: () => void): void
off(event: 'error', listener: (err: Error) => void): void
- send(data: string): void
+ send(data: string | Uint8Array): void
close(code?: number, reason?: string): void
}
diff --git a/src/core/log-redact.test.ts b/src/core/log-redact.test.ts
index 5c774627..a1568601 100644
--- a/src/core/log-redact.test.ts
+++ b/src/core/log-redact.test.ts
@@ -143,6 +143,30 @@ describe('redactLogFields', () => {
})
})
+ it('redacts MBP1 secrets but keeps its public and diagnostic fields', () => {
+ const out = redactLogFields(
+ {
+ mutualKeyB64: 'secret',
+ pairNonce: 'secret',
+ nmTicket: 'secret',
+ // Public by construction: `ticketBindingKey` travels in cleartext in
+ // pairHello and is bound into the transcript AAD, and `sessionKey` is
+ // the `${browser}:${extensionId}` session identifier. Redacting
+ // either would cost diagnosability and protect nothing.
+ ticketBindingKey: 'AAAA',
+ sessionKey: 'chromium:abcdef',
+ },
+ { profile: 'application' }
+ )
+ expect(out).toEqual({
+ mutualKeyB64: '[redacted]',
+ pairNonce: '[redacted]',
+ nmTicket: '[redacted]',
+ ticketBindingKey: 'AAAA',
+ sessionKey: 'chromium:abcdef',
+ })
+ })
+
it('omits body and storage values even when they are nullish', () => {
const out = redactLogFields(
{ body: null, storageValue: undefined, status: 'ready' },
diff --git a/src/core/log-redact.ts b/src/core/log-redact.ts
index 4a7be19f..4483aced 100644
--- a/src/core/log-redact.ts
+++ b/src/core/log-redact.ts
@@ -85,8 +85,10 @@ const SENSITIVE_VALUE_KEYS = new Set([
'apikey',
'proxyauth',
'mutualkey',
+ 'mutualkeyb64',
'ticketkey',
'nmticket',
+ 'pairnonce',
'proxyusername',
'proxypassword',
'allproxyuser',
diff --git a/src/core/plugin/host/plugin-host.test.ts b/src/core/plugin/host/plugin-host.test.ts
index f8840953..16dfc0ff 100644
--- a/src/core/plugin/host/plugin-host.test.ts
+++ b/src/core/plugin/host/plugin-host.test.ts
@@ -820,9 +820,14 @@ describe('PluginHost locale change propagation', () => {
})
it('continues locale fan-out when one active bridge throws', async () => {
- const log = new LogCapabilityHost({
- pluginLogsDir: path.join(root, 'logs'),
- })
+ const pluginLog = {
+ trace: vi.fn(),
+ debug: vi.fn(),
+ info: vi.fn(),
+ warn: vi.fn(),
+ error: vi.fn(),
+ fatal: vi.fn(),
+ }
const app = new AppCapabilityHost({
appVersion: '2.5.0',
platform: 'linux',
@@ -832,8 +837,8 @@ describe('PluginHost locale change propagation', () => {
})
const i18n = new I18nCapabilityHost({ hostLanguage: 'en-US' })
const capHost = {
- createLog: (id: string) => log.create(id),
- getTail: (id: string, n: number) => log.getTail(id, n),
+ createLog: () => pluginLog,
+ getTail: () => [],
appSnapshot: () => ({ ...app.snapshot(), locale: i18n.language }),
i18nSnapshot: (pluginId: string) => ({
language: i18n.language,
@@ -842,7 +847,7 @@ describe('PluginHost locale change propagation', () => {
}),
setLocale: (locale: SupportedLocale) => i18n.setLanguage(locale),
onLocaleChange: (h: (lang: string) => void) => i18n.onChange(h),
- flush: () => log.flush(),
+ flush: async () => {},
} as unknown as CapabilityHost
const host = new PluginHost({
@@ -883,6 +888,10 @@ describe('PluginHost locale change propagation', () => {
'ltr',
expect.objectContaining({ greeting: '你好 Bob' })
)
+ expect(pluginLog.warn).toHaveBeenCalledWith(
+ 'plugin locale broadcast failed',
+ { error: 'worker unavailable' }
+ )
await host.shutdown()
})
diff --git a/src/core/settings/migrations.test.ts b/src/core/settings/migrations.test.ts
index 0610c5e6..20ddf54b 100644
--- a/src/core/settings/migrations.test.ts
+++ b/src/core/settings/migrations.test.ts
@@ -87,8 +87,8 @@ describe('migrate', () => {
})
describe('migration v3 → v4', () => {
- it('targets version 9', () => {
- expect(CURRENT_SETTINGS_VERSION).toBe(9)
+ it('targets version 10', () => {
+ expect(CURRENT_SETTINGS_VERSION).toBe(10)
})
it('adds dhtListenPort defaulting to listenPort value', () => {
@@ -175,7 +175,7 @@ describe('migration v5 → v6 (media namespace)', () => {
it('migrates v5 → v6 by injecting media defaults', () => {
const v5 = { version: 5, engine: {}, app: {} }
const out = migrate(v5)
- expect(out.version).toBe(9)
+ expect(out.version).toBe(CURRENT_SETTINGS_VERSION)
expect(out.media).toEqual(DEFAULT_MEDIA_SETTINGS)
})
@@ -198,8 +198,8 @@ describe('migration v5 → v6 (media namespace)', () => {
})
describe('migration v6 → v7 (speedLimit namespace)', () => {
- it('targets version 9', () => {
- expect(CURRENT_SETTINGS_VERSION).toBe(9)
+ it('targets version 10', () => {
+ expect(CURRENT_SETTINGS_VERSION).toBe(10)
})
it('v6→v7: maps a configured limit to base, turtle off', () => {
@@ -210,7 +210,7 @@ describe('migration v6 → v7 (speedLimit namespace)', () => {
maxOverallUploadLimit: 256000,
},
})
- expect(result.version).toBe(9)
+ expect(result.version).toBe(CURRENT_SETTINGS_VERSION)
expect(
(result.engine as Record<string, unknown>).maxOverallDownloadLimit
).toBeUndefined()
@@ -259,7 +259,7 @@ describe('migration v7 → v8 (application update channel)', () => {
it('defaults existing users to stable', () => {
const result = migrate({ version: 7, app: { theme: 'dark' } })
- expect(result.version).toBe(9)
+ expect(result.version).toBe(CURRENT_SETTINGS_VERSION)
expect(result.app).toEqual({ theme: 'dark', updateChannel: 'stable' })
})
@@ -291,7 +291,7 @@ describe('migration v8 → v9 (performance profiles)', () => {
},
})
- expect(result.version).toBe(9)
+ expect(result.version).toBe(CURRENT_SETTINGS_VERSION)
expect(result.engine).toMatchObject({ performanceProfile: 'auto' })
})
@@ -315,3 +315,56 @@ describe('migration v8 → v9 (performance profiles)', () => {
})
})
})
+
+const UUID_PATTERN =
+ /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/
+
+describe('migration v9 → v10 (bridge fixed port and instance id)', () => {
+ it('seeds fixedPort auto and a UUID instanceId for a plain v9 document', () => {
+ const result = migrate({ version: 9, app: { theme: 'dark' } })
+
+ expect(result.version).toBe(CURRENT_SETTINGS_VERSION)
+ const bridge = result.bridge as Record<string, unknown>
+ expect(bridge.fixedPort).toBe('auto')
+ expect(bridge.instanceId).toEqual(expect.stringMatching(UUID_PATTERN))
+ })
+
+ it('preserves an existing bridge object instead of clobbering it', () => {
+ const result = migrate({
+ version: 9,
+ bridge: { fixedPort: 16803, instanceId: 'already-set-id' },
+ })
+
+ expect(result.bridge).toEqual({
+ fixedPort: 16803,
+ instanceId: 'already-set-id',
+ })
+ })
+
+ it('mints a fresh instanceId only when one is not already present', () => {
+ const result = migrate({ version: 9, bridge: { fixedPort: 16803 } })
+
+ expect((result.bridge as Record<string, unknown>).fixedPort).toBe(16803)
+ expect((result.bridge as Record<string, unknown>).instanceId).toEqual(
+ expect.stringMatching(UUID_PATTERN)
+ )
+ })
+
+ it('never regenerates instanceId once the document is already at v10', () => {
+ const migratedOnce = migrate({ version: 9 })
+ const instanceId = (migratedOnce.bridge as Record<string, unknown>)
+ .instanceId
+ // Pins that seeding actually minted an id: without this, a migration that
+ // returned a bridge object with no instanceId would satisfy the equality
+ // below vacuously (undefined === undefined).
+ expect(instanceId).toEqual(expect.stringMatching(UUID_PATTERN))
+
+ // migrate() short-circuits at version === CURRENT_SETTINGS_VERSION
+ // (migrations.ts), so a v10 document never re-enters migrateV9ToV10.
+ const migratedTwice = migrate(migratedOnce)
+
+ expect((migratedTwice.bridge as Record<string, unknown>).instanceId).toBe(
+ instanceId
+ )
+ })
+})
diff --git a/src/core/settings/migrations.ts b/src/core/settings/migrations.ts
index 15592b5c..cf09cb6f 100644
--- a/src/core/settings/migrations.ts
+++ b/src/core/settings/migrations.ts
@@ -1,4 +1,6 @@
-export const CURRENT_SETTINGS_VERSION = 9
+import { randomUUID } from 'node:crypto'
+
+export const CURRENT_SETTINGS_VERSION = 10
interface Migration {
version: number
@@ -205,6 +207,33 @@ function migrateV8ToV9(data: Record<string, unknown>): Record<string, unknown> {
}
}
+/**
+ * Seeds `bridge.fixedPort` and a stable `bridge.instanceId`.
+ *
+ * Numbered v10 rather than v9: `main` shipped its own v9 (the engine
+ * performance profile) while this branch was in flight, and a rebase cannot
+ * merge two migrations that claim the same version — the one already on the
+ * trunk keeps the number.
+ */
+function migrateV9ToV10(
+ data: Record<string, unknown>
+): Record<string, unknown> {
+ const bridge = (data.bridge ?? {}) as Record<string, unknown>
+ const instanceId =
+ typeof bridge.instanceId === 'string' && bridge.instanceId !== ''
+ ? bridge.instanceId
+ : randomUUID()
+
+ return {
+ ...data,
+ version: 10,
+ bridge: {
+ fixedPort: bridge.fixedPort ?? 'auto',
+ instanceId,
+ },
+ }
+}
+
const migrations: Migration[] = [
{ version: 1, migrate: migrateV0ToV1 },
{ version: 2, migrate: migrateV1ToV2 },
@@ -215,6 +244,7 @@ const migrations: Migration[] = [
{ version: 7, migrate: migrateV6ToV7 },
{ version: 8, migrate: migrateV7ToV8 },
{ version: 9, migrate: migrateV8ToV9 },
+ { version: 10, migrate: migrateV9ToV10 },
]
export function migrate(
diff --git a/src/core/settings/settings-manager.test.ts b/src/core/settings/settings-manager.test.ts
index e1401740..0771fe3b 100644
--- a/src/core/settings/settings-manager.test.ts
+++ b/src/core/settings/settings-manager.test.ts
@@ -94,6 +94,12 @@ describe('SettingsManager', () => {
expect(settings.onboarding).toEqual(DEFAULT_ONBOARDING_STATE)
expect(settings.dashboard).toEqual(DEFAULT_DASHBOARD_LAYOUT)
expect(settings.dashboard.columns).toBe(DASHBOARD_COLUMNS)
+ expect(settings.bridge.fixedPort).toBe('auto')
+ expect(settings.bridge.instanceId).toEqual(
+ expect.stringMatching(
+ /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/
+ )
+ )
})
it('uses an injected Liquid Glass default when the file does not exist', async () => {
@@ -328,6 +334,67 @@ describe('SettingsManager', () => {
})
})
+ describe('bridge settings', () => {
+ it('mints a different instanceId per fresh install', async () => {
+ mockedFs.readFile.mockRejectedValue(
+ Object.assign(new Error('ENOENT'), { code: 'ENOENT' })
+ )
+ mockedFs.mkdir.mockResolvedValue(undefined)
+ mockedFs.writeFile.mockResolvedValue(undefined)
+
+ const first = new SettingsManager(TEST_PATH, { onChange })
+ await first.load()
+ const second = new SettingsManager(TEST_PATH, { onChange })
+ await second.load()
+
+ expect(first.get().bridge.instanceId).not.toBe('')
+ expect(second.get().bridge.instanceId).not.toBe('')
+ expect(first.get().bridge.instanceId).not.toBe(
+ second.get().bridge.instanceId
+ )
+ })
+
+ it('preserves a persisted instanceId across reload instead of regenerating it', async () => {
+ const saved = {
+ version: CURRENT_SETTINGS_VERSION,
+ engine: DEFAULT_ENGINE_SETTINGS,
+ app: DEFAULT_APP_SETTINGS,
+ plugins: {},
+ bridge: { fixedPort: 16804, instanceId: 'stable-instance-id' },
+ }
+ mockedFs.readFile.mockResolvedValue(JSON.stringify(saved))
+
+ await manager.load()
+
+ expect(manager.get().bridge).toEqual({
+ fixedPort: 16804,
+ instanceId: 'stable-instance-id',
+ })
+ })
+
+ it('seeds bridge settings when migrating a pre-v9 settings file', async () => {
+ const v8 = {
+ version: 8,
+ engine: DEFAULT_ENGINE_SETTINGS,
+ app: DEFAULT_APP_SETTINGS,
+ plugins: {},
+ }
+ mockedFs.readFile.mockResolvedValue(JSON.stringify(v8))
+ mockedFs.mkdir.mockResolvedValue(undefined)
+ mockedFs.writeFile.mockResolvedValue(undefined)
+
+ await manager.load()
+
+ expect(manager.get().version).toBe(CURRENT_SETTINGS_VERSION)
+ expect(manager.get().bridge.fixedPort).toBe('auto')
+ expect(manager.get().bridge.instanceId).toEqual(
+ expect.stringMatching(
+ /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/
+ )
+ )
+ })
+ })
+
describe('get / getEngine / getApp', () => {
beforeEach(async () => {
mockedFs.readFile.mockRejectedValue(
@@ -726,6 +793,27 @@ describe('SettingsManager', () => {
expect(scopes.updateApp).toBe(true)
})
+ it('merges bridge namespace on partial update', async () => {
+ const result = await manager.update({ bridge: { fixedPort: 16900 } })
+ expect(result.saved).toBe(true)
+ expect(manager.get().bridge.fixedPort).toBe(16900)
+ })
+
+ it('does not reset instanceId to the unseeded sentinel on a partial bridge update', async () => {
+ // Regression guard: `bridgeSettingsSchema` declares
+ // `instanceId: z.string().catch('')`, so parsing a partial patch
+ // directly (rather than merging onto the current value first) would
+ // silently reset the durable instance id to the unseeded sentinel —
+ // and there is no repair path once that happens.
+ const before = manager.get().bridge.instanceId
+ expect(before).not.toBe('')
+
+ await manager.update({ bridge: { fixedPort: 16900 } })
+
+ expect(manager.get().bridge.instanceId).toBe(before)
+ expect(manager.get().bridge.fixedPort).toBe(16900)
+ })
+
it('does not set requiresAppRestart when browserBridgeEnabled changes', async () => {
// browserBridgeEnabled is hot-applied via BridgeManager.setEnabled() —
// no app restart needed.
diff --git a/src/core/settings/settings-manager.ts b/src/core/settings/settings-manager.ts
index 785a01d4..ea4a2cac 100644
--- a/src/core/settings/settings-manager.ts
+++ b/src/core/settings/settings-manager.ts
@@ -1,3 +1,4 @@
+import { randomUUID } from 'node:crypto'
import { mkdir, readFile } from 'node:fs/promises'
import os from 'node:os'
import path from 'node:path'
@@ -6,6 +7,11 @@ import {
APP_RESTART_REQUIRED_KEYS,
ENGINE_RESTART_REQUIRED_KEYS,
} from '@shared/constants/restart-keys'
+import type { BridgeSettings } from '@shared/schemas/bridge-settings'
+import {
+ bridgeSettingsSchema,
+ DEFAULT_BRIDGE_SETTINGS,
+} from '@shared/schemas/bridge-settings'
import {
DEFAULT_PROXY_SETTINGS,
proxySettingsSchema,
@@ -119,6 +125,11 @@ function createDefaultSettings(
media: { ...DEFAULT_MEDIA_SETTINGS },
dashboard: validateDashboardLayoutSettings({} as DashboardLayoutSettings),
speedLimit: { ...DEFAULT_SPEED_LIMIT_SETTINGS },
+ // Fresh install: mint a real, durable instance id now rather than
+ // persisting the '' sentinel. Unlike rpcSecret/defaultSaveDir (seeded
+ // later by seedSentinels using instance-scoped defaults), the UUID
+ // needs no runtime context, so it is generated directly here.
+ bridge: { ...DEFAULT_BRIDGE_SETTINGS, instanceId: randomUUID() },
windowState: {},
}
}
@@ -501,6 +512,19 @@ export class SettingsManager {
)
}
+ // Merge bridge settings. `instanceId` uses `.catch('')`
+ // (bridge-settings.ts), so parsing a partial patch on its own would
+ // silently reset the durable instance id to the unseeded '' sentinel —
+ // there is no repair path once that happens (seeding runs only for
+ // fresh defaults and the v8->v9 migration). Merge onto the current
+ // value first, exactly like proxy/speedLimit above.
+ if (partial.bridge) {
+ next.bridge = bridgeSettingsSchema.parse({
+ ...next.bridge,
+ ...partial.bridge,
+ })
+ }
+
// Merge plugins
if (partial.plugins !== undefined) {
next.plugins = {
@@ -563,6 +587,7 @@ export class SettingsManager {
speedLimit: validateSpeedLimitSettings(
(raw.speedLimit ?? {}) as SpeedLimitSettings
),
+ bridge: bridgeSettingsSchema.parse((raw.bridge ?? {}) as BridgeSettings),
windowState: windowStateSchema.parse(raw.windowState ?? {}),
}
}
diff --git a/src/main/bridge/bootstrap-lifecycle.test.ts b/src/main/bridge/bootstrap-lifecycle.test.ts
index b46af885..09f81fff 100644
--- a/src/main/bridge/bootstrap-lifecycle.test.ts
+++ b/src/main/bridge/bootstrap-lifecycle.test.ts
@@ -1,11 +1,13 @@
import { mkdtemp, rm } from 'node:fs/promises'
import { tmpdir } from 'node:os'
import { join } from 'node:path'
+import type { Mbp1CredentialStore } from '@core/bridge/credential-store'
import { EndpointFileWriter } from '@core/bridge/endpoint-file-writer'
import { PairingService } from '@core/bridge/pairing-service'
import { WebSocketBridgeServer } from '@core/bridge/web-socket-bridge-server'
import { BridgeReceiver } from '@core/bridge-receiver/bridge-receiver'
import { BridgeStreamSource } from '@core/bridge-receiver/bridge-stream-source'
+import type { BridgeStatusInfo } from '@shared/protocol/bridge'
import { EngineState } from '@shared/types/engine'
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
import { NativeMessagingInstaller } from './native-messaging-installer'
@@ -66,6 +68,7 @@ function args(): Parameters<typeof bootstrapBridge>[0] {
motrixVersion: '2.0-test',
ffmpegAvailable: false,
enabled: true,
+ bridgeSettings: { fixedPort: 'auto', instanceId: 'test-instance-id' },
eventBus: { on: vi.fn(), off: vi.fn() },
createTaskDeps: {} as never,
activityRecorder: {} as never,
@@ -139,7 +142,10 @@ describe('desktop bridge bootstrap ownership', () => {
vi.spyOn(BridgeReceiver.prototype, 'restoreInflight').mockResolvedValue()
vi.spyOn(BridgeReceiver.prototype, 'start').mockImplementation(() => {})
vi.spyOn(BridgeReceiver.prototype, 'stopAndDrain').mockResolvedValue()
- vi.spyOn(WebSocketBridgeServer.prototype, 'start').mockResolvedValue(19002)
+ vi.spyOn(
+ WebSocketBridgeServer.prototype,
+ 'startOnFirstFree'
+ ).mockResolvedValue({ port: 19002, degraded: false })
vi.spyOn(WebSocketBridgeServer.prototype, 'stop').mockResolvedValue()
vi.spyOn(PairingService.prototype, 'stopAndDrain').mockResolvedValue()
vi.spyOn(BridgeStreamSource.prototype, 'attach').mockImplementation(
@@ -204,7 +210,9 @@ describe('desktop bridge bootstrap ownership', () => {
expect(receiverLive).toBe(false)
expect(BridgeReceiver.prototype.stopAndDrain).toHaveBeenCalledOnce()
- expect(WebSocketBridgeServer.prototype.start).not.toHaveBeenCalled()
+ expect(
+ WebSocketBridgeServer.prototype.startOnFirstFree
+ ).not.toHaveBeenCalled()
})
it('detaches a stream whose attach side effect throws', async () => {
@@ -379,4 +387,186 @@ describe('desktop bridge bootstrap ownership', () => {
expect(shutdownOrder).toEqual(['server', 'pairing'])
})
+
+ describe('MBP1 identity persistence (§9.2) and the Paired seam', () => {
+ it('persists localToken across a restart while rotating serverGeneration', async () => {
+ const writeCalls: Array<{
+ port: number
+ localToken: string
+ generation: string
+ }> = []
+ vi.mocked(EndpointFileWriter.prototype.write).mockImplementation(
+ async (port, localToken, generation) => {
+ writeCalls.push({ port, localToken, generation })
+ }
+ )
+
+ const first = await bootstrapBridge(args())
+ await first?.shutdown()
+ const second = await bootstrapBridge(args())
+ await second?.shutdown()
+
+ expect(writeCalls).toHaveLength(2)
+ // §9.2: localToken MUST survive a restart — only serverGeneration
+ // rotates. A rotating localToken would MAC-fail every in-flight NM
+ // ticket into an abort instead of the spec's graceful `unverified`
+ // downgrade.
+ expect(writeCalls[0]?.localToken).toBe(writeCalls[1]?.localToken)
+ expect(writeCalls[0]?.localToken).not.toBe('')
+ expect(writeCalls[0]?.generation).not.toBe(writeCalls[1]?.generation)
+ })
+
+ it('durably revokes MBP1 credentials before removing PairingService state and closing the live socket', async () => {
+ const runtime = await bootstrapBridge(args())
+ expect(runtime).not.toBeNull()
+ if (!runtime) return
+
+ const identity = {
+ kind: 'extension' as const,
+ browser: 'chromium' as const,
+ extensionId: 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
+ }
+
+ // Reach the real callback WebSocketBridgeServer's constructor was
+ // given — the exact seam `adoptAuthenticatedSession` invokes on
+ // every successful MBP1 authentication (Task 18's own tests prove
+ // THAT call fires; this proves the desktop shell's closure).
+ const opts = (
+ runtime.server as unknown as {
+ opts: {
+ onExtensionAuthenticated?: (id: typeof identity) => void
+ credentials: Mbp1CredentialStore
+ }
+ }
+ ).opts
+ expect(opts.onExtensionAuthenticated).toBeTypeOf('function')
+
+ const credential = await opts.credentials.offerProvisional(
+ {
+ browser: identity.browser,
+ verifiedOrigin: `chrome-extension://${identity.extensionId}`,
+ clientInstallationId: 'install-a',
+ },
+ 'official'
+ )
+ await opts.credentials.commitFromPair(credential.credentialId)
+ const successor = await opts.credentials.offerProvisional(
+ {
+ browser: identity.browser,
+ verifiedOrigin: `chrome-extension://${identity.extensionId}`,
+ clientInstallationId: 'install-a',
+ },
+ 'official'
+ )
+
+ // Inject a live session the way `adoptAuthenticatedSession` would,
+ // so the revoke-kick has something to find and close.
+ const conn = {
+ sendNotification: vi.fn(),
+ revokeAuthorization: vi.fn(),
+ dispose: vi.fn(),
+ }
+ const envelope = { close: vi.fn() }
+ ;(
+ runtime.server as unknown as { sessions: Map<string, unknown> }
+ ).sessions.set('chromium:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa', {
+ conn,
+ envelope,
+ extensionId: identity.extensionId,
+ browser: identity.browser,
+ startedAt: Date.now(),
+ })
+
+ opts.onExtensionAuthenticated?.(identity)
+ await vi.waitFor(() =>
+ expect(runtime.pairing.listPaired()).toHaveLength(1)
+ )
+ expect(runtime.pairing.listPaired()[0]?.identity).toEqual(identity)
+
+ const revokeHandler = electron.handle.mock.calls.find(
+ ([channel]) => channel === 'bridge:revokePair'
+ )?.[1] as
+ | ((event: unknown, params: { identity: typeof identity }) => unknown)
+ | undefined
+ expect(revokeHandler).toBeTypeOf('function')
+
+ await revokeHandler?.(undefined, { identity })
+
+ expect(opts.credentials.findForAuth(credential.credentialId)).toBeNull()
+ expect(opts.credentials.findForAuth(successor.credentialId)).toBeNull()
+ expect(runtime.pairing.listPaired()).toHaveLength(0)
+ expect(conn.sendNotification).toHaveBeenCalledWith(
+ expect.anything(),
+ expect.objectContaining({ reason: 'user-revoked' })
+ )
+ expect(envelope.close).toHaveBeenCalledWith(1000)
+ expect(conn.revokeAuthorization).toHaveBeenCalled()
+ expect(conn.dispose).toHaveBeenCalledOnce()
+ expect(
+ runtime.server.getSession('chromium:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa')
+ ).toBeUndefined()
+
+ await runtime.shutdown()
+ })
+ })
+
+ describe('bridge:getStatus (Task 21)', () => {
+ function getStatusHandler() {
+ return electron.handle.mock.calls.find(
+ ([channel]) => channel === 'bridge:getStatus'
+ )?.[1] as (() => Promise<BridgeStatusInfo>) | undefined
+ }
+
+ it('reports the bound port, fixedPort policy, and instanceId when nominal', async () => {
+ const runtime = await bootstrapBridge(args())
+ expect(runtime).not.toBeNull()
+ if (!runtime) return
+
+ const handler = getStatusHandler()
+ expect(handler).toBeTypeOf('function')
+ await expect(handler?.()).resolves.toEqual({
+ port: 19002,
+ degraded: false,
+ fixedPort: 'auto',
+ instanceId: 'test-instance-id',
+ })
+
+ await runtime.shutdown()
+ })
+
+ it('surfaces degraded: true and the ephemeral port when every candidate port was taken (§4)', async () => {
+ vi.mocked(
+ WebSocketBridgeServer.prototype.startOnFirstFree
+ ).mockResolvedValueOnce({ port: 54321, degraded: true })
+
+ const runtime = await bootstrapBridge(args())
+ expect(runtime).not.toBeNull()
+ if (!runtime) return
+
+ await expect(getStatusHandler()?.()).resolves.toEqual({
+ port: 54321,
+ degraded: true,
+ fixedPort: 'auto',
+ instanceId: 'test-instance-id',
+ })
+
+ await runtime.shutdown()
+ })
+
+ it('reflects a pinned fixedPort and instanceId from persisted bridge settings', async () => {
+ const runtime = await bootstrapBridge({
+ ...args(),
+ bridgeSettings: { fixedPort: 18080, instanceId: 'pinned-instance' },
+ })
+ expect(runtime).not.toBeNull()
+ if (!runtime) return
+
+ await expect(getStatusHandler()?.()).resolves.toMatchObject({
+ fixedPort: 18080,
+ instanceId: 'pinned-instance',
+ })
+
+ await runtime.shutdown()
+ })
+ })
})
diff --git a/src/main/bridge/bridge-manager.test.ts b/src/main/bridge/bridge-manager.test.ts
index a30f85da..443aae52 100644
--- a/src/main/bridge/bridge-manager.test.ts
+++ b/src/main/bridge/bridge-manager.test.ts
@@ -12,6 +12,8 @@ function makeRuntime(): BridgeRuntime {
unregister: vi.fn().mockResolvedValue(undefined),
} as unknown as BridgeRuntime['installer'],
endpointWriter: {} as unknown as BridgeRuntime['endpointWriter'],
+ port: 16802,
+ degraded: false,
shutdown: vi.fn().mockResolvedValue(undefined),
muxPipeline: undefined,
getMediaSegmentGids: vi.fn().mockReturnValue([]),
@@ -169,4 +171,97 @@ describe('BridgeManager', () => {
await mgr.start()
expect(mgr.current).toBeNull()
})
+
+ describe('restart()', () => {
+ it('is a no-op when the bridge is not running', async () => {
+ const factory = vi.fn()
+ const mgr = new BridgeManager(factory)
+
+ await mgr.restart()
+
+ expect(factory).not.toHaveBeenCalled()
+ expect(mgr.current).toBeNull()
+ })
+
+ it('stops the current runtime and starts a fresh one', async () => {
+ const first = makeRuntime()
+ const second = makeRuntime()
+ const factory = vi
+ .fn()
+ .mockResolvedValueOnce(first)
+ .mockResolvedValueOnce(second)
+ const mgr = new BridgeManager(factory)
+ await mgr.start()
+
+ await mgr.restart()
+
+ expect(first.shutdown).toHaveBeenCalledTimes(1)
+ expect(factory).toHaveBeenCalledTimes(2)
+ expect(mgr.current).toBe(second)
+ })
+
+ it('keeps Native Messaging registered — does not unregister on restart', async () => {
+ const first = makeRuntime()
+ const second = makeRuntime()
+ const factory = vi
+ .fn()
+ .mockResolvedValueOnce(first)
+ .mockResolvedValueOnce(second)
+ const mgr = new BridgeManager(factory)
+ await mgr.start()
+
+ await mgr.restart()
+
+ expect(first.installer.unregister).not.toHaveBeenCalled()
+ expect(second.installer.unregister).not.toHaveBeenCalled()
+ })
+
+ it('serializes as one transition behind a concurrent setEnabled(false)', async () => {
+ const first = makeRuntime()
+ const second = makeRuntime()
+ let resolveSecondFactory: (runtime: BridgeRuntime) => void = () => {}
+ const secondFactoryResult = new Promise<BridgeRuntime>((resolve) => {
+ resolveSecondFactory = resolve
+ })
+ const factory = vi
+ .fn()
+ .mockResolvedValueOnce(first)
+ .mockImplementationOnce(() => secondFactoryResult)
+ const mgr = new BridgeManager(factory)
+ await mgr.start()
+
+ const restarting = mgr.restart()
+ await vi.waitFor(() => expect(factory).toHaveBeenCalledTimes(2))
+ const disabling = mgr.setEnabled(false)
+ resolveSecondFactory(second)
+
+ await Promise.all([restarting, disabling])
+
+ // The disable that arrived after restart() was enqueued must win —
+ // never leave the bridge running after the user disabled it.
+ expect(second.shutdown).toHaveBeenCalledTimes(1)
+ expect(mgr.current).toBeNull()
+ })
+
+ it('no-ops when the bridge was stopped by a concurrent disable', async () => {
+ const first = makeRuntime()
+ let resolveStop: () => void = () => {}
+ const stopGate = new Promise<void>((resolve) => {
+ resolveStop = resolve
+ })
+ vi.mocked(first.shutdown).mockImplementationOnce(() => stopGate)
+ const factory = vi.fn().mockResolvedValueOnce(first)
+ const mgr = new BridgeManager(factory)
+ await mgr.start()
+
+ const disabling = mgr.setEnabled(false)
+ const restarting = mgr.restart()
+ resolveStop()
+
+ await Promise.all([disabling, restarting])
+
+ expect(factory).toHaveBeenCalledTimes(1)
+ expect(mgr.current).toBeNull()
+ })
+ })
})
diff --git a/src/main/bridge/bridge-manager.ts b/src/main/bridge/bridge-manager.ts
index 28fab2e8..e9b1dc3b 100644
--- a/src/main/bridge/bridge-manager.ts
+++ b/src/main/bridge/bridge-manager.ts
@@ -29,33 +29,7 @@ export class BridgeManager {
}
async start(): Promise<void> {
- return this.enqueue(async () => {
- if (this.runtime) return
- let runtime: BridgeRuntime | null
- try {
- runtime = await this.factory()
- } catch (startError) {
- if (!this.unregisterNativeMessaging) throw startError
- this.cleanupPending = true
- try {
- await this.unregisterNativeMessaging()
- this.cleanupPending = false
- } catch (unregisterError) {
- throw new AggregateError(
- [startError, unregisterError],
- 'Bridge startup and Native Messaging cleanup both failed'
- )
- }
- throw startError
- }
- this.runtime = runtime
- if (runtime) {
- // A successful registration supersedes any cleanup retry retained from
- // a previous disabled transition.
- this.pendingUnregister = null
- this.cleanupPending = false
- }
- })
+ return this.enqueue(() => this.startCurrent())
}
async stop(options: BridgeStopOptions = {}): Promise<void> {
@@ -67,6 +41,57 @@ export class BridgeManager {
else await this.stop({ unregisterNativeMessaging: true })
}
+ /**
+ * Stop then start as ONE serialized transition, for a settings change
+ * (e.g. `bridge.fixedPort`) that must take effect without a full
+ * disable/enable round trip. `await this.stop(); await this.start()`
+ * would enqueue two independent transitions, so a concurrent
+ * `setEnabled(false)` or a second `restart()` could interleave between
+ * them — leaving the bridge running after the user disabled it, or a
+ * duplicate-handler throw from a start racing a stop's handler removal.
+ *
+ * No-op when the bridge is not currently running: the master switch is
+ * off by design there, and starting it would defeat that. Native
+ * Messaging registration is kept (plain `stopCurrent({})`, never
+ * `unregisterNativeMessaging: true`) — a restart must not silently
+ * unregister it the way disabling the bridge does.
+ */
+ async restart(): Promise<void> {
+ return this.enqueue(async () => {
+ if (!this.runtime) return
+ await this.stopCurrent({})
+ await this.startCurrent()
+ })
+ }
+
+ private async startCurrent(): Promise<void> {
+ if (this.runtime) return
+ let runtime: BridgeRuntime | null
+ try {
+ runtime = await this.factory()
+ } catch (startError) {
+ if (!this.unregisterNativeMessaging) throw startError
+ this.cleanupPending = true
+ try {
+ await this.unregisterNativeMessaging()
+ this.cleanupPending = false
+ } catch (unregisterError) {
+ throw new AggregateError(
+ [startError, unregisterError],
+ 'Bridge startup and Native Messaging cleanup both failed'
+ )
+ }
+ throw startError
+ }
+ this.runtime = runtime
+ if (runtime) {
+ // A successful registration supersedes any cleanup retry retained from
+ // a previous disabled transition.
+ this.pendingUnregister = null
+ this.cleanupPending = false
+ }
+ }
+
private enqueue(operation: () => Promise<void>): Promise<void> {
const result = this.transition.then(operation, operation)
this.transition = result.then(
diff --git a/src/main/bridge/index.ts b/src/main/bridge/index.ts
index a414320c..ec90df13 100644
--- a/src/main/bridge/index.ts
+++ b/src/main/bridge/index.ts
@@ -1,8 +1,9 @@
-import { randomBytes } from 'node:crypto'
import { homedir, platform as osPlatform } from 'node:os'
import { join } from 'node:path'
import { BridgeEventBus } from '@core/bridge/bridge-event-bus'
+import { loadOrCreateBridgeIdentity } from '@core/bridge/bridge-identity'
import { BridgeOwnership } from '@core/bridge/bridge-ownership'
+import { Mbp1CredentialStore } from '@core/bridge/credential-store'
import { DeviceCodeService } from '@core/bridge/device-code-service'
import { EndpointFileWriter } from '@core/bridge/endpoint-file-writer'
import { FilePairingStore } from '@core/bridge/file-pairing-store'
@@ -18,7 +19,7 @@ import {
UrlResolutionService,
} from '@core/bridge/url-resolution-service'
import {
- type PairDecision,
+ BRIDGE_CANDIDATE_PORTS,
WebSocketBridgeServer,
} from '@core/bridge/web-socket-bridge-server'
import type { BridgeReceiverDeps } from '@core/bridge-receiver/bridge-receiver'
@@ -34,13 +35,15 @@ import {
BridgeCommands,
BridgeEvents,
BridgeQueries,
+ type BridgeStatusInfo,
+ type Browser,
type ClientIdentity,
- clientKey,
type PairRequestPayload,
pairRequestKey,
type ResolvePairParams,
type ResolvePairResult,
} from '@shared/protocol/bridge'
+import type { BridgeSettings } from '@shared/schemas/bridge-settings'
import type { PluginManifest } from '@shared/types/plugin'
import type { TaskActivityRecorder } from '@shared/types/task-activity'
import { app, ipcMain } from 'electron'
@@ -215,6 +218,38 @@ export function parseDevTrustedExtensions(
return out
}
+/**
+ * §5's `isOfficialId`, backed by the immutable allowlist only. Deliberately
+ * never derived from `TrustedExtensionRegistry.has()`, which also admits
+ * `user-added` and `imported` entries — a source §5 forbids for the
+ * `official` tier (spec-coverage audit W1). Extracted so the two arrays that
+ * feed the registry (`BUILTIN_TRUSTED` + `parseDevTrustedExtensions`) can be
+ * unit-tested against this resolver without standing up a registry at all.
+ */
+export function resolveOfficialIds(
+ entries: ReadonlyArray<{ id: string; browser: 'chromium' | 'firefox' }>
+): (browser: Browser, id: string) => boolean {
+ const allowed = new Set(entries.map((e) => `${e.browser}:${e.id}`))
+ return (browser, id) => allowed.has(`${browser}:${id}`)
+}
+
+/** §4: `fixedPort` resolves to the candidate range, or pins a single port. */
+function resolveBridgePorts(
+ fixedPort: BridgeSettings['fixedPort']
+): readonly number[] {
+ return fixedPort === 'auto' ? BRIDGE_CANDIDATE_PORTS : [fixedPort]
+}
+
+/**
+ * How often `sweepExpiredProvisionals()` runs. §6.7 bounds a first-pair
+ * provisional's TTL to 10 minutes; sweeping on the same cadence keeps
+ * storage hygiene bounded without adding a second timescale to reason about.
+ * This is hygiene, not an auth boundary — `findForAuth` already rejects an
+ * expired provisional on its own — so a slow sweep only means slower
+ * cleanup, never a security gap.
+ */
+const CREDENTIAL_SWEEP_INTERVAL_MS = 10 * 60 * 1000
+
export interface BridgeRuntime {
server: WebSocketBridgeServer
pairing: PairingService
@@ -222,6 +257,11 @@ export interface BridgeRuntime {
bus: BridgeEventBus
installer: NativeMessagingInstaller
endpointWriter: EndpointFileWriter
+ /** The port actually bound (`startOnFirstFree`'s result). */
+ port: number
+ /** True once every candidate in `BRIDGE_CANDIDATE_PORTS`/the pinned port
+ * was taken and the bridge fell back to an ephemeral port (§4). */
+ degraded: boolean
shutdown: () => Promise<void>
/**
* The shared MuxPipeline used by BridgeReceiver. Exposed read-only so the
@@ -401,6 +441,12 @@ export async function bootstrapBridge(args: {
// (youtube + bilibili → mux task via the url-resolver plugin).
pluginRegistry: PluginRegistry
pluginHost: PluginHost
+ /** `bridge.fixedPort` (port policy, §4) + `bridge.instanceId` (the §4.1
+ * discovery routing hint) from persisted settings. */
+ bridgeSettings: BridgeSettings
+ /** Test-only override for `sweepExpiredProvisionals()`'s cadence —
+ * production always relies on {@link CREDENTIAL_SWEEP_INTERVAL_MS}. */
+ credentialSweepIntervalMs?: number
}): Promise<BridgeRuntime | null> {
if (!args.enabled) {
return null
@@ -423,10 +469,12 @@ export async function bootstrapBridge(args: {
const devTrusted = parseDevTrustedExtensions(
process.env.MOTRIX_DEV_TRUSTED_EXTENSIONS
)
- const registry = new TrustedExtensionRegistry(registryStore, [
- ...BUILTIN_TRUSTED,
- ...devTrusted,
- ])
+ // Computed from the immutable arrays BEFORE they enter the registry:
+ // `isOfficialId` must never read `TrustedExtensionRegistry`, which also
+ // admits `user-added`/`imported` entries (§5, spec-coverage audit W1).
+ const officialEntries = [...BUILTIN_TRUSTED, ...devTrusted]
+ const isOfficialId = resolveOfficialIds(officialEntries)
+ const registry = new TrustedExtensionRegistry(registryStore, officialEntries)
await registry.load()
const bus = new BridgeEventBus()
@@ -532,35 +580,35 @@ export async function bootstrapBridge(args: {
await receiver.restoreInflight()
receiver.start()
- // Extracted so both the WebSocketBridgeServer constructor and
- // createInitializeHandler share the same pairing-dialog flow.
- // The closure captures `server` by reference — safe because onPairRequest
- // is only ever called after `server` is fully constructed (during a WS
- // upgrade, which can only happen after server.start()).
- const onPairRequest = async (
- req: Parameters<typeof dialog.requestDecision>[0]
- ): Promise<PairDecision> => {
- const decision = await dialog.requestDecision(
- req,
- server.issuePairNonce()
- )
- if (decision.decision === 'allow') {
- bus.emitPaired({
- identity: {
- kind: 'extension',
- browser: req.browser,
- extensionId: req.extensionId,
- },
- })
- }
- return decision
- }
+ // Machine-owner Bearer token for the unary POST /mdxp transport, AND the
+ // §9.1 attestation root the native host derives its ticket-MAC key from.
+ // MUST persist across restarts (§9.2) — a ticket minted before a restart
+ // must MAC-verify after one, downgrading to `unverified` on a stale
+ // `serverGeneration` rather than aborting outright. `serverGeneration`
+ // itself is the opposite: fresh per start, so a replayed pre-restart
+ // ticket cannot be mistaken for a live one.
+ const bridgeIdentity = await loadOrCreateBridgeIdentity(
+ join(dataDir, 'local-token')
+ )
- // Machine-owner Bearer token for the unary POST /mdxp transport: generated
- // per start, mirrored into endpoint.json (mode 0600), never sent to the
- // renderer or logged. A stale token from an unclean shutdown is invalid after
- // restart because a fresh one is minted here.
- const localToken = randomBytes(32).toString('base64url')
+ // §6.7's durable credential store, shared by both the first-pair and
+ // reconnect session paths. Loaded BEFORE the listener starts — its
+ // journal replay must finish before /v1 accepts any authentication.
+ const credentials = await Mbp1CredentialStore.load(
+ join(dataDir, 'mbp1-credentials.json')
+ )
+ // Storage hygiene only (findForAuth already rejects an expired
+ // provisional on its own) — periodic so an unbounded number of crashed
+ // first-pair attempts cannot accumulate for the life of a long-running
+ // process.
+ const sweepTimer = setInterval(
+ () => void credentials.sweepExpiredProvisionals(),
+ args.credentialSweepIntervalMs ?? CREDENTIAL_SWEEP_INTERVAL_MS
+ )
+ sweepTimer.unref()
+ ownership.own('credential-sweep', () => {
+ clearInterval(sweepTimer)
+ })
const server: WebSocketBridgeServer = new WebSocketBridgeServer({
pairing,
@@ -568,12 +616,31 @@ export async function bootstrapBridge(args: {
motrixVersion: args.motrixVersion,
runtime: 'electron',
ffmpegAvailable: args.ffmpegAvailable,
- onPairRequest,
- localToken,
+ localToken: bridgeIdentity.localToken,
deviceCode,
// A device-code pair/request surfaces the SAME approval prompt the
// extension flow uses — emit on the bus, which forwards to the renderer.
onPairRequested: (payload) => bus.emitPairRequested(payload),
+ instanceId: args.bridgeSettings.instanceId,
+ serverGeneration: bridgeIdentity.serverGeneration,
+ appVersion: args.motrixVersion,
+ credentials,
+ isOfficialId,
+ queueMbp1Dialog: (req) => dialog.queueMbp1Prompt(req),
+ // The only remaining signal that an extension became usable now that
+ // `motrix/initialize` mints nothing (R18-10): restores the paired-client
+ // list, RevokePair, and the revoke-kick by feeding the SAME
+ // `PairingService` bookkeeping the pre-MBP1 extension flow used. The
+ // token this mints is otherwise inert for an extension identity —
+ // `resolveBearer` only ever accepts a `cli` token — so its only job is
+ // list/revoke/kick, exactly as before. Best-effort: a persistence
+ // failure must not tear down the just-authenticated session.
+ onExtensionAuthenticated: (identity) => {
+ void pairing
+ .issueToken(identity, '')
+ .then(() => bus.emitPaired({ identity }))
+ .catch(() => {})
+ },
})
// Register the shell's domain handlers BEFORE start() — no race window where
@@ -606,7 +673,10 @@ export async function bootstrapBridge(args: {
// Register before bind so even a partial listen failure closes every
// socket/dispatcher resource the server may already own.
ownership.own('server', () => server.stop())
- const port = await server.start()
+ const { port, degraded } = await server.startOnFirstFree(
+ '127.0.0.1',
+ resolveBridgePorts(args.bridgeSettings.fixedPort)
+ )
bus.on('TaskProgress', ({ sessionKey, params }) => {
const session = server.getSession(sessionKey)
@@ -638,16 +708,6 @@ export async function bootstrapBridge(args: {
// after this bridge instance is gone.
ownership.own('device-code', () => deviceCode.dispose())
- pairing.on('revoked', async ({ identity, reason }) => {
- const sessionKey = clientKey(identity)
- const session = server.getSession(sessionKey)
- if (!session) return
- session.conn.sendNotification(Notifications.PairRevoked, { reason })
- // Give the ext a tick to process the notification before close.
- await new Promise((resolve) => setTimeout(resolve, 50))
- session.conn.dispose()
- })
-
const { installer, snap } = createNativeMessagingInstallation()
let preserveNativeMessagingRegistration = false
ownership.own('native-messaging-manifests', async () => {
@@ -670,7 +730,11 @@ export async function bootstrapBridge(args: {
// clear() is owned before write(): a faulting write may have replaced or
// partially created the discovery file before rejecting.
ownership.own('endpoint', () => endpointWriter.clear())
- await endpointWriter.write(port, localToken)
+ await endpointWriter.write(
+ port,
+ bridgeIdentity.localToken,
+ bridgeIdentity.serverGeneration
+ )
// Renderer IPC. Track exact channels as each registration succeeds; a
// later duplicate/fault removes the earlier subset during rollback.
@@ -701,10 +765,26 @@ export async function bootstrapBridge(args: {
...dialog.listPending(),
])
installIpcHandler(BridgeQueries.ListTrusted, () => registry.list())
+ installIpcHandler(
+ BridgeQueries.GetStatus,
+ (): BridgeStatusInfo => ({
+ port,
+ degraded,
+ fixedPort: args.bridgeSettings.fixedPort,
+ instanceId: args.bridgeSettings.instanceId,
+ })
+ )
installIpcHandler(
BridgeCommands.RevokePair,
async (_e, params: { identity: ClientIdentity }) => {
- await pairing.revoke(params.identity, 'user-revoked')
+ const reason = 'user-revoked'
+ if (params.identity.kind === 'extension') {
+ // Credential removal is the authorization boundary; it MUST land
+ // before display bookkeeping is updated or the old mutual key can
+ // reconnect immediately after the user clicks Revoke.
+ await server.revokeExtensionAccess(params.identity, reason)
+ }
+ await pairing.revoke(params.identity, reason)
bus.emitRevoked({ identity: params.identity })
}
)
@@ -810,6 +890,8 @@ export async function bootstrapBridge(args: {
bus,
installer,
endpointWriter,
+ port,
+ degraded,
shutdown: () => ownership.dispose(),
muxPipeline: receiver.muxPipeline,
getMediaSegmentGids: (taskId: string) =>
diff --git a/src/main/bridge/native-messaging-extensions.test.ts b/src/main/bridge/native-messaging-extensions.test.ts
index f5c2dec7..39a36590 100644
--- a/src/main/bridge/native-messaging-extensions.test.ts
+++ b/src/main/bridge/native-messaging-extensions.test.ts
@@ -22,8 +22,9 @@ describe('native messaging extension allowlist', () => {
// Cross-repo contract: these literals must match the extension's real
// store identities. The Firefox ID is declared in
- // motrix-extension/packages/ext/manifest.config.ts and pinned by a mirror
- // test there; changing either side requires changing both.
+ // motrix-extension/packages/ext/manifest.config.ts
+ // (browser_specific_settings.gecko.id) and pinned by a mirror test in that
+ // repository; changing either side requires changing both.
it('allowlists the store-signed extension identities', () => {
expect(nativeMessagingExtensions.chromium).toContain(
'ibpkjhgpbidfmbmomagmldcdlpbmchgi'
diff --git a/src/main/bridge/native-messaging-installer.test.ts b/src/main/bridge/native-messaging-installer.test.ts
index 7946066f..a9e42f70 100644
--- a/src/main/bridge/native-messaging-installer.test.ts
+++ b/src/main/bridge/native-messaging-installer.test.ts
@@ -13,19 +13,23 @@ import {
describe('computeManifestPaths', () => {
it('returns correct macOS Chrome path', () => {
const paths = computeManifestPaths('darwin', '/Users/me')
- expect(paths.chromium).toContain(
+ expect(paths.chrome).toContain(
'/Users/me/Library/Application Support/Google/Chrome/NativeMessagingHosts/app.motrix.bridge.json'
)
expect(paths.firefox).toContain(
'/Users/me/Library/Application Support/Mozilla/NativeMessagingHosts/app.motrix.bridge.json'
)
+ expect(paths.chromium).toBeUndefined()
})
it('returns correct Linux paths', () => {
const paths = computeManifestPaths('linux', '/home/me')
- expect(paths.chromium).toContain(
+ expect(paths.chrome).toContain(
'/home/me/.config/google-chrome/NativeMessagingHosts/app.motrix.bridge.json'
)
+ expect(paths.chromium).toContain(
+ '/home/me/.config/chromium/NativeMessagingHosts/app.motrix.bridge.json'
+ )
expect(paths.firefox).toContain(
'/home/me/.mozilla/native-messaging-hosts/app.motrix.bridge.json'
)
@@ -68,6 +72,33 @@ describe('NativeMessagingInstaller.syncManifests', () => {
)
})
+ it('writes the chromium-family manifest to the Debian Chromium path on Linux', async () => {
+ const hostBinaryPath = '/opt/Motrix/resources/bin/motrix-native-host'
+ const installer = new NativeMessagingInstaller({
+ hostBinaryPath,
+ manifestRoot: dir,
+ platform: 'linux',
+ })
+ await installer.syncManifests({
+ chromium: ['ibpkjhgpbidfmbmomagmldcdlpbmchgi'],
+ firefox: ['[email protected]'],
+ })
+ const chromium = JSON.parse(
+ await readFile(
+ join(
+ dir,
+ '.config/chromium/NativeMessagingHosts/app.motrix.bridge.json'
+ ),
+ 'utf-8'
+ )
+ )
+ expect(chromium.name).toBe('app.motrix.bridge')
+ expect(chromium.path).toBe(hostBinaryPath)
+ expect(chromium.allowed_origins).toEqual([
+ 'chrome-extension://ibpkjhgpbidfmbmomagmldcdlpbmchgi/',
+ ])
+ })
+
it('writes Firefox manifest with allowed_extensions', async () => {
const installer = new NativeMessagingInstaller({
hostBinaryPath: '/path/to/motrix-bridge-host',
@@ -100,9 +131,9 @@ describe('NativeMessagingInstaller.syncManifests', () => {
const paths = computeManifestPaths('linux', dir)
const chromiumSentinel = Buffer.from('companion-owned-chromium')
const firefoxSentinel = Buffer.from('companion-owned-firefox')
- await mkdir(dirname(paths.chromium), { recursive: true })
+ await mkdir(dirname(paths.chrome), { recursive: true })
await mkdir(dirname(paths.firefox), { recursive: true })
- await writeFile(paths.chromium, chromiumSentinel)
+ await writeFile(paths.chrome, chromiumSentinel)
await writeFile(paths.firefox, firefoxSentinel)
await installer.syncManifests({
@@ -111,7 +142,7 @@ describe('NativeMessagingInstaller.syncManifests', () => {
})
await installer.unregister()
- expect(await readFile(paths.chromium)).toEqual(chromiumSentinel)
+ expect(await readFile(paths.chrome)).toEqual(chromiumSentinel)
expect(await readFile(paths.firefox)).toEqual(firefoxSentinel)
})
@@ -124,8 +155,8 @@ describe('NativeMessagingInstaller.syncManifests', () => {
type: 'stdio',
allowed_origins: ['chrome-extension://ibpkjhgpbidfmbmomagmldcdlpbmchgi/'],
}
- await mkdir(dirname(paths.chromium), { recursive: true })
- await writeFile(paths.chromium, JSON.stringify(flatpakManifest))
+ await mkdir(dirname(paths.chrome), { recursive: true })
+ await writeFile(paths.chrome, JSON.stringify(flatpakManifest))
const installer = new NativeMessagingInstaller({
hostBinaryPath: '/opt/Motrix/resources/bin/motrix-native-host',
@@ -137,20 +168,20 @@ describe('NativeMessagingInstaller.syncManifests', () => {
firefox: ['[email protected]'],
})
- expect(JSON.parse(await readFile(paths.chromium, 'utf-8'))).toEqual(
+ expect(JSON.parse(await readFile(paths.chrome, 'utf-8'))).toEqual(
flatpakManifest
)
await installer.unregister()
- expect(JSON.parse(await readFile(paths.chromium, 'utf-8'))).toEqual(
+ expect(JSON.parse(await readFile(paths.chrome, 'utf-8'))).toEqual(
flatpakManifest
)
})
it('repairs a stale file that only resembles a companion manifest', async () => {
const paths = computeManifestPaths('linux', dir)
- await mkdir(dirname(paths.chromium), { recursive: true })
+ await mkdir(dirname(paths.chrome), { recursive: true })
await writeFile(
- paths.chromium,
+ paths.chrome,
JSON.stringify({
name: 'app.motrix.bridge',
path: '/tmp/motrix-flatpak-native-host',
@@ -168,7 +199,7 @@ describe('NativeMessagingInstaller.syncManifests', () => {
firefox: ['[email protected]'],
})
- expect(JSON.parse(await readFile(paths.chromium, 'utf-8')).path).toBe(
+ expect(JSON.parse(await readFile(paths.chrome, 'utf-8')).path).toBe(
hostBinaryPath
)
})
@@ -190,12 +221,15 @@ describe('NativeMessagingInstaller.syncManifests', () => {
name: 'app.motrix.bridge',
path: `${dir}/.local/share/motrix/native-messaging/motrix-flatpak-native-host`,
}
- await writeFile(paths.chromium, JSON.stringify(replacement))
+ await writeFile(paths.chrome, JSON.stringify(replacement))
await installer.unregister()
- expect(JSON.parse(await readFile(paths.chromium, 'utf-8'))).toEqual(
+ expect(JSON.parse(await readFile(paths.chrome, 'utf-8'))).toEqual(
replacement
)
+ await expect(readFile(paths.chromium!, 'utf-8')).rejects.toMatchObject({
+ code: 'ENOENT',
+ })
await expect(readFile(paths.firefox, 'utf-8')).rejects.toMatchObject({
code: 'ENOENT',
})
@@ -205,7 +239,7 @@ describe('NativeMessagingInstaller.syncManifests', () => {
describe('computeManifestPaths (win32)', () => {
it('returns private-folder JSON paths for Chrome, Edge, and Firefox', () => {
const paths = computeManifestPaths('win32', 'C:/Users/me')
- expect(paths.chromium).toBe(
+ expect(paths.chrome).toBe(
'C:/Users/me/AppData/Roaming/Motrix/bridge/manifests/chrome.json'
)
expect(paths.edge).toBe(
@@ -223,7 +257,7 @@ describe('computeManifestPaths (win32)', () => {
'Z:/Profiles/me/Roaming'
)
- expect(paths.chromium).toBe(
+ expect(paths.chrome).toBe(
'Z:/Profiles/me/Roaming/Motrix/bridge/manifests/chrome.json'
)
expect(paths.edge).toBe(
diff --git a/src/main/bridge/native-messaging-installer.ts b/src/main/bridge/native-messaging-installer.ts
index df8092c0..64f0bc4c 100644
--- a/src/main/bridge/native-messaging-installer.ts
+++ b/src/main/bridge/native-messaging-installer.ts
@@ -6,8 +6,8 @@ import { promisify } from 'node:util'
const execFileAsync = promisify(execFile)
/**
- * Writes Native Messaging host manifest files for Chrome, Edge, and Firefox
- * at OS-specific locations each browser scans.
+ * Writes Native Messaging host manifest files for Chrome, Edge, Firefox, and
+ * (on Linux) unbranded Chromium at OS-specific locations each browser scans.
*
* Chromium-family browsers expect `allowed_origins` with full
* `chrome-extension://<id>/` URLs; Firefox expects a plain `allowed_extensions`
@@ -23,9 +23,15 @@ const execFileAsync = promisify(execFile)
export type Platform = 'darwin' | 'linux' | 'win32'
export interface ManifestPaths {
- chromium: string
+ chrome: string
firefox: string
edge?: string
+ /**
+ * Unbranded Chromium (e.g. Debian/Ubuntu `chromium` packages). Linux only:
+ * on Windows Chromium has no stable HKCU vendor key we register, and on
+ * macOS the unbranded browser is not a supported target.
+ */
+ chromium?: string
}
export interface RegistryEntry {
@@ -109,14 +115,15 @@ export function computeManifestPaths(
): ManifestPaths {
if (platform === 'darwin') {
return {
- chromium: `${home}/Library/Application Support/Google/Chrome/NativeMessagingHosts/${MANIFEST_NAME}`,
+ chrome: `${home}/Library/Application Support/Google/Chrome/NativeMessagingHosts/${MANIFEST_NAME}`,
firefox: `${home}/Library/Application Support/Mozilla/NativeMessagingHosts/${MANIFEST_NAME}`,
edge: `${home}/Library/Application Support/Microsoft Edge/NativeMessagingHosts/${MANIFEST_NAME}`,
}
}
if (platform === 'linux') {
return {
- chromium: `${home}/.config/google-chrome/NativeMessagingHosts/${MANIFEST_NAME}`,
+ chrome: `${home}/.config/google-chrome/NativeMessagingHosts/${MANIFEST_NAME}`,
+ chromium: `${home}/.config/chromium/NativeMessagingHosts/${MANIFEST_NAME}`,
firefox: `${home}/.mozilla/native-messaging-hosts/${MANIFEST_NAME}`,
edge: `${home}/.config/microsoft-edge/NativeMessagingHosts/${MANIFEST_NAME}`,
}
@@ -127,7 +134,7 @@ export function computeManifestPaths(
const roamingAppData = windowsRoamingAppData ?? `${home}/AppData/Roaming`
const manifestDir = join(roamingAppData, 'Motrix', 'bridge', 'manifests')
return {
- chromium: join(manifestDir, 'chrome.json'),
+ chrome: join(manifestDir, 'chrome.json'),
edge: join(manifestDir, 'edge.json'),
firefox: join(manifestDir, 'firefox.json'),
}
@@ -148,7 +155,7 @@ export function computeRegistryEntries(
// Chrome, Firefox, and Edge each discover the host through their own HKCU
// key; only the vendor segment and the target JSON file differ per browser.
const hosts: Array<[vendor: string, manifest: string | undefined]> = [
- ['Google\\Chrome', paths.chromium],
+ ['Google\\Chrome', paths.chrome],
['Mozilla', paths.firefox],
['Microsoft\\Edge', paths.edge],
]
@@ -294,7 +301,10 @@ export class NativeMessagingInstaller {
type: 'stdio',
allowed_origins: args.chromium.map((id) => `chrome-extension://${id}/`),
}
- await this.writeJson(paths.chromium, chromiumManifest)
+ await this.writeJson(paths.chrome, chromiumManifest)
+ if (paths.chromium) {
+ await this.writeJson(paths.chromium, chromiumManifest)
+ }
if (paths.edge) {
await this.writeJson(paths.edge, chromiumManifest)
}
@@ -339,9 +349,12 @@ export class NativeMessagingInstaller {
)
)
- const manifestPaths = [paths.chromium, paths.edge, paths.firefox].filter(
- (filePath): filePath is string => filePath !== undefined
- )
+ const manifestPaths = [
+ paths.chrome,
+ paths.chromium,
+ paths.edge,
+ paths.firefox,
+ ].filter((filePath): filePath is string => filePath !== undefined)
await Promise.all(
manifestPaths.map((filePath) => this.removeOwnedManifest(filePath))
)
diff --git a/src/main/bridge/pairing-dialog-controller.test.ts b/src/main/bridge/pairing-dialog-controller.test.ts
index cd15eb91..893de476 100644
--- a/src/main/bridge/pairing-dialog-controller.test.ts
+++ b/src/main/bridge/pairing-dialog-controller.test.ts
@@ -1,384 +1,279 @@
import { BridgeEventBus } from '@core/bridge/bridge-event-bus'
+import type { PairDialogRequest } from '@core/bridge/mbp1/pair-session'
import { pairRequestKey } from '@shared/protocol/bridge'
import { describe, expect, it, vi } from 'vitest'
import { PairingDialogController } from './pairing-dialog-controller'
-const ARGS = {
- browser: 'chromium' as const,
- extensionId: 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
- extensionName: 'x',
- extensionVersion: '1',
+const REQ: PairDialogRequest = {
+ browser: 'chromium',
+ claimedExtensionId: 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
+ identity: 'official',
+ code: '1234-5678',
+ pairingNonce: 'nonce-1',
+ verifiedOrigin: 'chrome-extension://aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
}
function makeController() {
const bus = new BridgeEventBus()
- const emitted: unknown[] = []
+ const requested: unknown[] = []
const settled: unknown[] = []
const expired: unknown[] = []
- bus.on('PairRequested', (p) => emitted.push(p))
+ bus.on('PairRequested', (p) => requested.push(p))
bus.on('PairRequestSettled', (p) => settled.push(p))
bus.on('PairRequestExpired', (p) => expired.push(p))
const ctrl = new PairingDialogController(bus, () => null)
- return { ctrl, bus, emitted, settled, expired }
+ return { ctrl, bus, requested, settled, expired }
}
-describe('PairingDialogController dedup', () => {
- it('emits PairRequested once for two rapid requests with same browser+id', () => {
- vi.useFakeTimers()
- const { ctrl, emitted } = makeController()
- void ctrl.requestDecision(
- {
- browser: 'chromium',
- extensionId: 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
- extensionName: 'x',
- extensionVersion: '1',
- },
- 'nonce-1'
- )
- void ctrl.requestDecision(
- {
- browser: 'chromium',
- extensionId: 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
- extensionName: 'x',
- extensionVersion: '1',
- },
- 'nonce-2'
- )
- expect(emitted).toHaveLength(1)
- vi.useRealTimers()
- })
+describe('PairingDialogController.queueMbp1Prompt', () => {
+ it('emits PairRequested with the code+identity payload and no self-reported name', () => {
+ const { ctrl, requested } = makeController()
- it('emits again after 60s window expires', () => {
- vi.useFakeTimers()
- const { ctrl, emitted } = makeController()
- void ctrl.requestDecision(
- {
- browser: 'chromium',
- extensionId: 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
- extensionName: 'x',
- extensionVersion: '1',
- },
- 'nonce-1'
- )
- vi.advanceTimersByTime(60_001)
- void ctrl.requestDecision(
+ ctrl.queueMbp1Prompt(REQ)
+
+ expect(requested).toEqual([
{
- browser: 'chromium',
- extensionId: 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
- extensionName: 'x',
- extensionVersion: '1',
+ kind: 'extension',
+ pairingNonce: REQ.pairingNonce,
+ extensionId: REQ.claimedExtensionId,
+ browser: REQ.browser,
+ identity: REQ.identity,
+ code: REQ.code,
},
- 'nonce-2'
- )
- expect(emitted).toHaveLength(2)
- vi.useRealTimers()
+ ])
})
- it('clears dedup after an explicit allow so a forget+re-pair within 60s is not silently denied', async () => {
- // Regression: a user who forgets the pair token on the extension side
- // and immediately retriggers /pair was hitting the anti-spam window
- // and getting an automatic deny with no dialog. Once trust has been
- // established by an explicit allow, the dedup must reset.
- const { ctrl, emitted } = makeController()
- const args = {
- browser: 'chromium' as const,
- extensionId: 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
- extensionName: 'x',
- extensionVersion: '1',
- }
- const first = ctrl.requestDecision(args, 'nonce-1')
- ctrl.settle({
- kind: 'extension',
- pairingNonce: 'nonce-1',
- extensionId: args.extensionId,
- browser: 'chromium',
- decision: 'allow',
- addToRegistry: false,
+ it('returns a handle whose dismissed resolves when the session confirms and closes it', async () => {
+ const { ctrl } = makeController()
+ const handle = ctrl.queueMbp1Prompt(REQ)
+ let resolved = false
+ void handle.dismissed.then(() => {
+ resolved = true
})
- const firstDecision = await first
- expect(firstDecision.decision).toBe('allow')
- // Immediately re-request (well within the 60s window). Should NOT
- // be auto-denied — should emit a fresh PairRequested instead.
- const second = ctrl.requestDecision(args, 'nonce-2')
- ctrl.settle({
- kind: 'extension',
- pairingNonce: 'nonce-2',
- extensionId: args.extensionId,
- browser: 'chromium',
- decision: 'allow',
- addToRegistry: false,
- })
- const secondDecision = await second
- expect(secondDecision.decision).toBe('allow')
- expect(emitted).toHaveLength(2)
+ expect(resolved).toBe(false)
+ handle.close()
+ await handle.dismissed
+
+ expect(resolved).toBe(true)
})
- it('keeps dedup after an explicit deny so a denying user is not re-prompted within 60s', async () => {
- // Anti-spam invariant: deny path is what the dedup protects against.
- // Re-requesting within 60s of a deny must still be auto-denied without
- // emitting a new PairRequested event.
- const { ctrl, emitted } = makeController()
- const args = {
- browser: 'chromium' as const,
- extensionId: 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
- extensionName: 'x',
- extensionVersion: '1',
- }
- const first = ctrl.requestDecision(args, 'nonce-1')
- ctrl.settle({
- kind: 'extension',
- pairingNonce: 'nonce-1',
- extensionId: args.extensionId,
- browser: 'chromium',
- decision: 'deny',
- addToRegistry: false,
- })
- await first
+ it('close() is idempotent — a second call is a no-op', async () => {
+ const { ctrl, expired } = makeController()
+ const handle = ctrl.queueMbp1Prompt(REQ)
- // Second request within the dedup window — must be silently denied.
- const second = await ctrl.requestDecision(args, 'nonce-2')
- expect(second.decision).toBe('deny')
- expect(emitted).toHaveLength(1) // no new PairRequested emitted
+ handle.close()
+ handle.close()
+ await handle.dismissed
+
+ expect(expired).toHaveLength(1)
})
- it('denies and settles pending prompts during bridge shutdown', async () => {
- const { ctrl } = makeController()
- const pending = ctrl.requestDecision(
- {
- browser: 'chromium',
- extensionId: 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
- extensionName: 'x',
- extensionVersion: '1',
- },
- 'nonce-shutdown'
- )
+ it('close() emits PairRequestExpired, never PairRequestSettled — a machine-side teardown is not a user denial', async () => {
+ const { ctrl, settled, expired } = makeController()
+ const handle = ctrl.queueMbp1Prompt(REQ)
+ const key = pairRequestKey({
+ kind: 'extension',
+ pairingNonce: REQ.pairingNonce,
+ extensionId: REQ.claimedExtensionId,
+ browser: REQ.browser,
+ })
- ctrl.dispose()
+ handle.close()
+ await handle.dismissed
- await expect(pending).resolves.toEqual({
- decision: 'deny',
- addToRegistry: false,
- })
+ expect(expired).toEqual([{ key }])
+ expect(settled).toHaveLength(0)
})
-})
-describe('PairingDialogController pending registry lifecycle', () => {
- it('timeout emits PairRequestExpired with the right key AND still resolves deny', async () => {
+ it('auto-closes after the 120s code lifetime and emits PairRequestExpired', async () => {
vi.useFakeTimers()
const { ctrl, expired } = makeController()
- const key = pairRequestKey({
- kind: 'extension',
- pairingNonce: 'nonce-1',
- extensionId: ARGS.extensionId,
- browser: ARGS.browser,
+ const handle = ctrl.queueMbp1Prompt(REQ)
+ let resolved = false
+ void handle.dismissed.then(() => {
+ resolved = true
})
- const pending = ctrl.requestDecision(ARGS, 'nonce-1')
- vi.advanceTimersByTime(60_001)
+ vi.advanceTimersByTime(119_999)
+ expect(resolved).toBe(false)
+ vi.advanceTimersByTime(2)
+ await Promise.resolve()
- await expect(pending).resolves.toEqual({
- decision: 'deny',
- addToRegistry: false,
- })
- expect(expired).toEqual([{ key }])
+ expect(resolved).toBe(true)
+ expect(expired).toHaveLength(1)
vi.useRealTimers()
})
- it('explicit allow settle emits PairRequestSettled with outcome allowed', async () => {
- const { ctrl, settled } = makeController()
- const key = pairRequestKey({
- kind: 'extension',
- pairingNonce: 'nonce-1',
- extensionId: ARGS.extensionId,
- browser: ARGS.browser,
- })
- const pending = ctrl.requestDecision(ARGS, 'nonce-1')
+ it('dedups on the verified origin — a second attempt while one is live returns an already-dismissed handle and emits nothing new', () => {
+ const { ctrl, requested } = makeController()
+ ctrl.queueMbp1Prompt(REQ)
- const result = ctrl.settle({
- kind: 'extension',
- pairingNonce: 'nonce-1',
- extensionId: ARGS.extensionId,
- browser: ARGS.browser,
- decision: 'allow',
- addToRegistry: false,
- })
+ const second = ctrl.queueMbp1Prompt({ ...REQ, pairingNonce: 'nonce-2' })
- expect(result).toEqual({ ok: true })
- await expect(pending).resolves.toEqual({
- decision: 'allow',
- addToRegistry: false,
- })
- expect(settled).toEqual([{ key, outcome: 'allowed' }])
+ expect(requested).toHaveLength(1)
+ return expect(second.dismissed).resolves.toBeUndefined()
})
- it('explicit deny settle emits PairRequestSettled with outcome denied', async () => {
- const { ctrl, settled } = makeController()
- const key = pairRequestKey({
- kind: 'extension',
- pairingNonce: 'nonce-1',
- extensionId: ARGS.extensionId,
- browser: ARGS.browser,
+ it('never suppresses one extension by another claiming its id — dedup is NOT keyed on claimedExtensionId', () => {
+ // Regression: on Firefox the claimed id is self-reported, so keying dedup
+ // on it would let an attacker extension suppress a legitimate one simply
+ // by claiming the same id. Two different verified origins claiming the
+ // SAME id must both get a live prompt.
+ const { ctrl, requested } = makeController()
+ ctrl.queueMbp1Prompt({
+ ...REQ,
+ browser: 'firefox',
+ verifiedOrigin: 'moz-extension://11111111-1111-1111-1111-111111111111',
})
- const pending = ctrl.requestDecision(ARGS, 'nonce-1')
- const result = ctrl.settle({
- kind: 'extension',
- pairingNonce: 'nonce-1',
- extensionId: ARGS.extensionId,
- browser: ARGS.browser,
- decision: 'deny',
- addToRegistry: false,
+ ctrl.queueMbp1Prompt({
+ ...REQ,
+ browser: 'firefox',
+ pairingNonce: 'nonce-2',
+ verifiedOrigin: 'moz-extension://22222222-2222-2222-2222-222222222222',
})
- expect(result).toEqual({ ok: true })
- await expect(pending).resolves.toEqual({
- decision: 'deny',
- addToRegistry: false,
- })
- expect(settled).toEqual([{ key, outcome: 'denied' }])
+ expect(requested).toHaveLength(2)
})
- it('late settle after timeout returns unavailable and emits nothing', async () => {
- vi.useFakeTimers()
- const { ctrl, settled } = makeController()
- const pending = ctrl.requestDecision(ARGS, 'nonce-1')
- vi.advanceTimersByTime(60_001)
- await pending
- settled.length = 0 // drop the expiry's own settled-count baseline (none expected)
+ it('clears dedup once the live prompt settles by any outcome, admitting a fresh attempt from the same origin', async () => {
+ const { ctrl, requested } = makeController()
+ const first = ctrl.queueMbp1Prompt(REQ)
+
+ first.close()
+ await first.dismissed
+
+ const second = ctrl.queueMbp1Prompt({ ...REQ, pairingNonce: 'nonce-2' })
+
+ expect(requested).toHaveLength(2)
+ expect(second.dismissed).not.toBe(first.dismissed)
+ })
+})
+
+describe('PairingDialogController.settle', () => {
+ it('resolves the pending handle (dismiss), removes it from pending, and emits PairRequestExpired', async () => {
+ const { ctrl, expired } = makeController()
+ const handle = ctrl.queueMbp1Prompt(REQ)
+ let resolved = false
+ void handle.dismissed.then(() => {
+ resolved = true
+ })
const result = ctrl.settle({
kind: 'extension',
- pairingNonce: 'nonce-1',
- extensionId: ARGS.extensionId,
- browser: ARGS.browser,
- decision: 'allow',
- addToRegistry: false,
+ pairingNonce: REQ.pairingNonce,
+ extensionId: REQ.claimedExtensionId,
+ browser: REQ.browser,
})
- expect(result).toEqual({ ok: false, reason: 'unavailable' })
- expect(settled).toHaveLength(0)
- vi.useRealTimers()
+ expect(result).toEqual({ ok: true })
+ await handle.dismissed
+ expect(resolved).toBe(true)
+ expect(expired).toHaveLength(1)
+ expect(ctrl.listPending()).toEqual([])
})
- it('settle on an unknown key returns unavailable and emits nothing', () => {
- const { ctrl, settled, expired } = makeController()
+ it('returns unavailable for an unknown key and emits nothing', () => {
+ const { ctrl, expired } = makeController()
const result = ctrl.settle({
kind: 'extension',
pairingNonce: 'never-requested',
- extensionId: ARGS.extensionId,
- browser: ARGS.browser,
- decision: 'allow',
- addToRegistry: false,
+ extensionId: REQ.claimedExtensionId,
+ browser: REQ.browser,
})
expect(result).toEqual({ ok: false, reason: 'unavailable' })
- expect(settled).toHaveLength(0)
expect(expired).toHaveLength(0)
})
- it('duplicate settle is a no-op returning unavailable', async () => {
- const { ctrl, settled } = makeController()
- const pending = ctrl.requestDecision(ARGS, 'nonce-1')
+ it('duplicate settle is a no-op returning unavailable', () => {
+ const { ctrl } = makeController()
+ ctrl.queueMbp1Prompt(REQ)
+ const params = {
+ kind: 'extension' as const,
+ pairingNonce: REQ.pairingNonce,
+ extensionId: REQ.claimedExtensionId,
+ browser: REQ.browser,
+ }
- const first = ctrl.settle({
- kind: 'extension',
- pairingNonce: 'nonce-1',
- extensionId: ARGS.extensionId,
- browser: ARGS.browser,
- decision: 'allow',
- addToRegistry: false,
- })
- const second = ctrl.settle({
- kind: 'extension',
- pairingNonce: 'nonce-1',
- extensionId: ARGS.extensionId,
- browser: ARGS.browser,
- decision: 'allow',
- addToRegistry: false,
- })
+ const first = ctrl.settle(params)
+ const second = ctrl.settle(params)
expect(first).toEqual({ ok: true })
expect(second).toEqual({ ok: false, reason: 'unavailable' })
- expect(settled).toHaveLength(1)
- await pending
})
- it('listPending() reflects add/settle/expire', async () => {
+ it('re-admits the origin so a re-pair attempt after a user dismiss is not silently suppressed', () => {
+ const { ctrl, requested } = makeController()
+ ctrl.queueMbp1Prompt(REQ)
+ ctrl.settle({
+ kind: 'extension',
+ pairingNonce: REQ.pairingNonce,
+ extensionId: REQ.claimedExtensionId,
+ browser: REQ.browser,
+ })
+
+ ctrl.queueMbp1Prompt({ ...REQ, pairingNonce: 'nonce-2' })
+
+ expect(requested).toHaveLength(2)
+ })
+})
+
+describe('PairingDialogController.listPending', () => {
+ it('reflects add/settle, carrying the pairing code and identity', () => {
vi.useFakeTimers()
const { ctrl } = makeController()
expect(ctrl.listPending()).toEqual([])
- const pending1 = ctrl.requestDecision(ARGS, 'nonce-1')
- const list1 = ctrl.listPending()
- expect(list1).toHaveLength(1)
- expect(list1[0]).toMatchObject({
+ ctrl.queueMbp1Prompt(REQ)
+ const list = ctrl.listPending()
+ expect(list).toHaveLength(1)
+ expect(list[0]).toMatchObject({
kind: 'extension',
- pairingNonce: 'nonce-1',
- extensionId: ARGS.extensionId,
- extensionName: ARGS.extensionName,
- extensionVersion: ARGS.extensionVersion,
- browser: ARGS.browser,
+ pairingNonce: REQ.pairingNonce,
+ extensionId: REQ.claimedExtensionId,
+ browser: REQ.browser,
+ identity: REQ.identity,
+ code: REQ.code,
})
- expect(list1[0]?.createdAt).toBeTypeOf('number')
- expect(list1[0]?.expiresAt).toBe((list1[0]?.createdAt ?? 0) + 60_000)
+ expect(list[0]?.createdAt).toBeTypeOf('number')
+ expect(list[0]?.expiresAt).toBe((list[0]?.createdAt ?? 0) + 120_000)
ctrl.settle({
kind: 'extension',
- pairingNonce: 'nonce-1',
- extensionId: ARGS.extensionId,
- browser: ARGS.browser,
- decision: 'allow',
- addToRegistry: false,
+ pairingNonce: REQ.pairingNonce,
+ extensionId: REQ.claimedExtensionId,
+ browser: REQ.browser,
})
- await pending1
- expect(ctrl.listPending()).toEqual([])
-
- // A second, distinct extension so the dedup window on the same id doesn't
- // suppress this entry.
- const otherArgs = {
- ...ARGS,
- extensionId: 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb',
- }
- const pending2 = ctrl.requestDecision(otherArgs, 'nonce-2')
- expect(ctrl.listPending()).toHaveLength(1)
-
- vi.advanceTimersByTime(60_001)
- await pending2
expect(ctrl.listPending()).toEqual([])
vi.useRealTimers()
})
+})
- it('dispose() sweep emits PairRequestExpired per remaining entry', async () => {
+describe('PairingDialogController.dispose', () => {
+ it('settles every pending dismissed and emits PairRequestExpired per entry, so a blocked session cannot await forever across a restart', async () => {
const { ctrl, expired } = makeController()
- const otherArgs = {
- ...ARGS,
- extensionId: 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb',
- }
- const key1 = pairRequestKey({
- kind: 'extension',
- pairingNonce: 'nonce-1',
- extensionId: ARGS.extensionId,
- browser: ARGS.browser,
- })
- const key2 = pairRequestKey({
- kind: 'extension',
+ const other: PairDialogRequest = {
+ ...REQ,
+ claimedExtensionId: 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb',
pairingNonce: 'nonce-2',
- extensionId: otherArgs.extensionId,
- browser: otherArgs.browser,
- })
- const pending1 = ctrl.requestDecision(ARGS, 'nonce-1')
- const pending2 = ctrl.requestDecision(otherArgs, 'nonce-2')
+ verifiedOrigin: 'chrome-extension://bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb',
+ }
+ const h1 = ctrl.queueMbp1Prompt(REQ)
+ const h2 = ctrl.queueMbp1Prompt(other)
ctrl.dispose()
- await Promise.all([pending1, pending2])
+ await Promise.all([h1.dismissed, h2.dismissed])
expect(expired).toHaveLength(2)
- expect(expired.map((e) => (e as { key: string }).key).sort()).toEqual(
- [key1, key2].sort()
- )
expect(ctrl.listPending()).toEqual([])
})
+
+ it('dispose() is safe with no pending prompts', () => {
+ const { ctrl } = makeController()
+ expect(() => ctrl.dispose()).not.toThrow()
+ })
})
diff --git a/src/main/bridge/pairing-dialog-controller.ts b/src/main/bridge/pairing-dialog-controller.ts
index 192ae189..62a5f5dd 100644
--- a/src/main/bridge/pairing-dialog-controller.ts
+++ b/src/main/bridge/pairing-dialog-controller.ts
@@ -1,16 +1,34 @@
import type { BridgeEventBus } from '@core/bridge/bridge-event-bus'
+import type { IdentityTriState as CoreIdentityTriState } from '@core/bridge/credential-store'
import type {
- PairDecision,
- PairRequestArgs,
-} from '@core/bridge/web-socket-bridge-server'
+ PairDialogHandle,
+ PairDialogRequest,
+} from '@core/bridge/mbp1/pair-session'
import {
type PendingPairRequestInfo,
pairRequestKey,
type ResolvePairParams,
type ResolvePairResult,
+ type IdentityTriState as SharedIdentityTriState,
} from '@shared/protocol/bridge'
import type { BrowserWindow } from 'electron'
+// Drift guard (progress.md:155): `SharedIdentityTriState` is a renderer-safe
+// literal copy of core's `IdentityTriState` — duplicated because the
+// renderer must not import `@core/`. This module is the one place that
+// assigns a value of one into the other (below, building the renderer
+// payload), so the bidirectional assignability check lives here. Never
+// called — a real call would need a live `IdentityTriState` value this file
+// has no reason to fabricate — so it costs nothing at runtime; its only job
+// is that `tsc` rejects it if either union ever widens without the other.
+function _assertIdentityTriStateParity(): void {
+ const core: CoreIdentityTriState = null as never
+ const shared: SharedIdentityTriState = core
+ const backToCore: CoreIdentityTriState = shared
+ void backToCore
+}
+void _assertIdentityTriStateParity
+
/** Renderer-safe request metadata for {@link PairingDialogController.listPending},
* minus the createdAt/expiresAt which the entry already tracks separately. */
type ExtensionPairRequestPayload = Omit<
@@ -20,92 +38,118 @@ type ExtensionPairRequestPayload = Omit<
interface PendingRequest {
payload: ExtensionPairRequestPayload
- resolve: (decision: PairDecision) => void
- timer: NodeJS.Timeout
+ /** Idempotent teardown: resolves `dismissed`, drops the origin's dedup
+ * entry, clears the timer, and emits `PairRequestExpired` — but only on
+ * its FIRST call. Shared by the timeout, an explicit `settle()`, and the
+ * `PairDialogHandle.close()` a `PairSession` calls on its own teardown, so
+ * whichever fires first is the one that actually tears down. */
+ close: () => void
createdAt: number
expiresAt: number
}
-const PROMPT_DEDUP_MS = 60_000
-const PROMPT_TIMEOUT_MS = 60_000 // independent of dedup; auto-denies pending prompts
+/**
+ * How long the desktop dialog stays open before auto-closing. Matches §7.2's
+ * pairing-code lifetime (`CODE_LIFETIME_MS` in `mbp1/pair-session.ts`, not
+ * exported — this is a deliberately independent constant, not a shared one):
+ * the code the dialog displays stops being usable at exactly this point, so
+ * there is nothing left to keep the prompt open for.
+ */
+const PROMPT_TIMEOUT_MS = 120_000
export class PairingDialogController {
private pending = new Map<string, PendingRequest>()
- private lastPromptAt = new Map<string, number>()
+ /**
+ * Dedup keyed on the verified origin (§5), never on `claimedExtensionId`:
+ * on Firefox the claimed id is self-reported, so keying on it would let one
+ * extension suppress another's prompt by claiming its id. Presence means
+ * "a prompt is currently open for this origin" — cleared the moment that
+ * prompt settles by ANY outcome (success, dismiss, or timeout), not after a
+ * cooldown window. There is deliberately no dedup timestamp: a window would
+ * either be shorter than §7.2's 120s code lifetime (letting a second
+ * legitimate attempt in) or longer (reintroducing the old "forget + re-pair
+ * is silently denied" regression, and worse — invisibly, since there is no
+ * deny event to explain it).
+ */
+ private openOrigins = new Set<string>()
constructor(
private bus: BridgeEventBus,
private getMainWindow: () => BrowserWindow | null
) {}
- async requestDecision(
- args: PairRequestArgs,
- pairingNonce: string
- ): Promise<PairDecision> {
- const dedupKey = `${args.browser}:${args.extensionId}`
- const now = Date.now()
- const last = this.lastPromptAt.get(dedupKey) ?? 0
- if (now - last < PROMPT_DEDUP_MS) {
- return { decision: 'deny', addToRegistry: false }
+ /**
+ * Show the §7.1 approval dialog for a `/pair` session that reached
+ * `pairHello`. Error-free by construction — §7.3 admission (core's
+ * `PairFloodControl`) already ran before this is called, so the only
+ * refusal this method can make is its own per-origin dedup, and it reports
+ * that as an immediate dismissal (an already-resolved `dismissed`) rather
+ * than hanging: `PairSession` treats a resolved `dismissed` as a clean user
+ * dismissal, whereas a handle that never resolves would hold a §7.3
+ * pending slot for the full 150s pre-auth deadline.
+ */
+ queueMbp1Prompt(args: PairDialogRequest): PairDialogHandle {
+ if (this.openOrigins.has(args.verifiedOrigin)) {
+ return { dismissed: Promise.resolve(), close: () => {} }
}
- this.lastPromptAt.set(dedupKey, now)
+ this.openOrigins.add(args.verifiedOrigin)
const payload: ExtensionPairRequestPayload = {
kind: 'extension',
- pairingNonce,
- extensionId: args.extensionId,
- extensionName: args.extensionName,
- extensionVersion: args.extensionVersion,
+ pairingNonce: args.pairingNonce,
+ extensionId: args.claimedExtensionId,
browser: args.browser,
+ identity: args.identity,
+ code: args.code,
}
const key = pairRequestKey(payload)
- const createdAt = now
+ const createdAt = Date.now()
const expiresAt = createdAt + PROMPT_TIMEOUT_MS
- return new Promise<PairDecision>((resolve) => {
- // Wrap resolve to drop the dedup entry on an explicit allow: once
- // the user has established trust with this extension, a subsequent
- // "forget pair token + re-pair" (or any other path that legitimately
- // re-runs /pair) must not be silently denied by the anti-spam window.
- // Deny / timeout paths intentionally keep the dedup entry so a
- // denying user is not re-prompted within PROMPT_DEDUP_MS.
- const onSettled = (decision: PairDecision): void => {
- if (decision.decision === 'allow') {
- this.lastPromptAt.delete(dedupKey)
- }
- resolve(decision)
- }
- const timer = setTimeout(() => {
- const p = this.pending.get(key)
- if (p) {
- this.pending.delete(key)
- p.resolve({ decision: 'deny', addToRegistry: false })
- this.bus.emitPairRequestExpired({ key })
- }
- }, PROMPT_TIMEOUT_MS)
- this.pending.set(key, {
- payload,
- resolve: onSettled,
- timer,
- createdAt,
- expiresAt,
- })
- this.bus.emitPairRequested(payload)
- const win = this.getMainWindow()
- if (win) {
- if (win.isMinimized()) win.restore()
- win.focus()
- }
+
+ let resolveDismissed!: () => void
+ const dismissed = new Promise<void>((resolve) => {
+ resolveDismissed = resolve
})
+
+ let closed = false
+ const close = (): void => {
+ if (closed) return
+ closed = true
+ clearTimeout(timer)
+ this.pending.delete(key)
+ this.openOrigins.delete(args.verifiedOrigin)
+ resolveDismissed()
+ // A machine-side teardown (session confirmed, session aborted, or this
+ // prompt's own timeout) is never a user denial — `denied` must mean the
+ // user denied and nothing else, or the approval inbox would lie about
+ // why a prompt disappeared. The renderer already treats `expired` as
+ // "remove this entry", regardless of which of those three caused it.
+ this.bus.emitPairRequestExpired({ key })
+ }
+ const timer = setTimeout(close, PROMPT_TIMEOUT_MS)
+
+ this.pending.set(key, { payload, close, createdAt, expiresAt })
+ this.bus.emitPairRequested(payload)
+ const win = this.getMainWindow()
+ if (win) {
+ if (win.isMinimized()) win.restore()
+ win.focus()
+ }
+
+ return { dismissed, close }
}
/**
- * Explicit settle path for the renderer's ResolvePair command. Resolves the
- * blocked `/pair` promise, clears the timeout, and emits
- * `PairRequestSettled`. An unknown key — already settled, already expired,
- * or never requested — returns `{ ok: false, reason: 'unavailable' }` and
- * emits nothing: this method must NEVER report apparent success for a
- * decision that didn't actually land anywhere (a duplicate settle call is
- * therefore a no-op on the second call).
+ * Explicit dismiss path for the renderer's ResolvePair command (the user
+ * closed the prompt). Under MBP1 there is no allow/deny decision to make
+ * here — approval is proven by typing the code into the extension, not by
+ * a click in this dialog — so this only resolves the pending `dismissed`
+ * promise, which `PairSession` observes as an abort. An unknown key —
+ * already settled, already expired, or never requested — returns
+ * `{ ok: false, reason: 'unavailable' }` and emits nothing: this method
+ * must NEVER report apparent success for a request that didn't actually
+ * land anywhere (a duplicate settle call is therefore a no-op on the
+ * second call).
*/
settle(
params: Extract<ResolvePairParams, { kind: 'extension' }>
@@ -113,22 +157,13 @@ export class PairingDialogController {
const key = pairRequestKey(params)
const p = this.pending.get(key)
if (!p) return { ok: false, reason: 'unavailable' }
- this.pending.delete(key)
- clearTimeout(p.timer)
- p.resolve({
- decision: params.decision,
- addToRegistry: params.addToRegistry,
- })
- this.bus.emitPairRequestSettled({
- key,
- outcome: params.decision === 'allow' ? 'allowed' : 'denied',
- })
+ p.close()
return { ok: true }
}
/** Snapshot of every currently-pending extension `/pair` prompt, for the
- * approval inbox. Renderer-safe: token-free by construction (there is no
- * token yet — the prompt is still awaiting a decision). */
+ * approval inbox. Renderer-safe: token-free by construction, and the
+ * pairing code is never logged (§7.1) — only ever sent to the renderer. */
listPending(): PendingPairRequestInfo[] {
return [...this.pending.values()].map((p) => ({
...p.payload,
@@ -137,14 +172,14 @@ export class PairingDialogController {
}))
}
- /** Settle every pending prompt before the bridge request drain begins. */
+ /** Settle every pending prompt before the bridge request drain begins, so
+ * no `PairSession` awaits a `dismissed` that will never resolve across a
+ * bridge restart. */
dispose(): void {
- for (const [key, pending] of this.pending) {
- clearTimeout(pending.timer)
- pending.resolve({ decision: 'deny', addToRegistry: false })
- this.bus.emitPairRequestExpired({ key })
+ for (const pending of [...this.pending.values()]) {
+ pending.close()
}
this.pending.clear()
- this.lastPromptAt.clear()
+ this.openOrigins.clear()
}
}
diff --git a/src/main/bridge/resolve-official-ids.test.ts b/src/main/bridge/resolve-official-ids.test.ts
new file mode 100644
index 00000000..db6f616f
--- /dev/null
+++ b/src/main/bridge/resolve-official-ids.test.ts
@@ -0,0 +1,30 @@
+import { describe, expect, it } from 'vitest'
+import { resolveOfficialIds } from './index'
+
+describe('resolveOfficialIds', () => {
+ it('returns true only for an id+browser pair in the allowlist', () => {
+ const isOfficialId = resolveOfficialIds([
+ { id: 'aaa', browser: 'chromium' },
+ { id: 'b@c', browser: 'firefox' },
+ ])
+
+ expect(isOfficialId('chromium', 'aaa')).toBe(true)
+ expect(isOfficialId('firefox', 'b@c')).toBe(true)
+ expect(isOfficialId('chromium', 'unknown')).toBe(false)
+ })
+
+ it('does not cross browsers — the same id under a different browser is not official', () => {
+ const isOfficialId = resolveOfficialIds([
+ { id: 'aaa', browser: 'chromium' },
+ ])
+
+ expect(isOfficialId('firefox', 'aaa')).toBe(false)
+ })
+
+ it('returns false for every id against an empty allowlist', () => {
+ const isOfficialId = resolveOfficialIds([])
+
+ expect(isOfficialId('chromium', 'aaa')).toBe(false)
+ expect(isOfficialId('firefox', 'b@c')).toBe(false)
+ })
+})
diff --git a/src/main/index.ts b/src/main/index.ts
index be22ac80..db13863e 100644
--- a/src/main/index.ts
+++ b/src/main/index.ts
@@ -118,6 +118,7 @@ import {
dialog,
autoUpdater as nativeAutoUpdater,
powerMonitor,
+ shell,
} from 'electron'
import { autoUpdater } from 'electron-updater'
import { bootstrapBridge, createNativeMessagingInstaller } from './bridge'
@@ -143,6 +144,7 @@ import { registerUpdateQuitPreparation } from './core/update-quit-preparation'
import { setupExceptionHandler } from './exception-handler'
import { registerApplicationMenuIpc } from './ipc/application-menu'
import { registerCommandHandlers } from './ipc/commands'
+import { createRevealInFolderHandler } from './ipc/commands/reveal-in-folder'
import { registerDisclaimerIpc } from './ipc/disclaimer'
import { setupEventForwarding } from './ipc/events'
import { registerNotificationIpc } from './ipc/notifications'
@@ -2192,6 +2194,10 @@ async function initializeMainProcess(): Promise<void> {
const ff = await resolveFfmpegLocation()
const segmentAria2Client = new Aria2SegmentClient(rpcClient)
segmentClient = segmentAria2Client
+ const revealInFolder = createRevealInFolderHandler({
+ shell,
+ getTask: (taskId) => taskManager.getById(taskId),
+ })
// mediaTmpDir / mediaTmpRoot were computed once at bootstrap (above) so
// SessionManager.restore() and the poll loop share the exact same root.
return bootstrapBridge({
@@ -2199,6 +2205,10 @@ async function initializeMainProcess(): Promise<void> {
motrixVersion: app.getVersion(),
ffmpegAvailable: ff.available,
enabled: true,
+ // Read fresh on every factory invocation (including a hot restart from
+ // BridgeManager.restart()), so a `bridge.fixedPort`/`instanceId` change
+ // takes effect without a full app restart.
+ bridgeSettings: settingsManager.get().bridge,
eventBus,
createTaskDeps,
activityRecorder: activeTaskActivityService,
@@ -2237,6 +2247,7 @@ async function initializeMainProcess(): Promise<void> {
createTask: (req) => handleCreateTask(req, createTaskDeps),
parseTorrentFileCount: async (base64: string) =>
(await torrentParser.parse(base64)).files.length,
+ revealTask: (taskId) => revealInFolder({ taskId }),
},
ffmpegBinaryPath: ff.binaryPath,
resolveFfmpegBinaryPath: async () =>
diff --git a/src/main/ipc/commands.test.ts b/src/main/ipc/commands.test.ts
index 918c6a52..f1b96636 100644
--- a/src/main/ipc/commands.test.ts
+++ b/src/main/ipc/commands.test.ts
@@ -241,6 +241,7 @@ function fakeCtx() {
bridgeManager: {
current: null,
setEnabled: vi.fn(),
+ restart: vi.fn(),
},
magnetTracker: {
submit: vi.fn().mockResolvedValue(undefined),
@@ -1154,12 +1155,24 @@ describe('SetTaskBtTracker handler', () => {
})
describe('Commands.UpdateSettings', () => {
+ // Namespaces come in as one named object, not as trailing positional
+ // parameters: five defaulted `object` slots in a row means a call site can
+ // silently put its override in the wrong namespace and still type-check.
function makeSettingsLike(
proxy: object,
- app: object = {},
- nat: object = {},
- tracker: object = {},
- engine: object = {}
+ {
+ app = {},
+ nat = {},
+ tracker = {},
+ engine = {},
+ bridge = {},
+ }: {
+ app?: object
+ nat?: object
+ tracker?: object
+ engine?: object
+ bridge?: object
+ } = {}
) {
return {
app: {
@@ -1180,6 +1193,11 @@ describe('Commands.UpdateSettings', () => {
blacklistEnabled: true,
...tracker,
},
+ bridge: {
+ fixedPort: 'auto',
+ instanceId: 'instance-1',
+ ...bridge,
+ },
}
}
@@ -1199,10 +1217,10 @@ describe('Commands.UpdateSettings', () => {
reconcileAppImageIntegrationFromSettingsMock.mockClear()
const ctx = fakeCtx()
const before = makeSettingsLike(PROXY_OFF, {
- protocols: { magnet: false },
+ app: { protocols: { magnet: false } },
})
const after = makeSettingsLike(PROXY_OFF, {
- protocols: { magnet: true },
+ app: { protocols: { magnet: true } },
})
const settingsManager = {
...ctx.settingsManager,
@@ -1243,10 +1261,10 @@ describe('Commands.UpdateSettings', () => {
})
const ctx = fakeCtx()
const before = makeSettingsLike(PROXY_OFF, {
- protocols: { magnet: true },
+ app: { protocols: { magnet: true } },
})
const after = makeSettingsLike(PROXY_OFF, {
- protocols: { magnet: false },
+ app: { protocols: { magnet: false } },
})
const settingsManager = {
...ctx.settingsManager,
@@ -1277,7 +1295,7 @@ describe('Commands.UpdateSettings', () => {
reconcileAppImageIntegrationFromSettingsMock.mockClear()
const ctx = fakeCtx()
const settings = makeSettingsLike(PROXY_OFF, {
- protocols: { magnet: false },
+ app: { protocols: { magnet: false } },
})
const settingsManager = {
...ctx.settingsManager,
@@ -1512,9 +1530,11 @@ describe('Commands.UpdateSettings', () => {
scopes: { download: true, updateApp: false, updateTrackers: false },
}
const before = makeSettingsLike(PROXY_OFF, {
- browserBridgeEnabled: false,
+ app: { browserBridgeEnabled: false },
+ })
+ const after = makeSettingsLike(proxy, {
+ app: { browserBridgeEnabled: true },
})
- const after = makeSettingsLike(proxy, { browserBridgeEnabled: true })
const settingsManager = {
...ctx.settingsManager,
get: vi.fn().mockReturnValueOnce(before).mockReturnValue(after),
@@ -1558,10 +1578,10 @@ describe('Commands.UpdateSettings', () => {
it('hot-applies a changed default save directory', async () => {
const ctx = fakeCtx()
const before = makeSettingsLike(PROXY_OFF, {
- defaultSaveDir: '/downloads/old',
+ app: { defaultSaveDir: '/downloads/old' },
})
const after = makeSettingsLike(PROXY_OFF, {
- defaultSaveDir: '/downloads/new',
+ app: { defaultSaveDir: '/downloads/new' },
})
const settingsManager = {
...ctx.settingsManager,
@@ -1621,8 +1641,8 @@ describe('Commands.UpdateSettings', () => {
it('hot-applies runtime engine settings without a restart reminder', async () => {
const ctx = fakeCtx()
- const before = makeSettingsLike(PROXY_OFF, {}, {}, {}, { split: 16 })
- const after = makeSettingsLike(PROXY_OFF, {}, {}, {}, { split: 32 })
+ const before = makeSettingsLike(PROXY_OFF, { engine: { split: 16 } })
+ const after = makeSettingsLike(PROXY_OFF, { engine: { split: 32 } })
const settingsManager = {
...ctx.settingsManager,
get: vi.fn().mockReturnValueOnce(before).mockReturnValueOnce(after),
@@ -1649,18 +1669,12 @@ describe('Commands.UpdateSettings', () => {
it('calls trackerManager.applySourcesChange when sourcesEnabled changes', async () => {
const ctx = fakeCtx()
- const before = makeSettingsLike(
- PROXY_OFF,
- {},
- {},
- { sourcesEnabled: true, blacklistEnabled: true }
- )
- const after = makeSettingsLike(
- PROXY_OFF,
- {},
- {},
- { sourcesEnabled: false, blacklistEnabled: true }
- )
+ const before = makeSettingsLike(PROXY_OFF, {
+ tracker: { sourcesEnabled: true, blacklistEnabled: true },
+ })
+ const after = makeSettingsLike(PROXY_OFF, {
+ tracker: { sourcesEnabled: false, blacklistEnabled: true },
+ })
const settingsManager = {
...ctx.settingsManager,
get: vi.fn().mockReturnValueOnce(before).mockReturnValueOnce(after),
@@ -1684,18 +1698,12 @@ describe('Commands.UpdateSettings', () => {
it('calls trackerManager.applyBlacklistChange when blacklistEnabled changes', async () => {
const ctx = fakeCtx()
- const before = makeSettingsLike(
- PROXY_OFF,
- {},
- {},
- { sourcesEnabled: true, blacklistEnabled: true }
- )
- const after = makeSettingsLike(
- PROXY_OFF,
- {},
- {},
- { sourcesEnabled: true, blacklistEnabled: false }
- )
+ const before = makeSettingsLike(PROXY_OFF, {
+ tracker: { sourcesEnabled: true, blacklistEnabled: true },
+ })
+ const after = makeSettingsLike(PROXY_OFF, {
+ tracker: { sourcesEnabled: true, blacklistEnabled: false },
+ })
const settingsManager = {
...ctx.settingsManager,
get: vi.fn().mockReturnValueOnce(before).mockReturnValueOnce(after),
@@ -1719,18 +1727,12 @@ describe('Commands.UpdateSettings', () => {
it('calls both apply* methods when both toggle in one patch', async () => {
const ctx = fakeCtx()
- const before = makeSettingsLike(
- PROXY_OFF,
- {},
- {},
- { sourcesEnabled: true, blacklistEnabled: true }
- )
- const after = makeSettingsLike(
- PROXY_OFF,
- {},
- {},
- { sourcesEnabled: false, blacklistEnabled: false }
- )
+ const before = makeSettingsLike(PROXY_OFF, {
+ tracker: { sourcesEnabled: true, blacklistEnabled: true },
+ })
+ const after = makeSettingsLike(PROXY_OFF, {
+ tracker: { sourcesEnabled: false, blacklistEnabled: false },
+ })
const settingsManager = {
...ctx.settingsManager,
get: vi.fn().mockReturnValueOnce(before).mockReturnValueOnce(after),
@@ -1754,12 +1756,9 @@ describe('Commands.UpdateSettings', () => {
it('does not call apply* methods when tracker toggles unchanged', async () => {
const ctx = fakeCtx()
- const settings = makeSettingsLike(
- PROXY_OFF,
- {},
- {},
- { sourcesEnabled: true, blacklistEnabled: true }
- )
+ const settings = makeSettingsLike(PROXY_OFF, {
+ tracker: { sourcesEnabled: true, blacklistEnabled: true },
+ })
const settingsManager = {
...ctx.settingsManager,
get: vi.fn().mockReturnValue(settings),
@@ -1781,10 +1780,82 @@ describe('Commands.UpdateSettings', () => {
expect(ctx.trackerManager.applyBlacklistChange).not.toHaveBeenCalled()
})
+ it('calls bridgeManager.restart when bridge.fixedPort changes', async () => {
+ const ctx = fakeCtx()
+ const before = makeSettingsLike(PROXY_OFF, {
+ bridge: { fixedPort: 'auto' },
+ })
+ const after = makeSettingsLike(PROXY_OFF, { bridge: { fixedPort: 16900 } })
+ const settingsManager = {
+ ...ctx.settingsManager,
+ get: vi.fn().mockReturnValueOnce(before).mockReturnValueOnce(after),
+ update: vi.fn().mockResolvedValue({
+ ok: true,
+ requiresRestart: false,
+ changedRestartKeys: [],
+ }),
+ }
+ const bridgeManager = {
+ current: null,
+ setEnabled: vi.fn(),
+ restart: vi.fn(),
+ }
+ const handlers = buildCommandHandlers({
+ ...ctx,
+ settingsManager,
+ bridgeManager,
+ protocolManager: { register: vi.fn() },
+ } as unknown as CommandContext)
+
+ await handlers[Commands.UpdateSettings]?.({
+ bridge: { fixedPort: 16900 },
+ })
+
+ expect(bridgeManager.restart).toHaveBeenCalledOnce()
+ expect(bridgeManager.setEnabled).not.toHaveBeenCalled()
+ })
+
+ it('does not call bridgeManager.restart when bridge.fixedPort is unchanged', async () => {
+ const ctx = fakeCtx()
+ const settings = makeSettingsLike(PROXY_OFF, {
+ bridge: { fixedPort: 'auto' },
+ })
+ const settingsManager = {
+ ...ctx.settingsManager,
+ get: vi.fn().mockReturnValue(settings),
+ update: vi.fn().mockResolvedValue({
+ ok: true,
+ requiresRestart: false,
+ changedRestartKeys: [],
+ }),
+ }
+ const bridgeManager = {
+ current: null,
+ setEnabled: vi.fn(),
+ restart: vi.fn(),
+ }
+ const handlers = buildCommandHandlers({
+ ...ctx,
+ settingsManager,
+ bridgeManager,
+ protocolManager: { register: vi.fn() },
+ } as unknown as CommandContext)
+
+ await handlers[Commands.UpdateSettings]?.({
+ app: { launchAtStartup: false },
+ })
+
+ expect(bridgeManager.restart).not.toHaveBeenCalled()
+ })
+
it('reconfigures the updater after the persisted channel changes', async () => {
const ctx = fakeCtx()
- const before = makeSettingsLike(PROXY_OFF, { updateChannel: 'stable' })
- const after = makeSettingsLike(PROXY_OFF, { updateChannel: 'beta' })
+ const before = makeSettingsLike(PROXY_OFF, {
+ app: { updateChannel: 'stable' },
+ })
+ const after = makeSettingsLike(PROXY_OFF, {
+ app: { updateChannel: 'beta' },
+ })
const settingsManager = {
...ctx.settingsManager,
get: vi.fn().mockReturnValueOnce(before).mockReturnValueOnce(after),
diff --git a/src/main/ipc/commands.ts b/src/main/ipc/commands.ts
index 8532b1e4..cadc81a1 100644
--- a/src/main/ipc/commands.ts
+++ b/src/main/ipc/commands.ts
@@ -1004,6 +1004,9 @@ export function buildCommandHandlers(ctx: CommandContext): CommandHandlerMap {
) {
await bridgeManager.setEnabled(newFull.app.browserBridgeEnabled)
}
+ if (oldFull.bridge.fixedPort !== newFull.bridge.fixedPort) {
+ await bridgeManager.restart()
+ }
if (
magnetPreferenceSubmitted ||
oldFull.app.protocols.magnet !== newFull.app.protocols.magnet
diff --git a/src/renderer/components/ui/toast.test.tsx b/src/renderer/components/ui/toast.test.tsx
index dc58b1ee..adb7b7fb 100644
--- a/src/renderer/components/ui/toast.test.tsx
+++ b/src/renderer/components/ui/toast.test.tsx
@@ -1,5 +1,5 @@
import '@testing-library/jest-dom/vitest'
-import { act, render, screen } from '@testing-library/react'
+import { act, render, screen, waitFor } from '@testing-library/react'
import userEvent from '@testing-library/user-event'
import { afterEach, describe, expect, it, vi } from 'vitest'
import '@renderer/lib/i18n'
@@ -196,30 +196,152 @@ describe('toast', () => {
expect(onDeny).toHaveBeenCalledOnce()
})
- it('renders extension copy (title/browser) for an extension-kind request', async () => {
- render(<Toaster />)
- add({
- id: 'chromium:ext-1:nonce',
- timeout: 0,
- priority: 'high',
- data: {
- pairRequest: {
- kind: 'extension',
- pairingNonce: 'nonce',
- extensionId: 'ext-1',
- extensionName: 'Motrix Helper',
- extensionVersion: '1.0',
- browser: 'chromium',
- onAllow: vi.fn(),
- onDeny: vi.fn(),
+ describe('extension pairing branch (§5 identity tri-state)', () => {
+ function extensionPairRequest(
+ overrides: Partial<{
+ identity: 'official' | 'attested-non-official' | 'unverified'
+ onDeny: () => void
+ }> = {}
+ ) {
+ return {
+ kind: 'extension' as const,
+ pairingNonce: 'nonce',
+ extensionId: 'ext-1',
+ identity: overrides.identity ?? 'official',
+ code: '1234-5678',
+ browser: 'chromium' as const,
+ onDeny: overrides.onDeny ?? vi.fn(),
+ }
+ }
+
+ it('renders extension copy (title/browser) and the grouped pairing code, with no Allow button', async () => {
+ render(<Toaster />)
+ add({
+ id: 'chromium:ext-official:nonce',
+ timeout: 0,
+ priority: 'high',
+ data: {
+ pairRequest: extensionPairRequest({ identity: 'official' }),
},
- },
+ })
+
+ expect(
+ // MBP1 forbids displaying the self-reported extension name (§5),
+ // and the raw id means nothing to a person in a title — it appears
+ // exactly once, in the mono description line. The browser rides in
+ // the title instead of a separate "From …" row.
+ await screen.findByText(
+ 'A Chrome / Edge extension wants to connect to Motrix'
+ )
+ ).toBeInTheDocument()
+ expect(screen.getByText('ID: ext-1')).toBeInTheDocument()
+ expect(screen.queryByText('From Chrome / Edge')).toBeNull()
+ // §7.1: rendered verbatim — already grouped XXXX-XXXX by the caller.
+ expect(screen.getByText('1234-5678')).toBeInTheDocument()
+ expect(
+ screen.queryByRole('button', { name: 'Allow', hidden: true })
+ ).not.toBeInTheDocument()
})
- expect(
- await screen.findByText('Motrix Helper wants to connect to Motrix')
- ).toBeInTheDocument()
- expect(screen.getByText('From Chrome / Edge')).toBeInTheDocument()
+ it('copies the display-form pairing code from the code box', async () => {
+ Object.defineProperty(navigator, 'clipboard', {
+ configurable: true,
+ value: { writeText: vi.fn().mockResolvedValue(undefined) },
+ })
+ render(<Toaster />)
+ add({
+ id: 'chromium:ext-copy:nonce',
+ timeout: 0,
+ priority: 'high',
+ data: {
+ pairRequest: extensionPairRequest({ identity: 'official' }),
+ },
+ })
+
+ await userEvent.click(
+ await screen.findByRole('button', {
+ name: 'Copy pairing code',
+ hidden: true,
+ })
+ )
+ await waitFor(() =>
+ expect(navigator.clipboard.writeText).toHaveBeenCalledWith(
+ '1234-5678'
+ )
+ )
+ })
+
+ it('official: shows a Motrix-branded identity label and no warning styling', async () => {
+ render(<Toaster />)
+ add({
+ id: 'chromium:ext-official-2:nonce',
+ timeout: 0,
+ priority: 'high',
+ data: {
+ pairRequest: extensionPairRequest({ identity: 'official' }),
+ },
+ })
+ expect(
+ await screen.findByText('Official Motrix extension')
+ ).toBeInTheDocument()
+ expect(screen.queryByText(/could not be verified/i)).toBeNull()
+ })
+
+ it('attested-non-official: shows a generic verified label with no Motrix branding and no warning', async () => {
+ render(<Toaster />)
+ add({
+ id: 'chromium:ext-attested:nonce',
+ timeout: 0,
+ priority: 'high',
+ data: {
+ pairRequest: extensionPairRequest({
+ identity: 'attested-non-official',
+ }),
+ },
+ })
+ const label = await screen.findByText('Verified extension')
+ expect(label).toBeInTheDocument()
+ expect(label.textContent).not.toMatch(/Motrix/)
+ expect(screen.queryByText(/could not be verified/i)).toBeNull()
+ })
+
+ it('unverified: warning styling plus the raw claimed id — never a friendly name', async () => {
+ const { baseElement } = render(<Toaster />)
+ add({
+ id: 'chromium:ext-unverified:nonce',
+ timeout: 0,
+ priority: 'high',
+ data: {
+ pairRequest: extensionPairRequest({ identity: 'unverified' }),
+ },
+ })
+
+ expect(
+ await screen.findByText('Unverified extension')
+ ).toBeInTheDocument()
+ expect(screen.getByText(/could not be verified/i)).toBeInTheDocument()
+ expect(screen.getByText('ID: ext-1')).toBeInTheDocument()
+ expect(screen.getByText('1234-5678')).toBeInTheDocument()
+ expect(baseElement.querySelector('svg.text-amber-500')).not.toBeNull()
+ // No self-reported friendly name exists in the payload at all, and
+ // none is fabricated for display.
+ expect(screen.queryByText('Motrix Extension')).toBeNull()
+ })
+
+ it('clicking "Don\'t allow" calls onDeny — the only decision affordance left for an extension prompt', async () => {
+ render(<Toaster />)
+ const onDeny = vi.fn()
+ add({
+ id: 'chromium:ext-deny:nonce',
+ timeout: 0,
+ priority: 'high',
+ data: { pairRequest: extensionPairRequest({ onDeny }) },
+ })
+ await userEvent.click(
+ screen.getByRole('button', { name: "Don't allow", hidden: true })
+ )
+ expect(onDeny).toHaveBeenCalledOnce()
+ })
})
it('routes the × close button through the toast onClose (dismiss-as-deny wiring)', async () => {
diff --git a/src/renderer/components/ui/toast.tsx b/src/renderer/components/ui/toast.tsx
index d0fb1b61..99b25ac8 100644
--- a/src/renderer/components/ui/toast.tsx
+++ b/src/renderer/components/ui/toast.tsx
@@ -1,13 +1,19 @@
import { Toast } from '@base-ui/react/toast'
+import { CopyButton } from '@renderer/components/desktop-kit/copy-button'
+import { Badge } from '@renderer/components/ui/badge'
import { Button } from '@renderer/components/ui/button'
import { SEVERITY_ICONS } from '@renderer/components/ui/severity-icons'
+import { browserDisplayName } from '@renderer/lib/browser-name'
import { transport } from '@renderer/lib/transport'
import { cn } from '@renderer/lib/utils'
import {
DESKTOP_WINDOW_CHROME_HEIGHT,
WINDOW_CHROME_EDGE_GAP,
} from '@shared/constants/window-chrome'
-import type { PairRequestPayload } from '@shared/protocol/bridge'
+import type {
+ IdentityTriState,
+ PairRequestPayload,
+} from '@shared/protocol/bridge'
import { XIcon } from 'lucide-react'
import { useTranslation } from 'react-i18next'
@@ -19,16 +25,28 @@ export const toast = Toast.createToastManager()
/**
* Shape a pairing-prompt host (`usePairRequestPrompts`) puts in
- * `toast.add({ data: { pairRequest } })`: the wire payload plus the two
- * decision callbacks the pairing branch below wires its Allow/Deny buttons
- * to. Kept here (not in the hook's file) because this is the contract the
- * renderer, not the caller, owns — `ToastList` is what interprets `data`.
+ * `toast.add({ data: { pairRequest } })`: the wire payload plus the decision
+ * callback(s) the pairing branch below wires its buttons to. Kept here (not
+ * in the hook's file) because this is the contract the renderer, not the
+ * caller, owns — `ToastList` is what interprets `data`.
+ *
+ * Discriminated on `kind`, deliberately asymmetric: a `cli` prompt keeps a
+ * real Allow/Deny decision (`onAllow` + `onDeny`), but under MBP1 an
+ * `extension` prompt has no Allow to give — approval is proven by typing the
+ * §7.1 code into the extension, not by a click here — so it carries only
+ * `onDeny`. Giving both variants an `onAllow` would let a future render path
+ * wire up an "Allow" button that (per `ResolvePairParams`) can't actually
+ * express approval for an extension request.
*/
-export interface PairRequestToastData {
- pairRequest: PairRequestPayload & {
- onAllow: () => void
- onDeny: () => void
- }
+export type PairRequestToastData = {
+ pairRequest:
+ | (Extract<PairRequestPayload, { kind: 'cli' }> & {
+ onAllow: () => void
+ onDeny: () => void
+ })
+ | (Extract<PairRequestPayload, { kind: 'extension' }> & {
+ onDeny: () => void
+ })
}
/** i18n copy for a pairing prompt. Exported so `usePairRequestPrompts` can
@@ -57,17 +75,52 @@ export function pairRequestCopy(
denyLabel: t('settings.integration.cli.pairToast.deny'),
}
: {
+ // MBP1 forbids displaying the self-reported extension name (§5),
+ // and the raw extension id means nothing to a person in a headline —
+ // it is the description instead, shown exactly once. The browser
+ // rides in the title, so there is no separate "From …" row.
title: t('settings.integration.browser.pairToast.title', {
- name: payload.extensionName,
+ browser: browserDisplayName(payload.browser),
}),
- description: t('settings.integration.browser.pairToast.from', {
- browser: payload.browser === 'chromium' ? 'Chrome / Edge' : 'Firefox',
+ // The full id, verbatim — it must be comparable against
+ // chrome://extensions character by character; only the label is terse.
+ description: t('settings.integration.browser.pairToast.extensionId', {
+ id: payload.extensionId,
}),
- allowLabel: t('settings.integration.browser.pairToast.allow'),
+ // No allowLabel: an extension prompt has no Allow affordance (see
+ // `PairRequestToastData`'s doc comment).
denyLabel: t('settings.integration.browser.pairToast.deny'),
}
}
+/**
+ * §5 display rules for the extension identity tri-state, mirroring the
+ * `Record<Tone, …>` idiom used for plugin audience tones
+ * (`routes/plugins/lib/audience.ts`) so the union stays compile-time
+ * exhaustive. Only `official` carries a label that names Motrix — §5: "May
+ * show Motrix branding" is exclusive to that state.
+ */
+const IDENTITY_BADGE_META: Record<
+ IdentityTriState,
+ {
+ badgeVariant: 'default' | 'outline' | 'destructive'
+ labelKey: string
+ }
+> = {
+ official: {
+ badgeVariant: 'default',
+ labelKey: 'settings.integration.browser.pairToast.identityLabel.official',
+ },
+ 'attested-non-official': {
+ badgeVariant: 'outline',
+ labelKey: 'settings.integration.browser.pairToast.identityLabel.attested',
+ },
+ unverified: {
+ badgeVariant: 'destructive',
+ labelKey: 'settings.integration.browser.pairToast.identityLabel.unverified',
+ },
+}
+
/** One lookup, no two-table drift — the icon + accent map itself lives in
* `ui/severity-icons.ts` so the notifications page
* (`routes/notifications/notifications-page.tsx`) can reuse it without
@@ -82,24 +135,114 @@ function ToastList() {
const pairRequest = (item.data as PairRequestToastData | undefined)
?.pairRequest
if (pairRequest) {
+ // Structural fork, not a copy swap: a cli request keeps a real
+ // Allow/Deny decision, while an extension request (MBP1) has no Allow
+ // to give and instead surfaces the §7.1 pairing code plus the §5
+ // identity tri-state — content the cli branch has no equivalent for.
+ const rootClassName =
+ 'pointer-events-auto flex w-full items-start gap-2 rounded-md border border-border bg-popover p-3 text-popover-foreground shadow-md transition-all duration-200 motion-reduce:transition-none data-ending-style:translate-y-2 data-ending-style:opacity-0 data-limited:pointer-events-none data-limited:invisible data-limited:opacity-0 data-starting-style:translate-y-2 data-starting-style:opacity-0'
+ const closeButton = (
+ <Toast.Close
+ aria-label={t('common.close')}
+ className="shrink-0 rounded-md p-1 text-muted-foreground hover:bg-accent hover:text-foreground"
+ >
+ <XIcon className="size-3.5" />
+ </Toast.Close>
+ )
+
+ if (pairRequest.kind === 'cli') {
+ const copy = pairRequestCopy(pairRequest, t)
+ return (
+ <Toast.Root key={item.id} toast={item} className={rootClassName}>
+ <div className="flex min-w-0 flex-1 flex-col gap-1.5 wrap-anywhere">
+ <Toast.Title className="text-sm font-medium">
+ {copy.title}
+ </Toast.Title>
+ <Toast.Description className="text-xs text-muted-foreground">
+ {copy.description}
+ </Toast.Description>
+ <div className="mt-1.5 flex gap-2">
+ <Button type="button" size="xs" onClick={pairRequest.onAllow}>
+ {copy.allowLabel}
+ </Button>
+ <Button
+ type="button"
+ size="xs"
+ variant="outline"
+ onClick={pairRequest.onDeny}
+ >
+ {copy.denyLabel}
+ </Button>
+ </div>
+ </div>
+ {closeButton}
+ </Toast.Root>
+ )
+ }
+
const copy = pairRequestCopy(pairRequest, t)
+ const identityMeta = IDENTITY_BADGE_META[pairRequest.identity]
+ const isUnverified = pairRequest.identity === 'unverified'
return (
- <Toast.Root
- key={item.id}
- toast={item}
- className="pointer-events-auto flex w-full items-start gap-2 rounded-md border border-border bg-popover p-3 text-popover-foreground shadow-md transition-all duration-200 motion-reduce:transition-none data-ending-style:translate-y-2 data-ending-style:opacity-0 data-limited:pointer-events-none data-limited:invisible data-limited:opacity-0 data-starting-style:translate-y-2 data-starting-style:opacity-0"
- >
+ <Toast.Root key={item.id} toast={item} className={rootClassName}>
<div className="flex min-w-0 flex-1 flex-col gap-1.5 wrap-anywhere">
+ <div className="flex items-center gap-1.5">
+ {isUnverified && (
+ <SEVERITY_ICONS.warning.icon
+ className={cn(
+ 'size-3.5 shrink-0',
+ SEVERITY_ICONS.warning.iconClassName
+ )}
+ aria-hidden="true"
+ />
+ )}
+ <Badge
+ variant={identityMeta.badgeVariant}
+ className="rounded text-[10px]"
+ >
+ {t(identityMeta.labelKey)}
+ </Badge>
+ </div>
<Toast.Title className="text-sm font-medium">
{copy.title}
</Toast.Title>
- <Toast.Description className="text-xs text-muted-foreground">
+ {/* Raw id, not the self-reported name (§5) — same font-mono
+ * truncate treatment as the trusted-extensions table. */}
+ <Toast.Description className="truncate font-mono text-[11px] text-muted-foreground">
{copy.description}
</Toast.Description>
+ {isUnverified && (
+ <p className="text-xs text-amber-700 dark:text-amber-400">
+ {t(
+ 'settings.integration.browser.pairToast.identityUnverifiedWarning'
+ )}
+ </p>
+ )}
+ <div className="mt-1 flex flex-col gap-1 rounded border border-border bg-muted/30 px-2 py-1.5">
+ <div className="flex items-center justify-between">
+ <span className="text-[10px] tracking-wide text-muted-foreground uppercase">
+ {t('settings.integration.browser.pairToast.pairCode')}
+ </span>
+ <CopyButton
+ content={pairRequest.code}
+ size="xs"
+ variant="ghost"
+ aria-label={t(
+ 'settings.integration.browser.pairToast.copyCode'
+ )}
+ className="-my-0.5 -me-1 size-6 p-0 text-muted-foreground hover:text-foreground"
+ />
+ </div>
+ {/* The §7.1 PAKE password, rendered verbatim — never
+ * reformatted and never logged (§7.1/§11). */}
+ <span className="text-center font-mono text-base font-semibold tracking-widest">
+ {pairRequest.code}
+ </span>
+ <span className="text-[11px] text-muted-foreground">
+ {t('settings.integration.browser.pairToast.pairCodeHint')}
+ </span>
+ </div>
<div className="mt-1.5 flex gap-2">
- <Button type="button" size="xs" onClick={pairRequest.onAllow}>
- {copy.allowLabel}
- </Button>
<Button
type="button"
size="xs"
@@ -110,12 +253,7 @@ function ToastList() {
</Button>
</div>
</div>
- <Toast.Close
- aria-label={t('common.close')}
- className="shrink-0 rounded-md p-1 text-muted-foreground hover:bg-accent hover:text-foreground"
- >
- <XIcon className="size-3.5" />
- </Toast.Close>
+ {closeButton}
</Toast.Root>
)
}
diff --git a/src/renderer/lib/browser-name.test.ts b/src/renderer/lib/browser-name.test.ts
new file mode 100644
index 00000000..40eaba13
--- /dev/null
+++ b/src/renderer/lib/browser-name.test.ts
@@ -0,0 +1,9 @@
+import { describe, expect, it } from 'vitest'
+import { browserDisplayName } from './browser-name'
+
+describe('browserDisplayName', () => {
+ it('names each browser family the way every surface must', () => {
+ expect(browserDisplayName('chromium')).toBe('Chrome / Edge')
+ expect(browserDisplayName('firefox')).toBe('Firefox')
+ })
+})
diff --git a/src/renderer/lib/browser-name.ts b/src/renderer/lib/browser-name.ts
new file mode 100644
index 00000000..4c09687f
--- /dev/null
+++ b/src/renderer/lib/browser-name.ts
@@ -0,0 +1,18 @@
+import type { Browser } from '@shared/protocol/bridge'
+
+/**
+ * The one human-facing name per `Browser` family. Every surface that shows a
+ * caller's browser (pairing toast, browser-extensions table, trusted
+ * extensions table) reads this map, so adding a family to the `Browser`
+ * union fails `tsc` here instead of silently falling through an inline
+ * ternary somewhere. Brand names, not translations — they stay identical in
+ * every locale.
+ */
+const BROWSER_DISPLAY_NAMES: Record<Browser, string> = {
+ chromium: 'Chrome / Edge',
+ firefox: 'Firefox',
+}
+
+export function browserDisplayName(browser: Browser): string {
+ return BROWSER_DISPLAY_NAMES[browser]
+}
diff --git a/src/renderer/routes/settings/cards/integration/browser-extensions-section.tsx b/src/renderer/routes/settings/cards/integration/browser-extensions-section.tsx
index bd4f765a..da8733b0 100644
--- a/src/renderer/routes/settings/cards/integration/browser-extensions-section.tsx
+++ b/src/renderer/routes/settings/cards/integration/browser-extensions-section.tsx
@@ -1,3 +1,8 @@
+import {
+ Alert,
+ AlertDescription,
+ AlertTitle,
+} from '@renderer/components/ui/alert'
import { Button } from '@renderer/components/ui/button'
import {
FormControl,
@@ -7,18 +12,21 @@ import {
FormLabel,
} from '@renderer/components/ui/form'
import { Switch } from '@renderer/components/ui/switch'
+import { browserDisplayName } from '@renderer/lib/browser-name'
import { cn } from '@renderer/lib/utils'
import type { PairedClientInfo } from '@shared/protocol/bridge'
+import { TriangleAlertIcon } from 'lucide-react'
import { useFormContext } from 'react-hook-form'
import { useTranslation } from 'react-i18next'
import type { IntegrationFormValues } from './integration-dialog'
import { TrustedExtensionsSection } from './trusted-extensions-section'
-import { usePairedExtensions } from './use-bridge'
+import { useBridgeStatus, usePairedExtensions } from './use-bridge'
export function BrowserExtensionsSection() {
const { t } = useTranslation()
const form = useFormContext<IntegrationFormValues>()
const { items: paired, revoke } = usePairedExtensions()
+ const status = useBridgeStatus()
// This section lists browser extensions only; cli/agent clients (device-code
// paired) are a separate principal kind.
const pairedExtensions = paired.filter(
@@ -49,6 +57,20 @@ export function BrowserExtensionsSection() {
)}
/>
+ {status?.degraded && (
+ <Alert className="border-amber-500/30 bg-amber-500/10 px-3 py-2 text-[11px] leading-4 text-amber-900 dark:text-amber-200">
+ <TriangleAlertIcon />
+ <AlertTitle>
+ {t('settings.integration.browser.degradedPort.title')}
+ </AlertTitle>
+ <AlertDescription className="text-amber-900/80 dark:text-amber-200/80">
+ {t('settings.integration.browser.degradedPort.description', {
+ port: status.port,
+ })}
+ </AlertDescription>
+ </Alert>
+ )}
+
<div
className={cn(
'space-y-2',
@@ -74,7 +96,7 @@ export function BrowserExtensionsSection() {
<div className="flex flex-col gap-0.5">
<span className="font-mono">{it.name || it.id}</span>
<span className="text-muted-foreground">
- {it.browser === 'chromium' ? 'Chrome / Edge' : 'Firefox'}
+ {browserDisplayName(it.browser)}
{it.lastActiveAt
? ` · ${t('settings.integration.browser.lastActive')}: ${new Date(it.lastActiveAt).toLocaleString()}`
: ''}
diff --git a/src/renderer/routes/settings/cards/integration/integration-dialog.test.tsx b/src/renderer/routes/settings/cards/integration/integration-dialog.test.tsx
index 89ebdb00..ddef927f 100644
--- a/src/renderer/routes/settings/cards/integration/integration-dialog.test.tsx
+++ b/src/renderer/routes/settings/cards/integration/integration-dialog.test.tsx
@@ -8,7 +8,18 @@ import {
} from '@shared/types/cli-tool'
import { render, screen } from '@testing-library/react'
import userEvent from '@testing-library/user-event'
-import { describe, expect, it, vi } from 'vitest'
+import { beforeEach, describe, expect, it, vi } from 'vitest'
+
+// Mutable so individual tests can flip the bridge's reported port status
+// (Task 21) without redefining the whole `vi.mock` factory per test.
+const bridgeStatus = vi.hoisted(() => ({
+ current: {
+ port: 16802,
+ degraded: false,
+ fixedPort: 'auto' as const,
+ instanceId: 'test-instance',
+ },
+}))
vi.mock('@renderer/lib/transport', () => ({
transport: {
@@ -20,6 +31,9 @@ vi.mock('@renderer/lib/transport', () => ({
) {
return Promise.resolve([])
}
+ if (channel === 'bridge:getStatus') {
+ return Promise.resolve(bridgeStatus.current)
+ }
if (channel === 'query:getFfmpegDetection') {
return Promise.resolve({ active: null, candidates: [] })
}
@@ -84,6 +98,15 @@ import { transport } from '@renderer/lib/transport'
import { IntegrationDialog } from './integration-dialog'
describe('IntegrationDialog scaffold', () => {
+ beforeEach(() => {
+ bridgeStatus.current = {
+ port: 16802,
+ degraded: false,
+ fixedPort: 'auto',
+ instanceId: 'test-instance',
+ }
+ })
+
it('renders the four top-level section headings', async () => {
render(
<IntegrationDialog
@@ -172,6 +195,9 @@ describe('IntegrationDialog scaffold', () => {
) {
return []
}
+ if (channel === 'bridge:getStatus') {
+ return bridgeStatus.current
+ }
if (channel === 'query:getFfmpegDetection') {
return { active: null, candidates: [] }
}
@@ -202,4 +228,43 @@ describe('IntegrationDialog scaffold', () => {
).toBeVisible()
expect(onClose).not.toHaveBeenCalled()
})
+
+ it('surfaces the degraded-port notice in the browser extensions card when the bridge fell back to an ephemeral port (Task 21)', async () => {
+ bridgeStatus.current = {
+ port: 54321,
+ degraded: true,
+ fixedPort: 'auto',
+ instanceId: 'test-instance',
+ }
+
+ render(
+ <IntegrationDialog
+ open={true}
+ onClose={() => {}}
+ labelKey="settings.cards.integration.title"
+ descKey="settings.cards.integration.desc"
+ />
+ )
+
+ expect(
+ await screen.findByText('Bridge running on a fallback port')
+ ).toBeInTheDocument()
+ expect(screen.getByText(/bound port 54321 instead/)).toBeInTheDocument()
+ })
+
+ it('shows no degraded-port notice when the bridge is running on its normal port', async () => {
+ render(
+ <IntegrationDialog
+ open={true}
+ onClose={() => {}}
+ labelKey="settings.cards.integration.title"
+ descKey="settings.cards.integration.desc"
+ />
+ )
+
+ await screen.findByRole('heading', { name: /browser extensions/i })
+ expect(
+ screen.queryByText('Bridge running on a fallback port')
+ ).not.toBeInTheDocument()
+ })
})
diff --git a/src/renderer/routes/settings/cards/integration/pair-resolve.test.ts b/src/renderer/routes/settings/cards/integration/pair-resolve.test.ts
index 939d4d32..1712ab03 100644
--- a/src/renderer/routes/settings/cards/integration/pair-resolve.test.ts
+++ b/src/renderer/routes/settings/cards/integration/pair-resolve.test.ts
@@ -55,8 +55,6 @@ describe('resolvePairWithFeedback', () => {
pairingNonce: 'n1',
extensionId: 'ext1',
browser: 'chromium',
- decision: 'allow',
- addToRegistry: false,
},
t
)
diff --git a/src/renderer/routes/settings/cards/integration/trusted-extensions-section.tsx b/src/renderer/routes/settings/cards/integration/trusted-extensions-section.tsx
index c94e9273..bb8205e1 100644
--- a/src/renderer/routes/settings/cards/integration/trusted-extensions-section.tsx
+++ b/src/renderer/routes/settings/cards/integration/trusted-extensions-section.tsx
@@ -14,6 +14,7 @@ import {
SelectTrigger,
SelectValue,
} from '@renderer/components/ui/select'
+import { browserDisplayName } from '@renderer/lib/browser-name'
import { cn } from '@renderer/lib/utils'
import type { TrustedExtensionInfo } from '@shared/protocol/bridge'
import { ChevronRight, Trash2 } from 'lucide-react'
@@ -151,9 +152,7 @@ export function TrustedExtensionsSection({ disabled }: { disabled: boolean }) {
</div>
)}
</div>
- <span>
- {it.browser === 'chromium' ? 'Chrome / Edge' : 'Firefox'}
- </span>
+ <span>{browserDisplayName(it.browser)}</span>
<Badge
variant={it.source === 'builtin' ? 'outline' : 'secondary'}
className="justify-self-start rounded text-[10px]"
diff --git a/src/renderer/routes/settings/cards/integration/use-bridge.test.tsx b/src/renderer/routes/settings/cards/integration/use-bridge.test.tsx
new file mode 100644
index 00000000..a04fdb02
--- /dev/null
+++ b/src/renderer/routes/settings/cards/integration/use-bridge.test.tsx
@@ -0,0 +1,82 @@
+import '@testing-library/jest-dom/vitest'
+import { transport } from '@renderer/lib/transport'
+import { renderHook, waitFor } from '@testing-library/react'
+import { beforeEach, describe, expect, it, vi } from 'vitest'
+import { useBridgeStatus } from './use-bridge'
+
+vi.mock('@renderer/lib/transport', () => ({
+ transport: { invoke: vi.fn(), on: vi.fn(), off: vi.fn() },
+}))
+
+const STATUS = 'bridge:getStatus'
+
+describe('useBridgeStatus (Task 21)', () => {
+ beforeEach(() => {
+ vi.mocked(transport.invoke).mockReset()
+ })
+
+ it('starts null, then returns the nominal status once the query resolves', async () => {
+ vi.mocked(transport.invoke).mockResolvedValue({
+ port: 16802,
+ degraded: false,
+ fixedPort: 'auto',
+ instanceId: 'abc-instance',
+ })
+
+ const { result } = renderHook(() => useBridgeStatus())
+ expect(result.current).toBeNull()
+
+ await waitFor(() =>
+ expect(result.current).toEqual({
+ port: 16802,
+ degraded: false,
+ fixedPort: 'auto',
+ instanceId: 'abc-instance',
+ })
+ )
+ expect(transport.invoke).toHaveBeenCalledWith(STATUS)
+ })
+
+ it('surfaces a degraded (ephemeral-port) bridge', async () => {
+ vi.mocked(transport.invoke).mockResolvedValue({
+ port: 54321,
+ degraded: true,
+ fixedPort: 'auto',
+ instanceId: 'abc-instance',
+ })
+
+ const { result } = renderHook(() => useBridgeStatus())
+ await waitFor(() => expect(result.current?.degraded).toBe(true))
+ expect(result.current?.port).toBe(54321)
+ })
+
+ it('reflects a pinned fixedPort from settings', async () => {
+ vi.mocked(transport.invoke).mockResolvedValue({
+ port: 18080,
+ degraded: false,
+ fixedPort: 18080,
+ instanceId: 'abc-instance',
+ })
+
+ const { result } = renderHook(() => useBridgeStatus())
+ await waitFor(() => expect(result.current?.fixedPort).toBe(18080))
+ })
+
+ it('resolves to null, not a thrown error, when the bridge is disabled (no handler registered)', async () => {
+ vi.mocked(transport.invoke).mockRejectedValue(
+ new Error('no handler registered for bridge:getStatus')
+ )
+
+ const { result } = renderHook(() => useBridgeStatus())
+ await waitFor(() => expect(transport.invoke).toHaveBeenCalledWith(STATUS))
+ expect(result.current).toBeNull()
+ })
+
+ it('degrades a shape that is not a real BridgeStatusInfo (e.g. a test stub answering every query with {}) to null instead of rendering garbage', async () => {
+ vi.mocked(transport.invoke).mockResolvedValue({})
+
+ const { result } = renderHook(() => useBridgeStatus())
+ await waitFor(() => expect(transport.invoke).toHaveBeenCalledWith(STATUS))
+ expect(result.current).toBeNull()
+ })
+})
diff --git a/src/renderer/routes/settings/cards/integration/use-bridge.ts b/src/renderer/routes/settings/cards/integration/use-bridge.ts
index de47a8a2..6e2492bc 100644
--- a/src/renderer/routes/settings/cards/integration/use-bridge.ts
+++ b/src/renderer/routes/settings/cards/integration/use-bridge.ts
@@ -4,6 +4,7 @@ import {
BridgeCommands,
BridgeEvents,
BridgeQueries,
+ type BridgeStatusInfo,
type ClientIdentity,
type PairedClientInfo,
type PairRequestPayload,
@@ -103,6 +104,62 @@ export function useTrustedExtensions() {
return { items, refresh, add, remove }
}
+/** Narrows an untrusted `GetStatus` reply to {@link BridgeStatusInfo} — a
+ * test double or an unrelated stub that resolves every query to `{}`
+ * (`integration-dialog.test.tsx`'s convention) must degrade to "no status"
+ * rather than render `status.port` as the literal string `"undefined"`. */
+function isBridgeStatusInfo(value: unknown): value is BridgeStatusInfo {
+ return (
+ typeof value === 'object' &&
+ value !== null &&
+ typeof (value as { degraded?: unknown }).degraded === 'boolean'
+ )
+}
+
+/**
+ * The bridge's current port policy (Task 21): the bound port, whether it
+ * degraded to an ephemeral port (§4), and the persisted `fixedPort`/
+ * `instanceId` settings that produced that outcome. `null` while loading AND
+ * when the bridge is disabled — `bridge:getStatus` has no handler installed
+ * in that state (`bootstrapBridge` returns early and never reaches
+ * `installIpcHandler`), so `transport.invoke` rejects; the settings UI has no
+ * separate "off" state to render here since the master switch (a form field,
+ * not this hook) already tells it that.
+ *
+ * Mount-fetch only, deliberately: no event announces a bridge port change
+ * (`SettingsChanged` never reaches the renderer for bridge settings — see
+ * `use-engine-display-status.ts`'s listener, which is dead for this purpose)
+ * and the settings dialog remounts every time it opens, which is enough to
+ * keep this current in the one place it's shown.
+ */
+export function useBridgeStatus(): BridgeStatusInfo | null {
+ const [status, setStatus] = useState<BridgeStatusInfo | null>(null)
+
+ useEffect(() => {
+ let cancelled = false
+ void (async () => {
+ let raw: unknown
+ try {
+ raw = await transport.invoke(
+ BridgeQueries.GetStatus as unknown as QueryChannel
+ )
+ } catch {
+ // Bridge disabled (no handler registered) or transport unavailable —
+ // either way there is no status to show.
+ if (!cancelled) setStatus(null)
+ return
+ }
+ if (cancelled) return
+ setStatus(isBridgeStatusInfo(raw) ? raw : null)
+ })()
+ return () => {
+ cancelled = true
+ }
+ }, [])
+
+ return status
+}
+
export function usePairRequest(
onRequest: (payload: PairRequestPayload) => void
) {
diff --git a/src/renderer/routes/settings/cards/integration/use-pair-request-prompts.test.tsx b/src/renderer/routes/settings/cards/integration/use-pair-request-prompts.test.tsx
index d65ecefa..73dfb62b 100644
--- a/src/renderer/routes/settings/cards/integration/use-pair-request-prompts.test.tsx
+++ b/src/renderer/routes/settings/cards/integration/use-pair-request-prompts.test.tsx
@@ -87,8 +87,8 @@ const EXT_A = {
kind: 'extension',
pairingNonce: 'n',
extensionId: 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
- extensionName: 'Motrix Helper',
- extensionVersion: '1.0',
+ identity: 'official',
+ code: '1234-5678',
browser: 'chromium',
}
@@ -184,8 +184,13 @@ describe('usePairRequestPrompts', () => {
expect(
findAddCall('chromium:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa:n')
).toMatchObject({
- title: 'Motrix Helper wants to connect to Motrix',
- description: 'From Chrome / Edge',
+ // MBP1 forbids displaying the self-reported extension name (§5), and
+ // the raw id is meaningless in a title — it is the description, shown
+ // once; the browser rides in the title instead of a "From …" row.
+ title: 'A Chrome / Edge extension wants to connect to Motrix',
+ // The full id, comparable against chrome://extensions; only the
+ // label is terse.
+ description: 'ID: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
})
})
@@ -398,20 +403,21 @@ describe('usePairRequestPrompts', () => {
)
})
- it('extension pair request resolves via pairingNonce/extensionId/browser with addToRegistry=false', async () => {
+ it('extension pair request dismisses via pairingNonce/extensionId/browser — no decision under MBP1', async () => {
render(<Host />)
findListener(BridgeEvents.PairRequested)(EXT_A)
const data = findAddCall('chromium:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa:n').data
- .pairRequest as { onAllow: () => void }
- data.onAllow()
+ .pairRequest as { onDeny: () => void }
+ // An extension prompt has no onAllow at all (see PairRequestToastData) —
+ // Deny is the only decision affordance, and it still sends no `decision`
+ // field: approval under MBP1 is proven by typing the code, not a click.
+ data.onDeny()
await waitFor(() =>
expect(invokeMock).toHaveBeenCalledWith('bridge:resolvePair', {
kind: 'extension',
pairingNonce: 'n',
extensionId: 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
browser: 'chromium',
- decision: 'allow',
- addToRegistry: false,
})
)
})
diff --git a/src/renderer/routes/settings/cards/integration/use-pair-request-prompts.tsx b/src/renderer/routes/settings/cards/integration/use-pair-request-prompts.tsx
index 94b87929..fafa14a3 100644
--- a/src/renderer/routes/settings/cards/integration/use-pair-request-prompts.tsx
+++ b/src/renderer/routes/settings/cards/integration/use-pair-request-prompts.tsx
@@ -1,4 +1,8 @@
-import { pairRequestCopy, toast } from '@renderer/components/ui/toast'
+import {
+ type PairRequestToastData,
+ pairRequestCopy,
+ toast,
+} from '@renderer/components/ui/toast'
import { transport } from '@renderer/lib/transport'
import {
BridgeEvents,
@@ -34,9 +38,9 @@ function toPairRequestPayload(
kind: 'extension',
pairingNonce: info.pairingNonce,
extensionId: info.extensionId,
- extensionName: info.extensionName,
- extensionVersion: info.extensionVersion,
browser: info.browser,
+ identity: info.identity,
+ code: info.code,
}
}
@@ -114,16 +118,16 @@ export function usePairRequestPrompts(): void {
payload.kind === 'cli'
? { kind: 'cli', requestId: payload.requestId, decision }
: {
+ // MBP1 has no allow/deny decision for an extension prompt —
+ // approval is proven by typing the code into the extension,
+ // not by a click here (ui/toast.tsx renders no Allow button
+ // for this kind at all). `decision` is accepted but unused:
+ // both the Deny button and the × close reach here only via
+ // settle('deny').
kind: 'extension',
pairingNonce: payload.pairingNonce,
extensionId: payload.extensionId,
browser: payload.browser,
- decision,
- // addToRegistry is intentionally false: the bridge already
- // requires the extension to be in the trusted registry
- // before this prompt can fire. Promoting is done
- // explicitly from the Integration settings card, not here.
- addToRegistry: false,
}
try {
await resolvePairWithFeedback(params, tRef.current)
@@ -146,19 +150,29 @@ export function usePairRequestPrompts(): void {
// frozen to whatever `t` was current when the prompt was created.
const { title, description } = pairRequestCopy(payload, tRef.current)
+ // Matches PairRequestToastData's per-kind shape: only `cli` gets an
+ // `onAllow` — an extension prompt has none to wire up. Annotated
+ // explicitly (rather than inlined in the `toast.add()` call below) to
+ // give the ternary's two closures a concrete expected type up front.
+ const pairRequestData: PairRequestToastData['pairRequest'] =
+ payload.kind === 'cli'
+ ? {
+ ...payload,
+ onAllow: () => void settle('allow'),
+ onDeny: () => void settle('deny'),
+ }
+ : {
+ ...payload,
+ onDeny: () => void settle('deny'),
+ }
+
toast.add({
id: key,
title,
description,
timeout: 0,
priority: 'high',
- data: {
- pairRequest: {
- ...payload,
- onAllow: () => void settle('allow'),
- onDeny: () => void settle('deny'),
- },
- },
+ data: { pairRequest: pairRequestData },
// Dismiss-as-deny: fires on the × close button, swipe-dismiss, and
// our own programmatic `toast.close(key)` alike — the `settled`
// guard above is what keeps the latter from double-sending.
diff --git a/src/server/bridge/bootstrap.ts b/src/server/bridge/bootstrap.ts
index 44133fcf..479f01db 100644
--- a/src/server/bridge/bootstrap.ts
+++ b/src/server/bridge/bootstrap.ts
@@ -1,4 +1,4 @@
-import { randomBytes } from 'node:crypto'
+import { randomBytes, randomUUID } from 'node:crypto'
import { join } from 'node:path'
import { BridgeEventBus } from '@core/bridge/bridge-event-bus'
import { BridgeOwnership } from '@core/bridge/bridge-ownership'
@@ -73,8 +73,8 @@ export interface ServerBridgeOptions {
* (read/write methods + the stats/task firehose) on a configurable host:port.
*
* Mirrors the desktop bootstrap minus every Electron piece: NO
- * PairingDialogController (headless — `onPairRequest` fails closed; web-UI
- * approval is Spec 7), NO NativeMessagingInstaller (no browser NM on a server),
+ * PairingDialogController (headless; web-UI approval is Spec 7),
+ * NO NativeMessagingInstaller (no browser NM on a server),
* NO ipcMain. The extension `download/submit` WS path is intentionally NOT wired
* here — the server's value is the agent HTTP MDXP surface.
*/
@@ -98,7 +98,16 @@ export async function bootstrapBridgeForServer(
// Agent /mdxp secret — self-minted, written to endpoint.json. Distinct from
// the operator control-plane token (Spec 9 / F1): the two planes no longer
// share a secret, so a leak/loss of one does not compromise the other.
+ // Per-start, deliberately NOT persisted like the desktop shell's
+ // `loadOrCreateBridgeIdentity`: extension pairing is headless-denied here
+ // (no NM tickets are ever minted against this token), so a restart
+ // invalidating every previously-issued Bearer token is a wanted property,
+ // not a gap.
const localToken = randomBytes(32).toString('base64url')
+ // One generation for the life of this process, named here (rather than
+ // inlined at the endpoint write below) so a future second write site can't
+ // accidentally mint a fresh one and make every NM ticket look stale.
+ const serverGeneration = randomUUID()
// Device-code pairing for cli/agent clients. The approval prompt is surfaced
// in the WEB UI: bridge events are re-emitted onto the core EventBus, which
@@ -138,10 +147,13 @@ export async function bootstrapBridgeForServer(
const server = new WebSocketBridgeServer({
pairing,
registry,
- // Extension pairing stays headless-denied — a previously-paired extension
- // can still reconnect via /v1 (findByToken). cli/agent clients pair through
- // the device-code flow below, approved in the web UI.
- onPairRequest: async () => ({ decision: 'deny', addToRegistry: false }),
+ // None of the six MBP1 options (instanceId, serverGeneration, appVersion,
+ // credentials, isOfficialId, queueMbp1Dialog) are wired for this runtime,
+ // so `/pair` and `/v1` both 404 (they resolve as a unit — see
+ // `resolveMbp1Wiring`): there is no extension WebSocket surface here at
+ // all, not even reconnect for a previously-paired extension. cli/agent
+ // clients pair through the device-code flow below instead, approved in
+ // the web UI.
motrixVersion: opts.motrixVersion,
runtime: 'server',
ffmpegAvailable: false,
@@ -211,7 +223,7 @@ export async function bootstrapBridgeForServer(
)
// A failed atomic replace may still have created temporary/discovery state.
ownership.own('endpoint', () => endpointWriter.clear())
- await endpointWriter.write(port, localToken)
+ await endpointWriter.write(port, localToken, serverGeneration)
return {
server,
diff --git a/src/shared/locales/en-US.json b/src/shared/locales/en-US.json
index 2e669921..d7a3f858 100644
--- a/src/shared/locales/en-US.json
+++ b/src/shared/locales/en-US.json
@@ -1466,10 +1466,18 @@
"addAction": "Add"
},
"pairToast": {
- "title": "{{name}} wants to connect to Motrix",
- "from": "From {{browser}}",
- "allow": "Allow",
- "deny": "Don’t allow"
+ "title": "A {{browser}} extension wants to connect to Motrix",
+ "extensionId": "ID: {{id}}",
+ "deny": "Don't allow",
+ "pairCode": "Pairing code",
+ "copyCode": "Copy pairing code",
+ "pairCodeHint": "Type this code in the extension",
+ "identityLabel": {
+ "official": "Official Motrix extension",
+ "attested": "Verified extension",
+ "unverified": "Unverified extension"
+ },
+ "identityUnverifiedWarning": "This extension's identity could not be verified. Only continue if you trust it."
},
"pairUnavailable": "This pairing request is no longer pending — retry pairing from the browser extension.",
"trustedExtensions": "Trusted extensions",
@@ -1484,6 +1492,10 @@
"builtin": "Built-in",
"userAdded": "Added",
"imported": "Imported"
+ },
+ "degradedPort": {
+ "title": "Bridge running on a fallback port",
+ "description": "Ports 16802–16806 were unavailable, so the bridge bound port {{port}} instead. Browser extensions won't find it by probing the standard range — pair using native messaging, or set a fixed port. The Motrix CLI and native host are unaffected."
}
},
"cli": {
diff --git a/src/shared/locales/zh-CN.json b/src/shared/locales/zh-CN.json
index a91168b3..7beafa91 100644
--- a/src/shared/locales/zh-CN.json
+++ b/src/shared/locales/zh-CN.json
@@ -1,7 +1,7 @@
{
"operatorUnlock": {
"title": "解锁 Motrix",
- "help": "此服务器需要 operator token。请在 host 上设置 MOTRIX_OPERATOR_TOKEN,或读取 <dataDir>/operator-token 中的 token,然后粘贴到下方。",
+ "help": "此服务器需要 operator token。请在 host 上设置 MOTRIX_OPERATOR_TOKEN,或读取 <dataDir>/operator-token 中的 token,然后粘贴到下方。",
"placeholder": "Operator token",
"error": "operator token 无效。请核对 host 上的 MOTRIX_OPERATOR_TOKEN 或 <dataDir>/operator-token 后重试。",
"submit": "解锁"
@@ -385,7 +385,7 @@
"expandHint": "扩大窗口后可配置仪表板布局。"
},
"errors": {
- "tileFailed": "{{tile}}: 渲染出错",
+ "tileFailed": "{{tile}}:渲染出错",
"retry": "重试"
},
"speedLimit": {
@@ -655,7 +655,7 @@
"empty": "暂无连接节点",
"col": {
"country": "地区",
- "endpoint": "IP : 端口",
+ "endpoint": "IP:端口",
"client": "客户端",
"down": "↓",
"up": "↑",
@@ -825,7 +825,7 @@
}
},
"detail": {
- "peers": "节点: {{count}}",
+ "peers": "节点:{{count}}",
"seeds": "Seeds: {{count}}"
},
"torrent": {
@@ -851,16 +851,16 @@
"reseedFailed": "下载已完成,但做种启动失败。",
"metaMissing": "Torrent 元数据丢失,无法开始做种。",
"startup": {
- "torrentMetaMissing": "无法恢复此 BT 任务:.torrent 元数据文件丢失。请删除任务并重新添加。",
- "reAddFailed": "无法恢复此任务:引擎拒绝重新添加请求。请删除任务并手动重新添加。",
- "dirtyMetadata": "无法恢复此任务:缺少恢复所需的标识信息。",
+ "torrentMetaMissing": "无法恢复此 BT 任务:.torrent 元数据文件丢失。请删除任务并重新添加。",
+ "reAddFailed": "无法恢复此任务:引擎拒绝重新添加请求。请删除任务并手动重新添加。",
+ "dirtyMetadata": "无法恢复此任务:缺少恢复所需的标识信息。",
"resumeCheckpointMissing": "已保留部分文件,但续传检查点已丢失。请安全地重新下载或重新添加任务。",
"resumeCredentialsRequired": "已保留部分文件,但此下载需要无法自动重放的请求凭据。",
"resumePathInvalid": "由于保存的输出路径无效,已保留部分文件且未自动恢复。",
"resumeSourceChanged": "远端文件在下载开始后发生变化,已保留部分文件且未继续写入。",
"resumeRangeUnsupported": "服务器不支持安全的范围续传,已保留部分文件且未继续写入。",
"resumeValidationFailed": "Motrix 无法确认远端文件是否未发生变化,已保留部分文件且未继续写入。",
- "mediaInterrupted": "媒体下载因应用重启而中断,无法恢复。请重新添加以重试。"
+ "mediaInterrupted": "媒体下载因应用重启而中断,无法恢复。请重新添加以重试。"
}
},
"error": {
@@ -1379,7 +1379,7 @@
"browse": "浏览…",
"add": "添加",
"remove": "移除",
- "preset": "快捷:",
+ "preset": "快捷:",
"noChange": "无可保存的更改",
"setAsDefault": "设为默认",
"openHelp": "查看帮助",
@@ -1453,10 +1453,18 @@
"addAction": "添加"
},
"pairToast": {
- "title": "{{name}} 想连接 Motrix",
- "from": "来自 {{browser}}",
- "allow": "允许",
- "deny": "拒绝"
+ "title": "{{browser}} 扩展请求连接 Motrix",
+ "extensionId": "ID:{{id}}",
+ "deny": "拒绝",
+ "pairCode": "配对码",
+ "copyCode": "复制配对码",
+ "pairCodeHint": "在扩展中输入此配对码",
+ "identityLabel": {
+ "official": "Motrix 官方扩展",
+ "attested": "已验证的扩展",
+ "unverified": "未验证的扩展"
+ },
+ "identityUnverifiedWarning": "无法验证此扩展的身份,请确认信任后再继续。"
},
"pairUnavailable": "该配对请求已失效——请在浏览器扩展中重新发起配对。",
"trustedExtensions": "受信任的扩展",
@@ -1471,6 +1479,10 @@
"builtin": "内置",
"userAdded": "已添加",
"imported": "已导入"
+ },
+ "degradedPort": {
+ "title": "Bridge 正在使用备用端口运行",
+ "description": "端口 16802–16806 均不可用,Bridge 改用端口 {{port}}。浏览器扩展按标准端口范围探测将无法自动发现它——请通过 Native Messaging 配对,或设置固定端口。Motrix CLI 与 Native Host 不受影响。"
}
},
"cli": {
@@ -1775,11 +1787,11 @@
"localPrepareFailed": "无法准备此插件文件:{{detail}}",
"dropHint": "将 .moext 文件拖至此处以检查该插件",
"dragDisabledHint": "当前环境不支持拖拽。请使用 GitHub 地址或链接。",
- "warning": "安装前请注意:只有信任作者并预期它会使用上述权限时,才继续安装。"
+ "warning": "安装前请注意:只有信任作者并预期它会使用上述权限时,才继续安装。"
},
"consent": {
- "installTitle": "安装 {{name}} {{version}}?",
- "upgradeTitle": "升级 {{name}} 到 {{version}}?",
+ "installTitle": "安装 {{name}} {{version}}?",
+ "upgradeTitle": "升级 {{name}} 到 {{version}}?",
"notVerified": "此插件未经验证。仅在你信任来源时安装。",
"confirm": "同意并安装",
"permissions": "所需权限",
@@ -1787,7 +1799,7 @@
"hostPermissions": "主机访问范围",
"invokesCommands": "调用其他插件的命令",
"calleeMissing": "未安装",
- "source": "来源:{{type}} · {{url}}",
+ "source": "来源:{{type}} · {{url}}",
"broadAccess": {
"title": "广泛主机访问",
"body": "此插件可读取并修改任意 URL 的下载。仅在你信任来源时安装。",
@@ -1816,7 +1828,7 @@
"author": "作者",
"homepage": "主页",
"uninstall": "卸载",
- "uninstallConfirm": "卸载此插件?其数据会被一并清除。",
+ "uninstallConfirm": "卸载此插件?其数据会被一并清除。",
"enabled": "已启用",
"disabled": "已禁用",
"access": "权限",
@@ -1845,7 +1857,7 @@
"viewIssue": "查看错误",
"removeTitle": "移除插件",
"removeDesc": "移除该插件会同时删除它在 Motrix 中存储的数据。",
- "uninstallConfirmTitle": "确认卸载 {{name}}?",
+ "uninstallConfirmTitle": "确认卸载 {{name}}?",
"uninstallConfirmDesc": "这将从 Motrix 中移除该插件及其存储的设置。"
},
"permissions": {
@@ -1911,8 +1923,8 @@
},
"card": {
"advancedDetails": "高级详情",
- "commandsInvoked": "发起的命令调用:{{count}}",
- "commandsServing": "接受的命令调用:{{count}}",
+ "commandsInvoked": "发起的命令调用:{{count}}",
+ "commandsServing": "接受的命令调用:{{count}}",
"primaryAction": {
"settings": "设置",
"open": "打开",
@@ -2197,7 +2209,7 @@
},
"dnsFallback": {
"title": "{{name}} 已改用系统 DNS 重试",
- "body": "引擎无法联系任何 DNS 服务器,本次会话已切换到系统解析器。"
+ "body": "引擎无法联系任何 DNS 服务器,本次会话已切换到系统解析器。"
},
"center": {
"title": "通知",
diff --git a/src/shared/locales/zh-TW.json b/src/shared/locales/zh-TW.json
index b0c3094c..594890d3 100644
--- a/src/shared/locales/zh-TW.json
+++ b/src/shared/locales/zh-TW.json
@@ -7,7 +7,7 @@
"submit": "解鎖"
},
"operatorAdmin": {
- "help": "用法:\n motrix-admin pairing pending [--json]\n motrix-admin pairing approve <user-code> [--json]\n motrix-admin pairing deny <user-code> [--json]\n\n此命令只會透過容器 loopback 與正在執行的 Motrix 伺服器通訊。",
+ "help": "用法:\n motrix-admin pairing pending [--json]\n motrix-admin pairing approve <user-code> [--json]\n motrix-admin pairing deny <user-code> [--json]\n\n此命令只會透過容器 loopback 與正在執行的 Motrix 伺服器通訊。",
"errorPrefix": "motrix-admin: {{message}}",
"usageHint": "執行「motrix-admin --help」查看用法。",
"pending": {
@@ -62,15 +62,15 @@
"cancel": "取消",
"save": "儲存",
"close": "關閉",
- "loading": "載入中...",
- "name": "名稱:",
+ "loading": "載入中…",
+ "name": "名稱:",
"error": "錯誤",
"remove": "移除",
"collapse": "收合",
"apply": "套用",
"confirm": "確認",
"status": {
- "finalizing": "正在完成..."
+ "finalizing": "正在完成…"
},
"reset": "重設",
"showPassword": "顯示密碼",
@@ -79,7 +79,7 @@
"quit": {
"confirm": {
"message_other": "仍有 {{count}} 個下載正在進行。",
- "detail": "現在結束會暫停下載。確定要結束嗎?",
+ "detail": "現在結束會暫停下載。確定要結束嗎?",
"quitButton": "結束",
"dontAskAgain": "不要再詢問"
}
@@ -120,8 +120,8 @@
"startFailed": "aria2 引擎無法啟動",
"state": {
"ready": "就緒",
- "starting": "啟動中...",
- "reconnecting": "重新連線中...",
+ "starting": "啟動中…",
+ "reconnecting": "重新連線中…",
"failed": "失敗",
"disconnected": "已中斷連線",
"stopped": "已停止"
@@ -134,11 +134,11 @@
"title": "引擎診斷",
"description": "檢查引擎、找出使用 Motrix RPC 連接埠的處理程序,並安全復原。",
"open": "診斷",
- "checking": "正在執行引擎檢查...",
+ "checking": "正在執行引擎檢查…",
"runAgain": "再次執行",
"loadFailed": "無法執行引擎診斷。",
"currentStatus": "目前狀態",
- "lastChecked": "檢查時間: {{time}}",
+ "lastChecked": "檢查時間:{{time}}",
"checks": {
"binary": "內建 aria2",
"features": "引擎功能",
@@ -200,16 +200,16 @@
"blocked": "預設連接埠 {{port}} 正由 PID {{pid}} ({{name}}) 使用,但 Motrix 無法確認擁有權,不會終止該處理程序。",
"unidentified": "無法辨識使用預設連接埠 {{port}} 的處理程序。Motrix 會繼續使用目前的連接埠。",
"restore": "還原 Motrix 預設連接埠 {{port}}",
- "restoring": "正在還原 Motrix 預設連接埠 {{port}}...",
+ "restoring": "正在還原 Motrix 預設連接埠 {{port}}…",
"restoredDefault": "已還原 Motrix 預設 RPC 連接埠 {{port}}。",
"confirm": {
- "title": "要停止遺留的處理程序並還原連接埠 {{port}} 嗎?",
+ "title": "要停止遺留的處理程序並還原連接埠 {{port}} 嗎?",
"description": "已驗證 PID {{pid}} 是遺留的 Motrix aria2 處理程序。將停止此處理程序、儲存預設連接埠 {{port}},然後重新啟動 aria2。",
"action": "停止並還原連接埠 {{port}}"
}
},
"confirmForce": {
- "title": "要強制停止遺留的 aria2 處理程序嗎?",
+ "title": "要強制停止遺留的 aria2 處理程序嗎?",
"description": "PID {{pid}} 符合 Motrix 的內建執行檔、私有 RPC 密鑰與資料路徑。系統會立即將其終止,然後在 Motrix RPC 連接埠重新啟動 aria2。",
"action": "強制停止並復原"
}
@@ -255,7 +255,7 @@
"retry": "重試",
"updated": "更新於 {{time}}",
"outOfDate": "資料可能不是最新的",
- "totalLabel": "{{scope}}傳輸總量: {{value}}"
+ "totalLabel": "{{scope}}傳輸總量:{{value}}"
},
"activity": {
"title": "活動",
@@ -329,8 +329,8 @@
"saved": "已儲存 {{percent}}%",
"offline": "離線 · 上次已知的進度",
"completed": "完成於 {{time}}",
- "failed": "失敗: {{reason}}",
- "technicalDetail": "技術詳細資料: {{detail}}"
+ "failed": "失敗:{{reason}}",
+ "technicalDetail": "技術詳細資料:{{detail}}"
},
"progressLabel": "{{name}} 的進度"
},
@@ -345,7 +345,7 @@
"resizeTile": "調整磚塊大小",
"sizeGroup": "磚塊大小",
"size": "{{width}} × {{height}}",
- "currentSize": "目前大小: {{width}} × {{height}}",
+ "currentSize": "目前大小:{{width}} × {{height}}",
"invalidCapacity": "沒有足夠空間容納此大小",
"sizeLabels": {
"compact": "精簡",
@@ -385,7 +385,7 @@
"expandHint": "請放大視窗以設定儀表板版面。"
},
"errors": {
- "tileFailed": "{{tile}}: 轉譯失敗",
+ "tileFailed": "{{tile}}:轉譯失敗",
"retry": "重試"
},
"speedLimit": {
@@ -473,7 +473,7 @@
"effective": "有效",
"blacklist": "封鎖清單"
},
- "searchPlaceholder": "依 URL 篩選...",
+ "searchPlaceholder": "依 URL 篩選…",
"syncNow": "立即同步"
},
"downloads": {
@@ -567,8 +567,8 @@
},
"download": "下載",
"upload": "上傳",
- "loading": "正在載入活動資料...",
- "collecting": "正在收集傳輸資料...",
+ "loading": "正在載入活動資料…",
+ "collecting": "正在收集傳輸資料…",
"noSessionHistory": "此應用程式工作階段尚無傳輸記錄。",
"lifetimeEmpty": "尚無法取得累計歷程記錄。",
"noTraffic": "目前沒有網路流量。",
@@ -589,11 +589,11 @@
},
"timeline": {
"title": "任務歷程記錄",
- "current": "目前: {{status}}",
+ "current": "目前:{{status}}",
"cluster_other": "+{{count}} 個事件",
"repeated": "{{label}} ×{{count}}",
"truncated_other": "較早歷程記錄已截斷 {{count}} 個事件",
- "truncatedAt": "最早截斷時間: {{time}}",
+ "truncatedAt": "最早截斷時間:{{time}}",
"timeRange": "{{start}}–{{end}}",
"detailTitle": "{{label}} 詳細資料",
"destination": "{{event}} {{status}}",
@@ -716,7 +716,7 @@
"retry": "重試",
"openFolder": "開啟資料夾",
"copyUrl": "複製 URL",
- "copyUrlFailed": "複製失敗: 無法載入任務的連結詳細資料。請再試一次。",
+ "copyUrlFailed": "複製失敗:無法載入任務的連結詳細資料。請再試一次。",
"selectFiles": "選擇檔案",
"remove": "移除",
"removeConfirmWithFiles": "同時從磁碟刪除已下載的檔案",
@@ -725,7 +725,7 @@
"singleTaskFailed": "{{name}}: {{reason}}",
"stopSeeding": "停止做種",
"reseed": "重新做種",
- "retryWithDialog": "以選項重試... (Alt + 按一下)",
+ "retryWithDialog": "以選項重試… (Alt + 按一下)",
"finalizingTooltip": "任務正在完成,請稍候",
"pauseTooltipBatch": "暫停已選取的 {{total}} 項中之 {{n}} 項",
"resumeTooltipBatch": "繼續已選取的 {{total}} 項中之 {{n}} 項",
@@ -735,13 +735,13 @@
"removeTooltipBatch": "移除已選取的 {{total}} 項中之 {{n}} 項",
"removeWithFilesShift": "按住 Shift 可同時刪除檔案",
"removeFilesEstimate": "將從磁碟刪除 {{bytes}}",
- "removeSingleTitle": "要移除「{{name}}」嗎?",
- "removeAll_paused_Title": "要移除 {{count}} 個已暫停的任務嗎?",
- "removeAll_seeding_Title": "要移除 {{count}} 個做種中的任務嗎?",
- "removeAll_completed_Title": "要移除 {{count}} 個已完成的任務嗎?",
- "removeAll_error_Title": "要移除 {{count}} 個失敗的任務嗎?",
- "removeAll_downloading_Title": "要移除 {{count}} 個進行中的任務嗎?",
- "removeMixedTitle": "要移除 {{count}} 個任務嗎?"
+ "removeSingleTitle": "要移除「{{name}}」嗎?",
+ "removeAll_paused_Title": "要移除 {{count}} 個已暫停的任務嗎?",
+ "removeAll_seeding_Title": "要移除 {{count}} 個做種中的任務嗎?",
+ "removeAll_completed_Title": "要移除 {{count}} 個已完成的任務嗎?",
+ "removeAll_error_Title": "要移除 {{count}} 個失敗的任務嗎?",
+ "removeAll_downloading_Title": "要移除 {{count}} 個進行中的任務嗎?",
+ "removeMixedTitle": "要移除 {{count}} 個任務嗎?"
},
"titleCount": "顯示 {{shown}} 項 · 共 {{total}} 項",
"type": {
@@ -759,7 +759,7 @@
"emptyHint": "請清除類型範圍或改用其他關鍵字"
},
"stale": {
- "banner": "任務清單可能不是最新的,正在重新連線..."
+ "banner": "任務清單可能不是最新的,正在重新連線…"
}
}
},
@@ -768,7 +768,7 @@
"title": "新增任務",
"links": "連結",
"torrent": "Torrent",
- "urlPlaceholder": "輸入 URL、Magnet 連結...",
+ "urlPlaceholder": "輸入 URL、Magnet 連結…",
"dropTorrent": "將 .torrent 檔案拖放到這裡,或按一下以選擇檔案",
"clearSelection": "清除選取項目",
"createFailed": "無法建立下載任務。",
@@ -794,7 +794,7 @@
"pickPathTitle": "選擇儲存目錄",
"pickPathCustom": "自訂路徑",
"saveTo": "儲存至",
- "saveDirEmpty": "選擇資料夾...",
+ "saveDirEmpty": "選擇資料夾…",
"changeSaveDir": "變更儲存目錄",
"created": "已新增任務",
"createdCopy": "已新增獨立副本",
@@ -808,7 +808,7 @@
"showExisting": "顯示現有任務",
"createCopy": "建立獨立副本"
},
- "adding": "正在新增...",
+ "adding": "正在新增…",
"interpretedMagnet": "已偵測到 Magnet 連結",
"interpretedCurl": "已解析 cURL 命令",
"filterBy": {
@@ -825,8 +825,8 @@
}
},
"detail": {
- "peers": "對等節點: {{count}}",
- "seeds": "種子: {{count}}"
+ "peers": "對等節點:{{count}}",
+ "seeds": "種子:{{count}}"
},
"torrent": {
"fileSelected_other": "已選取 {{count}} 個檔案",
@@ -837,7 +837,7 @@
"doc": "文件"
},
"remove": {
- "title": "移除任務?",
+ "title": "移除任務?",
"description": "「{{name}}」將從下載清單中移除。",
"deleteFilesLabel": "刪除已下載的檔案",
"confirm": "移除",
@@ -851,9 +851,9 @@
"reseedFailed": "下載已完成,但無法開始做種。",
"metaMissing": "缺少 Torrent 中繼資料,無法開始做種。",
"startup": {
- "torrentMetaMissing": "無法復原此 BitTorrent 任務: 缺少 .torrent 中繼資料檔案。請移除後重新新增任務。",
- "reAddFailed": "無法復原此任務: 引擎拒絕重新新增要求。請移除後手動重新新增。",
- "dirtyMetadata": "無法復原此任務: 缺少繼續下載所需的識別資訊。",
+ "torrentMetaMissing": "無法復原此 BitTorrent 任務:缺少 .torrent 中繼資料檔案。請移除後重新新增任務。",
+ "reAddFailed": "無法復原此任務:引擎拒絕重新新增要求。請移除後手動重新新增。",
+ "dirtyMetadata": "無法復原此任務:缺少繼續下載所需的識別資訊。",
"resumeCheckpointMissing": "已保留部分檔案,但續傳檢查點已遺失。請安全地重新下載或重新新增任務。",
"resumeCredentialsRequired": "已保留部分檔案,但此下載需要無法自動重播的請求憑證。",
"resumePathInvalid": "由於儲存的輸出路徑無效,已保留部分檔案且未自動復原。",
@@ -867,9 +867,9 @@
"detail": {
"recoveryOutputConflict": "暫存檔與最終檔案皆存在,兩者均已保留以供手動檢查",
"filesMissing": "應用程式重新啟動後找不到檔案",
- "renameFileFailed": "無法重新命名檔案: {{cause}}",
- "renameDirFailed": "無法重新命名目錄: {{cause}}",
- "pluginChainAborted": "外掛程式鏈已中止: {{cause}}",
+ "renameFileFailed": "無法重新命名檔案:{{cause}}",
+ "renameDirFailed": "無法重新命名目錄:{{cause}}",
+ "pluginChainAborted": "外掛程式鏈已中止:{{cause}}",
"magnetCleanupQuarantined": "Magnet 中繼資料清理作業已隔離",
"muxFailed": "無法合併已下載的媒體"
},
@@ -986,9 +986,9 @@
"enableDesc": "將工作階段、進度與歷程記錄儲存在單一 SQLite 資料庫。停用後會還原為上游 aria2 行為 (文字工作階段與 .aria2 側邊檔案)。",
"dbPath": "資料庫路徑",
"dbPathDesc": "留空可使用其他引擎設定檔旁的預設位置。",
- "dbPathPlaceholder": "預設值: <config>/aria2.db",
+ "dbPathPlaceholder": "預設值:<config>/aria2.db",
"historyLimit": "歷程記錄保留數量",
- "historyLimitDesc": "下載歷程記錄保留的最大列數。-1 = 無限制; 0 = 僅記憶體 (不儲存至資料庫)。"
+ "historyLimitDesc": "下載歷程記錄保留的最大列數。-1 = 無限制;0 = 僅記憶體 (不儲存至資料庫)。"
}
},
"about": {
@@ -1005,16 +1005,16 @@
"unsupported": "此 Motrix 建置版本不支援自動更新。請從官方網站下載最新版本。",
"check": "檢查更新",
"checkAction": "檢查",
- "checking": "檢查中...",
- "checkingTitle": "正在檢查更新...",
- "checkingDescription": "正在連線至 Motrix 更新服務...",
+ "checking": "檢查中…",
+ "checkingTitle": "正在檢查更新…",
+ "checkingDescription": "正在連線至 Motrix 更新服務…",
"upToDateTitle": "Motrix 已是最新版本",
"upToDate": "版本 {{version}} 是目前可取得的最新版本。",
"available": "Motrix {{version}} 可供更新。",
"availableTitle": "Motrix {{version}} 可供更新",
"availableDescription": "立即下載,並選擇要在何時重新啟動及安裝。",
"download": "下載更新",
- "downloading": "下載中...",
+ "downloading": "下載中…",
"downloadingTitle": "正在下載 Motrix {{version}}",
"downloadingDescription": "您可以關閉此視窗,下載會在背景繼續。",
"downloadedTitle": "更新已可安裝",
@@ -1025,7 +1025,7 @@
"cancelledDescription": "準備好後再試一次下載。",
"errorTitle": "無法更新 Motrix",
"errorDescription": "請檢查連線後再試一次。",
- "error": "更新失敗: {{message}}",
+ "error": "更新失敗:{{message}}",
"retry": "重試",
"automaticChecks": "自動檢查",
"automaticChecksDescription": "Motrix 開啟時",
@@ -1084,7 +1084,7 @@
"lastUpdated": "上次更新",
"neverUpdated": "從未",
"updateNow": "立即更新",
- "updating": "更新中...",
+ "updating": "更新中…",
"source": "來源",
"sourceDesc": "選擇下載 GeoLite2-Country.mmdb 檔案的來源。",
"source.loyalsoldier": "Loyalsoldier (社群)",
@@ -1098,7 +1098,7 @@
"autoUpdateDesc": "約每週檢查一次是否有新的資料庫。",
"status.loaded": "已載入",
"status.notDownloaded": "尚未下載資料庫",
- "status.downloading": "下載中...",
+ "status.downloading": "下載中…",
"status.error": "更新失敗"
},
"listen": {
@@ -1289,13 +1289,13 @@
"estimateSuccess": "已依近期速度填入連線頻寬。",
"estimateError": "無法讀取近期速度歷程記錄。請手動輸入頻寬。",
"headroomPercent": "保留給其他應用程式",
- "headroomPercentDesc": "目前保留 {{reserved}}%; Motrix 最多可使用 {{motrix}}%。",
+ "headroomPercentDesc": "目前保留 {{reserved}}%;Motrix 最多可使用 {{motrix}}%。",
"effect": {
"title": "目前效果",
- "standard": "使用標準限制: 下載 {{download}}、上傳 {{upload}}。",
- "lowSpeed": "目前使用低速限制: 下載 {{download}}、上傳 {{upload}}。",
+ "standard": "使用標準限制:下載 {{download}}、上傳 {{upload}}。",
+ "lowSpeed": "目前使用低速限制:下載 {{download}}、上傳 {{upload}}。",
"noAutoRules": "未啟用自動規則。目前行為如同標準模式。",
- "standardValues": "標準限制: 下載 {{download}}、上傳 {{upload}}。",
+ "standardValues": "標準限制:下載 {{download}}、上傳 {{upload}}。",
"scheduleRule": "於 {{from}} 至 {{to}}{{nextDay}} 使用低速限制",
"nextDay": "(隔日)",
"adaptiveRule": "為其他應用程式保留 {{reserved}}% 的頻寬",
@@ -1342,7 +1342,7 @@
"scopeUpdateTrackers": "Tracker 同步",
"scopeUpdateTrackersDesc": "僅同步 Tracker 清單,不會代理 BT 流量。",
"importFromSystem": "從系統匯入",
- "importedToast": "已匯入系統 Proxy: {{host}}:{{port}}",
+ "importedToast": "已匯入系統 Proxy:{{host}}:{{port}}",
"noSystemProxy": "未設定系統 Proxy。"
},
"nat": {
@@ -1376,10 +1376,10 @@
}
},
"common": {
- "browse": "瀏覽...",
+ "browse": "瀏覽…",
"add": "新增",
"remove": "移除",
- "preset": "快速設定:",
+ "preset": "快速設定:",
"noChange": "沒有變更可儲存",
"setAsDefault": "設為預設值",
"openHelp": "開啟說明",
@@ -1396,7 +1396,7 @@
"protocolMagnetDesc": "從瀏覽器在 Motrix 開啟 Magnet 連結。",
"torrentAssociation": "使用 Motrix 開啟 .torrent 檔案",
"torrentAssociationDesc": "設定後,按兩下 .torrent 檔案即可在 Motrix 開啟。",
- "torrentAssociationMacDesc": "在 Finder 中,以右鍵按一下任一 .torrent 檔案 → 取得資訊 → 打開檔案的應用程式 → 選擇 Motrix → 全部更改...",
+ "torrentAssociationMacDesc": "在 Finder 中,以右鍵按一下任一 .torrent 檔案 → 取得資訊 → 打開檔案的應用程式 → 選擇 Motrix → 全部更改…",
"defaultAssociationsWindows": "種子檔案和 Magnet 連結的預設應用程式",
"defaultAssociationsWindowsDesc": "在 Windows 預設應用程式中為 .torrent 檔案和 Magnet 連結選擇 Motrix。使用 Motrix 安裝程式安裝後,Motrix 才會顯示在清單中。",
"torrentFiles": ".torrent 檔案",
@@ -1453,10 +1453,18 @@
"addAction": "新增"
},
"pairToast": {
- "title": "{{name}} 想要連線至 Motrix",
- "from": "來自 {{browser}}",
- "allow": "允許",
- "deny": "不允許"
+ "title": "{{browser}} 擴充功能請求連線至 Motrix",
+ "extensionId": "ID:{{id}}",
+ "deny": "不允許",
+ "pairCode": "配對碼",
+ "copyCode": "複製配對碼",
+ "pairCodeHint": "請在擴充功能中輸入此配對碼",
+ "identityLabel": {
+ "official": "Motrix 官方擴充功能",
+ "attested": "已驗證的擴充功能",
+ "unverified": "未驗證的擴充功能"
+ },
+ "identityUnverifiedWarning": "無法驗證此擴充功能的身分,請確認信任後再繼續。"
},
"pairUnavailable": "此配對要求已不再待處理,請從瀏覽器擴充功能重新配對。",
"trustedExtensions": "受信任的擴充功能",
@@ -1471,6 +1479,10 @@
"builtin": "內建",
"userAdded": "已新增",
"imported": "已匯入"
+ },
+ "degradedPort": {
+ "title": "Bridge 正在使用備用連接埠運行",
+ "description": "連接埠 16802–16806 皆無法使用,Bridge 改用連接埠 {{port}}。瀏覽器擴充功能依標準連接埠範圍偵測將無法自動找到它——請透過 Native Messaging 配對,或設定固定連接埠。Motrix CLI 與 Native Host 不受影響。"
}
},
"cli": {
@@ -1499,9 +1511,9 @@
"error": "失敗"
},
"action": {
- "checking": "檢查中...",
+ "checking": "檢查中…",
"install": "安裝",
- "installing": "安裝中...",
+ "installing": "安裝中…",
"checkAgain": "再次檢查"
},
"metadata": {
@@ -1541,7 +1553,7 @@
},
"pairToast": {
"title": "{{name}} 想與 Motrix 配對",
- "code": "驗證碼: {{code}}",
+ "code": "驗證碼:{{code}}",
"allow": "允許",
"deny": "不允許"
},
@@ -1560,7 +1572,7 @@
"notDetected": "未偵測到 FFmpeg",
"refresh": "重新整理",
"binaryPath": "自訂 FFmpeg 路徑",
- "browse": "瀏覽...",
+ "browse": "瀏覽…",
"download": {
"action": "下載 FFmpeg"
},
@@ -1601,7 +1613,7 @@
"opTimeoutSec": "FFmpeg 逾時 (秒)",
"opTimeoutSecDesc": "單一 FFmpeg 作業的最長時間。預設為 1800 秒 (30 分鐘),上限為 3600。",
"cleanupStaging": "清理暫存檔案",
- "cleanupConfirm": "要移除所有 FFmpeg 暫存目錄嗎?",
+ "cleanupConfirm": "要移除所有 FFmpeg 暫存目錄嗎?",
"restartHint": "已儲存。請重新啟動 Motrix,讓使用中的外掛程式偵測變更。",
"restartNow": "立即重新啟動",
"validation": {
@@ -1645,8 +1657,8 @@
"app": {
"title": "Motrix",
"about": "關於 Motrix",
- "preferences": "偏好設定...",
- "checkForUpdates": "檢查更新...",
+ "preferences": "偏好設定…",
+ "checkForUpdates": "檢查更新…",
"show": "顯示 Motrix",
"hide": "隱藏 Motrix",
"hideOthers": "隱藏其他項目",
@@ -1658,9 +1670,9 @@
},
"task": {
"title": "任務",
- "newTask": "新增任務...",
- "newBtTask": "新增 BitTorrent 任務...",
- "openFile": "開啟 Torrent 檔案...",
+ "newTask": "新增任務…",
+ "newBtTask": "新增 BitTorrent 任務…",
+ "openFile": "開啟 Torrent 檔案…",
"taskList": "任務清單",
"pauseTask": "暫停",
"resumeTask": "繼續",
@@ -1735,7 +1747,7 @@
"cdnBadge": "CDN"
},
"sync": {
- "syncing": "同步中..."
+ "syncing": "同步中…"
}
},
"plugin": {
@@ -1764,14 +1776,14 @@
"unsupportedEncryption": "無法下載受 DRM 保護的內容",
"authExpired": "工作階段已過期,請在瀏覽器重新整理頁面後再試一次",
"notFound": "找不到資源 (404)",
- "transientFailure": "重試後仍下載失敗: {{detail}}",
+ "transientFailure": "重試後仍下載失敗:{{detail}}",
"rangeNotSatisfiable": "無法繼續下載,請重新開始下載",
"diskFull": "磁碟空間已滿",
- "diskWriteFailed": "無法寫入磁碟: {{detail}}",
+ "diskWriteFailed": "無法寫入磁碟:{{detail}}",
"muxFailed": "合併音訊和影片時 ffmpeg 失敗",
"muxAborted": "合併已取消",
"cancelled": "已取消",
- "internalError": "內部錯誤: {{detail}}"
+ "internalError": "內部錯誤:{{detail}}"
}
}
},
@@ -1818,7 +1830,7 @@
},
"dnsFallback": {
"title": "{{name}} 已改用系統 DNS 重試",
- "body": "引擎無法聯繫任何 DNS 伺服器,本次工作階段已切換至系統解析器。"
+ "body": "引擎無法聯繫任何 DNS 伺服器,本次工作階段已切換至系統解析器。"
},
"center": {
"title": "通知",
@@ -1865,14 +1877,14 @@
"install": "安裝外掛程式",
"pickLocal": "選擇本機 .moext 檔案",
"localUnavailable": "此主機無法從本機檔案安裝。",
- "localPrepareFailed": "無法準備此外掛程式檔案: {{detail}}",
+ "localPrepareFailed": "無法準備此外掛程式檔案:{{detail}}",
"dropHint": "將 .moext 檔案拖放到這裡以檢查此外掛程式",
"dragDisabledHint": "此環境不支援拖放。請使用 GitHub 位址或 URL。",
- "warning": "安裝前請確認: 只有在信任作者,且預期其使用上列權限時才繼續。"
+ "warning": "安裝前請確認:只有在信任作者,且預期其使用上列權限時才繼續。"
},
"consent": {
- "installTitle": "要安裝 {{name}} {{version}} 嗎?",
- "upgradeTitle": "要將 {{name}} 升級至 {{version}} 嗎?",
+ "installTitle": "要安裝 {{name}} {{version}} 嗎?",
+ "upgradeTitle": "要將 {{name}} 升級至 {{version}} 嗎?",
"notVerified": "此外掛程式未經驗證。請只安裝來自信任來源的外掛程式。",
"confirm": "允許並安裝",
"permissions": "必要權限",
@@ -1880,7 +1892,7 @@
"hostPermissions": "主機存取權",
"invokesCommands": "呼叫其他外掛程式的命令",
"calleeMissing": "未安裝",
- "source": "來源: {{type}} · {{url}}",
+ "source": "來源:{{type}} · {{url}}",
"broadAccess": {
"title": "廣泛的主機存取權",
"body": "此外掛程式可讀取並修改任何 URL 的下載項目。只有在信任來源時才安裝。",
@@ -1904,12 +1916,12 @@
"settings": "設定",
"logs": "日誌",
"about": "關於",
- "loading": "載入中...",
+ "loading": "載入中…",
"back": "全部外掛程式",
"author": "作者",
"homepage": "首頁",
"uninstall": "解除安裝",
- "uninstallConfirm": "要解除安裝此外掛程式嗎?其資料將一併移除。",
+ "uninstallConfirm": "要解除安裝此外掛程式嗎?其資料將一併移除。",
"enabled": "已啟用",
"disabled": "已停用",
"access": "存取權",
@@ -1938,7 +1950,7 @@
"viewIssue": "檢視問題",
"removeTitle": "移除外掛程式",
"removeDesc": "移除此外掛程式也會刪除其儲存在 Motrix 的資料。",
- "uninstallConfirmTitle": "要解除安裝 {{name}} 嗎?",
+ "uninstallConfirmTitle": "要解除安裝 {{name}} 嗎?",
"uninstallConfirmDesc": "這將從 Motrix 移除外掛程式及其已儲存的設定。"
},
"permissions": {
@@ -1972,7 +1984,7 @@
"registry": {
"availableTitle": "可用的外掛程式",
"featured": "精選",
- "byAuthor": "作者: {{name}}",
+ "byAuthor": "作者:{{name}}",
"requires": "需要 Motrix {{range}}",
"notInstalled": "未安裝",
"notFound": "在 registry 中找不到外掛程式「{{id}}」",
@@ -1988,7 +2000,7 @@
"updateTo": "更新至 v{{version}}",
"refresh": "檢查更新",
"builtinUpdateTitle": "更新內建外掛程式",
- "builtinConsentLead": "此更新要求新的存取權:",
+ "builtinConsentLead": "此更新要求新的存取權:",
"revertToBundled": "還原為內建版本",
"restartRequired": "更新已安裝。請重新啟動 Motrix 以完成套用。",
"updateInstalled": "更新已安裝。",
@@ -2004,8 +2016,8 @@
},
"card": {
"advancedDetails": "進階詳細資料",
- "commandsInvoked": "已呼叫的命令: {{count}}",
- "commandsServing": "提供的命令: {{count}}",
+ "commandsInvoked": "已呼叫的命令:{{count}}",
+ "commandsServing": "提供的命令:{{count}}",
"primaryAction": {
"settings": "設定",
"open": "開啟",
@@ -2052,7 +2064,7 @@
"noSuggestions": "沒有外掛程式或命令建議"
},
"refresh": "重新整理",
- "refreshing": "重新整理中...",
+ "refreshing": "重新整理中…",
"refreshTooltip": "載入最新的成功呼叫",
"renderGraphTooltip": "將此大量結果轉譯為圖表",
"columns": {
@@ -2068,8 +2080,8 @@
"moreCalls": "較多呼叫"
},
"loading": {
- "graph": "正在載入呼叫歷程記錄...",
- "metadata": "正在載入外掛程式詳細資料..."
+ "graph": "正在載入呼叫歷程記錄…",
+ "metadata": "正在載入外掛程式詳細資料…"
},
"globalEmpty": {
"title": "尚無成功的跨外掛程式呼叫",
diff --git a/src/shared/protocol/bridge.ts b/src/shared/protocol/bridge.ts
index d4adffae..01a90cb5 100644
--- a/src/shared/protocol/bridge.ts
+++ b/src/shared/protocol/bridge.ts
@@ -59,6 +59,7 @@ export const BridgeQueries = {
ResolveUrl: 'bridge:resolveUrl',
CancelResolveUrl: 'bridge:cancelResolveUrl',
ListPendingPairRequests: 'bridge:listPendingPairRequests',
+ GetStatus: 'bridge:getStatus',
} as const
export const BridgeEvents = {
@@ -107,20 +108,66 @@ export interface TrustedExtensionInfo {
addedAt: number
}
+/**
+ * Renderer-facing snapshot of the bridge's current port policy (§4), read by
+ * {@link BridgeQueries.GetStatus}. Lets the settings UI surface a degraded
+ * (ephemeral-port) bridge as informational, not an error — `endpoint.json`
+ * remains the authoritative discovery source, and the CLI and native
+ * messaging host are unaffected by this query existing or not.
+ */
+export interface BridgeStatusInfo {
+ /** The port actually bound (`BridgeRuntime.port`). `null` only if a future
+ * caller reads this before a port is bound; today the query handler is
+ * installed after binding, so it always returns a real number. */
+ port: number | null
+ /** True once every candidate in the §4 port range (or the pinned
+ * `fixedPort`) was taken and the bridge fell back to an ephemeral port —
+ * extension port-probing can no longer find it. */
+ degraded: boolean
+ /** The persisted port policy (`BridgeSettings.fixedPort`) that produced
+ * `port`/`degraded`. */
+ fixedPort: 'auto' | number
+ /** The persisted §4.1 discovery routing hint (`BridgeSettings.instanceId`).
+ * A routing hint only — never a security signal. */
+ instanceId: string
+}
+
+/**
+ * The §5/§9.2 tri-state proof level for an extension's identity. A literal
+ * copy of core's `IdentityTriState` (`src/core/bridge/credential-store.ts`) —
+ * duplicated deliberately because the renderer must not import `@core/`.
+ * `src/main/bridge/pairing-dialog-controller.ts` asserts the two stay
+ * assignable both ways at compile time, so a future widening of either union
+ * fails `tsc` instead of silently diverging.
+ */
+export type IdentityTriState =
+ | 'official'
+ | 'attested-non-official'
+ | 'unverified'
+
/**
* Renderer-facing pairing-approval prompt payload. Discriminated on `kind`:
* an `extension` pairing (the browser `/pair` handshake) vs a `cli` device-code
* pairing (Spec 7b). The approval toast branches on `kind` — a `cli` request
* carries the human-verifiable `userCode` instead of a browser/extensionId.
+ *
+ * Under MBP1 (§5) no self-reported extension name/version is ever displayed:
+ * `extensionId` is the pairHello `claimedExtensionId` — proven whenever
+ * `identity !== 'unverified'`, claimed-only when `unverified` — and `code` is
+ * the §7.1 pairing code the user types into the extension to actually
+ * authorize it. There is no `decision` to make here any more: approval is
+ * proven by typing the code, not by a click in this dialog.
*/
export type PairRequestPayload =
| {
kind: 'extension'
pairingNonce: string
extensionId: string
- extensionName: string
- extensionVersion: string
browser: Browser
+ identity: IdentityTriState
+ /** The §7.1 display form, grouped `XXXX-XXXX`. Render verbatim — never
+ * reformat, and never log (§7.1/§11: it is the PAKE password). */
+ code: string
}
| {
kind: 'cli'
@@ -132,9 +179,11 @@ export type PairRequestPayload =
/**
* Renderer → main/server decision for a pairing prompt. Mirrors
- * {@link PairRequestPayload}'s discriminant: an `extension` decision settles the
- * blocked `/pair` WebSocket; a `cli` decision approves/denies a device-code
- * request by its `requestId`.
+ * {@link PairRequestPayload}'s discriminant: a `cli` decision approves/denies
+ * a device-code request by its `requestId`. An `extension` request has
+ * shrunk to a pure dismiss — under MBP1 the desktop dialog only DISPLAYS the
+ * code (§7.1); there is no Allow/Deny affordance, since approval is proven by
+ * typing the code into the extension, not by a click here.
*/
export type ResolvePairParams =
| {
@@ -142,8 +191,6 @@ export type ResolvePairParams =
pairingNonce: string
extensionId: string
browser: Browser
- decision: 'allow' | 'deny'
- addToRegistry: boolean
}
| {
kind: 'cli'
@@ -156,8 +203,9 @@ export type ResolvePairParams =
* inbox. Discriminated on `kind`, mirroring {@link PairRequestPayload}: a
* `cli` device-code request (token-free by construction, mirrors
* {@link getPending}'s projection; `deviceId` — identity-keying material — is
- * deliberately excluded) vs an `extension` `/pair` handshake still awaiting a
- * decision. Both add `createdAt`/`expiresAt` for ordering + the TTL countdown.
+ * deliberately excluded) vs an `extension` `/pair` handshake still awaiting
+ * the code being typed into the extension. Both add `createdAt`/`expiresAt`
+ * for ordering + the TTL countdown.
*/
export type PendingPairRequestInfo =
| {
@@ -173,9 +221,9 @@ export type PendingPairRequestInfo =
kind: 'extension'
pairingNonce: string
extensionId: string
- extensionName: string
- extensionVersion: string
browser: Browser
+ identity: IdentityTriState
+ code: string
createdAt: number
expiresAt: number
}
diff --git a/src/shared/schemas/bridge-settings.test.ts b/src/shared/schemas/bridge-settings.test.ts
new file mode 100644
index 00000000..67f2dca6
--- /dev/null
+++ b/src/shared/schemas/bridge-settings.test.ts
@@ -0,0 +1,40 @@
+import { describe, expect, it } from 'vitest'
+import {
+ bridgeSettingsSchema,
+ DEFAULT_BRIDGE_SETTINGS,
+} from './bridge-settings'
+
+describe('bridgeSettingsSchema', () => {
+ it('defaults to auto port and the empty instanceId sentinel', () => {
+ expect(DEFAULT_BRIDGE_SETTINGS).toEqual({
+ fixedPort: 'auto',
+ instanceId: '',
+ })
+ })
+
+ it('accepts a valid fixed port', () => {
+ expect(bridgeSettingsSchema.parse({ fixedPort: 16802 }).fixedPort).toBe(
+ 16802
+ )
+ })
+
+ it.each([0, 99999, -1, 1.5, 'nope', null])(
+ 'recovers an out-of-range or invalid fixedPort (%p) to auto',
+ (fixedPort) => {
+ expect(bridgeSettingsSchema.parse({ fixedPort }).fixedPort).toBe('auto')
+ }
+ )
+
+ it('preserves a persisted instanceId untouched', () => {
+ expect(
+ bridgeSettingsSchema.parse({ instanceId: 'existing-uuid' }).instanceId
+ ).toBe('existing-uuid')
+ })
+
+ it('recovers a non-string instanceId to the empty sentinel', () => {
+ expect(
+ bridgeSettingsSchema.parse({ instanceId: 42 as unknown as string })
+ .instanceId
+ ).toBe('')
+ })
+})
diff --git a/src/shared/schemas/bridge-settings.ts b/src/shared/schemas/bridge-settings.ts
new file mode 100644
index 00000000..d48893ff
--- /dev/null
+++ b/src/shared/schemas/bridge-settings.ts
@@ -0,0 +1,23 @@
+import { z } from 'zod'
+
+// Settings for the WebSocket bridge that lets browser extensions hand
+// downloads to Motrix (see MotrixAppSettings.browserBridgeEnabled for the
+// master on/off switch).
+export const bridgeSettingsSchema = z.object({
+ // 'auto' tries the 16802-16806 candidate range; a number pins the bridge
+ // to a single fixed port for networks/firewalls where the range is
+ // unusable.
+ fixedPort: z
+ .union([z.literal('auto'), z.number().int().min(1).max(65535)])
+ .catch('auto'),
+ // Durable per-install identity, seeded once (migration or first launch)
+ // and never regenerated afterward. '' is the unseeded sentinel. This is a
+ // routing hint the extension uses to pick which candidate port to try
+ // first (docs/bridge-pairing-protocol.md §4.1) — NOT a security signal.
+ instanceId: z.string().catch(''),
+})
+
+export type BridgeSettings = z.infer<typeof bridgeSettingsSchema>
+
+export const DEFAULT_BRIDGE_SETTINGS: BridgeSettings =
+ bridgeSettingsSchema.parse({})
diff --git a/src/shared/schemas/index.ts b/src/shared/schemas/index.ts
index 5bdcf4a4..f3cdd15e 100644
--- a/src/shared/schemas/index.ts
+++ b/src/shared/schemas/index.ts
@@ -1,4 +1,5 @@
export * from './app-settings'
+export * from './bridge-settings'
export * from './dashboard-layout'
export * from './engine-settings'
export * from './geoip-settings'
diff --git a/src/shared/types/settings.ts b/src/shared/types/settings.ts
index 23b2d5ef..8ccceafe 100644
--- a/src/shared/types/settings.ts
+++ b/src/shared/types/settings.ts
@@ -1,6 +1,7 @@
import type { RunMode } from '../constants'
import type { EnginePerformanceProfile } from '../constants/engine-performance-profiles'
import type { SupportedLocale } from '../constants/locales'
+import type { BridgeSettings } from '../schemas/bridge-settings'
import type { GeoIPSettings } from './geoip'
import type { PluginSettings } from './plugin'
import type { TrackerSource } from './tracker'
@@ -148,6 +149,7 @@ export interface AppSettings {
media: MediaSettings
dashboard: DashboardLayoutSettings
speedLimit: SpeedLimitSettings
+ bridge: BridgeSettings
windowState: Record<string, WindowState>
}
diff --git a/tests/check-third-party-notices.test.ts b/tests/check-third-party-notices.test.ts
index 4bea1e67..58017039 100644
--- a/tests/check-third-party-notices.test.ts
+++ b/tests/check-third-party-notices.test.ts
@@ -28,6 +28,60 @@ interface RustCrateNotice {
}
const RUST_NATIVE_HOST_CRATES: RustCrateNotice[] = [
+ {
+ name: 'base64',
+ version: '0.22.1',
+ license: 'MIT OR Apache-2.0',
+ repository: 'https://github.com/marshallpierce/rust-base64',
+ },
+ {
+ name: 'block-buffer',
+ version: '0.10.4',
+ license: 'MIT OR Apache-2.0',
+ repository: 'https://github.com/RustCrypto/utils',
+ },
+ {
+ name: 'cfg-if',
+ version: '1.0.4',
+ license: 'MIT OR Apache-2.0',
+ repository: 'https://github.com/rust-lang/cfg-if',
+ },
+ {
+ name: 'cpufeatures',
+ version: '0.2.17',
+ license: 'MIT OR Apache-2.0',
+ repository: 'https://github.com/RustCrypto/utils',
+ },
+ {
+ name: 'crypto-common',
+ version: '0.1.7',
+ license: 'MIT OR Apache-2.0',
+ repository: 'https://github.com/RustCrypto/traits',
+ },
+ {
+ name: 'digest',
+ version: '0.10.7',
+ license: 'MIT OR Apache-2.0',
+ repository: 'https://github.com/RustCrypto/traits',
+ },
+ {
+ name: 'generic-array',
+ version: '0.14.7',
+ license: 'MIT',
+ repository: 'https://github.com/fizyk20/generic-array',
+ },
+ {
+ name: 'hkdf',
+ version: '0.12.4',
+ license: 'MIT OR Apache-2.0',
+ repository: 'https://github.com/RustCrypto/KDFs',
+ },
+ {
+ name: 'hmac',
+ version: '0.12.1',
+ license: 'MIT OR Apache-2.0',
+ repository: 'https://github.com/RustCrypto/MACs',
+ },
{
name: 'home',
version: '0.5.12',
@@ -46,6 +100,12 @@ const RUST_NATIVE_HOST_CRATES: RustCrateNotice[] = [
license: 'MIT OR Apache-2.0',
repository: 'https://github.com/dtolnay/itoa',
},
+ {
+ name: 'libc',
+ version: '0.2.189',
+ license: 'MIT OR Apache-2.0',
+ repository: 'https://github.com/rust-lang/libc',
+ },
{
name: 'memchr',
version: '2.8.3',
@@ -88,18 +148,42 @@ const RUST_NATIVE_HOST_CRATES: RustCrateNotice[] = [
license: 'MIT OR Apache-2.0',
repository: 'https://github.com/serde-rs/json',
},
+ {
+ name: 'sha2',
+ version: '0.10.9',
+ license: 'MIT OR Apache-2.0',
+ repository: 'https://github.com/RustCrypto/hashes',
+ },
+ {
+ name: 'subtle',
+ version: '2.6.1',
+ license: 'BSD-3-Clause',
+ repository: 'https://github.com/dalek-cryptography/subtle',
+ },
{
name: 'syn',
version: '3.0.3',
license: 'MIT OR Apache-2.0',
repository: 'https://github.com/dtolnay/syn',
},
+ {
+ name: 'typenum',
+ version: '1.20.1',
+ license: 'MIT OR Apache-2.0',
+ repository: 'https://github.com/paholg/typenum',
+ },
{
name: 'unicode-ident',
version: '1.0.24',
license: '(MIT OR Apache-2.0) AND Unicode-3.0',
repository: 'https://github.com/dtolnay/unicode-ident',
},
+ {
+ name: 'version_check',
+ version: '0.9.5',
+ license: 'MIT/Apache-2.0',
+ repository: 'https://github.com/SergioBenitez/version_check',
+ },
{
name: 'windows-link',
version: '0.2.1',
@@ -121,6 +205,26 @@ const RUST_NATIVE_HOST_CRATES: RustCrateNotice[] = [
]
const RUST_LICENSE_FILES = [
+ {
+ file: 'rust-base64-LICENSE-APACHE',
+ sha256: 'a60eea817514531668d7e00765731449fe14d059d3249e0bc93b36de45f759f2',
+ },
+ {
+ file: 'rust-base64-LICENSE-MIT',
+ sha256: '0dd882e53de11566d50f8e8e2d5a651bcf3fabee4987d70f306233cf39094ba7',
+ },
+ {
+ file: 'rust-block-buffer-LICENSE-APACHE',
+ sha256: 'a9040321c3712d8fd0b09cf52b17445de04a23a10165049ae187cd39e5c86be5',
+ },
+ {
+ file: 'rust-block-buffer-LICENSE-MIT',
+ sha256: 'd5c22aa3118d240e877ad41c5d9fa232f9c77d757d4aac0c2f943afc0a95e0ef',
+ },
+ {
+ file: 'rust-cfg-if-LICENSE-MIT',
+ sha256: '378f5840b258e2779c39418f3f2d7b2ba96f1c7917dd6be0713f88305dbda397',
+ },
{
file: 'rust-common-LICENSE-APACHE',
sha256: '62c7a1e35f56406896d7aa7ca52d0cc0d272ac022b5d2796e7d6905db8a3636a',
@@ -129,10 +233,38 @@ const RUST_LICENSE_FILES = [
file: 'rust-common-LICENSE-MIT',
sha256: '23f18e03dc49df91622fe2a76176497404e46ced8a715d9d2b67a7446571cca3',
},
+ {
+ file: 'rust-cpufeatures-LICENSE-MIT',
+ sha256: 'ae9baa7beea910273c2f384c2a6b721fb7bd02bda3436074a1072e4ee689f985',
+ },
+ {
+ file: 'rust-crypto-common-LICENSE-MIT',
+ sha256: '3521672491a3479422d5fe1aca6645dd2984090f85da6e5205abfb18fb7a6897',
+ },
+ {
+ file: 'rust-digest-LICENSE-MIT',
+ sha256: '9e0dfd2dd4173a530e238cb6adb37aa78c34c6bc7444e0e10c1ab5d8881f63ba',
+ },
+ {
+ file: 'rust-generic-array-LICENSE-MIT',
+ sha256: 'c09aae9d3c77b531f56351a9947bc7446511d6b025b3255312d3e3442a9a7583',
+ },
+ {
+ file: 'rust-hkdf-LICENSE-APACHE',
+ sha256: '59013a5c8d3a19c26a457579105915a5d51bb0c09d579f8cdedf12e4203c3018',
+ },
+ {
+ file: 'rust-hkdf-LICENSE-MIT',
+ sha256: 'd288f9c9b4590446ec18c22ead8f8b5a12a3d4025b68f62dc9015063eb9cca69',
+ },
{
file: 'rust-humantime-LICENSE-MIT',
sha256: 'f6deca8261a8f4a3403dc74c725c46051157fd36c27cd4b100277eb1f303ad11',
},
+ {
+ file: 'rust-libc-LICENSE-MIT',
+ sha256: '123a331b5dbf04c30097fa43b8f858bc85df671fe776de498d01f3d6b7c1f69e',
+ },
{
file: 'rust-memchr-COPYING',
sha256: '01c266bced4a434da0051174d6bee16a4c82cf634e2679b6155d40d75012390f',
@@ -145,10 +277,30 @@ const RUST_LICENSE_FILES = [
file: 'rust-memchr-UNLICENSE',
sha256: '7e12e5df4bae12cb21581ba157ced20e1986a0508dd10d0e8a4ab9a4cf94e85c',
},
+ {
+ file: 'rust-sha2-LICENSE-MIT',
+ sha256: 'b4eb00df6e2a4d22518fcaa6a2b4646f249b3a3c9814509b22bd2091f1392ff1',
+ },
+ {
+ file: 'rust-subtle-LICENSE',
+ sha256: 'd1fc1bc0d155df60b2e7705b6b2ae02a05c96f948e1cec6e2fb86360b09f346b',
+ },
+ {
+ file: 'rust-typenum-LICENSE-APACHE',
+ sha256: '516b24e051bf5630880ebbd55c40a25ce9552ebaf8970a53e8976eb70e522406',
+ },
+ {
+ file: 'rust-typenum-LICENSE-MIT',
+ sha256: 'a825bd853ab71619a4923d7b4311221427848070ff44d990da39b0b274c1683f',
+ },
{
file: 'rust-unicode-ident-LICENSE-UNICODE',
sha256: 'f7db81051789b729fea528a63ec4c938fdcb93d9d61d97dc8cc2e9df6d47f2a1',
},
+ {
+ file: 'rust-version_check-LICENSE-MIT',
+ sha256: 'b7e650f3fce5c53249d1cdc608b54df156a97edd636cf9d23498d0cfe7aec63e',
+ },
{
file: 'rust-windows-rs-LICENSE-MIT',
sha256: 'c2cfccb812fe482101a8f04597dfc5a9991a6b2748266c47ac91b6a5aae15383',
diff --git a/tests/scripts/audit-server-runtime.test.ts b/tests/scripts/audit-server-runtime.test.ts
index 8bcc9933..6db76c66 100644
--- a/tests/scripts/audit-server-runtime.test.ts
+++ b/tests/scripts/audit-server-runtime.test.ts
@@ -298,9 +298,33 @@ describe('Server package contracts', () => {
'extra/aria2.conf',
'extra/{platform}/{arch}/{aria2Binary}',
])
- expect(contract.runtimeRoots).toHaveLength(23)
- expect(contract.runtimeRoots).toContain('mmdb-lib')
- expect(contract.runtimeRoots).toContain('proxy-chain')
+ expect(contract.runtimeRoots).toEqual([
+ '@fastify/static',
+ '@fastify/websocket',
+ '@motrix/mdxp',
+ '@motrix/plugin-manifest-schema',
+ '@noble/curves',
+ '@noble/hashes',
+ 'ajv',
+ 'better-sqlite3',
+ 'bittorrent-peerid',
+ 'chokidar',
+ 'fastify',
+ 'i18next',
+ 'libsodium-wrappers',
+ 'mmdb-lib',
+ 'parse-torrent',
+ 'pino',
+ 'proxy-chain',
+ 'quickjs-emscripten',
+ 'undici',
+ 'uuid',
+ 'vscode-jsonrpc',
+ 'write-file-atomic',
+ 'ws',
+ 'yauzl',
+ 'zod',
+ ])
expect(contract.runtimeRoots).not.toContain('electron-updater')
expect(contract.runtimeRoots).not.toContain('@motrix/nat')
})
diff --git a/tests/scripts/electron-package-contract.test.ts b/tests/scripts/electron-package-contract.test.ts
index 5492a10c..9744db57 100644
--- a/tests/scripts/electron-package-contract.test.ts
+++ b/tests/scripts/electron-package-contract.test.ts
@@ -1,4 +1,4 @@
-import { readFile } from 'node:fs/promises'
+import { readdir, readFile } from 'node:fs/promises'
import path from 'node:path'
import { fileURLToPath } from 'node:url'
import { describe, expect, it } from 'vitest'
@@ -16,6 +16,7 @@ import {
resolvePackagedLayout,
scanRuntimeLog,
} from '../../scripts/smoke-electron-package.mjs'
+import { BUNDLED_PACKAGES } from '../../vite.main.config'
const REPOSITORY_ROOT = path.resolve(
path.dirname(fileURLToPath(import.meta.url)),
@@ -148,6 +149,74 @@ describe('Electron package contracts', () => {
}
})
+ it('stages every externalized main-surface import as a runtime root', async () => {
+ // vite.main.config.ts externalizes every production dependency (minus
+ // BUNDLED_PACKAGES), so each bare runtime import under src/main,
+ // src/core, or src/shared becomes a require() in dist/main/index.cjs —
+ // and stage-electron-app.mjs only ships what the runtime contract
+ // lists. A dependency present in package.json but absent from the
+ // contract works in dev (full node_modules) and throws
+ // MODULE_NOT_FOUND in the packaged app; @noble/hashes shipped exactly
+ // that way.
+ const manifest = (await readJson('package.json')) as {
+ dependencies?: Record<string, string>
+ optionalDependencies?: Record<string, string>
+ }
+ const productionDeps = new Set([
+ ...Object.keys(manifest.dependencies ?? {}),
+ ...Object.keys(manifest.optionalDependencies ?? {}),
+ ])
+ const contract = validateRuntimeDependencyContract(
+ await readJson('scripts/electron-runtime-dependencies.json')
+ )
+ const staged = new Set([
+ ...contract.common,
+ ...Object.values(contract.platforms).flatMap((platform) => [
+ ...platform.required,
+ ...platform.optional,
+ ]),
+ ])
+
+ const files: string[] = []
+ for (const surface of ['src/main', 'src/core', 'src/shared']) {
+ const entries = await readdir(path.join(REPOSITORY_ROOT, surface), {
+ recursive: true,
+ withFileTypes: true,
+ })
+ for (const entry of entries) {
+ if (!entry.isFile()) continue
+ if (!/\.tsx?$/.test(entry.name)) continue
+ if (/\.(test|spec)\./.test(entry.name)) continue
+ if (entry.parentPath.includes('__tests__')) continue
+ files.push(path.join(entry.parentPath, entry.name))
+ }
+ }
+ expect(files.length).toBeGreaterThan(100)
+
+ // Static `import`/`export ... from` (skipping type-only statements —
+ // verbatimModuleSyntax erases those) plus dynamic `import()`.
+ const specifierPattern =
+ /(?:^|\n)\s*(?:import|export)(?!\s+type\b)[^'"]*?\bfrom\s+['"]([^'"]+)['"]|\bimport\(\s*['"]([^'"]+)['"]/g
+ const missing = new Map<string, string>()
+ for (const file of files) {
+ const source = await readFile(file, 'utf8')
+ for (const match of source.matchAll(specifierPattern)) {
+ const specifier = match[1] ?? match[2]
+ const name = packageNameFromSpecifier(specifier ?? '')
+ if (name === undefined) continue
+ // Aliases, devDependencies, electron, and bare builtins never
+ // reach the packaged require path; bundled packages are inlined.
+ if (!productionDeps.has(name)) continue
+ if (BUNDLED_PACKAGES.includes(name)) continue
+ if (!staged.has(name)) {
+ missing.set(name, path.relative(REPOSITORY_ROOT, file))
+ }
+ }
+ }
+
+ expect(Object.fromEntries(missing)).toEqual({})
+ })
+
it('declares the exact supported runtime roots and targets', async () => {
const contract = validateRuntimeDependencyContract(
await readJson('scripts/electron-runtime-dependencies.json')
@@ -170,6 +239,8 @@ describe('Electron package contracts', () => {
'@motrix/mdxp',
'@motrix/nat',
'@motrix/plugin-manifest-schema',
+ '@noble/curves',
+ '@noble/hashes',
'ajv',
'better-sqlite3',
'chokidar',
diff --git a/tests/scripts/flatpak-native-host.test.ts b/tests/scripts/flatpak-native-host.test.ts
index 2d6e18cd..e83c5b09 100644
--- a/tests/scripts/flatpak-native-host.test.ts
+++ b/tests/scripts/flatpak-native-host.test.ts
@@ -114,8 +114,11 @@ describe('Flatpak native-host boundary', () => {
expect(workflow).toContain(
'chrome-extension://ibpkjhgpbidfmbmomagmldcdlpbmchgi/'
)
+ expect(workflow).toContain("self.path != '/discovery'")
+ expect(workflow).toContain("self.path != '/nonce'")
+ expect(workflow).toContain("self.headers.get('X-Motrix-Bridge') != '1'")
expect(workflow).toContain(
- '460000007b22616374696f6e223a227265717565737450616972222c22706f7274223a35353830392c226e6f6e6365223a224162436445664768496a4b6c4d6e4f70517253745576227d'
+ '5a0000007b22616374696f6e223a227265717565737450616972222c2270726f746f636f6c56657273696f6e223a312c22706f7274223a35353830392c226e6f6e6365223a224162436445664768496a4b6c4d6e4f70517253745576227d'
)
})
})
diff --git a/vite.main.config.ts b/vite.main.config.ts
index 73bd2d47..55612564 100644
--- a/vite.main.config.ts
+++ b/vite.main.config.ts
@@ -35,7 +35,7 @@ const nodeBuiltinSet = new Set(builtinModules)
// build time. `pino` is the canonical example — its grandchildren
// (pino-std-serializers, safe-stable-stringify, thread-stream,
// etc.) get dropped from the asar otherwise.
-const BUNDLED_PACKAGES = ['bittorrent-peerid', 'parse-torrent', 'pino']
+export const BUNDLED_PACKAGES = ['bittorrent-peerid', 'parse-torrent', 'pino']
function matchesPackage(id: string, name: string): boolean {
return id === name || id.startsWith(`${name}/`)