diff --git a/.gitea/workflows/docker-build.yml b/.gitea/workflows/docker-build.yml index 63034c6..e3a8d15 100644 --- a/.gitea/workflows/docker-build.yml +++ b/.gitea/workflows/docker-build.yml @@ -10,9 +10,11 @@ on: - 'solitaire_web/**' - 'solitaire_sync/**' - 'solitaire_core/**' + - 'solitaire_data/**' - 'solitaire_engine/**' - 'Cargo.toml' - 'Cargo.lock' + - 'build_wasm.sh' - 'solitaire_server/Dockerfile' - '.gitea/workflows/docker-build.yml' @@ -36,12 +38,9 @@ jobs: id: meta run: echo "sha=${GITHUB_SHA::8}" >> "$GITHUB_OUTPUT" - # WASM artifact freshness is owned by the `web-wasm-rebuild` workflow, - # which rebuilds pkg/ in CI on every master change to a wasm-feeding crate - # and commits it back (CI is the single source of truth — the artifacts - # aren't byte-reproducible on contributor machines). That pkg/ commit then - # triggers this workflow, so the deployed image always ships fresh wasm. - # No drift check is needed here. + # The wasm bundles (solitaire_server/web/pkg/) are not in the repo — + # the Dockerfile's wasm-builder stage builds them from source inside + # this image build, so the deployed image always ships fresh wasm. - name: Log in to Gitea registry uses: docker/login-action@v3 diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index 7f4404e..997956c 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -1,7 +1,7 @@ # Workspace gate: the same clippy + test commands CLAUDE.md §6 requires # locally, run on every master push and pull request. Until this workflow # existed, nothing in CI ran the test suite at all — a direct push to -# master (or the web-wasm-rebuild bot commit) was entirely unguarded. +# master was entirely unguarded. name: Test on: diff --git a/.gitea/workflows/web-e2e.yml b/.gitea/workflows/web-e2e.yml index 2b69909..e408de9 100644 --- a/.gitea/workflows/web-e2e.yml +++ b/.gitea/workflows/web-e2e.yml @@ -8,9 +8,13 @@ on: - 'solitaire_server/src/**' - 'solitaire_server/e2e/**' - 'solitaire_wasm/**' + - 'solitaire_web/**' + - 'solitaire_engine/**' + - 'solitaire_data/**' - 'solitaire_core/**' - 'Cargo.toml' - 'Cargo.lock' + - 'build_wasm.sh' - '.gitea/workflows/web-e2e.yml' workflow_dispatch: @@ -24,10 +28,31 @@ jobs: - name: Install Rust uses: dtolnay/rust-toolchain@stable + with: + targets: wasm32-unknown-unknown - name: Cache cargo build uses: Swatinem/rust-cache@v2 + # The wasm bundles (solitaire_server/web/pkg/) are not in the repo — + # build them here so the served pages have real wasm to load. Tool + # versions are pinned; keep in sync with solitaire_server/Dockerfile. + - name: Install wasm-bindgen-cli + wasm-pack (pinned) + uses: taiki-e/install-action@v2 + with: + tool: wasm-bindgen-cli@0.2.120,wasm-pack@0.14.0 + + - name: Install binaryen 130 (wasm-opt, pinned) + run: | + set -euo pipefail + curl -sSL \ + https://github.com/WebAssembly/binaryen/releases/download/version_130/binaryen-version_130-x86_64-linux.tar.gz \ + | tar xz + echo "$PWD/binaryen-version_130/bin" >> "$GITHUB_PATH" + + - name: Build WASM artifacts + run: ./build_wasm.sh + # Prebuild the server so Playwright's `webServer` (which runs # `cargo run -p solitaire_server`) starts from a compiled binary instead # of cold-compiling the whole dependency graph (axum/sqlx/reqwest) inside diff --git a/.gitea/workflows/web-wasm-rebuild.yml b/.gitea/workflows/web-wasm-rebuild.yml deleted file mode 100644 index 7d54aae..0000000 --- a/.gitea/workflows/web-wasm-rebuild.yml +++ /dev/null @@ -1,89 +0,0 @@ -name: Web WASM Rebuild - -# CI is the single source of truth for solitaire_server/web/pkg/. -# -# The wasm artifacts cannot be reproduced byte-for-byte on an arbitrary -# contributor machine: even with identical rustc 1.95.0 / LLVM 22.1.2, the same -# flags, the same Cargo.lock and remapped source paths, the output still differs -# by host environment. So rather than police freshness with a rebuild-and-diff -# gate (which false-failed for exactly that reason), CI rebuilds the artifacts -# itself on every master change to a wasm-feeding crate and commits them back. -# -# Result: the deployed pkg/ can't silently rot, and contributors never need to -# run build_wasm.sh by hand. The commit touches only pkg/, which is not in this -# workflow's trigger paths (so it does not re-trigger here) but does match -# docker-build's, so the refreshed wasm deploys. - -on: - push: - branches: [master] - paths: - - 'solitaire_core/**' - - 'solitaire_engine/**' - - 'solitaire_data/**' - - 'solitaire_sync/**' - - 'solitaire_wasm/**' - - 'solitaire_web/**' - - 'Cargo.toml' - - 'Cargo.lock' - - 'build_wasm.sh' - - '.gitea/workflows/web-wasm-rebuild.yml' - workflow_dispatch: - -concurrency: - group: web-wasm-rebuild - cancel-in-progress: false - -jobs: - rebuild: - runs-on: ubuntu-latest - - steps: - - name: Checkout - uses: actions/checkout@v4 - with: - fetch-depth: 0 - token: ${{ secrets.CI_TOKEN }} - - - name: Install Rust 1.95.0 - uses: dtolnay/rust-toolchain@master - with: - toolchain: 1.95.0 - targets: wasm32-unknown-unknown - - - name: Cache cargo build - uses: Swatinem/rust-cache@v2 - - - name: Install wasm-bindgen-cli + wasm-pack (pinned) - uses: taiki-e/install-action@v2 - with: - tool: wasm-bindgen-cli@0.2.120,wasm-pack@0.14.0 - - - name: Install binaryen 130 (wasm-opt, pinned) - run: | - set -euo pipefail - curl -sSL \ - https://github.com/WebAssembly/binaryen/releases/download/version_130/binaryen-version_130-x86_64-linux.tar.gz \ - | tar xz - echo "$PWD/binaryen-version_130/bin" >> "$GITHUB_PATH" - - - name: Rebuild WASM artifacts - run: ./build_wasm.sh - - - name: Commit refreshed artifacts if changed - run: | - set -euo pipefail - if git diff --quiet -- solitaire_server/web/pkg/; then - echo "pkg/ already up to date — nothing to commit." - exit 0 - fi - git config user.email "ci@gitea.local" - git config user.name "Gitea CI" - git add solitaire_server/web/pkg/ - git commit -m "chore(web): regenerate wasm artifacts" - # master is unprotected; retry once if the tip moved under us. - git push origin HEAD:master || { - git fetch origin master - git rebase origin/master - git push origin HEAD:master - } diff --git a/.gitignore b/.gitignore index 4d000c1..787896b 100644 --- a/.gitignore +++ b/.gitignore @@ -41,3 +41,7 @@ deploy/*-auth-secret.yaml # Local token-saving helper scripts (peek/cargoclip/testfail/diffclip/etc.) — # inspection-only Go tools, not committed. Tracked scripts/*.sh and *.md stay. scripts/*.go + +# WASM bundles — built by build_wasm.sh locally and by the Docker wasm-builder +# stage / web-e2e workflow in CI; never committed (issue #156) +solitaire_server/web/pkg/ diff --git a/ARCHITECTURE.md b/ARCHITECTURE.md index ee2dfca..be4f0a1 100644 --- a/ARCHITECTURE.md +++ b/ARCHITECTURE.md @@ -193,7 +193,7 @@ Owns: ### `solitaire_wasm` **Dependencies:** `solitaire_core`, `serde`, `serde_json`, `chrono`, `wasm-bindgen`, `serde-wasm-bindgen`. -WebAssembly bindings for browser-side replay playback. Compiled to `cdylib` via `wasm-pack build`; the output lives in `solitaire_server/web/pkg/` and is served statically by the server. +WebAssembly bindings for browser-side replay playback. Compiled to `cdylib` via `wasm-pack build` (`build_wasm.sh`); the output lands in `solitaire_server/web/pkg/` — gitignored, built in CI (Docker `wasm-builder` stage, web-e2e workflow) — and is served statically by the server. Intentionally **does not** depend on `solitaire_data` (which pulls in `dirs`, `keyring`, `reqwest`, and other non-WASM crates). Instead it defines a minimal `Replay` mirror with the same serde shape as `solitaire_data::Replay` — the JSON wire format is the compatibility contract. @@ -745,7 +745,7 @@ All endpoints are under the base URL configured by the user (e.g., `https://soli | Method | Path | Auth | Notes | |---|---|---|---| | GET | `/replays/:id` | None | Serves `web/index.html`; JS fetches `/api/replays/:id` and steps through via the `solitaire_wasm` WASM module | -| GET | `/web/*` | None | Static assets served via `ServeDir` from `solitaire_server/web/` (includes `web/pkg/` with wasm-bindgen output) | +| GET | `/web/*` | None | Static assets served via `ServeDir` from `solitaire_server/web/` (includes `web/pkg/` with wasm-bindgen output — gitignored, produced by `build_wasm.sh` / CI) | ### Account Management diff --git a/build_wasm.sh b/build_wasm.sh index d521aa8..6df813a 100755 --- a/build_wasm.sh +++ b/build_wasm.sh @@ -13,9 +13,10 @@ # Run from the repo root: # ./build_wasm.sh # -# The generated pkg/ files are committed to git so self-hosters who don't -# touch the WASM crates can skip this step. Regenerate after any change to -# solitaire_wasm/, solitaire_web/, solitaire_engine/, or solitaire_core/. +# The generated pkg/ files are NOT committed to git (issue #156). CI builds +# them where needed: the Docker image's wasm-builder stage for deployment, +# and the web-e2e workflow for browser tests. Run this script locally before +# serving /web or /play from a source checkout. set -euo pipefail diff --git a/scripts/watch_deploy.sh b/scripts/watch_deploy.sh index e0305e2..cbd7110 100755 --- a/scripts/watch_deploy.sh +++ b/scripts/watch_deploy.sh @@ -2,8 +2,8 @@ # Live-watch the Gitea Actions deploy pipeline for Ferrous Solitaire. # # Polls recent workflow runs and prints a compact status block each cycle. -# Stops when the newest docker-build (the deploy) has completed and no -# web-wasm-rebuild is still pending — i.e. the full fix is live. +# Stops when the newest docker-build (the deploy) has completed — the wasm +# is built inside that image build, so no other workflow gates the deploy. # # Usage: ./scripts/watch_deploy.sh [interval_seconds] # token is read from ~/.config/tea/config.yml (never printed). @@ -49,16 +49,15 @@ for r in runs: r.get("id"), str(r.get("head_sha"))[:7], wf[:18], r.get("status"), r.get("conclusion"))) db = [r for r in runs if "docker-build" in str(r.get("path"))] -wr_pending = any(r.get("status") != "completed" for r in runs if "web-wasm-rebuild" in str(r.get("path"))) top = db[0] if db else None -live = bool(top and top.get("status")=="completed" and top.get("conclusion")=="success" and not wr_pending) -print("STATE=%s" % ("LIVE" if live else ("WAIT_WASM" if wr_pending else "DEPLOYING"))) +live = bool(top and top.get("status")=="completed" and top.get("conclusion")=="success") +print("STATE=%s" % ("LIVE" if live else "DEPLOYING")) PY )" echo "$out" | grep -v '^STATE=' if echo "$out" | grep -q '^STATE=LIVE'; then echo "" - echo "DEPLOY LIVE — newest docker-build succeeded, no wasm rebuild pending." + echo "DEPLOY LIVE — newest docker-build succeeded." echo " Test: https://klondike.aleshym.co/play?v=${RANDOM}" break fi diff --git a/solitaire_server/Dockerfile b/solitaire_server/Dockerfile index 11c8d0a..53640d5 100644 --- a/solitaire_server/Dockerfile +++ b/solitaire_server/Dockerfile @@ -1,3 +1,68 @@ +# --- WASM build stage --- +# Builds solitaire_server/web/pkg/ (replay viewer + Bevy canvas app) from +# source. The artifacts are not committed to the repo (issue #156); this +# stage is their single source of truth for deployment. +FROM rust:1.95-slim AS wasm-builder + +WORKDIR /build + +RUN apt-get update && apt-get install -y --no-install-recommends \ + curl \ + ca-certificates \ + && rm -rf /var/lib/apt/lists/* + +RUN rustup target add wasm32-unknown-unknown + +# Pinned wasm toolchain — keep versions in sync with +# .gitea/workflows/web-e2e.yml and build_wasm.sh prerequisites. +RUN curl -sSL https://github.com/rustwasm/wasm-bindgen/releases/download/0.2.120/wasm-bindgen-0.2.120-x86_64-unknown-linux-musl.tar.gz \ + | tar xz -C /opt \ + && ln -s /opt/wasm-bindgen-0.2.120-x86_64-unknown-linux-musl/wasm-bindgen /usr/local/bin/wasm-bindgen \ + && curl -sSL https://github.com/rustwasm/wasm-pack/releases/download/v0.14.0/wasm-pack-v0.14.0-x86_64-unknown-linux-musl.tar.gz \ + | tar xz -C /opt \ + && ln -s /opt/wasm-pack-v0.14.0-x86_64-unknown-linux-musl/wasm-pack /usr/local/bin/wasm-pack \ + && curl -sSL https://github.com/WebAssembly/binaryen/releases/download/version_130/binaryen-version_130-x86_64-linux.tar.gz \ + | tar xz -C /opt \ + && ln -s /opt/binaryen-version_130/bin/wasm-opt /usr/local/bin/wasm-opt + +# Manifests first so the dependency-fetch layer caches across source changes +# (same pattern as the server build stage below). +COPY .cargo/config.toml ./.cargo/config.toml +COPY Cargo.toml Cargo.lock ./ +COPY solitaire_core/Cargo.toml ./solitaire_core/Cargo.toml +COPY solitaire_sync/Cargo.toml ./solitaire_sync/Cargo.toml +COPY solitaire_data/Cargo.toml ./solitaire_data/Cargo.toml +COPY solitaire_engine/Cargo.toml ./solitaire_engine/Cargo.toml +COPY solitaire_server/Cargo.toml ./solitaire_server/Cargo.toml +COPY solitaire_app/Cargo.toml ./solitaire_app/Cargo.toml +COPY solitaire_assetgen/Cargo.toml ./solitaire_assetgen/Cargo.toml +COPY solitaire_wasm/Cargo.toml ./solitaire_wasm/Cargo.toml +COPY solitaire_web/Cargo.toml ./solitaire_web/Cargo.toml + +RUN for crate in solitaire_core solitaire_sync solitaire_data solitaire_engine \ + solitaire_server solitaire_app solitaire_assetgen solitaire_wasm solitaire_web; do \ + mkdir -p $crate/src && echo "pub fn _stub() {}" > $crate/src/lib.rs; \ + done && \ + echo "fn main() {}" > solitaire_server/src/main.rs && \ + echo "fn main() {}" > solitaire_app/src/main.rs && \ + echo "fn main() {}" > solitaire_assetgen/src/main.rs + +RUN cargo fetch --locked + +# Real source for the wasm-feeding crates. Whole crate directories (not just +# src/) because solitaire_engine embeds theme/audio/font assets at compile +# time from its own assets/ and the workspace assets/. +COPY build_wasm.sh ./ +COPY solitaire_core ./solitaire_core +COPY solitaire_sync ./solitaire_sync +COPY solitaire_data ./solitaire_data +COPY solitaire_engine ./solitaire_engine +COPY solitaire_wasm ./solitaire_wasm +COPY solitaire_web ./solitaire_web +COPY assets ./assets + +RUN ./build_wasm.sh + # --- Build stage --- FROM rust:1.95-slim AS builder @@ -67,6 +132,8 @@ COPY --from=builder /build/target/release/solitaire_server ./server # /app/assets → /assets route # Card themes (dark + classic) are embedded in the binary; no theme files needed here. COPY solitaire_server/web ./solitaire_server/web +# The wasm bundles are never in the repo — they come from the wasm-builder stage. +COPY --from=wasm-builder /build/solitaire_server/web/pkg ./solitaire_server/web/pkg COPY assets ./assets ENV SERVER_PORT=8080 diff --git a/solitaire_server/web/pkg/canvas.js b/solitaire_server/web/pkg/canvas.js deleted file mode 100644 index da85444..0000000 --- a/solitaire_server/web/pkg/canvas.js +++ /dev/null @@ -1,2235 +0,0 @@ -export function start() { - wasm.start(); -} -function __wbg_get_imports() { - const import0 = { - __proto__: null, - __wbg_Window_1535697a053fe988: function(arg0) { - const ret = arg0.Window; - return ret; - }, - __wbg_Window_c7f91e3f80ae0a0e: function(arg0) { - const ret = arg0.Window; - return ret; - }, - __wbg_WorkerGlobalScope_b9ad7f2d34707e2e: function(arg0) { - const ret = arg0.WorkerGlobalScope; - return ret; - }, - __wbg___wbindgen_boolean_get_c3dd5c39f1b5a12b: function(arg0) { - const v = arg0; - const ret = typeof(v) === 'boolean' ? v : undefined; - return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0; - }, - __wbg___wbindgen_debug_string_07cb72cfcc952e2b: function(arg0, arg1) { - const ret = debugString(arg1); - const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); - }, - __wbg___wbindgen_is_function_2f0fd7ceb86e64c5: function(arg0) { - const ret = typeof(arg0) === 'function'; - return ret; - }, - __wbg___wbindgen_is_undefined_244a92c34d3b6ec0: function(arg0) { - const ret = arg0 === undefined; - return ret; - }, - __wbg___wbindgen_number_get_dd6d69a6079f26f1: function(arg0, arg1) { - const obj = arg1; - const ret = typeof(obj) === 'number' ? obj : undefined; - getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true); - }, - __wbg___wbindgen_string_get_965592073e5d848c: function(arg0, arg1) { - const obj = arg1; - const ret = typeof(obj) === 'string' ? obj : undefined; - var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len1 = WASM_VECTOR_LEN; - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); - }, - __wbg___wbindgen_throw_9c75d47bf9e7731e: function(arg0, arg1) { - throw new Error(getStringFromWasm0(arg0, arg1)); - }, - __wbg__wbg_cb_unref_158e43e869788cdc: function(arg0) { - arg0._wbg_cb_unref(); - }, - __wbg_abort_87eb7f23cf4b73d1: function(arg0) { - arg0.abort(); - }, - __wbg_activeElement_4afc74fc207bb2f3: function(arg0) { - const ret = arg0.activeElement; - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }, - __wbg_activeTexture_b8a63f4b51a716a9: function(arg0, arg1) { - arg0.activeTexture(arg1 >>> 0); - }, - __wbg_activeTexture_df98f0476a8d2771: function(arg0, arg1) { - arg0.activeTexture(arg1 >>> 0); - }, - __wbg_addEventListener_a95e75babfc4f5a3: function() { return handleError(function (arg0, arg1, arg2, arg3) { - arg0.addEventListener(getStringFromWasm0(arg1, arg2), arg3); - }, arguments); }, - __wbg_addListener_223ba2d16cad9260: function() { return handleError(function (arg0, arg1) { - arg0.addListener(arg1); - }, arguments); }, - __wbg_altKey_0a7b13357fc7557d: function(arg0) { - const ret = arg0.altKey; - return ret; - }, - __wbg_altKey_6c67d807c153b5b3: function(arg0) { - const ret = arg0.altKey; - return ret; - }, - __wbg_animate_8f41e2f47c7d04ab: function(arg0, arg1, arg2) { - const ret = arg0.animate(arg1, arg2); - return ret; - }, - __wbg_appendChild_f8e0d8251588e3d1: function() { return handleError(function (arg0, arg1) { - const ret = arg0.appendChild(arg1); - return ret; - }, arguments); }, - __wbg_arrayBuffer_87e3ac06d961f7a0: function() { return handleError(function (arg0) { - const ret = arg0.arrayBuffer(); - return ret; - }, arguments); }, - __wbg_attachShader_18d37e6a1936237b: function(arg0, arg1, arg2) { - arg0.attachShader(arg1, arg2); - }, - __wbg_attachShader_ce0935c038866500: function(arg0, arg1, arg2) { - arg0.attachShader(arg1, arg2); - }, - __wbg_beginQuery_57423f952238d42b: function(arg0, arg1, arg2) { - arg0.beginQuery(arg1 >>> 0, arg2); - }, - __wbg_bindAttribLocation_da2a20a747100943: function(arg0, arg1, arg2, arg3, arg4) { - arg0.bindAttribLocation(arg1, arg2 >>> 0, getStringFromWasm0(arg3, arg4)); - }, - __wbg_bindAttribLocation_eff3edd4a7818b2a: function(arg0, arg1, arg2, arg3, arg4) { - arg0.bindAttribLocation(arg1, arg2 >>> 0, getStringFromWasm0(arg3, arg4)); - }, - __wbg_bindBufferRange_a1e77739561685ab: function(arg0, arg1, arg2, arg3, arg4, arg5) { - arg0.bindBufferRange(arg1 >>> 0, arg2 >>> 0, arg3, arg4, arg5); - }, - __wbg_bindBuffer_a77c5c8cfa41f082: function(arg0, arg1, arg2) { - arg0.bindBuffer(arg1 >>> 0, arg2); - }, - __wbg_bindBuffer_baae5a34a697efa6: function(arg0, arg1, arg2) { - arg0.bindBuffer(arg1 >>> 0, arg2); - }, - __wbg_bindFramebuffer_5724927db7943266: function(arg0, arg1, arg2) { - arg0.bindFramebuffer(arg1 >>> 0, arg2); - }, - __wbg_bindFramebuffer_fb9ea036031ad65f: function(arg0, arg1, arg2) { - arg0.bindFramebuffer(arg1 >>> 0, arg2); - }, - __wbg_bindRenderbuffer_7e84f06129c44e35: function(arg0, arg1, arg2) { - arg0.bindRenderbuffer(arg1 >>> 0, arg2); - }, - __wbg_bindRenderbuffer_84ad4e2c1b3e50b2: function(arg0, arg1, arg2) { - arg0.bindRenderbuffer(arg1 >>> 0, arg2); - }, - __wbg_bindSampler_7259ad45d0345a23: function(arg0, arg1, arg2) { - arg0.bindSampler(arg1 >>> 0, arg2); - }, - __wbg_bindTexture_d4affe751f64c567: function(arg0, arg1, arg2) { - arg0.bindTexture(arg1 >>> 0, arg2); - }, - __wbg_bindTexture_f6ae9f2a0b12117c: function(arg0, arg1, arg2) { - arg0.bindTexture(arg1 >>> 0, arg2); - }, - __wbg_bindVertexArrayOES_b92f6239378bda5e: function(arg0, arg1) { - arg0.bindVertexArrayOES(arg1); - }, - __wbg_bindVertexArray_7dd4cc73efaa5b02: function(arg0, arg1) { - arg0.bindVertexArray(arg1); - }, - __wbg_blendColor_1bff6ee57033e115: function(arg0, arg1, arg2, arg3, arg4) { - arg0.blendColor(arg1, arg2, arg3, arg4); - }, - __wbg_blendColor_cd047fc76ce752b0: function(arg0, arg1, arg2, arg3, arg4) { - arg0.blendColor(arg1, arg2, arg3, arg4); - }, - __wbg_blendEquationSeparate_640fe636515888eb: function(arg0, arg1, arg2) { - arg0.blendEquationSeparate(arg1 >>> 0, arg2 >>> 0); - }, - __wbg_blendEquationSeparate_b401e331f08b4a35: function(arg0, arg1, arg2) { - arg0.blendEquationSeparate(arg1 >>> 0, arg2 >>> 0); - }, - __wbg_blendEquation_1dbe2aef71b7c075: function(arg0, arg1) { - arg0.blendEquation(arg1 >>> 0); - }, - __wbg_blendEquation_23d0345f106752af: function(arg0, arg1) { - arg0.blendEquation(arg1 >>> 0); - }, - __wbg_blendFuncSeparate_94c2b2c25a28ce3e: function(arg0, arg1, arg2, arg3, arg4) { - arg0.blendFuncSeparate(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0); - }, - __wbg_blendFuncSeparate_e23244e1cc1ea452: function(arg0, arg1, arg2, arg3, arg4) { - arg0.blendFuncSeparate(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0); - }, - __wbg_blendFunc_0836984f8f914802: function(arg0, arg1, arg2) { - arg0.blendFunc(arg1 >>> 0, arg2 >>> 0); - }, - __wbg_blendFunc_eb0a56441acebc3e: function(arg0, arg1, arg2) { - arg0.blendFunc(arg1 >>> 0, arg2 >>> 0); - }, - __wbg_blitFramebuffer_e7efe944be8d2b25: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10) { - arg0.blitFramebuffer(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0); - }, - __wbg_blockSize_f2f0a46871d67efb: function(arg0) { - const ret = arg0.blockSize; - return ret; - }, - __wbg_body_9a319c5d4ea2d0d8: function(arg0) { - const ret = arg0.body; - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }, - __wbg_brand_3bc196a43eceb8af: function(arg0, arg1) { - const ret = arg1.brand; - const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); - }, - __wbg_brands_b7dcf262485c3e7c: function(arg0) { - const ret = arg0.brands; - return ret; - }, - __wbg_bufferData_27fc020b0a028600: function(arg0, arg1, arg2, arg3) { - arg0.bufferData(arg1 >>> 0, arg2, arg3 >>> 0); - }, - __wbg_bufferData_611ad2765f706c85: function(arg0, arg1, arg2, arg3) { - arg0.bufferData(arg1 >>> 0, arg2, arg3 >>> 0); - }, - __wbg_bufferData_9cef1bde6d07b2e7: function(arg0, arg1, arg2, arg3) { - arg0.bufferData(arg1 >>> 0, arg2, arg3 >>> 0); - }, - __wbg_bufferData_d3f76b87295685cb: function(arg0, arg1, arg2, arg3) { - arg0.bufferData(arg1 >>> 0, arg2, arg3 >>> 0); - }, - __wbg_bufferSubData_11b45dd61c816637: function(arg0, arg1, arg2, arg3) { - arg0.bufferSubData(arg1 >>> 0, arg2, arg3); - }, - __wbg_bufferSubData_85fcbd0682ecfbe6: function(arg0, arg1, arg2, arg3) { - arg0.bufferSubData(arg1 >>> 0, arg2, arg3); - }, - __wbg_button_9121eff76035e6f3: function(arg0) { - const ret = arg0.button; - return ret; - }, - __wbg_buttons_6d1f718b1b841b35: function(arg0) { - const ret = arg0.buttons; - return ret; - }, - __wbg_cancelAnimationFrame_44f7b2b0c5c39988: function() { return handleError(function (arg0, arg1) { - arg0.cancelAnimationFrame(arg1); - }, arguments); }, - __wbg_cancelIdleCallback_babd9f2c9e0e274e: function(arg0, arg1) { - arg0.cancelIdleCallback(arg1 >>> 0); - }, - __wbg_cancel_65f38182e2eeac5c: function(arg0) { - arg0.cancel(); - }, - __wbg_catch_f939343cb181958c: function(arg0, arg1) { - const ret = arg0.catch(arg1); - return ret; - }, - __wbg_clearBufferfv_f3f9113132f1fcf2: function(arg0, arg1, arg2, arg3, arg4) { - arg0.clearBufferfv(arg1 >>> 0, arg2, getArrayF32FromWasm0(arg3, arg4)); - }, - __wbg_clearBufferiv_d2f793f8673febc9: function(arg0, arg1, arg2, arg3, arg4) { - arg0.clearBufferiv(arg1 >>> 0, arg2, getArrayI32FromWasm0(arg3, arg4)); - }, - __wbg_clearBufferuiv_7b92c9e5c5786765: function(arg0, arg1, arg2, arg3, arg4) { - arg0.clearBufferuiv(arg1 >>> 0, arg2, getArrayU32FromWasm0(arg3, arg4)); - }, - __wbg_clearDepth_3856b90de145bade: function(arg0, arg1) { - arg0.clearDepth(arg1); - }, - __wbg_clearDepth_8bd1a97b6d503fee: function(arg0, arg1) { - arg0.clearDepth(arg1); - }, - __wbg_clearStencil_13383248806f46ce: function(arg0, arg1) { - arg0.clearStencil(arg1); - }, - __wbg_clearStencil_1e7ff35a31d7916a: function(arg0, arg1) { - arg0.clearStencil(arg1); - }, - __wbg_clearTimeout_491493c517cfff1c: function(arg0, arg1) { - arg0.clearTimeout(arg1); - }, - __wbg_clear_4ea2bcc891545cba: function(arg0, arg1) { - arg0.clear(arg1 >>> 0); - }, - __wbg_clear_aba32769af482a1b: function(arg0, arg1) { - arg0.clear(arg1 >>> 0); - }, - __wbg_clientWaitSync_5a73eb00e846b6e7: function(arg0, arg1, arg2, arg3) { - const ret = arg0.clientWaitSync(arg1, arg2 >>> 0, arg3 >>> 0); - return ret; - }, - __wbg_close_f2f9163a4a555379: function(arg0) { - arg0.close(); - }, - __wbg_code_5ad85ce0561e0bb5: function(arg0, arg1) { - const ret = arg1.code; - const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); - }, - __wbg_colorMask_360d34a1b73138ff: function(arg0, arg1, arg2, arg3, arg4) { - arg0.colorMask(arg1 !== 0, arg2 !== 0, arg3 !== 0, arg4 !== 0); - }, - __wbg_colorMask_982ef6eda4803a18: function(arg0, arg1, arg2, arg3, arg4) { - arg0.colorMask(arg1 !== 0, arg2 !== 0, arg3 !== 0, arg4 !== 0); - }, - __wbg_compileShader_50b61cd1b374d531: function(arg0, arg1) { - arg0.compileShader(arg1); - }, - __wbg_compileShader_bedba6a7869aa58d: function(arg0, arg1) { - arg0.compileShader(arg1); - }, - __wbg_compressedTexSubImage2D_79f87c415191cb5b: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) { - arg0.compressedTexSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8); - }, - __wbg_compressedTexSubImage2D_a9f8677e599cf1d4: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) { - arg0.compressedTexSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8); - }, - __wbg_compressedTexSubImage2D_eadf1d97b9426788: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) { - arg0.compressedTexSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8, arg9); - }, - __wbg_compressedTexSubImage3D_101015bd664c7388: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) { - arg0.compressedTexSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10, arg11); - }, - __wbg_compressedTexSubImage3D_fa1a576896bbdaa1: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10) { - arg0.compressedTexSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10); - }, - __wbg_contains_89b774e57b8d9af4: function(arg0, arg1) { - const ret = arg0.contains(arg1); - return ret; - }, - __wbg_contentRect_592c3033c92a2ee3: function(arg0) { - const ret = arg0.contentRect; - return ret; - }, - __wbg_copyBufferSubData_6091c9cc936cc895: function(arg0, arg1, arg2, arg3, arg4, arg5) { - arg0.copyBufferSubData(arg1 >>> 0, arg2 >>> 0, arg3, arg4, arg5); - }, - __wbg_copyTexSubImage2D_5562ca0ba8f1ef9d: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) { - arg0.copyTexSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8); - }, - __wbg_copyTexSubImage2D_8950f8d58b0f216b: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) { - arg0.copyTexSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8); - }, - __wbg_copyTexSubImage3D_c947f39e5a487ca6: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) { - arg0.copyTexSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9); - }, - __wbg_createBuffer_68a72615fda09cc7: function(arg0) { - const ret = arg0.createBuffer(); - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }, - __wbg_createBuffer_88aa6747ef1e21b9: function(arg0) { - const ret = arg0.createBuffer(); - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }, - __wbg_createElement_679cad83bb50288c: function() { return handleError(function (arg0, arg1, arg2) { - const ret = arg0.createElement(getStringFromWasm0(arg1, arg2)); - return ret; - }, arguments); }, - __wbg_createFramebuffer_23e3175822f864b1: function(arg0) { - const ret = arg0.createFramebuffer(); - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }, - __wbg_createFramebuffer_c2281f7a61864dc1: function(arg0) { - const ret = arg0.createFramebuffer(); - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }, - __wbg_createImageBitmap_4f6b89afec926349: function() { return handleError(function (arg0, arg1, arg2) { - const ret = arg0.createImageBitmap(arg1, arg2); - return ret; - }, arguments); }, - __wbg_createObjectURL_ff4de9deb3f8d0a6: function() { return handleError(function (arg0, arg1) { - const ret = URL.createObjectURL(arg1); - const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); - }, arguments); }, - __wbg_createProgram_932959b0abef3889: function(arg0) { - const ret = arg0.createProgram(); - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }, - __wbg_createProgram_f56205ff1949c737: function(arg0) { - const ret = arg0.createProgram(); - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }, - __wbg_createQuery_81134d4c0289efff: function(arg0) { - const ret = arg0.createQuery(); - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }, - __wbg_createRenderbuffer_64db55d91178c45e: function(arg0) { - const ret = arg0.createRenderbuffer(); - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }, - __wbg_createRenderbuffer_e1819b7725afd261: function(arg0) { - const ret = arg0.createRenderbuffer(); - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }, - __wbg_createSampler_89b9dfd6d2672bdd: function(arg0) { - const ret = arg0.createSampler(); - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }, - __wbg_createShader_195b98e391086cfb: function(arg0, arg1) { - const ret = arg0.createShader(arg1 >>> 0); - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }, - __wbg_createShader_3ea04d442da25990: function(arg0, arg1) { - const ret = arg0.createShader(arg1 >>> 0); - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }, - __wbg_createTexture_4663e5c6298a6e63: function(arg0) { - const ret = arg0.createTexture(); - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }, - __wbg_createTexture_fa18817b4d49b838: function(arg0) { - const ret = arg0.createTexture(); - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }, - __wbg_createVertexArrayOES_4861cd2ff06b47e8: function(arg0) { - const ret = arg0.createVertexArrayOES(); - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }, - __wbg_createVertexArray_565bc081065d93bc: function(arg0) { - const ret = arg0.createVertexArray(); - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }, - __wbg_ctrlKey_68f7b8620ddfccc8: function(arg0) { - const ret = arg0.ctrlKey; - return ret; - }, - __wbg_ctrlKey_7b559591aa96b86e: function(arg0) { - const ret = arg0.ctrlKey; - return ret; - }, - __wbg_cullFace_5858a2cdcb4d6678: function(arg0, arg1) { - arg0.cullFace(arg1 >>> 0); - }, - __wbg_cullFace_bc83cd82280de65c: function(arg0, arg1) { - arg0.cullFace(arg1 >>> 0); - }, - __wbg_decode_0fda6acc41131019: function(arg0) { - const ret = arg0.decode(); - return ret; - }, - __wbg_deleteBuffer_340d7884968a79eb: function(arg0, arg1) { - arg0.deleteBuffer(arg1); - }, - __wbg_deleteBuffer_62138c27aeb02ca4: function(arg0, arg1) { - arg0.deleteBuffer(arg1); - }, - __wbg_deleteFramebuffer_9323713779c2b4c0: function(arg0, arg1) { - arg0.deleteFramebuffer(arg1); - }, - __wbg_deleteFramebuffer_d38950c53be54c1a: function(arg0, arg1) { - arg0.deleteFramebuffer(arg1); - }, - __wbg_deleteProgram_366007e5f2730fe6: function(arg0, arg1) { - arg0.deleteProgram(arg1); - }, - __wbg_deleteProgram_e06461448fa9fcd8: function(arg0, arg1) { - arg0.deleteProgram(arg1); - }, - __wbg_deleteQuery_9796d0734523df41: function(arg0, arg1) { - arg0.deleteQuery(arg1); - }, - __wbg_deleteRenderbuffer_74b7cdd428872286: function(arg0, arg1) { - arg0.deleteRenderbuffer(arg1); - }, - __wbg_deleteRenderbuffer_c423ff0c6692949e: function(arg0, arg1) { - arg0.deleteRenderbuffer(arg1); - }, - __wbg_deleteSampler_e4128c6eac83e159: function(arg0, arg1) { - arg0.deleteSampler(arg1); - }, - __wbg_deleteShader_79c915b05ea4ad40: function(arg0, arg1) { - arg0.deleteShader(arg1); - }, - __wbg_deleteShader_ccada46126dd1be7: function(arg0, arg1) { - arg0.deleteShader(arg1); - }, - __wbg_deleteSync_dfb44dc88ea1932e: function(arg0, arg1) { - arg0.deleteSync(arg1); - }, - __wbg_deleteTexture_6842b6a68ffbf944: function(arg0, arg1) { - arg0.deleteTexture(arg1); - }, - __wbg_deleteTexture_a65962a610fc9b21: function(arg0, arg1) { - arg0.deleteTexture(arg1); - }, - __wbg_deleteVertexArrayOES_4a422146dd3f144e: function(arg0, arg1) { - arg0.deleteVertexArrayOES(arg1); - }, - __wbg_deleteVertexArray_b61169e5f2c2ea0f: function(arg0, arg1) { - arg0.deleteVertexArray(arg1); - }, - __wbg_deltaMode_5590354c617f6678: function(arg0) { - const ret = arg0.deltaMode; - return ret; - }, - __wbg_deltaX_aacd03436b6f8a73: function(arg0) { - const ret = arg0.deltaX; - return ret; - }, - __wbg_deltaY_02a7c4ae29ceeff0: function(arg0) { - const ret = arg0.deltaY; - return ret; - }, - __wbg_depthFunc_82a306f59663800e: function(arg0, arg1) { - arg0.depthFunc(arg1 >>> 0); - }, - __wbg_depthFunc_a57c17fc802d1235: function(arg0, arg1) { - arg0.depthFunc(arg1 >>> 0); - }, - __wbg_depthMask_41d40746e5457105: function(arg0, arg1) { - arg0.depthMask(arg1 !== 0); - }, - __wbg_depthMask_c3c5be00f8a01171: function(arg0, arg1) { - arg0.depthMask(arg1 !== 0); - }, - __wbg_depthRange_1d642629ac479679: function(arg0, arg1, arg2) { - arg0.depthRange(arg1, arg2); - }, - __wbg_depthRange_8cccdaa76e6e9aac: function(arg0, arg1, arg2) { - arg0.depthRange(arg1, arg2); - }, - __wbg_devicePixelContentBoxSize_a24219b0eeafb92d: function(arg0) { - const ret = arg0.devicePixelContentBoxSize; - return ret; - }, - __wbg_devicePixelRatio_3a60c85ae6458d68: function(arg0) { - const ret = arg0.devicePixelRatio; - return ret; - }, - __wbg_disableVertexAttribArray_5bff9d65cf5682e0: function(arg0, arg1) { - arg0.disableVertexAttribArray(arg1 >>> 0); - }, - __wbg_disableVertexAttribArray_9daed4d59eb86bc4: function(arg0, arg1) { - arg0.disableVertexAttribArray(arg1 >>> 0); - }, - __wbg_disable_3827edd0ebc3906f: function(arg0, arg1) { - arg0.disable(arg1 >>> 0); - }, - __wbg_disable_b0f20ab1b990a65d: function(arg0, arg1) { - arg0.disable(arg1 >>> 0); - }, - __wbg_disconnect_a452e2b1ad76211b: function(arg0) { - arg0.disconnect(); - }, - __wbg_disconnect_e719f257f8b5968f: function(arg0) { - arg0.disconnect(); - }, - __wbg_document_69bb6a2f7927d532: function(arg0) { - const ret = arg0.document; - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }, - __wbg_drawArraysInstancedANGLE_e78464097a007492: function(arg0, arg1, arg2, arg3, arg4) { - arg0.drawArraysInstancedANGLE(arg1 >>> 0, arg2, arg3, arg4); - }, - __wbg_drawArraysInstanced_12b5ac123880f1e5: function(arg0, arg1, arg2, arg3, arg4) { - arg0.drawArraysInstanced(arg1 >>> 0, arg2, arg3, arg4); - }, - __wbg_drawArrays_c160958534316d96: function(arg0, arg1, arg2, arg3) { - arg0.drawArrays(arg1 >>> 0, arg2, arg3); - }, - __wbg_drawArrays_d5a5cd7c06a36bac: function(arg0, arg1, arg2, arg3) { - arg0.drawArrays(arg1 >>> 0, arg2, arg3); - }, - __wbg_drawBuffersWEBGL_d978b4ef20df9e6e: function(arg0, arg1) { - arg0.drawBuffersWEBGL(arg1); - }, - __wbg_drawBuffers_5038e68debaf8a7b: function(arg0, arg1) { - arg0.drawBuffers(arg1); - }, - __wbg_drawElementsInstancedANGLE_bd601b8a575a0d76: function(arg0, arg1, arg2, arg3, arg4, arg5) { - arg0.drawElementsInstancedANGLE(arg1 >>> 0, arg2, arg3 >>> 0, arg4, arg5); - }, - __wbg_drawElementsInstanced_a08ae5f7e875b98e: function(arg0, arg1, arg2, arg3, arg4, arg5) { - arg0.drawElementsInstanced(arg1 >>> 0, arg2, arg3 >>> 0, arg4, arg5); - }, - __wbg_enableVertexAttribArray_16defb159a05d60a: function(arg0, arg1) { - arg0.enableVertexAttribArray(arg1 >>> 0); - }, - __wbg_enableVertexAttribArray_7d4003fc258faa30: function(arg0, arg1) { - arg0.enableVertexAttribArray(arg1 >>> 0); - }, - __wbg_enable_b4b249f77a13393c: function(arg0, arg1) { - arg0.enable(arg1 >>> 0); - }, - __wbg_enable_f95f0e6bcdef4ad4: function(arg0, arg1) { - arg0.enable(arg1 >>> 0); - }, - __wbg_endQuery_62edf1b38fcc333e: function(arg0, arg1) { - arg0.endQuery(arg1 >>> 0); - }, - __wbg_error_825e3e7e65a41d31: function(arg0, arg1) { - console.error(arg0, arg1); - }, - __wbg_error_a6fa202b58aa1cd3: function(arg0, arg1) { - let deferred0_0; - let deferred0_1; - try { - deferred0_0 = arg0; - deferred0_1 = arg1; - console.error(getStringFromWasm0(arg0, arg1)); - } finally { - wasm.__wbindgen_free(deferred0_0, deferred0_1, 1); - } - }, - __wbg_exitFullscreen_8c9041386628e144: function(arg0) { - arg0.exitFullscreen(); - }, - __wbg_exitPointerLock_9b04c08b9bd7a3ba: function(arg0) { - arg0.exitPointerLock(); - }, - __wbg_fenceSync_09fc77121a1d209f: function(arg0, arg1, arg2) { - const ret = arg0.fenceSync(arg1 >>> 0, arg2 >>> 0); - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }, - __wbg_fetch_7422aa8fb42e7063: function(arg0, arg1, arg2) { - const ret = arg0.fetch(getStringFromWasm0(arg1, arg2)); - return ret; - }, - __wbg_fetch_dc020402ef5b5b70: function(arg0, arg1, arg2) { - const ret = arg0.fetch(getStringFromWasm0(arg1, arg2)); - return ret; - }, - __wbg_flush_0d413f47f0da2a94: function(arg0) { - arg0.flush(); - }, - __wbg_flush_8de681f5248a68b9: function(arg0) { - arg0.flush(); - }, - __wbg_focus_6fb3e144d2c12c7f: function() { return handleError(function (arg0) { - arg0.focus(); - }, arguments); }, - __wbg_framebufferRenderbuffer_752640e03bd3d58a: function(arg0, arg1, arg2, arg3, arg4) { - arg0.framebufferRenderbuffer(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4); - }, - __wbg_framebufferRenderbuffer_9f6574538b6fa528: function(arg0, arg1, arg2, arg3, arg4) { - arg0.framebufferRenderbuffer(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4); - }, - __wbg_framebufferTexture2D_474e2bcbb9e69c73: function(arg0, arg1, arg2, arg3, arg4, arg5) { - arg0.framebufferTexture2D(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4, arg5); - }, - __wbg_framebufferTexture2D_a4ba52d04ab93226: function(arg0, arg1, arg2, arg3, arg4, arg5) { - arg0.framebufferTexture2D(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4, arg5); - }, - __wbg_framebufferTextureLayer_032548119c55333f: function(arg0, arg1, arg2, arg3, arg4, arg5) { - arg0.framebufferTextureLayer(arg1 >>> 0, arg2 >>> 0, arg3, arg4, arg5); - }, - __wbg_framebufferTextureMultiviewOVR_3568fd6a3321abd2: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) { - arg0.framebufferTextureMultiviewOVR(arg1 >>> 0, arg2 >>> 0, arg3, arg4, arg5, arg6); - }, - __wbg_frontFace_040302cde4275976: function(arg0, arg1) { - arg0.frontFace(arg1 >>> 0); - }, - __wbg_frontFace_a50be5df32f82489: function(arg0, arg1) { - arg0.frontFace(arg1 >>> 0); - }, - __wbg_fullscreenElement_fd91f30160113ca8: function(arg0) { - const ret = arg0.fullscreenElement; - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }, - __wbg_getBoundingClientRect_e0fb035288f4a416: function(arg0) { - const ret = arg0.getBoundingClientRect(); - return ret; - }, - __wbg_getBufferSubData_cfc147848ea9a204: function(arg0, arg1, arg2, arg3) { - arg0.getBufferSubData(arg1 >>> 0, arg2, arg3); - }, - __wbg_getCoalescedEvents_3e003f63d9ebbc05: function(arg0) { - const ret = arg0.getCoalescedEvents; - return ret; - }, - __wbg_getCoalescedEvents_55ab8efd15ca0894: function(arg0) { - const ret = arg0.getCoalescedEvents(); - return ret; - }, - __wbg_getComputedStyle_041ecb5b5cae0ab8: function() { return handleError(function (arg0, arg1) { - const ret = arg0.getComputedStyle(arg1); - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }, arguments); }, - __wbg_getContext_6afffb087ba015e7: function() { return handleError(function (arg0, arg1, arg2, arg3) { - const ret = arg0.getContext(getStringFromWasm0(arg1, arg2), arg3); - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }, arguments); }, - __wbg_getContext_6ce4459fd5f498a9: function() { return handleError(function (arg0, arg1, arg2, arg3) { - const ret = arg0.getContext(getStringFromWasm0(arg1, arg2), arg3); - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }, arguments); }, - __wbg_getContext_f17252002286474d: function() { return handleError(function (arg0, arg1, arg2) { - const ret = arg0.getContext(getStringFromWasm0(arg1, arg2)); - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }, arguments); }, - __wbg_getExtension_6e629f74e6223ae8: function() { return handleError(function (arg0, arg1, arg2) { - const ret = arg0.getExtension(getStringFromWasm0(arg1, arg2)); - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }, arguments); }, - __wbg_getIndexedParameter_0dba1754b6a586e8: function() { return handleError(function (arg0, arg1, arg2) { - const ret = arg0.getIndexedParameter(arg1 >>> 0, arg2 >>> 0); - return ret; - }, arguments); }, - __wbg_getItem_f68808a9230dd173: function() { return handleError(function (arg0, arg1, arg2, arg3) { - const ret = arg1.getItem(getStringFromWasm0(arg2, arg3)); - var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len1 = WASM_VECTOR_LEN; - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); - }, arguments); }, - __wbg_getOwnPropertyDescriptor_dc88788f5dfd2fd3: function(arg0, arg1) { - const ret = Object.getOwnPropertyDescriptor(arg0, arg1); - return ret; - }, - __wbg_getParameter_4249f979fb9b2034: function() { return handleError(function (arg0, arg1) { - const ret = arg0.getParameter(arg1 >>> 0); - return ret; - }, arguments); }, - __wbg_getParameter_8154b8b3c2249843: function() { return handleError(function (arg0, arg1) { - const ret = arg0.getParameter(arg1 >>> 0); - return ret; - }, arguments); }, - __wbg_getProgramInfoLog_88521473263984bd: function(arg0, arg1, arg2) { - const ret = arg1.getProgramInfoLog(arg2); - var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len1 = WASM_VECTOR_LEN; - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); - }, - __wbg_getProgramInfoLog_f93553deba23cccc: function(arg0, arg1, arg2) { - const ret = arg1.getProgramInfoLog(arg2); - var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len1 = WASM_VECTOR_LEN; - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); - }, - __wbg_getProgramParameter_3a2cbacda36e0528: function(arg0, arg1, arg2) { - const ret = arg0.getProgramParameter(arg1, arg2 >>> 0); - return ret; - }, - __wbg_getProgramParameter_a00a3869258b814e: function(arg0, arg1, arg2) { - const ret = arg0.getProgramParameter(arg1, arg2 >>> 0); - return ret; - }, - __wbg_getPropertyValue_feecd512625819d9: function() { return handleError(function (arg0, arg1, arg2, arg3) { - const ret = arg1.getPropertyValue(getStringFromWasm0(arg2, arg3)); - const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); - }, arguments); }, - __wbg_getQueryParameter_417092b320c7d84a: function(arg0, arg1, arg2) { - const ret = arg0.getQueryParameter(arg1, arg2 >>> 0); - return ret; - }, - __wbg_getShaderInfoLog_25f08216f6d590f6: function(arg0, arg1, arg2) { - const ret = arg1.getShaderInfoLog(arg2); - var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len1 = WASM_VECTOR_LEN; - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); - }, - __wbg_getShaderInfoLog_b7bfd2186bdd39a2: function(arg0, arg1, arg2) { - const ret = arg1.getShaderInfoLog(arg2); - var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len1 = WASM_VECTOR_LEN; - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); - }, - __wbg_getShaderParameter_96635c982831e95b: function(arg0, arg1, arg2) { - const ret = arg0.getShaderParameter(arg1, arg2 >>> 0); - return ret; - }, - __wbg_getShaderParameter_d7c32caac818946c: function(arg0, arg1, arg2) { - const ret = arg0.getShaderParameter(arg1, arg2 >>> 0); - return ret; - }, - __wbg_getSupportedExtensions_362130232fc99d22: function(arg0) { - const ret = arg0.getSupportedExtensions(); - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }, - __wbg_getSupportedProfiles_df08bd5d0fab9196: function(arg0) { - const ret = arg0.getSupportedProfiles(); - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }, - __wbg_getSyncParameter_e41eea811d52b07c: function(arg0, arg1, arg2) { - const ret = arg0.getSyncParameter(arg1, arg2 >>> 0); - return ret; - }, - __wbg_getTime_e599bee315e19eba: function(arg0) { - const ret = arg0.getTime(); - return ret; - }, - __wbg_getTimezoneOffset_d843b3968046e734: function(arg0) { - const ret = arg0.getTimezoneOffset(); - return ret; - }, - __wbg_getUniformBlockIndex_0cfb97b93f26175b: function(arg0, arg1, arg2, arg3) { - const ret = arg0.getUniformBlockIndex(arg1, getStringFromWasm0(arg2, arg3)); - return ret; - }, - __wbg_getUniformLocation_1d6a81965f118597: function(arg0, arg1, arg2, arg3) { - const ret = arg0.getUniformLocation(arg1, getStringFromWasm0(arg2, arg3)); - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }, - __wbg_getUniformLocation_484ff1965b8e30f4: function(arg0, arg1, arg2, arg3) { - const ret = arg0.getUniformLocation(arg1, getStringFromWasm0(arg2, arg3)); - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }, - __wbg_get_652f640b3b0b6e3e: function(arg0, arg1) { - const ret = arg0[arg1 >>> 0]; - return ret; - }, - __wbg_get_unchecked_be562b1421656321: function(arg0, arg1) { - const ret = arg0[arg1 >>> 0]; - return ret; - }, - __wbg_has_3a6f31f647e0ba22: function() { return handleError(function (arg0, arg1) { - const ret = Reflect.has(arg0, arg1); - return ret; - }, arguments); }, - __wbg_height_1d58cd47763299ec: function(arg0) { - const ret = arg0.height; - return ret; - }, - __wbg_includes_169ece041f52c741: function(arg0, arg1, arg2) { - const ret = arg0.includes(arg1, arg2); - return ret; - }, - __wbg_inlineSize_b124532195785ca4: function(arg0) { - const ret = arg0.inlineSize; - return ret; - }, - __wbg_instanceof_HtmlCanvasElement_0ac74d5643067956: function(arg0) { - let result; - try { - result = arg0 instanceof HTMLCanvasElement; - } catch (_) { - result = false; - } - const ret = result; - return ret; - }, - __wbg_instanceof_Response_370b83aa6c17e88a: function(arg0) { - let result; - try { - result = arg0 instanceof Response; - } catch (_) { - result = false; - } - const ret = result; - return ret; - }, - __wbg_instanceof_WebGl2RenderingContext_fbfd73b8b9465e2d: function(arg0) { - let result; - try { - result = arg0 instanceof WebGL2RenderingContext; - } catch (_) { - result = false; - } - const ret = result; - return ret; - }, - __wbg_instanceof_Window_4153c1818a1c0c0b: function(arg0) { - let result; - try { - result = arg0 instanceof Window; - } catch (_) { - result = false; - } - const ret = result; - return ret; - }, - __wbg_invalidateFramebuffer_f64698548fae8275: function() { return handleError(function (arg0, arg1, arg2) { - arg0.invalidateFramebuffer(arg1 >>> 0, arg2); - }, arguments); }, - __wbg_isIntersecting_bb0a21a1d5eed17b: function(arg0) { - const ret = arg0.isIntersecting; - return ret; - }, - __wbg_is_e9826d240a8d86ea: function(arg0, arg1) { - const ret = Object.is(arg0, arg1); - return ret; - }, - __wbg_key_2e79b9dbd4550ab3: function(arg0, arg1) { - const ret = arg1.key; - const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); - }, - __wbg_key_b3963de1608adbbf: function() { return handleError(function (arg0, arg1, arg2) { - const ret = arg1.key(arg2 >>> 0); - var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len1 = WASM_VECTOR_LEN; - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); - }, arguments); }, - __wbg_length_0a6ce016dc1460b0: function(arg0) { - const ret = arg0.length; - return ret; - }, - __wbg_length_ba3c032602efe310: function(arg0) { - const ret = arg0.length; - return ret; - }, - __wbg_length_e79ec247c0f923cd: function() { return handleError(function (arg0) { - const ret = arg0.length; - return ret; - }, arguments); }, - __wbg_linkProgram_76940d17b54d375b: function(arg0, arg1) { - arg0.linkProgram(arg1); - }, - __wbg_linkProgram_ba72b321b45bac4c: function(arg0, arg1) { - arg0.linkProgram(arg1); - }, - __wbg_localStorage_11b5275c3ad2bab7: function() { return handleError(function (arg0) { - const ret = arg0.localStorage; - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }, arguments); }, - __wbg_location_d080430e3f643f93: function(arg0) { - const ret = arg0.location; - return ret; - }, - __wbg_log_0c201ade58bb55e1: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) { - let deferred0_0; - let deferred0_1; - try { - deferred0_0 = arg0; - deferred0_1 = arg1; - console.log(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3), getStringFromWasm0(arg4, arg5), getStringFromWasm0(arg6, arg7)); - } finally { - wasm.__wbindgen_free(deferred0_0, deferred0_1, 1); - } - }, - __wbg_log_ce2c4456b290c5e7: function(arg0, arg1) { - let deferred0_0; - let deferred0_1; - try { - deferred0_0 = arg0; - deferred0_1 = arg1; - console.log(getStringFromWasm0(arg0, arg1)); - } finally { - wasm.__wbindgen_free(deferred0_0, deferred0_1, 1); - } - }, - __wbg_mark_b4d943f3bc2d2404: function(arg0, arg1) { - performance.mark(getStringFromWasm0(arg0, arg1)); - }, - __wbg_matchMedia_2b8a11e10a1d403d: function() { return handleError(function (arg0, arg1, arg2) { - const ret = arg0.matchMedia(getStringFromWasm0(arg1, arg2)); - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }, arguments); }, - __wbg_matches_8fcf21e9ec34186b: function(arg0) { - const ret = arg0.matches; - return ret; - }, - __wbg_measure_84362959e621a2c1: function() { return handleError(function (arg0, arg1, arg2, arg3) { - let deferred0_0; - let deferred0_1; - let deferred1_0; - let deferred1_1; - try { - deferred0_0 = arg0; - deferred0_1 = arg1; - deferred1_0 = arg2; - deferred1_1 = arg3; - performance.measure(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3)); - } finally { - wasm.__wbindgen_free(deferred0_0, deferred0_1, 1); - wasm.__wbindgen_free(deferred1_0, deferred1_1, 1); - } - }, arguments); }, - __wbg_media_d5208759213aa162: function(arg0, arg1) { - const ret = arg1.media; - const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); - }, - __wbg_message_609b498da776cb30: function(arg0, arg1) { - const ret = arg1.message; - const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); - }, - __wbg_metaKey_ef659f8598121617: function(arg0) { - const ret = arg0.metaKey; - return ret; - }, - __wbg_metaKey_f8e5beafe081f6d6: function(arg0) { - const ret = arg0.metaKey; - return ret; - }, - __wbg_movementX_234cea13fe25dae4: function(arg0) { - const ret = arg0.movementX; - return ret; - }, - __wbg_movementY_3a54512f6f23708b: function(arg0) { - const ret = arg0.movementY; - return ret; - }, - __wbg_navigator_f3468c6dc9006b7c: function(arg0) { - const ret = arg0.navigator; - return ret; - }, - __wbg_new_0_e486ec9936f7edbf: function() { - const ret = new Date(); - return ret; - }, - __wbg_new_227d7c05414eb861: function() { - const ret = new Error(); - return ret; - }, - __wbg_new_23949f1619fea73e: function() { return handleError(function () { - const ret = new Image(); - return ret; - }, arguments); }, - __wbg_new_251d7024c1a6e78b: function() { return handleError(function () { - const ret = new MessageChannel(); - return ret; - }, arguments); }, - __wbg_new_2fad8ca02fd00684: function() { - const ret = new Object(); - return ret; - }, - __wbg_new_3baa8d9866155c79: function() { - const ret = new Array(); - return ret; - }, - __wbg_new_51ff470dc2f61e27: function() { return handleError(function () { - const ret = new AbortController(); - return ret; - }, arguments); }, - __wbg_new_8454eee672b2ba6e: function(arg0) { - const ret = new Uint8Array(arg0); - return ret; - }, - __wbg_new_9d5d53f7ab22b9f2: function() { return handleError(function (arg0) { - const ret = new IntersectionObserver(arg0); - return ret; - }, arguments); }, - __wbg_new_9e1e0aabf3119786: function() { return handleError(function (arg0, arg1) { - const ret = new Worker(getStringFromWasm0(arg0, arg1)); - return ret; - }, arguments); }, - __wbg_new_b47e026ba742fe65: function(arg0) { - const ret = new Date(arg0); - return ret; - }, - __wbg_new_c43478ae1b0a5028: function() { return handleError(function (arg0) { - const ret = new ResizeObserver(arg0); - return ret; - }, arguments); }, - __wbg_new_with_str_sequence_and_options_d582f60b3b1caf49: function() { return handleError(function (arg0, arg1) { - const ret = new Blob(arg0, arg1); - return ret; - }, arguments); }, - __wbg_new_with_u8_clamped_array_a04fccdf314e082f: function() { return handleError(function (arg0, arg1, arg2) { - const ret = new ImageData(getClampedArrayU8FromWasm0(arg0, arg1), arg2 >>> 0); - return ret; - }, arguments); }, - __wbg_now_e7c6795a7f81e10f: function(arg0) { - const ret = arg0.now(); - return ret; - }, - __wbg_observe_08575843bc0fb2e0: function(arg0, arg1) { - arg0.observe(arg1); - }, - __wbg_observe_7f96207e77a944cc: function(arg0, arg1, arg2) { - arg0.observe(arg1, arg2); - }, - __wbg_observe_eb7083d82d325b9f: function(arg0, arg1) { - arg0.observe(arg1); - }, - __wbg_of_96154841226db59c: function(arg0, arg1) { - const ret = Array.of(arg0, arg1); - return ret; - }, - __wbg_of_cc555051dc9558d3: function(arg0) { - const ret = Array.of(arg0); - return ret; - }, - __wbg_offsetX_a9bf2ea7f0575ac9: function(arg0) { - const ret = arg0.offsetX; - return ret; - }, - __wbg_offsetY_10e5433a1bbd4c01: function(arg0) { - const ret = arg0.offsetY; - return ret; - }, - __wbg_performance_3fcf6e32a7e1ed0a: function(arg0) { - const ret = arg0.performance; - return ret; - }, - __wbg_persisted_e198bc1b0ea7bac3: function(arg0) { - const ret = arg0.persisted; - return ret; - }, - __wbg_pixelStorei_7feec34442803b9d: function(arg0, arg1, arg2) { - arg0.pixelStorei(arg1 >>> 0, arg2); - }, - __wbg_pixelStorei_c1200ded9741bf0c: function(arg0, arg1, arg2) { - arg0.pixelStorei(arg1 >>> 0, arg2); - }, - __wbg_play_3997a1be51d27925: function(arg0) { - arg0.play(); - }, - __wbg_pointerId_18e43d42a0114b4d: function(arg0) { - const ret = arg0.pointerId; - return ret; - }, - __wbg_pointerType_379748804334ff14: function(arg0, arg1) { - const ret = arg1.pointerType; - const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); - }, - __wbg_polygonOffset_47749ec8af0d2b41: function(arg0, arg1, arg2) { - arg0.polygonOffset(arg1, arg2); - }, - __wbg_polygonOffset_b95607b79068742b: function(arg0, arg1, arg2) { - arg0.polygonOffset(arg1, arg2); - }, - __wbg_port1_f00f1bead0ea7c97: function(arg0) { - const ret = arg0.port1; - return ret; - }, - __wbg_port2_302d3e211aa10c79: function(arg0) { - const ret = arg0.port2; - return ret; - }, - __wbg_postMessage_0613bb9fa4d46b40: function() { return handleError(function (arg0, arg1) { - arg0.postMessage(arg1); - }, arguments); }, - __wbg_postMessage_af4c9caebcb4a6ba: function() { return handleError(function (arg0, arg1, arg2) { - arg0.postMessage(arg1, arg2); - }, arguments); }, - __wbg_postTask_e2439afddcdfbb55: function(arg0, arg1, arg2) { - const ret = arg0.postTask(arg1, arg2); - return ret; - }, - __wbg_pressure_2c261bc55ae4a3af: function(arg0) { - const ret = arg0.pressure; - return ret; - }, - __wbg_preventDefault_2c34c219d9b04b86: function(arg0) { - arg0.preventDefault(); - }, - __wbg_prototype_0d5bb2023db3bcfc: function() { - const ret = ResizeObserverEntry.prototype; - return ret; - }, - __wbg_prototypesetcall_fd4050e806e1d519: function(arg0, arg1, arg2) { - Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2); - }, - __wbg_push_60a5366c0bb22a7d: function(arg0, arg1) { - const ret = arg0.push(arg1); - return ret; - }, - __wbg_queryCounterEXT_59f99c87fee637c5: function(arg0, arg1, arg2) { - arg0.queryCounterEXT(arg1, arg2 >>> 0); - }, - __wbg_querySelector_a3b1f840e2672b49: function() { return handleError(function (arg0, arg1, arg2) { - const ret = arg0.querySelector(getStringFromWasm0(arg1, arg2)); - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }, arguments); }, - __wbg_queueMicrotask_40ac6ffc2848ba77: function(arg0) { - queueMicrotask(arg0); - }, - __wbg_queueMicrotask_55a0060f6d1a75bc: function(arg0, arg1) { - arg0.queueMicrotask(arg1); - }, - __wbg_queueMicrotask_74d092439f6494c1: function(arg0) { - const ret = arg0.queueMicrotask; - return ret; - }, - __wbg_readBuffer_84ed375e14adc17b: function(arg0, arg1) { - arg0.readBuffer(arg1 >>> 0); - }, - __wbg_readPixels_11033ecd686150e1: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) { - arg0.readPixels(arg1, arg2, arg3, arg4, arg5 >>> 0, arg6 >>> 0, arg7); - }, arguments); }, - __wbg_readPixels_2a027d81502b271d: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) { - arg0.readPixels(arg1, arg2, arg3, arg4, arg5 >>> 0, arg6 >>> 0, arg7); - }, arguments); }, - __wbg_readPixels_4b968779f2667722: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) { - arg0.readPixels(arg1, arg2, arg3, arg4, arg5 >>> 0, arg6 >>> 0, arg7); - }, arguments); }, - __wbg_removeEventListener_2ce4c0697d2b692c: function() { return handleError(function (arg0, arg1, arg2, arg3) { - arg0.removeEventListener(getStringFromWasm0(arg1, arg2), arg3); - }, arguments); }, - __wbg_removeItem_a5faee82be5c6ed1: function() { return handleError(function (arg0, arg1, arg2) { - arg0.removeItem(getStringFromWasm0(arg1, arg2)); - }, arguments); }, - __wbg_removeListener_fa2197adb613b1e7: function() { return handleError(function (arg0, arg1) { - arg0.removeListener(arg1); - }, arguments); }, - __wbg_removeProperty_de2dc5ce92bc1069: function() { return handleError(function (arg0, arg1, arg2, arg3) { - const ret = arg1.removeProperty(getStringFromWasm0(arg2, arg3)); - const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); - }, arguments); }, - __wbg_renderbufferStorageMultisample_9da92038eb665169: function(arg0, arg1, arg2, arg3, arg4, arg5) { - arg0.renderbufferStorageMultisample(arg1 >>> 0, arg2, arg3 >>> 0, arg4, arg5); - }, - __wbg_renderbufferStorage_05386df6e2563674: function(arg0, arg1, arg2, arg3, arg4) { - arg0.renderbufferStorage(arg1 >>> 0, arg2 >>> 0, arg3, arg4); - }, - __wbg_renderbufferStorage_d6a0a682d9abfb81: function(arg0, arg1, arg2, arg3, arg4) { - arg0.renderbufferStorage(arg1 >>> 0, arg2 >>> 0, arg3, arg4); - }, - __wbg_repeat_44413ad530bd5bfb: function(arg0) { - const ret = arg0.repeat; - return ret; - }, - __wbg_requestAnimationFrame_d187174d7b146805: function() { return handleError(function (arg0, arg1) { - const ret = arg0.requestAnimationFrame(arg1); - return ret; - }, arguments); }, - __wbg_requestFullscreen_3f16e43f398ce624: function(arg0) { - const ret = arg0.requestFullscreen(); - return ret; - }, - __wbg_requestFullscreen_b977a3a0697e883c: function(arg0) { - const ret = arg0.requestFullscreen; - return ret; - }, - __wbg_requestIdleCallback_3689e3e38f6cfc02: function(arg0) { - const ret = arg0.requestIdleCallback; - return ret; - }, - __wbg_requestIdleCallback_77b25045445ff3e1: function() { return handleError(function (arg0, arg1) { - const ret = arg0.requestIdleCallback(arg1); - return ret; - }, arguments); }, - __wbg_requestPointerLock_7dbfa94574f241c1: function(arg0) { - arg0.requestPointerLock(); - }, - __wbg_resolve_9feb5d906ca62419: function(arg0) { - const ret = Promise.resolve(arg0); - return ret; - }, - __wbg_revokeObjectURL_d718fc1cb4e2de0c: function() { return handleError(function (arg0, arg1) { - URL.revokeObjectURL(getStringFromWasm0(arg0, arg1)); - }, arguments); }, - __wbg_samplerParameterf_178aec788cd2ecdc: function(arg0, arg1, arg2, arg3) { - arg0.samplerParameterf(arg1, arg2 >>> 0, arg3); - }, - __wbg_samplerParameteri_e3b690956f1fe1b3: function(arg0, arg1, arg2, arg3) { - arg0.samplerParameteri(arg1, arg2 >>> 0, arg3); - }, - __wbg_scheduler_a17d41c9c822fc26: function(arg0) { - const ret = arg0.scheduler; - return ret; - }, - __wbg_scheduler_b35fe73ba70e89cc: function(arg0) { - const ret = arg0.scheduler; - return ret; - }, - __wbg_scissor_219285a5ff24f19f: function(arg0, arg1, arg2, arg3, arg4) { - arg0.scissor(arg1, arg2, arg3, arg4); - }, - __wbg_scissor_927c37be50cfe886: function(arg0, arg1, arg2, arg3, arg4) { - arg0.scissor(arg1, arg2, arg3, arg4); - }, - __wbg_setAttribute_50dcf32d70e1628c: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) { - arg0.setAttribute(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4)); - }, arguments); }, - __wbg_setItem_bb1a692eb19d66d0: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) { - arg0.setItem(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4)); - }, arguments); }, - __wbg_setPointerCapture_2b94acd286b2f0af: function() { return handleError(function (arg0, arg1) { - arg0.setPointerCapture(arg1); - }, arguments); }, - __wbg_setProperty_d6673329a267577b: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) { - arg0.setProperty(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4)); - }, arguments); }, - __wbg_setTimeout_5649894f2c7b3d11: function() { return handleError(function (arg0, arg1) { - const ret = arg0.setTimeout(arg1); - return ret; - }, arguments); }, - __wbg_setTimeout_d007c6f72100a5e1: function() { return handleError(function (arg0, arg1, arg2) { - const ret = arg0.setTimeout(arg1, arg2); - return ret; - }, arguments); }, - __wbg_set_5337f8ac82364a3f: function() { return handleError(function (arg0, arg1, arg2) { - const ret = Reflect.set(arg0, arg1, arg2); - return ret; - }, arguments); }, - __wbg_set_box_94a804a5889d01da: function(arg0, arg1) { - arg0.box = __wbindgen_enum_ResizeObserverBoxOptions[arg1]; - }, - __wbg_set_cursor_8d686ff9dd99a325: function(arg0, arg1, arg2) { - arg0.cursor = getStringFromWasm0(arg1, arg2); - }, - __wbg_set_duration_bfef0b021dc8fd5b: function(arg0, arg1) { - arg0.duration = arg1; - }, - __wbg_set_height_77937c921db92223: function(arg0, arg1) { - arg0.height = arg1 >>> 0; - }, - __wbg_set_height_89a4ecd0f9cc3dfa: function(arg0, arg1) { - arg0.height = arg1 >>> 0; - }, - __wbg_set_iterations_b84d4d3302a291a0: function(arg0, arg1) { - arg0.iterations = arg1; - }, - __wbg_set_onmessage_36055e0a870abd64: function(arg0, arg1) { - arg0.onmessage = arg1; - }, - __wbg_set_premultiply_alpha_c2eaad433252efda: function(arg0, arg1) { - arg0.premultiplyAlpha = __wbindgen_enum_PremultiplyAlpha[arg1]; - }, - __wbg_set_src_437acc9e665412cd: function(arg0, arg1, arg2) { - arg0.src = getStringFromWasm0(arg1, arg2); - }, - __wbg_set_type_9cc8db71b8673ad7: function(arg0, arg1, arg2) { - arg0.type = getStringFromWasm0(arg1, arg2); - }, - __wbg_set_width_d2ec5d6689655fa9: function(arg0, arg1) { - arg0.width = arg1 >>> 0; - }, - __wbg_set_width_da52058a27694474: function(arg0, arg1) { - arg0.width = arg1 >>> 0; - }, - __wbg_shaderSource_0aa654ee0e007aa6: function(arg0, arg1, arg2, arg3) { - arg0.shaderSource(arg1, getStringFromWasm0(arg2, arg3)); - }, - __wbg_shaderSource_d9de9139056756aa: function(arg0, arg1, arg2, arg3) { - arg0.shaderSource(arg1, getStringFromWasm0(arg2, arg3)); - }, - __wbg_shiftKey_2380f1b5c0ab0a0d: function(arg0) { - const ret = arg0.shiftKey; - return ret; - }, - __wbg_shiftKey_8896b6760df23dca: function(arg0) { - const ret = arg0.shiftKey; - return ret; - }, - __wbg_signal_4643ce883b92b553: function(arg0) { - const ret = arg0.signal; - return ret; - }, - __wbg_stack_3b0d974bbf31e44f: function(arg0, arg1) { - const ret = arg1.stack; - const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); - }, - __wbg_start_5f13015d0fce472e: function(arg0) { - arg0.start(); - }, - __wbg_static_accessor_GLOBAL_THIS_1c7f1bd6c6941fdb: function() { - const ret = typeof globalThis === 'undefined' ? null : globalThis; - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }, - __wbg_static_accessor_GLOBAL_e039bc914f83e74e: function() { - const ret = typeof global === 'undefined' ? null : global; - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }, - __wbg_static_accessor_SELF_8bf8c48c28420ad5: function() { - const ret = typeof self === 'undefined' ? null : self; - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }, - __wbg_static_accessor_WINDOW_6aeee9b51652ee0f: function() { - const ret = typeof window === 'undefined' ? null : window; - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }, - __wbg_status_157e67ab07d01f8a: function(arg0) { - const ret = arg0.status; - return ret; - }, - __wbg_stencilFuncSeparate_4530c49bf8cb1460: function(arg0, arg1, arg2, arg3, arg4) { - arg0.stencilFuncSeparate(arg1 >>> 0, arg2 >>> 0, arg3, arg4 >>> 0); - }, - __wbg_stencilFuncSeparate_bf34f60e3f110bfe: function(arg0, arg1, arg2, arg3, arg4) { - arg0.stencilFuncSeparate(arg1 >>> 0, arg2 >>> 0, arg3, arg4 >>> 0); - }, - __wbg_stencilMaskSeparate_229cbef7cc83cadb: function(arg0, arg1, arg2) { - arg0.stencilMaskSeparate(arg1 >>> 0, arg2 >>> 0); - }, - __wbg_stencilMaskSeparate_9b1653193ff288f7: function(arg0, arg1, arg2) { - arg0.stencilMaskSeparate(arg1 >>> 0, arg2 >>> 0); - }, - __wbg_stencilMask_8c221e4c375209c5: function(arg0, arg1) { - arg0.stencilMask(arg1 >>> 0); - }, - __wbg_stencilMask_c5d4a74ffb068fe9: function(arg0, arg1) { - arg0.stencilMask(arg1 >>> 0); - }, - __wbg_stencilOpSeparate_3a474db0945a2c9e: function(arg0, arg1, arg2, arg3, arg4) { - arg0.stencilOpSeparate(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0); - }, - __wbg_stencilOpSeparate_f9ac7d0ce34b49cc: function(arg0, arg1, arg2, arg3, arg4) { - arg0.stencilOpSeparate(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0); - }, - __wbg_stringify_7fd5cae8859a6f10: function() { return handleError(function (arg0) { - const ret = JSON.stringify(arg0); - return ret; - }, arguments); }, - __wbg_style_ad734f3851a343fb: function(arg0) { - const ret = arg0.style; - return ret; - }, - __wbg_texImage2D_1d87cc5a34709e21: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) { - arg0.texImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9); - }, arguments); }, - __wbg_texImage2D_8325ec05b789d75e: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) { - arg0.texImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9); - }, arguments); }, - __wbg_texImage2D_bd39197f40b2fcce: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) { - arg0.texImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9); - }, arguments); }, - __wbg_texImage3D_b99062125306e0a5: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10) { - arg0.texImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8 >>> 0, arg9 >>> 0, arg10); - }, arguments); }, - __wbg_texImage3D_cc1e3c97cd187460: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10) { - arg0.texImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8 >>> 0, arg9 >>> 0, arg10); - }, arguments); }, - __wbg_texParameteri_4a0747bf8e13f69d: function(arg0, arg1, arg2, arg3) { - arg0.texParameteri(arg1 >>> 0, arg2 >>> 0, arg3); - }, - __wbg_texParameteri_9e9659537a5f6420: function(arg0, arg1, arg2, arg3) { - arg0.texParameteri(arg1 >>> 0, arg2 >>> 0, arg3); - }, - __wbg_texStorage2D_68a718b3fe4fe8e1: function(arg0, arg1, arg2, arg3, arg4, arg5) { - arg0.texStorage2D(arg1 >>> 0, arg2, arg3 >>> 0, arg4, arg5); - }, - __wbg_texStorage3D_8ddd8de7b3efc66d: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) { - arg0.texStorage3D(arg1 >>> 0, arg2, arg3 >>> 0, arg4, arg5, arg6); - }, - __wbg_texSubImage2D_050bb40fcaf0d432: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) { - arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9); - }, arguments); }, - __wbg_texSubImage2D_10b80906c76b2340: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) { - arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9); - }, arguments); }, - __wbg_texSubImage2D_316bed6ee52b841d: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) { - arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9); - }, arguments); }, - __wbg_texSubImage2D_3422d34fb3b08ab7: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) { - arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9); - }, arguments); }, - __wbg_texSubImage2D_8c565ab572b8e793: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) { - arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9); - }, arguments); }, - __wbg_texSubImage2D_96f5b172e2bd5235: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) { - arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9); - }, arguments); }, - __wbg_texSubImage2D_e474295e2473c615: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) { - arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9); - }, arguments); }, - __wbg_texSubImage2D_fd8f22b27fcc3390: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) { - arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9); - }, arguments); }, - __wbg_texSubImage3D_02cd8e0ce4a498bf: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) { - arg0.texSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0, arg11); - }, arguments); }, - __wbg_texSubImage3D_286dba65215a1ed5: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) { - arg0.texSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0, arg11); - }, arguments); }, - __wbg_texSubImage3D_63d52a5f007110c2: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) { - arg0.texSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0, arg11); - }, arguments); }, - __wbg_texSubImage3D_70bf1337a948082e: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) { - arg0.texSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0, arg11); - }, arguments); }, - __wbg_texSubImage3D_71d4eaf8afa1000b: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) { - arg0.texSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0, arg11); - }, arguments); }, - __wbg_texSubImage3D_8285b442f7afc502: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) { - arg0.texSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0, arg11); - }, arguments); }, - __wbg_texSubImage3D_aba4a822ce927a93: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) { - arg0.texSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0, arg11); - }, arguments); }, - __wbg_then_20a157d939b514f5: function(arg0, arg1) { - const ret = arg0.then(arg1); - return ret; - }, - __wbg_then_5ef9b762bc91555c: function(arg0, arg1, arg2) { - const ret = arg0.then(arg1, arg2); - return ret; - }, - __wbg_toBlob_c93e74084edeb70e: function() { return handleError(function (arg0, arg1) { - arg0.toBlob(arg1); - }, arguments); }, - __wbg_transferFromImageBitmap_0c5883d05363f361: function(arg0, arg1) { - arg0.transferFromImageBitmap(arg1); - }, - __wbg_uniform1f_d9aa0dc2f3d488ff: function(arg0, arg1, arg2) { - arg0.uniform1f(arg1, arg2); - }, - __wbg_uniform1f_ea4312ab8da5d8c4: function(arg0, arg1, arg2) { - arg0.uniform1f(arg1, arg2); - }, - __wbg_uniform1i_8901d038c64b0846: function(arg0, arg1, arg2) { - arg0.uniform1i(arg1, arg2); - }, - __wbg_uniform1i_bbb9a97ff88cb229: function(arg0, arg1, arg2) { - arg0.uniform1i(arg1, arg2); - }, - __wbg_uniform1ui_567e99d35204c615: function(arg0, arg1, arg2) { - arg0.uniform1ui(arg1, arg2 >>> 0); - }, - __wbg_uniform2fv_2ac9861002424218: function(arg0, arg1, arg2, arg3) { - arg0.uniform2fv(arg1, getArrayF32FromWasm0(arg2, arg3)); - }, - __wbg_uniform2fv_fc947a484cd09cba: function(arg0, arg1, arg2, arg3) { - arg0.uniform2fv(arg1, getArrayF32FromWasm0(arg2, arg3)); - }, - __wbg_uniform2iv_1d17307290cff22b: function(arg0, arg1, arg2, arg3) { - arg0.uniform2iv(arg1, getArrayI32FromWasm0(arg2, arg3)); - }, - __wbg_uniform2iv_a40dabbc376f9258: function(arg0, arg1, arg2, arg3) { - arg0.uniform2iv(arg1, getArrayI32FromWasm0(arg2, arg3)); - }, - __wbg_uniform2uiv_ea3846a859bc1b16: function(arg0, arg1, arg2, arg3) { - arg0.uniform2uiv(arg1, getArrayU32FromWasm0(arg2, arg3)); - }, - __wbg_uniform3fv_4c3ad296700bc6d2: function(arg0, arg1, arg2, arg3) { - arg0.uniform3fv(arg1, getArrayF32FromWasm0(arg2, arg3)); - }, - __wbg_uniform3fv_4c4762e638099fa9: function(arg0, arg1, arg2, arg3) { - arg0.uniform3fv(arg1, getArrayF32FromWasm0(arg2, arg3)); - }, - __wbg_uniform3iv_2a7a198f04b3402d: function(arg0, arg1, arg2, arg3) { - arg0.uniform3iv(arg1, getArrayI32FromWasm0(arg2, arg3)); - }, - __wbg_uniform3iv_aa32a164a3182218: function(arg0, arg1, arg2, arg3) { - arg0.uniform3iv(arg1, getArrayI32FromWasm0(arg2, arg3)); - }, - __wbg_uniform3uiv_c09a04d6f6c79d84: function(arg0, arg1, arg2, arg3) { - arg0.uniform3uiv(arg1, getArrayU32FromWasm0(arg2, arg3)); - }, - __wbg_uniform4f_2e8758dde1755426: function(arg0, arg1, arg2, arg3, arg4, arg5) { - arg0.uniform4f(arg1, arg2, arg3, arg4, arg5); - }, - __wbg_uniform4f_4fa9b0e1d5e37cc8: function(arg0, arg1, arg2, arg3, arg4, arg5) { - arg0.uniform4f(arg1, arg2, arg3, arg4, arg5); - }, - __wbg_uniform4fv_24ac5b11edbfa9f7: function(arg0, arg1, arg2, arg3) { - arg0.uniform4fv(arg1, getArrayF32FromWasm0(arg2, arg3)); - }, - __wbg_uniform4fv_2e2ddfcf5a547136: function(arg0, arg1, arg2, arg3) { - arg0.uniform4fv(arg1, getArrayF32FromWasm0(arg2, arg3)); - }, - __wbg_uniform4iv_2103c8a85a8b0dd8: function(arg0, arg1, arg2, arg3) { - arg0.uniform4iv(arg1, getArrayI32FromWasm0(arg2, arg3)); - }, - __wbg_uniform4iv_3cb8853c728f9a45: function(arg0, arg1, arg2, arg3) { - arg0.uniform4iv(arg1, getArrayI32FromWasm0(arg2, arg3)); - }, - __wbg_uniform4uiv_46ee978fe8703aaf: function(arg0, arg1, arg2, arg3) { - arg0.uniform4uiv(arg1, getArrayU32FromWasm0(arg2, arg3)); - }, - __wbg_uniformBlockBinding_bcefd2aef80c40ab: function(arg0, arg1, arg2, arg3) { - arg0.uniformBlockBinding(arg1, arg2 >>> 0, arg3 >>> 0); - }, - __wbg_uniformMatrix2fv_0c4f0f8be58e53fc: function(arg0, arg1, arg2, arg3, arg4) { - arg0.uniformMatrix2fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4)); - }, - __wbg_uniformMatrix2fv_a832f1d01c1474e0: function(arg0, arg1, arg2, arg3, arg4) { - arg0.uniformMatrix2fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4)); - }, - __wbg_uniformMatrix2x3fv_4751a02fab689bba: function(arg0, arg1, arg2, arg3, arg4) { - arg0.uniformMatrix2x3fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4)); - }, - __wbg_uniformMatrix2x4fv_d5869e7ed3ec9948: function(arg0, arg1, arg2, arg3, arg4) { - arg0.uniformMatrix2x4fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4)); - }, - __wbg_uniformMatrix3fv_18b77dec8d4083f6: function(arg0, arg1, arg2, arg3, arg4) { - arg0.uniformMatrix3fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4)); - }, - __wbg_uniformMatrix3fv_37240e6bf86a07fe: function(arg0, arg1, arg2, arg3, arg4) { - arg0.uniformMatrix3fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4)); - }, - __wbg_uniformMatrix3x2fv_5d97f011461fbdcd: function(arg0, arg1, arg2, arg3, arg4) { - arg0.uniformMatrix3x2fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4)); - }, - __wbg_uniformMatrix3x4fv_c04455753c617f36: function(arg0, arg1, arg2, arg3, arg4) { - arg0.uniformMatrix3x4fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4)); - }, - __wbg_uniformMatrix4fv_0669f12fa9ed38ab: function(arg0, arg1, arg2, arg3, arg4) { - arg0.uniformMatrix4fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4)); - }, - __wbg_uniformMatrix4fv_174a0c07d7d262e6: function(arg0, arg1, arg2, arg3, arg4) { - arg0.uniformMatrix4fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4)); - }, - __wbg_uniformMatrix4x2fv_52bb86fa40a5d268: function(arg0, arg1, arg2, arg3, arg4) { - arg0.uniformMatrix4x2fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4)); - }, - __wbg_uniformMatrix4x3fv_505928f7d73da1ba: function(arg0, arg1, arg2, arg3, arg4) { - arg0.uniformMatrix4x3fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4)); - }, - __wbg_unobserve_4f22511e56c05d64: function(arg0, arg1) { - arg0.unobserve(arg1); - }, - __wbg_useProgram_330a8a331113dc40: function(arg0, arg1) { - arg0.useProgram(arg1); - }, - __wbg_useProgram_72d15c6d8466e299: function(arg0, arg1) { - arg0.useProgram(arg1); - }, - __wbg_userAgentData_31b8f893e8977e94: function(arg0) { - const ret = arg0.userAgentData; - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }, - __wbg_userAgent_08b9a244999ff008: function() { return handleError(function (arg0, arg1) { - const ret = arg1.userAgent; - const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); - }, arguments); }, - __wbg_vertexAttribDivisorANGLE_1bec2625956dfe3e: function(arg0, arg1, arg2) { - arg0.vertexAttribDivisorANGLE(arg1 >>> 0, arg2 >>> 0); - }, - __wbg_vertexAttribDivisor_6b78656d66a0b972: function(arg0, arg1, arg2) { - arg0.vertexAttribDivisor(arg1 >>> 0, arg2 >>> 0); - }, - __wbg_vertexAttribIPointer_d7e970f0df5969cf: function(arg0, arg1, arg2, arg3, arg4, arg5) { - arg0.vertexAttribIPointer(arg1 >>> 0, arg2, arg3 >>> 0, arg4, arg5); - }, - __wbg_vertexAttribPointer_53d25cb342bec3e0: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) { - arg0.vertexAttribPointer(arg1 >>> 0, arg2, arg3 >>> 0, arg4 !== 0, arg5, arg6); - }, - __wbg_vertexAttribPointer_734b53a3b8f492ca: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) { - arg0.vertexAttribPointer(arg1 >>> 0, arg2, arg3 >>> 0, arg4 !== 0, arg5, arg6); - }, - __wbg_viewport_454df83d0d2cf558: function(arg0, arg1, arg2, arg3, arg4) { - arg0.viewport(arg1, arg2, arg3, arg4); - }, - __wbg_viewport_d56ad9cd4b4e71ca: function(arg0, arg1, arg2, arg3, arg4) { - arg0.viewport(arg1, arg2, arg3, arg4); - }, - __wbg_visibilityState_141b4fe0a806927f: function(arg0) { - const ret = arg0.visibilityState; - return (__wbindgen_enum_VisibilityState.indexOf(ret) + 1 || 3) - 1; - }, - __wbg_webkitExitFullscreen_f487871f11a8185e: function(arg0) { - arg0.webkitExitFullscreen(); - }, - __wbg_webkitFullscreenElement_4055d847f8ff064e: function(arg0) { - const ret = arg0.webkitFullscreenElement; - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }, - __wbg_webkitRequestFullscreen_c4ec4df7be373ffd: function(arg0) { - arg0.webkitRequestFullscreen(); - }, - __wbg_width_7b9880491bd7c987: function(arg0) { - const ret = arg0.width; - return ret; - }, - __wbg_x_a513ba6369340a5f: function(arg0) { - const ret = arg0.x; - return ret; - }, - __wbg_y_21b349c4a04a6c1a: function(arg0) { - const ret = arg0.y; - return ret; - }, - __wbindgen_cast_0000000000000001: function(arg0, arg1) { - // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 62031, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`. - const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__hd94d76233321402f); - return ret; - }, - __wbindgen_cast_0000000000000002: function(arg0, arg1) { - // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 7474, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`. - const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h26ff63c654218354); - return ret; - }, - __wbindgen_cast_0000000000000003: function(arg0, arg1) { - // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Array"), NamedExternref("ResizeObserver")], shim_idx: 7477, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`. - const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__hfc779804ccb0943e); - return ret; - }, - __wbindgen_cast_0000000000000004: function(arg0, arg1) { - // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Array")], shim_idx: 7474, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`. - const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h26ff63c654218354_3); - return ret; - }, - __wbindgen_cast_0000000000000005: function(arg0, arg1) { - // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx: 7474, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`. - const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h26ff63c654218354_4); - return ret; - }, - __wbindgen_cast_0000000000000006: function(arg0, arg1) { - // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("FocusEvent")], shim_idx: 7474, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`. - const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h26ff63c654218354_5); - return ret; - }, - __wbindgen_cast_0000000000000007: function(arg0, arg1) { - // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("KeyboardEvent")], shim_idx: 7474, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`. - const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h26ff63c654218354_6); - return ret; - }, - __wbindgen_cast_0000000000000008: function(arg0, arg1) { - // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("PageTransitionEvent")], shim_idx: 7474, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`. - const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h26ff63c654218354_7); - return ret; - }, - __wbindgen_cast_0000000000000009: function(arg0, arg1) { - // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("PointerEvent")], shim_idx: 7474, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`. - const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h26ff63c654218354_8); - return ret; - }, - __wbindgen_cast_000000000000000a: function(arg0, arg1) { - // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("WheelEvent")], shim_idx: 7474, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`. - const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h26ff63c654218354_9); - return ret; - }, - __wbindgen_cast_000000000000000b: function(arg0, arg1) { - // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Option(NamedExternref("Blob"))], shim_idx: 7475, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`. - const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__hfd77696cd35180b1); - return ret; - }, - __wbindgen_cast_000000000000000c: function(arg0, arg1) { - // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 7476, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`. - const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__hebcd362fbbe0fc8c); - return ret; - }, - __wbindgen_cast_000000000000000d: function(arg0) { - // Cast intrinsic for `F64 -> Externref`. - const ret = arg0; - return ret; - }, - __wbindgen_cast_000000000000000e: function(arg0, arg1) { - // Cast intrinsic for `Ref(Slice(F32)) -> NamedExternref("Float32Array")`. - const ret = getArrayF32FromWasm0(arg0, arg1); - return ret; - }, - __wbindgen_cast_000000000000000f: function(arg0, arg1) { - // Cast intrinsic for `Ref(Slice(I16)) -> NamedExternref("Int16Array")`. - const ret = getArrayI16FromWasm0(arg0, arg1); - return ret; - }, - __wbindgen_cast_0000000000000010: function(arg0, arg1) { - // Cast intrinsic for `Ref(Slice(I32)) -> NamedExternref("Int32Array")`. - const ret = getArrayI32FromWasm0(arg0, arg1); - return ret; - }, - __wbindgen_cast_0000000000000011: function(arg0, arg1) { - // Cast intrinsic for `Ref(Slice(I8)) -> NamedExternref("Int8Array")`. - const ret = getArrayI8FromWasm0(arg0, arg1); - return ret; - }, - __wbindgen_cast_0000000000000012: function(arg0, arg1) { - // Cast intrinsic for `Ref(Slice(U16)) -> NamedExternref("Uint16Array")`. - const ret = getArrayU16FromWasm0(arg0, arg1); - return ret; - }, - __wbindgen_cast_0000000000000013: function(arg0, arg1) { - // Cast intrinsic for `Ref(Slice(U32)) -> NamedExternref("Uint32Array")`. - const ret = getArrayU32FromWasm0(arg0, arg1); - return ret; - }, - __wbindgen_cast_0000000000000014: function(arg0, arg1) { - // Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`. - const ret = getArrayU8FromWasm0(arg0, arg1); - return ret; - }, - __wbindgen_cast_0000000000000015: function(arg0, arg1) { - // Cast intrinsic for `Ref(String) -> Externref`. - const ret = getStringFromWasm0(arg0, arg1); - return ret; - }, - __wbindgen_init_externref_table: function() { - const table = wasm.__wbindgen_externrefs; - const offset = table.grow(4); - table.set(0, undefined); - table.set(offset + 0, undefined); - table.set(offset + 1, null); - table.set(offset + 2, true); - table.set(offset + 3, false); - }, - }; - return { - __proto__: null, - "./canvas_bg.js": import0, - }; -} - -function wasm_bindgen__convert__closures_____invoke__hebcd362fbbe0fc8c(arg0, arg1) { - wasm.wasm_bindgen__convert__closures_____invoke__hebcd362fbbe0fc8c(arg0, arg1); -} - -function wasm_bindgen__convert__closures_____invoke__h26ff63c654218354(arg0, arg1, arg2) { - wasm.wasm_bindgen__convert__closures_____invoke__h26ff63c654218354(arg0, arg1, arg2); -} - -function wasm_bindgen__convert__closures_____invoke__h26ff63c654218354_3(arg0, arg1, arg2) { - wasm.wasm_bindgen__convert__closures_____invoke__h26ff63c654218354_3(arg0, arg1, arg2); -} - -function wasm_bindgen__convert__closures_____invoke__h26ff63c654218354_4(arg0, arg1, arg2) { - wasm.wasm_bindgen__convert__closures_____invoke__h26ff63c654218354_4(arg0, arg1, arg2); -} - -function wasm_bindgen__convert__closures_____invoke__h26ff63c654218354_5(arg0, arg1, arg2) { - wasm.wasm_bindgen__convert__closures_____invoke__h26ff63c654218354_5(arg0, arg1, arg2); -} - -function wasm_bindgen__convert__closures_____invoke__h26ff63c654218354_6(arg0, arg1, arg2) { - wasm.wasm_bindgen__convert__closures_____invoke__h26ff63c654218354_6(arg0, arg1, arg2); -} - -function wasm_bindgen__convert__closures_____invoke__h26ff63c654218354_7(arg0, arg1, arg2) { - wasm.wasm_bindgen__convert__closures_____invoke__h26ff63c654218354_7(arg0, arg1, arg2); -} - -function wasm_bindgen__convert__closures_____invoke__h26ff63c654218354_8(arg0, arg1, arg2) { - wasm.wasm_bindgen__convert__closures_____invoke__h26ff63c654218354_8(arg0, arg1, arg2); -} - -function wasm_bindgen__convert__closures_____invoke__h26ff63c654218354_9(arg0, arg1, arg2) { - wasm.wasm_bindgen__convert__closures_____invoke__h26ff63c654218354_9(arg0, arg1, arg2); -} - -function wasm_bindgen__convert__closures_____invoke__hd94d76233321402f(arg0, arg1, arg2) { - const ret = wasm.wasm_bindgen__convert__closures_____invoke__hd94d76233321402f(arg0, arg1, arg2); - if (ret[1]) { - throw takeFromExternrefTable0(ret[0]); - } -} - -function wasm_bindgen__convert__closures_____invoke__hfc779804ccb0943e(arg0, arg1, arg2, arg3) { - wasm.wasm_bindgen__convert__closures_____invoke__hfc779804ccb0943e(arg0, arg1, arg2, arg3); -} - -function wasm_bindgen__convert__closures_____invoke__hfd77696cd35180b1(arg0, arg1, arg2) { - wasm.wasm_bindgen__convert__closures_____invoke__hfd77696cd35180b1(arg0, arg1, isLikeNone(arg2) ? 0 : addToExternrefTable0(arg2)); -} - - -const __wbindgen_enum_PremultiplyAlpha = ["none", "premultiply", "default"]; - - -const __wbindgen_enum_ResizeObserverBoxOptions = ["border-box", "content-box", "device-pixel-content-box"]; - - -const __wbindgen_enum_VisibilityState = ["hidden", "visible"]; - -function addToExternrefTable0(obj) { - const idx = wasm.__externref_table_alloc(); - wasm.__wbindgen_externrefs.set(idx, obj); - return idx; -} - -const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined') - ? { register: () => {}, unregister: () => {} } - : new FinalizationRegistry(state => wasm.__wbindgen_destroy_closure(state.a, state.b)); - -function debugString(val) { - // primitive types - const type = typeof val; - if (type == 'number' || type == 'boolean' || val == null) { - return `${val}`; - } - if (type == 'string') { - return `"${val}"`; - } - if (type == 'symbol') { - const description = val.description; - if (description == null) { - return 'Symbol'; - } else { - return `Symbol(${description})`; - } - } - if (type == 'function') { - const name = val.name; - if (typeof name == 'string' && name.length > 0) { - return `Function(${name})`; - } else { - return 'Function'; - } - } - // objects - if (Array.isArray(val)) { - const length = val.length; - let debug = '['; - if (length > 0) { - debug += debugString(val[0]); - } - for(let i = 1; i < length; i++) { - debug += ', ' + debugString(val[i]); - } - debug += ']'; - return debug; - } - // Test for built-in - const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val)); - let className; - if (builtInMatches && builtInMatches.length > 1) { - className = builtInMatches[1]; - } else { - // Failed to match the standard '[object ClassName]' - return toString.call(val); - } - if (className == 'Object') { - // we're a user defined class or Object - // JSON.stringify avoids problems with cycles, and is generally much - // easier than looping through ownProperties of `val`. - try { - return 'Object(' + JSON.stringify(val) + ')'; - } catch (_) { - return 'Object'; - } - } - // errors - if (val instanceof Error) { - return `${val.name}: ${val.message}\n${val.stack}`; - } - // TODO we could test for more things here, like `Set`s and `Map`s. - return className; -} - -function getArrayF32FromWasm0(ptr, len) { - ptr = ptr >>> 0; - return getFloat32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len); -} - -function getArrayI16FromWasm0(ptr, len) { - ptr = ptr >>> 0; - return getInt16ArrayMemory0().subarray(ptr / 2, ptr / 2 + len); -} - -function getArrayI32FromWasm0(ptr, len) { - ptr = ptr >>> 0; - return getInt32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len); -} - -function getArrayI8FromWasm0(ptr, len) { - ptr = ptr >>> 0; - return getInt8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len); -} - -function getArrayU16FromWasm0(ptr, len) { - ptr = ptr >>> 0; - return getUint16ArrayMemory0().subarray(ptr / 2, ptr / 2 + len); -} - -function getArrayU32FromWasm0(ptr, len) { - ptr = ptr >>> 0; - return getUint32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len); -} - -function getArrayU8FromWasm0(ptr, len) { - ptr = ptr >>> 0; - return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len); -} - -function getClampedArrayU8FromWasm0(ptr, len) { - ptr = ptr >>> 0; - return getUint8ClampedArrayMemory0().subarray(ptr / 1, ptr / 1 + len); -} - -let cachedDataViewMemory0 = null; -function getDataViewMemory0() { - if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) { - cachedDataViewMemory0 = new DataView(wasm.memory.buffer); - } - return cachedDataViewMemory0; -} - -let cachedFloat32ArrayMemory0 = null; -function getFloat32ArrayMemory0() { - if (cachedFloat32ArrayMemory0 === null || cachedFloat32ArrayMemory0.byteLength === 0) { - cachedFloat32ArrayMemory0 = new Float32Array(wasm.memory.buffer); - } - return cachedFloat32ArrayMemory0; -} - -let cachedInt16ArrayMemory0 = null; -function getInt16ArrayMemory0() { - if (cachedInt16ArrayMemory0 === null || cachedInt16ArrayMemory0.byteLength === 0) { - cachedInt16ArrayMemory0 = new Int16Array(wasm.memory.buffer); - } - return cachedInt16ArrayMemory0; -} - -let cachedInt32ArrayMemory0 = null; -function getInt32ArrayMemory0() { - if (cachedInt32ArrayMemory0 === null || cachedInt32ArrayMemory0.byteLength === 0) { - cachedInt32ArrayMemory0 = new Int32Array(wasm.memory.buffer); - } - return cachedInt32ArrayMemory0; -} - -let cachedInt8ArrayMemory0 = null; -function getInt8ArrayMemory0() { - if (cachedInt8ArrayMemory0 === null || cachedInt8ArrayMemory0.byteLength === 0) { - cachedInt8ArrayMemory0 = new Int8Array(wasm.memory.buffer); - } - return cachedInt8ArrayMemory0; -} - -function getStringFromWasm0(ptr, len) { - return decodeText(ptr >>> 0, len); -} - -let cachedUint16ArrayMemory0 = null; -function getUint16ArrayMemory0() { - if (cachedUint16ArrayMemory0 === null || cachedUint16ArrayMemory0.byteLength === 0) { - cachedUint16ArrayMemory0 = new Uint16Array(wasm.memory.buffer); - } - return cachedUint16ArrayMemory0; -} - -let cachedUint32ArrayMemory0 = null; -function getUint32ArrayMemory0() { - if (cachedUint32ArrayMemory0 === null || cachedUint32ArrayMemory0.byteLength === 0) { - cachedUint32ArrayMemory0 = new Uint32Array(wasm.memory.buffer); - } - return cachedUint32ArrayMemory0; -} - -let cachedUint8ArrayMemory0 = null; -function getUint8ArrayMemory0() { - if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) { - cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer); - } - return cachedUint8ArrayMemory0; -} - -let cachedUint8ClampedArrayMemory0 = null; -function getUint8ClampedArrayMemory0() { - if (cachedUint8ClampedArrayMemory0 === null || cachedUint8ClampedArrayMemory0.byteLength === 0) { - cachedUint8ClampedArrayMemory0 = new Uint8ClampedArray(wasm.memory.buffer); - } - return cachedUint8ClampedArrayMemory0; -} - -function handleError(f, args) { - try { - return f.apply(this, args); - } catch (e) { - const idx = addToExternrefTable0(e); - wasm.__wbindgen_exn_store(idx); - } -} - -function isLikeNone(x) { - return x === undefined || x === null; -} - -function makeMutClosure(arg0, arg1, f) { - const state = { a: arg0, b: arg1, cnt: 1 }; - const real = (...args) => { - - // First up with a closure we increment the internal reference - // count. This ensures that the Rust closure environment won't - // be deallocated while we're invoking it. - state.cnt++; - const a = state.a; - state.a = 0; - try { - return f(a, state.b, ...args); - } finally { - state.a = a; - real._wbg_cb_unref(); - } - }; - real._wbg_cb_unref = () => { - if (--state.cnt === 0) { - wasm.__wbindgen_destroy_closure(state.a, state.b); - state.a = 0; - CLOSURE_DTORS.unregister(state); - } - }; - CLOSURE_DTORS.register(real, state, state); - return real; -} - -function passStringToWasm0(arg, malloc, realloc) { - if (realloc === undefined) { - const buf = cachedTextEncoder.encode(arg); - const ptr = malloc(buf.length, 1) >>> 0; - getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf); - WASM_VECTOR_LEN = buf.length; - return ptr; - } - - let len = arg.length; - let ptr = malloc(len, 1) >>> 0; - - const mem = getUint8ArrayMemory0(); - - let offset = 0; - - for (; offset < len; offset++) { - const code = arg.charCodeAt(offset); - if (code > 0x7F) break; - mem[ptr + offset] = code; - } - if (offset !== len) { - if (offset !== 0) { - arg = arg.slice(offset); - } - ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0; - const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len); - const ret = cachedTextEncoder.encodeInto(arg, view); - - offset += ret.written; - ptr = realloc(ptr, len, offset, 1) >>> 0; - } - - WASM_VECTOR_LEN = offset; - return ptr; -} - -function takeFromExternrefTable0(idx) { - const value = wasm.__wbindgen_externrefs.get(idx); - wasm.__externref_table_dealloc(idx); - return value; -} - -let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }); -cachedTextDecoder.decode(); -const MAX_SAFARI_DECODE_BYTES = 2146435072; -let numBytesDecoded = 0; -function decodeText(ptr, len) { - numBytesDecoded += len; - if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) { - cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }); - cachedTextDecoder.decode(); - numBytesDecoded = len; - } - return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len)); -} - -const cachedTextEncoder = new TextEncoder(); - -if (!('encodeInto' in cachedTextEncoder)) { - cachedTextEncoder.encodeInto = function (arg, view) { - const buf = cachedTextEncoder.encode(arg); - view.set(buf); - return { - read: arg.length, - written: buf.length - }; - }; -} - -let WASM_VECTOR_LEN = 0; - -let wasmModule, wasmInstance, wasm; -function __wbg_finalize_init(instance, module) { - wasmInstance = instance; - wasm = instance.exports; - wasmModule = module; - cachedDataViewMemory0 = null; - cachedFloat32ArrayMemory0 = null; - cachedInt16ArrayMemory0 = null; - cachedInt32ArrayMemory0 = null; - cachedInt8ArrayMemory0 = null; - cachedUint16ArrayMemory0 = null; - cachedUint32ArrayMemory0 = null; - cachedUint8ArrayMemory0 = null; - cachedUint8ClampedArrayMemory0 = null; - wasm.__wbindgen_start(); - return wasm; -} - -async function __wbg_load(module, imports) { - if (typeof Response === 'function' && module instanceof Response) { - if (typeof WebAssembly.instantiateStreaming === 'function') { - try { - return await WebAssembly.instantiateStreaming(module, imports); - } catch (e) { - const validResponse = module.ok && expectedResponseType(module.type); - - if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') { - console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e); - - } else { throw e; } - } - } - - const bytes = await module.arrayBuffer(); - return await WebAssembly.instantiate(bytes, imports); - } else { - const instance = await WebAssembly.instantiate(module, imports); - - if (instance instanceof WebAssembly.Instance) { - return { instance, module }; - } else { - return instance; - } - } - - function expectedResponseType(type) { - switch (type) { - case 'basic': case 'cors': case 'default': return true; - } - return false; - } -} - -function initSync(module) { - if (wasm !== undefined) return wasm; - - - if (module !== undefined) { - if (Object.getPrototypeOf(module) === Object.prototype) { - ({module} = module) - } else { - console.warn('using deprecated parameters for `initSync()`; pass a single object instead') - } - } - - const imports = __wbg_get_imports(); - if (!(module instanceof WebAssembly.Module)) { - module = new WebAssembly.Module(module); - } - const instance = new WebAssembly.Instance(module, imports); - return __wbg_finalize_init(instance, module); -} - -async function __wbg_init(module_or_path) { - if (wasm !== undefined) return wasm; - - - if (module_or_path !== undefined) { - if (Object.getPrototypeOf(module_or_path) === Object.prototype) { - ({module_or_path} = module_or_path) - } else { - console.warn('using deprecated parameters for the initialization function; pass a single object instead') - } - } - - if (module_or_path === undefined) { - module_or_path = new URL('canvas_bg.wasm', import.meta.url); - } - const imports = __wbg_get_imports(); - - if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) { - module_or_path = fetch(module_or_path); - } - - const { instance, module } = await __wbg_load(await module_or_path, imports); - - return __wbg_finalize_init(instance, module); -} - -export { initSync, __wbg_init as default }; diff --git a/solitaire_server/web/pkg/canvas_bg.wasm b/solitaire_server/web/pkg/canvas_bg.wasm deleted file mode 100644 index d6b565c..0000000 Binary files a/solitaire_server/web/pkg/canvas_bg.wasm and /dev/null differ diff --git a/solitaire_server/web/pkg/solitaire_wasm.js b/solitaire_server/web/pkg/solitaire_wasm.js deleted file mode 100644 index 6d2a19e..0000000 --- a/solitaire_server/web/pkg/solitaire_wasm.js +++ /dev/null @@ -1,595 +0,0 @@ -/** - * Browser-side replay state machine. Owns a live `GameState` and the - * replay's move list; each `step()` applies the next move. - */ -export class ReplayPlayer { - __destroy_into_raw() { - const ptr = this.__wbg_ptr; - this.__wbg_ptr = 0; - ReplayPlayerFinalization.unregister(this); - return ptr; - } - free() { - const ptr = this.__destroy_into_raw(); - wasm.__wbg_replayplayer_free(ptr, 0); - } - /** - * Returns `true` once every move has been applied. - * @returns {boolean} - */ - is_finished() { - const ret = wasm.replayplayer_is_finished(this.__wbg_ptr); - return ret !== 0; - } - /** - * Construct from a raw replay JSON string. - * @param {string} replay_json - */ - constructor(replay_json) { - const ptr0 = passStringToWasm0(replay_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len0 = WASM_VECTOR_LEN; - const ret = wasm.replayplayer_new(ptr0, len0); - if (ret[2]) { - throw takeFromExternrefTable0(ret[1]); - } - this.__wbg_ptr = ret[0]; - ReplayPlayerFinalization.register(this, this.__wbg_ptr, this); - return this; - } - /** - * Snapshot the current `GameState` as a JS object (see `StateSnapshot`). - * - * Throws a JS string exception on serialisation failure (should never - * occur in practice — `StateSnapshot` contains only primitive types). - * @returns {any} - */ - state() { - const ret = wasm.replayplayer_state(this.__wbg_ptr); - if (ret[2]) { - throw takeFromExternrefTable0(ret[1]); - } - return takeFromExternrefTable0(ret[0]); - } - /** - * Apply the next move; returns the post-step snapshot, or `null` - * once the move list is exhausted. - * - * Returns `null` (not an exception) when the replay is finished. - * Throws `"replay_desync"` when the next recorded move is illegal for - * the current state, and logs the underlying core error to the JS console. - * Throws a JS string exception on serialisation failure. - * @returns {any} - */ - step() { - const ret = wasm.replayplayer_step(this.__wbg_ptr); - if (ret[2]) { - throw takeFromExternrefTable0(ret[1]); - } - return takeFromExternrefTable0(ret[0]); - } - /** - * 0-indexed position of the next move to apply. - * @returns {number} - */ - step_idx() { - const ret = wasm.replayplayer_step_idx(this.__wbg_ptr); - return ret >>> 0; - } - /** - * Total number of moves the replay contains. - * @returns {number} - */ - total_steps() { - const ret = wasm.replayplayer_total_steps(this.__wbg_ptr); - return ret >>> 0; - } -} -if (Symbol.dispose) ReplayPlayer.prototype[Symbol.dispose] = ReplayPlayer.prototype.free; - -/** - * Interactive Klondike game backed by the real `solitaire_core` rules engine. - * - * Construct with `new(seed, draw_three)`, then call `draw()`, `move_cards()`, - * `undo()`, `auto_complete_step()` to advance the game. `state()` returns the - * full pile snapshot at any time without mutating state. - */ -export class SolitaireGame { - static __wrap(ptr) { - const obj = Object.create(SolitaireGame.prototype); - obj.__wbg_ptr = ptr; - SolitaireGameFinalization.register(obj, obj.__wbg_ptr, obj); - return obj; - } - __destroy_into_raw() { - const ptr = this.__wbg_ptr; - this.__wbg_ptr = 0; - SolitaireGameFinalization.unregister(this); - return ptr; - } - free() { - const ptr = this.__destroy_into_raw(); - wasm.__wbg_solitairegame_free(ptr, 0); - } - /** - * Apply one auto-complete move (only valid when `is_auto_completable`). - * - * If no card can go directly to a foundation this step, advances the - * waste by calling `draw()` so the next step can try again. Returns the - * post-move snapshot, or `null` when no progress is possible. - * @returns {any} - */ - auto_complete_step() { - const ret = wasm.solitairegame_auto_complete_step(this.__wbg_ptr); - return ret; - } - /** - * Applies the legal move currently at `index` from `debug_legal_moves()`. - * @param {number} index - * @returns {any} - */ - debug_apply_legal_move(index) { - const ret = wasm.solitairegame_debug_apply_legal_move(this.__wbg_ptr, index); - return ret; - } - /** - * Applies one debug move encoded as JSON. - * - * JSON must match [`DebugMove`], for example: - * `{"kind":"move","from":"tableau-0","to":"foundation-1","count":1}` or - * `{"kind":"stock_click"}`. - * @param {string} move_json - * @returns {any} - */ - debug_apply_move_json(move_json) { - const ptr0 = passStringToWasm0(move_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len0 = WASM_VECTOR_LEN; - const ret = wasm.solitairegame_debug_apply_move_json(this.__wbg_ptr, ptr0, len0); - return ret; - } - /** - * Returns all currently-legal debug moves as a JS array. - * - * Includes [`DebugMove::StockClick`] when stock interaction is legal. - * @returns {any} - */ - debug_legal_moves() { - const ret = wasm.solitairegame_debug_legal_moves(this.__wbg_ptr); - if (ret[2]) { - throw takeFromExternrefTable0(ret[1]); - } - return takeFromExternrefTable0(ret[0]); - } - /** - * Returns deterministic instruction history for the current game. - * - * Together with `seed()` and `draw_mode`, this history is replayable. - * @returns {any} - */ - debug_move_history() { - const ret = wasm.solitairegame_debug_move_history(this.__wbg_ptr); - if (ret[2]) { - throw takeFromExternrefTable0(ret[1]); - } - return takeFromExternrefTable0(ret[0]); - } - /** - * Returns a comprehensive debug snapshot for automated verification. - * @returns {any} - */ - debug_snapshot() { - const ret = wasm.solitairegame_debug_snapshot(this.__wbg_ptr); - if (ret[2]) { - throw takeFromExternrefTable0(ret[1]); - } - return takeFromExternrefTable0(ret[0]); - } - /** - * Draw from stock to waste (or recycle waste → stock when stock is empty). - * Returns `{ok, error?, snapshot?}`. - * @returns {any} - */ - draw() { - const ret = wasm.solitairegame_draw(this.__wbg_ptr); - return ret; - } - /** - * Restore a game from a JSON string previously produced by [`SolitaireGame::serialize`]. - * - * Returns an error string if the JSON is malformed or describes a state - * that can't be deserialised (e.g. from a future schema version). - * @param {string} json - * @returns {SolitaireGame} - */ - static from_saved(json) { - const ptr0 = passStringToWasm0(json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len0 = WASM_VECTOR_LEN; - const ret = wasm.solitairegame_from_saved(ptr0, len0); - if (ret[2]) { - throw takeFromExternrefTable0(ret[1]); - } - return SolitaireGame.__wrap(ret[0]); - } - /** - * Move `count` cards from pile `from` to pile `to`. - * - * Pile names: `"stock"`, `"waste"`, `"foundation-0"` .. `"foundation-3"`, - * `"tableau-0"` .. `"tableau-6"`. - * - * Returns `{ok, error?, snapshot?}`. - * @param {string} from - * @param {string} to - * @param {number} count - * @returns {any} - */ - move_cards(from, to, count) { - const ptr0 = passStringToWasm0(from, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len0 = WASM_VECTOR_LEN; - const ptr1 = passStringToWasm0(to, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - const ret = wasm.solitairegame_move_cards(this.__wbg_ptr, ptr0, len0, ptr1, len1, count); - return ret; - } - /** - * Create a new DrawOne or DrawThree Classic game from the given seed. - * - * `seed` is a JS `number` (f64); values up to 2^53 are represented exactly. - * Pass `Date.now()` or a random integer from JS for variety. - * @param {number} seed - * @param {boolean} draw_three - */ - constructor(seed, draw_three) { - const ret = wasm.solitairegame_new(seed, draw_three); - this.__wbg_ptr = ret; - SolitaireGameFinalization.register(this, this.__wbg_ptr, this); - return this; - } - /** - * Returns replay moves encoded in the `solitaire_data::Replay` wire format - * — a list of upstream [`KlondikeInstruction`]s. - * - * This is the deterministic instruction history; together with `seed()` - * and the draw mode it replays cleanly via `apply_instruction`. - * @returns {any} - */ - replay_moves() { - const ret = wasm.solitairegame_replay_moves(this.__wbg_ptr); - if (ret[2]) { - throw takeFromExternrefTable0(ret[1]); - } - return takeFromExternrefTable0(ret[0]); - } - /** - * The seed used to deal this game. - * @returns {number} - */ - seed() { - const ret = wasm.solitairegame_seed(this.__wbg_ptr); - return ret; - } - /** - * Serialise the full game state as a JSON string for `localStorage`. - * - * Use [`SolitaireGame::from_saved`] to restore it. The returned string is - * opaque — callers should treat it as a blob and store/restore it verbatim. - * @returns {string} - */ - serialize() { - let deferred2_0; - let deferred2_1; - try { - const ret = wasm.solitairegame_serialize(this.__wbg_ptr); - var ptr1 = ret[0]; - var len1 = ret[1]; - if (ret[3]) { - ptr1 = 0; len1 = 0; - throw takeFromExternrefTable0(ret[2]); - } - deferred2_0 = ptr1; - deferred2_1 = len1; - return getStringFromWasm0(ptr1, len1); - } finally { - wasm.__wbindgen_free(deferred2_0, deferred2_1, 1); - } - } - /** - * Full pile snapshot as a JS object. - * - * Throws a JS string exception on serialisation failure. - * @returns {any} - */ - state() { - const ret = wasm.solitairegame_state(this.__wbg_ptr); - if (ret[2]) { - throw takeFromExternrefTable0(ret[1]); - } - return takeFromExternrefTable0(ret[0]); - } - /** - * Undo the last move. Returns `{ok, error?, snapshot?}`. - * @returns {any} - */ - undo() { - const ret = wasm.solitairegame_undo(this.__wbg_ptr); - return ret; - } -} -if (Symbol.dispose) SolitaireGame.prototype[Symbol.dispose] = SolitaireGame.prototype.free; -function __wbg_get_imports() { - const import0 = { - __proto__: null, - __wbg_Error_3639a60ed15f87e7: function(arg0, arg1) { - const ret = Error(getStringFromWasm0(arg0, arg1)); - return ret; - }, - __wbg_String_8564e559799eccda: function(arg0, arg1) { - const ret = String(arg1); - const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); - }, - __wbg___wbindgen_throw_9c75d47bf9e7731e: function(arg0, arg1) { - throw new Error(getStringFromWasm0(arg0, arg1)); - }, - __wbg_error_48655ee7e4756f8b: function(arg0) { - console.error(arg0); - }, - __wbg_error_a6fa202b58aa1cd3: function(arg0, arg1) { - let deferred0_0; - let deferred0_1; - try { - deferred0_0 = arg0; - deferred0_1 = arg1; - console.error(getStringFromWasm0(arg0, arg1)); - } finally { - wasm.__wbindgen_free(deferred0_0, deferred0_1, 1); - } - }, - __wbg_new_227d7c05414eb861: function() { - const ret = new Error(); - return ret; - }, - __wbg_new_2fad8ca02fd00684: function() { - const ret = new Object(); - return ret; - }, - __wbg_new_3baa8d9866155c79: function() { - const ret = new Array(); - return ret; - }, - __wbg_set_6be42768c690e380: function(arg0, arg1, arg2) { - arg0[arg1] = arg2; - }, - __wbg_set_f614f6a0608d1d1d: function(arg0, arg1, arg2) { - arg0[arg1 >>> 0] = arg2; - }, - __wbg_stack_3b0d974bbf31e44f: function(arg0, arg1) { - const ret = arg1.stack; - const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); - }, - __wbindgen_cast_0000000000000001: function(arg0) { - // Cast intrinsic for `F64 -> Externref`. - const ret = arg0; - return ret; - }, - __wbindgen_cast_0000000000000002: function(arg0, arg1) { - // Cast intrinsic for `Ref(String) -> Externref`. - const ret = getStringFromWasm0(arg0, arg1); - return ret; - }, - __wbindgen_cast_0000000000000003: function(arg0) { - // Cast intrinsic for `U64 -> Externref`. - const ret = BigInt.asUintN(64, arg0); - return ret; - }, - __wbindgen_init_externref_table: function() { - const table = wasm.__wbindgen_externrefs; - const offset = table.grow(4); - table.set(0, undefined); - table.set(offset + 0, undefined); - table.set(offset + 1, null); - table.set(offset + 2, true); - table.set(offset + 3, false); - }, - }; - return { - __proto__: null, - "./solitaire_wasm_bg.js": import0, - }; -} - -const ReplayPlayerFinalization = (typeof FinalizationRegistry === 'undefined') - ? { register: () => {}, unregister: () => {} } - : new FinalizationRegistry(ptr => wasm.__wbg_replayplayer_free(ptr, 1)); -const SolitaireGameFinalization = (typeof FinalizationRegistry === 'undefined') - ? { register: () => {}, unregister: () => {} } - : new FinalizationRegistry(ptr => wasm.__wbg_solitairegame_free(ptr, 1)); - -let cachedDataViewMemory0 = null; -function getDataViewMemory0() { - if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) { - cachedDataViewMemory0 = new DataView(wasm.memory.buffer); - } - return cachedDataViewMemory0; -} - -function getStringFromWasm0(ptr, len) { - return decodeText(ptr >>> 0, len); -} - -let cachedUint8ArrayMemory0 = null; -function getUint8ArrayMemory0() { - if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) { - cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer); - } - return cachedUint8ArrayMemory0; -} - -function passStringToWasm0(arg, malloc, realloc) { - if (realloc === undefined) { - const buf = cachedTextEncoder.encode(arg); - const ptr = malloc(buf.length, 1) >>> 0; - getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf); - WASM_VECTOR_LEN = buf.length; - return ptr; - } - - let len = arg.length; - let ptr = malloc(len, 1) >>> 0; - - const mem = getUint8ArrayMemory0(); - - let offset = 0; - - for (; offset < len; offset++) { - const code = arg.charCodeAt(offset); - if (code > 0x7F) break; - mem[ptr + offset] = code; - } - if (offset !== len) { - if (offset !== 0) { - arg = arg.slice(offset); - } - ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0; - const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len); - const ret = cachedTextEncoder.encodeInto(arg, view); - - offset += ret.written; - ptr = realloc(ptr, len, offset, 1) >>> 0; - } - - WASM_VECTOR_LEN = offset; - return ptr; -} - -function takeFromExternrefTable0(idx) { - const value = wasm.__wbindgen_externrefs.get(idx); - wasm.__externref_table_dealloc(idx); - return value; -} - -let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }); -cachedTextDecoder.decode(); -const MAX_SAFARI_DECODE_BYTES = 2146435072; -let numBytesDecoded = 0; -function decodeText(ptr, len) { - numBytesDecoded += len; - if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) { - cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }); - cachedTextDecoder.decode(); - numBytesDecoded = len; - } - return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len)); -} - -const cachedTextEncoder = new TextEncoder(); - -if (!('encodeInto' in cachedTextEncoder)) { - cachedTextEncoder.encodeInto = function (arg, view) { - const buf = cachedTextEncoder.encode(arg); - view.set(buf); - return { - read: arg.length, - written: buf.length - }; - }; -} - -let WASM_VECTOR_LEN = 0; - -let wasmModule, wasmInstance, wasm; -function __wbg_finalize_init(instance, module) { - wasmInstance = instance; - wasm = instance.exports; - wasmModule = module; - cachedDataViewMemory0 = null; - cachedUint8ArrayMemory0 = null; - wasm.__wbindgen_start(); - return wasm; -} - -async function __wbg_load(module, imports) { - if (typeof Response === 'function' && module instanceof Response) { - if (typeof WebAssembly.instantiateStreaming === 'function') { - try { - return await WebAssembly.instantiateStreaming(module, imports); - } catch (e) { - const validResponse = module.ok && expectedResponseType(module.type); - - if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') { - console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e); - - } else { throw e; } - } - } - - const bytes = await module.arrayBuffer(); - return await WebAssembly.instantiate(bytes, imports); - } else { - const instance = await WebAssembly.instantiate(module, imports); - - if (instance instanceof WebAssembly.Instance) { - return { instance, module }; - } else { - return instance; - } - } - - function expectedResponseType(type) { - switch (type) { - case 'basic': case 'cors': case 'default': return true; - } - return false; - } -} - -function initSync(module) { - if (wasm !== undefined) return wasm; - - - if (module !== undefined) { - if (Object.getPrototypeOf(module) === Object.prototype) { - ({module} = module) - } else { - console.warn('using deprecated parameters for `initSync()`; pass a single object instead') - } - } - - const imports = __wbg_get_imports(); - if (!(module instanceof WebAssembly.Module)) { - module = new WebAssembly.Module(module); - } - const instance = new WebAssembly.Instance(module, imports); - return __wbg_finalize_init(instance, module); -} - -async function __wbg_init(module_or_path) { - if (wasm !== undefined) return wasm; - - - if (module_or_path !== undefined) { - if (Object.getPrototypeOf(module_or_path) === Object.prototype) { - ({module_or_path} = module_or_path) - } else { - console.warn('using deprecated parameters for the initialization function; pass a single object instead') - } - } - - if (module_or_path === undefined) { - module_or_path = new URL('solitaire_wasm_bg.wasm', import.meta.url); - } - const imports = __wbg_get_imports(); - - if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) { - module_or_path = fetch(module_or_path); - } - - const { instance, module } = await __wbg_load(await module_or_path, imports); - - return __wbg_finalize_init(instance, module); -} - -export { initSync, __wbg_init as default }; diff --git a/solitaire_server/web/pkg/solitaire_wasm_bg.wasm b/solitaire_server/web/pkg/solitaire_wasm_bg.wasm deleted file mode 100644 index 2515c45..0000000 Binary files a/solitaire_server/web/pkg/solitaire_wasm_bg.wasm and /dev/null differ