Skip to content

OpenReel Video - Professional browser-based video editor. Open source CapCut alternative. 100% browser-based, no installation, no cloud uploads, no watermarks.

TypeScript

perf: add WASM optimization for audio processing

Augustus Otu4d58644389fd
diff --git a/apps/web/vite.config.ts b/apps/web/vite.config.ts
index 065f2b81..13e9cd8a 100644
--- a/apps/web/vite.config.ts
+++ b/apps/web/vite.config.ts
@@ -5,6 +5,7 @@ import path from "path";
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
+ assetsInclude: ["**/*.wasm"],
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
diff --git a/package.json b/package.json
index ded16f1b..9dfa3ca6 100644
--- a/package.json
+++ b/package.json
@@ -6,12 +6,13 @@
"type": "module",
"scripts": {
"dev": "pnpm --filter @openreel/web dev",
- "build": "pnpm --filter @openreel/web build",
+ "build:wasm": "pnpm --filter @openreel/core build:wasm",
+ "build": "pnpm build:wasm && pnpm --filter @openreel/web build",
"preview": "pnpm --filter @openreel/web preview",
"deploy": "pnpm build && pnpm --filter @openreel/web deploy",
"deploy:preview": "pnpm build && pnpm --filter @openreel/web deploy:preview",
- "test": "pnpm -r test",
- "test:run": "pnpm -r test:run",
+ "test": "pnpm -r test:run",
+ "test:watch": "pnpm -r test",
"lint": "pnpm -r lint",
"typecheck": "pnpm -r typecheck",
"clean": "pnpm -r clean",
diff --git a/packages/core/package.json b/packages/core/package.json
index 57bd115f..d241eed6 100644
--- a/packages/core/package.json
+++ b/packages/core/package.json
@@ -19,10 +19,15 @@
"test": "vitest",
"test:run": "vitest run",
"typecheck": "tsc --noEmit",
- "clean": "rm -rf dist"
+ "clean": "rm -rf dist",
+ "build:wasm": "npm run build:wasm:fft && npm run build:wasm:wav && npm run build:wasm:beat",
+ "build:wasm:fft": "asc src/wasm/fft/assembly/index.ts -o src/wasm/fft/build/fft.wasm --optimize --runtime stub",
+ "build:wasm:wav": "asc src/wasm/wav/assembly/index.ts -o src/wasm/wav/build/wav.wasm --optimize --runtime stub",
+ "build:wasm:beat": "asc src/wasm/beat-detection/assembly/index.ts -o src/wasm/beat-detection/build/beat.wasm --optimize --runtime stub"
},
"devDependencies": {
"@types/uuid": "^11.0.0",
+ "assemblyscript": "^0.27.0",
"fast-check": "^3.19.0",
"typescript": "^5.4.5",
"vitest": "^1.6.0"
diff --git a/packages/core/src/audio/audio-effects-engine.ts b/packages/core/src/audio/audio-effects-engine.ts
index 83f4e99b..95d3ab64 100644
--- a/packages/core/src/audio/audio-effects-engine.ts
+++ b/packages/core/src/audio/audio-effects-engine.ts
@@ -1,129 +1,6 @@
import type { Effect } from "../types/timeline";
import type { AudioEffectParams, EQBand } from "../types/effects";
-
-class FFT {
- private readonly size: number;
- private readonly cosTable: Float32Array;
- private readonly sinTable: Float32Array;
- private readonly reverseTable: Uint32Array;
-
- constructor(size: number) {
- if (size <= 0 || (size & (size - 1)) !== 0) {
- throw new Error("FFT size must be a power of 2");
- }
-
- this.size = size;
- this.cosTable = new Float32Array(size / 2);
- this.sinTable = new Float32Array(size / 2);
- this.reverseTable = new Uint32Array(size);
-
- // Precompute twiddle factors
- for (let i = 0; i < size / 2; i++) {
- const angle = (-2 * Math.PI * i) / size;
- this.cosTable[i] = Math.cos(angle);
- this.sinTable[i] = Math.sin(angle);
- }
-
- // Precompute bit-reversal table
- const bits = Math.log2(size);
- for (let i = 0; i < size; i++) {
- let reversed = 0;
- for (let j = 0; j < bits; j++) {
- reversed = (reversed << 1) | ((i >> j) & 1);
- }
- this.reverseTable[i] = reversed;
- }
- }
-
- /**
- * Cooley-Tukey Fast Fourier Transform - O(n log n) computation.
- * Three stages:
- * 1. Bit-reversal permutation: reorder input for in-place computation
- * 2. Butterfly operations: combine frequency bins using twiddle factors (precomputed cos/sin)
- * 3. Iterative doubling: start with size-2 transforms, combine into size-4, size-8, etc.
- *
- * This iterative approach avoids recursion overhead and is cache-friendly.
- * Precomputed twiddle factors avoid redundant trigonometric calculations.
- */
- forward(input: Float32Array): { real: Float32Array; imag: Float32Array } {
- const n = this.size;
- const real = new Float32Array(n);
- const imag = new Float32Array(n);
-
- // Stage 1: Bit-reversal permutation for in-place computation
- // Maps input[i] to position with bit pattern reversed (e.g., 0b101 -> 0b101 for size-8)
- for (let i = 0; i < n; i++) {
- real[this.reverseTable[i]] = input[i] || 0;
- }
-
- // Stage 2: Iterative FFT (Cooley-Tukey algorithm)
- // Process transforms of increasing size: 2-point -> 4-point -> 8-point ... n-point
- for (let len = 2; len <= n; len *= 2) {
- const halfLen = len / 2;
- const tableStep = n / len; // Maps twiddle factor index to table position
-
- // Process each butterfly operation
- for (let i = 0; i < n; i += len) {
- for (let j = 0; j < halfLen; j++) {
- // Get precomputed twiddle factor: e^(-2πij/len)
- const tIdx = j * tableStep;
- const cos = this.cosTable[tIdx];
- const sin = this.sinTable[tIdx];
-
- const evenIdx = i + j;
- const oddIdx = i + j + halfLen;
-
- // Butterfly: combine even and odd elements using complex multiplication
- // t = oddElement * twiddle = (real + imag*i) * (cos - sin*i)
- const tReal = real[oddIdx] * cos - imag[oddIdx] * sin;
- const tImag = real[oddIdx] * sin + imag[oddIdx] * cos;
-
- // In-place update: even = even + t, odd = even - t
- real[oddIdx] = real[evenIdx] - tReal;
- imag[oddIdx] = imag[evenIdx] - tImag;
- real[evenIdx] = real[evenIdx] + tReal;
- imag[evenIdx] = imag[evenIdx] + tImag;
- }
- }
- }
-
- return { real, imag };
- }
-
- getMagnitude(real: Float32Array, imag: Float32Array): Float32Array {
- const halfSize = this.size / 2;
- const magnitude = new Float32Array(halfSize);
-
- for (let i = 0; i < halfSize; i++) {
- magnitude[i] = Math.sqrt(real[i] * real[i] + imag[i] * imag[i]);
- }
-
- return magnitude;
- }
-
- getPower(real: Float32Array, imag: Float32Array): Float32Array {
- const halfSize = this.size / 2;
- const power = new Float32Array(halfSize);
-
- for (let i = 0; i < halfSize; i++) {
- power[i] = real[i] * real[i] + imag[i] * imag[i];
- }
-
- return power;
- }
-
- applyHannWindow(data: Float32Array): Float32Array {
- const windowed = new Float32Array(data.length);
- const n = data.length;
-
- for (let i = 0; i < n; i++) {
- const window = 0.5 * (1 - Math.cos((2 * Math.PI * i) / (n - 1)));
- windowed[i] = data[i] * window;
- }
-
- return windowed;
- }
-}
+import { FFT } from "./fft";
export interface AudioEffectChainConfig {
readonly effects: Effect[];
diff --git a/packages/core/src/audio/beat-detection-engine.ts b/packages/core/src/audio/beat-detection-engine.ts
index 5a2493fb..3eab5629 100644
--- a/packages/core/src/audio/beat-detection-engine.ts
+++ b/packages/core/src/audio/beat-detection-engine.ts
@@ -1,3 +1,9 @@
+import {
+ BeatDetectionProcessor,
+ getBeatDetectionProcessor,
+ initWasmBeatDetection,
+} from "../wasm/beat-detection";
+
export interface Beat {
readonly time: number;
readonly strength: number;
@@ -31,9 +37,24 @@ export const DEFAULT_BEAT_DETECTION_CONFIG: BeatDetectionConfig = {
export class BeatDetectionEngine {
private config: BeatDetectionConfig;
private audioContext: AudioContext | OfflineAudioContext | null = null;
+ private wasmProcessor: BeatDetectionProcessor;
+ private wasmInitialized: boolean = false;
constructor(config: Partial<BeatDetectionConfig> = {}) {
this.config = { ...DEFAULT_BEAT_DETECTION_CONFIG, ...config };
+ this.wasmProcessor = getBeatDetectionProcessor();
+ this.initWasm();
+ }
+
+ private async initWasm(): Promise<void> {
+ if (this.wasmInitialized) return;
+ try {
+ await initWasmBeatDetection();
+ await this.wasmProcessor.ensureWasm();
+ this.wasmInitialized = true;
+ } catch {
+ this.wasmInitialized = false;
+ }
}
async analyzeAudioBuffer(
@@ -85,25 +106,14 @@ export class BeatDetectionEngine {
const onsets: number[] = [];
const numFrames = Math.floor((samples.length - windowSize) / hopSize);
- const energies: number[] = [];
+ const energiesF32 = new Float32Array(numFrames);
- // Step 1: Compute RMS energy for each frame (hop-based windowing)
- // RMS = sqrt(mean(samples^2)) is more perceptually relevant than peak amplitude
- for (let i = 0; i < numFrames; i++) {
- const start = i * hopSize;
- let energy = 0;
+ this.wasmProcessor.computeRMSEnergies(samples, windowSize, hopSize, energiesF32);
- for (let j = 0; j < windowSize; j++) {
- const sample = samples[start + j];
- energy += sample * sample;
- }
-
- energy = Math.sqrt(energy / windowSize);
- energies.push(energy);
- }
+ const smoothedF32 = new Float32Array(numFrames);
+ this.wasmProcessor.smoothArray(energiesF32, smoothedF32, 5);
- // Step 2: Smooth energy curve to reduce noise while preserving transients
- const smoothedEnergies = this.smoothArray(energies, 5);
+ const smoothedEnergies = Array.from(smoothedF32);
// Step 3: Compute dynamic threshold based on local statistics and sensitivity
const threshold = this.calculateAdaptiveThreshold(
smoothedEnergies,
@@ -140,29 +150,6 @@ export class BeatDetectionEngine {
return onsets;
}
- private smoothArray(arr: number[], windowSize: number): number[] {
- const result: number[] = [];
- const halfWindow = Math.floor(windowSize / 2);
-
- for (let i = 0; i < arr.length; i++) {
- let sum = 0;
- let count = 0;
-
- for (
- let j = Math.max(0, i - halfWindow);
- j <= Math.min(arr.length - 1, i + halfWindow);
- j++
- ) {
- sum += arr[j];
- count++;
- }
-
- result.push(sum / count);
- }
-
- return result;
- }
-
/**
* Computes per-frame dynamic thresholds using local statistics.
* Combines median (robust to outliers) and mean (captures overall level).
@@ -177,19 +164,14 @@ export class BeatDetectionEngine {
const thresholds: number[] = [];
for (let i = 0; i < energies.length; i++) {
- // Collect local energy values for statistics
const start = Math.max(0, i - medianWindowSize);
const end = Math.min(energies.length, i + medianWindowSize);
- const window = energies.slice(start, end).sort((a, b) => a - b);
+ const windowArr = new Float32Array(energies.slice(start, end));
- // Median: robust to noise and outliers
- const median = window[Math.floor(window.length / 2)];
- // Mean: captures average energy level
- const mean = window.reduce((a, b) => a + b, 0) / window.length;
+ const median = this.wasmProcessor.calculateMedian(windowArr);
+ const mean = this.wasmProcessor.calculateMean(windowArr);
- // Blend median and mean: lower sensitivity = prefer median, higher = prefer mean
const threshold = median + (mean - median) * (1 - sensitivity);
- // Scale threshold based on sensitivity: lower sensitivity = higher threshold (fewer detections)
thresholds.push(threshold * (1.5 - sensitivity * 0.5));
}
diff --git a/packages/core/src/audio/fft.ts b/packages/core/src/audio/fft.ts
new file mode 100644
index 00000000..4de19c83
--- /dev/null
+++ b/packages/core/src/audio/fft.ts
@@ -0,0 +1,210 @@
+export class FFT {
+ private readonly size: number;
+ private readonly cosTable: Float32Array;
+ private readonly sinTable: Float32Array;
+ private readonly reverseTable: Uint32Array;
+
+ constructor(size: number) {
+ if (size <= 0 || (size & (size - 1)) !== 0) {
+ throw new Error("FFT size must be a power of 2");
+ }
+
+ this.size = size;
+ this.cosTable = new Float32Array(size / 2);
+ this.sinTable = new Float32Array(size / 2);
+ this.reverseTable = new Uint32Array(size);
+
+ for (let i = 0; i < size / 2; i++) {
+ const angle = (-2 * Math.PI * i) / size;
+ this.cosTable[i] = Math.cos(angle);
+ this.sinTable[i] = Math.sin(angle);
+ }
+
+ const bits = Math.log2(size);
+ for (let i = 0; i < size; i++) {
+ let reversed = 0;
+ for (let j = 0; j < bits; j++) {
+ reversed = (reversed << 1) | ((i >> j) & 1);
+ }
+ this.reverseTable[i] = reversed;
+ }
+ }
+
+ getSize(): number {
+ return this.size;
+ }
+
+ forward(input: Float32Array): { real: Float32Array; imag: Float32Array } {
+ const n = this.size;
+ const real = new Float32Array(n);
+ const imag = new Float32Array(n);
+
+ for (let i = 0; i < n; i++) {
+ real[this.reverseTable[i]] = input[i] || 0;
+ }
+
+ for (let len = 2; len <= n; len *= 2) {
+ const halfLen = len / 2;
+ const tableStep = n / len;
+
+ for (let i = 0; i < n; i += len) {
+ for (let j = 0; j < halfLen; j++) {
+ const tIdx = j * tableStep;
+ const cos = this.cosTable[tIdx];
+ const sin = this.sinTable[tIdx];
+
+ const evenIdx = i + j;
+ const oddIdx = i + j + halfLen;
+
+ const tReal = real[oddIdx] * cos - imag[oddIdx] * sin;
+ const tImag = real[oddIdx] * sin + imag[oddIdx] * cos;
+
+ real[oddIdx] = real[evenIdx] - tReal;
+ imag[oddIdx] = imag[evenIdx] - tImag;
+ real[evenIdx] = real[evenIdx] + tReal;
+ imag[evenIdx] = imag[evenIdx] + tImag;
+ }
+ }
+ }
+
+ return { real, imag };
+ }
+
+ inverse(real: Float32Array, imag: Float32Array): Float32Array {
+ const n = this.size;
+ const outReal = new Float32Array(n);
+ const outImag = new Float32Array(n);
+
+ for (let i = 0; i < n; i++) {
+ outReal[this.reverseTable[i]] = real[i];
+ outImag[this.reverseTable[i]] = -imag[i];
+ }
+
+ for (let len = 2; len <= n; len *= 2) {
+ const halfLen = len / 2;
+ const tableStep = n / len;
+
+ for (let i = 0; i < n; i += len) {
+ for (let j = 0; j < halfLen; j++) {
+ const tIdx = j * tableStep;
+ const cos = this.cosTable[tIdx];
+ const sin = this.sinTable[tIdx];
+
+ const evenIdx = i + j;
+ const oddIdx = i + j + halfLen;
+
+ const tReal = outReal[oddIdx] * cos - outImag[oddIdx] * sin;
+ const tImag = outReal[oddIdx] * sin + outImag[oddIdx] * cos;
+
+ outReal[oddIdx] = outReal[evenIdx] - tReal;
+ outImag[oddIdx] = outImag[evenIdx] - tImag;
+ outReal[evenIdx] = outReal[evenIdx] + tReal;
+ outImag[evenIdx] = outImag[evenIdx] + tImag;
+ }
+ }
+ }
+
+ const result = new Float32Array(n);
+ for (let i = 0; i < n; i++) {
+ result[i] = outReal[i] / n;
+ }
+
+ return result;
+ }
+
+ getMagnitude(real: Float32Array, imag: Float32Array): Float32Array {
+ const halfSize = this.size / 2;
+ const magnitude = new Float32Array(halfSize);
+
+ for (let i = 0; i < halfSize; i++) {
+ magnitude[i] = Math.sqrt(real[i] * real[i] + imag[i] * imag[i]);
+ }
+
+ return magnitude;
+ }
+
+ getPower(real: Float32Array, imag: Float32Array): Float32Array {
+ const halfSize = this.size / 2;
+ const power = new Float32Array(halfSize);
+
+ for (let i = 0; i < halfSize; i++) {
+ power[i] = real[i] * real[i] + imag[i] * imag[i];
+ }
+
+ return power;
+ }
+
+ getMagnitudeAndPhase(
+ real: Float32Array,
+ imag: Float32Array,
+ ): { magnitudes: Float32Array; phases: Float32Array } {
+ const halfSize = this.size / 2;
+ const magnitudes = new Float32Array(halfSize);
+ const phases = new Float32Array(halfSize);
+
+ for (let i = 0; i < halfSize; i++) {
+ magnitudes[i] = Math.sqrt(real[i] * real[i] + imag[i] * imag[i]);
+ phases[i] = Math.atan2(imag[i], real[i]);
+ }
+
+ return { magnitudes, phases };
+ }
+
+ fromMagnitudeAndPhase(
+ magnitudes: Float32Array,
+ phases: Float32Array,
+ ): { real: Float32Array; imag: Float32Array } {
+ const n = this.size;
+ const halfSize = magnitudes.length;
+ const real = new Float32Array(n);
+ const imag = new Float32Array(n);
+
+ for (let i = 0; i < halfSize; i++) {
+ real[i] = magnitudes[i] * Math.cos(phases[i]);
+ imag[i] = magnitudes[i] * Math.sin(phases[i]);
+ }
+
+ for (let i = 1; i < halfSize; i++) {
+ real[n - i] = real[i];
+ imag[n - i] = -imag[i];
+ }
+
+ return { real, imag };
+ }
+
+ applyHannWindow(data: Float32Array): Float32Array {
+ const windowed = new Float32Array(data.length);
+ const n = data.length;
+
+ for (let i = 0; i < n; i++) {
+ const window = 0.5 * (1 - Math.cos((2 * Math.PI * i) / (n - 1)));
+ windowed[i] = data[i] * window;
+ }
+
+ return windowed;
+ }
+
+ applySynthesisWindow(data: Float32Array): Float32Array {
+ const windowed = new Float32Array(data.length);
+ const n = data.length;
+
+ for (let i = 0; i < n; i++) {
+ const window = 0.5 * (1 - Math.cos((2 * Math.PI * i) / (n - 1)));
+ windowed[i] = data[i] * window;
+ }
+
+ return windowed;
+ }
+}
+
+let cachedFFT: FFT | null = null;
+let cachedFFTSize = 0;
+
+export function getFFT(size: number): FFT {
+ if (cachedFFT && cachedFFTSize === size) {
+ return cachedFFT;
+ }
+ cachedFFT = new FFT(size);
+ cachedFFTSize = size;
+ return cachedFFT;
+}
diff --git a/packages/core/src/audio/index.ts b/packages/core/src/audio/index.ts
index a91aaf4d..bf9ce569 100644
--- a/packages/core/src/audio/index.ts
+++ b/packages/core/src/audio/index.ts
@@ -1,4 +1,5 @@
export * from "./types";
+export * from "./fft";
export * from "./audio-engine";
export * from "./realtime-processor";
export * from "./audio-effects-engine";
diff --git a/packages/core/src/audio/noise-reduction.ts b/packages/core/src/audio/noise-reduction.ts
index a6a1b2d8..bbfa2f8e 100644
--- a/packages/core/src/audio/noise-reduction.ts
+++ b/packages/core/src/audio/noise-reduction.ts
@@ -1,3 +1,6 @@
+import { FFT } from "./fft";
+import { WasmFFT, getWasmFFT, initWasmFFT } from "../wasm/fft";
+
export interface NoiseProfile {
readonly frequencyBins: Float32Array;
readonly magnitudes: Float32Array;
@@ -27,11 +30,28 @@ export class SpectralNoiseReducer {
private noiseProfile: NoiseProfile | null = null;
private fftSize: number;
private hopSize: number;
+ private fft: FFT | WasmFFT;
+ private wasmInitialized: boolean = false;
constructor(config: Partial<NoiseReductionConfig> = {}) {
this.config = { ...DEFAULT_NOISE_REDUCTION_CONFIG, ...config };
this.fftSize = 2048;
- this.hopSize = this.fftSize / 4; // 75% overlap
+ this.hopSize = this.fftSize / 4;
+ this.fft = getWasmFFT(this.fftSize);
+ this.initWasm();
+ }
+
+ private async initWasm(): Promise<void> {
+ if (this.wasmInitialized) return;
+ try {
+ await initWasmFFT();
+ if (this.fft instanceof WasmFFT) {
+ await this.fft.ensureWasm();
+ }
+ this.wasmInitialized = true;
+ } catch {
+ this.wasmInitialized = false;
+ }
}
learnNoiseProfile(noiseBuffer: AudioBuffer): NoiseProfile {
@@ -91,8 +111,12 @@ export class SpectralNoiseReducer {
setNoiseProfile(profile: NoiseProfile): void {
this.noiseProfile = profile;
- this.fftSize = profile.fftSize;
- this.hopSize = this.fftSize / 4;
+ if (this.fftSize !== profile.fftSize) {
+ this.fftSize = profile.fftSize;
+ this.hopSize = this.fftSize / 4;
+ this.fft = getWasmFFT(this.fftSize);
+ this.initWasm();
+ }
}
async processBuffer(
@@ -167,48 +191,16 @@ export class SpectralNoiseReducer {
}
private computeMagnitudeSpectrum(frame: Float32Array): Float32Array {
- const halfFFT = this.fftSize / 2;
- const magnitudes = new Float32Array(halfFFT);
-
- for (let k = 0; k < halfFFT; k++) {
- let real = 0;
- let imag = 0;
-
- for (let n = 0; n < this.fftSize; n++) {
- const angle = (-2 * Math.PI * k * n) / this.fftSize;
- real += frame[n] * Math.cos(angle);
- imag += frame[n] * Math.sin(angle);
- }
-
- magnitudes[k] = Math.sqrt(real * real + imag * imag);
- }
-
- return magnitudes;
+ const { real, imag } = this.fft.forward(frame);
+ return this.fft.getMagnitude(real, imag);
}
private computeSpectrum(frame: Float32Array): {
magnitudes: Float32Array;
phases: Float32Array;
} {
- const halfFFT = this.fftSize / 2;
- const magnitudes = new Float32Array(halfFFT);
- const phases = new Float32Array(halfFFT);
-
- for (let k = 0; k < halfFFT; k++) {
- let real = 0;
- let imag = 0;
-
- for (let n = 0; n < this.fftSize; n++) {
- const angle = (-2 * Math.PI * k * n) / this.fftSize;
- real += frame[n] * Math.cos(angle);
- imag += frame[n] * Math.sin(angle);
- }
-
- magnitudes[k] = Math.sqrt(real * real + imag * imag);
- phases[k] = Math.atan2(imag, real);
- }
-
- return { magnitudes, phases };
+ const { real, imag } = this.fft.forward(frame);
+ return this.fft.getMagnitudeAndPhase(real, imag);
}
private applySpectralSubtraction(magnitudes: Float32Array): Float32Array {
@@ -244,22 +236,9 @@ export class SpectralNoiseReducer {
magnitudes: Float32Array,
phases: Float32Array,
): Float32Array {
- const frame = new Float32Array(this.fftSize);
- const halfFFT = magnitudes.length;
-
- for (let n = 0; n < this.fftSize; n++) {
- let sample = 0;
-
- for (let k = 0; k < halfFFT; k++) {
- const angle = (2 * Math.PI * k * n) / this.fftSize + phases[k];
- sample += magnitudes[k] * Math.cos(angle);
- }
- const window =
- 0.5 * (1 - Math.cos((2 * Math.PI * n) / (this.fftSize - 1)));
- frame[n] = (sample * window * 2) / this.fftSize;
- }
-
- return frame;
+ const { real, imag } = this.fft.fromMagnitudeAndPhase(magnitudes, phases);
+ const timeDomain = this.fft.inverse(real, imag);
+ return this.fft.applySynthesisWindow(timeDomain);
}
setConfig(config: Partial<NoiseReductionConfig>): void {
diff --git a/packages/core/src/export/export-engine.ts b/packages/core/src/export/export-engine.ts
index 71e36b99..ba0599cc 100644
--- a/packages/core/src/export/export-engine.ts
+++ b/packages/core/src/export/export-engine.ts
@@ -23,6 +23,7 @@ import { graphicsEngine } from "../graphics/graphics-engine";
import { UpscalingEngine, getUpscalingEngine } from "../video/upscaling";
import { getMediaEngine } from "../media/mediabunny-engine";
import { getFFmpegFallback } from "../media/ffmpeg-fallback";
+import { getWavEncoder } from "../wasm/wav";
export class ExportEngine {
private mediabunny: typeof import("mediabunny") | null = null;
@@ -1825,7 +1826,33 @@ export class ExportEngine {
);
const sampleRate = settings.sampleRate;
const bitDepth = settings.bitDepth;
- const bytesPerSample = bitDepth / 8;
+
+ if (bitDepth === 32) {
+ return this.encodeWav32Float(buffer, numberOfChannels, sampleRate);
+ }
+
+ const encoder = getWavEncoder();
+ const samples: Float32Array[] = [];
+ for (let ch = 0; ch < numberOfChannels; ch++) {
+ samples.push(buffer.getChannelData(ch));
+ }
+
+ const wavData = encoder.encodeFullWav(
+ samples,
+ sampleRate,
+ bitDepth as 16 | 24,
+ );
+
+ return new Blob([wavData.buffer as ArrayBuffer], { type: "audio/wav" });
+ }
+
+ private encodeWav32Float(
+ buffer: AudioBuffer,
+ numberOfChannels: number,
+ sampleRate: number,
+ ): Blob {
+ const bitDepth = 32;
+ const bytesPerSample = 4;
const blockAlign = numberOfChannels * bytesPerSample;
const byteRate = sampleRate * blockAlign;
const dataLength = buffer.length * blockAlign;
@@ -1835,47 +1862,24 @@ export class ExportEngine {
const arrayBuffer = new ArrayBuffer(totalLength);
const view = new DataView(arrayBuffer);
- // RIFF header
this.writeString(view, 0, "RIFF");
view.setUint32(4, totalLength - 8, true);
this.writeString(view, 8, "WAVE");
-
- // fmt chunk
this.writeString(view, 12, "fmt ");
view.setUint32(16, 16, true);
- view.setUint16(20, bitDepth === 32 ? 3 : 1, true);
+ view.setUint16(20, 3, true);
view.setUint16(22, numberOfChannels, true);
view.setUint32(24, sampleRate, true);
view.setUint32(28, byteRate, true);
view.setUint16(32, blockAlign, true);
view.setUint16(34, bitDepth, true);
-
- // data chunk
this.writeString(view, 36, "data");
view.setUint32(40, dataLength, true);
+
let offset = 44;
for (let i = 0; i < buffer.length; i++) {
for (let channel = 0; channel < numberOfChannels; channel++) {
- const sample = buffer.getChannelData(channel)[i];
-
- if (bitDepth === 16) {
- const intSample = Math.max(
- -32768,
- Math.min(32767, Math.round(sample * 32767)),
- );
- view.setInt16(offset, intSample, true);
- } else if (bitDepth === 24) {
- const intSample = Math.max(
- -8388608,
- Math.min(8388607, Math.round(sample * 8388607)),
- );
- view.setUint8(offset, intSample & 0xff);
- view.setUint8(offset + 1, (intSample >> 8) & 0xff);
- view.setUint8(offset + 2, (intSample >> 16) & 0xff);
- } else if (bitDepth === 32) {
- view.setFloat32(offset, sample, true);
- }
-
+ view.setFloat32(offset, buffer.getChannelData(channel)[i], true);
offset += bytesPerSample;
}
}
diff --git a/packages/core/src/wasm/beat-detection/assembly/index.ts b/packages/core/src/wasm/beat-detection/assembly/index.ts
new file mode 100644
index 00000000..ef470383
--- /dev/null
+++ b/packages/core/src/wasm/beat-detection/assembly/index.ts
@@ -0,0 +1,176 @@
+export function computeRMSEnergies(
+ samples: Float32Array,
+ windowSize: i32,
+ hopSize: i32,
+ energies: Float32Array,
+): void {
+ const numSamples = samples.length;
+ const numFrames = energies.length;
+ const invWindow: f32 = 1.0 / <f32>windowSize;
+
+ for (let frame = 0; frame < numFrames; frame++) {
+ const start = frame * hopSize;
+ let sum: f32 = 0.0;
+
+ let i = 0;
+ const end = windowSize - 4;
+ for (; i < end; i += 4) {
+ const idx = start + i;
+ if (idx + 3 < numSamples) {
+ const s0 = unchecked(samples[idx]);
+ const s1 = unchecked(samples[idx + 1]);
+ const s2 = unchecked(samples[idx + 2]);
+ const s3 = unchecked(samples[idx + 3]);
+ sum += s0 * s0 + s1 * s1 + s2 * s2 + s3 * s3;
+ }
+ }
+
+ for (; i < windowSize; i++) {
+ const idx = start + i;
+ if (idx < numSamples) {
+ const s = unchecked(samples[idx]);
+ sum += s * s;
+ }
+ }
+
+ unchecked((energies[frame] = Mathf.sqrt(sum * invWindow)));
+ }
+}
+
+export function smoothArray(
+ input: Float32Array,
+ output: Float32Array,
+ windowSize: i32,
+): void {
+ const len = input.length;
+ const halfWindow = windowSize >> 1;
+ const invWindow: f32 = 1.0 / <f32>windowSize;
+
+ for (let i = 0; i < len; i++) {
+ let sum: f32 = 0.0;
+ const start = i - halfWindow;
+ const end = i + halfWindow + 1;
+
+ for (let j = start; j < end; j++) {
+ const idx = j < 0 ? 0 : j >= len ? len - 1 : j;
+ sum += unchecked(input[idx]);
+ }
+
+ unchecked((output[i] = sum * invWindow));
+ }
+}
+
+function partition(arr: Float32Array, left: i32, right: i32): i32 {
+ const pivot = unchecked(arr[right]);
+ let i = left - 1;
+
+ for (let j = left; j < right; j++) {
+ if (unchecked(arr[j]) <= pivot) {
+ i++;
+ const temp = unchecked(arr[i]);
+ unchecked((arr[i] = arr[j]));
+ unchecked((arr[j] = temp));
+ }
+ }
+
+ const temp = unchecked(arr[i + 1]);
+ unchecked((arr[i + 1] = arr[right]));
+ unchecked((arr[right] = temp));
+
+ return i + 1;
+}
+
+function quickSelect(arr: Float32Array, left: i32, right: i32, k: i32): f32 {
+ if (left === right) {
+ return unchecked(arr[left]);
+ }
+
+ const pivotIndex = partition(arr, left, right);
+
+ if (k === pivotIndex) {
+ return unchecked(arr[k]);
+ } else if (k < pivotIndex) {
+ return quickSelect(arr, left, pivotIndex - 1, k);
+ } else {
+ return quickSelect(arr, pivotIndex + 1, right, k);
+ }
+}
+
+export function calculateMedian(arr: Float32Array): f32 {
+ const len = arr.length;
+ if (len === 0) return 0.0;
+
+ const copy = new Float32Array(len);
+ for (let i = 0; i < len; i++) {
+ unchecked((copy[i] = arr[i]));
+ }
+
+ const mid = len >> 1;
+ if ((len & 1) === 1) {
+ return quickSelect(copy, 0, len - 1, mid);
+ } else {
+ const lower = quickSelect(copy, 0, len - 1, mid - 1);
+ const upper = quickSelect(copy, 0, len - 1, mid);
+ return (lower + upper) * 0.5;
+ }
+}
+
+export function findPeaks(
+ energies: Float32Array,
+ threshold: f32,
+ minDistance: i32,
+ peaks: Int32Array,
+): i32 {
+ const len = energies.length;
+ let peakCount: i32 = 0;
+ let lastPeak: i32 = -minDistance;
+
+ for (let i = 1; i < len - 1; i++) {
+ const curr = unchecked(energies[i]);
+ const prev = unchecked(energies[i - 1]);
+ const next = unchecked(energies[i + 1]);
+
+ if (curr > prev && curr > next && curr > threshold) {
+ if (i - lastPeak >= minDistance) {
+ if (peakCount < peaks.length) {
+ unchecked((peaks[peakCount] = i));
+ peakCount++;
+ lastPeak = i;
+ }
+ }
+ }
+ }
+
+ return peakCount;
+}
+
+export function calculateMean(arr: Float32Array): f32 {
+ const len = arr.length;
+ if (len === 0) return 0.0;
+
+ let sum: f32 = 0.0;
+ for (let i = 0; i < len; i++) {
+ sum += unchecked(arr[i]);
+ }
+ return sum / <f32>len;
+}
+
+export function calculateStdDev(arr: Float32Array, mean: f32): f32 {
+ const len = arr.length;
+ if (len === 0) return 0.0;
+
+ let sumSq: f32 = 0.0;
+ for (let i = 0; i < len; i++) {
+ const diff = unchecked(arr[i]) - mean;
+ sumSq += diff * diff;
+ }
+ return Mathf.sqrt(sumSq / <f32>len);
+}
+
+export function allocateF32(length: i32): Float32Array {
+ return new Float32Array(length);
+}
+
+export function allocateI32(length: i32): Int32Array {
+ return new Int32Array(length);
+}
diff --git a/packages/core/src/wasm/beat-detection/index.ts b/packages/core/src/wasm/beat-detection/index.ts
new file mode 100644
index 00000000..a61a22b6
--- /dev/null
+++ b/packages/core/src/wasm/beat-detection/index.ts
@@ -0,0 +1,273 @@
+export type WasmBeatDetectionExports = {
+ computeRMSEnergies(
+ samples: Float32Array,
+ windowSize: number,
+ hopSize: number,
+ energies: Float32Array,
+ ): void;
+ smoothArray(
+ input: Float32Array,
+ output: Float32Array,
+ windowSize: number,
+ ): void;
+ calculateMedian(arr: Float32Array): number;
+ findPeaks(
+ energies: Float32Array,
+ threshold: number,
+ minDistance: number,
+ peaks: Int32Array,
+ ): number;
+ calculateMean(arr: Float32Array): number;
+ calculateStdDev(arr: Float32Array, mean: number): number;
+ allocateF32(length: number): Float32Array;
+ allocateI32(length: number): Int32Array;
+ memory: WebAssembly.Memory;
+};
+
+let wasmModule: WasmBeatDetectionExports | null = null;
+let loadPromise: Promise<WasmBeatDetectionExports | null> | null = null;
+
+async function loadWasmModule(): Promise<WasmBeatDetectionExports | null> {
+ if (typeof WebAssembly === "undefined") {
+ return null;
+ }
+
+ try {
+ const wasmUrl = new URL("./build/beat.wasm", import.meta.url);
+ const response = await fetch(wasmUrl);
+ if (!response.ok) {
+ return null;
+ }
+
+ const wasmBytes = await response.arrayBuffer();
+ const { instance } = await WebAssembly.instantiate(wasmBytes, {
+ env: {
+ abort: () => {
+ throw new Error("WASM abort");
+ },
+ },
+ });
+
+ return instance.exports as unknown as WasmBeatDetectionExports;
+ } catch {
+ return null;
+ }
+}
+
+export async function initWasmBeatDetection(): Promise<boolean> {
+ if (wasmModule) {
+ return true;
+ }
+
+ if (!loadPromise) {
+ loadPromise = loadWasmModule();
+ }
+
+ wasmModule = await loadPromise;
+ return wasmModule !== null;
+}
+
+export function isWasmBeatDetectionAvailable(): boolean {
+ return wasmModule !== null;
+}
+
+function jsComputeRMSEnergies(
+ samples: Float32Array,
+ windowSize: number,
+ hopSize: number,
+ energies: Float32Array,
+): void {
+ const numSamples = samples.length;
+ const numFrames = energies.length;
+ const invWindow = 1.0 / windowSize;
+
+ for (let frame = 0; frame < numFrames; frame++) {
+ const start = frame * hopSize;
+ let sum = 0.0;
+
+ for (let i = 0; i < windowSize && start + i < numSamples; i++) {
+ const s = samples[start + i];
+ sum += s * s;
+ }
+
+ energies[frame] = Math.sqrt(sum * invWindow);
+ }
+}
+
+function jsSmoothArray(
+ input: Float32Array,
+ output: Float32Array,
+ windowSize: number,
+): void {
+ const len = input.length;
+ const halfWindow = windowSize >> 1;
+ const invWindow = 1.0 / windowSize;
+
+ for (let i = 0; i < len; i++) {
+ let sum = 0.0;
+ const start = i - halfWindow;
+ const end = i + halfWindow + 1;
+
+ for (let j = start; j < end; j++) {
+ const idx = Math.max(0, Math.min(len - 1, j));
+ sum += input[idx];
+ }
+
+ output[i] = sum * invWindow;
+ }
+}
+
+function jsCalculateMedian(arr: Float32Array): number {
+ if (arr.length === 0) return 0;
+
+ const sorted = Float32Array.from(arr).sort((a, b) => a - b);
+ const mid = arr.length >> 1;
+
+ if ((arr.length & 1) === 1) {
+ return sorted[mid];
+ }
+ return (sorted[mid - 1] + sorted[mid]) * 0.5;
+}
+
+function jsFindPeaks(
+ energies: Float32Array,
+ threshold: number,
+ minDistance: number,
+ peaks: Int32Array,
+): number {
+ const len = energies.length;
+ let peakCount = 0;
+ let lastPeak = -minDistance;
+
+ for (let i = 1; i < len - 1; i++) {
+ const curr = energies[i];
+ const prev = energies[i - 1];
+ const next = energies[i + 1];
+
+ if (curr > prev && curr > next && curr > threshold) {
+ if (i - lastPeak >= minDistance) {
+ if (peakCount < peaks.length) {
+ peaks[peakCount] = i;
+ peakCount++;
+ lastPeak = i;
+ }
+ }
+ }
+ }
+
+ return peakCount;
+}
+
+function jsCalculateMean(arr: Float32Array): number {
+ if (arr.length === 0) return 0;
+
+ let sum = 0;
+ for (let i = 0; i < arr.length; i++) {
+ sum += arr[i];
+ }
+ return sum / arr.length;
+}
+
+function jsCalculateStdDev(arr: Float32Array, mean: number): number {
+ if (arr.length === 0) return 0;
+
+ let sumSq = 0;
+ for (let i = 0; i < arr.length; i++) {
+ const diff = arr[i] - mean;
+ sumSq += diff * diff;
+ }
+ return Math.sqrt(sumSq / arr.length);
+}
+
+export class BeatDetectionProcessor {
+ private useWasm: boolean;
+
+ constructor() {
+ this.useWasm = wasmModule !== null;
+ }
+
+ async ensureWasm(): Promise<boolean> {
+ if (this.useWasm) {
+ return true;
+ }
+
+ const available = await initWasmBeatDetection();
+ if (available) {
+ this.useWasm = true;
+ }
+ return this.useWasm;
+ }
+
+ computeRMSEnergies(
+ samples: Float32Array,
+ windowSize: number,
+ hopSize: number,
+ energies: Float32Array,
+ ): void {
+ if (this.useWasm && wasmModule) {
+ wasmModule.computeRMSEnergies(samples, windowSize, hopSize, energies);
+ } else {
+ jsComputeRMSEnergies(samples, windowSize, hopSize, energies);
+ }
+ }
+
+ smoothArray(
+ input: Float32Array,
+ output: Float32Array,
+ windowSize: number,
+ ): void {
+ if (this.useWasm && wasmModule) {
+ wasmModule.smoothArray(input, output, windowSize);
+ } else {
+ jsSmoothArray(input, output, windowSize);
+ }
+ }
+
+ calculateMedian(arr: Float32Array): number {
+ if (this.useWasm && wasmModule) {
+ return wasmModule.calculateMedian(arr);
+ }
+ return jsCalculateMedian(arr);
+ }
+
+ findPeaks(
+ energies: Float32Array,
+ threshold: number,
+ minDistance: number,
+ peaks: Int32Array,
+ ): number {
+ if (this.useWasm && wasmModule) {
+ return wasmModule.findPeaks(energies, threshold, minDistance, peaks);
+ }
+ return jsFindPeaks(energies, threshold, minDistance, peaks);
+ }
+
+ calculateMean(arr: Float32Array): number {
+ if (this.useWasm && wasmModule) {
+ return wasmModule.calculateMean(arr);
+ }
+ return jsCalculateMean(arr);
+ }
+
+ calculateStdDev(arr: Float32Array, mean: number): number {
+ if (this.useWasm && wasmModule) {
+ return wasmModule.calculateStdDev(arr, mean);
+ }
+ return jsCalculateStdDev(arr, mean);
+ }
+}
+
+let cachedProcessor: BeatDetectionProcessor | null = null;
+
+export function getBeatDetectionProcessor(): BeatDetectionProcessor {
+ if (!cachedProcessor) {
+ cachedProcessor = new BeatDetectionProcessor();
+ }
+ return cachedProcessor;
+}
+
+export async function preloadWasmBeatDetection(): Promise<BeatDetectionProcessor> {
+ const processor = getBeatDetectionProcessor();
+ await processor.ensureWasm();
+ return processor;
+}
diff --git a/packages/core/src/wasm/fft/assembly/index.ts b/packages/core/src/wasm/fft/assembly/index.ts
new file mode 100644
index 00000000..eaa34709
--- /dev/null
+++ b/packages/core/src/wasm/fft/assembly/index.ts
@@ -0,0 +1,201 @@
+let size: i32 = 0;
+let cosTable: Float32Array | null = null;
+let sinTable: Float32Array | null = null;
+let reverseTable: Uint32Array | null = null;
+
+export function init(fftSize: i32): void {
+ if (fftSize <= 0 || (fftSize & (fftSize - 1)) !== 0) {
+ return;
+ }
+
+ size = fftSize;
+ const halfSize = size >> 1;
+
+ const cosTab = new Float32Array(halfSize);
+ const sinTab = new Float32Array(halfSize);
+ const revTab = new Uint32Array(size);
+
+ const twoPi: f32 = 6.283185307179586;
+ for (let i = 0; i < halfSize; i++) {
+ const angle: f32 = (-twoPi * <f32>i) / <f32>size;
+ unchecked((cosTab[i] = Mathf.cos(angle)));
+ unchecked((sinTab[i] = Mathf.sin(angle)));
+ }
+
+ const bits = <i32>Math.log2(<f64>size);
+ for (let i = 0; i < size; i++) {
+ let reversed: u32 = 0;
+ for (let j = 0; j < bits; j++) {
+ reversed = (reversed << 1) | ((<u32>i >> j) & 1);
+ }
+ unchecked((revTab[i] = reversed));
+ }
+
+ cosTable = cosTab;
+ sinTable = sinTab;
+ reverseTable = revTab;
+}
+
+export function getSize(): i32 {
+ return size;
+}
+
+export function forward(input: Float32Array, real: Float32Array, imag: Float32Array): void {
+ if (!reverseTable || !cosTable || !sinTable) return;
+ const revTable = reverseTable!;
+ const cosTab = cosTable!;
+ const sinTab = sinTable!;
+ const n = size;
+
+ for (let i = 0; i < n; i++) {
+ const rev = unchecked(revTable[i]);
+ unchecked((real[rev] = input[i]));
+ unchecked((imag[rev] = 0));
+ }
+
+ for (let len = 2; len <= n; len <<= 1) {
+ const halfLen = len >> 1;
+ const tableStep = n / len;
+
+ for (let i = 0; i < n; i += len) {
+ for (let j = 0; j < halfLen; j++) {
+ const tIdx = j * tableStep;
+ const cos = unchecked(cosTab[tIdx]);
+ const sin = unchecked(sinTab[tIdx]);
+
+ const evenIdx = i + j;
+ const oddIdx = i + j + halfLen;
+
+ const oddReal = unchecked(real[oddIdx]);
+ const oddImag = unchecked(imag[oddIdx]);
+
+ const tReal = oddReal * cos - oddImag * sin;
+ const tImag = oddReal * sin + oddImag * cos;
+
+ const evenReal = unchecked(real[evenIdx]);
+ const evenImag = unchecked(imag[evenIdx]);
+
+ unchecked((real[oddIdx] = evenReal - tReal));
+ unchecked((imag[oddIdx] = evenImag - tImag));
+ unchecked((real[evenIdx] = evenReal + tReal));
+ unchecked((imag[evenIdx] = evenImag + tImag));
+ }
+ }
+ }
+}
+
+export function inverse(real: Float32Array, imag: Float32Array, output: Float32Array): void {
+ if (!reverseTable || !cosTable || !sinTable) return;
+ const revTable = reverseTable!;
+ const cosTab = cosTable!;
+ const sinTab = sinTable!;
+ const n = size;
+ const outReal = new Float32Array(n);
+ const outImag = new Float32Array(n);
+
+ for (let i = 0; i < n; i++) {
+ const rev = unchecked(revTable[i]);
+ unchecked((outReal[rev] = real[i]));
+ unchecked((outImag[rev] = -imag[i]));
+ }
+
+ for (let len = 2; len <= n; len <<= 1) {
+ const halfLen = len >> 1;
+ const tableStep = n / len;
+
+ for (let i = 0; i < n; i += len) {
+ for (let j = 0; j < halfLen; j++) {
+ const tIdx = j * tableStep;
+ const cos = unchecked(cosTab[tIdx]);
+ const sin = unchecked(sinTab[tIdx]);
+
+ const evenIdx = i + j;
+ const oddIdx = i + j + halfLen;
+
+ const oddReal = unchecked(outReal[oddIdx]);
+ const oddImag = unchecked(outImag[oddIdx]);
+
+ const tReal = oddReal * cos - oddImag * sin;
+ const tImag = oddReal * sin + oddImag * cos;
+
+ const evenReal = unchecked(outReal[evenIdx]);
+ const evenImag = unchecked(outImag[evenIdx]);
+
+ unchecked((outReal[oddIdx] = evenReal - tReal));
+ unchecked((outImag[oddIdx] = evenImag - tImag));
+ unchecked((outReal[evenIdx] = evenReal + tReal));
+ unchecked((outImag[evenIdx] = evenImag + tImag));
+ }
+ }
+ }
+
+ const invN: f32 = 1.0 / <f32>n;
+ for (let i = 0; i < n; i++) {
+ unchecked((output[i] = outReal[i] * invN));
+ }
+}
+
+export function getMagnitude(real: Float32Array, imag: Float32Array, magnitude: Float32Array): void {
+ const halfSize = size >> 1;
+ for (let i = 0; i < halfSize; i++) {
+ const r = unchecked(real[i]);
+ const im = unchecked(imag[i]);
+ unchecked((magnitude[i] = Mathf.sqrt(r * r + im * im)));
+ }
+}
+
+export function getMagnitudeAndPhase(
+ real: Float32Array,
+ imag: Float32Array,
+ magnitudes: Float32Array,
+ phases: Float32Array,
+): void {
+ const halfSize = size >> 1;
+ for (let i = 0; i < halfSize; i++) {
+ const r = unchecked(real[i]);
+ const im = unchecked(imag[i]);
+ unchecked((magnitudes[i] = Mathf.sqrt(r * r + im * im)));
+ unchecked((phases[i] = Mathf.atan2(im, r)));
+ }
+}
+
+export function fromMagnitudeAndPhase(
+ magnitudes: Float32Array,
+ phases: Float32Array,
+ real: Float32Array,
+ imag: Float32Array,
+): void {
+ const n = size;
+ const halfSize = magnitudes.length;
+
+ for (let i = 0; i < halfSize; i++) {
+ const mag = unchecked(magnitudes[i]);
+ const phase = unchecked(phases[i]);
+ unchecked((real[i] = mag * Mathf.cos(phase)));
+ unchecked((imag[i] = mag * Mathf.sin(phase)));
+ }
+
+ for (let i = 1; i < halfSize; i++) {
+ unchecked((real[n - i] = real[i]));
+ unchecked((imag[n - i] = -imag[i]));
+ }
+}
+
+export function applyHannWindow(input: Float32Array, output: Float32Array): void {
+ const n = input.length;
+ const twoPi: f32 = 6.283185307179586;
+ const nMinus1: f32 = <f32>(n - 1);
+
+ for (let i = 0; i < n; i++) {
+ const windowVal: f32 = 0.5 * (1.0 - Mathf.cos((twoPi * <f32>i) / nMinus1));
+ unchecked((output[i] = input[i] * windowVal));
+ }
+}
+
+export function allocateF32(length: i32): Float32Array {
+ return new Float32Array(length);
+}
+
+export function allocateU32(length: i32): Uint32Array {
+ return new Uint32Array(length);
+}
diff --git a/packages/core/src/wasm/fft/index.ts b/packages/core/src/wasm/fft/index.ts
new file mode 100644
index 00000000..958bcb7c
--- /dev/null
+++ b/packages/core/src/wasm/fft/index.ts
@@ -0,0 +1,226 @@
+import { FFT as JsFFT } from "../../audio/fft";
+
+export type WasmFFTExports = {
+ init(size: number): void;
+ getSize(): number;
+ forward(input: Float32Array, real: Float32Array, imag: Float32Array): void;
+ inverse(real: Float32Array, imag: Float32Array, output: Float32Array): void;
+ getMagnitude(
+ real: Float32Array,
+ imag: Float32Array,
+ magnitude: Float32Array,
+ ): void;
+ getMagnitudeAndPhase(
+ real: Float32Array,
+ imag: Float32Array,
+ magnitudes: Float32Array,
+ phases: Float32Array,
+ ): void;
+ fromMagnitudeAndPhase(
+ magnitudes: Float32Array,
+ phases: Float32Array,
+ real: Float32Array,
+ imag: Float32Array,
+ ): void;
+ applyHannWindow(input: Float32Array, output: Float32Array): void;
+ allocateF32(length: number): Float32Array;
+ allocateU32(length: number): Uint32Array;
+ memory: WebAssembly.Memory;
+};
+
+let wasmModule: WasmFFTExports | null = null;
+let loadPromise: Promise<WasmFFTExports | null> | null = null;
+let currentWasmSize = 0;
+
+async function loadWasmModule(): Promise<WasmFFTExports | null> {
+ if (typeof WebAssembly === "undefined") {
+ return null;
+ }
+
+ try {
+ const wasmUrl = new URL("./build/fft.wasm", import.meta.url);
+ const response = await fetch(wasmUrl);
+ if (!response.ok) {
+ return null;
+ }
+
+ const wasmBytes = await response.arrayBuffer();
+ const { instance } = await WebAssembly.instantiate(wasmBytes, {
+ env: {
+ abort: () => {
+ throw new Error("WASM abort");
+ },
+ },
+ });
+
+ return instance.exports as unknown as WasmFFTExports;
+ } catch {
+ return null;
+ }
+}
+
+export async function initWasmFFT(): Promise<boolean> {
+ if (wasmModule) {
+ return true;
+ }
+
+ if (!loadPromise) {
+ loadPromise = loadWasmModule();
+ }
+
+ wasmModule = await loadPromise;
+ return wasmModule !== null;
+}
+
+export function isWasmFFTAvailable(): boolean {
+ return wasmModule !== null;
+}
+
+export class WasmFFT {
+ private readonly size: number;
+ private readonly jsFFT: JsFFT;
+ private useWasm: boolean;
+
+ private real: Float32Array;
+ private imag: Float32Array;
+
+ constructor(size: number) {
+ if (size <= 0 || (size & (size - 1)) !== 0) {
+ throw new Error("FFT size must be a power of 2");
+ }
+
+ this.size = size;
+ this.jsFFT = new JsFFT(size);
+ this.useWasm = false;
+ this.real = new Float32Array(size);
+ this.imag = new Float32Array(size);
+
+ if (wasmModule && currentWasmSize !== size) {
+ wasmModule.init(size);
+ currentWasmSize = size;
+ this.useWasm = true;
+ } else if (wasmModule && currentWasmSize === size) {
+ this.useWasm = true;
+ }
+ }
+
+ async ensureWasm(): Promise<boolean> {
+ if (this.useWasm) {
+ return true;
+ }
+
+ const available = await initWasmFFT();
+ if (available && wasmModule) {
+ if (currentWasmSize !== this.size) {
+ wasmModule.init(this.size);
+ currentWasmSize = this.size;
+ }
+ this.useWasm = true;
+ }
+ return this.useWasm;
+ }
+
+ getSize(): number {
+ return this.size;
+ }
+
+ private ensureWasmSize(): void {
+ if (this.useWasm && wasmModule && currentWasmSize !== this.size) {
+ wasmModule.init(this.size);
+ currentWasmSize = this.size;
+ }
+ }
+
+ forward(input: Float32Array): { real: Float32Array; imag: Float32Array } {
+ if (this.useWasm && wasmModule) {
+ this.ensureWasmSize();
+ wasmModule.forward(input, this.real, this.imag);
+ return { real: this.real.slice(), imag: this.imag.slice() };
+ }
+ return this.jsFFT.forward(input);
+ }
+
+ inverse(real: Float32Array, imag: Float32Array): Float32Array {
+ if (this.useWasm && wasmModule) {
+ this.ensureWasmSize();
+ const output = new Float32Array(this.size);
+ wasmModule.inverse(real, imag, output);
+ return output;
+ }
+ return this.jsFFT.inverse(real, imag);
+ }
+
+ getMagnitude(real: Float32Array, imag: Float32Array): Float32Array {
+ if (this.useWasm && wasmModule) {
+ this.ensureWasmSize();
+ const magnitude = new Float32Array(this.size / 2);
+ wasmModule.getMagnitude(real, imag, magnitude);
+ return magnitude;
+ }
+ return this.jsFFT.getMagnitude(real, imag);
+ }
+
+ getPower(real: Float32Array, imag: Float32Array): Float32Array {
+ return this.jsFFT.getPower(real, imag);
+ }
+
+ getMagnitudeAndPhase(
+ real: Float32Array,
+ imag: Float32Array,
+ ): { magnitudes: Float32Array; phases: Float32Array } {
+ if (this.useWasm && wasmModule) {
+ this.ensureWasmSize();
+ const magnitudes = new Float32Array(this.size / 2);
+ const phases = new Float32Array(this.size / 2);
+ wasmModule.getMagnitudeAndPhase(real, imag, magnitudes, phases);
+ return { magnitudes, phases };
+ }
+ return this.jsFFT.getMagnitudeAndPhase(real, imag);
+ }
+
+ fromMagnitudeAndPhase(
+ magnitudes: Float32Array,
+ phases: Float32Array,
+ ): { real: Float32Array; imag: Float32Array } {
+ if (this.useWasm && wasmModule) {
+ this.ensureWasmSize();
+ const real = new Float32Array(this.size);
+ const imag = new Float32Array(this.size);
+ wasmModule.fromMagnitudeAndPhase(magnitudes, phases, real, imag);
+ return { real, imag };
+ }
+ return this.jsFFT.fromMagnitudeAndPhase(magnitudes, phases);
+ }
+
+ applyHannWindow(data: Float32Array): Float32Array {
+ if (this.useWasm && wasmModule) {
+ this.ensureWasmSize();
+ const output = new Float32Array(data.length);
+ wasmModule.applyHannWindow(data, output);
+ return output;
+ }
+ return this.jsFFT.applyHannWindow(data);
+ }
+
+ applySynthesisWindow(data: Float32Array): Float32Array {
+ return this.jsFFT.applySynthesisWindow(data);
+ }
+}
+
+let cachedWasmFFT: WasmFFT | null = null;
+let cachedWasmFFTSize = 0;
+
+export function getWasmFFT(size: number): WasmFFT {
+ if (cachedWasmFFT && cachedWasmFFTSize === size) {
+ return cachedWasmFFT;
+ }
+ cachedWasmFFT = new WasmFFT(size);
+ cachedWasmFFTSize = size;
+ return cachedWasmFFT;
+}
+
+export async function preloadWasmFFT(size: number): Promise<WasmFFT> {
+ const fft = getWasmFFT(size);
+ await fft.ensureWasm();
+ return fft;
+}
diff --git a/packages/core/src/wasm/index.ts b/packages/core/src/wasm/index.ts
new file mode 100644
index 00000000..2eb954b4
--- /dev/null
+++ b/packages/core/src/wasm/index.ts
@@ -0,0 +1,45 @@
+import { initWasmFFT, isWasmFFTAvailable } from "./fft";
+import { initWasmWav, isWasmWavAvailable } from "./wav";
+import { initWasmBeatDetection, isWasmBeatDetectionAvailable } from "./beat-detection";
+
+export { WasmFFT, getWasmFFT, preloadWasmFFT, initWasmFFT, isWasmFFTAvailable } from "./fft";
+export { WavEncoder, getWavEncoder, preloadWasmWav, initWasmWav, isWasmWavAvailable } from "./wav";
+export {
+ BeatDetectionProcessor,
+ getBeatDetectionProcessor,
+ preloadWasmBeatDetection,
+ initWasmBeatDetection,
+ isWasmBeatDetectionAvailable,
+} from "./beat-detection";
+
+export type WasmModuleStatus = {
+ fft: "loading" | "ready" | "unavailable";
+ wav: "loading" | "ready" | "unavailable";
+ beatDetection: "loading" | "ready" | "unavailable";
+};
+
+export function getWasmModuleStatus(): WasmModuleStatus {
+ return {
+ fft: isWasmFFTAvailable() ? "ready" : "unavailable",
+ wav: isWasmWavAvailable() ? "ready" : "unavailable",
+ beatDetection: isWasmBeatDetectionAvailable() ? "ready" : "unavailable",
+ };
+}
+
+export async function preloadAllWasmModules(): Promise<WasmModuleStatus> {
+ const results = await Promise.allSettled([
+ initWasmFFT(),
+ initWasmWav(),
+ initWasmBeatDetection(),
+ ]);
+
+ return {
+ fft: results[0].status === "fulfilled" && results[0].value ? "ready" : "unavailable",
+ wav: results[1].status === "fulfilled" && results[1].value ? "ready" : "unavailable",
+ beatDetection: results[2].status === "fulfilled" && results[2].value ? "ready" : "unavailable",
+ };
+}
+
+export function isWebAssemblySupported(): boolean {
+ return typeof WebAssembly !== "undefined" && typeof WebAssembly.instantiate === "function";
+}
diff --git a/packages/core/src/wasm/wav/assembly/index.ts b/packages/core/src/wasm/wav/assembly/index.ts
new file mode 100644
index 00000000..5224b995
--- /dev/null
+++ b/packages/core/src/wasm/wav/assembly/index.ts
@@ -0,0 +1,154 @@
+export function encodeWav16Mono(
+ samples: Float32Array,
+ output: Uint8Array,
+ dataOffset: i32,
+): void {
+ const numSamples = samples.length;
+
+ for (let i = 0; i < numSamples; i++) {
+ let sample = unchecked(samples[i]);
+ sample = sample < -1.0 ? -1.0 : sample > 1.0 ? 1.0 : sample;
+
+ const intSample: i16 = <i16>(sample * 32767.0);
+ const offset = dataOffset + i * 2;
+
+ unchecked((output[offset] = <u8>(intSample & 0xff)));
+ unchecked((output[offset + 1] = <u8>((intSample >> 8) & 0xff)));
+ }
+}
+
+export function encodeWav16Stereo(
+ left: Float32Array,
+ right: Float32Array,
+ output: Uint8Array,
+ dataOffset: i32,
+): void {
+ const numSamples = left.length;
+
+ for (let i = 0; i < numSamples; i++) {
+ let leftSample = unchecked(left[i]);
+ let rightSample = unchecked(right[i]);
+
+ leftSample = leftSample < -1.0 ? -1.0 : leftSample > 1.0 ? 1.0 : leftSample;
+ rightSample =
+ rightSample < -1.0 ? -1.0 : rightSample > 1.0 ? 1.0 : rightSample;
+
+ const leftInt: i16 = <i16>(leftSample * 32767.0);
+ const rightInt: i16 = <i16>(rightSample * 32767.0);
+ const offset = dataOffset + i * 4;
+
+ unchecked((output[offset] = <u8>(leftInt & 0xff)));
+ unchecked((output[offset + 1] = <u8>((leftInt >> 8) & 0xff)));
+ unchecked((output[offset + 2] = <u8>(rightInt & 0xff)));
+ unchecked((output[offset + 3] = <u8>((rightInt >> 8) & 0xff)));
+ }
+}
+
+export function encodeWav24Stereo(
+ left: Float32Array,
+ right: Float32Array,
+ output: Uint8Array,
+ dataOffset: i32,
+): void {
+ const numSamples = left.length;
+ const maxVal: f32 = 8388607.0;
+
+ for (let i = 0; i < numSamples; i++) {
+ let leftSample = unchecked(left[i]);
+ let rightSample = unchecked(right[i]);
+
+ leftSample = leftSample < -1.0 ? -1.0 : leftSample > 1.0 ? 1.0 : leftSample;
+ rightSample =
+ rightSample < -1.0 ? -1.0 : rightSample > 1.0 ? 1.0 : rightSample;
+
+ const leftInt: i32 = <i32>(leftSample * maxVal);
+ const rightInt: i32 = <i32>(rightSample * maxVal);
+ const offset = dataOffset + i * 6;
+
+ unchecked((output[offset] = <u8>(leftInt & 0xff)));
+ unchecked((output[offset + 1] = <u8>((leftInt >> 8) & 0xff)));
+ unchecked((output[offset + 2] = <u8>((leftInt >> 16) & 0xff)));
+ unchecked((output[offset + 3] = <u8>(rightInt & 0xff)));
+ unchecked((output[offset + 4] = <u8>((rightInt >> 8) & 0xff)));
+ unchecked((output[offset + 5] = <u8>((rightInt >> 16) & 0xff)));
+ }
+}
+
+export function writeWavHeader(
+ output: Uint8Array,
+ numChannels: i32,
+ sampleRate: i32,
+ bitsPerSample: i32,
+ numSamples: i32,
+): void {
+ const bytesPerSample = bitsPerSample >> 3;
+ const blockAlign = numChannels * bytesPerSample;
+ const byteRate = sampleRate * blockAlign;
+ const dataSize = numSamples * blockAlign;
+ const fileSize = 36 + dataSize;
+
+ unchecked((output[0] = 0x52));
+ unchecked((output[1] = 0x49));
+ unchecked((output[2] = 0x46));
+ unchecked((output[3] = 0x46));
+
+ unchecked((output[4] = <u8>(fileSize & 0xff)));
+ unchecked((output[5] = <u8>((fileSize >> 8) & 0xff)));
+ unchecked((output[6] = <u8>((fileSize >> 16) & 0xff)));
+ unchecked((output[7] = <u8>((fileSize >> 24) & 0xff)));
+
+ unchecked((output[8] = 0x57));
+ unchecked((output[9] = 0x41));
+ unchecked((output[10] = 0x56));
+ unchecked((output[11] = 0x45));
+
+ unchecked((output[12] = 0x66));
+ unchecked((output[13] = 0x6d));
+ unchecked((output[14] = 0x74));
+ unchecked((output[15] = 0x20));
+
+ unchecked((output[16] = 16));
+ unchecked((output[17] = 0));
+ unchecked((output[18] = 0));
+ unchecked((output[19] = 0));
+
+ unchecked((output[20] = 1));
+ unchecked((output[21] = 0));
+
+ unchecked((output[22] = <u8>(numChannels & 0xff)));
+ unchecked((output[23] = <u8>((numChannels >> 8) & 0xff)));
+
+ unchecked((output[24] = <u8>(sampleRate & 0xff)));
+ unchecked((output[25] = <u8>((sampleRate >> 8) & 0xff)));
+ unchecked((output[26] = <u8>((sampleRate >> 16) & 0xff)));
+ unchecked((output[27] = <u8>((sampleRate >> 24) & 0xff)));
+
+ unchecked((output[28] = <u8>(byteRate & 0xff)));
+ unchecked((output[29] = <u8>((byteRate >> 8) & 0xff)));
+ unchecked((output[30] = <u8>((byteRate >> 16) & 0xff)));
+ unchecked((output[31] = <u8>((byteRate >> 24) & 0xff)));
+
+ unchecked((output[32] = <u8>(blockAlign & 0xff)));
+ unchecked((output[33] = <u8>((blockAlign >> 8) & 0xff)));
+
+ unchecked((output[34] = <u8>(bitsPerSample & 0xff)));
+ unchecked((output[35] = <u8>((bitsPerSample >> 8) & 0xff)));
+
+ unchecked((output[36] = 0x64));
+ unchecked((output[37] = 0x61));
+ unchecked((output[38] = 0x74));
+ unchecked((output[39] = 0x61));
+
+ unchecked((output[40] = <u8>(dataSize & 0xff)));
+ unchecked((output[41] = <u8>((dataSize >> 8) & 0xff)));
+ unchecked((output[42] = <u8>((dataSize >> 16) & 0xff)));
+ unchecked((output[43] = <u8>((dataSize >> 24) & 0xff)));
+}
+
+export function allocateU8(length: i32): Uint8Array {
+ return new Uint8Array(length);
+}
+
+export function allocateF32(length: i32): Float32Array {
+ return new Float32Array(length);
+}
diff --git a/packages/core/src/wasm/wav/index.ts b/packages/core/src/wasm/wav/index.ts
new file mode 100644
index 00000000..1bcca960
--- /dev/null
+++ b/packages/core/src/wasm/wav/index.ts
@@ -0,0 +1,342 @@
+export type WasmWavExports = {
+ encodeWav16Mono(
+ samples: Float32Array,
+ output: Uint8Array,
+ dataOffset: number,
+ ): void;
+ encodeWav16Stereo(
+ left: Float32Array,
+ right: Float32Array,
+ output: Uint8Array,
+ dataOffset: number,
+ ): void;
+ encodeWav24Stereo(
+ left: Float32Array,
+ right: Float32Array,
+ output: Uint8Array,
+ dataOffset: number,
+ ): void;
+ writeWavHeader(
+ output: Uint8Array,
+ numChannels: number,
+ sampleRate: number,
+ bitsPerSample: number,
+ numSamples: number,
+ ): void;
+ allocateU8(length: number): Uint8Array;
+ allocateF32(length: number): Float32Array;
+ memory: WebAssembly.Memory;
+};
+
+let wasmModule: WasmWavExports | null = null;
+let loadPromise: Promise<WasmWavExports | null> | null = null;
+
+async function loadWasmModule(): Promise<WasmWavExports | null> {
+ if (typeof WebAssembly === "undefined") {
+ return null;
+ }
+
+ try {
+ const wasmUrl = new URL("./build/wav.wasm", import.meta.url);
+ const response = await fetch(wasmUrl);
+ if (!response.ok) {
+ return null;
+ }
+
+ const wasmBytes = await response.arrayBuffer();
+ const { instance } = await WebAssembly.instantiate(wasmBytes, {
+ env: {
+ abort: () => {
+ throw new Error("WASM abort");
+ },
+ },
+ });
+
+ return instance.exports as unknown as WasmWavExports;
+ } catch {
+ return null;
+ }
+}
+
+export async function initWasmWav(): Promise<boolean> {
+ if (wasmModule) {
+ return true;
+ }
+
+ if (!loadPromise) {
+ loadPromise = loadWasmModule();
+ }
+
+ wasmModule = await loadPromise;
+ return wasmModule !== null;
+}
+
+export function isWasmWavAvailable(): boolean {
+ return wasmModule !== null;
+}
+
+function jsEncodeWav16Mono(
+ samples: Float32Array,
+ output: Uint8Array,
+ dataOffset: number,
+): void {
+ for (let i = 0; i < samples.length; i++) {
+ let sample = samples[i];
+ sample = Math.max(-1, Math.min(1, sample));
+ const intSample = Math.round(sample * 32767);
+ const offset = dataOffset + i * 2;
+ output[offset] = intSample & 0xff;
+ output[offset + 1] = (intSample >> 8) & 0xff;
+ }
+}
+
+function jsEncodeWav16Stereo(
+ left: Float32Array,
+ right: Float32Array,
+ output: Uint8Array,
+ dataOffset: number,
+): void {
+ for (let i = 0; i < left.length; i++) {
+ let leftSample = Math.max(-1, Math.min(1, left[i]));
+ let rightSample = Math.max(-1, Math.min(1, right[i]));
+
+ const leftInt = Math.round(leftSample * 32767);
+ const rightInt = Math.round(rightSample * 32767);
+ const offset = dataOffset + i * 4;
+
+ output[offset] = leftInt & 0xff;
+ output[offset + 1] = (leftInt >> 8) & 0xff;
+ output[offset + 2] = rightInt & 0xff;
+ output[offset + 3] = (rightInt >> 8) & 0xff;
+ }
+}
+
+function jsEncodeWav24Stereo(
+ left: Float32Array,
+ right: Float32Array,
+ output: Uint8Array,
+ dataOffset: number,
+): void {
+ const maxVal = 8388607;
+ for (let i = 0; i < left.length; i++) {
+ let leftSample = Math.max(-1, Math.min(1, left[i]));
+ let rightSample = Math.max(-1, Math.min(1, right[i]));
+
+ const leftInt = Math.round(leftSample * maxVal);
+ const rightInt = Math.round(rightSample * maxVal);
+ const offset = dataOffset + i * 6;
+
+ output[offset] = leftInt & 0xff;
+ output[offset + 1] = (leftInt >> 8) & 0xff;
+ output[offset + 2] = (leftInt >> 16) & 0xff;
+ output[offset + 3] = rightInt & 0xff;
+ output[offset + 4] = (rightInt >> 8) & 0xff;
+ output[offset + 5] = (rightInt >> 16) & 0xff;
+ }
+}
+
+function jsWriteWavHeader(
+ output: Uint8Array,
+ numChannels: number,
+ sampleRate: number,
+ bitsPerSample: number,
+ numSamples: number,
+): void {
+ const bytesPerSample = bitsPerSample >> 3;
+ const blockAlign = numChannels * bytesPerSample;
+ const byteRate = sampleRate * blockAlign;
+ const dataSize = numSamples * blockAlign;
+ const fileSize = 36 + dataSize;
+
+ output[0] = 0x52;
+ output[1] = 0x49;
+ output[2] = 0x46;
+ output[3] = 0x46;
+
+ output[4] = fileSize & 0xff;
+ output[5] = (fileSize >> 8) & 0xff;
+ output[6] = (fileSize >> 16) & 0xff;
+ output[7] = (fileSize >> 24) & 0xff;
+
+ output[8] = 0x57;
+ output[9] = 0x41;
+ output[10] = 0x56;
+ output[11] = 0x45;
+
+ output[12] = 0x66;
+ output[13] = 0x6d;
+ output[14] = 0x74;
+ output[15] = 0x20;
+
+ output[16] = 16;
+ output[17] = 0;
+ output[18] = 0;
+ output[19] = 0;
+
+ output[20] = 1;
+ output[21] = 0;
+
+ output[22] = numChannels & 0xff;
+ output[23] = (numChannels >> 8) & 0xff;
+
+ output[24] = sampleRate & 0xff;
+ output[25] = (sampleRate >> 8) & 0xff;
+ output[26] = (sampleRate >> 16) & 0xff;
+ output[27] = (sampleRate >> 24) & 0xff;
+
+ output[28] = byteRate & 0xff;
+ output[29] = (byteRate >> 8) & 0xff;
+ output[30] = (byteRate >> 16) & 0xff;
+ output[31] = (byteRate >> 24) & 0xff;
+
+ output[32] = blockAlign & 0xff;
+ output[33] = (blockAlign >> 8) & 0xff;
+
+ output[34] = bitsPerSample & 0xff;
+ output[35] = (bitsPerSample >> 8) & 0xff;
+
+ output[36] = 0x64;
+ output[37] = 0x61;
+ output[38] = 0x74;
+ output[39] = 0x61;
+
+ output[40] = dataSize & 0xff;
+ output[41] = (dataSize >> 8) & 0xff;
+ output[42] = (dataSize >> 16) & 0xff;
+ output[43] = (dataSize >> 24) & 0xff;
+}
+
+export class WavEncoder {
+ private useWasm: boolean;
+
+ constructor() {
+ this.useWasm = wasmModule !== null;
+ }
+
+ async ensureWasm(): Promise<boolean> {
+ if (this.useWasm) {
+ return true;
+ }
+
+ const available = await initWasmWav();
+ if (available) {
+ this.useWasm = true;
+ }
+ return this.useWasm;
+ }
+
+ encodeWav16Mono(
+ samples: Float32Array,
+ output: Uint8Array,
+ dataOffset: number,
+ ): void {
+ if (this.useWasm && wasmModule) {
+ wasmModule.encodeWav16Mono(samples, output, dataOffset);
+ } else {
+ jsEncodeWav16Mono(samples, output, dataOffset);
+ }
+ }
+
+ encodeWav16Stereo(
+ left: Float32Array,
+ right: Float32Array,
+ output: Uint8Array,
+ dataOffset: number,
+ ): void {
+ if (this.useWasm && wasmModule) {
+ wasmModule.encodeWav16Stereo(left, right, output, dataOffset);
+ } else {
+ jsEncodeWav16Stereo(left, right, output, dataOffset);
+ }
+ }
+
+ encodeWav24Stereo(
+ left: Float32Array,
+ right: Float32Array,
+ output: Uint8Array,
+ dataOffset: number,
+ ): void {
+ if (this.useWasm && wasmModule) {
+ wasmModule.encodeWav24Stereo(left, right, output, dataOffset);
+ } else {
+ jsEncodeWav24Stereo(left, right, output, dataOffset);
+ }
+ }
+
+ writeWavHeader(
+ output: Uint8Array,
+ numChannels: number,
+ sampleRate: number,
+ bitsPerSample: number,
+ numSamples: number,
+ ): void {
+ if (this.useWasm && wasmModule) {
+ wasmModule.writeWavHeader(
+ output,
+ numChannels,
+ sampleRate,
+ bitsPerSample,
+ numSamples,
+ );
+ } else {
+ jsWriteWavHeader(output, numChannels, sampleRate, bitsPerSample, numSamples);
+ }
+ }
+
+ encodeFullWav(
+ samples: Float32Array[],
+ sampleRate: number,
+ bitsPerSample: 16 | 24 = 16,
+ ): Uint8Array {
+ const numChannels = samples.length;
+ const numSamples = samples[0].length;
+ const bytesPerSample = bitsPerSample >> 3;
+ const dataSize = numSamples * numChannels * bytesPerSample;
+ const output = new Uint8Array(44 + dataSize);
+
+ this.writeWavHeader(output, numChannels, sampleRate, bitsPerSample, numSamples);
+
+ if (numChannels === 1 && bitsPerSample === 16) {
+ this.encodeWav16Mono(samples[0], output, 44);
+ } else if (numChannels === 1 && bitsPerSample === 24) {
+ this.encodeWav24Mono(samples[0], output, 44);
+ } else if (bitsPerSample === 16) {
+ this.encodeWav16Stereo(samples[0], samples[1], output, 44);
+ } else {
+ this.encodeWav24Stereo(samples[0], samples[1], output, 44);
+ }
+
+ return output;
+ }
+
+ private encodeWav24Mono(
+ samples: Float32Array,
+ output: Uint8Array,
+ dataOffset: number,
+ ): void {
+ const maxVal = 8388607;
+ for (let i = 0; i < samples.length; i++) {
+ let sample = Math.max(-1, Math.min(1, samples[i]));
+ const intSample = Math.round(sample * maxVal);
+ const offset = dataOffset + i * 3;
+ output[offset] = intSample & 0xff;
+ output[offset + 1] = (intSample >> 8) & 0xff;
+ output[offset + 2] = (intSample >> 16) & 0xff;
+ }
+ }
+}
+
+let cachedEncoder: WavEncoder | null = null;
+
+export function getWavEncoder(): WavEncoder {
+ if (!cachedEncoder) {
+ cachedEncoder = new WavEncoder();
+ }
+ return cachedEncoder;
+}
+
+export async function preloadWasmWav(): Promise<WavEncoder> {
+ const encoder = getWavEncoder();
+ await encoder.ensureWasm();
+ return encoder;
+}
diff --git a/packages/core/tsconfig.json b/packages/core/tsconfig.json
index 4fc65459..8dcd176a 100644
--- a/packages/core/tsconfig.json
+++ b/packages/core/tsconfig.json
@@ -10,5 +10,6 @@
"@openreel/core/*": ["./src/*"]
}
},
- "include": ["src"]
+ "include": ["src"],
+ "exclude": ["src/wasm/**/assembly"]
}
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 66063b32..af1cfd69 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -18,76 +18,6 @@ importers:
specifier: ^1.25.3
version: 1.25.3
- apps/animate:
- dependencies:
- '@google/genai':
- specifier: ^1.35.0
- version: 1.36.0
- '@openreel/core':
- specifier: workspace:*
- version: link:../../packages/core
- class-variance-authority:
- specifier: ^0.7.1
- version: 0.7.1
- clsx:
- specifier: ^2.1.1
- version: 2.1.1
- idb-keyval:
- specifier: ^6.2.2
- version: 6.2.2
- immer:
- specifier: ^11.0.1
- version: 11.0.1
- lucide-react:
- specifier: ^0.562.0
- version: 0.562.0([email protected])
- react:
- specifier: ^19.2.3
- version: 19.2.3
- react-dom:
- specifier: ^19.2.3
- version: 19.2.3([email protected])
- tailwind-merge:
- specifier: ^3.4.0
- version: 3.4.0
- uuid:
- specifier: ^13.0.0
- version: 13.0.0
- zustand:
- specifier: ^4.5.2
- devDependencies:
- '@types/node':
- specifier: ^22.14.0
- version: 22.19.6
- '@types/react':
- specifier: ^18.3.3
- version: 18.3.27
- '@types/react-dom':
- specifier: ^18.3.0
- version: 18.3.7(@types/[email protected])
- '@types/uuid':
- specifier: ^11.0.0
- version: 11.0.0
- '@vitejs/plugin-react':
- specifier: ^5.0.0
- autoprefixer:
- specifier: ^10.4.19
- version: 10.4.22([email protected])
- postcss:
- specifier: ^8.4.38
- version: 8.5.6
- tailwindcss:
- specifier: ^3.4.4
- version: 3.4.18
- typescript:
- specifier: ~5.8.2
- version: 5.8.3
- vite:
- specifier: ^6.2.0
- version: 6.4.1(@types/[email protected])([email protected])
-
apps/cloud:
dependencies:
hono:
@@ -261,6 +191,9 @@ importers:
'@types/uuid':
specifier: ^11.0.0
version: 11.0.0
+ assemblyscript:
+ specifier: ^0.27.0
+ version: 0.27.37
fast-check:
specifier: ^3.19.0
version: 3.23.2
@@ -470,12 +403,6 @@ packages:
cpu: [ppc64]
os: [aix]
- '@esbuild/[email protected]':
- resolution: {integrity: sha512-Hhmwd6CInZ3dwpuGTF8fJG6yoWmsToE+vYgD4nytZVxcu1ulHpUQRAB1UJ8+N1Am3Mz4+xOByoQoSZf4D+CpkA==}
- engines: {node: '>=18'}
- cpu: [ppc64]
- os: [aix]
-
'@esbuild/[email protected]':
resolution: {integrity: sha512-KBMWvEZooR7+kzY0BtbTQn0OAYY7CsiydT63pVEaPtVYF0hXbUaOyZog37DKxK7NF3XacBJOpYT4adIJh+avxA==}
engines: {node: '>=12'}
@@ -488,12 +415,6 @@ packages:
cpu: [arm64]
os: [android]
- '@esbuild/[email protected]':
- resolution: {integrity: sha512-6AAmLG7zwD1Z159jCKPvAxZd4y/VTO0VkprYy+3N2FtJ8+BQWFXU+OxARIwA46c5tdD9SsKGZ/1ocqBS/gAKHg==}
- engines: {node: '>=18'}
- cpu: [arm64]
- os: [android]
-
'@esbuild/[email protected]':
resolution: {integrity: sha512-rIKddzqhmav7MSmoFCmDIb6e2W57geRsM94gV2l38fzhXMwq7hZoClug9USI2pFRGL06f4IOPHHpFNOkWieR8A==}
engines: {node: '>=12'}
@@ -506,12 +427,6 @@ packages:
cpu: [arm]
os: [android]
- '@esbuild/[email protected]':
- resolution: {integrity: sha512-VJ+sKvNA/GE7Ccacc9Cha7bpS8nyzVv0jdVgwNDaR4gDMC/2TTRc33Ip8qrNYUcpkOHUT5OZ0bUcNNVZQ9RLlg==}
- engines: {node: '>=18'}
- cpu: [arm]
- os: [android]
-
'@esbuild/[email protected]':
resolution: {integrity: sha512-uUTTc4xGNDT7YSArp/zbtmbhO0uEEK9/ETW29Wk1thYUJBz3IVnvgEiEwEa9IeLyvnpKrWK64Utw2bgUmDveww==}
engines: {node: '>=12'}
@@ -524,12 +439,6 @@ packages:
cpu: [x64]
os: [android]
- '@esbuild/[email protected]':
- resolution: {integrity: sha512-5jbb+2hhDHx5phYR2By8GTWEzn6I9UqR11Kwf22iKbNpYrsmRB18aX/9ivc5cabcUiAT/wM+YIZ6SG9QO6a8kg==}
- engines: {node: '>=18'}
- cpu: [x64]
- os: [android]
-
'@esbuild/[email protected]':
resolution: {integrity: sha512-80wEoCfF/hFKM6WE1FyBHc9SfUblloAWx6FJkFWTWiCoht9Mc0ARGEM47e67W9rI09YoUxJL68WHfDRYEAvOhg==}
engines: {node: '>=12'}
@@ -542,12 +451,6 @@ packages:
cpu: [arm64]
os: [darwin]
- '@esbuild/[email protected]':
- resolution: {integrity: sha512-N3zl+lxHCifgIlcMUP5016ESkeQjLj/959RxxNYIthIg+CQHInujFuXeWbWMgnTo4cp5XVHqFPmpyu9J65C1Yg==}
- engines: {node: '>=18'}
- cpu: [arm64]
- os: [darwin]
-
'@esbuild/[email protected]':
resolution: {integrity: sha512-IJM4JJsLhRYr9xdtLytPLSH9k/oxR3boaUIYiHkAawtwNOXKE8KoU8tMvryogdcT8AU+Bflmh81Xn6Q0vTZbQw==}
engines: {node: '>=12'}
@@ -560,12 +463,6 @@ packages:
cpu: [x64]
os: [darwin]
- '@esbuild/[email protected]':
- resolution: {integrity: sha512-HQ9ka4Kx21qHXwtlTUVbKJOAnmG1ipXhdWTmNXiPzPfWKpXqASVcWdnf2bnL73wgjNrFXAa3yYvBSd9pzfEIpA==}
- engines: {node: '>=18'}
- cpu: [x64]
- os: [darwin]
-
'@esbuild/[email protected]':
resolution: {integrity: sha512-pBwbc7DufluUeGdjSU5Si+P3SoMF5DQ/F/UmTSb8HXO80ZEAJmrykPyzo1IfNbAoaqw48YRpv8shwd1NoI0jcQ==}
engines: {node: '>=12'}
@@ -578,12 +475,6 @@ packages:
cpu: [arm64]
os: [freebsd]
- '@esbuild/[email protected]':
- resolution: {integrity: sha512-gA0Bx759+7Jve03K1S0vkOu5Lg/85dou3EseOGUes8flVOGxbhDDh/iZaoek11Y8mtyKPGF3vP8XhnkDEAmzeg==}
- engines: {node: '>=18'}
- cpu: [arm64]
- os: [freebsd]
-
'@esbuild/[email protected]':
resolution: {integrity: sha512-4lu+n8Wk0XlajEhbEffdy2xy53dpR06SlzvhGByyg36qJw6Kpfk7cp45DR/62aPH9mtJRmIyrXAS5UWBrJT6TQ==}
engines: {node: '>=12'}
@@ -596,12 +487,6 @@ packages:
cpu: [x64]
os: [freebsd]
- '@esbuild/[email protected]':
- resolution: {integrity: sha512-TGbO26Yw2xsHzxtbVFGEXBFH0FRAP7gtcPE7P5yP7wGy7cXK2oO7RyOhL5NLiqTlBh47XhmIUXuGciXEqYFfBQ==}
- engines: {node: '>=18'}
- cpu: [x64]
- os: [freebsd]
-
'@esbuild/[email protected]':
resolution: {integrity: sha512-ct1Tg3WGwd3P+oZYqic+YZF4snNl2bsnMKRkb3ozHmnM0dGWuxcPTTntAF6bOP0Sp4x0PjSF+4uHQ1xvxfRKqg==}
engines: {node: '>=12'}
@@ -614,12 +499,6 @@ packages:
cpu: [arm64]
os: [linux]
- '@esbuild/[email protected]':
- resolution: {integrity: sha512-8bwX7a8FghIgrupcxb4aUmYDLp8pX06rGh5HqDT7bB+8Rdells6mHvrFHHW2JAOPZUbnjUpKTLg6ECyzvas2AQ==}
- engines: {node: '>=18'}
- cpu: [arm64]
- os: [linux]
-
'@esbuild/[email protected]':
resolution: {integrity: sha512-cdmT3KxjlOQ/gZ2cjfrQOtmhG4HJs6hhvm3mWSRDPtZ/lP5oe8FWceS10JaSJC13GBd4eH/haHnqf7hhGNLerA==}
engines: {node: '>=12'}
@@ -632,12 +511,6 @@ packages:
cpu: [arm]
os: [linux]
- '@esbuild/[email protected]':
- resolution: {integrity: sha512-lPDGyC1JPDou8kGcywY0YILzWlhhnRjdof3UlcoqYmS9El818LLfJJc3PXXgZHrHCAKs/Z2SeZtDJr5MrkxtOw==}
- engines: {node: '>=18'}
- cpu: [arm]
- os: [linux]
-
'@esbuild/[email protected]':
resolution: {integrity: sha512-w4IRhSy1VbsNxHRQpeGCHEmibqdTUx61Vc38APcsRbuVgK0OPEnQ0YD39Brymn96mOx48Y2laBQGqgZ0j9w6SQ==}
engines: {node: '>=12'}
@@ -650,12 +523,6 @@ packages:
cpu: [ia32]
os: [linux]
- '@esbuild/[email protected]':
- resolution: {integrity: sha512-0y9KrdVnbMM2/vG8KfU0byhUN+EFCny9+8g202gYqSSVMonbsCfLjUO+rCci7pM0WBEtz+oK/PIwHkzxkyharA==}
- engines: {node: '>=18'}
- cpu: [ia32]
- os: [linux]
-
'@esbuild/[email protected]':
resolution: {integrity: sha512-2iAngUbBPMq439a+z//gE+9WBldoMp1s5GWsUSgqHLzLJ9WoZLZhpwWuym0u0u/4XmZ3gpHmzV84PonE+9IIdQ==}
engines: {node: '>=12'}
@@ -668,12 +535,6 @@ packages:
cpu: [loong64]
os: [linux]
- '@esbuild/[email protected]':
- resolution: {integrity: sha512-h///Lr5a9rib/v1GGqXVGzjL4TMvVTv+s1DPoxQdz7l/AYv6LDSxdIwzxkrPW438oUXiDtwM10o9PmwS/6Z0Ng==}
- engines: {node: '>=18'}
- cpu: [loong64]
- os: [linux]
-
'@esbuild/[email protected]':
resolution: {integrity: sha512-LKJltc4LVdMKHsrFe4MGNPp0hqDFA1Wpt3jE1gEyM3nKUvOiO//9PheZZHfYRfYl6AwdTH4aTcXSqBerX0ml4A==}
engines: {node: '>=12'}
@@ -686,12 +547,6 @@ packages:
cpu: [mips64el]
os: [linux]
- '@esbuild/[email protected]':
- resolution: {integrity: sha512-iyRrM1Pzy9GFMDLsXn1iHUm18nhKnNMWscjmp4+hpafcZjrr2WbT//d20xaGljXDBYHqRcl8HnxbX6uaA/eGVw==}
- engines: {node: '>=18'}
- cpu: [mips64el]
- os: [linux]
-
'@esbuild/[email protected]':
resolution: {integrity: sha512-/c/DGybs95WXNS8y3Ti/ytqETiW7EU44MEKuCAcpPto3YjQbyK3IQVKfF6nbghD7EcLUGl0NbiL5Rt5DMhn5tg==}
engines: {node: '>=12'}
@@ -704,12 +559,6 @@ packages:
cpu: [ppc64]
os: [linux]
- '@esbuild/[email protected]':
- resolution: {integrity: sha512-9meM/lRXxMi5PSUqEXRCtVjEZBGwB7P/D4yT8UG/mwIdze2aV4Vo6U5gD3+RsoHXKkHCfSxZKzmDssVlRj1QQA==}
- engines: {node: '>=18'}
- cpu: [ppc64]
- os: [linux]
-
'@esbuild/[email protected]':
resolution: {integrity: sha512-FC3nUAWhvFoutlhAkgHf8f5HwFWUL6bYdvLc/TTuxKlvLi3+pPzdZiFKSWz/PF30TB1K19SuCxDTI5KcqASJqA==}
engines: {node: '>=12'}
@@ -722,12 +571,6 @@ packages:
cpu: [riscv64]
os: [linux]
- '@esbuild/[email protected]':
- resolution: {integrity: sha512-Zr7KR4hgKUpWAwb1f3o5ygT04MzqVrGEGXGLnj15YQDJErYu/BGg+wmFlIDOdJp0PmB0lLvxFIOXZgFRrdjR0w==}
- engines: {node: '>=18'}
- cpu: [riscv64]
- os: [linux]
-
'@esbuild/[email protected]':
resolution: {integrity: sha512-IbFsFbxMWLuKEbH+7sTkKzL6NJmG2vRyy6K7JJo55w+8xDk7RElYn6xvXtDW8HCfoKBFK69f3pgBJSUSQPr+4Q==}
engines: {node: '>=12'}
@@ -740,12 +583,6 @@ packages:
cpu: [s390x]
os: [linux]
- '@esbuild/[email protected]':
- resolution: {integrity: sha512-MsKncOcgTNvdtiISc/jZs/Zf8d0cl/t3gYWX8J9ubBnVOwlk65UIEEvgBORTiljloIWnBzLs4qhzPkJcitIzIg==}
- engines: {node: '>=18'}
- cpu: [s390x]
- os: [linux]
-
'@esbuild/[email protected]':
resolution: {integrity: sha512-68ngA9lg2H6zkZcyp22tsVt38mlhWde8l3eJLWkyLrp4HwMUr3c1s/M2t7+kHIhvMjglIBrFpncX1SzMckomGw==}
engines: {node: '>=12'}
@@ -758,18 +595,6 @@ packages:
cpu: [x64]
os: [linux]
- '@esbuild/[email protected]':
- resolution: {integrity: sha512-uqZMTLr/zR/ed4jIGnwSLkaHmPjOjJvnm6TVVitAa08SLS9Z0VM8wIRx7gWbJB5/J54YuIMInDquWyYvQLZkgw==}
- engines: {node: '>=18'}
- cpu: [x64]
- os: [linux]
-
- '@esbuild/[email protected]':
- resolution: {integrity: sha512-xXwcTq4GhRM7J9A8Gv5boanHhRa/Q9KLVmcyXHCTaM4wKfIpWkdXiMog/KsnxzJ0A1+nD+zoecuzqPmCRyBGjg==}
- engines: {node: '>=18'}
- cpu: [arm64]
- os: [netbsd]
-
'@esbuild/[email protected]':
resolution: {integrity: sha512-CwFq42rXCR8TYIjIfpXCbRX0rp1jo6cPIUPSaWwzbVI4aOfX96OXY8M6KNmtPcg7QjYeDmN+DD0Wp3LaBOLf4Q==}
engines: {node: '>=12'}
@@ -782,18 +607,6 @@ packages:
cpu: [x64]
os: [netbsd]
- '@esbuild/[email protected]':
- resolution: {integrity: sha512-Ld5pTlzPy3YwGec4OuHh1aCVCRvOXdH8DgRjfDy/oumVovmuSzWfnSJg+VtakB9Cm0gxNO9BzWkj6mtO1FMXkQ==}
- engines: {node: '>=18'}
- cpu: [x64]
- os: [netbsd]
-
- '@esbuild/[email protected]':
- resolution: {integrity: sha512-fF96T6KsBo/pkQI950FARU9apGNTSlZGsv1jZBAlcLL1MLjLNIWPBkj5NlSz8aAzYKg+eNqknrUJ24QBybeR5A==}
- engines: {node: '>=18'}
- cpu: [arm64]
- os: [openbsd]
-
'@esbuild/[email protected]':
resolution: {integrity: sha512-cnq5brJYrSZ2CF6c35eCmviIN3k3RczmHz8eYaVlNasVqsNY+JKohZU5MKmaOI+KkllCdzOKKdPs762VCPC20g==}
engines: {node: '>=12'}
@@ -806,18 +619,6 @@ packages:
cpu: [x64]
os: [openbsd]
- '@esbuild/[email protected]':
- resolution: {integrity: sha512-MZyXUkZHjQxUvzK7rN8DJ3SRmrVrke8ZyRusHlP+kuwqTcfWLyqMOE3sScPPyeIXN/mDJIfGXvcMqCgYKekoQw==}
- engines: {node: '>=18'}
- cpu: [x64]
- os: [openbsd]
-
- '@esbuild/[email protected]':
- resolution: {integrity: sha512-rm0YWsqUSRrjncSXGA7Zv78Nbnw4XL6/dzr20cyrQf7ZmRcsovpcRBdhD43Nuk3y7XIoW2OxMVvwuRvk9XdASg==}
- engines: {node: '>=18'}
- cpu: [arm64]
- os: [openharmony]
-
'@esbuild/[email protected]':
resolution: {integrity: sha512-vCRT7yP3zX+bKWFeP/zdS6SqdWB8OIpaRq/mbXQxTGHnIxspRtigpkUcDMlSCOejlHowLqII7K2JKevwyRP2rg==}
engines: {node: '>=12'}
@@ -830,12 +631,6 @@ packages:
cpu: [x64]
os: [sunos]
- '@esbuild/[email protected]':
- resolution: {integrity: sha512-3wGSCDyuTHQUzt0nV7bocDy72r2lI33QL3gkDNGkod22EsYl04sMf0qLb8luNKTOmgF/eDEDP5BFNwoBKH441w==}
- engines: {node: '>=18'}
- cpu: [x64]
- os: [sunos]
-
'@esbuild/[email protected]':
resolution: {integrity: sha512-yYx+8jwowUstVdorcMdNlzklLYhPxjniHWFKgRqH7IFlUEa0Umu3KuYplf1HUZZ422e3NU9F4LGb+4O0Kdcaag==}
engines: {node: '>=12'}
@@ -848,12 +643,6 @@ packages:
cpu: [arm64]
os: [win32]
- '@esbuild/[email protected]':
- resolution: {integrity: sha512-rMmLrur64A7+DKlnSuwqUdRKyd3UE7oPJZmnljqEptesKM8wx9J8gx5u0+9Pq0fQQW8vqeKebwNXdfOyP+8Bsg==}
- engines: {node: '>=18'}
- cpu: [arm64]
- os: [win32]
-
'@esbuild/[email protected]':
resolution: {integrity: sha512-eggDKanJszUtCdlVs0RB+h35wNlb5v4TWEkq4vZcmVt5u/HiDZrTXe2bWFQUez3RgNHwx/x4sk5++4NSSicKkw==}
engines: {node: '>=12'}
@@ -866,12 +655,6 @@ packages:
cpu: [ia32]
os: [win32]
- '@esbuild/[email protected]':
- resolution: {integrity: sha512-HkqnmmBoCbCwxUKKNPBixiWDGCpQGVsrQfJoVGYLPT41XWF8lHuE5N6WhVia2n4o5QK5M4tYr21827fNhi4byQ==}
- engines: {node: '>=18'}
- cpu: [ia32]
- os: [win32]
-
'@esbuild/[email protected]':
resolution: {integrity: sha512-lAhycmKnVOuRYNtRtatQR1LPQf2oYCkRGkSFnseDAKPl8lu5SOsK/e1sXe5a0Pc5kHIHe6P2I/ilntNv2xf3cA==}
engines: {node: '>=12'}
@@ -884,12 +667,6 @@ packages:
cpu: [x64]
os: [win32]
- '@esbuild/[email protected]':
- resolution: {integrity: sha512-alJC0uCZpTFrSL0CCDjcgleBXPnCrEAhTBILpeAp7M/OFgoqtAetfBzX0xM00MUsVVPpVjlPuMbREqnZCXaTnA==}
- engines: {node: '>=18'}
- cpu: [x64]
- os: [win32]
-
'@eslint-community/[email protected]':
resolution: {integrity: sha512-phrYmNiYppR7znFEdqgfWHXR6NCkZEK7hwWDHZUjit/2/U0r6XvkDl0SYnoM51Hq7FhCGdLDT6zxCCOY1hexsQ==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
@@ -967,15 +744,6 @@ packages:
'@floating-ui/[email protected]':
resolution: {integrity: sha512-aGTxbpbg8/b5JfU1HXSrbH3wXZuLPJcNEcZQFMxLs3oSzgtVu6nFPkbbGGUvBcUjKV2YyB9Wxxabo+HEH9tcRQ==}
- '@google/[email protected]':
- resolution: {integrity: sha512-f4S31aVi5G6U1phMKTaNqpik+sfsU1Z25QW3sGyCjtzNj1/0SnCEfWU0Gyq0iR4pjCsaqeeZtSfzHYW3OcEWUQ==}
- engines: {node: '>=20.0.0'}
- peerDependencies:
- '@modelcontextprotocol/sdk': ^1.24.0
- peerDependenciesMeta:
- '@modelcontextprotocol/sdk':
- optional: true
-
'@humanfs/[email protected]':
resolution: {integrity: sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==}
engines: {node: '>=18.18.0'}
@@ -1097,10 +865,6 @@ packages:
cpu: [x64]
os: [win32]
- '@isaacs/[email protected]':
- resolution: {integrity: sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==}
- engines: {node: '>=12'}
-
resolution: {integrity: sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==}
engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0}
@@ -1136,40 +900,6 @@ packages:
resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==}
engines: {node: '>= 8'}
- '@pkgjs/[email protected]':
- resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==}
- engines: {node: '>=14'}
-
- '@protobufjs/[email protected]':
- resolution: {integrity: sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==}
-
- '@protobufjs/[email protected]':
- resolution: {integrity: sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==}
-
- '@protobufjs/[email protected]':
- resolution: {integrity: sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg==}
-
- '@protobufjs/[email protected]':
- resolution: {integrity: sha512-j9ednRT81vYJ9OfVuXG6ERSTdEL1xVsNgqpkxMsbIabzSo3goCjDIveeGv5d03om39ML71RdmrGNjG5SReBP/Q==}
-
- '@protobufjs/[email protected]':
- resolution: {integrity: sha512-lljVXpqXebpsijW71PZaCYeIcE5on1w5DlQy5WH6GLbFryLUrBD4932W/E2BSpfRJWseIL4v/KPgBFxDOIdKpQ==}
-
- '@protobufjs/[email protected]':
- resolution: {integrity: sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ==}
-
- '@protobufjs/[email protected]':
- resolution: {integrity: sha512-kdSefcPdruJiFMVSbn801t4vFK7KB/5gd2fYvrxhuJYg8ILrmn9SKSX2tZdV6V+ksulWqS7aXjBcRXl3wHoD9Q==}
-
- '@protobufjs/[email protected]':
- resolution: {integrity: sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA==}
-
- '@protobufjs/[email protected]':
- resolution: {integrity: sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw==}
-
- '@protobufjs/[email protected]':
- resolution: {integrity: sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==}
-
'@radix-ui/[email protected]':
resolution: {integrity: sha512-MkKCwxlXTgz6CFoJx3pCwn07GKp36+aZyu/u2Ln2VrA5DcdyCZkASEDBTd8x5whTQQL5CiYf4prXKLcgQdv29g==}
@@ -1555,9 +1285,6 @@ packages:
'@rolldown/[email protected]':
resolution: {integrity: sha512-+d0F4MKMCbeVUJwG96uQ4SgAznZNSq93I3V+9NHA4OpvqG8mRCpGdKmK8l/dl02h2CCDHwW2FqilnTyDcAnqjA==}
- '@rolldown/[email protected]':
- resolution: {integrity: sha512-vENRlFU4YbrwVqNDZ7fLvy+JR1CRkyr01jhSiDpE1u6py3OMzQfztQU2jxykW3ALNxO4kSlqIDeYyD0Y9RcQeQ==}
-
'@rollup/[email protected]':
resolution: {integrity: sha512-mRSi+4cBjrRLoaal2PnqH82Wqyb+d3HsPUN/W+WslCXsZsyHa9ZeQQX/pQsZaVIWDkPcpV6jJ+3KLbTbgnwv8w==}
cpu: [arm]
@@ -1831,12 +1558,6 @@ packages:
peerDependencies:
vite: ^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0
- '@vitejs/[email protected]':
- resolution: {integrity: sha512-EcA07pHJouywpzsoTUqNh5NwGayl2PPVEJKUSinGGSxFGYn+shYbqMGBg6FXDqgXum9Ou/ecb+411ssw8HImJQ==}
- engines: {node: ^20.19.0 || >=22.12.0}
- peerDependencies:
- vite: ^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0
-
'@vitest/[email protected]':
resolution: {integrity: sha512-jXL+9+ZNIJKruofqXuuTClf44eSpcHlgj3CiuNihUF3Ioujtmc0zIa3UJOW5RjDK1YLBJZnWBlPuqhYycLioog==}
@@ -1889,10 +1610,6 @@ packages:
resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==}
engines: {node: '>=8'}
- resolution: {integrity: sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==}
- engines: {node: '>=12'}
-
resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==}
engines: {node: '>=8'}
@@ -1901,10 +1618,6 @@ packages:
resolution: {integrity: sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==}
engines: {node: '>=10'}
- resolution: {integrity: sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==}
- engines: {node: '>=12'}
-
resolution: {integrity: sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==}
@@ -1932,6 +1645,11 @@ packages:
resolution: {integrity: sha512-xvsWESUJn0JN421Xb9MQw6AsMHRCUknCe0Wjlxvjud80mU4E6hQf1A6NzQKcYNmYw62MfzEtXc+badstZP3JpQ==}
+ resolution: {integrity: sha512-YtY5k3PiV3SyUQ6gRlR2OCn8dcVRwkpiG/k2T5buoL2ymH/Z/YbaYWbk/f9mO2HTgEtGWjPiAQrIuvA7G/63Gg==}
+ engines: {node: '>=18', npm: '>=10'}
+ hasBin: true
+
resolution: {integrity: sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==}
@@ -1948,20 +1666,18 @@ packages:
resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==}
- resolution: {integrity: sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==}
-
resolution: {integrity: sha512-OPz5aBThlyLFgxyhdwf/s2+8ab3OvT7AdTNvKHBwpXomIYeXqpUUuT8LrdtxZSsWJ4R4CU1un4XGh5Ez3nlTpw==}
hasBin: true
- resolution: {integrity: sha512-Ko0uX15oIUS7wJ3Rb30Fs6SkVbLmPBAKdlm7q9+ak9bbIeFf0MwuBsQV6z7+X768/cHsfg+WlysDWJcmthjsjQ==}
-
resolution: {integrity: sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==}
engines: {node: '>=8'}
+ resolution: {integrity: sha512-0GZrojJnuhoe+hiwji7QFaL3tBlJoA+KFUN7ouYSDGZLSo9CKM8swQX8n/UcbR0d1VuZKU+nhogNzv423JEu5A==}
+ hasBin: true
+
resolution: {integrity: sha512-F1+K8EbfOZE49dtoPtmxUQrpXaBIl3ICvasLh+nJta0xkz+9kF/7uet9fLnwKqhDrmj6g+6K3Tw9yQPUg2ka5g==}
@@ -1980,9 +1696,6 @@ packages:
engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7}
hasBin: true
- resolution: {integrity: sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==}
-
resolution: {integrity: sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==}
engines: {node: '>=8'}
@@ -2093,10 +1806,6 @@ packages:
resolution: {integrity: sha512-ND9qDTLc6diwj+Xe5cdAgVTbLVdXbtxTJRXRhli8Mowuaan+0EJOtdqJ0QCHNSSPyoXGx9HX2/VMnKeC34AChA==}
- resolution: {integrity: sha512-0R9ikRb668HB7QDxT1vkpuUBtqc53YyAwMwGeUFKRojY/NWKvdZ+9UYtRfGmhqNbRkTSVpMbmyhXipFFv2cb/A==}
- engines: {node: '>= 12'}
-
resolution: {integrity: sha512-ZYP5VBHshaDAiVZxjbRVcFJpc+4xGgT0bK3vzy1HLN8jTO975HEbuYzZJcHoQEY5K1a0z8YayJkyVETa08eNTg==}
engines: {node: '>=18'}
@@ -2161,21 +1870,9 @@ packages:
resolution: {integrity: sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==}
engines: {node: '>= 0.4'}
- resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==}
-
- resolution: {integrity: sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==}
-
resolution: {integrity: sha512-NlAsMteRHek05jRUxUR0a5jpjYq9ykk6+kO0yRaMi5moe7u0fVIOeQ3Y30A8dIiWFBNUoQGi1ljb1i5VtS9WQQ==}
- resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==}
-
- resolution: {integrity: sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==}
-
resolution: {integrity: sha512-aN97NXWF6AWBTahfVOIrB/NShkzi5H7F9r1s9mD3cDj4Ko5f2qhhVoYMibXF7GlLveb/D2ioWay8lxI97Ven3g==}
engines: {node: '>=0.12'}
@@ -2206,11 +1903,6 @@ packages:
engines: {node: '>=12'}
hasBin: true
- resolution: {integrity: sha512-bbPBYYrtZbkt6Os6FiTLCTFxvq4tt3JKall1vRwshA3fdVztsLAatFaZobhkBC8/BrPetoa0oksYoKXoG4ryJg==}
- engines: {node: '>=18'}
- hasBin: true
-
resolution: {integrity: sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==}
engines: {node: '>=6'}
@@ -2284,9 +1976,6 @@ packages:
resolution: {integrity: sha512-LmDxfWXwcTArk8fUEnOfSZpHOJ6zOMUJKOtFLFqJLoKJetuQG874Uc7/Kki7zFLzYybmZhp1M7+98pfMqeX8yA==}
- resolution: {integrity: sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==}
-
resolution: {integrity: sha512-h5+1OzzfCC3Ef7VbtKdcv7zsstUQwUDlYpUTvjeUsJAssPgLn7QzbboPtL5ro04Mq0rPOsMzl7q5hIbRs2wD1A==}
engines: {node: '>=8.0.0'}
@@ -2319,10 +2008,6 @@ packages:
picomatch:
optional: true
- resolution: {integrity: sha512-7yAQpD2UMJzLi1Dqv7qFYnPbaPx7ZfFK6PiIxQ4PfkGPyNyl2Ugx+a/umUonmKqjhM4DnfbMvdX6otXq83soQQ==}
- engines: {node: ^12.20 || >= 14.13}
-
resolution: {integrity: sha512-cPJU47OaAoCbg0pBvzsgpTPhmhqI5eJjh/JIu8tPj5q+T7iLvW/JAYUqmE7KOB4R1ZyEhzBaIQpQpardBF5z8A==}
@@ -2345,10 +2030,6 @@ packages:
resolution: {integrity: sha512-GX+ysw4PBCz0PzosHDepZGANEuFCMLrnRTiEy9McGjmkCQYwRq4A/X786G/fjM/+OjsWSU1ZrY5qyARZmO/uwg==}
- resolution: {integrity: sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==}
- engines: {node: '>=14'}
-
resolution: {integrity: sha512-8RipRLol37bNs2bhoV67fiTEvdTrbMUYcFTiy3+wuuOnUog2QBHCZWXDRijWQfAkhBj2Uf5UnVaiWwA5vdd82w==}
engines: {node: '>= 6'}
@@ -2357,10 +2038,6 @@ packages:
resolution: {integrity: sha512-wzsgA6WOq+09wrU1tsJ09udeR/YZRaeArL9e1wPbFg3GG2yDnC2ldKpxs4xunpFF9DgqCqOIra3bc1HWrJ37Ww==}
engines: {node: '>=0.4.x'}
- resolution: {integrity: sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g==}
- engines: {node: '>=12.20.0'}
-
resolution: {integrity: sha512-1X1NTtiJphryn/uLQz3whtY6jK3fTqoE3ohKs0tT+Ujr1W59oopxmoEh7Lu5p6vBaPbgoM0bzveAW4Qi5RyWDQ==}
@@ -2386,14 +2063,6 @@ packages:
resolution: {integrity: sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==}
- resolution: {integrity: sha512-YGGyuEdVIjqxkxVH1pUTMY/XtmmsApXrCVv5EU25iX6inEPbV+VakJfLealkBtJN69AQmh1eGOdCl9Sm1UP6XQ==}
- engines: {node: '>=18'}
-
- resolution: {integrity: sha512-zV/5HKTfCeKWnxG0Dmrw51hEWFGfcF2xiXqcA3+J90WDuP0SvoiSO5ORvcBsifmx/FoIjgQN3oNOGaQ5PhLFkg==}
- engines: {node: '>=18'}
-
resolution: {integrity: sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==}
engines: {node: '>=6.9.0'}
@@ -2431,10 +2100,6 @@ packages:
resolution: {integrity: sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==}
- resolution: {integrity: sha512-DfXN8DfhJ7NH3Oe7cFmu3NCu1wKbkReJ8TorzSAFbSKrlNaQSKfIzqYqVY8zlbs2NLBbWpRiU52GX2PbaBVNkg==}
- hasBin: true
-
resolution: {integrity: sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==}
engines: {node: '>=18'}
@@ -2443,22 +2108,10 @@ packages:
resolution: {integrity: sha512-gv5BeD2EssA793rlFWVPMMCqefTlpusw6/2TbAVMy0FzcG8wKJn4O+NqJ4+XWmmwrayJgw5TzrmWjFgmz1XPqw==}
engines: {node: '>=18'}
- resolution: {integrity: sha512-7ABviyMOlX5hIVD60YOfHw4/CxOfBhyduaYB+wbFWCWoni4N7SLcV46hrVRktuBbZjFC9ONyqamZITN7q3n32w==}
- engines: {node: '>=18'}
-
- resolution: {integrity: sha512-eAmLkjDjAFCVXg7A1unxHsLf961m6y17QFqXqAXGj/gVkKFrEICfStRfwUlGNfeCEjNRa32JEWOUTlYXPyyKvA==}
- engines: {node: '>=14'}
-
resolution: {integrity: sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==}
engines: {node: '>= 0.4'}
- resolution: {integrity: sha512-+CqsMbHPiSTdtSO14O51eMNlrp9N79gmeqmXeouJOhfucAedHw9noVe/n5uJk3tbKE6a+6ZCQg3RPhVhHByAIw==}
- engines: {node: '>=18'}
-
resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==}
engines: {node: '>=8'}
@@ -2567,10 +2220,6 @@ packages:
resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==}
engines: {node: '>=0.10.0'}
- resolution: {integrity: sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==}
- engines: {node: '>=8'}
-
resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==}
engines: {node: '>=0.10.0'}
@@ -2592,9 +2241,6 @@ packages:
resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==}
- resolution: {integrity: sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==}
-
resolution: {integrity: sha512-/imKNG4EbWNrVjoNC/1H5/9GFy+tqjGBHCaSsN+P2RnPqjsLmv6UD3Ej+Kj8nBWaRAwyk7kK5ZUc+OEatnTR3A==}
hasBin: true
@@ -2623,9 +2269,6 @@ packages:
engines: {node: '>=6'}
hasBin: true
- resolution: {integrity: sha512-SiPv/8VpZuWbvLSMtTDU8hEfrZWg/mH/nV/b4o0CYbSxu1UIQPLdwKOCIyLQX+VIPO5vrLX3i8qtqFyhdPSUSQ==}
-
resolution: {integrity: sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==}
@@ -2640,12 +2283,6 @@ packages:
engines: {node: '>=6'}
hasBin: true
- resolution: {integrity: sha512-hRF04fqJIP8Abbkq5NKGN0Bbr3JxlQ+qhZufXVr0DvujKy93ZCbXZMHDL4EOtodSbCWxOqR8MS1tXA5hwqCXDg==}
-
- resolution: {integrity: sha512-EKI/M/yqPncGUUh44xz0PxSidXFr/+r0pA70+gIYhjv+et7yxM+s29Y+VGDkovRofQem0fs7Uvf4+YmAdyRduA==}
-
resolution: {integrity: sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==}
@@ -2695,11 +2332,6 @@ packages:
peerDependencies:
react: ^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0
- resolution: {integrity: sha512-82hOAu7y0dbVuFfmO4bYF1XEwYk/mEbM5E+b1jgci/udUBEE/R7LF5Ip0CCEmXe8AybRM8L+04eP+LGZeDvkiw==}
- peerDependencies:
- react: ^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0
-
resolution: {integrity: sha512-h5bgJWpxJNswbU7qCrV0tIKQCaS3blPDrqKWx+QxzuzL1zGUzij9XCWLrSLsJPu5t+eWA/ycetzYAO5IOMcWAQ==}
hasBin: true
@@ -2764,10 +2396,6 @@ packages:
resolution: {integrity: sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==}
engines: {node: '>=16 || 14 >=14.17'}
- resolution: {integrity: sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==}
- engines: {node: '>=16 || 14 >=14.17'}
-
resolution: {integrity: sha512-l8D9ODSRWLe2KHJSifWGwBqpTZXIXTeo8mlKjY+E2HAakaTeNpqAyBZ8GSqLzHgw4XmHmC8whvpjJNMbFZN7/g==}
@@ -2795,15 +2423,6 @@ packages:
resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==}
- resolution: {integrity: sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==}
- engines: {node: '>=10.5.0'}
- deprecated: Use your platform's native DOMException instead
-
- resolution: {integrity: sha512-dRB78srN/l6gqWulah9SrxeYnxeddIG30+GOqK/9OlLVyLg3HPnr6SqOWTWOXKRwC2eGYCkZ59NNuSgvSrpgOA==}
- engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}
-
resolution: {integrity: sha512-nmh3lCkYZ3grZvqcCH+fjmQ7X+H0OeZgP40OierEaAptX4XofMh5kwNbWh7lBduUzCcV/8kZ+NDLCwm2iorIlA==}
@@ -2853,9 +2472,6 @@ packages:
resolution: {integrity: sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==}
engines: {node: '>=10'}
- resolution: {integrity: sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==}
-
resolution: {integrity: sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==}
engines: {node: '>=6'}
@@ -2881,10 +2497,6 @@ packages:
resolution: {integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==}
- resolution: {integrity: sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==}
- engines: {node: '>=16 || 14 >=14.18'}
-
resolution: {integrity: sha512-Yhpw4T9C6hPpgPeA28us07OJeqZ5EzQTkbfwuhsUg0c237RomFoETJgmp2sa3F/41gfLE6G5cqcYwznmeEeOlQ==}
@@ -2988,10 +2600,6 @@ packages:
resolution: {integrity: sha512-TwEZ+X+yCJmYfL7TPUOcvBZ4QfoT5YenQiJuX//0th53DE6w0xxLEtfK3iyryQFddXuvkIk51EEgrJQ0WJkOmQ==}
- resolution: {integrity: sha512-CvexbZtbov6jW2eXAvLukXjXUW1TzFaivC46BpWc/3BpcCysb5Vffu+B3XHMm8lVEuy2Mm4XGex8hBSg1yapPg==}
- engines: {node: '>=12.0.0'}
-
resolution: {integrity: sha512-JZd3gMVBAVQkSs6HdNZo9Sdo0LNcQeMNP3CozBJb3JYC/QUYZTnKxP+f8oWRX4rHP5EurWxqAHTSwUCjlNKa1w==}
@@ -3013,11 +2621,6 @@ packages:
peerDependencies:
react: ^18.3.1
- resolution: {integrity: sha512-yELu4WmLPw5Mr/lmeEpox5rw3RETacE++JgHqQzd2dg+YbJuat3jH4ingc+WPZhxaoFzdv9y33G+F7Nl5O0GBg==}
- peerDependencies:
- react: ^19.2.3
-
resolution: {integrity: sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==}
@@ -3028,10 +2631,6 @@ packages:
resolution: {integrity: sha512-z6F7K9bV85EfseRCp2bzrpyQ0Gkw1uLoCel9XBVWPg/TjRj94SkJzUTGfOa4bs7iJvBWtQG0Wq7wnI0syw3EBQ==}
engines: {node: '>=0.10.0'}
- resolution: {integrity: sha512-QgT5//D3jfjJb6Gsjxv0Slpj23ip+HtOpnNgnb2S5zU3CB26G/IDPGoy4RJB42wzFE46DRsstbW6tKHoKbhAxw==}
- engines: {node: '>=0.10.0'}
-
resolution: {integrity: sha512-9r+yi9+mgU33AKcj6IbT9oRCO78WriSj6t/cF8DWBZJ9aOGPOTEDvdUDz1FwKim7QXWwmHqtdHnRJfhAxEG46Q==}
engines: {node: '>=10'}
@@ -3072,10 +2671,6 @@ packages:
resolution: {integrity: sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==}
engines: {node: '>=0.10.0'}
- resolution: {integrity: sha512-Ku/hhYbVjOQnXDZFv2+RibmLFGwFdeeKHFcOTlrt7xplBnya5OGn/hIRDsqDiSUcfORsDC7MPxwork8jBwsIWA==}
- engines: {node: '>=0.10.0'}
-
resolution: {integrity: sha512-Owdv/Ft7IjOgm/i0xvNDZ1LrRANRfew4b2prF3OWMQLxLfu3bS8FVhCsrSCMK4lR56Y9ya+AThoTpDCTxCmpRA==}
@@ -3106,10 +2701,6 @@ packages:
resolution: {integrity: sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==}
engines: {iojs: '>=1.0.0', node: '>=0.10.0'}
- resolution: {integrity: sha512-l0OE8wL34P4nJH/H2ffoaniAokM2qSmrtXHmlpvYr5AVVX8msAyW0l8NVJFDxlSK4u3Uh/f41cQheDVdnYijwQ==}
- hasBin: true
-
resolution: {integrity: sha512-ptg9PQwzs3orn4jkgXJ74bfs5vYz1NCZlSQMBUA0wKcGp5i5pA1AO3fOUEte8enhGUC+iapTCzEWw2jEFFUO/w==}
deprecated: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-inject.
@@ -3134,9 +2725,6 @@ packages:
resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==}
- resolution: {integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==}
-
resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==}
@@ -3147,9 +2735,6 @@ packages:
resolution: {integrity: sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==}
- resolution: {integrity: sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q==}
-
resolution: {integrity: sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==}
hasBin: true
@@ -3209,22 +2794,6 @@ packages:
resolution: {integrity: sha512-KXDYZ9dszj6bzvnEMRYvxgeTHU74QBFL54XKtP3nyMuJ81CFYtABZ3bAzL2EdFUaEwJOBOgENyFj3R7oTzDyyw==}
engines: {node: '>=4', npm: '>=6'}
- resolution: {integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==}
- engines: {node: '>=8'}
-
- resolution: {integrity: sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==}
- engines: {node: '>=12'}
-
- resolution: {integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==}
- engines: {node: '>=8'}
-
- resolution: {integrity: sha512-gmBGslpoQJtgnMAvOVqGZpEz9dyoKTCzy2nfz/n8aIFhN/jCE/rCmcxabB6jOOHV+0WNnylOxaxBQPSvcWklhA==}
- engines: {node: '>=12'}
-
resolution: {integrity: sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==}
engines: {node: '>=12'}
@@ -3321,11 +2890,6 @@ packages:
resolution: {integrity: sha512-Acylog8/luQ8L7il+geoSxhEkazvkslg7PSNKOX59mbB9cOveP5aq9h74Y7YU8yDpJwetzQQrfIwtf4Wp4LKcw==}
engines: {node: '>=4'}
- resolution: {integrity: sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==}
- engines: {node: '>=14.17'}
- hasBin: true
-
resolution: {integrity: sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==}
engines: {node: '>=14.17'}
@@ -3428,46 +2992,6 @@ packages:
terser:
optional: true
- resolution: {integrity: sha512-+Oxm7q9hDoLMyJOYfUYBuHQo+dkAloi33apOPP56pzj+vsdJDzr+j1NISE5pyaAuKL4A3UD34qd0lx5+kfKp2g==}
- engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0}
- hasBin: true
- peerDependencies:
- '@types/node': ^18.0.0 || ^20.0.0 || >=22.0.0
- jiti: '>=1.21.0'
- less: '*'
- lightningcss: ^1.21.0
- sass: '*'
- sass-embedded: '*'
- stylus: '*'
- sugarss: '*'
- terser: ^5.16.0
- tsx: ^4.8.1
- yaml: ^2.4.2
- peerDependenciesMeta:
- '@types/node':
- optional: true
- jiti:
- optional: true
- less:
- optional: true
- lightningcss:
- optional: true
- sass:
- optional: true
- sass-embedded:
- optional: true
- stylus:
- optional: true
- sugarss:
- optional: true
- terser:
- optional: true
- tsx:
- optional: true
- yaml:
- optional: true
-
resolution: {integrity: sha512-Ljb1cnSJSivGN0LqXd/zmDbWEM0RNNg2t1QW/XUhYl/qPqyu7CsqeWtqQXHVaJsecLPuDoak2oJcZN2QoRIOag==}
engines: {node: ^18.0.0 || >=20.0.0}
@@ -3497,10 +3021,6 @@ packages:
resolution: {integrity: sha512-o8qghlI8NZHU1lLPrpi2+Uq7abh4GGPpYANlalzWxyWteJOCsr/P+oPBA49TOLu5FTZO4d3F9MnWJfiMo4BkmA==}
engines: {node: '>=18'}
- resolution: {integrity: sha512-d2JWLCivmZYTSIoge9MsgFCZrt571BikcWGYkjC1khllbTeDlGqZ2D8vD8E/lJa8WGWbb7Plm8/XJYV7IJHZZw==}
- engines: {node: '>= 8'}
-
resolution: {integrity: sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g==}
engines: {node: '>=12'}
@@ -3546,14 +3066,6 @@ packages:
'@cloudflare/workers-types':
optional: true
- resolution: {integrity: sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==}
- engines: {node: '>=10'}
-
- resolution: {integrity: sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==}
- engines: {node: '>=12'}
-
resolution: {integrity: sha512-8VbfWfHLbbwu3+N6OKsOMpBdT4kXPDDB9cJk2bJ6mh9ucxdlnNvH1e+roYkKmN9Nxw2yjz7VzeO9oOz2zJ04Pw==}
engines: {node: '>=10.0.0'}
@@ -3825,216 +3337,138 @@ snapshots:
'@esbuild/[email protected]':
optional: true
- '@esbuild/[email protected]':
- optional: true
-
'@esbuild/[email protected]':
optional: true
'@esbuild/[email protected]':
optional: true
- '@esbuild/[email protected]':
- optional: true
-
'@esbuild/[email protected]':
optional: true
'@esbuild/[email protected]':
optional: true
- '@esbuild/[email protected]':
- optional: true
-
'@esbuild/[email protected]':
optional: true
'@esbuild/[email protected]':
optional: true
- '@esbuild/[email protected]':
- optional: true
-
'@esbuild/[email protected]':
optional: true
'@esbuild/[email protected]':
optional: true
- '@esbuild/[email protected]':
- optional: true
-
'@esbuild/[email protected]':
optional: true
'@esbuild/[email protected]':
optional: true
- '@esbuild/[email protected]':
- optional: true
-
'@esbuild/[email protected]':
optional: true
'@esbuild/[email protected]':
optional: true
- '@esbuild/[email protected]':
- optional: true
-
'@esbuild/[email protected]':
optional: true
'@esbuild/[email protected]':
optional: true
- '@esbuild/[email protected]':
- optional: true
-
'@esbuild/[email protected]':
optional: true
'@esbuild/[email protected]':
optional: true
- '@esbuild/[email protected]':
- optional: true
-
'@esbuild/[email protected]':
optional: true
'@esbuild/[email protected]':
optional: true
- '@esbuild/[email protected]':
- optional: true
-
'@esbuild/[email protected]':
optional: true
'@esbuild/[email protected]':
optional: true
- '@esbuild/[email protected]':
- optional: true
-
'@esbuild/[email protected]':
optional: true
'@esbuild/[email protected]':
optional: true
- '@esbuild/[email protected]':
- optional: true
-
'@esbuild/[email protected]':
optional: true
'@esbuild/[email protected]':
optional: true
- '@esbuild/[email protected]':
- optional: true
-
'@esbuild/[email protected]':
optional: true
'@esbuild/[email protected]':
optional: true
- '@esbuild/[email protected]':
- optional: true
-
'@esbuild/[email protected]':
optional: true
'@esbuild/[email protected]':
optional: true
- '@esbuild/[email protected]':
- optional: true
-
'@esbuild/[email protected]':
optional: true
'@esbuild/[email protected]':
optional: true
- '@esbuild/[email protected]':
- optional: true
-
'@esbuild/[email protected]':
optional: true
'@esbuild/[email protected]':
optional: true
- '@esbuild/[email protected]':
- optional: true
-
- '@esbuild/[email protected]':
- optional: true
-
'@esbuild/[email protected]':
optional: true
'@esbuild/[email protected]':
optional: true
- '@esbuild/[email protected]':
- optional: true
-
- '@esbuild/[email protected]':
- optional: true
-
'@esbuild/[email protected]':
optional: true
'@esbuild/[email protected]':
optional: true
- '@esbuild/[email protected]':
- optional: true
-
- '@esbuild/[email protected]':
- optional: true
-
'@esbuild/[email protected]':
optional: true
'@esbuild/[email protected]':
optional: true
- '@esbuild/[email protected]':
- optional: true
-
'@esbuild/[email protected]':
optional: true
'@esbuild/[email protected]':
optional: true
- '@esbuild/[email protected]':
- optional: true
-
'@esbuild/[email protected]':
optional: true
'@esbuild/[email protected]':
optional: true
- '@esbuild/[email protected]':
- optional: true
-
'@esbuild/[email protected]':
optional: true
'@esbuild/[email protected]':
optional: true
- '@esbuild/[email protected]':
- optional: true
-
dependencies:
eslint: 9.39.2([email protected])
@@ -4112,16 +3546,6 @@ snapshots:
'@floating-ui/[email protected]': {}
- '@google/[email protected]':
- dependencies:
- google-auth-library: 10.5.0
- protobufjs: 7.5.4
- ws: 8.18.3
- transitivePeerDependencies:
- - bufferutil
- - supports-color
- - utf-8-validate
-
'@humanfs/[email protected]': {}
'@humanfs/[email protected]':
@@ -4208,15 +3632,6 @@ snapshots:
optional: true
- '@isaacs/[email protected]':
- dependencies:
- string-width: 5.1.2
- string-width-cjs: [email protected]
- strip-ansi: 7.1.2
- strip-ansi-cjs: [email protected]
- wrap-ansi: 8.1.0
- wrap-ansi-cjs: [email protected]
-
dependencies:
'@sinclair/typebox': 0.27.8
@@ -4257,32 +3672,6 @@ snapshots:
'@nodelib/fs.scandir': 2.1.5
fastq: 1.19.1
- '@pkgjs/[email protected]':
- optional: true
-
- '@protobufjs/[email protected]': {}
-
- '@protobufjs/[email protected]': {}
-
- '@protobufjs/[email protected]': {}
-
- '@protobufjs/[email protected]': {}
-
- '@protobufjs/[email protected]':
- dependencies:
- '@protobufjs/aspromise': 1.1.2
- '@protobufjs/inquire': 1.1.0
-
- '@protobufjs/[email protected]': {}
-
- '@protobufjs/[email protected]': {}
-
- '@protobufjs/[email protected]': {}
-
- '@protobufjs/[email protected]': {}
-
- '@protobufjs/[email protected]': {}
-
'@radix-ui/[email protected]': {}
'@radix-ui/[email protected]': {}
@@ -4685,8 +4074,6 @@ snapshots:
'@rolldown/[email protected]': {}
- '@rolldown/[email protected]': {}
-
'@rollup/[email protected]':
optional: true
@@ -4827,6 +4214,7 @@ snapshots:
dependencies:
undici-types: 6.21.0
+ optional: true
'@types/[email protected]': {}
@@ -4970,18 +4358,6 @@ snapshots:
transitivePeerDependencies:
- supports-color
- dependencies:
- '@babel/core': 7.28.5
- '@babel/plugin-transform-react-jsx-self': 7.27.1(@babel/[email protected])
- '@babel/plugin-transform-react-jsx-source': 7.27.1(@babel/[email protected])
- '@rolldown/pluginutils': 1.0.0-beta.53
- '@types/babel__core': 7.20.5
- react-refresh: 0.18.0
- vite: 6.4.1(@types/[email protected])([email protected])
- transitivePeerDependencies:
- - supports-color
-
'@vitest/[email protected]':
dependencies:
'@vitest/spy': 1.6.1
@@ -5038,16 +4414,12 @@ snapshots:
-
dependencies:
color-convert: 2.0.1
-
@@ -5073,6 +4445,11 @@ snapshots:
dependencies:
printable-characters: 1.0.42
+ dependencies:
+ binaryen: 116.0.0-nightly.20240114
+ long: 5.3.2
+
@@ -5089,14 +4466,12 @@ snapshots:
-
-
+
@@ -5120,8 +4495,6 @@ snapshots:
node-releases: 2.0.27
update-browserslist-db: 1.1.4([email protected])
-
@@ -5231,8 +4604,6 @@ snapshots:
-
dependencies:
whatwg-mimetype: 4.0.0
@@ -5281,18 +4652,8 @@ snapshots:
es-errors: 1.3.0
gopd: 1.2.0
-
- dependencies:
- safe-buffer: 5.2.1
-
-
-
@@ -5361,35 +4722,6 @@ snapshots:
'@esbuild/win32-ia32': 0.21.5
'@esbuild/win32-x64': 0.21.5
- optionalDependencies:
- '@esbuild/aix-ppc64': 0.25.12
- '@esbuild/android-arm': 0.25.12
- '@esbuild/android-arm64': 0.25.12
- '@esbuild/android-x64': 0.25.12
- '@esbuild/darwin-arm64': 0.25.12
- '@esbuild/darwin-x64': 0.25.12
- '@esbuild/freebsd-arm64': 0.25.12
- '@esbuild/freebsd-x64': 0.25.12
- '@esbuild/linux-arm': 0.25.12
- '@esbuild/linux-arm64': 0.25.12
- '@esbuild/linux-ia32': 0.25.12
- '@esbuild/linux-loong64': 0.25.12
- '@esbuild/linux-mips64el': 0.25.12
- '@esbuild/linux-ppc64': 0.25.12
- '@esbuild/linux-riscv64': 0.25.12
- '@esbuild/linux-s390x': 0.25.12
- '@esbuild/linux-x64': 0.25.12
- '@esbuild/netbsd-arm64': 0.25.12
- '@esbuild/netbsd-x64': 0.25.12
- '@esbuild/openbsd-arm64': 0.25.12
- '@esbuild/openbsd-x64': 0.25.12
- '@esbuild/openharmony-arm64': 0.25.12
- '@esbuild/sunos-x64': 0.25.12
- '@esbuild/win32-arm64': 0.25.12
- '@esbuild/win32-ia32': 0.25.12
- '@esbuild/win32-x64': 0.25.12
-
@@ -5495,8 +4827,6 @@ snapshots:
-
dependencies:
pure-rand: 6.1.0
@@ -5527,11 +4857,6 @@ snapshots:
optionalDependencies:
picomatch: 4.0.3
- dependencies:
- node-domexception: 1.0.0
- web-streams-polyfill: 3.3.3
-
@@ -5554,11 +4879,6 @@ snapshots:
- dependencies:
- cross-spawn: 7.0.6
- signal-exit: 4.1.0
-
dependencies:
asynckit: 0.4.0
@@ -5569,10 +4889,6 @@ snapshots:
- dependencies:
- fetch-blob: 3.2.0
-
@@ -5589,23 +4905,6 @@ snapshots:
- dependencies:
- extend: 3.0.2
- https-proxy-agent: 7.0.6
- node-fetch: 3.3.2
- rimraf: 5.0.10
- transitivePeerDependencies:
- - supports-color
-
- dependencies:
- gaxios: 7.1.3
- google-logging-utils: 1.1.3
- json-bigint: 1.0.0
- transitivePeerDependencies:
- - supports-color
-
@@ -5647,42 +4946,12 @@ snapshots:
- dependencies:
- foreground-child: 3.3.1
- jackspeak: 3.4.3
- minimatch: 9.0.5
- minipass: 7.1.2
- package-json-from-dist: 1.0.1
- path-scurry: 1.11.1
-
- dependencies:
- base64-js: 1.5.1
- ecdsa-sig-formatter: 1.0.11
- gaxios: 7.1.3
- gcp-metadata: 8.1.2
- google-logging-utils: 1.1.3
- gtoken: 8.0.0
- jws: 4.0.1
- transitivePeerDependencies:
- - supports-color
-
-
- dependencies:
- gaxios: 7.1.3
- jws: 4.0.1
- transitivePeerDependencies:
- - supports-color
-
@@ -5782,8 +5051,6 @@ snapshots:
-
dependencies:
is-extglob: 2.1.1
@@ -5798,12 +5065,6 @@ snapshots:
- dependencies:
- '@isaacs/cliui': 8.0.2
- optionalDependencies:
- '@pkgjs/parseargs': 0.11.0
-
@@ -5844,10 +5105,6 @@ snapshots:
- dependencies:
- bignumber.js: 9.3.1
-
@@ -5856,17 +5113,6 @@ snapshots:
- dependencies:
- buffer-equal-constant-time: 1.0.1
- ecdsa-sig-formatter: 1.0.11
- safe-buffer: 5.2.1
-
- dependencies:
- jwa: 2.0.1
- safe-buffer: 5.2.1
-
dependencies:
json-buffer: 3.0.1
@@ -5916,10 +5162,6 @@ snapshots:
dependencies:
react: 18.3.1
- dependencies:
- react: 19.2.3
-
@@ -5985,8 +5227,6 @@ snapshots:
dependencies:
brace-expansion: 2.0.2
-
dependencies:
acorn: 8.15.0
@@ -6014,14 +5254,6 @@ snapshots:
-
- dependencies:
- data-uri-to-buffer: 4.0.1
- fetch-blob: 3.2.0
- formdata-polyfill: 4.0.10
-
@@ -6065,8 +5297,6 @@ snapshots:
dependencies:
p-limit: 3.1.0
-
dependencies:
callsites: 3.1.0
@@ -6093,11 +5323,6 @@ snapshots:
- dependencies:
- lru-cache: 10.4.3
- minipass: 7.1.2
-
@@ -6179,21 +5404,6 @@ snapshots:
- dependencies:
- '@protobufjs/aspromise': 1.1.2
- '@protobufjs/base64': 1.1.2
- '@protobufjs/codegen': 2.0.4
- '@protobufjs/eventemitter': 1.1.0
- '@protobufjs/fetch': 1.1.0
- '@protobufjs/float': 1.0.2
- '@protobufjs/inquire': 1.1.0
- '@protobufjs/path': 1.1.2
- '@protobufjs/pool': 1.1.0
- '@protobufjs/utf8': 1.1.0
- '@types/node': 22.19.6
- long: 5.3.2
-
dependencies:
punycode: 2.3.1
@@ -6212,19 +5422,12 @@ snapshots:
react: 18.3.1
scheduler: 0.23.2
- dependencies:
- react: 19.2.3
- scheduler: 0.27.0
-
-
dependencies:
react: 18.3.1
@@ -6266,8 +5469,6 @@ snapshots:
dependencies:
loose-envify: 1.4.0
-
dependencies:
pify: 2.3.0
@@ -6300,10 +5501,6 @@ snapshots:
- dependencies:
- glob: 10.5.0
-
dependencies:
estree-walker: 0.6.1
@@ -6354,8 +5551,6 @@ snapshots:
dependencies:
queue-microtask: 1.2.3
-
@@ -6366,8 +5561,6 @@ snapshots:
dependencies:
loose-envify: 1.4.0
-
@@ -6433,26 +5626,6 @@ snapshots:
- dependencies:
- emoji-regex: 8.0.0
- is-fullwidth-code-point: 3.0.0
- strip-ansi: 6.0.1
-
- dependencies:
- eastasianwidth: 0.2.0
- emoji-regex: 9.2.2
- strip-ansi: 7.1.2
-
- dependencies:
- ansi-regex: 5.0.1
-
- dependencies:
- ansi-regex: 6.2.2
-
@@ -6563,13 +5736,12 @@ snapshots:
-
+ optional: true
dependencies:
@@ -6619,10 +5791,6 @@ snapshots:
dependencies:
react: 18.3.1
- dependencies:
- react: 19.2.3
-
@@ -6654,19 +5822,6 @@ snapshots:
'@types/node': 22.19.6
fsevents: 2.3.3
- dependencies:
- esbuild: 0.25.12
- fdir: 6.5.0([email protected])
- picomatch: 4.0.3
- postcss: 8.5.6
- rollup: 4.53.3
- tinyglobby: 0.2.15
- optionalDependencies:
- '@types/node': 22.19.6
- fsevents: 2.3.3
- jiti: 1.21.7
-
dependencies:
'@vitest/expect': 1.6.1
@@ -6706,8 +5861,6 @@ snapshots:
dependencies:
xml-name-validator: 5.0.0
-
@@ -6760,18 +5913,6 @@ snapshots:
- bufferutil
- utf-8-validate
- dependencies:
- ansi-styles: 4.3.0
- string-width: 4.2.3
- strip-ansi: 6.0.1
-
- dependencies:
- ansi-styles: 6.2.3
- string-width: 5.1.2
- strip-ansi: 7.1.2
-
@@ -6807,11 +5948,3 @@ snapshots:
'@types/react': 18.3.27
immer: 11.0.1
react: 18.3.1
-
- dependencies:
- use-sync-external-store: 1.6.0([email protected])
- optionalDependencies:
- '@types/react': 18.3.27
- immer: 11.0.1
- react: 19.2.3