diff --git a/.claude/skills/commit-message/SKILL.md b/.claude/skills/commit-message/SKILL.md new file mode 100644 index 000000000..b2fd0be3e --- /dev/null +++ b/.claude/skills/commit-message/SKILL.md @@ -0,0 +1,23 @@ +--- +name: commit-message +description: Read the git diff and write a commit message in the repo's existing style. Use when the user asks for a commit message or runs /commit-message. Only prints the message; never stages, commits, or pushes. +disable-model-invocation: true +allowed-tools: Bash(git diff:*), Bash(git log:*), Bash(git status:*) +--- + +# Commit message + +Write a commit message for the current changes. Do not stage, commit, or push anything; the user does that themselves. + +## Context + +- Recent commits: !`git log --format=%s -20` +- Staged stat: !`git diff --cached --stat` +- Unstaged stat: !`git diff --stat` + +## Steps + +1. Use the staged diff (`git diff --cached`) if anything is staged; otherwise use the unstaged diff (`git diff`). Read the actual hunks for anything the stat doesn't explain. Skim large deletions and pure-formatting churn rather than reading them line by line. +2. Find the one main thing the change does. Renames, moves into the flat `Name/index.tsx` layout, CSS tweaks, and formatting churn are usually side effects of that, not separate items. +3. Match the style of the recent commits: one line, all lowercase, no trailing period, no conventional-commit prefix, no body, usually 2–6 words (e.g. `migrate 404 page`, `no internal css`, `fix embed redirector`). +4. Reply with only the message in a code block. No preamble, no summary, no bullet list, no suggestions. diff --git a/.claude/skills/vfs/SKILL.md b/.claude/skills/vfs/SKILL.md new file mode 100644 index 000000000..4bec9dc48 --- /dev/null +++ b/.claude/skills/vfs/SKILL.md @@ -0,0 +1,44 @@ +--- +name: vfs +description: Read files from the World of Tanks Blitz game client (including DVPL-compressed ones) via scripts/vfs.sh. Use when you need to list, read, or parse game data like Data/*.yaml, version.txt, or any asset in the client install, or when you need to know where the client install and wotblitz.exe are. +--- + +# Game client VFS + +`scripts/vfs.sh` reads files out of the installed game client and transparently handles DVPL decompression. Use it instead of reading the Steam directory directly, because many client files are DVPL-compressed and raw reads give you garbage. + +Run it from the repo root (the wrapper `cd`s into `packages/scripts` itself): + +```bash +scripts/vfs.sh ls # list a directory, one entry per line +scripts/vfs.sh cat # raw file contents to stdout (decompressed) +scripts/vfs.sh yaml # parse a YAML file, print as JSON +``` + +The path argument is required. Paths are relative to the client root, e.g. `Data/version.txt`. Without a path it exits 1. + +Source of truth for commands: `packages/scripts/src/vfs/index.ts`. Check it if a command here seems missing. + +## Examples (verified) + +```bash +scripts/vfs.sh cat Data/version.txt # 11.21.0.1235_7376187 release/11.21.0 WOTB_Win7 (no trailing newline) +scripts/vfs.sh ls Data # *.yaml configs, 3d, Configs, Fonts, ... +scripts/vfs.sh yaml Data/countries.yaml # JSON: { "ru": ["AM", "AZ", ...], ... } +``` + +## Where the client is + +- The install dir comes from `CLIENT_DIR` in `packages/website/.env` (read via `packages/scripts/src/vfs/vfs.ts`). The location is machine-specific, so read that `.env` to find it rather than assuming a path. The `.env` may also contain commented-out alternative client locations. +- Executable: `wotblitz.exe` in that directory (~74 MB). `wotblitz-browser.exe` is the small embedded-browser helper, not the game. +- The `.env` holds an application ID and paths; don't paste its secrets elsewhere. + +## Reverse engineering the executable + +For binary analysis of `wotblitz.exe`, use the REA MCP tools (`mcp__rea__*`, load via ToolSearch). Nothing is open by default: call `open_binary` with the exe path first, and `close_binary` when done. The `rea` CLI is not on PATH, so `rea doctor` is unavailable; the MCP server is the interface. + +## Notes + +- Read-only: the VFS never modifies the client. +- Prefer `yaml` over `cat` for `.yaml` files when you want to query structure. +- Large outputs: pipe through `head` or `jq`. diff --git a/.github/workflows/ids.yaml b/.github/workflows/ids.yaml index 78a60e25a..53158ba5a 100644 --- a/.github/workflows/ids.yaml +++ b/.github/workflows/ids.yaml @@ -30,6 +30,11 @@ jobs: - name: Setup bun uses: oven-sh/setup-bun@v2 + - name: Setup protoc + uses: arduino/setup-protoc@v3 + with: + repo-token: ${{ secrets.GH_TOKEN }} + - name: Set up script run: scripts/setup.sh diff --git a/.github/workflows/website.yaml b/.github/workflows/website.yaml index 3ab2889d2..4615918e0 100644 --- a/.github/workflows/website.yaml +++ b/.github/workflows/website.yaml @@ -23,6 +23,7 @@ on: options: - production - main + - data-driven environment: description: Environment @@ -47,16 +48,14 @@ on: options: - wgc - - steam - zip - - wgpkg + - 7z client_source: description: Client source type: string - required: true - default: 444200/windows + required: false permissions: contents: read @@ -70,11 +69,9 @@ env: HAS_ROOT_REPO_CONTEXT: ${{ github.event_name != 'pull_request' }} # client - STEAM_USERNAME: ${{ secrets.STEAM_USERNAME }} - STEAM_PASSWORD: ${{ secrets.STEAM_PASSWORD }} - CLIENT_PROVIDER: ${{ inputs.client_provider || (github.event_name != 'pull_request' && 'steam' || 'wgc') }} - CLIENT_SOURCE: ${{ inputs.client_source || '444200/windows' }} - CLIENT_DIR: ../../temp/game + CLIENT_PROVIDER: ${{ inputs.client_provider || 'wgc' }} + CLIENT_SOURCE: ${{ inputs.client_source }} + SMART_DLC_DIR: ../../temp/smart-dlc # blitzkit PUBLIC_ENVIRONMENT: ${{ inputs.environment || 'production' }} @@ -100,8 +97,8 @@ jobs: chunk: [default, api, models_tanks, models_legendary, models_maps] steps: - - name: Free disk space - uses: jlumbroso/free-disk-space@main + # - name: Free disk space + # uses: jlumbroso/free-disk-space@main - name: Checkout uses: actions/checkout@v6 @@ -119,22 +116,15 @@ jobs: with: repo-token: ${{ secrets.GH_TOKEN }} - - name: Setup CLIs - run: | - sudo apt-get update - sudo apt-get install -y aria2 libarchive-tools - - name: Set up script run: scripts/setup.sh - - name: Lint - run: scripts/lint.sh - - - name: Download client - run: scripts/download-client.sh + # - name: Lint + # run: scripts/lint.sh - name: Download SmartDLC - if: ${{ env.HAS_ROOT_REPO_CONTEXT == 'true' }} + # patches are matched by version, which only wgc clients report truthfully + if: ${{ env.HAS_ROOT_REPO_CONTEXT == 'true' && env.CLIENT_PROVIDER == 'wgc' }} run: scripts/download-smart-dlc.sh - name: Build diff --git a/.gitignore b/.gitignore index bd34ba898..b4da804a1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ +packages/protos/src/*/*.ts + node_modules _node_modules package-lock.json diff --git a/.vscode/settings.json b/.vscode/settings.json index 2c04c2995..7303d2247 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -96,6 +96,7 @@ "fullstats", "fuzzysort", "gamemode", + "gamemodes", "gameplay", "glsl", "GLTF", @@ -103,8 +104,10 @@ "gtag", "haha", "Herdbreaker", + "heros", "Hetz", "highp", + "hocs", "iife", "imgur", "immer", @@ -123,6 +126,7 @@ "loddist", "lods", "lossrate", + "lzma", "Maddoxkkm", "malum", "mantlets", @@ -137,6 +141,7 @@ "modeltransform", "MURICA", "nanostores", + "napi", "NEGATIVEX", "NEGATIVEY", "NEGATIVEZ", @@ -157,6 +162,7 @@ "ownedtanks", "padder", "partytown", + "passability", "patchnotes", "PIXELFORMAT", "playerachievements", @@ -225,7 +231,9 @@ "UNLOCALIZED", "UNORM", "unpickled", + "unranked", "Unregistering", + "unreviewed", "unrotate", "unwrapper", "userns", @@ -235,7 +243,6 @@ "Vovko", "wargaming", "webp", - "wgpkg", "whitespaces", "WHSS", "winrate", @@ -254,5 +261,7 @@ "youtubers", "zoomable" ], - "typescript.tsdk": "node_modules\\typescript\\lib" + "cSpell.enabledFileTypes": { + "proto": true + } } diff --git a/CLAUDE.md b/CLAUDE.md index 6749988c7..daab51a09 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -1,9 +1,83 @@ # BlitzKit +Read `README.md` for setup and running: the dev server starts with `scripts/dev-website.sh`. + +## Tooling + +- Use Bun only: `bun`, `bun x`, `bun run`. Never `npm`, `npx`, `node`, `yarn` or `pnpm`. +- Format with `bun x prettier --write `. + +## Git + +- Never commit or push. +- Never stage (`git add`, `git mv`, ...) unless the maintainer asks for it. The one exception is deletions: deleted files may always be staged (`git rm`, `git add` on a removed path). +- Move files with plain `mv`, not `git mv`. + +## Migration + +The `data-driven` branch is migrating off the old system (Radix Themes, the `Duel` store, `PageWrapper`, ...) onto the new components and stores (`Tankopedia`, `Soapstone` stores, `components/Button`, ...). Leftover references to the old system are expected bugs: when something is undefined or a module is missing, look for its replacement in neighboring migrated code rather than restoring the old one. + +Pages that are not migrated yet are named `_index.astro` so Astro skips them. Migrating one renames it to `index.astro`. + ## Layout +- Components live flat at `src/components/Name/index.tsx` with `index.module.css` beside it. No flat `Name.tsx` files and no nested `components/Parent/components/Child` folders: a sub-component becomes its own top-level folder prefixed with its feature, e.g. `MixerScene/components/Model.tsx` becomes `components/MixerModel/index.tsx`. +- Pages keep their styles in `_index.module.css` next to `_index.tsx`. - Hooks live in `src/hooks/useName.ts` (`.tsx` if they render JSX), one hook per file named after it, never inside a component's folder. ## TypeScript - When an `if`/`else if` chain checks one value against several candidates (`x === "a"`, `x === b`, ...), use a `switch` on that value instead. Inside a loop, end each case with `continue`, and put the checks a `switch` can't express (`startsWith`, ranges, ...) as an `if` after it, not in `default`. +- No return type annotations. Put `satisfies Type` on the returned expression instead. +- Wrap functions defined inside React components in `useCallback`. +- Never inline a complex type (a union of object shapes, etc.) in a signature; name it as an interface or type. +- A lookup table that is read by key and checked for missing keys is a `Map`, not an object literal. +- Use a string `enum` (`Page = "page"`) instead of a union of string literals (`"page" | "dialog"`) whenever the values can be enumerated. +- In object literals, `...spread` entries come first, each on its own line, followed by a blank line, then the custom entries. A single-line object with a spread becomes multi-line. +- When an object literal's values are long expressions, compute them first into `const`s named after their keys, then build the object with shorthand (`{ name, color, tanks: [] }`). Short values stay inline. +- Always hoist values that take work to compute (a function call, math, a lookup, like `"A".charCodeAt(0)` or `1 - SCROLL_ZONE`) and don't change between iterations or calls out of loops and repeatedly called functions into a `const` above them. No exceptions. Plain literals (strings, numbers, selectors like `"[data-row]"`) cost nothing and stay inline. +- A helper function used in only one place gets inlined there. Only extract a function once it has a second caller. +- Assert data that is known to be present with `!` instead of `?.` or `?? 0`; crashing beats silently showing a plausible wrong value. Keep `?.` only where absence is real logic: `optional` proto fields (check the `.proto`), optional script effect fields, and lookups that can legitimately miss. +- An `if` whose body ends up on its own line (including when the formatter wraps the condition) gets curly braces. Only a body on the same line as the `if` stays brace-less. +- Single-line comments use `//`, never `/** */`. Keep `/** */` for multi-line doc comments. + +## JSX + +- An icon and its text go on separate lines, never ` {label}` on one line. Spacing comes from the parent's flex `gap`, not a literal space: + + ```tsx + + {label} + ``` + +- In menu-like items (ContextMenu, DropdownMenu, Select and similar), the icon goes after the text. `ItemIndicator` stays in the left gutter. +- Don't add `aria-label` (or replacements like `aria-labelledby`) for now. + +## CSS + +- Constant CSS goes in the CSS module, never in `style={{ }}`. Only runtime values (measured sizes, user settings) go inline; split an element's constant and dynamic styles between the two. Presentational props like `width="1em"` on icons are CSS too. +- Toggle state and variants with data attributes (`data-split={bool}` with `.x[data-split="true"]`), never conditional modifier classes. +- CSS module classes are kebab-case, accessed as `styles["tank-image"]`. PascalCase is only for Radix part names in composed components. +- Containers own the padding and space their children with a flex `gap`. Children like `Header`, `Body` and `Actions` don't carry padding to fake spacing; fix the container instead. +- Select elements by their own class, never by structure or tag (`> *`, `> div`, `:first-child`, bare `svg`, `[data-x] > *`). If an element needs styling, give it a class and nest that class under its parent. The exception is content a component renders internally that has no `className` to pass, like the icon inside an `IconButton` (`.swatch svg`). +- Nest CSS to mirror the markup: a child's rules go inside its parent's block (`.marker { .bar { } }`), so the stylesheet reads like the HTML tree. +- Fully rounded corners use `var(--radius-max)`, never `var(--max-size)`. +- Zero takes no unit (`0`, not `0px`), except where it ends up inside `calc()`, which needs a length (`calc(100dvh - var(--x, 0px))`). +- Avoid `z-index: 2` or above unless nothing else works. Resolve overlaps first by DOM order (a later sibling at the same `z-index` paints on top, so put overlays and curtains before what must sit above them) or by leveling the field (give competing siblings the same `position: relative`/`z-index: 1`, or `isolation: isolate` a container so its children's layers stay inside it). + +## Components + +- Don't copy the same markup or styles across files. As soon as a block repeats, extract it into a component and use that everywhere it appeared. + +- Dialog-like surfaces (`Dialog`, `AlertDialog`, `Popover`) share their extra parts, which live as their own top-level components: `DialogHeader`, `DialogBody`, `DialogActions` and `DialogField` (a labeled control, taking a `label` prop). Each surface attaches them as `X.Header`, `X.Body`, `X.Actions` and `X.Field`; none defines its own copy. Fix their spacing in the part's own CSS module. +- Other extra non-Radix parts of a composed component are local functions in that component's `index.tsx`, `function Name({ className, ...props }: ComponentProps<"div">)` using `classNames(styles["kebab-class"], className)`, spread in with `{ ...composeRadixComponents(_, styles), Name }`. Once a part is shared by several components, it moves out into its own top-level component instead, like the `Dialog*` parts. A part shared across menus (`Discriminator` in DropdownMenu) is styled through a data attribute, since CSS modules re-hash classes per importing file. + +## Strings and naming + +- Only edit `packages/i18n/strings/en.json`. Other locales are managed by Crowdin; never touch them, even for key renames. +- Name strings and keys after what the game UI calls things (its English strings), not code or XML names. Tier 11 upgrade progression is "augments" everywhere in BlitzKit; "upgrade" stays only where it names a game file, folder or XML tag, and for the modules panel. +- Characteristic group keys follow the UI title (`nitro`, `combat_stabilization`), and item keys are prefixed with their group key (`steady_aim_system_duration`). Item labels stay short and drop what the group title already says. + +## Endpoints + +- The site is built statically, so Astro endpoint handlers return `new Response(body)` with no `headers`. The file extension decides the type. diff --git a/README.md b/README.md index 945b9448e..874a82cdf 100644 --- a/README.md +++ b/README.md @@ -20,14 +20,6 @@ BlitzKit uses [Protocol Buffer's protoc CLI](https://protobuf.dev/installation/) You will need a local installation of [World of Tanks Blitz](https://wotblitz.com/) for BlitzKit to build off. -### aria2 (Optional) - -If you plan to use BlitzKit's client-management CLI for BlitzKit Previews, you will need to [get aria2](https://aria2.github.io/) to speed up your downloads. - -### libarchive (Optional) - -If you plan to use BlitzKit's client-management CLI for BlitzKit OpenTests, you will need to [get libarchive](https://www.libarchive.org/) to keep your downloads completely in-memory. - ### Linux (Optional) All work on BlitzKit is done on Linux and macOS. It is theoretically possible to work on Windows; please feel free to try and share your discoveries with us! diff --git a/bun.lock b/bun.lock index 99c2e7494..1373ec706 100644 --- a/bun.lock +++ b/bun.lock @@ -7,6 +7,7 @@ "dependencies": { "@gltf-transform/extensions": "^4.4.2", "lz4js": "^0.2.0", + "prettier": "^3.10.2", "sharp": "^0.34.5", "typescript": "^5.9.3", }, @@ -26,6 +27,7 @@ "name": "@blitzkit/core", "dependencies": { "@blitzkit/i18n": "workspace:*", + "@blitzkit/protos": "workspace:*", "@bufbuild/protobuf": "^2.9.0", "@octokit/plugin-throttling": "^11.0.1", "@octokit/rest": "^22.0.0", @@ -51,11 +53,15 @@ "ts-deepmerge": "^7.0.3", }, }, + "packages/protos": { + "name": "@blitzkit/protos", + }, "packages/scripts": { "name": "@blitzkit/scripts", "dependencies": { "@blitzkit/core": "workspace:*", "@blitzkit/i18n": "workspace:*", + "@blitzkit/vfs": "workspace:*", "@gltf-transform/core": "^4.2.1", "@gltf-transform/extensions": "^4.2.1", "@gltf-transform/functions": "^4.2.1", @@ -66,10 +72,8 @@ "@types/lodash-es": "^4.17.12", "@types/lz4js": "^0.2.1", "@types/progress": "^2.0.7", - "@types/steam-user": "^5.1.0", "@types/three": "^0.180.0", "crc": "^4.3.2", - "csv-parse": "^6.1.0", "decompress": "^4.2.1", "dotenv": "^17.2.3", "esbuild": "^0.25.10", @@ -80,20 +84,24 @@ "progress": "^2.0.3", "puppeteer": "^24.22.3", "sharp": "^0.34.4", - "steam-user": "^5.2.3", "three": "^0.180.0", "ts-proto": "^2.7.7", - "unzipit": "^1.4.3", "yaml": "^2.8.1", }, }, - "packages/varuna": { - "name": "varuna", + "packages/vfs": { + "name": "@blitzkit/vfs", "dependencies": { - "@types/lodash-es": "^4.17.12", - "immer": "^10.1.3", - "lodash-es": "^4.17.21", - "react": "^19.1.1", + "@blitzkit/core": "workspace:*", + "@blitzkit/i18n": "workspace:*", + "@napi-rs/lzma": "^1.5.3", + "@types/bun": "^1.3.14", + "@types/steam-user": "^5.1.0", + "csv-parse": "^6.1.0", + "fast-xml-parser": "^5.3.2", + "steam-user": "^5.2.3", + "unzipit": "^1.4.3", + "yaml": "^2.8.1", }, }, "packages/website": { @@ -105,21 +113,22 @@ "@astrolib/seo": "^1.0.0-beta.8", "@blitzkit/core": "workspace:*", "@blitzkit/i18n": "workspace:*", + "@blitzkit/vfs": "workspace:*", + "@fontsource-variable/jetbrains-mono": "^5.3.0", + "@fontsource-variable/roboto-flex": "^5.3.0", "@fontsource/inter": "^5.2.8", "@gltf-transform/core": "^4.4.2", "@gltf-transform/functions": "^4.4.2", "@radix-ui/colors": "^3.0.0", "@radix-ui/react-icons": "^1.3.2", - "@radix-ui/themes": "^3.2.1", "@react-three/drei": "^10.7.6", "@react-three/fiber": "^9.4.0", "@types/lodash-es": "^4.17.12", - "@types/react": "^19.2.2", - "@types/react-dom": "^19.2.2", + "@types/react": "^19.3.0", + "@types/react-dom": "^19.3.0", "@types/three": "^0.180.0", "@vite-pwa/astro": "^1.1.0", "astro": "^5.14.4", - "astro-favicons": "^3.1.5", "cheerio": "^1.1.2", "compare-versions": "^6.1.1", "fuzzysort": "^3.1.0", @@ -129,15 +138,17 @@ "markdown-to-jsx": "^7.7.13", "pwa-install-handler": "^2.6.3", "quicklime": "^1.2.0", - "react": "^19.2.4", - "react-dom": "^19.2.4", + "radix-ui": "^1.6.7", + "react": "^19.3.0", + "react-dom": "^19.3.0", + "react-error-boundary": "^6.1.3", "react-promise-suspense": "^0.3.4", + "soapstone": "^1.2.0", "three": "^0.180.0", "three-stdlib": "^2.36.0", "transliteration": "^2.6.1", "typescript": "^5.9.3", "urlon": "^3.1.0", - "varuna": "workspace:*", "vite": "^7.1.9", }, }, @@ -395,8 +406,12 @@ "@blitzkit/i18n": ["@blitzkit/i18n@workspace:packages/i18n"], + "@blitzkit/protos": ["@blitzkit/protos@workspace:packages/protos"], + "@blitzkit/scripts": ["@blitzkit/scripts@workspace:packages/scripts"], + "@blitzkit/vfs": ["@blitzkit/vfs@workspace:packages/vfs"], + "@blitzkit/website": ["@blitzkit/website@workspace:packages/website"], "@bufbuild/protobuf": ["@bufbuild/protobuf@2.10.0", "", {}, "sha512-fdRs9PSrBF7QUntpZpq6BTw58fhgGJojgg39m9oFOJGZT+nip9b0so5cYY1oWl5pvemDLr0cPPsH46vwThEbpQ=="], @@ -425,8 +440,12 @@ "@emmetio/stream-reader-utils": ["@emmetio/stream-reader-utils@0.1.0", "", {}, "sha512-ZsZ2I9Vzso3Ho/pjZFsmmZ++FWeEd/txqybHTm4OgaZzdS8V9V/YYWQwg5TC38Z7uLWUV1vavpLLbjJtKubR1A=="], + "@emnapi/core": ["@emnapi/core@2.0.0-beta.3", "", { "dependencies": { "@emnapi/wasi-threads": "2.2.0", "tslib": "^2.4.0" } }, "sha512-KA+gOBtbifRATmUa/Gpf5C2B2EJ0r4brHUT3XSgACeHREcuiObXH56xd+B3fFsEFbUT04VBEe6MuZiCtMp0tQg=="], + "@emnapi/runtime": ["@emnapi/runtime@1.8.1", "", { "dependencies": { "tslib": "^2.4.0" } }, "sha512-mehfKSMWjjNol8659Z8KxEMrdSJDDot5SXMq00dM8BN4o+CLNXQ0xH2V7EchNHV4RmbZLmmPdEaXZc5H2FXmDg=="], + "@emnapi/wasi-threads": ["@emnapi/wasi-threads@2.2.0", "", { "dependencies": { "tslib": "^2.4.0" } }, "sha512-JP7OYH38Q7+pyTAe14raZHLQIK7BDKbdwji+Xi3pcd/6QkJYQH3SX4wu6EplGrGJWRepoNzedfm0G3B9Z4e9Rw=="], + "@esbuild/aix-ppc64": ["@esbuild/aix-ppc64@0.25.10", "", { "os": "aix", "cpu": "ppc64" }, "sha512-0NFWnA+7l41irNuaSVlLfgNT12caWJVLzp5eAVhZ0z1qpxbockccEt3s+149rE64VUI3Ml2zt8Nv5JVc4QXTsw=="], "@esbuild/android-arm": ["@esbuild/android-arm@0.25.10", "", { "os": "android", "cpu": "arm" }, "sha512-dQAxF1dW1C3zpeCDc5KqIYuZ1tgAdRXNoZP7vkBIRtKZPYe2xVr/d3SkirklCHudW1B45tGiUlz2pUWDfbDD4w=="], @@ -479,13 +498,17 @@ "@esbuild/win32-x64": ["@esbuild/win32-x64@0.25.10", "", { "os": "win32", "cpu": "x64" }, "sha512-9KpxSVFCu0iK1owoez6aC/s/EdUQLDN3adTxGCqxMVhrPDj6bt5dbrHDXUuq+Bs2vATFBBrQS5vdQ/Ed2P+nbw=="], - "@floating-ui/core": ["@floating-ui/core@1.7.3", "", { "dependencies": { "@floating-ui/utils": "^0.2.10" } }, "sha512-sGnvb5dmrJaKEZ+LDIpguvdX3bDlEllmv4/ClQ9awcmCZrlx5jQyyMWFM5kBI+EyNOCDDiKk8il0zeuX3Zlg/w=="], + "@floating-ui/core": ["@floating-ui/core@1.8.0", "", { "dependencies": { "@floating-ui/utils": "^0.2.12" } }, "sha512-0CIZ5itps/8x7BG8dEIhs53BvCUH2PCoogtakwRTut+Arm58sJooJ0AuZhLw2HJYIR5cMLNPBSS728sPho2khQ=="], - "@floating-ui/dom": ["@floating-ui/dom@1.7.4", "", { "dependencies": { "@floating-ui/core": "^1.7.3", "@floating-ui/utils": "^0.2.10" } }, "sha512-OOchDgh4F2CchOX94cRVqhvy7b3AFb+/rQXyswmzmGakRfkMgoWVjfnLWkRirfLEfuD4ysVW16eXzwt3jHIzKA=="], + "@floating-ui/dom": ["@floating-ui/dom@1.8.0", "", { "dependencies": { "@floating-ui/core": "^1.8.0", "@floating-ui/utils": "^0.2.12" } }, "sha512-yXSrzeHZBTZadLOlfyhCkJHNeLJnHRnRInwdZ40L7ZiaAtrBwoYlsDrX3v5zB1Utk7CLfzcOVnVVWoXEky7Ceg=="], - "@floating-ui/react-dom": ["@floating-ui/react-dom@2.1.6", "", { "dependencies": { "@floating-ui/dom": "^1.7.4" }, "peerDependencies": { "react": ">=16.8.0", "react-dom": ">=16.8.0" } }, "sha512-4JX6rEatQEvlmgU80wZyq9RT96HZJa88q8hp0pBd+LrczeDI4o6uA2M+uvxngVHo4Ihr8uibXxH6+70zhAFrVw=="], + "@floating-ui/react-dom": ["@floating-ui/react-dom@2.1.9", "", { "dependencies": { "@floating-ui/dom": "^1.8.0" }, "peerDependencies": { "react": ">=16.8.0", "react-dom": ">=16.8.0" } }, "sha512-JDjEFGCpImxDCA7JJKviA0M9+RtmJdj0m/NVU5IMgBK+AmZouAQQ7/+2GLH0GXXY0YMw9oXPB8hKdbPYg5QLYg=="], - "@floating-ui/utils": ["@floating-ui/utils@0.2.10", "", {}, "sha512-aGTxbpbg8/b5JfU1HXSrbH3wXZuLPJcNEcZQFMxLs3oSzgtVu6nFPkbbGGUvBcUjKV2YyB9Wxxabo+HEH9tcRQ=="], + "@floating-ui/utils": ["@floating-ui/utils@0.2.12", "", {}, "sha512-HpCo8tmWzLVad5s2d19EhAz5zqrrQ6s69qd6moPMQvkOuSwDT1YgRfWSVuc4ennqrgv3OHppiOGMQ7oC13yIww=="], + + "@fontsource-variable/jetbrains-mono": ["@fontsource-variable/jetbrains-mono@5.3.0", "", {}, "sha512-F32xpS2NsGYoQi2ADSkKTgpJj7ozajsGgDJ8woTnqjmIB+dxDIqImjl4pXZVEExu8UFZ2ndhmX18EBS/hdz3Lw=="], + + "@fontsource-variable/roboto-flex": ["@fontsource-variable/roboto-flex@5.3.0", "", {}, "sha512-bOxckUy0qXNRjhV6e4pcHGSvptix4ZRD1uaj5Za8h+p3qrb2GL4U4TQdpVmPSy0SmqwldfD+JJqEKdF68EyiAw=="], "@fontsource/inter": ["@fontsource/inter@5.2.8", "", {}, "sha512-P6r5WnJoKiNVV+zvW2xM13gNdFhAEpQ9dQJHt3naLvfg+LkF2ldgSLiF4T41lf1SQCM9QmkqPTn4TH568IRagg=="], @@ -617,6 +640,44 @@ "@monogrid/gainmap-js": ["@monogrid/gainmap-js@3.1.0", "", { "dependencies": { "promise-worker-transferable": "^1.0.4" }, "peerDependencies": { "three": ">= 0.159.0" } }, "sha512-Obb0/gEd/HReTlg8ttaYk+0m62gQJmCblMOjHSMHRrBP2zdfKMHLCRbh/6ex9fSUJMKdjjIEiohwkbGD3wj2Nw=="], + "@napi-rs/lzma": ["@napi-rs/lzma@1.5.3", "", { "optionalDependencies": { "@napi-rs/lzma-android-arm-eabi": "1.5.3", "@napi-rs/lzma-android-arm64": "1.5.3", "@napi-rs/lzma-darwin-arm64": "1.5.3", "@napi-rs/lzma-darwin-x64": "1.5.3", "@napi-rs/lzma-freebsd-x64": "1.5.3", "@napi-rs/lzma-linux-arm-gnueabihf": "1.5.3", "@napi-rs/lzma-linux-arm64-gnu": "1.5.3", "@napi-rs/lzma-linux-arm64-musl": "1.5.3", "@napi-rs/lzma-linux-ppc64-gnu": "1.5.3", "@napi-rs/lzma-linux-riscv64-gnu": "1.5.3", "@napi-rs/lzma-linux-s390x-gnu": "1.5.3", "@napi-rs/lzma-linux-x64-gnu": "1.5.3", "@napi-rs/lzma-linux-x64-musl": "1.5.3", "@napi-rs/lzma-wasm32-wasi": "1.5.3", "@napi-rs/lzma-win32-arm64-msvc": "1.5.3", "@napi-rs/lzma-win32-ia32-msvc": "1.5.3", "@napi-rs/lzma-win32-x64-msvc": "1.5.3" } }, "sha512-QSIzELPyd2A7mcaDiJEWjwzApoAOWq9PVl9xYq+CxzIwstufv48s8aBgOUr0sgbjGmb15aYU88YKNaFaCaOuhQ=="], + + "@napi-rs/lzma-android-arm-eabi": ["@napi-rs/lzma-android-arm-eabi@1.5.3", "", { "os": "android", "cpu": "arm" }, "sha512-Jo8Ej9sTXZO+vHVllHPYxcHVoW4dQe30eLx7wk3H786vv2zy/qIIi5KoO6WhK/VsSBhAb13xbIa/vc4maUgp8Q=="], + + "@napi-rs/lzma-android-arm64": ["@napi-rs/lzma-android-arm64@1.5.3", "", { "os": "android", "cpu": "arm64" }, "sha512-BUEMluJxOJ/9WkZH/IFyyi3viNQGEByodAHDbmJ/k7mVhabGIxjYBea3MmnyTZoIoqZs/ftAKH7jhVCIj+k6mw=="], + + "@napi-rs/lzma-darwin-arm64": ["@napi-rs/lzma-darwin-arm64@1.5.3", "", { "os": "darwin", "cpu": "arm64" }, "sha512-ea46AUzmoGqWnrDP8JNea14TCiVMmxWtaD/d5YjRgh1KbL3YfZ9O2BZzfF7DAF+yrVuAQqS52rHveysjnzYlJA=="], + + "@napi-rs/lzma-darwin-x64": ["@napi-rs/lzma-darwin-x64@1.5.3", "", { "os": "darwin", "cpu": "x64" }, "sha512-/vz8UpAe/9fV7JiTrT+lAV9Xk9bK4F28u8JRDNIYdGaT7lXP0r/e7YjDvBuJZ9bJtStW4nn/08q5Q7yfFmsF1Q=="], + + "@napi-rs/lzma-freebsd-x64": ["@napi-rs/lzma-freebsd-x64@1.5.3", "", { "os": "freebsd", "cpu": "x64" }, "sha512-gAxemzm8Zk1OaMXihd0L8zeAb/P+71NqhrYnrPVweW3cTXg7XACC+zXQsvENAvHhkroeHCfaMmFupRwfHi+u7A=="], + + "@napi-rs/lzma-linux-arm-gnueabihf": ["@napi-rs/lzma-linux-arm-gnueabihf@1.5.3", "", { "os": "linux", "cpu": "arm" }, "sha512-T7ZvCSEAKGoYSw7vIwdKgk1ZaYl8V1JLTgWSlGhnYBau23R9qZP79ONiF7FTosXnvR8G9RLe9peVuVGS5GI7ig=="], + + "@napi-rs/lzma-linux-arm64-gnu": ["@napi-rs/lzma-linux-arm64-gnu@1.5.3", "", { "os": "linux", "cpu": "arm64" }, "sha512-fEfgGb/y8jo2X57cTtMQ62XSD57rxDbpSbT38TSq0gSMKg6A/zq3oOxZLRfoCuZkL3cDtuZMi4fAuo6xIkP5eQ=="], + + "@napi-rs/lzma-linux-arm64-musl": ["@napi-rs/lzma-linux-arm64-musl@1.5.3", "", { "os": "linux", "cpu": "arm64" }, "sha512-Phe10HwfNrtM7U2XsVLhJGePWOgx0BVW2/EWUBq1hoPkmKuUTjbrFj8y4XSTGS5eHMWABUtehnkbX+MPnN5sKg=="], + + "@napi-rs/lzma-linux-ppc64-gnu": ["@napi-rs/lzma-linux-ppc64-gnu@1.5.3", "", { "os": "linux", "cpu": "ppc64" }, "sha512-rhuUE76jYbXZaR5oXAWqvfXzxoZKaCFM1nTH3yrdmz2Jtog5mnFcmyJ9WjDFmUgzQo062p1WfXWm3FA8SJOwaA=="], + + "@napi-rs/lzma-linux-riscv64-gnu": ["@napi-rs/lzma-linux-riscv64-gnu@1.5.3", "", { "os": "linux", "cpu": "none" }, "sha512-ogeKmHMV80J1uGYu5Lg4XVacyQxv9wapsEMEKH6beFtouIpo5wZMod5/zGLNHA+sg0/9HIAQbm/bVFJ5flkiQQ=="], + + "@napi-rs/lzma-linux-s390x-gnu": ["@napi-rs/lzma-linux-s390x-gnu@1.5.3", "", { "os": "linux", "cpu": "s390x" }, "sha512-FvFzkI1zzVUqpX21UQdLZ0efTPxDolaCH1bqIp6k7hMTtx0RNwHJgcrsbGXQisAJ8uLWKRKncwNVL8MzcBVxUg=="], + + "@napi-rs/lzma-linux-x64-gnu": ["@napi-rs/lzma-linux-x64-gnu@1.5.3", "", { "os": "linux", "cpu": "x64" }, "sha512-cqF0sRTngwVgnH0y7OV/5zWKWZomMYY71t3gzjtmJou4oPoWQHjxmO1Jo5E3GqUg2bPk+Fp3DcRw1xLAeKs1cg=="], + + "@napi-rs/lzma-linux-x64-musl": ["@napi-rs/lzma-linux-x64-musl@1.5.3", "", { "os": "linux", "cpu": "x64" }, "sha512-ZBMasmon/mQmwIKNCWDJagq/zq45vvDQzhSijJSBSIgyef8IRvoD9O4H2lq62Lrq3toHxhlMD2D85jwUVr4QQw=="], + + "@napi-rs/lzma-wasm32-wasi": ["@napi-rs/lzma-wasm32-wasi@1.5.3", "", { "dependencies": { "@emnapi/core": "2.0.0-beta.3", "@emnapi/runtime": "2.0.0-beta.3", "@napi-rs/wasm-runtime": "~1.2.7" }, "cpu": "none" }, "sha512-gJ2YpVByn8xNbSCbOwQhCN9Jc2ZQY0ERx/K3XFDldbyiFXCphbEnciptp3bwqcp+WUJvIvpZxcKP1+6tcUEj1g=="], + + "@napi-rs/lzma-win32-arm64-msvc": ["@napi-rs/lzma-win32-arm64-msvc@1.5.3", "", { "os": "win32", "cpu": "arm64" }, "sha512-oB9iJluslRc3bZ3upZ7ZD2tJfICX3tjTsqS8jUUWK+d7PpJei/oZ3YklBLNyczmLZ+JXHYZlBbotIeVCaoNGPw=="], + + "@napi-rs/lzma-win32-ia32-msvc": ["@napi-rs/lzma-win32-ia32-msvc@1.5.3", "", { "os": "win32", "cpu": "ia32" }, "sha512-b5HxoRno1C9kS9I9pH9E7uYO9oMEQZ2RuOzAs8+PafoHzcHA5KMzSibNfA//seedILG1w22IS7YfrW4s0+4FvA=="], + + "@napi-rs/lzma-win32-x64-msvc": ["@napi-rs/lzma-win32-x64-msvc@1.5.3", "", { "os": "win32", "cpu": "x64" }, "sha512-cPH8uIK0aaD9KZ0FTPBBPTIvncNHQ2Si3DNTP2rjPWyDRVV+syT2dWvlmkiklKgnRipXtx4eJ+tYQZhG30/+9w=="], + + "@napi-rs/wasm-runtime": ["@napi-rs/wasm-runtime@1.2.7", "", { "dependencies": { "@tybys/wasm-util": "^0.10.3" }, "peerDependencies": { "@emnapi/core": "^1.7.1 || 2.0.0-beta.2 || 2.0.0-beta.3", "@emnapi/runtime": "^1.7.1 || 2.0.0-beta.2 || 2.0.0-beta.3" } }, "sha512-zJccwplOAbgfZju95IUHazLnx9RAPtPN2YGJXI6UbrgeaR9QfPjGrQL6ERkSAtnVCA4Q+83ApGyaX5zdpCaKkQ=="], + "@nodelib/fs.scandir": ["@nodelib/fs.scandir@2.1.5", "", { "dependencies": { "@nodelib/fs.stat": "2.0.5", "run-parallel": "^1.1.9" } }, "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g=="], "@nodelib/fs.stat": ["@nodelib/fs.stat@2.0.5", "", {}, "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A=="], @@ -675,129 +736,127 @@ "@radix-ui/colors": ["@radix-ui/colors@3.0.0", "", {}, "sha512-FUOsGBkHrYJwCSEtWRCIfQbZG7q1e6DgxCIOe1SUQzDe/7rXXeA47s8yCn6fuTNQAj1Zq4oTFi9Yjp3wzElcxg=="], - "@radix-ui/number": ["@radix-ui/number@1.1.1", "", {}, "sha512-MkKCwxlXTgz6CFoJx3pCwn07GKp36+aZyu/u2Ln2VrA5DcdyCZkASEDBTd8x5whTQQL5CiYf4prXKLcgQdv29g=="], + "@radix-ui/number": ["@radix-ui/number@1.1.3", "", {}, "sha512-Road2bidD0uu/1BGDOWNdPI06g0lIRy6IF9GZcIrDK2KGItfor8IQwQa+yM2ERgHM1MmHxaxpTzk0/Jp42lNfA=="], - "@radix-ui/primitive": ["@radix-ui/primitive@1.1.3", "", {}, "sha512-JTF99U/6XIjCBo0wqkU5sK10glYe27MRRsfwoiq5zzOEZLHU3A3KCMa5X/azekYRCJ0HlwI0crAXS/5dEHTzDg=="], + "@radix-ui/primitive": ["@radix-ui/primitive@1.1.7", "", {}, "sha512-rqWnm76nYT8HoNNqEjpgJ7Pw/DrBj5iBTrmEPo6HTX5+VJyBNOqTdv4g89G63HuR5g0AaENoAcH7Is5fF2kZ8Q=="], - "@radix-ui/react-accessible-icon": ["@radix-ui/react-accessible-icon@1.1.7", "", { "dependencies": { "@radix-ui/react-visually-hidden": "1.2.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-XM+E4WXl0OqUJFovy6GjmxxFyx9opfCAIUku4dlKRd5YEPqt4kALOkQOp0Of6reHuUkJuiPBEc5k0o4z4lTC8A=="], + "@radix-ui/react-accessible-icon": ["@radix-ui/react-accessible-icon@1.1.15", "", { "dependencies": { "@radix-ui/react-visually-hidden": "1.2.11" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-WTQwcAvQf5sOcuUyi90lKPbhwcvQ+j55cjrSmeaN+L2vKU3DooOvlKw2MDeiJ5IkV5N905KW0/fGojKOBhD11A=="], - "@radix-ui/react-accordion": ["@radix-ui/react-accordion@1.2.12", "", { "dependencies": { "@radix-ui/primitive": "1.1.3", "@radix-ui/react-collapsible": "1.1.12", "@radix-ui/react-collection": "1.1.7", "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-context": "1.1.2", "@radix-ui/react-direction": "1.1.1", "@radix-ui/react-id": "1.1.1", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-use-controllable-state": "1.2.2" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-T4nygeh9YE9dLRPhAHSeOZi7HBXo+0kYIPJXayZfvWOWA0+n3dESrZbjfDPUABkUNym6Hd+f2IR113To8D2GPA=="], + "@radix-ui/react-accordion": ["@radix-ui/react-accordion@1.2.20", "", { "dependencies": { "@radix-ui/primitive": "1.1.7", "@radix-ui/react-collapsible": "1.1.20", "@radix-ui/react-collection": "1.1.15", "@radix-ui/react-compose-refs": "1.1.5", "@radix-ui/react-context": "1.2.2", "@radix-ui/react-direction": "1.1.4", "@radix-ui/react-id": "1.1.4", "@radix-ui/react-primitive": "2.1.10", "@radix-ui/react-use-controllable-state": "1.2.6" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-jDhG9FvAEnlhnjrsINbNXcUa4G+L1KqSkJSunkbKEzFRcAb52jvM0PjPxPRvhe1HNc5F5yc0yzzWeeqlH4yBIg=="], - "@radix-ui/react-alert-dialog": ["@radix-ui/react-alert-dialog@1.1.15", "", { "dependencies": { "@radix-ui/primitive": "1.1.3", "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-context": "1.1.2", "@radix-ui/react-dialog": "1.1.15", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-slot": "1.2.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-oTVLkEw5GpdRe29BqJ0LSDFWI3qu0vR1M0mUkOQWDIUnY/QIkLpgDMWuKxP94c2NAC2LGcgVhG1ImF3jkZ5wXw=="], + "@radix-ui/react-alert-dialog": ["@radix-ui/react-alert-dialog@1.1.23", "", { "dependencies": { "@radix-ui/primitive": "1.1.7", "@radix-ui/react-compose-refs": "1.1.5", "@radix-ui/react-context": "1.2.2", "@radix-ui/react-dialog": "1.1.23", "@radix-ui/react-primitive": "2.1.10" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-VAYOiQRqj3GPpYJE0I9J+X8Ip05cyVlNdKOFeiGS2Ou1HHGfpl0BxOyZm6nmVDyU+W+NF3/XLzmjHmVGydhwgA=="], - "@radix-ui/react-arrow": ["@radix-ui/react-arrow@1.1.7", "", { "dependencies": { "@radix-ui/react-primitive": "2.1.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-F+M1tLhO+mlQaOWspE8Wstg+z6PwxwRd8oQ8IXceWz92kfAmalTRf0EjrouQeo7QssEPfCn05B4Ihs1K9WQ/7w=="], + "@radix-ui/react-arrow": ["@radix-ui/react-arrow@1.1.15", "", { "dependencies": { "@radix-ui/react-primitive": "2.1.10" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-v4zggRcjadnI+ClKDuijlQEW4tw3NoaeHc/PwpKnLoLLKNUG4InLegkstooLcRIUWCs+8L22dGURCVuFfOKfnA=="], - "@radix-ui/react-aspect-ratio": ["@radix-ui/react-aspect-ratio@1.1.7", "", { "dependencies": { "@radix-ui/react-primitive": "2.1.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-Yq6lvO9HQyPwev1onK1daHCHqXVLzPhSVjmsNjCa2Zcxy2f7uJD2itDtxknv6FzAKCwD1qQkeVDmX/cev13n/g=="], + "@radix-ui/react-aspect-ratio": ["@radix-ui/react-aspect-ratio@1.1.15", "", { "dependencies": { "@radix-ui/react-primitive": "2.1.10" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-fy+dyVR+90nelK8rqIznFlxzx7uPcGbhxH8Nfr2bHb4UfSe+e3hklOC0luK0hDwVwnRX7xTRySpsrQVeW+/oNQ=="], - "@radix-ui/react-avatar": ["@radix-ui/react-avatar@1.1.10", "", { "dependencies": { "@radix-ui/react-context": "1.1.2", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-use-callback-ref": "1.1.1", "@radix-ui/react-use-is-hydrated": "0.1.0", "@radix-ui/react-use-layout-effect": "1.1.1" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-V8piFfWapM5OmNCXTzVQY+E1rDa53zY+MQ4Y7356v4fFz6vqCyUtIz2rUD44ZEdwg78/jKmMJHj07+C/Z/rcog=="], + "@radix-ui/react-avatar": ["@radix-ui/react-avatar@1.2.6", "", { "dependencies": { "@radix-ui/primitive": "1.1.7", "@radix-ui/react-context": "1.2.2", "@radix-ui/react-primitive": "2.1.10", "@radix-ui/react-use-callback-ref": "1.1.4", "@radix-ui/react-use-is-hydrated": "0.1.3", "@radix-ui/react-use-layout-effect": "1.1.4" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-4ULOTJ/mqy2hT9GlWa/MFHxHSvH3nJzHnZM1waNsc5Bonv7i70aNenghXmD97S6OJ81ekXONGGt4nT1r0PfEdA=="], - "@radix-ui/react-checkbox": ["@radix-ui/react-checkbox@1.3.3", "", { "dependencies": { "@radix-ui/primitive": "1.1.3", "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-context": "1.1.2", "@radix-ui/react-presence": "1.1.5", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-use-controllable-state": "1.2.2", "@radix-ui/react-use-previous": "1.1.1", "@radix-ui/react-use-size": "1.1.1" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-wBbpv+NQftHDdG86Qc0pIyXk5IR3tM8Vd0nWLKDcX8nNn4nXFOFwsKuqw2okA/1D/mpaAkmuyndrPJTYDNZtFw=="], + "@radix-ui/react-checkbox": ["@radix-ui/react-checkbox@1.3.11", "", { "dependencies": { "@radix-ui/primitive": "1.1.7", "@radix-ui/react-compose-refs": "1.1.5", "@radix-ui/react-context": "1.2.2", "@radix-ui/react-presence": "1.1.10", "@radix-ui/react-primitive": "2.1.10", "@radix-ui/react-use-controllable-state": "1.2.6", "@radix-ui/react-use-size": "1.1.4" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-Gnptr9pDDQxD3hgq2dtPbtrp/c2qH1mBwIzw3X/ivrMb2e1t0jMTi606fVEqFPaQR1ggXIVQWKj3P2WW9v7zGQ=="], - "@radix-ui/react-collapsible": ["@radix-ui/react-collapsible@1.1.12", "", { "dependencies": { "@radix-ui/primitive": "1.1.3", "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-context": "1.1.2", "@radix-ui/react-id": "1.1.1", "@radix-ui/react-presence": "1.1.5", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-use-controllable-state": "1.2.2", "@radix-ui/react-use-layout-effect": "1.1.1" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-Uu+mSh4agx2ib1uIGPP4/CKNULyajb3p92LsVXmH2EHVMTfZWpll88XJ0j4W0z3f8NK1eYl1+Mf/szHPmcHzyA=="], + "@radix-ui/react-collapsible": ["@radix-ui/react-collapsible@1.1.20", "", { "dependencies": { "@radix-ui/primitive": "1.1.7", "@radix-ui/react-compose-refs": "1.1.5", "@radix-ui/react-context": "1.2.2", "@radix-ui/react-id": "1.1.4", "@radix-ui/react-presence": "1.1.10", "@radix-ui/react-primitive": "2.1.10", "@radix-ui/react-use-controllable-state": "1.2.6", "@radix-ui/react-use-layout-effect": "1.1.4" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-mcGesGplBnzN2sbvJETzpCNfSMyPnb29q1GRLU+Ib7bJrpIG2ywmRoh2V5VbA2uNvKikKUlVbAPks7JDjz4A8Q=="], - "@radix-ui/react-collection": ["@radix-ui/react-collection@1.1.7", "", { "dependencies": { "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-context": "1.1.2", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-slot": "1.2.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-Fh9rGN0MoI4ZFUNyfFVNU4y9LUz93u9/0K+yLgA2bwRojxM8JU1DyvvMBabnZPBgMWREAJvU2jjVzq+LrFUglw=="], + "@radix-ui/react-collection": ["@radix-ui/react-collection@1.1.15", "", { "dependencies": { "@radix-ui/react-compose-refs": "1.1.5", "@radix-ui/react-context": "1.2.2", "@radix-ui/react-primitive": "2.1.10", "@radix-ui/react-slot": "1.3.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-9W+B9NPF0NaaPh/1NJd3+KqsnlLqU9H7T2rvww+fp+T/evVXdNAyYcnfRQZFOjkR1ajQp3yORlqnI8soawLvNA=="], - "@radix-ui/react-compose-refs": ["@radix-ui/react-compose-refs@1.1.2", "", { "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-z4eqJvfiNnFMHIIvXP3CY57y2WJs5g2v3X0zm9mEJkrkNv4rDxu+sg9Jh8EkXyeqBkB7SOcboo9dMVqhyrACIg=="], + "@radix-ui/react-compose-refs": ["@radix-ui/react-compose-refs@1.1.5", "", { "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-+48PbAAbq3didjJxa+OaWY2ZwgAKsNiRGyeHKszblZMQ+kcpd9pAaT11cMkGEie0vsOi3QdeTE6d5Fe3Gn61kA=="], - "@radix-ui/react-context": ["@radix-ui/react-context@1.1.2", "", { "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-jCi/QKUM2r1Ju5a3J64TH2A5SpKAgh0LpknyqdQ4m6DCV0xJ2HG1xARRwNGPQfi1SLdLWZ1OJz6F4OMBBNiGJA=="], + "@radix-ui/react-context": ["@radix-ui/react-context@1.2.2", "", { "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-RHCUGwKHDr0hDGg4X7ma4JG4/+12qxw8rkh5QKdDldlCvtja6nUx1Ef/8HVrJze81lEsgLQlqjzjGNHantgnQA=="], - "@radix-ui/react-context-menu": ["@radix-ui/react-context-menu@2.2.16", "", { "dependencies": { "@radix-ui/primitive": "1.1.3", "@radix-ui/react-context": "1.1.2", "@radix-ui/react-menu": "2.1.16", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-use-callback-ref": "1.1.1", "@radix-ui/react-use-controllable-state": "1.2.2" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-O8morBEW+HsVG28gYDZPTrT9UUovQUlJue5YO836tiTJhuIWBm/zQHc7j388sHWtdH/xUZurK9olD2+pcqx5ww=="], + "@radix-ui/react-context-menu": ["@radix-ui/react-context-menu@2.3.7", "", { "dependencies": { "@radix-ui/primitive": "1.1.7", "@radix-ui/react-context": "1.2.2", "@radix-ui/react-menu": "2.1.24", "@radix-ui/react-primitive": "2.1.10", "@radix-ui/react-use-controllable-state": "1.2.6" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-CtXP35dxaB5T3zXSd+E3uHe/QpXcpYnZmxp6OaIbfthtfW4wyb77M23BG+bwIJDtsMwEP/YssdsmNyZu7jhWew=="], - "@radix-ui/react-dialog": ["@radix-ui/react-dialog@1.1.15", "", { "dependencies": { "@radix-ui/primitive": "1.1.3", "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-context": "1.1.2", "@radix-ui/react-dismissable-layer": "1.1.11", "@radix-ui/react-focus-guards": "1.1.3", "@radix-ui/react-focus-scope": "1.1.7", "@radix-ui/react-id": "1.1.1", "@radix-ui/react-portal": "1.1.9", "@radix-ui/react-presence": "1.1.5", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-slot": "1.2.3", "@radix-ui/react-use-controllable-state": "1.2.2", "aria-hidden": "^1.2.4", "react-remove-scroll": "^2.6.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-TCglVRtzlffRNxRMEyR36DGBLJpeusFcgMVD9PZEzAKnUs1lKCgX5u9BmC2Yg+LL9MgZDugFFs1Vl+Jp4t/PGw=="], + "@radix-ui/react-dialog": ["@radix-ui/react-dialog@1.1.23", "", { "dependencies": { "@radix-ui/primitive": "1.1.7", "@radix-ui/react-compose-refs": "1.1.5", "@radix-ui/react-context": "1.2.2", "@radix-ui/react-dismissable-layer": "1.1.19", "@radix-ui/react-focus-guards": "1.1.6", "@radix-ui/react-focus-scope": "1.1.16", "@radix-ui/react-id": "1.1.4", "@radix-ui/react-portal": "1.1.17", "@radix-ui/react-presence": "1.1.10", "@radix-ui/react-primitive": "2.1.10", "@radix-ui/react-slot": "1.3.3", "@radix-ui/react-use-controllable-state": "1.2.6", "@radix-ui/react-use-layout-effect": "1.1.4", "aria-hidden": "^1.2.4", "react-remove-scroll": "^2.7.2" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-Ksw4WeROkO4rC9k/onilX/Ao2Cr1ku1unMNH+XSCcP4jSXYu7HDsg9n4ojMjVb22XpYjAQ9qfrFlVbru1vXDUA=="], - "@radix-ui/react-direction": ["@radix-ui/react-direction@1.1.1", "", { "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-1UEWRX6jnOA2y4H5WczZ44gOOjTEmlqv1uNW4GAJEO5+bauCBhv8snY65Iw5/VOS/ghKN9gr2KjnLKxrsvoMVw=="], + "@radix-ui/react-direction": ["@radix-ui/react-direction@1.1.4", "", { "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-5pzg4FGQNpExhnhT2zlrP1wZFaYCd1K0nYWoFAdcYoYK868IEigqMX3B3f8yIoRlAhAeDWciLI6ZdCKHF9P4Vg=="], - "@radix-ui/react-dismissable-layer": ["@radix-ui/react-dismissable-layer@1.1.11", "", { "dependencies": { "@radix-ui/primitive": "1.1.3", "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-use-callback-ref": "1.1.1", "@radix-ui/react-use-escape-keydown": "1.1.1" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-Nqcp+t5cTB8BinFkZgXiMJniQH0PsUt2k51FUhbdfeKvc4ACcG2uQniY/8+h1Yv6Kza4Q7lD7PQV0z0oicE0Mg=="], + "@radix-ui/react-dismissable-layer": ["@radix-ui/react-dismissable-layer@1.1.19", "", { "dependencies": { "@radix-ui/primitive": "1.1.7", "@radix-ui/react-compose-refs": "1.1.5", "@radix-ui/react-primitive": "2.1.10", "@radix-ui/react-use-callback-ref": "1.1.4", "@radix-ui/react-use-effect-event": "0.0.5" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-8g4pfOL9HoKKLWGiypT+dphVqjFfmcXO5GBnhsG6zI+lxAx/8feQpr+1LSN8Re3hiZ+XkLNS4O9ztK11/LzQ6w=="], - "@radix-ui/react-dropdown-menu": ["@radix-ui/react-dropdown-menu@2.1.16", "", { "dependencies": { "@radix-ui/primitive": "1.1.3", "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-context": "1.1.2", "@radix-ui/react-id": "1.1.1", "@radix-ui/react-menu": "2.1.16", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-use-controllable-state": "1.2.2" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-1PLGQEynI/3OX/ftV54COn+3Sud/Mn8vALg2rWnBLnRaGtJDduNW/22XjlGgPdpcIbiQxjKtb7BkcjP00nqfJw=="], + "@radix-ui/react-dropdown-menu": ["@radix-ui/react-dropdown-menu@2.1.24", "", { "dependencies": { "@radix-ui/primitive": "1.1.7", "@radix-ui/react-compose-refs": "1.1.5", "@radix-ui/react-context": "1.2.2", "@radix-ui/react-id": "1.1.4", "@radix-ui/react-menu": "2.1.24", "@radix-ui/react-primitive": "2.1.10", "@radix-ui/react-use-controllable-state": "1.2.6" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-geq8l2rJkxvkXsT9RMgtUE3P8pITFpTsvYpbySi1IH4fZEABD/Gp85myayFgxk0ktljGMJnCbeFkyTusvSvv7g=="], - "@radix-ui/react-focus-guards": ["@radix-ui/react-focus-guards@1.1.3", "", { "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-0rFg/Rj2Q62NCm62jZw0QX7a3sz6QCQU0LpZdNrJX8byRGaGVTqbrW9jAoIAHyMQqsNpeZ81YgSizOt5WXq0Pw=="], + "@radix-ui/react-focus-guards": ["@radix-ui/react-focus-guards@1.1.6", "", { "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-RNOJjfZMTyBM6xYmV3IVGXkPjIhcBAuv48POevAXwrGJhkWZ9p1rFoIS1JFooPuT193AZmRsCPhpoVJxx6OPoQ=="], - "@radix-ui/react-focus-scope": ["@radix-ui/react-focus-scope@1.1.7", "", { "dependencies": { "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-use-callback-ref": "1.1.1" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-t2ODlkXBQyn7jkl6TNaw/MtVEVvIGelJDCG41Okq/KwUsJBwQ4XVZsHAVUkK4mBv3ewiAS3PGuUWuY2BoK4ZUw=="], + "@radix-ui/react-focus-scope": ["@radix-ui/react-focus-scope@1.1.16", "", { "dependencies": { "@radix-ui/react-compose-refs": "1.1.5", "@radix-ui/react-primitive": "2.1.10", "@radix-ui/react-use-callback-ref": "1.1.4" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-wmRZ2WWLvmt6KHy2rNPOdPUjwq5xOHY02+m+udwJTn0aNIox/rkskAvJTyTLGhPK6KgrUjlJUJpgmx/+wFiFIQ=="], - "@radix-ui/react-form": ["@radix-ui/react-form@0.1.8", "", { "dependencies": { "@radix-ui/primitive": "1.1.3", "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-context": "1.1.2", "@radix-ui/react-id": "1.1.1", "@radix-ui/react-label": "2.1.7", "@radix-ui/react-primitive": "2.1.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-QM70k4Zwjttifr5a4sZFts9fn8FzHYvQ5PiB19O2HsYibaHSVt9fH9rzB0XZo/YcM+b7t/p7lYCT/F5eOeF5yQ=="], + "@radix-ui/react-form": ["@radix-ui/react-form@0.1.16", "", { "dependencies": { "@radix-ui/primitive": "1.1.7", "@radix-ui/react-compose-refs": "1.1.5", "@radix-ui/react-context": "1.2.2", "@radix-ui/react-id": "1.1.4", "@radix-ui/react-label": "2.1.15", "@radix-ui/react-primitive": "2.1.10" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-Q4TLEn2A7TAypxwmd6R9EwrlXDvkfYSDMrq9/887AXAGh+G1rH+kYJKSTv+Si9Y0JPKTwKYv6PviAJosysNimA=="], - "@radix-ui/react-hover-card": ["@radix-ui/react-hover-card@1.1.15", "", { "dependencies": { "@radix-ui/primitive": "1.1.3", "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-context": "1.1.2", "@radix-ui/react-dismissable-layer": "1.1.11", "@radix-ui/react-popper": "1.2.8", "@radix-ui/react-portal": "1.1.9", "@radix-ui/react-presence": "1.1.5", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-use-controllable-state": "1.2.2" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-qgTkjNT1CfKMoP0rcasmlH2r1DAiYicWsDsufxl940sT2wHNEWWv6FMWIQXWhVdmC1d/HYfbhQx60KYyAtKxjg=="], + "@radix-ui/react-hover-card": ["@radix-ui/react-hover-card@1.1.23", "", { "dependencies": { "@radix-ui/primitive": "1.1.7", "@radix-ui/react-compose-refs": "1.1.5", "@radix-ui/react-context": "1.2.2", "@radix-ui/react-dismissable-layer": "1.1.19", "@radix-ui/react-popper": "1.3.7", "@radix-ui/react-portal": "1.1.17", "@radix-ui/react-presence": "1.1.10", "@radix-ui/react-primitive": "2.1.10", "@radix-ui/react-use-controllable-state": "1.2.6" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-H8qONfZd3ltrU3+jHCIgITbWo6e1iTKvP9DHdrvYbX48ooRM5FjEDTn16AMwdfuOGkWdZEhpl3PLL/Wk/AnHDQ=="], "@radix-ui/react-icons": ["@radix-ui/react-icons@1.3.2", "", { "peerDependencies": { "react": "^16.x || ^17.x || ^18.x || ^19.0.0 || ^19.0.0-rc" } }, "sha512-fyQIhGDhzfc9pK2kH6Pl9c4BDJGfMkPqkyIgYDthyNYoNg3wVhoJMMh19WS4Up/1KMPFVpNsT2q3WmXn2N1m6g=="], - "@radix-ui/react-id": ["@radix-ui/react-id@1.1.1", "", { "dependencies": { "@radix-ui/react-use-layout-effect": "1.1.1" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-kGkGegYIdQsOb4XjsfM97rXsiHaBwco+hFI66oO4s9LU+PLAC5oJ7khdOVFxkhsmlbpUqDAvXw11CluXP+jkHg=="], + "@radix-ui/react-id": ["@radix-ui/react-id@1.1.4", "", { "dependencies": { "@radix-ui/react-use-layout-effect": "1.1.4" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-TMQp2llA+RYn7JcjnrMnz7wN4pcVttPZnRZo52PLQsoLVKzNlVwUeHmfePgTgRluXFvlD3GD5g5MOVVTJCO0qA=="], - "@radix-ui/react-label": ["@radix-ui/react-label@2.1.7", "", { "dependencies": { "@radix-ui/react-primitive": "2.1.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-YT1GqPSL8kJn20djelMX7/cTRp/Y9w5IZHvfxQTVHrOqa2yMl7i/UfMqKRU5V7mEyKTrUVgJXhNQPVCG8PBLoQ=="], + "@radix-ui/react-label": ["@radix-ui/react-label@2.1.15", "", { "dependencies": { "@radix-ui/react-primitive": "2.1.10" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-o/rdYEwZTTo5tjknnPeyQFU45kUC4i/XyeDPP+HGyi6XqpOP6Zf5Ya5vh/Yfe9Id5JiuWnnAx2XqIeD3UYZt0g=="], - "@radix-ui/react-menu": ["@radix-ui/react-menu@2.1.16", "", { "dependencies": { "@radix-ui/primitive": "1.1.3", "@radix-ui/react-collection": "1.1.7", "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-context": "1.1.2", "@radix-ui/react-direction": "1.1.1", "@radix-ui/react-dismissable-layer": "1.1.11", "@radix-ui/react-focus-guards": "1.1.3", "@radix-ui/react-focus-scope": "1.1.7", "@radix-ui/react-id": "1.1.1", "@radix-ui/react-popper": "1.2.8", "@radix-ui/react-portal": "1.1.9", "@radix-ui/react-presence": "1.1.5", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-roving-focus": "1.1.11", "@radix-ui/react-slot": "1.2.3", "@radix-ui/react-use-callback-ref": "1.1.1", "aria-hidden": "^1.2.4", "react-remove-scroll": "^2.6.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-72F2T+PLlphrqLcAotYPp0uJMr5SjP5SL01wfEspJbru5Zs5vQaSHb4VB3ZMJPimgHHCHG7gMOeOB9H3Hdmtxg=="], + "@radix-ui/react-menu": ["@radix-ui/react-menu@2.1.24", "", { "dependencies": { "@radix-ui/primitive": "1.1.7", "@radix-ui/react-collection": "1.1.15", "@radix-ui/react-compose-refs": "1.1.5", "@radix-ui/react-context": "1.2.2", "@radix-ui/react-direction": "1.1.4", "@radix-ui/react-dismissable-layer": "1.1.19", "@radix-ui/react-focus-guards": "1.1.6", "@radix-ui/react-focus-scope": "1.1.16", "@radix-ui/react-id": "1.1.4", "@radix-ui/react-popper": "1.3.7", "@radix-ui/react-portal": "1.1.17", "@radix-ui/react-presence": "1.1.10", "@radix-ui/react-primitive": "2.1.10", "@radix-ui/react-roving-focus": "1.1.19", "@radix-ui/react-slot": "1.3.3", "@radix-ui/react-use-callback-ref": "1.1.4", "aria-hidden": "^1.2.4", "react-remove-scroll": "^2.7.2" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-uW7RVuU6Lp/ZtfeY4b3kL32zccgEWvPv1+cf17ubYzHa9cL8AHokmk36cG/XEiH/smbQvumnieXX9j/e9RqJWA=="], - "@radix-ui/react-menubar": ["@radix-ui/react-menubar@1.1.16", "", { "dependencies": { "@radix-ui/primitive": "1.1.3", "@radix-ui/react-collection": "1.1.7", "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-context": "1.1.2", "@radix-ui/react-direction": "1.1.1", "@radix-ui/react-id": "1.1.1", "@radix-ui/react-menu": "2.1.16", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-roving-focus": "1.1.11", "@radix-ui/react-use-controllable-state": "1.2.2" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-EB1FktTz5xRRi2Er974AUQZWg2yVBb1yjip38/lgwtCVRd3a+maUoGHN/xs9Yv8SY8QwbSEb+YrxGadVWbEutA=="], + "@radix-ui/react-menubar": ["@radix-ui/react-menubar@1.1.24", "", { "dependencies": { "@radix-ui/primitive": "1.1.7", "@radix-ui/react-collection": "1.1.15", "@radix-ui/react-compose-refs": "1.1.5", "@radix-ui/react-context": "1.2.2", "@radix-ui/react-direction": "1.1.4", "@radix-ui/react-id": "1.1.4", "@radix-ui/react-menu": "2.1.24", "@radix-ui/react-primitive": "2.1.10", "@radix-ui/react-roving-focus": "1.1.19", "@radix-ui/react-use-controllable-state": "1.2.6" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-eeVs0vf7cuqXaM0qLQCPcufImiJNVBXdJDLu7ZGYl2732UH23Qat/foNGrr6vYV3/DdTsBqASoggUFgH14OcZA=="], - "@radix-ui/react-navigation-menu": ["@radix-ui/react-navigation-menu@1.2.14", "", { "dependencies": { "@radix-ui/primitive": "1.1.3", "@radix-ui/react-collection": "1.1.7", "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-context": "1.1.2", "@radix-ui/react-direction": "1.1.1", "@radix-ui/react-dismissable-layer": "1.1.11", "@radix-ui/react-id": "1.1.1", "@radix-ui/react-presence": "1.1.5", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-use-callback-ref": "1.1.1", "@radix-ui/react-use-controllable-state": "1.2.2", "@radix-ui/react-use-layout-effect": "1.1.1", "@radix-ui/react-use-previous": "1.1.1", "@radix-ui/react-visually-hidden": "1.2.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-YB9mTFQvCOAQMHU+C/jVl96WmuWeltyUEpRJJky51huhds5W2FQr1J8D/16sQlf0ozxkPK8uF3niQMdUwZPv5w=="], + "@radix-ui/react-navigation-menu": ["@radix-ui/react-navigation-menu@1.2.22", "", { "dependencies": { "@radix-ui/primitive": "1.1.7", "@radix-ui/react-collection": "1.1.15", "@radix-ui/react-compose-refs": "1.1.5", "@radix-ui/react-context": "1.2.2", "@radix-ui/react-direction": "1.1.4", "@radix-ui/react-dismissable-layer": "1.1.19", "@radix-ui/react-id": "1.1.4", "@radix-ui/react-presence": "1.1.10", "@radix-ui/react-primitive": "2.1.10", "@radix-ui/react-use-callback-ref": "1.1.4", "@radix-ui/react-use-controllable-state": "1.2.6", "@radix-ui/react-use-layout-effect": "1.1.4", "@radix-ui/react-use-previous": "1.1.4", "@radix-ui/react-visually-hidden": "1.2.11" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-ou7iLEJ+yrhQndkkA4U21XIdS/CS45F4iXIkTZcb6/Ne9EMsOuDudVmCwmDnfFZZ+y1FZqXRNSIgBy+YMvZVZg=="], - "@radix-ui/react-one-time-password-field": ["@radix-ui/react-one-time-password-field@0.1.8", "", { "dependencies": { "@radix-ui/number": "1.1.1", "@radix-ui/primitive": "1.1.3", "@radix-ui/react-collection": "1.1.7", "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-context": "1.1.2", "@radix-ui/react-direction": "1.1.1", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-roving-focus": "1.1.11", "@radix-ui/react-use-controllable-state": "1.2.2", "@radix-ui/react-use-effect-event": "0.0.2", "@radix-ui/react-use-is-hydrated": "0.1.0", "@radix-ui/react-use-layout-effect": "1.1.1" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-ycS4rbwURavDPVjCb5iS3aG4lURFDILi6sKI/WITUMZ13gMmn/xGjpLoqBAalhJaDk8I3UbCM5GzKHrnzwHbvg=="], + "@radix-ui/react-one-time-password-field": ["@radix-ui/react-one-time-password-field@0.1.16", "", { "dependencies": { "@radix-ui/number": "1.1.3", "@radix-ui/primitive": "1.1.7", "@radix-ui/react-collection": "1.1.15", "@radix-ui/react-compose-refs": "1.1.5", "@radix-ui/react-context": "1.2.2", "@radix-ui/react-direction": "1.1.4", "@radix-ui/react-primitive": "2.1.10", "@radix-ui/react-roving-focus": "1.1.19", "@radix-ui/react-use-controllable-state": "1.2.6", "@radix-ui/react-use-effect-event": "0.0.5", "@radix-ui/react-use-is-hydrated": "0.1.3", "@radix-ui/react-use-layout-effect": "1.1.4" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-Tj9P6ntAJEw52oq/F0AGknXR4XncxEt7XU47O3xJQOiWfLzEy3d9gtgKfvjSzGxzHkfL+VzvxGu2KTFsloJqXw=="], - "@radix-ui/react-password-toggle-field": ["@radix-ui/react-password-toggle-field@0.1.3", "", { "dependencies": { "@radix-ui/primitive": "1.1.3", "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-context": "1.1.2", "@radix-ui/react-id": "1.1.1", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-use-controllable-state": "1.2.2", "@radix-ui/react-use-effect-event": "0.0.2", "@radix-ui/react-use-is-hydrated": "0.1.0" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-/UuCrDBWravcaMix4TdT+qlNdVwOM1Nck9kWx/vafXsdfj1ChfhOdfi3cy9SGBpWgTXwYCuboT/oYpJy3clqfw=="], + "@radix-ui/react-password-toggle-field": ["@radix-ui/react-password-toggle-field@0.1.11", "", { "dependencies": { "@radix-ui/primitive": "1.1.7", "@radix-ui/react-compose-refs": "1.1.5", "@radix-ui/react-context": "1.2.2", "@radix-ui/react-id": "1.1.4", "@radix-ui/react-primitive": "2.1.10", "@radix-ui/react-use-controllable-state": "1.2.6", "@radix-ui/react-use-effect-event": "0.0.5", "@radix-ui/react-use-is-hydrated": "0.1.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-4gvFnmDXu3dgj21CqsufzIameRvlRd4SBqaWhcrlrNhRo0Y5i/49AmRJYe1fdAM3G2VNBbmin4b0D6cdQocwgw=="], - "@radix-ui/react-popover": ["@radix-ui/react-popover@1.1.15", "", { "dependencies": { "@radix-ui/primitive": "1.1.3", "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-context": "1.1.2", "@radix-ui/react-dismissable-layer": "1.1.11", "@radix-ui/react-focus-guards": "1.1.3", "@radix-ui/react-focus-scope": "1.1.7", "@radix-ui/react-id": "1.1.1", "@radix-ui/react-popper": "1.2.8", "@radix-ui/react-portal": "1.1.9", "@radix-ui/react-presence": "1.1.5", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-slot": "1.2.3", "@radix-ui/react-use-controllable-state": "1.2.2", "aria-hidden": "^1.2.4", "react-remove-scroll": "^2.6.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-kr0X2+6Yy/vJzLYJUPCZEc8SfQcf+1COFoAqauJm74umQhta9M7lNJHP7QQS3vkvcGLQUbWpMzwrXYwrYztHKA=="], + "@radix-ui/react-popover": ["@radix-ui/react-popover@1.1.23", "", { "dependencies": { "@radix-ui/primitive": "1.1.7", "@radix-ui/react-compose-refs": "1.1.5", "@radix-ui/react-context": "1.2.2", "@radix-ui/react-dismissable-layer": "1.1.19", "@radix-ui/react-focus-guards": "1.1.6", "@radix-ui/react-focus-scope": "1.1.16", "@radix-ui/react-id": "1.1.4", "@radix-ui/react-popper": "1.3.7", "@radix-ui/react-portal": "1.1.17", "@radix-ui/react-presence": "1.1.10", "@radix-ui/react-primitive": "2.1.10", "@radix-ui/react-slot": "1.3.3", "@radix-ui/react-use-controllable-state": "1.2.6", "aria-hidden": "^1.2.4", "react-remove-scroll": "^2.7.2" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-mw58MrBlyHWFisTOYignD0vf/3gdcgAR+9of1s9G/38CbFiUwH1nCDkc0AUM9IrXFgN5Ue8n45j9WCgyM1sbiQ=="], - "@radix-ui/react-popper": ["@radix-ui/react-popper@1.2.8", "", { "dependencies": { "@floating-ui/react-dom": "^2.0.0", "@radix-ui/react-arrow": "1.1.7", "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-context": "1.1.2", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-use-callback-ref": "1.1.1", "@radix-ui/react-use-layout-effect": "1.1.1", "@radix-ui/react-use-rect": "1.1.1", "@radix-ui/react-use-size": "1.1.1", "@radix-ui/rect": "1.1.1" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-0NJQ4LFFUuWkE7Oxf0htBKS6zLkkjBH+hM1uk7Ng705ReR8m/uelduy1DBo0PyBXPKVnBA6YBlU94MBGXrSBCw=="], + "@radix-ui/react-popper": ["@radix-ui/react-popper@1.3.7", "", { "dependencies": { "@floating-ui/react-dom": "^2.0.0", "@radix-ui/react-arrow": "1.1.15", "@radix-ui/react-compose-refs": "1.1.5", "@radix-ui/react-context": "1.2.2", "@radix-ui/react-primitive": "2.1.10", "@radix-ui/react-use-callback-ref": "1.1.4", "@radix-ui/react-use-layout-effect": "1.1.4", "@radix-ui/react-use-rect": "1.1.4", "@radix-ui/react-use-size": "1.1.4", "@radix-ui/rect": "1.1.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-UsJrrd7w4wuKKTdvd/DNERVlwSlUcyXzjhyDwBk+3aPOsCjOY6ZSbxuw8E6lZTjjfP8Cpd0J8VVkrYUWyGYXyg=="], - "@radix-ui/react-portal": ["@radix-ui/react-portal@1.1.9", "", { "dependencies": { "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-use-layout-effect": "1.1.1" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-bpIxvq03if6UNwXZ+HTK71JLh4APvnXntDc6XOX8UVq4XQOVl7lwok0AvIl+b8zgCw3fSaVTZMpAPPagXbKmHQ=="], + "@radix-ui/react-portal": ["@radix-ui/react-portal@1.1.17", "", { "dependencies": { "@radix-ui/react-primitive": "2.1.10", "@radix-ui/react-use-layout-effect": "1.1.4" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-vKQLcWypUnwZVvfV7UkGahH2g6ySe8M8R+zYBwPrv5byZ9QAW6cQVvNKo7GgmD+p8aYb6D9JBuvy8/WhOno2wQ=="], - "@radix-ui/react-presence": ["@radix-ui/react-presence@1.1.5", "", { "dependencies": { "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-use-layout-effect": "1.1.1" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-/jfEwNDdQVBCNvjkGit4h6pMOzq8bHkopq458dPt2lMjx+eBQUohZNG9A7DtO/O5ukSbxuaNGXMjHicgwy6rQQ=="], + "@radix-ui/react-presence": ["@radix-ui/react-presence@1.1.10", "", { "dependencies": { "@radix-ui/react-use-layout-effect": "1.1.4" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-3wyzCQ6+ubRA+D4uv9m95JYLXxmOHp05qjrkjeA7uKHHtjpPggQzc6DAb0URl7j67oR0K2foO4ip27TiX037Bw=="], - "@radix-ui/react-primitive": ["@radix-ui/react-primitive@2.1.3", "", { "dependencies": { "@radix-ui/react-slot": "1.2.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-m9gTwRkhy2lvCPe6QJp4d3G1TYEUHn/FzJUtq9MjH46an1wJU+GdoGC5VLof8RX8Ft/DlpshApkhswDLZzHIcQ=="], + "@radix-ui/react-primitive": ["@radix-ui/react-primitive@2.1.10", "", { "dependencies": { "@radix-ui/react-slot": "1.3.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-MucOnzh6hR5mid6VpkbglRAMYMjKLqRnGBbjXkzjK52fuQDd1qbkx78a5P40mkcnVXJdEVxm26E9OPAiUq7nBg=="], - "@radix-ui/react-progress": ["@radix-ui/react-progress@1.1.7", "", { "dependencies": { "@radix-ui/react-context": "1.1.2", "@radix-ui/react-primitive": "2.1.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-vPdg/tF6YC/ynuBIJlk1mm7Le0VgW6ub6J2UWnTQ7/D23KXcPI1qy+0vBkgKgd38RCMJavBXpB83HPNFMTb0Fg=="], + "@radix-ui/react-progress": ["@radix-ui/react-progress@1.1.16", "", { "dependencies": { "@radix-ui/react-context": "1.2.2", "@radix-ui/react-primitive": "2.1.10" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-5XnomAsoZZCY+KNTxbIghpGqPruZvKFNlvcAljVAOdDRDsH4/OZQxhtwo5wdtoDM5R6MhJBb2sPnDuRFep3lzg=="], - "@radix-ui/react-radio-group": ["@radix-ui/react-radio-group@1.3.8", "", { "dependencies": { "@radix-ui/primitive": "1.1.3", "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-context": "1.1.2", "@radix-ui/react-direction": "1.1.1", "@radix-ui/react-presence": "1.1.5", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-roving-focus": "1.1.11", "@radix-ui/react-use-controllable-state": "1.2.2", "@radix-ui/react-use-previous": "1.1.1", "@radix-ui/react-use-size": "1.1.1" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-VBKYIYImA5zsxACdisNQ3BjCBfmbGH3kQlnFVqlWU4tXwjy7cGX8ta80BcrO+WJXIn5iBylEH3K6ZTlee//lgQ=="], + "@radix-ui/react-radio-group": ["@radix-ui/react-radio-group@1.4.7", "", { "dependencies": { "@radix-ui/primitive": "1.1.7", "@radix-ui/react-compose-refs": "1.1.5", "@radix-ui/react-context": "1.2.2", "@radix-ui/react-direction": "1.1.4", "@radix-ui/react-presence": "1.1.10", "@radix-ui/react-primitive": "2.1.10", "@radix-ui/react-roving-focus": "1.1.19", "@radix-ui/react-use-controllable-state": "1.2.6", "@radix-ui/react-use-size": "1.1.4" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-cgYFEkntCxppHZgtSZ+7vh0wbZQ+IC7PPMw8DSnRG27B6kDd32/Zw0OJt7dGDigCoprMuWHjg2PvUn3PYvPFoQ=="], - "@radix-ui/react-roving-focus": ["@radix-ui/react-roving-focus@1.1.11", "", { "dependencies": { "@radix-ui/primitive": "1.1.3", "@radix-ui/react-collection": "1.1.7", "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-context": "1.1.2", "@radix-ui/react-direction": "1.1.1", "@radix-ui/react-id": "1.1.1", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-use-callback-ref": "1.1.1", "@radix-ui/react-use-controllable-state": "1.2.2" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-7A6S9jSgm/S+7MdtNDSb+IU859vQqJ/QAtcYQcfFC6W8RS4IxIZDldLR0xqCFZ6DCyrQLjLPsxtTNch5jVA4lA=="], + "@radix-ui/react-roving-focus": ["@radix-ui/react-roving-focus@1.1.19", "", { "dependencies": { "@radix-ui/primitive": "1.1.7", "@radix-ui/react-collection": "1.1.15", "@radix-ui/react-compose-refs": "1.1.5", "@radix-ui/react-context": "1.2.2", "@radix-ui/react-direction": "1.1.4", "@radix-ui/react-id": "1.1.4", "@radix-ui/react-primitive": "2.1.10", "@radix-ui/react-use-callback-ref": "1.1.4", "@radix-ui/react-use-controllable-state": "1.2.6", "@radix-ui/react-use-is-hydrated": "0.1.3", "@radix-ui/react-use-layout-effect": "1.1.4" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-V9jI6hDjT7l3jsCQD9bLNvDLM3tH/gdbOTp7Tefp3hbbgCGQoK7tUvrWiRlcoBHIZ809ElXwNQwVo0B98LuTXQ=="], - "@radix-ui/react-scroll-area": ["@radix-ui/react-scroll-area@1.2.10", "", { "dependencies": { "@radix-ui/number": "1.1.1", "@radix-ui/primitive": "1.1.3", "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-context": "1.1.2", "@radix-ui/react-direction": "1.1.1", "@radix-ui/react-presence": "1.1.5", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-use-callback-ref": "1.1.1", "@radix-ui/react-use-layout-effect": "1.1.1" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-tAXIa1g3sM5CGpVT0uIbUx/U3Gs5N8T52IICuCtObaos1S8fzsrPXG5WObkQN3S6NVl6wKgPhAIiBGbWnvc97A=="], + "@radix-ui/react-scroll-area": ["@radix-ui/react-scroll-area@1.2.18", "", { "dependencies": { "@radix-ui/number": "1.1.3", "@radix-ui/primitive": "1.1.7", "@radix-ui/react-compose-refs": "1.1.5", "@radix-ui/react-context": "1.2.2", "@radix-ui/react-direction": "1.1.4", "@radix-ui/react-presence": "1.1.10", "@radix-ui/react-primitive": "2.1.10", "@radix-ui/react-use-callback-ref": "1.1.4", "@radix-ui/react-use-layout-effect": "1.1.4" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-Zn5Cd171wxsO3Dfg8HaW6RifTb9CYTKQJHs/G4+LN1GfmJpaQMZQyQxMprVPHpaz7QY4l9BxK2JwQuzHsXC8nA=="], - "@radix-ui/react-select": ["@radix-ui/react-select@2.2.6", "", { "dependencies": { "@radix-ui/number": "1.1.1", "@radix-ui/primitive": "1.1.3", "@radix-ui/react-collection": "1.1.7", "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-context": "1.1.2", "@radix-ui/react-direction": "1.1.1", "@radix-ui/react-dismissable-layer": "1.1.11", "@radix-ui/react-focus-guards": "1.1.3", "@radix-ui/react-focus-scope": "1.1.7", "@radix-ui/react-id": "1.1.1", "@radix-ui/react-popper": "1.2.8", "@radix-ui/react-portal": "1.1.9", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-slot": "1.2.3", "@radix-ui/react-use-callback-ref": "1.1.1", "@radix-ui/react-use-controllable-state": "1.2.2", "@radix-ui/react-use-layout-effect": "1.1.1", "@radix-ui/react-use-previous": "1.1.1", "@radix-ui/react-visually-hidden": "1.2.3", "aria-hidden": "^1.2.4", "react-remove-scroll": "^2.6.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-I30RydO+bnn2PQztvo25tswPH+wFBjehVGtmagkU78yMdwTwVf12wnAOF+AeP8S2N8xD+5UPbGhkUfPyvT+mwQ=="], + "@radix-ui/react-select": ["@radix-ui/react-select@2.3.7", "", { "dependencies": { "@radix-ui/number": "1.1.3", "@radix-ui/primitive": "1.1.7", "@radix-ui/react-collection": "1.1.15", "@radix-ui/react-compose-refs": "1.1.5", "@radix-ui/react-context": "1.2.2", "@radix-ui/react-direction": "1.1.4", "@radix-ui/react-dismissable-layer": "1.1.19", "@radix-ui/react-focus-guards": "1.1.6", "@radix-ui/react-focus-scope": "1.1.16", "@radix-ui/react-id": "1.1.4", "@radix-ui/react-popper": "1.3.7", "@radix-ui/react-portal": "1.1.17", "@radix-ui/react-presence": "1.1.10", "@radix-ui/react-primitive": "2.1.10", "@radix-ui/react-slot": "1.3.3", "@radix-ui/react-use-callback-ref": "1.1.4", "@radix-ui/react-use-controllable-state": "1.2.6", "@radix-ui/react-use-layout-effect": "1.1.4", "@radix-ui/react-use-previous": "1.1.4", "@radix-ui/react-visually-hidden": "1.2.11", "aria-hidden": "^1.2.4", "react-remove-scroll": "^2.7.2" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-WFGImkmbzcfxeIwq/+4HvRN0pizBwbwQUED4I13ezQsDdfl38ZntN6TmR8XaSzPBqoCToe8rF75j6NPNDSzhbg=="], - "@radix-ui/react-separator": ["@radix-ui/react-separator@1.1.7", "", { "dependencies": { "@radix-ui/react-primitive": "2.1.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-0HEb8R9E8A+jZjvmFCy/J4xhbXy3TV+9XSnGJ3KvTtjlIUy/YQ/p6UYZvi7YbeoeXdyU9+Y3scizK6hkY37baA=="], + "@radix-ui/react-separator": ["@radix-ui/react-separator@1.1.15", "", { "dependencies": { "@radix-ui/react-primitive": "2.1.10" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-jOLO4lssEzWpoDu7G+Ze4VjwMRUBt291pnZD0gmalREZipnTX3wadQo7Fy48GCTfe14/YRN6rw/rOJqrE85Wxw=="], - "@radix-ui/react-slider": ["@radix-ui/react-slider@1.3.6", "", { "dependencies": { "@radix-ui/number": "1.1.1", "@radix-ui/primitive": "1.1.3", "@radix-ui/react-collection": "1.1.7", "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-context": "1.1.2", "@radix-ui/react-direction": "1.1.1", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-use-controllable-state": "1.2.2", "@radix-ui/react-use-layout-effect": "1.1.1", "@radix-ui/react-use-previous": "1.1.1", "@radix-ui/react-use-size": "1.1.1" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-JPYb1GuM1bxfjMRlNLE+BcmBC8onfCi60Blk7OBqi2MLTFdS+8401U4uFjnwkOr49BLmXxLC6JHkvAsx5OJvHw=="], + "@radix-ui/react-slider": ["@radix-ui/react-slider@1.4.7", "", { "dependencies": { "@radix-ui/number": "1.1.3", "@radix-ui/primitive": "1.1.7", "@radix-ui/react-collection": "1.1.15", "@radix-ui/react-compose-refs": "1.1.5", "@radix-ui/react-context": "1.2.2", "@radix-ui/react-direction": "1.1.4", "@radix-ui/react-primitive": "2.1.10", "@radix-ui/react-use-controllable-state": "1.2.6", "@radix-ui/react-use-layout-effect": "1.1.4", "@radix-ui/react-use-previous": "1.1.4", "@radix-ui/react-use-size": "1.1.4" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-mTSLf1GC/C0moWjTbvCM6Qn/gBjvlFt1azuWF2v7MN5C3Zq2U2J2lN3ZEYkpujuOU5Ro7A28wkviSxaKnG0BYg=="], - "@radix-ui/react-slot": ["@radix-ui/react-slot@1.2.3", "", { "dependencies": { "@radix-ui/react-compose-refs": "1.1.2" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A=="], + "@radix-ui/react-slot": ["@radix-ui/react-slot@1.3.3", "", { "dependencies": { "@radix-ui/react-compose-refs": "1.1.5" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-qx7oqnYbxnK9kYI9m317qmFmEgo6ywqWvbTogdj7cL9p3/yx4M48p7Rnw5z3H890cL/ow/EeWJsuTykeZVXP5Q=="], - "@radix-ui/react-switch": ["@radix-ui/react-switch@1.2.6", "", { "dependencies": { "@radix-ui/primitive": "1.1.3", "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-context": "1.1.2", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-use-controllable-state": "1.2.2", "@radix-ui/react-use-previous": "1.1.1", "@radix-ui/react-use-size": "1.1.1" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-bByzr1+ep1zk4VubeEVViV592vu2lHE2BZY5OnzehZqOOgogN80+mNtCqPkhn2gklJqOpxWgPoYTSnhBCqpOXQ=="], + "@radix-ui/react-switch": ["@radix-ui/react-switch@1.3.7", "", { "dependencies": { "@radix-ui/primitive": "1.1.7", "@radix-ui/react-compose-refs": "1.1.5", "@radix-ui/react-context": "1.2.2", "@radix-ui/react-primitive": "2.1.10", "@radix-ui/react-use-controllable-state": "1.2.6", "@radix-ui/react-use-size": "1.1.4" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-48tB/4dn2UVLBCYhTu9AuR63IHl73l/qLbLgxd86noTUor4/K4LFDAcYjK+isP5313qxaFpjPVogE7+Y0/V3Kw=="], - "@radix-ui/react-tabs": ["@radix-ui/react-tabs@1.1.13", "", { "dependencies": { "@radix-ui/primitive": "1.1.3", "@radix-ui/react-context": "1.1.2", "@radix-ui/react-direction": "1.1.1", "@radix-ui/react-id": "1.1.1", "@radix-ui/react-presence": "1.1.5", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-roving-focus": "1.1.11", "@radix-ui/react-use-controllable-state": "1.2.2" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-7xdcatg7/U+7+Udyoj2zodtI9H/IIopqo+YOIcZOq1nJwXWBZ9p8xiu5llXlekDbZkca79a/fozEYQXIA4sW6A=="], + "@radix-ui/react-tabs": ["@radix-ui/react-tabs@1.1.21", "", { "dependencies": { "@radix-ui/primitive": "1.1.7", "@radix-ui/react-context": "1.2.2", "@radix-ui/react-direction": "1.1.4", "@radix-ui/react-id": "1.1.4", "@radix-ui/react-presence": "1.1.10", "@radix-ui/react-primitive": "2.1.10", "@radix-ui/react-roving-focus": "1.1.19", "@radix-ui/react-use-controllable-state": "1.2.6" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-UKxJlZid7FVtsk/WTxj4i4uSEgj2Au+KBbS7SQyTlzMhhn+86Cz3tISZdTa87bfEfcuvZezf2ZsxD4xuEKtkog=="], - "@radix-ui/react-toast": ["@radix-ui/react-toast@1.2.15", "", { "dependencies": { "@radix-ui/primitive": "1.1.3", "@radix-ui/react-collection": "1.1.7", "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-context": "1.1.2", "@radix-ui/react-dismissable-layer": "1.1.11", "@radix-ui/react-portal": "1.1.9", "@radix-ui/react-presence": "1.1.5", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-use-callback-ref": "1.1.1", "@radix-ui/react-use-controllable-state": "1.2.2", "@radix-ui/react-use-layout-effect": "1.1.1", "@radix-ui/react-visually-hidden": "1.2.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-3OSz3TacUWy4WtOXV38DggwxoqJK4+eDkNMl5Z/MJZaoUPaP4/9lf81xXMe1I2ReTAptverZUpbPY4wWwWyL5g=="], + "@radix-ui/react-toast": ["@radix-ui/react-toast@1.2.23", "", { "dependencies": { "@radix-ui/primitive": "1.1.7", "@radix-ui/react-collection": "1.1.15", "@radix-ui/react-compose-refs": "1.1.5", "@radix-ui/react-context": "1.2.2", "@radix-ui/react-dismissable-layer": "1.1.19", "@radix-ui/react-portal": "1.1.17", "@radix-ui/react-presence": "1.1.10", "@radix-ui/react-primitive": "2.1.10", "@radix-ui/react-use-callback-ref": "1.1.4", "@radix-ui/react-use-controllable-state": "1.2.6", "@radix-ui/react-use-layout-effect": "1.1.4", "@radix-ui/react-visually-hidden": "1.2.11" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-ofhyAsYaocRGOs/n0XWdUOSVzEAG6BfrMVM8z0c0kLEWY38w/0WuMFPTJP/HVaZPYkMvHZoKIIhNcjbTCBILPg=="], - "@radix-ui/react-toggle": ["@radix-ui/react-toggle@1.1.10", "", { "dependencies": { "@radix-ui/primitive": "1.1.3", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-use-controllable-state": "1.2.2" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-lS1odchhFTeZv3xwHH31YPObmJn8gOg7Lq12inrr0+BH/l3Tsq32VfjqH1oh80ARM3mlkfMic15n0kg4sD1poQ=="], + "@radix-ui/react-toggle": ["@radix-ui/react-toggle@1.1.18", "", { "dependencies": { "@radix-ui/primitive": "1.1.7", "@radix-ui/react-primitive": "2.1.10", "@radix-ui/react-use-controllable-state": "1.2.6" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-7lonPlKfSacd20GlOBx2ltuVKz9oqWYZz+oMQyOltw6t1y2nyftj2ZmwwUHYn49kqfDWcp8dNZm5NgV+5Z+mug=="], - "@radix-ui/react-toggle-group": ["@radix-ui/react-toggle-group@1.1.11", "", { "dependencies": { "@radix-ui/primitive": "1.1.3", "@radix-ui/react-context": "1.1.2", "@radix-ui/react-direction": "1.1.1", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-roving-focus": "1.1.11", "@radix-ui/react-toggle": "1.1.10", "@radix-ui/react-use-controllable-state": "1.2.2" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-5umnS0T8JQzQT6HbPyO7Hh9dgd82NmS36DQr+X/YJ9ctFNCiiQd6IJAYYZ33LUwm8M+taCz5t2ui29fHZc4Y6Q=="], + "@radix-ui/react-toggle-group": ["@radix-ui/react-toggle-group@1.1.19", "", { "dependencies": { "@radix-ui/primitive": "1.1.7", "@radix-ui/react-context": "1.2.2", "@radix-ui/react-direction": "1.1.4", "@radix-ui/react-primitive": "2.1.10", "@radix-ui/react-roving-focus": "1.1.19", "@radix-ui/react-toggle": "1.1.18", "@radix-ui/react-use-controllable-state": "1.2.6" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-OtnwuSVjd1Ofi+AdnvhsjQdyuhCDwYs1w9RyB5BN/OavXOVQo42SYqQjwUnbPnaiPFBpQ9aX70dWeee+v2oBLA=="], - "@radix-ui/react-toolbar": ["@radix-ui/react-toolbar@1.1.11", "", { "dependencies": { "@radix-ui/primitive": "1.1.3", "@radix-ui/react-context": "1.1.2", "@radix-ui/react-direction": "1.1.1", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-roving-focus": "1.1.11", "@radix-ui/react-separator": "1.1.7", "@radix-ui/react-toggle-group": "1.1.11" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-4ol06/1bLoFu1nwUqzdD4Y5RZ9oDdKeiHIsntug54Hcr1pgaHiPqHFEaXI1IFP/EsOfROQZ8Mig9VTIRza6Tjg=="], + "@radix-ui/react-toolbar": ["@radix-ui/react-toolbar@1.1.19", "", { "dependencies": { "@radix-ui/primitive": "1.1.7", "@radix-ui/react-context": "1.2.2", "@radix-ui/react-direction": "1.1.4", "@radix-ui/react-primitive": "2.1.10", "@radix-ui/react-roving-focus": "1.1.19", "@radix-ui/react-separator": "1.1.15", "@radix-ui/react-toggle-group": "1.1.19" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-Ph0IvtYw4VB12ZnZg+YtrGs8yJQsnizwo/zu0R4Y/nWugtJzA7Pg1eWeuDR9+LSqn+xjamss+UOSOJJJ4gx8jw=="], - "@radix-ui/react-tooltip": ["@radix-ui/react-tooltip@1.2.8", "", { "dependencies": { "@radix-ui/primitive": "1.1.3", "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-context": "1.1.2", "@radix-ui/react-dismissable-layer": "1.1.11", "@radix-ui/react-id": "1.1.1", "@radix-ui/react-popper": "1.2.8", "@radix-ui/react-portal": "1.1.9", "@radix-ui/react-presence": "1.1.5", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-slot": "1.2.3", "@radix-ui/react-use-controllable-state": "1.2.2", "@radix-ui/react-visually-hidden": "1.2.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-tY7sVt1yL9ozIxvmbtN5qtmH2krXcBCfjEiCgKGLqunJHvgvZG2Pcl2oQ3kbcZARb1BGEHdkLzcYGO8ynVlieg=="], + "@radix-ui/react-tooltip": ["@radix-ui/react-tooltip@1.2.16", "", { "dependencies": { "@radix-ui/primitive": "1.1.7", "@radix-ui/react-compose-refs": "1.1.5", "@radix-ui/react-context": "1.2.2", "@radix-ui/react-dismissable-layer": "1.1.19", "@radix-ui/react-id": "1.1.4", "@radix-ui/react-popper": "1.3.7", "@radix-ui/react-portal": "1.1.17", "@radix-ui/react-presence": "1.1.10", "@radix-ui/react-primitive": "2.1.10", "@radix-ui/react-slot": "1.3.3", "@radix-ui/react-use-controllable-state": "1.2.6", "@radix-ui/react-use-layout-effect": "1.1.4", "@radix-ui/react-visually-hidden": "1.2.11" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-6EamKFRRnlpdadndbZ6LMwycfwkwPte1B42hs6QA0gYhjaOKqW4PZ4pjaW9UrlDX5eVt/OjncE7BFTPL5nmZhg=="], - "@radix-ui/react-use-callback-ref": ["@radix-ui/react-use-callback-ref@1.1.1", "", { "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-FkBMwD+qbGQeMu1cOHnuGB6x4yzPjho8ap5WtbEJ26umhgqVXbhekKUQO+hZEL1vU92a3wHwdp0HAcqAUF5iDg=="], + "@radix-ui/react-use-callback-ref": ["@radix-ui/react-use-callback-ref@1.1.4", "", { "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-R6OUY2e2fA6Yn6s+VSx5KBV6Nx8LQEhu+cz7LCej18rQ1HLyg9PSC9jP/ZNx0o6FAIK9c0F1kHylzSxKsdlkrQ=="], - "@radix-ui/react-use-controllable-state": ["@radix-ui/react-use-controllable-state@1.2.2", "", { "dependencies": { "@radix-ui/react-use-effect-event": "0.0.2", "@radix-ui/react-use-layout-effect": "1.1.1" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-BjasUjixPFdS+NKkypcyyN5Pmg83Olst0+c6vGov0diwTEo6mgdqVR6hxcEgFuh4QrAs7Rc+9KuGJ9TVCj0Zzg=="], + "@radix-ui/react-use-controllable-state": ["@radix-ui/react-use-controllable-state@1.2.6", "", { "dependencies": { "@radix-ui/primitive": "1.1.7", "@radix-ui/react-use-effect-event": "0.0.5", "@radix-ui/react-use-layout-effect": "1.1.4" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-uEQJGT97ZA/TgP/Hydw47lHu+/vQj6z/0jA+WeTbK1o9Rx45GImjpD0tc3W5ad3D6XTSR6e1yEO0FvGq6WQfVQ=="], - "@radix-ui/react-use-effect-event": ["@radix-ui/react-use-effect-event@0.0.2", "", { "dependencies": { "@radix-ui/react-use-layout-effect": "1.1.1" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-Qp8WbZOBe+blgpuUT+lw2xheLP8q0oatc9UpmiemEICxGvFLYmHm9QowVZGHtJlGbS6A6yJ3iViad/2cVjnOiA=="], + "@radix-ui/react-use-effect-event": ["@radix-ui/react-use-effect-event@0.0.5", "", { "dependencies": { "@radix-ui/react-use-layout-effect": "1.1.4" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-7cshFL8HGS/7HEiHH+9kL9HBwp2sa9yX18Knwek6KYWmXwM7pegMgta2AXMQKI+rq3JnfSj9x8wYqFMTdG1Jgg=="], - "@radix-ui/react-use-escape-keydown": ["@radix-ui/react-use-escape-keydown@1.1.1", "", { "dependencies": { "@radix-ui/react-use-callback-ref": "1.1.1" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-Il0+boE7w/XebUHyBjroE+DbByORGR9KKmITzbR7MyQ4akpORYP/ZmbhAr0DG7RmmBqoOnZdy2QlvajJ2QA59g=="], + "@radix-ui/react-use-escape-keydown": ["@radix-ui/react-use-escape-keydown@1.1.5", "", { "dependencies": { "@radix-ui/react-use-callback-ref": "1.1.4" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-ge3ipobwSXTj4JyVtswQ7qZj0ZHdtbGuOno/LrgAAeSxtsJ6Vs4Gz5IkPH2bmqpjcLUFoqGhA/mueuIf63UXlA=="], - "@radix-ui/react-use-is-hydrated": ["@radix-ui/react-use-is-hydrated@0.1.0", "", { "dependencies": { "use-sync-external-store": "^1.5.0" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-U+UORVEq+cTnRIaostJv9AGdV3G6Y+zbVd+12e18jQ5A3c0xL03IhnHuiU4UV69wolOQp5GfR58NW/EgdQhwOA=="], + "@radix-ui/react-use-is-hydrated": ["@radix-ui/react-use-is-hydrated@0.1.3", "", { "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-umO/aJ+82CpOnhDZUTbILCQf7kU/g0iv+oGs/Q8jw7IkhWBzaEP4sA268PhFAJTFetbwp3ICc6ktpI4TqtxcIw=="], - "@radix-ui/react-use-layout-effect": ["@radix-ui/react-use-layout-effect@1.1.1", "", { "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-RbJRS4UWQFkzHTTwVymMTUv8EqYhOp8dOOviLj2ugtTiXRaRQS7GLGxZTLL1jWhMeoSCf5zmcZkqTl9IiYfXcQ=="], + "@radix-ui/react-use-layout-effect": ["@radix-ui/react-use-layout-effect@1.1.4", "", { "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-K20DkRkUwDnxEYMBPcg3Y6voLkEy5p5QQmszZgLngKKiC7dzBR/aEuK3w1qlx2JWDUNH6FluahYdgR3BP+QbYw=="], - "@radix-ui/react-use-previous": ["@radix-ui/react-use-previous@1.1.1", "", { "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-2dHfToCj/pzca2Ck724OZ5L0EVrr3eHRNsG/b3xQJLA2hZpVCS99bLAX+hm1IHXDEnzU6by5z/5MIY794/a8NQ=="], + "@radix-ui/react-use-previous": ["@radix-ui/react-use-previous@1.1.4", "", { "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-XoSLhbRbqxFtgJoi2fNHA3C6pDlY34x508vUpUGoFZfvePfHXHbE1lC4FYFMnJWgiCRroSTw6fOsXQoVS9RwZg=="], - "@radix-ui/react-use-rect": ["@radix-ui/react-use-rect@1.1.1", "", { "dependencies": { "@radix-ui/rect": "1.1.1" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-QTYuDesS0VtuHNNvMh+CjlKJ4LJickCMUAqjlE3+j8w+RlRpwyX3apEQKGFzbZGdo7XNG1tXa+bQqIE7HIXT2w=="], + "@radix-ui/react-use-rect": ["@radix-ui/react-use-rect@1.1.4", "", { "dependencies": { "@radix-ui/rect": "1.1.3" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-cSOCh6JlkmfjLyNcLiu2nB4v+nm+dkZ+Q5KHWk/soo4U7ZLiEQFKHK9/YmtBHjfCEaU43IBKQOc4/uJmCaiCTQ=="], - "@radix-ui/react-use-size": ["@radix-ui/react-use-size@1.1.1", "", { "dependencies": { "@radix-ui/react-use-layout-effect": "1.1.1" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-ewrXRDTAqAXlkl6t/fkXWNAhFX9I+CkKlw6zjEwk86RSPKwZr3xpBRso655aqYafwtnbpHLj6toFzmd6xdVptQ=="], + "@radix-ui/react-use-size": ["@radix-ui/react-use-size@1.1.4", "", { "dependencies": { "@radix-ui/react-use-layout-effect": "1.1.4" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-D3anSY15EJoxrihpsXI6SMrmmonnQtR2ni7arO+Lfdg3O95b9hNXxONk8jA5C8ANdF/h5HMAxejgs8PWJ6rlhw=="], - "@radix-ui/react-visually-hidden": ["@radix-ui/react-visually-hidden@1.2.3", "", { "dependencies": { "@radix-ui/react-primitive": "2.1.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-pzJq12tEaaIhqjbzpCuv/OypJY/BPavOofm+dbab+MHLajy277+1lLm6JFcGgF5eskJ6mquGirhXY2GD/8u8Ug=="], + "@radix-ui/react-visually-hidden": ["@radix-ui/react-visually-hidden@1.2.11", "", { "dependencies": { "@radix-ui/react-primitive": "2.1.10" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-NFS86RYYZb4/exihaESBGOpMJFz8MGLAfu3mOBSGByVnVPC9JPASfYubxd/8KbkQK0sYAv8lVQDEQukDX/qXvQ=="], - "@radix-ui/rect": ["@radix-ui/rect@1.1.1", "", {}, "sha512-HPwpGIzkl28mWyZqG52jiqDJ12waP11Pa1lGoiyUkIEuMLBP0oeK/C89esbXrxsky5we7dfd8U58nm0SgAWpVw=="], - - "@radix-ui/themes": ["@radix-ui/themes@3.3.0", "", { "dependencies": { "@radix-ui/colors": "^3.0.0", "classnames": "^2.3.2", "radix-ui": "^1.1.3", "react-remove-scroll-bar": "^2.3.8" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-I0/h2CRNTpYNB7Mi3xFIvSsQq5a108d7kK8dTO5zp5b9HR5QJXKag6B8tjpz2ITkVYkFdkGk45doNkSr7OxwNw=="], + "@radix-ui/rect": ["@radix-ui/rect@1.1.3", "", {}, "sha512-JtyZR+mqgBibTo8xea3B6ZRmzZiM/YeVBtUkas6zMuXjAlfIFIW2FgqeM9eLyvEaYX66vr6DJMK+4U6LV0KhNw=="], "@react-three/drei": ["@react-three/drei@10.7.6", "", { "dependencies": { "@babel/runtime": "^7.26.0", "@mediapipe/tasks-vision": "0.10.17", "@monogrid/gainmap-js": "^3.0.6", "@use-gesture/react": "^10.3.1", "camera-controls": "^3.1.0", "cross-env": "^7.0.3", "detect-gpu": "^5.0.56", "glsl-noise": "^0.0.0", "hls.js": "^1.5.17", "maath": "^0.10.8", "meshline": "^3.3.1", "stats-gl": "^2.2.8", "stats.js": "^0.17.0", "suspend-react": "^0.1.3", "three-mesh-bvh": "^0.8.3", "three-stdlib": "^2.35.6", "troika-three-text": "^0.52.4", "tunnel-rat": "^0.1.2", "use-sync-external-store": "^1.4.0", "utility-types": "^3.11.0", "zustand": "^5.0.1" }, "peerDependencies": { "@react-three/fiber": "^9.0.0", "react": "^19", "react-dom": "^19", "three": ">=0.159" }, "optionalPeers": ["react-dom"] }, "sha512-ZSFwRlRaa4zjtB7yHO6Q9xQGuyDCzE7whXBhum92JslcMRC3aouivp0rAzszcVymIoJx6PXmibyP+xr+zKdwLg=="], @@ -883,6 +942,8 @@ "@tweenjs/tween.js": ["@tweenjs/tween.js@23.1.3", "", {}, "sha512-vJmvvwFxYuGnF2axRtPYocag6Clbb5YS7kLL+SO/TeVFzHqDIWrNKYtcsPMibjDx9O+bu+psAy9NKfWklassUA=="], + "@tybys/wasm-util": ["@tybys/wasm-util@0.10.5", "", { "dependencies": { "tslib": "^2.4.0" } }, "sha512-dOGOPxlaNV+G046mZzN+9C0dAcQZeSKcXiVaM0TYy/LM4ttTmgSBDxYfovcYI8Em3+eAbiAYpvWLOv8+ZVRJKA=="], + "@types/adm-zip": ["@types/adm-zip@0.5.7", "", { "dependencies": { "@types/node": "*" } }, "sha512-DNEs/QvmyRLurdQPChqq0Md4zGvPwHerAJYWk9l2jCbD1VPpnzRJorOdiq4zsw09NFbYnhfsoEhWtxIzXpn2yw=="], "@types/babel__core": ["@types/babel__core@7.20.5", "", { "dependencies": { "@babel/parser": "^7.20.7", "@babel/types": "^7.20.7", "@types/babel__generator": "*", "@types/babel__template": "*", "@types/babel__traverse": "*" } }, "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA=="], @@ -935,9 +996,9 @@ "@types/progress": ["@types/progress@2.0.7", "", { "dependencies": { "@types/node": "*" } }, "sha512-iadjw02vte8qWx7U0YM++EybBha2CQLPGu9iJ97whVgJUT5Zq9MjAPYUnbfRI2Kpehimf1QjFJYxD0t8nqzu5w=="], - "@types/react": ["@types/react@19.2.14", "", { "dependencies": { "csstype": "^3.2.2" } }, "sha512-ilcTH/UniCkMdtexkoCN0bI7pMcJDvmQFPvuPvmEaYA/NSfFTAgdUSLAoVjaRJm7+6PvcM+q1zYOwS4wTYMF9w=="], + "@types/react": ["@types/react@19.3.0", "", { "dependencies": { "csstype": "^3.2.2" } }, "sha512-N0rFCuH9YoxG9/m61l9MfpJKfmLOVU0em7ipIz6TRgSSkvReLB9vL85GB+yr8Bs5leqpvg96JSwF4ZS1s4viQg=="], - "@types/react-dom": ["@types/react-dom@19.2.2", "", { "peerDependencies": { "@types/react": "^19.2.0" } }, "sha512-9KQPoO6mZCi7jcIStSnlOWn2nEF3mNmyr3rIAsGnAbQKYbRLyqmeSc39EVgtxXVia+LMT8j3knZLAZAh+xLmrw=="], + "@types/react-dom": ["@types/react-dom@19.3.0", "", { "peerDependencies": { "@types/react": "^19.3.0" } }, "sha512-ZI7bU42mZXXKHn/qNLEw2IrbiINU7X5+vfgdixBHkCNpYWXjKgfQ/P+uyGb5CjOLB9UcnTeg3rylQtV2hym44Q=="], "@types/react-reconciler": ["@types/react-reconciler@0.32.1", "", { "peerDependencies": { "@types/react": "*" } }, "sha512-RsqPttsBQ+6af0nATFXJJpemYQH7kL9+xLNm1z+0MjQFDKBZDM2R6SBrjdvRmHu9i9fM6povACj57Ft+pKRNOA=="], @@ -1023,8 +1084,6 @@ "astro": ["astro@5.14.4", "", { "dependencies": { "@astrojs/compiler": "^2.12.2", "@astrojs/internal-helpers": "0.7.4", "@astrojs/markdown-remark": "6.3.8", "@astrojs/telemetry": "3.3.0", "@capsizecss/unpack": "^3.0.0", "@oslojs/encoding": "^1.1.0", "@rollup/pluginutils": "^5.2.0", "acorn": "^8.15.0", "aria-query": "^5.3.2", "axobject-query": "^4.1.0", "boxen": "8.0.1", "ci-info": "^4.3.0", "clsx": "^2.1.1", "common-ancestor-path": "^1.0.1", "cookie": "^1.0.2", "cssesc": "^3.0.0", "debug": "^4.4.1", "deterministic-object-hash": "^2.0.2", "devalue": "^5.3.2", "diff": "^5.2.0", "dlv": "^1.1.3", "dset": "^3.1.4", "es-module-lexer": "^1.7.0", "esbuild": "^0.25.0", "estree-walker": "^3.0.3", "flattie": "^1.1.1", "fontace": "~0.3.0", "github-slugger": "^2.0.0", "html-escaper": "3.0.3", "http-cache-semantics": "^4.2.0", "import-meta-resolve": "^4.2.0", "js-yaml": "^4.1.0", "kleur": "^4.1.5", "magic-string": "^0.30.18", "magicast": "^0.3.5", "mrmime": "^2.0.1", "neotraverse": "^0.6.18", "p-limit": "^6.2.0", "p-queue": "^8.1.0", "package-manager-detector": "^1.3.0", "picomatch": "^4.0.3", "prompts": "^2.4.2", "rehype": "^13.0.2", "semver": "^7.7.2", "shiki": "^3.12.0", "smol-toml": "^1.4.2", "tinyexec": "^1.0.1", "tinyglobby": "^0.2.14", "tsconfck": "^3.1.6", "ultrahtml": "^1.6.0", "unifont": "~0.6.0", "unist-util-visit": "^5.0.0", "unstorage": "^1.17.0", "vfile": "^6.0.3", "vite": "^6.3.6", "vitefu": "^1.1.1", "xxhash-wasm": "^1.1.0", "yargs-parser": "^21.1.1", "yocto-spinner": "^0.2.3", "zod": "^3.25.76", "zod-to-json-schema": "^3.24.6", "zod-to-ts": "^1.2.0" }, "optionalDependencies": { "sharp": "^0.34.0" }, "bin": { "astro": "astro.js" } }, "sha512-yqgMAO2Whi9GmZkByyiPcG7CiiPr0Me0iBSorMa6M0g+wQk/ewnIqUyr7T/uFCPTQndoKwucnYFTrf0yfb0urw=="], - "astro-favicons": ["astro-favicons@3.1.5", "", { "dependencies": { "favilib": "^1.0.5", "ultrahtml": "^1.5.3" }, "peerDependencies": { "astro": ">= 4.0.0" } }, "sha512-XFEW0Yk0sSfFu7WAT5wJ61atbT16YpO3y5n/ooxtys1/Uuv0v2XmMFw8OUrxnykmstUKoa+XjqUw22ph9cFn7A=="], - "async": ["async@3.2.6", "", {}, "sha512-htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA=="], "async-function": ["async-function@1.0.0", "", {}, "sha512-hsU18Ae8CDTR6Kgu9DYf0EbCr/a5iGL0rytQDobUcdpYOKokk8LEjVphnXkDkgpi0wYVsqrXuP0bZxJaTqdgoA=="], @@ -1149,8 +1208,6 @@ "ci-info": ["ci-info@4.3.0", "", {}, "sha512-l+2bNRMiQgcfILUi33labAZYIWlH1kWDp+ecNo5iisRKrbm0xcRyCww71/YU0Fkw0mAFpz9bJayXPjey6vkmaQ=="], - "classnames": ["classnames@2.5.1", "", {}, "sha512-saHYOzhIQs6wy2sVxTM6bUDsQO4F50V9RQ22qBpEdCW+I+/Wmke2HOl6lS6dTpdxVhb88/I6+Hs+438c3lfUow=="], - "cli-boxes": ["cli-boxes@3.0.0", "", {}, "sha512-/lzGpEWL/8PfI0BmBOPRwp0c/wFNX1RdUML3jK/RcSBA9T8mZDdQpqYBKtCFTOfQbwPqWEOpjqW+Fnayc0969g=="], "cliui": ["cliui@8.0.1", "", { "dependencies": { "string-width": "^4.2.0", "strip-ansi": "^6.0.1", "wrap-ansi": "^7.0.0" } }, "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ=="], @@ -1159,14 +1216,10 @@ "clsx": ["clsx@2.1.1", "", {}, "sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA=="], - "color": ["color@4.2.3", "", { "dependencies": { "color-convert": "^2.0.1", "color-string": "^1.9.0" } }, "sha512-1rXeuUUiGGrykh+CeBdu5Ie7OJwinCgQY0bc7GCRxy5xVHy+moaqkpL/jqQq0MtQOeYcrqEz4abc5f0KtU7W4A=="], - "color-convert": ["color-convert@2.0.1", "", { "dependencies": { "color-name": "~1.1.4" } }, "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ=="], "color-name": ["color-name@1.1.4", "", {}, "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="], - "color-string": ["color-string@1.9.1", "", { "dependencies": { "color-name": "^1.0.0", "simple-swizzle": "^0.2.2" } }, "sha512-shrVawQFojnZv6xM40anx4CkoDP+fZsw/ZerEMsW/pyzsRbElpsL/DBVW7q3ExxwusdNXI3lXpuhEZkzs8p5Eg=="], - "comma-separated-tokens": ["comma-separated-tokens@2.0.3", "", {}, "sha512-Fu4hJdvzeylCfQPp9SGWidpzrMs7tTrlu6Vb8XGaRGck8QSNZJJp538Wrb60Lax4fPwR64ViY468OIUTbRlGZg=="], "commander": ["commander@2.20.3", "", {}, "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ=="], @@ -1381,8 +1434,6 @@ "fastq": ["fastq@1.19.1", "", { "dependencies": { "reusify": "^1.0.4" } }, "sha512-GwLTyxkCXjXbxqIhTsMI2Nui8huMPtnxg7krajPJAjnEG/iiOS7i+zCtWGZR9G0NBKbXKh6X9m9UIsYX/N6vvQ=="], - "favilib": ["favilib@1.0.5", "", { "dependencies": { "escape-html": "^1.0.3", "sharp": "^0.33.5", "xml2js": "^0.6.2" } }, "sha512-3Fk5LQRU96QUmHWmyZc3WIMyz1tmte6TPlCVjaairXeHGtPHM4pnLvg11CyXTq6od1v5aaopHoREHNSwN4BKDA=="], - "fd-slicer": ["fd-slicer@1.1.0", "", { "dependencies": { "pend": "~1.2.0" } }, "sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g=="], "fdir": ["fdir@6.5.0", "", { "peerDependencies": { "picomatch": "^3 || ^4" }, "optionalPeers": ["picomatch"] }, "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg=="], @@ -1683,7 +1734,7 @@ "lodash": ["lodash@4.17.21", "", {}, "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg=="], - "lodash-es": ["lodash-es@4.17.23", "", {}, "sha512-kVI48u3PZr38HdYz98UmfPnXl2DXrpdctLrFLCd3kOx1xUkOmpFPx7gCWWM5MPkL/fD8zb+Ph0QzjGFs4+hHWg=="], + "lodash-es": ["lodash-es@4.18.1", "", {}, "sha512-J8xewKD/Gk22OZbhpOVSwcs60zhd95ESDwezOFuA3/099925PdHJ7OFHNTGtajL3AlZkykD32HykiMo+BIBI8A=="], "lodash.debounce": ["lodash.debounce@4.0.8", "", {}, "sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow=="], @@ -1947,7 +1998,7 @@ "potpack": ["potpack@1.0.2", "", {}, "sha512-choctRBIV9EMT9WGAZHn3V7t0Z2pMQyl0EZE6pFc/6ml3ssw7Dlf/oAOvFwjm1HVsqfQN8GfeFyJ+d8tRzqueQ=="], - "prettier": ["prettier@2.8.7", "", { "bin": { "prettier": "bin-prettier.js" } }, "sha512-yPngTo3aXUUmyuTjeTUT75txrf+aMh9FiD7q9ZE/i6r0bPb22g4FsE6Y338PQX1bmfy08i9QQCB7/rcUAVntfw=="], + "prettier": ["prettier@3.10.2", "", { "bin": { "prettier": "bin/prettier.cjs" } }, "sha512-VQGIFOC0JNYLvfT57+Tre9wvgpc1Njx0JcnTDwRD6IFQGPTfPMghvi2A7gSwa/I0emKTK4KpBIN4mWYHyCDNDQ=="], "pretty-bytes": ["pretty-bytes@6.1.1", "", {}, "sha512-mQUvGU6aUFQ+rNvTIAcZuWGRT9a6f6Yrg9bHs4ImKF+HZCEK+plBvnAZYSIQztknZF2qnzNtr6F8s0+IuptdlQ=="], @@ -1991,7 +2042,7 @@ "quicklime": ["quicklime@1.2.0", "", { "peerDependencies": { "typescript": "^5" } }, "sha512-uPFHeb+1L4o0D5V4TtLfvoMtLbv2dUq7d9dco47khUZilsdS0ugBD1RfhvdsdpMr4UWbOUkJOUCetUrMIDST1A=="], - "radix-ui": ["radix-ui@1.4.3", "", { "dependencies": { "@radix-ui/primitive": "1.1.3", "@radix-ui/react-accessible-icon": "1.1.7", "@radix-ui/react-accordion": "1.2.12", "@radix-ui/react-alert-dialog": "1.1.15", "@radix-ui/react-arrow": "1.1.7", "@radix-ui/react-aspect-ratio": "1.1.7", "@radix-ui/react-avatar": "1.1.10", "@radix-ui/react-checkbox": "1.3.3", "@radix-ui/react-collapsible": "1.1.12", "@radix-ui/react-collection": "1.1.7", "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-context": "1.1.2", "@radix-ui/react-context-menu": "2.2.16", "@radix-ui/react-dialog": "1.1.15", "@radix-ui/react-direction": "1.1.1", "@radix-ui/react-dismissable-layer": "1.1.11", "@radix-ui/react-dropdown-menu": "2.1.16", "@radix-ui/react-focus-guards": "1.1.3", "@radix-ui/react-focus-scope": "1.1.7", "@radix-ui/react-form": "0.1.8", "@radix-ui/react-hover-card": "1.1.15", "@radix-ui/react-label": "2.1.7", "@radix-ui/react-menu": "2.1.16", "@radix-ui/react-menubar": "1.1.16", "@radix-ui/react-navigation-menu": "1.2.14", "@radix-ui/react-one-time-password-field": "0.1.8", "@radix-ui/react-password-toggle-field": "0.1.3", "@radix-ui/react-popover": "1.1.15", "@radix-ui/react-popper": "1.2.8", "@radix-ui/react-portal": "1.1.9", "@radix-ui/react-presence": "1.1.5", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-progress": "1.1.7", "@radix-ui/react-radio-group": "1.3.8", "@radix-ui/react-roving-focus": "1.1.11", "@radix-ui/react-scroll-area": "1.2.10", "@radix-ui/react-select": "2.2.6", "@radix-ui/react-separator": "1.1.7", "@radix-ui/react-slider": "1.3.6", "@radix-ui/react-slot": "1.2.3", "@radix-ui/react-switch": "1.2.6", "@radix-ui/react-tabs": "1.1.13", "@radix-ui/react-toast": "1.2.15", "@radix-ui/react-toggle": "1.1.10", "@radix-ui/react-toggle-group": "1.1.11", "@radix-ui/react-toolbar": "1.1.11", "@radix-ui/react-tooltip": "1.2.8", "@radix-ui/react-use-callback-ref": "1.1.1", "@radix-ui/react-use-controllable-state": "1.2.2", "@radix-ui/react-use-effect-event": "0.0.2", "@radix-ui/react-use-escape-keydown": "1.1.1", "@radix-ui/react-use-is-hydrated": "0.1.0", "@radix-ui/react-use-layout-effect": "1.1.1", "@radix-ui/react-use-size": "1.1.1", "@radix-ui/react-visually-hidden": "1.2.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-aWizCQiyeAenIdUbqEpXgRA1ya65P13NKn/W8rWkcN0OPkRDxdBVLWnIEDsS2RpwCK2nobI7oMUSmexzTDyAmA=="], + "radix-ui": ["radix-ui@1.6.7", "", { "dependencies": { "@radix-ui/primitive": "1.1.7", "@radix-ui/react-accessible-icon": "1.1.15", "@radix-ui/react-accordion": "1.2.20", "@radix-ui/react-alert-dialog": "1.1.23", "@radix-ui/react-arrow": "1.1.15", "@radix-ui/react-aspect-ratio": "1.1.15", "@radix-ui/react-avatar": "1.2.6", "@radix-ui/react-checkbox": "1.3.11", "@radix-ui/react-collapsible": "1.1.20", "@radix-ui/react-collection": "1.1.15", "@radix-ui/react-compose-refs": "1.1.5", "@radix-ui/react-context": "1.2.2", "@radix-ui/react-context-menu": "2.3.7", "@radix-ui/react-dialog": "1.1.23", "@radix-ui/react-direction": "1.1.4", "@radix-ui/react-dismissable-layer": "1.1.19", "@radix-ui/react-dropdown-menu": "2.1.24", "@radix-ui/react-focus-guards": "1.1.6", "@radix-ui/react-focus-scope": "1.1.16", "@radix-ui/react-form": "0.1.16", "@radix-ui/react-hover-card": "1.1.23", "@radix-ui/react-label": "2.1.15", "@radix-ui/react-menu": "2.1.24", "@radix-ui/react-menubar": "1.1.24", "@radix-ui/react-navigation-menu": "1.2.22", "@radix-ui/react-one-time-password-field": "0.1.16", "@radix-ui/react-password-toggle-field": "0.1.11", "@radix-ui/react-popover": "1.1.23", "@radix-ui/react-popper": "1.3.7", "@radix-ui/react-portal": "1.1.17", "@radix-ui/react-presence": "1.1.10", "@radix-ui/react-primitive": "2.1.10", "@radix-ui/react-progress": "1.1.16", "@radix-ui/react-radio-group": "1.4.7", "@radix-ui/react-roving-focus": "1.1.19", "@radix-ui/react-scroll-area": "1.2.18", "@radix-ui/react-select": "2.3.7", "@radix-ui/react-separator": "1.1.15", "@radix-ui/react-slider": "1.4.7", "@radix-ui/react-slot": "1.3.3", "@radix-ui/react-switch": "1.3.7", "@radix-ui/react-tabs": "1.1.21", "@radix-ui/react-toast": "1.2.23", "@radix-ui/react-toggle": "1.1.18", "@radix-ui/react-toggle-group": "1.1.19", "@radix-ui/react-toolbar": "1.1.19", "@radix-ui/react-tooltip": "1.2.16", "@radix-ui/react-use-callback-ref": "1.1.4", "@radix-ui/react-use-controllable-state": "1.2.6", "@radix-ui/react-use-effect-event": "0.0.5", "@radix-ui/react-use-escape-keydown": "1.1.5", "@radix-ui/react-use-is-hydrated": "0.1.3", "@radix-ui/react-use-layout-effect": "1.1.4", "@radix-ui/react-use-size": "1.1.4", "@radix-ui/react-visually-hidden": "1.2.11" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-QBdhh1arIEUvPC0dQ5+nwWAxt7+N+oP/9jPwjJkGFoSk/sqxg32gJtSXGtFh8frAIcS6oC9cx2Q+7KYCQLOAeA=="], "radix3": ["radix3@1.1.2", "", {}, "sha512-b484I/7b8rDEdSDKckSSBA8knMpcdsXudlE/LNL639wFoHKwLbEkQFZHWEYwDC0wa0FKUcCY+GAF73Z7wxNVFA=="], @@ -1999,9 +2050,11 @@ "range-parser": ["range-parser@1.2.1", "", {}, "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg=="], - "react": ["react@19.2.4", "", {}, "sha512-9nfp2hYpCwOjAN+8TZFGhtWEwgvWHXqESH8qT89AT/lWklpLON22Lc8pEtnpsZz7VmawabSU0gCjnj8aC0euHQ=="], + "react": ["react@19.3.0", "", {}, "sha512-E8LUcbtBWt20bbl2YoHfx4ZDBdxVTfOKtCZn9cDSJ4l6/nuoApcpIBcj47t2wZoVX8g2ZHuMHbiShgCR1T5Sog=="], - "react-dom": ["react-dom@19.2.4", "", { "dependencies": { "scheduler": "^0.27.0" }, "peerDependencies": { "react": "^19.2.4" } }, "sha512-AXJdLo8kgMbimY95O2aKQqsz2iWi9jMgKJhRBAxECE4IFxfcazB2LmzloIoibJI3C12IlY20+KFaLv+71bUJeQ=="], + "react-dom": ["react-dom@19.3.0", "", { "dependencies": { "scheduler": "^0.28.0" }, "peerDependencies": { "react": "^19.3.0" } }, "sha512-JDk8dgif51OjFoDE70+OT9ICyYr+69HlmihNwp1+Nsfbna3t5sIiCa9ZJktDmQ4/1b/rn26hIAR2uYXDMr5r0Q=="], + + "react-error-boundary": ["react-error-boundary@6.1.3", "", { "peerDependencies": { "@types/react": "^18.0.0 || ^19.0.0", "react": "^18.0.0 || ^19.0.0" }, "optionalPeers": ["@types/react"] }, "sha512-GnSKpCohFi2nQmJCWwP8O8wub7zexlePvpsejvQr35vS5RTouS1+utTNOmyc540yw5vyOXnSL1rBWsCQDmkyUA=="], "react-promise-suspense": ["react-promise-suspense@0.3.4", "", { "dependencies": { "fast-deep-equal": "^2.0.1" } }, "sha512-I42jl7L3Ze6kZaq+7zXWSunBa3b1on5yfvUW6Eo/3fFOj6dZ5Bqmcd264nJbTK/gn1HjjILAjSwnZbV4RpSaNQ=="], @@ -2009,7 +2062,7 @@ "react-refresh": ["react-refresh@0.17.0", "", {}, "sha512-z6F7K9bV85EfseRCp2bzrpyQ0Gkw1uLoCel9XBVWPg/TjRj94SkJzUTGfOa4bs7iJvBWtQG0Wq7wnI0syw3EBQ=="], - "react-remove-scroll": ["react-remove-scroll@2.7.1", "", { "dependencies": { "react-remove-scroll-bar": "^2.3.7", "react-style-singleton": "^2.2.3", "tslib": "^2.1.0", "use-callback-ref": "^1.3.3", "use-sidecar": "^1.1.3" }, "peerDependencies": { "@types/react": "*", "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-HpMh8+oahmIdOuS5aFKKY6Pyog+FNaZV/XyJOq7b4YFwsFHe5yYfdbIalI4k3vU2nSDql7YskmUseHsRrJqIPA=="], + "react-remove-scroll": ["react-remove-scroll@2.7.2", "", { "dependencies": { "react-remove-scroll-bar": "^2.3.7", "react-style-singleton": "^2.2.3", "tslib": "^2.1.0", "use-callback-ref": "^1.3.3", "use-sidecar": "^1.1.3" }, "peerDependencies": { "@types/react": "*", "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-Iqb9NjCCTt6Hf+vOdNIZGdTiH1QSqr27H/Ek9sv/a97gfueI/5h1s3yRi1nngzMUaOOToin5dI1dXKdXiF+u0Q=="], "react-remove-scroll-bar": ["react-remove-scroll-bar@2.3.8", "", { "dependencies": { "react-style-singleton": "^2.2.2", "tslib": "^2.0.0" }, "peerDependencies": { "@types/react": "*", "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" }, "optionalPeers": ["@types/react"] }, "sha512-9r+yi9+mgU33AKcj6IbT9oRCO78WriSj6t/cF8DWBZJ9aOGPOTEDvdUDz1FwKim7QXWwmHqtdHnRJfhAxEG46Q=="], @@ -2135,8 +2188,6 @@ "side-channel-weakmap": ["side-channel-weakmap@1.0.2", "", { "dependencies": { "call-bound": "^1.0.2", "es-errors": "^1.3.0", "get-intrinsic": "^1.2.5", "object-inspect": "^1.13.3", "side-channel-map": "^1.0.1" } }, "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A=="], - "simple-swizzle": ["simple-swizzle@0.2.4", "", { "dependencies": { "is-arrayish": "^0.3.1" } }, "sha512-nAu1WFPQSMNr2Zn9PGSZK9AGn4t/y97lEm+MXTtUDwfP0ksAIX4nO+6ruD9Jwut4C49SB1Ws+fbXsm/yScWOHw=="], - "simple-xml-to-json": ["simple-xml-to-json@1.2.3", "", {}, "sha512-kWJDCr9EWtZ+/EYYM5MareWj2cRnZGF93YDNpH4jQiHB+hBIZnfPFSQiVMzZOdk+zXWqTZ/9fTeQNu2DqeiudA=="], "sisteransi": ["sisteransi@1.0.5", "", {}, "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg=="], @@ -2147,6 +2198,8 @@ "smol-toml": ["smol-toml@1.4.2", "", {}, "sha512-rInDH6lCNiEyn3+hH8KVGFdbjc099j47+OSgbMrfDYX1CmXLfdKd7qi6IfcWj2wFxvSVkuI46M+wPGYfEOEj6g=="], + "soapstone": ["soapstone@1.2.0", "", { "dependencies": { "immer": "^11.1.8", "lodash-es": "^4.18.1" }, "peerDependencies": { "react": "^19.3.0", "typescript": "^5" } }, "sha512-kkpRyS5tGFl6KYhXRj+gxBnp9W5DOGWXIRcHgEQ5iVqGseAIfnsXfTfsCBwL70Y1pwycKGzQI5hwb1K5kklgSA=="], + "socks": ["socks@2.8.7", "", { "dependencies": { "ip-address": "^10.0.1", "smart-buffer": "^4.2.0" } }, "sha512-HLpt+uLy/pxB+bum/9DzAgiKS8CX1EvbWxI4zlmgGCExImLdiad2iCwXT5Z4c9c3Eq8rP2318mPW2c+QbtjK8A=="], "socks-proxy-agent": ["socks-proxy-agent@7.0.0", "", { "dependencies": { "agent-base": "^6.0.2", "debug": "^4.3.3", "socks": "^2.6.2" } }, "sha512-Fgl0YPZ902wEsAyiQ+idGd1A7rSFx/ayC1CQVMw5P+EQx2V0SgpGtf6OKFhVjPflPUl9YMmEOnmfjCdMUsygww=="], @@ -2377,8 +2430,6 @@ "uzip-module": ["uzip-module@1.0.3", "", {}, "sha512-AMqwWZaknLM77G+VPYNZLEruMGWGzyigPK3/Whg99B3S6vGHuqsyl5ZrOv1UUF3paGK1U6PM0cnayioaryg/fA=="], - "varuna": ["varuna@workspace:packages/varuna"], - "vfile": ["vfile@6.0.3", "", { "dependencies": { "@types/unist": "^3.0.0", "vfile-message": "^4.0.0" } }, "sha512-KzIbH/9tXat2u30jf+smMwFCsno4wHVdNmzFyL+T/L3UGqqk6JKfVqOFOZEpZSHADH1k40ab6NUIXZq422ov3Q=="], "vfile-location": ["vfile-location@5.0.3", "", { "dependencies": { "@types/unist": "^3.0.0", "vfile": "^6.0.0" } }, "sha512-5yXvWDEgqeiYiBe1lbxYF7UMAIm/IcopxMHrMQDq3nvKcjPKIhZklUKL+AE7J7uApI4kwe2snsK+eI6UTj9EHg=="], @@ -2501,7 +2552,7 @@ "xml-parse-from-string": ["xml-parse-from-string@1.0.1", "", {}, "sha512-ErcKwJTF54uRzzNMXq2X5sMIy88zJvfN2DmdoQvy7PAFJ+tPRU6ydWuOKNMyfmOjdyBQTFREi60s0Y0SyI0G0g=="], - "xml2js": ["xml2js@0.6.2", "", { "dependencies": { "sax": ">=0.6.0", "xmlbuilder": "~11.0.0" } }, "sha512-T4rieHaC1EXcES0Kxxj4JWgaUQHDk+qwHcYOCFHfiwKz7tOVPLq7Hjq9dM1WCMhylqMEfP7hMcOIChvotiZegA=="], + "xml2js": ["xml2js@0.5.0", "", { "dependencies": { "sax": ">=0.6.0", "xmlbuilder": "~11.0.0" } }, "sha512-drPFnkQJik/O+uPKpqSgr22mpuFHqKdbS835iAQrUC73L2F5WkboIRd63ai/2Yg6I1jzifPFKH2NTK+cfglkIA=="], "xmlbuilder": ["xmlbuilder@11.0.1", "", {}, "sha512-fDlsI/kFEx7gLvbecc0/ohLG50fugQp8ryHzMTuW9vSa1GJ0XYWKnhsUx7oie3G98+r56aTQIUB4kht42R3JvA=="], @@ -2559,6 +2610,8 @@ "@jimp/core/file-type": ["file-type@16.5.4", "", { "dependencies": { "readable-web-to-node-stream": "^3.0.0", "strtok3": "^6.2.4", "token-types": "^4.1.1" } }, "sha512-/yFHK0aGjFEgDJjEKP0pWCplsPFPhwyfwevf/pVxiN0tmE4L9LmwWxWukdJSHdoCli4VgQLehjJtwQBnqmsKcw=="], + "@napi-rs/lzma-wasm32-wasi/@emnapi/runtime": ["@emnapi/runtime@2.0.0-beta.3", "", { "dependencies": { "tslib": "^2.4.0" } }, "sha512-ayb/PyyLzpwRyFVxeC0uoEHu59QlB1iWGcGsOpXQcaB/Dc+uGfBmNmpCHp3HmTT0t8lSsMmg3j7+tdJW/TlHjQ=="], + "@octokit/endpoint/@octokit/types": ["@octokit/types@14.1.0", "", { "dependencies": { "@octokit/openapi-types": "^25.1.0" } }, "sha512-1y6DgTy8Jomcpu33N+p5w58l6xyt55Ar2I91RPiIA0xCJBXyUAhXCcmZaDWSANiha7R9a6qJJ2CRomGPZ6f46g=="], "@octokit/graphql/@octokit/types": ["@octokit/types@14.1.0", "", { "dependencies": { "@octokit/openapi-types": "^25.1.0" } }, "sha512-1y6DgTy8Jomcpu33N+p5w58l6xyt55Ar2I91RPiIA0xCJBXyUAhXCcmZaDWSANiha7R9a6qJJ2CRomGPZ6f46g=="], @@ -2617,8 +2670,6 @@ "extract-zip/get-stream": ["get-stream@5.2.0", "", { "dependencies": { "pump": "^3.0.0" } }, "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA=="], - "favilib/sharp": ["sharp@0.33.5", "", { "dependencies": { "color": "^4.2.3", "detect-libc": "^2.0.3", "semver": "^7.6.3" }, "optionalDependencies": { "@img/sharp-darwin-arm64": "0.33.5", "@img/sharp-darwin-x64": "0.33.5", "@img/sharp-libvips-darwin-arm64": "1.0.4", "@img/sharp-libvips-darwin-x64": "1.0.4", "@img/sharp-libvips-linux-arm": "1.0.5", "@img/sharp-libvips-linux-arm64": "1.0.4", "@img/sharp-libvips-linux-s390x": "1.0.4", "@img/sharp-libvips-linux-x64": "1.0.4", "@img/sharp-libvips-linuxmusl-arm64": "1.0.4", "@img/sharp-libvips-linuxmusl-x64": "1.0.4", "@img/sharp-linux-arm": "0.33.5", "@img/sharp-linux-arm64": "0.33.5", "@img/sharp-linux-s390x": "0.33.5", "@img/sharp-linux-x64": "0.33.5", "@img/sharp-linuxmusl-arm64": "0.33.5", "@img/sharp-linuxmusl-x64": "0.33.5", "@img/sharp-wasm32": "0.33.5", "@img/sharp-win32-ia32": "0.33.5", "@img/sharp-win32-x64": "0.33.5" } }, "sha512-haPVm1EkS9pgvHrQ/F3Xy+hgcuMV0Wm9vfIBSiwZ05k+xgb0PkBQpGsAA/oWdDobNaZTH5ppvHtzCFbnSEwHVw=="], - "file-manager/@doctormckay/stdlib": ["@doctormckay/stdlib@1.16.1", "", {}, "sha512-XhuUOzElz6fnNdt70IYNKqhPAEpGaL4JHOhAvklRh0hAhVPW+/wLxaWT3DWUbaG5Dta5YvIp7+cZK3GhIpAuug=="], "filelist/minimatch": ["minimatch@5.1.6", "", { "dependencies": { "brace-expansion": "^2.0.1" } }, "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g=="], @@ -2651,8 +2702,6 @@ "pac-proxy-agent/socks-proxy-agent": ["socks-proxy-agent@8.0.5", "", { "dependencies": { "agent-base": "^7.1.2", "debug": "^4.3.4", "socks": "^2.8.3" } }, "sha512-HehCEsotFqbPW9sJ8WVYB6UbmIMv7kUUORIF2Nncq4VQvBfNBLibW9YZR5dlYCSUhwcD628pRllm7n+E+YTzJw=="], - "parse-bmfont-xml/xml2js": ["xml2js@0.5.0", "", { "dependencies": { "sax": ">=0.6.0", "xmlbuilder": "~11.0.0" } }, "sha512-drPFnkQJik/O+uPKpqSgr22mpuFHqKdbS835iAQrUC73L2F5WkboIRd63ai/2Yg6I1jzifPFKH2NTK+cfglkIA=="], - "parse5/entities": ["entities@6.0.1", "", {}, "sha512-aN97NXWF6AWBTahfVOIrB/NShkzi5H7F9r1s9mD3cDj4Ko5f2qhhVoYMibXF7GlLveb/D2ioWay8lxI97Ven3g=="], "pixelmatch/pngjs": ["pngjs@6.0.0", "", {}, "sha512-TRzzuFRRmEoSW/p1KVAmiOgPco2Irlah+bGFCeNfJXxxYGwSw7YwAOAcd7X28K/m5bjBWKsC29KyoMfHbypayg=="], @@ -2665,7 +2714,7 @@ "proxy-agent/socks-proxy-agent": ["socks-proxy-agent@8.0.5", "", { "dependencies": { "agent-base": "^7.1.2", "debug": "^4.3.4", "socks": "^2.8.3" } }, "sha512-HehCEsotFqbPW9sJ8WVYB6UbmIMv7kUUORIF2Nncq4VQvBfNBLibW9YZR5dlYCSUhwcD628pRllm7n+E+YTzJw=="], - "react-dom/scheduler": ["scheduler@0.27.0", "", {}, "sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q=="], + "react-dom/scheduler": ["scheduler@0.28.0", "", {}, "sha512-juorfCmIkIw8tT+p5BXSm6PJjQF/ycEYmKyzURCIt/RaZIhL+PulbQ9Yu2z1HdOJDdqDTlxA1+xKBmHXJsczAw=="], "readable-stream/safe-buffer": ["safe-buffer@5.1.2", "", {}, "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g=="], @@ -2675,7 +2724,7 @@ "safe-push-apply/isarray": ["isarray@2.0.5", "", {}, "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw=="], - "simple-swizzle/is-arrayish": ["is-arrayish@0.3.4", "", {}, "sha512-m6UrgzFVUYawGBh1dUsWR5M2Clqic9RVXC/9f8ceNlv2IcO9j9J/z8UoCLPqtsPBFNzEpfR3xftohbfqDx8EQA=="], + "soapstone/immer": ["immer@11.1.18", "", {}, "sha512-EQyQtLiYW029lyoczMl/Hh4Xu7cDecSc58JRYpHyL4tIAu3eqd1yJzQX04d2BZHDkzFFvm6qJEJWOtfDSWAXbQ=="], "source-map-support/source-map": ["source-map@0.6.1", "", {}, "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g=="], @@ -2729,6 +2778,8 @@ "wrap-ansi/strip-ansi": ["strip-ansi@7.1.2", "", { "dependencies": { "ansi-regex": "^6.0.1" } }, "sha512-gmBGslpoQJtgnMAvOVqGZpEz9dyoKTCzy2nfz/n8aIFhN/jCE/rCmcxabB6jOOHV+0WNnylOxaxBQPSvcWklhA=="], + "yaml-language-server/prettier": ["prettier@2.8.7", "", { "bin": { "prettier": "bin-prettier.js" } }, "sha512-yPngTo3aXUUmyuTjeTUT75txrf+aMh9FiD7q9ZE/i6r0bPb22g4FsE6Y338PQX1bmfy08i9QQCB7/rcUAVntfw=="], + "yaml-language-server/request-light": ["request-light@0.5.8", "", {}, "sha512-3Zjgh+8b5fhRJBQZoy+zbVKpAQGLyka0MPgW3zruTF4dFFJ8Fqcfu9YsAvi/rvdcaTeWG3MkbZv4WKxAn/84Lg=="], "yaml-language-server/vscode-languageserver": ["vscode-languageserver@7.0.0", "", { "dependencies": { "vscode-languageserver-protocol": "3.16.0" }, "bin": { "installServerIntoExtension": "bin/installServerIntoExtension" } }, "sha512-60HTx5ID+fLRcgdHfmz0LDZAXYEV68fzwG0JWwEPBode9NuMYTIxuYXPg4ngO8i8+Ou0lM7y6GzaYWbiDL0drw=="], @@ -2809,48 +2860,6 @@ "cliui/wrap-ansi/ansi-styles": ["ansi-styles@4.3.0", "", { "dependencies": { "color-convert": "^2.0.1" } }, "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg=="], - "favilib/sharp/@img/sharp-darwin-arm64": ["@img/sharp-darwin-arm64@0.33.5", "", { "optionalDependencies": { "@img/sharp-libvips-darwin-arm64": "1.0.4" }, "os": "darwin", "cpu": "arm64" }, "sha512-UT4p+iz/2H4twwAoLCqfA9UH5pI6DggwKEGuaPy7nCVQ8ZsiY5PIcrRvD1DzuY3qYL07NtIQcWnBSY/heikIFQ=="], - - "favilib/sharp/@img/sharp-darwin-x64": ["@img/sharp-darwin-x64@0.33.5", "", { "optionalDependencies": { "@img/sharp-libvips-darwin-x64": "1.0.4" }, "os": "darwin", "cpu": "x64" }, "sha512-fyHac4jIc1ANYGRDxtiqelIbdWkIuQaI84Mv45KvGRRxSAa7o7d1ZKAOBaYbnepLC1WqxfpimdeWfvqqSGwR2Q=="], - - "favilib/sharp/@img/sharp-libvips-darwin-arm64": ["@img/sharp-libvips-darwin-arm64@1.0.4", "", { "os": "darwin", "cpu": "arm64" }, "sha512-XblONe153h0O2zuFfTAbQYAX2JhYmDHeWikp1LM9Hul9gVPjFY427k6dFEcOL72O01QxQsWi761svJ/ev9xEDg=="], - - "favilib/sharp/@img/sharp-libvips-darwin-x64": ["@img/sharp-libvips-darwin-x64@1.0.4", "", { "os": "darwin", "cpu": "x64" }, "sha512-xnGR8YuZYfJGmWPvmlunFaWJsb9T/AO2ykoP3Fz/0X5XV2aoYBPkX6xqCQvUTKKiLddarLaxpzNe+b1hjeWHAQ=="], - - "favilib/sharp/@img/sharp-libvips-linux-arm": ["@img/sharp-libvips-linux-arm@1.0.5", "", { "os": "linux", "cpu": "arm" }, "sha512-gvcC4ACAOPRNATg/ov8/MnbxFDJqf/pDePbBnuBDcjsI8PssmjoKMAz4LtLaVi+OnSb5FK/yIOamqDwGmXW32g=="], - - "favilib/sharp/@img/sharp-libvips-linux-arm64": ["@img/sharp-libvips-linux-arm64@1.0.4", "", { "os": "linux", "cpu": "arm64" }, "sha512-9B+taZ8DlyyqzZQnoeIvDVR/2F4EbMepXMc/NdVbkzsJbzkUjhXv/70GQJ7tdLA4YJgNP25zukcxpX2/SueNrA=="], - - "favilib/sharp/@img/sharp-libvips-linux-s390x": ["@img/sharp-libvips-linux-s390x@1.0.4", "", { "os": "linux", "cpu": "s390x" }, "sha512-u7Wz6ntiSSgGSGcjZ55im6uvTrOxSIS8/dgoVMoiGE9I6JAfU50yH5BoDlYA1tcuGS7g/QNtetJnxA6QEsCVTA=="], - - "favilib/sharp/@img/sharp-libvips-linux-x64": ["@img/sharp-libvips-linux-x64@1.0.4", "", { "os": "linux", "cpu": "x64" }, "sha512-MmWmQ3iPFZr0Iev+BAgVMb3ZyC4KeFc3jFxnNbEPas60e1cIfevbtuyf9nDGIzOaW9PdnDciJm+wFFaTlj5xYw=="], - - "favilib/sharp/@img/sharp-libvips-linuxmusl-arm64": ["@img/sharp-libvips-linuxmusl-arm64@1.0.4", "", { "os": "linux", "cpu": "arm64" }, "sha512-9Ti+BbTYDcsbp4wfYib8Ctm1ilkugkA/uscUn6UXK1ldpC1JjiXbLfFZtRlBhjPZ5o1NCLiDbg8fhUPKStHoTA=="], - - "favilib/sharp/@img/sharp-libvips-linuxmusl-x64": ["@img/sharp-libvips-linuxmusl-x64@1.0.4", "", { "os": "linux", "cpu": "x64" }, "sha512-viYN1KX9m+/hGkJtvYYp+CCLgnJXwiQB39damAO7WMdKWlIhmYTfHjwSbQeUK/20vY154mwezd9HflVFM1wVSw=="], - - "favilib/sharp/@img/sharp-linux-arm": ["@img/sharp-linux-arm@0.33.5", "", { "optionalDependencies": { "@img/sharp-libvips-linux-arm": "1.0.5" }, "os": "linux", "cpu": "arm" }, "sha512-JTS1eldqZbJxjvKaAkxhZmBqPRGmxgu+qFKSInv8moZ2AmT5Yib3EQ1c6gp493HvrvV8QgdOXdyaIBrhvFhBMQ=="], - - "favilib/sharp/@img/sharp-linux-arm64": ["@img/sharp-linux-arm64@0.33.5", "", { "optionalDependencies": { "@img/sharp-libvips-linux-arm64": "1.0.4" }, "os": "linux", "cpu": "arm64" }, "sha512-JMVv+AMRyGOHtO1RFBiJy/MBsgz0x4AWrT6QoEVVTyh1E39TrCUpTRI7mx9VksGX4awWASxqCYLCV4wBZHAYxA=="], - - "favilib/sharp/@img/sharp-linux-s390x": ["@img/sharp-linux-s390x@0.33.5", "", { "optionalDependencies": { "@img/sharp-libvips-linux-s390x": "1.0.4" }, "os": "linux", "cpu": "s390x" }, "sha512-y/5PCd+mP4CA/sPDKl2961b+C9d+vPAveS33s6Z3zfASk2j5upL6fXVPZi7ztePZ5CuH+1kW8JtvxgbuXHRa4Q=="], - - "favilib/sharp/@img/sharp-linux-x64": ["@img/sharp-linux-x64@0.33.5", "", { "optionalDependencies": { "@img/sharp-libvips-linux-x64": "1.0.4" }, "os": "linux", "cpu": "x64" }, "sha512-opC+Ok5pRNAzuvq1AG0ar+1owsu842/Ab+4qvU879ippJBHvyY5n2mxF1izXqkPYlGuP/M556uh53jRLJmzTWA=="], - - "favilib/sharp/@img/sharp-linuxmusl-arm64": ["@img/sharp-linuxmusl-arm64@0.33.5", "", { "optionalDependencies": { "@img/sharp-libvips-linuxmusl-arm64": "1.0.4" }, "os": "linux", "cpu": "arm64" }, "sha512-XrHMZwGQGvJg2V/oRSUfSAfjfPxO+4DkiRh6p2AFjLQztWUuY/o8Mq0eMQVIY7HJ1CDQUJlxGGZRw1a5bqmd1g=="], - - "favilib/sharp/@img/sharp-linuxmusl-x64": ["@img/sharp-linuxmusl-x64@0.33.5", "", { "optionalDependencies": { "@img/sharp-libvips-linuxmusl-x64": "1.0.4" }, "os": "linux", "cpu": "x64" }, "sha512-WT+d/cgqKkkKySYmqoZ8y3pxx7lx9vVejxW/W4DOFMYVSkErR+w7mf2u8m/y4+xHe7yY9DAXQMWQhpnMuFfScw=="], - - "favilib/sharp/@img/sharp-wasm32": ["@img/sharp-wasm32@0.33.5", "", { "dependencies": { "@emnapi/runtime": "^1.2.0" }, "cpu": "none" }, "sha512-ykUW4LVGaMcU9lu9thv85CbRMAwfeadCJHRsg2GmeRa/cJxsVY9Rbd57JcMxBkKHag5U/x7TSBpScF4U8ElVzg=="], - - "favilib/sharp/@img/sharp-win32-ia32": ["@img/sharp-win32-ia32@0.33.5", "", { "os": "win32", "cpu": "ia32" }, "sha512-T36PblLaTwuVJ/zw/LaH0PdZkRz5rd3SmMHX8GSmR7vtNSP5Z6bQkExdSK7xGWyxLw4sUknBuugTelgw2faBbQ=="], - - "favilib/sharp/@img/sharp-win32-x64": ["@img/sharp-win32-x64@0.33.5", "", { "os": "win32", "cpu": "x64" }, "sha512-MpY/o8/8kj+EcnxwvrP4aTJSWw/aZ7JIGR4aBeZkZw5B7/Jn+tY9/VNwtcoGmdT7GfggGIU4kygOMSbYnOrAbg=="], - - "favilib/sharp/detect-libc": ["detect-libc@2.1.1", "", {}, "sha512-ecqj/sy1jcK1uWrwpR67UhYrIFQ+5WlGxth34WquCbamhFA6hkkwiu37o6J5xCHdo1oixJRfVRw+ywV+Hq/0Aw=="], - - "favilib/sharp/semver": ["semver@7.7.2", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA=="], - "filelist/minimatch/brace-expansion": ["brace-expansion@2.0.2", "", { "dependencies": { "balanced-match": "^1.0.0" } }, "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ=="], "ndarray-pixels/sharp/@img/sharp-darwin-arm64": ["@img/sharp-darwin-arm64@0.34.4", "", { "optionalDependencies": { "@img/sharp-libvips-darwin-arm64": "1.2.3" }, "os": "darwin", "cpu": "arm64" }, "sha512-sitdlPzDVyvmINUdJle3TNHl+AG9QcwiAMsXmccqsCOMZNIdW2/7S26w0LyU8euiLVzFBL3dXPwVCq/ODnf2vA=="], @@ -2921,8 +2930,6 @@ "boxen/string-width/strip-ansi/ansi-regex": ["ansi-regex@6.2.2", "", {}, "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg=="], - "favilib/sharp/@img/sharp-wasm32/@emnapi/runtime": ["@emnapi/runtime@1.5.0", "", { "dependencies": { "tslib": "^2.4.0" } }, "sha512-97/BJ3iXHww3djw6hYIfErCZFee7qCtrneuLa20UXFCOTCfBM2cvQHjWJ2EG0s0MtdNwInarqCTz35i4wWXHsQ=="], - "ndarray-pixels/sharp/@img/sharp-wasm32/@emnapi/runtime": ["@emnapi/runtime@1.5.0", "", { "dependencies": { "tslib": "^2.4.0" } }, "sha512-97/BJ3iXHww3djw6hYIfErCZFee7qCtrneuLa20UXFCOTCfBM2cvQHjWJ2EG0s0MtdNwInarqCTz35i4wWXHsQ=="], "widest-line/string-width/strip-ansi/ansi-regex": ["ansi-regex@6.2.2", "", {}, "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg=="], diff --git a/cspell.json b/cspell.json deleted file mode 100644 index 17d054ca4..000000000 --- a/cspell.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "words": [ - "gamemodes", - "Tankopedia" - ] -} diff --git a/package.json b/package.json index 838927f68..2d2861bfa 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,7 @@ "dependencies": { "@gltf-transform/extensions": "^4.4.2", "lz4js": "^0.2.0", + "prettier": "^3.10.2", "sharp": "^0.34.5", "typescript": "^5.9.3" } diff --git a/packages/closed b/packages/closed index 182fcdb27..c7ba70c33 160000 --- a/packages/closed +++ b/packages/closed @@ -1 +1 @@ -Subproject commit 182fcdb27348934c148cd979766321c5b7b3a770 +Subproject commit c7ba70c33b0f24b740e77fd840c74ebf476d3658 diff --git a/packages/core/package.json b/packages/core/package.json index 44a544ee4..4e75a3ab1 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -5,6 +5,7 @@ "main": "src/index.ts", "dependencies": { "@blitzkit/i18n": "workspace:*", + "@blitzkit/protos": "workspace:*", "@bufbuild/protobuf": "^2.9.0", "@octokit/plugin-throttling": "^11.0.1", "@octokit/rest": "^22.0.0", diff --git a/packages/core/src/api/fetchJSON.ts b/packages/core/src/api/fetchJSON.ts new file mode 100644 index 000000000..5c3cead47 --- /dev/null +++ b/packages/core/src/api/fetchJSON.ts @@ -0,0 +1,5 @@ +export async function fetchJSON(url: string) { + const response = await fetch(url); + const json = await response.json(); + return json as Type; +} diff --git a/packages/core/src/protobuf/fetchPB.ts b/packages/core/src/api/fetchPB.ts similarity index 78% rename from packages/core/src/protobuf/fetchPB.ts rename to packages/core/src/api/fetchPB.ts index ee9412661..d9891f60d 100644 --- a/packages/core/src/protobuf/fetchPB.ts +++ b/packages/core/src/api/fetchPB.ts @@ -1,4 +1,4 @@ -import type { MessageFns } from '../protos'; +import type { MessageFns } from "@blitzkit/protos/src/blitzkit"; export async function fetchPB(url: string, message: MessageFns) { const response = await fetch(url); diff --git a/packages/core/src/api/index.ts b/packages/core/src/api/index.ts new file mode 100644 index 000000000..e4e95f968 --- /dev/null +++ b/packages/core/src/api/index.ts @@ -0,0 +1,2 @@ +export * from "./fetchJSON"; +export * from "./fetchPB"; diff --git a/packages/core/src/blitz/blitzShellKindToBlitzkit.ts b/packages/core/src/blitz/blitzShellKindToBlitzkit.ts new file mode 100644 index 000000000..9e21d5322 --- /dev/null +++ b/packages/core/src/blitz/blitzShellKindToBlitzkit.ts @@ -0,0 +1,16 @@ +import { ShellType } from "@blitzkit/protos"; +import { ShellKind } from "../types"; + +export const blitzShellKindToBlitzkit: Record = { + ARMOR_PIERCING: ShellType.SHELL_TYPE_AP, + ARMOR_PIERCING_CR: ShellType.SHELL_TYPE_APCR, + HIGH_EXPLOSIVE: ShellType.SHELL_TYPE_HE, + HOLLOW_CHARGE: ShellType.SHELL_TYPE_HEAT, +}; + +// @ts-ignore +export const blitzkitToBlitzShellKind: Record = {}; + +for (const [key, value] of Object.entries(blitzShellKindToBlitzkit)) { + blitzkitToBlitzShellKind[value] = key as ShellKind; +} diff --git a/packages/core/src/blitz/canSplash.ts b/packages/core/src/blitz/canSplash.ts deleted file mode 100644 index c6151665b..000000000 --- a/packages/core/src/blitz/canSplash.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { ShellDefinition, ShellType } from "../protos"; - -export function canSplash( - type: ShellDefinition["type"], -): type is ShellType.SHELL_TYPE_HE { - return type === ShellType.SHELL_TYPE_HE; -} diff --git a/packages/core/src/blitz/constants.ts b/packages/core/src/blitz/constants.ts deleted file mode 100644 index 64ec733be..000000000 --- a/packages/core/src/blitz/constants.ts +++ /dev/null @@ -1,41 +0,0 @@ -import { TankClass, TankType } from "../protos"; -import type { BlitzStats } from "../statistics"; - -export const TANK_TYPES = [ - TankType.TANK_TYPE_RESEARCHABLE, - TankType.TANK_TYPE_PREMIUM, - TankType.TANK_TYPE_COLLECTOR, -]; - -export const TANK_TYPE_COMMAND_NAMES = { - [TankType.TANK_TYPE_RESEARCHABLE]: "researchable", - [TankType.TANK_TYPE_PREMIUM]: "premium", - [TankType.TANK_TYPE_COLLECTOR]: "collector", -}; - -export const TANK_CLASSES = [ - TankClass.TANK_CLASS_LIGHT, - TankClass.TANK_CLASS_MEDIUM, - TankClass.TANK_CLASS_HEAVY, - TankClass.TANK_CLASS_TANK_DESTROYER, -]; - -export const emptyAllStats: BlitzStats = { - battles: 0, - capture_points: 0, - damage_dealt: 0, - damage_received: 0, - dropped_capture_points: 0, - frags: 0, - frags8p: 0, - hits: 0, - losses: 0, - max_frags: 0, - max_xp: 0, - shots: 0, - spotted: 0, - survived_battles: 0, - xp: 0, - win_and_survived: 0, - wins: 0, -}; diff --git a/packages/core/src/blitz/index.ts b/packages/core/src/blitz/index.ts index 00aaabe43..7c543cb4c 100644 --- a/packages/core/src/blitz/index.ts +++ b/packages/core/src/blitz/index.ts @@ -1,7 +1,6 @@ -export * from "./canSplash"; +export * from "./blitzShellKindToBlitzkit"; export * from "./clans"; export * from "./classes"; -export * from "./constants"; export * from "./equipmentPrice"; export * from "./fetchBlitz"; export * from "./fetchGlossary"; diff --git a/packages/core/src/blitz/permanentSkills.tsx b/packages/core/src/blitz/permanentSkills.tsx index ebf2c6f05..3e905bce8 100644 --- a/packages/core/src/blitz/permanentSkills.tsx +++ b/packages/core/src/blitz/permanentSkills.tsx @@ -1,8 +1,9 @@ export const permanentSkills = [ - 'smooth_turn', - 'soft_recoil', - 'smooth_driving', - 'smooth_turret', - 'virtuoso', - 'camouflage', + "smooth_turn", + "soft_recoil", + "smooth_driving", + "smooth_turret", + "virtuoso", + "camouflage", + "repair", ]; diff --git a/packages/core/src/blitzkit/alias.ts b/packages/core/src/blitzkit/alias.ts index 119ada258..ad648f35f 100644 --- a/packages/core/src/blitzkit/alias.ts +++ b/packages/core/src/blitzkit/alias.ts @@ -7,7 +7,7 @@ export function alias(alias: string, path: string) { throw new Error(`Invalid alias "${alias}"`); } - const base = environment.aliases[alias]; + const base = environment.aliases[alias].replace(/\/$/, ""); - return `${base}${path}`; + return `${base}/${path}`; } diff --git a/packages/core/src/blitzkit/api/abstract.ts b/packages/core/src/blitzkit/api/abstract.ts new file mode 100644 index 000000000..85dfb3ae2 --- /dev/null +++ b/packages/core/src/blitzkit/api/abstract.ts @@ -0,0 +1,30 @@ +import { Strings } from "@blitzkit/i18n"; +import { + CamouflageDefinitions, + ConsumableDefinitions, + EquipmentDefinitions, + Gallery, + GameDefinitions, + MapDefinitions, + ModelDefinitions, + ProvisionDefinitions, + SkillDefinitions, + TankDefinitions, +} from "@blitzkit/protos"; +import { BlitzScripts } from "../../types/blitzScripts"; + +export abstract class AbstractBlitzKitAPI { + abstract skills(): Promise; + abstract provisions(): Promise; + abstract consumables(): Promise; + abstract equipment(): Promise; + abstract maps(): Promise; + abstract models(): Promise; + abstract camouflages(): Promise; + abstract tanks(): Promise; + abstract game(): Promise; + abstract gallery(): Promise; + abstract scripts(): Promise; + + abstract strings(locale: string): Promise; +} diff --git a/packages/core/src/blitzkit/api/base.ts b/packages/core/src/blitzkit/api/base.ts deleted file mode 100644 index 92038adc6..000000000 --- a/packages/core/src/blitzkit/api/base.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { - CamouflageDefinitions, - ConsumableDefinitions, - EquipmentDefinitions, - Gallery, - GameDefinitions, - MapDefinitions, - ModelDefinitions, - ProvisionDefinitions, - SkillDefinitions, - TankDefinitions, -} from "@blitzkit/core"; - -export abstract class BlitzKitAPI { - abstract skillDefinitions(): Promise; - abstract provisionDefinitions(): Promise; - abstract consumableDefinitions(): Promise; - abstract equipmentDefinitions(): Promise; - abstract mapDefinitions(): Promise; - abstract modelDefinitions(): Promise; - abstract camouflageDefinitions(): Promise; - abstract tankDefinitions(): Promise; - abstract gameDefinitions(): Promise; - abstract galleryDefinitions(): Promise; -} diff --git a/packages/core/src/blitzkit/api/cache.ts b/packages/core/src/blitzkit/api/cache.ts new file mode 100644 index 000000000..ddf88ffad --- /dev/null +++ b/packages/core/src/blitzkit/api/cache.ts @@ -0,0 +1,43 @@ +export function Cache(disableInDev = false) { + const cache = new WeakMap>>(); + + return function ( + target: (this: This, ...args: Arguments) => Promise, + // TODO: evaluate if we need context to make the error trace easier + // context: ClassMethodDecoratorContext< + // This, + // (this: This, ...args: Arguments) => Promise + // >, + ) { + return async function replacementMethod(this: This, ...args: Arguments) { + const key = args.join("-"); + let thisCache: Map>; + + if (cache.has(this as object)) { + thisCache = cache.get(this as object) as Map>; + } else { + thisCache = new Map(); + cache.set(this as object, thisCache); + } + + const disabled = disableInDev && import.meta.env.DEV; + + if (thisCache.has(key) && !disabled) { + return thisCache.get(key)!; + } + + const promise = (async () => { + try { + return await target.apply(this, args); + } catch (error) { + thisCache!.delete(key); + throw error; + } + })(); + + thisCache.set(key, promise); + + return promise; + }; + }; +} diff --git a/packages/core/src/blitzkit/api/client.ts b/packages/core/src/blitzkit/api/client.ts index 02f645fb9..de6927b1a 100644 --- a/packages/core/src/blitzkit/api/client.ts +++ b/packages/core/src/blitzkit/api/client.ts @@ -1,5 +1,5 @@ import { alias } from "@blitzkit/core"; -import { fetchPB } from "../../protobuf"; +import { Strings } from "@blitzkit/i18n"; import { CamouflageDefinitions, ConsumableDefinitions, @@ -11,59 +11,82 @@ import { ProvisionDefinitions, SkillDefinitions, TankDefinitions, -} from "../../protos"; -import { BlitzKitAPI } from "./base"; +} from "@blitzkit/protos"; +import { fetchPB } from "../../api"; +import { fetchJSON } from "../../api/fetchJSON"; +import { BlitzScripts } from "../../types/blitzScripts"; +import { AbstractBlitzKitAPI } from "./abstract"; +import { Cache } from "./cache"; -export class ClientBlitzKitAPI extends BlitzKitAPI { - gameDefinitions() { - return fetchPB(alias("api", "/definitions/game.pb"), GameDefinitions); +export class ClientBlitzKitAPI extends AbstractBlitzKitAPI { + @Cache() + game() { + return fetchPB(alias("api", "definitions/game.pb"), GameDefinitions); } - consumableDefinitions() { + @Cache() + consumables() { return fetchPB( - alias("api", "/definitions/consumables.pb"), + alias("api", "definitions/consumables.pb"), ConsumableDefinitions, ); } - tankDefinitions() { - return fetchPB(alias("api", "/definitions/tanks.pb"), TankDefinitions); + @Cache() + tanks() { + return fetchPB(alias("api", "definitions/tanks.pb"), TankDefinitions); } - camouflageDefinitions() { + @Cache() + camouflages() { return fetchPB( - alias("api", "/definitions/camouflage.pb"), + alias("api", "definitions/camouflage.pb"), CamouflageDefinitions, ); } - provisionDefinitions() { + @Cache() + provisions() { return fetchPB( - alias("api", "/definitions/provisions.pb"), + alias("api", "definitions/provisions.pb"), ProvisionDefinitions, ); } - modelDefinitions() { - return fetchPB(alias("api", "/definitions/models.pb"), ModelDefinitions); + @Cache() + models() { + return fetchPB(alias("api", "definitions/models.pb"), ModelDefinitions); } - skillDefinitions() { - return fetchPB(alias("api", "/definitions/skills.pb"), SkillDefinitions); + @Cache() + skills() { + return fetchPB(alias("api", "definitions/skills.pb"), SkillDefinitions); } - equipmentDefinitions() { + @Cache() + equipment() { return fetchPB( - alias("api", "/definitions/equipment.pb"), + alias("api", "definitions/equipment.pb"), EquipmentDefinitions, ); } - galleryDefinitions() { - return fetchPB(alias("api", "/definitions/gallery.pb"), Gallery); + @Cache() + gallery() { + return fetchPB(alias("api", "definitions/gallery.pb"), Gallery); } - mapDefinitions() { - return fetchPB(alias("api", "/definitions/maps.pb"), MapDefinitions); + @Cache() + maps() { + return fetchPB(alias("api", "definitions/maps.pb"), MapDefinitions); + } + + @Cache() + scripts() { + return fetchJSON(alias("api", "definitions/scripts.json")); + } + + strings(locale: string) { + return fetchJSON(alias("api", `strings/${locale}.json`)); } } diff --git a/packages/core/src/blitzkit/api/dynamic.ts b/packages/core/src/blitzkit/api/dynamic.ts new file mode 100644 index 000000000..24f042d0a --- /dev/null +++ b/packages/core/src/blitzkit/api/dynamic.ts @@ -0,0 +1,22 @@ +import { AbstractBlitzKitAPI } from "@blitzkit/core"; +import type { AbstractVFS } from "@blitzkit/vfs"; + +export async function createDynamicAPI(vfs: () => Promise) { + let _api: AbstractBlitzKitAPI; + + if (import.meta.env.SSR) { + const { ServerBlitzKitAPI } = await import( + "@blitzkit/core/src/blitzkit/api/server" + ); + + _api = await new ServerBlitzKitAPI(await vfs()).init(); + } else { + const { ClientBlitzKitAPI } = await import( + "@blitzkit/core/src/blitzkit/api/client" + ); + + _api = new ClientBlitzKitAPI(); + } + + return _api; +} diff --git a/packages/core/src/blitzkit/api/index.ts b/packages/core/src/blitzkit/api/index.ts new file mode 100644 index 000000000..570bd0ad5 --- /dev/null +++ b/packages/core/src/blitzkit/api/index.ts @@ -0,0 +1,3 @@ +export * from "./abstract"; +export * from "./client"; +export * from "./dynamic"; diff --git a/packages/core/src/blitzkit/api/server/0_base.ts b/packages/core/src/blitzkit/api/server/0_base.ts index 5cbd7518d..915d466c3 100644 --- a/packages/core/src/blitzkit/api/server/0_base.ts +++ b/packages/core/src/blitzkit/api/server/0_base.ts @@ -8,30 +8,34 @@ import { CamouflagesYaml, CombatRolesYaml, ConsumablesCommon, - ConsumableTankCategoryFilterCategory, - CrewType, - I18nString, MapsYaml, - ModuleType, OptionalDevices, OptionalDeviceSlots, ProvisionsCommon, - ShellKind, - ShellType, SquadBattleTypeStylesYaml, - TankClass, TankmenAvatar, toUniqueId, VehicleDefinitionList, } from "@blitzkit/core"; -import { AbstractVFS } from "@blitzkit/core/src/blitzkit/vfs/abstract"; +import type { AbstractVFS } from "@blitzkit/vfs"; import locales from "@blitzkit/i18n/locales.json"; -import { SUPPORTED_LOCALE_BLITZ_MAP } from "@blitzkit/i18n/src/strings"; +import { + ConsumableTankCategoryFilterCategory, + CrewType, + I18nString, + ModuleType, + TankClass, +} from "@blitzkit/protos"; +import type { extname, parse } from "node:path"; import { parse as parseYaml } from "yaml"; -import { BlitzKitAPI } from "../base"; +import { AbstractBlitzKitAPI } from "../abstract"; + +export abstract class ServerBlitzKitAPI0 extends AbstractBlitzKitAPI { + // TODO: move most of these to their respective constructors -export abstract class ServerBlitzKitAPI0 extends BlitzKitAPI { protected vfs: AbstractVFS; + protected parsePath?: typeof parse; + protected extname?: typeof extname; protected nationSlugDiscriminators = { china: "cn", @@ -74,12 +78,6 @@ export abstract class ServerBlitzKitAPI0 extends BlitzKitAPI { heavyTank: TankClass.TANK_CLASS_HEAVY, mediumTank: TankClass.TANK_CLASS_MEDIUM, }; - protected blitzShellKindToBlitzkit: Record = { - ARMOR_PIERCING: ShellType.SHELL_TYPE_AP, - ARMOR_PIERCING_CR: ShellType.SHELL_TYPE_APCR, - HIGH_EXPLOSIVE: ShellType.SHELL_TYPE_HE, - HOLLOW_CHARGE: ShellType.SHELL_TYPE_HEAT, - }; protected blitzTankFilterDefinitionCategoryToBlitzkit: Record< BlitzTankFilterDefinitionCategory, ConsumableTankCategoryFilterCategory @@ -89,7 +87,7 @@ export abstract class ServerBlitzKitAPI0 extends BlitzKitAPI { protected botPattern = /^.+((tutorial_bot(\d+)?)|(TU))$/; - protected stringsI18n: Record> = {}; + private stringsI18n: Record> = {}; protected nationsDir?: string[]; protected tankStringIdMap: Record = {}; protected consumablesCommon: ConsumablesCommon = {}; @@ -110,6 +108,7 @@ export abstract class ServerBlitzKitAPI0 extends BlitzKitAPI { constructor(vfs: AbstractVFS) { super(); + this.vfs = vfs; } @@ -117,41 +116,46 @@ export abstract class ServerBlitzKitAPI0 extends BlitzKitAPI { const { existsSync } = await import("fs"); const { readFile, writeFile, mkdir } = await import("fs/promises"); + const path = await import("node:path"); + + this.extname = path.extname; + this.parsePath = path.parse; + console.log("Fetching game data..."); this.nationsDir = await this.vfs .dir("Data/XML/item_defs/vehicles") .then((files) => files.filter((nation) => nation !== "common")); this.optionalDevices = await this.vfs.xml<{ root: OptionalDevices }>( - "Data/XML/item_defs/vehicles/common/optional_devices.xml", + "Data/XML/item_defs/vehicles/common/optional_devices.xml" ); this.optionalDeviceSlots = await this.vfs.xml<{ root: OptionalDeviceSlots; }>("Data/XML/item_defs/vehicles/common/optional_device_slots.xml"); this.tankmenAvatar = await this.vfs.xml<{ root: TankmenAvatar }>( - "Data/XML/item_defs/tankmen/avatar.xml", + "Data/XML/item_defs/tankmen/avatar.xml" ); this.mapsYaml = await this.vfs.yaml("Data/maps.yaml"); this.camouflagesXml = await this.vfs.xml<{ root: CamouflagesXml }>( - "Data/XML/item_defs/vehicles/common/camouflages.xml", + "Data/XML/item_defs/vehicles/common/camouflages.xml" ); this.camouflagesYaml = await this.vfs.yaml( - "Data/camouflages.yaml", + "Data/camouflages.yaml" ); this.squadBattleTypeStyles = await this.vfs.yaml( - `Data/UI/Screens3/Lobby/Hangar/Squad/SquadBattleType.yaml`, + `Data/UI/Screens3/Lobby/Hangar/Squad/SquadBattleType.yaml` ); this.gameTypeSelectorStyles = await this.vfs.yaml( - `Data/UI/Screens/Lobby/Hangar/GameTypeSelector.yaml`, + `Data/UI/Screens/Lobby/Hangar/GameTypeSelector.yaml` ); this.combatRoles = await this.vfs.yaml( - `Data/XML/item_defs/vehicles/common/combat_roles.yaml`, + `Data/XML/item_defs/vehicles/common/combat_roles.yaml` ); this.tierEqualizer = await this.vfs.csv( // spell:disable-next-line `Data/XML/item_defs/vehicles/common/tier_equializer.csv`, - { delimiter: ";" }, + { delimiter: ";" } ); this.version = (await this.vfs.text("Data/version.txt")).split(" ")[0]; @@ -159,44 +163,48 @@ export abstract class ServerBlitzKitAPI0 extends BlitzKitAPI { console.log("Fetching game localizations..."); await Promise.all( - locales.supported.map(async ({ locale }) => { + locales.supported.map(async (supported) => { const root = `../../temp/game-strings/${this.version}`; - const cachePath = `${root}/${locale}.json`; + const cachePath = `${root}/${supported.locale}.json`; if (existsSync(cachePath)) { - console.log(` Cache hit for ${locale}`); + console.log(` Cache hit for ${supported.locale}`); const content = await readFile(cachePath, "utf-8"); - this.stringsI18n[locale] = JSON.parse(content) as BlitzStrings; + this.stringsI18n[supported.locale] = JSON.parse( + content + ) as BlitzStrings; return; } - console.log(` Cache miss for ${locale} (this will take a while...)`); + console.log( + ` Cache miss for ${supported.locale} (this will take a while...)` + ); - const blitzLocale = SUPPORTED_LOCALE_BLITZ_MAP[locale]; + const stringsLocale = supported.variant_blitz_strings ?? supported.locale; const networkStrings = (await fetch( - `https://stufficons.wgcdn.co/localizations/${blitzLocale}.yaml`, + `https://stufficons.wgcdn.co/localizations/${stringsLocale}.yaml` ) .then((response) => response.text()) .then(parseYaml)) as BlitzStrings; const localStrings = await this.vfs.yaml( - `Data/Strings/${blitzLocale}.yaml`, + `Data/Strings/${stringsLocale}.yaml` ); const combined = { ...networkStrings, ...localStrings }; await mkdir(root, { recursive: true }); await writeFile(cachePath, JSON.stringify(combined)); - this.stringsI18n[locale] = combined; - }), + this.stringsI18n[supported.locale] = combined; + }) ); console.log("Fetching consumable and provision data..."); for (const match of ( await this.vfs.text( - `Data/XML/item_defs/vehicles/common/consumables/list.xml`, + `Data/XML/item_defs/vehicles/common/consumables/list.xml` ) ).matchAll(//g)) { if (match[1] === "prototypes") continue; @@ -205,15 +213,15 @@ export abstract class ServerBlitzKitAPI0 extends BlitzKitAPI { this.consumablesCommon, ( await this.vfs.xml<{ root: ConsumablesCommon }>( - `Data/XML/item_defs/vehicles/common/consumables/${match[1]}.xml`, + `Data/XML/item_defs/vehicles/common/consumables/${match[1]}.xml` ) - ).root, + ).root ); } for (const match of ( await this.vfs.text( - `Data/XML/item_defs/vehicles/common/provisions/list.xml`, + `Data/XML/item_defs/vehicles/common/provisions/list.xml` ) ).matchAll(//g)) { if (match[1] === "prototypes") continue; @@ -222,15 +230,15 @@ export abstract class ServerBlitzKitAPI0 extends BlitzKitAPI { this.provisionsCommon, ( await this.vfs.xml<{ root: ConsumablesCommon }>( - `Data/XML/item_defs/vehicles/common/provisions/${match[1]}.xml`, + `Data/XML/item_defs/vehicles/common/provisions/${match[1]}.xml` ) - ).root, + ).root ); } for (const nation of this.nationsDir!) { const tankList = await this.vfs.xml<{ root: VehicleDefinitionList }>( - `Data/XML/item_defs/vehicles/${nation}/list.xml`, + `Data/XML/item_defs/vehicles/${nation}/list.xml` ); for (const tankKey in tankList.root) { @@ -249,7 +257,7 @@ export abstract class ServerBlitzKitAPI0 extends BlitzKitAPI { protected getTankFilterIds( name: string, definitionKey: string, - filter: "include" | "exclude", + filter: "include" | "exclude" ) { const keys = name.trim().split(/\s+/).filter(Boolean); @@ -258,7 +266,7 @@ export abstract class ServerBlitzKitAPI0 extends BlitzKitAPI { if (id === undefined) { console.warn( - `Skipping unavailable tank "${key}" in ${filter} vehicle filter for "${definitionKey}"`, + `Skipping unavailable tank "${key}" in ${filter} vehicle filter for "${definitionKey}"` ); return []; } @@ -290,47 +298,3 @@ export abstract class ServerBlitzKitAPI0 extends BlitzKitAPI { return { locales: collection } satisfies I18nString; } } - -export function Cache(disableInDev = false) { - const cache = new WeakMap>>(); - - return function ( - target: (this: This, ...args: Arguments) => Promise, - // TODO: evaluate if we need context to make the error trace easier - // context: ClassMethodDecoratorContext< - // This, - // (this: This, ...args: Arguments) => Promise - // >, - ) { - return async function replacementMethod(this: This, ...args: Arguments) { - const key = args.join("-"); - let thisCache: Map>; - - if (cache.has(this as object)) { - thisCache = cache.get(this as object) as Map>; - } else { - thisCache = new Map(); - cache.set(this as object, thisCache); - } - - const disabled = disableInDev && import.meta.env.DEV; - - if (thisCache.has(key) && !disabled) { - return thisCache.get(key)!; - } - - const promise = (async () => { - try { - return await target.apply(this, args); - } catch (error) { - thisCache!.delete(key); - throw error; - } - })(); - - thisCache.set(key, promise); - - return promise; - }; - }; -} diff --git a/packages/core/src/blitzkit/api/server/10_galleryDefinitions.ts b/packages/core/src/blitzkit/api/server/10_avatars.ts similarity index 82% rename from packages/core/src/blitzkit/api/server/10_galleryDefinitions.ts rename to packages/core/src/blitzkit/api/server/10_avatars.ts index 40cf9295e..fee20fc9f 100644 --- a/packages/core/src/blitzkit/api/server/10_galleryDefinitions.ts +++ b/packages/core/src/blitzkit/api/server/10_avatars.ts @@ -1,18 +1,18 @@ -import { Avatar, fetchGlossary, Gallery } from "@blitzkit/core"; +import { fetchGlossary } from "@blitzkit/core"; import locales from "@blitzkit/i18n/locales.json"; -import { extname } from "path"; -import { Cache } from "./0_base"; -import { ServerBlitzKitAPI9 } from "./9_gameDefinitions"; +import { Avatar, Gallery } from "@blitzkit/protos"; +import { Cache } from "../cache"; +import { ServerBlitzKitAPI9 } from "./9_game"; export abstract class ServerBlitzKitAPI10 extends ServerBlitzKitAPI9 { @Cache() - async galleryDefinitions() { + async gallery() { const avatars: Record = {}; await Promise.all( locales.supported.map(async (supported) => { const glossary = await fetchGlossary( - supported.blitz ?? supported.locale, + supported.variant_blitz_glossary ?? supported.locale, ); console.log( @@ -34,7 +34,7 @@ export abstract class ServerBlitzKitAPI10 extends ServerBlitzKitAPI9 { avatars[key].avatar.name!.locales[supported.locale] = glossaryEntry.title; } else { - const extension = extname(glossaryEntry.image_url); + const extension = this.extname!(glossaryEntry.image_url); avatars[key] = { url: glossaryEntry.image_url, diff --git a/packages/core/src/blitzkit/api/server/11_scripts.ts b/packages/core/src/blitzkit/api/server/11_scripts.ts new file mode 100644 index 000000000..3cc2fab65 --- /dev/null +++ b/packages/core/src/blitzkit/api/server/11_scripts.ts @@ -0,0 +1,104 @@ +import type { + BlitzEffectScript, + BlitzScripts, + ConsumablesCommon, + OptionalDevices, +} from "../../../types"; +import type { AbstractVFS } from "@blitzkit/vfs"; +import { Cache } from "../cache"; +import { ServerBlitzKitAPI10 } from "./10_avatars"; + +export abstract class ServerBlitzKitAPI11 extends ServerBlitzKitAPI10 { + // The XML parser keeps switches as text, but the script types declare them as + // booleans + private normalizeSwitches(value: Value): Value { + if (typeof value === "string") { + const lowered = value.toLowerCase(); + + if (lowered === "true") return true as Value; + if (lowered === "false") return false as Value; + } + + if (Array.isArray(value)) + return value.map((child) => this.normalizeSwitches(child)) as Value; + + if (typeof value === "object" && value !== null) { + return Object.fromEntries( + Object.entries(value).map(([key, child]) => [ + key, + this.normalizeSwitches(child), + ]), + ) as Value; + } + + return value; + } + + private assignNormalizedScript( + target: Record, + key: number, + script?: BlitzEffectScript, + ) { + if (script === undefined) return; + + if (script["#text"] === "StaticFactorDevice") { + script["#text"] = script.attribute!; + } + + target[key] = this.normalizeSwitches(script); + } + + @Cache() + async scripts() { + const scripts: BlitzScripts = { + consumables: {}, + equipment: {}, + provisions: {}, + }; + + const optionalDevices = await this.vfs.xml<{ + root: OptionalDevices; + }>("Data/XML/item_defs/vehicles/common/optional_devices.xml"); + + for (const key in optionalDevices.root) { + const equipment = optionalDevices.root[key]; + + this.assignNormalizedScript( + scripts.equipment, + equipment.id, + equipment.script, + ); + } + + const assign = async ( + vfs: AbstractVFS, + dir: string, + target: "consumables" | "provisions", + ) => { + const root = `Data/XML/item_defs/vehicles/common/${dir}`; + const list = await vfs.text(`${root}/list.xml`); + const pattern = //gm; + + for (const match of list.matchAll(pattern)) { + const group = match[1]; + const path = `${root}/${group}.xml`; + const things = await vfs.xml<{ root: ConsumablesCommon }>(path); + + for (const key in things.root) { + const thing = things.root[key]; + + this.assignNormalizedScript( + scripts[target], + thing.id, + things.root[key].script, + ); + } + } + }; + + await assign(this.vfs, "consumables", "consumables"); + await assign(this.vfs, "provisions", "provisions"); + + return scripts; + } +} diff --git a/packages/core/src/blitzkit/api/server/12_strings.ts b/packages/core/src/blitzkit/api/server/12_strings.ts new file mode 100644 index 000000000..4a85c8d88 --- /dev/null +++ b/packages/core/src/blitzkit/api/server/12_strings.ts @@ -0,0 +1,24 @@ +import { Strings } from "@blitzkit/i18n"; +import locales from "@blitzkit/i18n/locales.json"; +import { DeepPartial } from "@blitzkit/protos"; +import { merge } from "lodash-es"; +import { ServerBlitzKitAPI11 } from "./11_scripts"; + +export abstract class ServerBlitzKitAPI12 extends ServerBlitzKitAPI11 { + private globbedStrings = import.meta.glob( + "../../../../../i18n/strings/*.json", + { import: "default" }, + ); + + async strings(locale: string) { + const localized = (await this.globbedStrings[ + `../../../../../i18n/strings/${locale}.json` + ]()) as DeepPartial; + const defaults = (await this.globbedStrings[ + `../../../../../i18n/strings/${locales.default}.json` + ]()) as Strings; + const strings = merge({}, defaults, localized); + + return strings; + } +} diff --git a/packages/core/src/blitzkit/api/server/1_tankDefinitions.ts b/packages/core/src/blitzkit/api/server/1_tanks.ts similarity index 54% rename from packages/core/src/blitzkit/api/server/1_tankDefinitions.ts rename to packages/core/src/blitzkit/api/server/1_tanks.ts index 298e84df4..b5deb0fc8 100644 --- a/packages/core/src/blitzkit/api/server/1_tankDefinitions.ts +++ b/packages/core/src/blitzkit/api/server/1_tanks.ts @@ -1,33 +1,320 @@ import { - AssaultRanges, + type AugmentAttributeDefinitions, BlitzCrewType, BlitzModuleType, + blitzShellKindToBlitzkit, BlitzTankClass, ChassisDefinitionsList, - Crew, + type ConsumablesVehicleFilter, EngineDefinitionsList, - Equalizer, - GunDefinition, GunDefinitionsList, - ModuleType, - ResearchCost, ShellDefinitionsList, ShellKind, sluggify, + TechTreeLayoutYaml, + toUniqueId, + TurretDefinitionsList, + UnlocksListing, + UpgradeAttributesXml, + UpgradeProgressionXml, + UpgradeProgressionXmlNode, + UpgradeProgressionXmlRequirement, + type VehicleAbilityItem, + type VehicleDefinitionGun, + VehicleDefinitionList, + VehicleDefinitions, +} from "@blitzkit/core"; +import { + AbilitySource, + AssaultRanges, + AugmentAttribute, + AugmentNode, + AugmentNodeType, + AugmentProgression, + AugmentRequirement, + Crew, + Equalizer, + GunDefinition, + ModulePosition, + ModuleType, + ResearchCost, + ShellDefinition, TankDefinitions, TankPrice, TankPriceType, TankType, - toUniqueId, - TurretDefinitionsList, Unlock, - UnlocksListing, - VehicleDefinitionList, - VehicleDefinitions, -} from "@blitzkit/core"; -import { Cache, ServerBlitzKitAPI0 } from "./0_base"; + type VehicleAbility, +} from "@blitzkit/protos"; +import { Cache } from "../cache"; +import { ServerBlitzKitAPI0 } from "./0_base"; export abstract class ServerBlitzKitAPI1 extends ServerBlitzKitAPI0 { + // A gun the way a tank's turret or a vehicle ability builds it. `gun` + // overrides the shared gun entry, which is all an ability has + private parseGun( + nation: string, + gunKey: string, + gunList: GunDefinitionsList, + shellList: ShellDefinitionsList, + gun: Partial, + unlocks: GunDefinition["unlocks"], + ) { + const gunListEntry = gunList.shared[gunKey]; + const gunType = + gun.clip === undefined + ? "regular" + : gun.pumpGunMode + ? "auto_reloader" + : "auto_loader"; + const gunClipCount = gunType === "regular" ? 1 : gun.clip!.count; + const shotDispersionFactors = + gun.shotDispersionFactors ?? gunListEntry.shotDispersionFactors; + let assault_ranges: AssaultRanges | undefined; + + if (gun.extras?.trayShell) { + const types = gun.extras.trayShell.kinds.split(" ").map((string) => { + const trimmed = string.trim(); + + if (trimmed in blitzShellKindToBlitzkit) { + return blitzShellKindToBlitzkit[trimmed as ShellKind]; + } + + throw new SyntaxError(`Invalid shell kind: ${trimmed}`); + }); + const sectorNames = Object.keys(gun.extras.trayShell.sectors); + + if (sectorNames.length !== 1 || sectorNames[0] !== "sector") { + throw new SyntaxError("Invalid tray shell sector"); + } + + const sector = gun.extras.trayShell.sectors.sector; + + assault_ranges = { + types, + ranges: sector.map((value) => ({ + factor: value.factor, + distance: value.distance, + })), + }; + } + + return { + id: toUniqueId(nation, gunList.ids[gunKey]), + weight: gunListEntry.weight, + rotation_speed: gunListEntry.rotationSpeed, + name: this.getString(gunListEntry.userString), + tier: gunListEntry.level, + shells: this.parseShells(nation, gunListEntry, shellList), + camouflage_loss: + gun.invisibilityFactorAtShot === undefined + ? 0 + : typeof gun.invisibilityFactorAtShot === "number" + ? gun.invisibilityFactorAtShot + : gun.invisibilityFactorAtShot.at(-1)!, + aim_time: gun.aimingTime ?? gunListEntry.aimingTime, + dispersion_base: + gun.shotDispersionRadius ?? gunListEntry.shotDispersionRadius, + dispersion_damaged: shotDispersionFactors.whileGunDamaged, + dispersion_shot: shotDispersionFactors.afterShot, + dispersion_traverse: shotDispersionFactors.turretRotation, + unlocks, + shell_capacity: gun.maxAmmo ?? gunListEntry.maxAmmo, + assault_ranges, + burst: + gun.burst && gun.burst.count > 1 + ? { + count: gun.burst.count, + interval: 60 / gun.burst.rate, + } + : undefined, + gun_type: + gunType === "regular" + ? { + $case: "regular", + value: { + reload: gun.reloadTime ?? 0, + }, + } + : gunType === "auto_reloader" + ? { + $case: "auto_reloader", + value: { + intra_clip: 60 / gun.clip!.rate, + shell_count: gunClipCount, + shell_reloads: gun.pumpGunReloadTimes!.split(" ").map(Number), + }, + } + : { + $case: "auto_loader", + value: { + intra_clip: 60 / gun.clip!.rate, + clip_reload: gun.reloadTime ?? 0, + shell_count: gunClipCount, + }, + }, + } satisfies GunDefinition; + } + + // The shells a gun fires. Its shots may override a shell's speed, range and + // penetration, and otherwise the shell's own values hold + private parseShells( + nation: string, + gunListEntry: GunDefinitionsList["shared"][string], + shellList: ShellDefinitionsList, + ) { + return Object.keys(gunListEntry.shots ?? {}).map((shellKey) => { + const gunShellEntry = gunListEntry.shots[shellKey]; + const shell = shellList[shellKey]; + + // Newer client data stores shot properties on the shell rather than + // repeating them under every gun's entry + const speed = + typeof gunShellEntry === "string" ? shell.speed : gunShellEntry.speed; + const maxDistance = + typeof gunShellEntry === "string" + ? shell.maxDistance + : gunShellEntry.maxDistance; + const piercingPower = + typeof gunShellEntry === "string" + ? shell.piercingPower + : gunShellEntry.piercingPower; + + const penetrationRaw = piercingPower + .split(" ") + .filter((penetrationString) => penetrationString !== "") + .map(Number); + + return { + id: toUniqueId(nation, shell.id), + name: this.getString(shell.userString), + velocity: speed, + armor_damage: shell.damage.armor, + module_damage: shell.damage.devices, + caliber: shell.caliber, + normalization: shell.normalizationAngle, + ricochet: shell.ricochetAngle, + type: blitzShellKindToBlitzkit[shell.kind], + explosion_radius: + shell.kind === "HIGH_EXPLOSIVE" + ? shell.explosionRadius ?? 0 + : undefined, + icon: shell.icon, + penetration: { + near: penetrationRaw[0], + far: penetrationRaw[1], + }, + range: maxDistance, + acceleration: shell.acceleration, + max_speed: shell.maxSpeed, + } satisfies ShellDefinition; + }); + } + + // A vehicle ability's placeholder gun as `nation:gun`, built like a tank's own + // guns. An ability's gun has no turret, so its shared entry is all its data + private async placeholderGun(reference: string) { + const [nation, gunKey] = reference.trim().split(":"); + const base = `Data/XML/item_defs/vehicles/${nation}/components`; + const { root: gunList } = await this.vfs.xml<{ + root: GunDefinitionsList; + }>(`${base}/guns.xml`); + const { root: shellList } = await this.vfs.xml<{ + root: ShellDefinitionsList; + }>(`${base}/shells.xml`); + const shared = gunList.shared[gunKey]; + + if (shared === undefined) { + throw new Error(`Vehicle ability gun ${reference} is not in guns.xml`); + } + + return this.parseGun(nation, gunKey, gunList, shellList, shared, []); + } + + // The hidden provisions and consumables the game marks as vehicle abilities, + // by the key a tank's `extras` names them with + private vehicleAbilityItems() { + const items = new Map(); + const groups = [ + [AbilitySource.ABILITY_SOURCE_CONSUMABLE, this.consumablesCommon], + [AbilitySource.ABILITY_SOURCE_PROVISION, this.provisionsCommon], + ] as const; + + for (const [source, group] of groups) { + for (const [key, item] of Object.entries(group)) { + if (!("isVehicleAbility" in item)) continue; + + // The names in the filter's `include`, or nothing when it doesn't name tanks + const vehicle = item.vehicleFilter?.include.vehicle; + + items.set(key, { + source, + id: item.id, + vehicleNames: + vehicle !== undefined && "name" in vehicle + ? vehicle.name.trim().split(/\s+/) + : undefined, + gun: item.script?.gun, + }); + } + } + + return items; + } + + // The abilities a tank has, from the hidden items its own `extras` names. + // Guns name none in the game files today, so one is an error, not a gap + private async vehicleAbilitiesOf( + nation: string, + tankKey: string, + root: { + extras?: Record; + turrets0?: Record< + string, + { guns: Record }> } + >; + }, + items: Map, + ) { + const name = `${nation}:${tankKey}`; + + for (const turret of Object.values(root.turrets0 ?? {})) { + for (const gun of Object.values(turret.guns ?? {})) { + for (const key of Object.keys(gun.extras ?? {})) { + if (items.has(key)) { + throw new Error( + `Gun extra ${key} on ${name} is a vehicle ability, which is only linked for tanks`, + ); + } + } + } + } + + const abilities: VehicleAbility[] = []; + + for (const key of Object.keys(root.extras ?? {})) { + const item = items.get(key); + if (item === undefined) continue; + + if (item.vehicleNames && !item.vehicleNames.includes(name)) { + throw new Error( + `${key} is on ${name}, which its vehicle filter does not include`, + ); + } + + abilities.push({ + source: item.source, + id: item.id, + gun: + item.gun === undefined + ? undefined + : await this.placeholderGun(item.gun), + }); + } + + return abilities; + } + private parseResearchCost(raw: number | string) { if (typeof raw === "number") { return { @@ -46,9 +333,133 @@ export abstract class ServerBlitzKitAPI1 extends ServerBlitzKitAPI0 { } } + private parseAugmentProgression( + xml: UpgradeProgressionXml, + attributeDefinitions: AugmentAttributeDefinitions, + ) { + const iconName = (path?: string) => path?.split("/").at(-1); + + const types = { + NODETYPE_COMMON: AugmentNodeType.AUGMENT_NODE_TYPE_COMMON, + NODETYPE_MECHANIC: AugmentNodeType.AUGMENT_NODE_TYPE_MECHANIC, + NODETYPE_ALTERNATIVE_MECHANIC: + AugmentNodeType.AUGMENT_NODE_TYPE_ALTERNATIVE, + } satisfies Record; + + const parseRequirements = ( + requiredNodes: UpgradeProgressionXmlNode["requiredNodes"], + ) => + (requiredNodes === undefined || requiredNodes === "" + ? [] + : requiredNodes.node + ).map((requirement: UpgradeProgressionXmlRequirement) => + typeof requirement === "string" + ? ({ + tech_name: requirement, + vertical_first: false, + } satisfies AugmentRequirement) + : ({ + tech_name: requirement["#text"], + vertical_first: requirement["@_verticalFirst"] === "true", + } satisfies AugmentRequirement), + ); + + const parseNode = (node: UpgradeProgressionXmlNode) => + ({ + id: node.id, + tech_name: node.techName, + type: types[node.nodeType], + xp_cost: node.xpCost ?? 0, + position: + node.gridPosition === undefined + ? undefined + : { x: node.gridPosition.column, y: node.gridPosition.row }, + requires: parseRequirements(node.requiredNodes), + attributes: (node.attributes?.attribute ?? []).map( + ({ attributeName, value }) => { + const definition = attributeDefinitions.get(attributeName); + + return { + name: attributeName, + value: typeof value === "boolean" ? Number(value) : value, + icon: iconName(definition?.icon), + title: + definition === undefined + ? undefined + : this.getString(definition.title), + } satisfies AugmentAttribute; + }, + ), + name: + node.displayName === undefined + ? undefined + : this.getString(node.displayName), + } satisfies AugmentNode); + + const parsedNodes = xml.nodes.node.map(parseNode); + const byTechName = new Map( + parsedNodes.map((node) => [node.tech_name, node]), + ); + const groups = + xml.alternativeMechanicGroups?.alternativeMechanicGroup ?? []; + + if (groups.length > 1) { + throw new Error( + "Upgrade progression with more than one alternative group", + ); + } + + const group = groups.at(0); + const alternativeNames = new Set(group?.alternativeNodes.node); + + for (const node of parsedNodes) { + if ( + node.type === AugmentNodeType.AUGMENT_NODE_TYPE_ALTERNATIVE && + !alternativeNames.has(node.tech_name) + ) { + throw new Error( + `Alternative upgrade ${node.tech_name} belongs to no group`, + ); + } + } + + return { + rows: xml.matrix.rows, + columns: xml.matrix.columns, + nodes: parsedNodes.filter( + (node) => node.type !== AugmentNodeType.AUGMENT_NODE_TYPE_ALTERNATIVE, + ), + group: + group === undefined + ? undefined + : { + tech_name: group.techName, + name: this.getString(group.displayName), + description: this.getString(group.description), + icon: iconName(group.icon), + xp_cost: group.xpCost, + position: { + x: group.gridPosition.column, + y: group.gridPosition.row, + }, + requires: parseRequirements(group.requiredNodes), + alternatives: group.alternativeNodes.node.map((techName) => { + const node = byTechName.get(techName); + + if (node === undefined) { + throw new Error(`Unknown alternative upgrade ${techName}`); + } + + return node; + }), + }, + } satisfies AugmentProgression; + } + @Cache() - async tankDefinitions() { + async tanks() { const tankDefinitions = TankDefinitions.create(); + const abilityItems = this.vehicleAbilityItems(); const gameModeNativeNames: Record = {}; @@ -159,6 +570,23 @@ export abstract class ServerBlitzKitAPI1 extends ServerBlitzKitAPI0 { const tankXps = new Map(); + // Only some builds ship augment trees + const upgradeAttributesPath = + "Data/XML/item_defs/vehicles/common/tank_upgrade_attributes.xml"; + const upgradeAttributeDefinitions: AugmentAttributeDefinitions = new Map(); + + if ((await this.vfs.resolve(upgradeAttributesPath)) !== null) { + const upgradeAttributes = + await this.vfs.xmlWithAttributes( + upgradeAttributesPath, + ); + + for (const { attributeName, icon, title } of upgradeAttributes.root + .attributes.attribute) { + upgradeAttributeDefinitions.set(attributeName, { icon, title }); + } + } + for (const nation of this.nationsDir!) { const tankList = await this.vfs.xml<{ root: VehicleDefinitionList }>( `Data/XML/item_defs/vehicles/${nation}/list.xml`, @@ -359,11 +787,96 @@ export abstract class ServerBlitzKitAPI1 extends ServerBlitzKitAPI0 { const name_full = name === canonicalFullName ? undefined : canonicalFullName; + // The client lays modules out automatically unless the tank has its own + // file, in which case every cell is placed by hand + const module_positions: ModulePosition[] = []; + const layoutPath = `Data/Configs/TechTree/${nation}/${tankKey}.yaml`; + const resolvedLayoutPath = await this.vfs.resolve(layoutPath); + + if (resolvedLayoutPath !== null) { + const layout = await this.vfs.yaml(layoutPath); + + if (layout.modules) { + for (const [moduleKey, { position }] of Object.entries( + layout.modules, + )) { + // keys look like `#vehicleGun:_85mm_S-53` + const [kind, name] = moduleKey.replace(/^#/, "").split(":"); + let rawId: number | undefined; + let type: ModuleType; + + switch (kind) { + case "vehicle": + rawId = tankList.root[name]?.id; + type = ModuleType.MODULE_TYPE_VEHICLE; + break; + + case "vehicleChassis": + rawId = chassisList.root.ids[name]; + type = ModuleType.MODULE_TYPE_TRACKS; + break; + + case "vehicleEngine": + rawId = enginesList.root.ids[name]; + type = ModuleType.MODULE_TYPE_ENGINE; + break; + + case "vehicleGun": + rawId = gunList.root.ids[name]; + type = ModuleType.MODULE_TYPE_GUN; + break; + + case "vehicleTurret": + rawId = turretList.root.ids[name]; + type = ModuleType.MODULE_TYPE_TURRET; + break; + + default: + throw new Error( + `Unknown module kind in ${layoutPath}: ${kind}`, + ); + } + + if (rawId === undefined) { + throw new Error( + `Unknown module in ${layoutPath}: ${moduleKey}`, + ); + } + + module_positions.push({ + id: toUniqueId(nation, rawId), + type, + position: { x: position[0], y: position[1] }, + }); + } + } + } + + const augment_progression = + tankDefinition.root.upgradeProgression === undefined + ? undefined + : this.parseAugmentProgression( + ( + await this.vfs.xmlWithAttributes<{ + root: { upgradeProgression: UpgradeProgressionXml }; + }>(`Data/XML/item_defs/vehicles/${nation}/${tankKey}.xml`) + ).root.upgradeProgression, + upgradeAttributeDefinitions, + ); + tankDefinitions.tanks[tankId] = { ancestors: [], successors: [], id: tankId, dev_name: tankKey, + module_positions, + augment_progression, + vehicle_abilities: await this.vehicleAbilitiesOf( + nation, + tankKey, + tankDefinition.root, + abilityItems, + ), roles: {}, camouflages: camouflages, fixed_camouflage: fixedCamouflage, @@ -383,8 +896,8 @@ export abstract class ServerBlitzKitAPI1 extends ServerBlitzKitAPI0 { type: tankTags.includes("collectible") ? TankType.TANK_TYPE_COLLECTOR : (typeof tank.price === "number" ? false : "gold" in tank.price) - ? TankType.TANK_TYPE_PREMIUM - : TankType.TANK_TYPE_RESEARCHABLE, + ? TankType.TANK_TYPE_PREMIUM + : TankType.TANK_TYPE_RESEARCHABLE, tier: tank.level, class: tankClass, testing: tankTags.includes("testTank") || tank.level === 11, @@ -485,165 +998,20 @@ export abstract class ServerBlitzKitAPI1 extends ServerBlitzKitAPI0 { ), }); - let gunIndex = 0; for (const gunKey in turret.guns) { const gun = turret.guns[gunKey]; - const gunId = toUniqueId(nation, gunList.root.ids[gunKey]); - const gunListEntry = gunList.root.shared[gunKey]; - const gunName = this.getString(gunListEntry.userString); - const gunType = - "clip" in gun - ? gun.pumpGunMode - ? "autoReloader" - : "autoLoader" - : "regular"; - const gunClipCount = gunType === "regular" ? 1 : gun.clip!.count; - const shotDispersionFactors = - gun.shotDispersionFactors ?? gunListEntry.shotDispersionFactors; - let assault_ranges: AssaultRanges | undefined; - - if (gun.extras?.trayShell) { - const types = gun.extras.trayShell.kinds - .split(" ") - .map((string) => { - const trimmed = string.trim(); - - if (trimmed in this.blitzShellKindToBlitzkit) { - return this.blitzShellKindToBlitzkit[trimmed as ShellKind]; - } - - throw new SyntaxError(`Invalid shell kind: ${trimmed}`); - }); - const sectorNames = Object.keys(gun.extras.trayShell.sectors); - - if (sectorNames.length !== 1 || sectorNames[0] !== "sector") { - throw new SyntaxError("Invalid tray shell sector"); - } - - const sector = gun.extras.trayShell.sectors.sector; - - assault_ranges = { - types, - ranges: sector.map((value) => ({ - factor: value.factor, - distance: value.distance, - })), - }; - } totalUnlocks.push(gun.unlocks); - - tankDefinitions.tanks[tankId].turrets[turretIndex].guns.push({ - id: gunId, - weight: gunListEntry.weight, - rotation_speed: gunListEntry.rotationSpeed, - name: gunName, - tier: gunListEntry.level, - shells: [], - camouflage_loss: - typeof gun.invisibilityFactorAtShot === "number" - ? gun.invisibilityFactorAtShot - : gun.invisibilityFactorAtShot.at(-1)!, - aim_time: gun.aimingTime ?? gunListEntry.aimingTime, - dispersion_base: - gun.shotDispersionRadius ?? gunListEntry.shotDispersionRadius, - dispersion_damaged: shotDispersionFactors.whileGunDamaged, - dispersion_shot: shotDispersionFactors.afterShot, - dispersion_traverse: shotDispersionFactors.turretRotation, - unlocks: resolveUnlocks( - this.blitzModuleTypeToBlitzkit, - gun.unlocks, + tankDefinitions.tanks[tankId].turrets[turretIndex].guns.push( + this.parseGun( + nation, + gunKey, + gunList.root, + shellList.root, + gun, + resolveUnlocks(this.blitzModuleTypeToBlitzkit, gun.unlocks), ), - shell_capacity: gun.maxAmmo ?? gunListEntry.maxAmmo, - assault_ranges, - burst: - gun.burst && gun.burst.count > 1 - ? { - count: gun.burst.count, - interval: 60 / gun.burst.rate, - } - : undefined, - gun_type: - gunType === "regular" - ? { - $case: "regular", - value: { - reload: gun.reloadTime, - }, - } - : gunType === "autoReloader" - ? { - $case: "auto_reloader", - value: { - intra_clip: 60 / gun.clip!.rate, - shell_count: gunClipCount, - shell_reloads: gun - .pumpGunReloadTimes!.split(" ") - .map(Number), - }, - } - : { - $case: "auto_loader", - value: { - intra_clip: 60 / gun.clip!.rate, - clip_reload: gun.reloadTime, - shell_count: gunClipCount, - }, - }, - } satisfies GunDefinition); - - for (const shellKey in gunListEntry.shots) { - const gunShellEntry = gunListEntry.shots[shellKey]; - const shell = shellList.root[shellKey]; - - // Newer client data stores shot properties on the shell rather - // than repeating them under every gun's entry. - const speed = - typeof gunShellEntry === "string" - ? shell.speed - : gunShellEntry.speed; - const maxDistance = - typeof gunShellEntry === "string" - ? shell.maxDistance - : gunShellEntry.maxDistance; - const piercingPower = - typeof gunShellEntry === "string" - ? shell.piercingPower - : gunShellEntry.piercingPower; - - const shellId = toUniqueId(nation, shell.id); - const shellName = this.getString(shell.userString); - const penetrationRaw = piercingPower - .split(" ") - .filter((penetrationString) => penetrationString !== "") - .map(Number); - - tankDefinitions.tanks[tankId].turrets[turretIndex].guns[ - gunIndex - ].shells.push({ - id: shellId, - name: shellName, - velocity: speed, - armor_damage: shell.damage.armor, - module_damage: shell.damage.devices, - caliber: shell.caliber, - normalization: shell.normalizationAngle, - ricochet: shell.ricochetAngle, - type: this.blitzShellKindToBlitzkit[shell.kind], - explosion_radius: - shell.kind === "HIGH_EXPLOSIVE" - ? (shell.explosionRadius ?? 0) - : undefined, - icon: shell.icon, - penetration: { - near: penetrationRaw[0], - far: penetrationRaw[1], - }, - range: maxDistance, - }); - } - - gunIndex++; + ); } turretIndex++; diff --git a/packages/core/src/blitzkit/api/server/2_camouflageDefinitions.ts b/packages/core/src/blitzkit/api/server/2_camouflages.ts similarity index 95% rename from packages/core/src/blitzkit/api/server/2_camouflageDefinitions.ts rename to packages/core/src/blitzkit/api/server/2_camouflages.ts index 4462f1010..de01c30f0 100644 --- a/packages/core/src/blitzkit/api/server/2_camouflageDefinitions.ts +++ b/packages/core/src/blitzkit/api/server/2_camouflages.ts @@ -1,11 +1,11 @@ +import { CamouflageDefinitions } from "@blitzkit/protos"; import { - CamouflageDefinitions, Sc2ReadStream, type TankParameters, } from "@blitzkit/core"; import { isEqual, times } from "lodash-es"; -import { Cache } from "./0_base"; -import { ServerBlitzKitAPI1 } from "./1_tankDefinitions"; +import { Cache } from "../cache"; +import { ServerBlitzKitAPI1 } from "./1_tanks"; export abstract class ServerBlitzKitAPI2 extends ServerBlitzKitAPI1 { private async skinPresets(vehicle: string) { @@ -37,7 +37,7 @@ export abstract class ServerBlitzKitAPI2 extends ServerBlitzKitAPI1 { } @Cache() - async camouflageDefinitions() { + async camouflages() { const camouflageDefinitions = CamouflageDefinitions.create(); const customization = await this.vfs.yaml< Record diff --git a/packages/core/src/blitzkit/api/server/3_modelDefinitions.ts b/packages/core/src/blitzkit/api/server/3_models.ts similarity index 90% rename from packages/core/src/blitzkit/api/server/3_modelDefinitions.ts rename to packages/core/src/blitzkit/api/server/3_models.ts index e08f7d185..1786e7155 100644 --- a/packages/core/src/blitzkit/api/server/3_modelDefinitions.ts +++ b/packages/core/src/blitzkit/api/server/3_models.ts @@ -1,33 +1,36 @@ import { - Armor, BlitzCrewType, ChassisDefinitionsList, - Crew, GunDefinitionsList, I_HAT, J_HAT, K_HAT, - ModelDefinitions, parseHierarchies, Sc2ReadStream, ScgReadStream, TankParameters, toUniqueId, TurretDefinitionsList, - Vector3, VehicleDefinitionArmor, VehicleDefinitionList, VehicleDefinitions, VertexAttribute, } from "@blitzkit/core"; -import { parse as parsePath } from "path"; +import { Armor, Crew, ModelDefinitions, ProtoVector3 } from "@blitzkit/protos"; import { MathUtils, Vector3 as THREEVector3, Vector3Tuple } from "three"; -import { Cache } from "./0_base"; -import { ServerBlitzKitAPI2 } from "./2_camouflageDefinitions"; +import { Cache } from "../cache"; +import { ServerBlitzKitAPI2 } from "./2_camouflages"; + +// The `front` and `back` tags hold "min max range" in degrees +function parseExtraPitchLimitValues(raw: string | undefined) { + if (raw === undefined) return undefined; + + return raw.trim().split(/\s+/).map(Number); +} export abstract class ServerBlitzKitAPI3 extends ServerBlitzKitAPI2 { private vector3TupleToBlitzkit(tuple: Vector3Tuple) { - return { x: tuple[0], y: tuple[1], z: tuple[2] } satisfies Vector3; + return { x: tuple[0], y: tuple[1], z: -tuple[2] } satisfies ProtoVector3; } private async collisionBoundingBoxes( @@ -122,7 +125,7 @@ export abstract class ServerBlitzKitAPI3 extends ServerBlitzKitAPI2 { } @Cache() - async modelDefinitions() { + async models() { const modelDefinitions = ModelDefinitions.create(); for (const nation of this.nationsDir!) { @@ -256,7 +259,7 @@ export abstract class ServerBlitzKitAPI3 extends ServerBlitzKitAPI2 { Object.keys(tankDefinition.root.turrets0).forEach((turretKey) => { const turret = tankDefinition.root.turrets0[turretKey]; const turretModel = Number( - parsePath(turret.models.undamaged).name.split("_")[1], + this.parsePath!(turret.models.undamaged).name.split("_")[1], ); const turretId = toUniqueId(nation, turretList.root.ids[turretKey]); const turretYaw = ( @@ -292,7 +295,7 @@ export abstract class ServerBlitzKitAPI3 extends ServerBlitzKitAPI2 { turret.userString; - let turretCollisionName = parsePath( + let turretCollisionName = this.parsePath!( turret.hitTester.collisionModel, ).name.toLowerCase(); const isFullYaw = -turretYaw[0] + turretYaw[1] === 360; @@ -343,7 +346,7 @@ export abstract class ServerBlitzKitAPI3 extends ServerBlitzKitAPI2 { .split(" ") .map(Number) as [number, number]; let gunModel = Number( - parsePath(gun.models.undamaged).name.split("_")[1], + this.parsePath!(gun.models.undamaged).name.split("_")[1], ); if (tankId === 30497) { @@ -354,17 +357,21 @@ export abstract class ServerBlitzKitAPI3 extends ServerBlitzKitAPI2 { gunModel = 2; } - const front = gun.extraPitchLimits?.front - ? gun.extraPitchLimits.front.split(" ").map(Number) - : undefined; - const back = gun.extraPitchLimits?.back - ? gun.extraPitchLimits.back.split(" ").map(Number) - : undefined; - const transition = gun.extraPitchLimits?.transition - ? typeof gun.extraPitchLimits.transition === "number" - ? gun.extraPitchLimits.transition - : gun.extraPitchLimits.transition.at(-1)! - : undefined; + // The client merges shared and per-tank values one field at a time: + // front, back and transition each fall back on the shared gun + const extraPitchLimits = { + ...gunListEntry.extraPitchLimits, + ...gun.extraPitchLimits, + }; + const front = parseExtraPitchLimitValues(extraPitchLimits.front); + const back = parseExtraPitchLimitValues(extraPitchLimits.back); + // A repeated tag overwrites the last one, and one value covers both + const transition = + extraPitchLimits.transition === undefined + ? undefined + : typeof extraPitchLimits.transition === "number" + ? extraPitchLimits.transition + : extraPitchLimits.transition.at(-1)!; const gunArmor: Armor = { thickness: {}, spaced: [] }; const maskName = `gun_${gunModel.toString().padStart(2, "0")}`; const maskEnabled = diff --git a/packages/core/src/blitzkit/api/server/4_mapDefinitions.ts b/packages/core/src/blitzkit/api/server/4_maps.ts similarity index 70% rename from packages/core/src/blitzkit/api/server/4_mapDefinitions.ts rename to packages/core/src/blitzkit/api/server/4_maps.ts index 944b3738d..854539d09 100644 --- a/packages/core/src/blitzkit/api/server/4_mapDefinitions.ts +++ b/packages/core/src/blitzkit/api/server/4_maps.ts @@ -1,10 +1,10 @@ -import { MapDefinitions } from "@blitzkit/core"; -import { Cache } from "./0_base"; -import { ServerBlitzKitAPI3 } from "./3_modelDefinitions"; +import { MapDefinitions } from "@blitzkit/protos"; +import { Cache } from "../cache"; +import { ServerBlitzKitAPI3 } from "./3_models"; export abstract class ServerBlitzKitAPI4 extends ServerBlitzKitAPI3 { @Cache() - async mapDefinitions() { + async maps() { const mapDefinitions = MapDefinitions.create(); for (const key in this.mapsYaml!.maps) { diff --git a/packages/core/src/blitzkit/api/server/5_equipmentDefinitions.ts b/packages/core/src/blitzkit/api/server/5_equipments.ts similarity index 75% rename from packages/core/src/blitzkit/api/server/5_equipmentDefinitions.ts rename to packages/core/src/blitzkit/api/server/5_equipments.ts index 95632096b..22597fbe0 100644 --- a/packages/core/src/blitzkit/api/server/5_equipmentDefinitions.ts +++ b/packages/core/src/blitzkit/api/server/5_equipments.ts @@ -1,10 +1,10 @@ -import { EquipmentDefinitions, EquipmentSlot } from "@blitzkit/core"; -import { Cache } from "./0_base"; -import { ServerBlitzKitAPI4 } from "./4_mapDefinitions"; +import { EquipmentDefinitions, EquipmentSlot } from "@blitzkit/protos"; +import { Cache } from "../cache"; +import { ServerBlitzKitAPI4 } from "./4_maps"; export abstract class ServerBlitzKitAPI5 extends ServerBlitzKitAPI4 { @Cache() - async equipmentDefinitions() { + async equipment() { const equipmentDefinitions = EquipmentDefinitions.create(); Object.entries(this.optionalDevices!.root).forEach( @@ -27,8 +27,10 @@ export abstract class ServerBlitzKitAPI5 extends ServerBlitzKitAPI4 { .map((level) => { return Object.values(level).map((options) => { return { - left: this.optionalDevices!.root[options.device0].id, - right: this.optionalDevices!.root[options.device1].id, + options: [ + this.optionalDevices!.root[options.device0].id, + this.optionalDevices!.root[options.device1].id, + ], } satisfies EquipmentSlot; }); }) diff --git a/packages/core/src/blitzkit/api/server/6_consumableDefinitions.ts b/packages/core/src/blitzkit/api/server/6_consumables.ts similarity index 68% rename from packages/core/src/blitzkit/api/server/6_consumableDefinitions.ts rename to packages/core/src/blitzkit/api/server/6_consumables.ts index d77947276..1ea15ca5b 100644 --- a/packages/core/src/blitzkit/api/server/6_consumableDefinitions.ts +++ b/packages/core/src/blitzkit/api/server/6_consumables.ts @@ -1,31 +1,56 @@ +import { BlitzTankFilterDefinitionCategory } from "@blitzkit/core"; import { - BlitzTankFilterDefinitionCategory, Consumable, + ConsumableCategory, ConsumableDefinitions, -} from "@blitzkit/core"; -import { Cache } from "./0_base"; -import { ServerBlitzKitAPI5 } from "./5_equipmentDefinitions"; +} from "@blitzkit/protos"; +import { Cache } from "../cache"; +import { ServerBlitzKitAPI5 } from "./5_equipments"; + +const CATEGORIES = new Map([ + ["free", ConsumableCategory.CONSUMABLE_CATEGORY_FREE], + ["common", ConsumableCategory.CONSUMABLE_CATEGORY_COMMON], + ["potent", ConsumableCategory.CONSUMABLE_CATEGORY_POTENT], + ["radical", ConsumableCategory.CONSUMABLE_CATEGORY_RADICAL], +]); export abstract class ServerBlitzKitAPI6 extends ServerBlitzKitAPI5 { @Cache() - async consumableDefinitions() { + async consumables() { const consumableDefinitions = ConsumableDefinitions.create(); Object.entries(this.consumablesCommon).forEach(([key, consumable]) => { + const includeRaw = consumable.vehicleFilter?.include.vehicle; + const excludeRaw = consumable.vehicleFilter?.exclude?.vehicle; + // event-only consumables granted by scripts (like on respawn) skip the + // gameModeFilter and instead lock out every tank with an empty tier range + // these are the consumables the new tier 11's mount to go goblin mode + const game_mode_exclusive = + "gameModeFilter" in consumable || + (includeRaw !== undefined && + "minLevel" in includeRaw && + includeRaw.minLevel > includeRaw.maxLevel); + const category = + consumable.category === undefined + ? ConsumableCategory.CONSUMABLE_CATEGORY_FREE + : CATEGORIES.get(consumable.category); + + if (category === undefined) { + throw new SyntaxError( + `Unhandled consumable category ${consumable.category}`, + ); + } + const entry: Consumable = { id: consumable.id, - game_mode_exclusive: "gameModeFilter" in consumable, - cooldown: consumable.script.cooldown ?? 0, - duration: consumable.script.duration, + game_mode_exclusive, + category, name: this.getString(consumable.userString), exclude: [], include: [], }; consumableDefinitions.consumables[consumable.id] = entry; - const includeRaw = consumable.vehicleFilter?.include.vehicle; - const excludeRaw = consumable.vehicleFilter?.exclude?.vehicle; - if (includeRaw) { entry.include = []; diff --git a/packages/core/src/blitzkit/api/server/7_provisionDefinitions.ts b/packages/core/src/blitzkit/api/server/7_provisions.ts similarity index 85% rename from packages/core/src/blitzkit/api/server/7_provisionDefinitions.ts rename to packages/core/src/blitzkit/api/server/7_provisions.ts index d7baf6135..0e7228000 100644 --- a/packages/core/src/blitzkit/api/server/7_provisionDefinitions.ts +++ b/packages/core/src/blitzkit/api/server/7_provisions.ts @@ -1,24 +1,21 @@ -import { - BlitzTankFilterDefinitionCategory, - Provision, - ProvisionDefinitions, -} from "@blitzkit/core"; -import { Cache } from "./0_base"; -import { ServerBlitzKitAPI6 } from "./6_consumableDefinitions"; +import { BlitzTankFilterDefinitionCategory } from "@blitzkit/core"; +import { Provision, ProvisionDefinitions } from "@blitzkit/protos"; +import { Cache } from "../cache"; +import { ServerBlitzKitAPI6 } from "./6_consumables"; export abstract class ServerBlitzKitAPI7 extends ServerBlitzKitAPI6 { @Cache() - async provisionDefinitions() { + async provisions() { const provisionDefinitions = ProvisionDefinitions.create(); Object.entries(this.provisionsCommon).forEach(([key, provision]) => { - const entry: Provision = { + const entry = Provision.create({ id: provision.id, exclude: [], include: [], game_mode_exclusive: "gameModeFilter" in provision, name: this.getString(provision.userString), - }; + }); provisionDefinitions.provisions[provision.id] = entry; const includeRaw = provision.vehicleFilter?.include.vehicle; @@ -101,11 +98,6 @@ export abstract class ServerBlitzKitAPI7 extends ServerBlitzKitAPI6 { }); } } - - if (provision.script.bonusValues?.crewLevelIncrease !== undefined) { - provisionDefinitions.provisions[provision.id].crew = - provision.script.bonusValues?.crewLevelIncrease; - } }); return provisionDefinitions; diff --git a/packages/core/src/blitzkit/api/server/8_skillDefinitions.ts b/packages/core/src/blitzkit/api/server/8_skillDefinitions.ts deleted file mode 100644 index 9198618fa..000000000 --- a/packages/core/src/blitzkit/api/server/8_skillDefinitions.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { BlitzTankClass, SkillDefinitions } from "@blitzkit/core"; - -import { Cache } from "./0_base"; -import { ServerBlitzKitAPI7 } from "./7_provisionDefinitions"; - -export abstract class ServerBlitzKitAPI8 extends ServerBlitzKitAPI7 { - @Cache() - async skillDefinitions() { - const skillDefinitions = SkillDefinitions.create(); - - for (const tankClass in this.tankmenAvatar!.root.skillsByClasses) { - const skills = this.tankmenAvatar!.root.skillsByClasses[tankClass]; - - skillDefinitions.classes[ - this.blitzTankClassToBlitzkit[tankClass as BlitzTankClass] - ] = { skills: skills.split(" ") }; - } - - return skillDefinitions; - } -} diff --git a/packages/core/src/blitzkit/api/server/8_skills.ts b/packages/core/src/blitzkit/api/server/8_skills.ts new file mode 100644 index 000000000..6b45d0674 --- /dev/null +++ b/packages/core/src/blitzkit/api/server/8_skills.ts @@ -0,0 +1,35 @@ +import { BlitzTankClass } from "@blitzkit/core"; + +import { SkillDefinitions } from "@blitzkit/protos"; +import { Cache } from "../cache"; +import { ServerBlitzKitAPI7 } from "./7_provisions"; + +export abstract class ServerBlitzKitAPI8 extends ServerBlitzKitAPI7 { + @Cache() + async skills() { + const skillDefinitions = SkillDefinitions.create(); + + for (const tankClass in this.tankmenAvatar!.root.skillsByClasses) { + const skills = this.tankmenAvatar!.root.skillsByClasses[tankClass]; + + skillDefinitions.classes[ + this.blitzTankClassToBlitzkit[tankClass as BlitzTankClass] + ] = { skills: skills.split(" ") }; + } + + for (const name in this.tankmenAvatar!.root.skills) { + const skill = this.tankmenAvatar!.root.skills[name]; + const values: Record = {}; + + for (const key in skill) { + const value = skill[key as keyof typeof skill]; + + if (typeof value === "number") values[key] = value; + } + + skillDefinitions.constants[name] = { values }; + } + + return skillDefinitions; + } +} diff --git a/packages/core/src/blitzkit/api/server/9_gameDefinitions.ts b/packages/core/src/blitzkit/api/server/9_game.ts similarity index 89% rename from packages/core/src/blitzkit/api/server/9_gameDefinitions.ts rename to packages/core/src/blitzkit/api/server/9_game.ts index 6a423f2cb..395cf3fe1 100644 --- a/packages/core/src/blitzkit/api/server/9_gameDefinitions.ts +++ b/packages/core/src/blitzkit/api/server/9_game.ts @@ -1,11 +1,12 @@ -import { AvailableNationsYaml, GameDefinitions } from "@blitzkit/core"; +import { AvailableNationsYaml } from "@blitzkit/core"; -import { Cache } from "./0_base"; -import { ServerBlitzKitAPI8 } from "./8_skillDefinitions"; +import { GameDefinitions } from "@blitzkit/protos"; +import { Cache } from "../cache"; +import { ServerBlitzKitAPI8 } from "./8_skills"; export abstract class ServerBlitzKitAPI9 extends ServerBlitzKitAPI8 { @Cache() - async gameDefinitions() { + async game() { const gameDefinitions = GameDefinitions.create(); const consumableNativeNames: Record = {}; diff --git a/packages/core/src/blitzkit/api/server/index.ts b/packages/core/src/blitzkit/api/server/index.ts index 3b9c459a9..8a571d236 100644 --- a/packages/core/src/blitzkit/api/server/index.ts +++ b/packages/core/src/blitzkit/api/server/index.ts @@ -1,3 +1,3 @@ -import { ServerBlitzKitAPI10 } from "@blitzkit/core/src/blitzkit/api/server/10_galleryDefinitions"; +import { ServerBlitzKitAPI12 } from "./12_strings"; -export class ServerBlitzKitAPI extends ServerBlitzKitAPI10 {} +export class ServerBlitzKitAPI extends ServerBlitzKitAPI12 {} diff --git a/packages/core/src/blitzkit/availableProvisions.ts b/packages/core/src/blitzkit/availableProvisions.ts index 2359f6f55..5049111cc 100644 --- a/packages/core/src/blitzkit/availableProvisions.ts +++ b/packages/core/src/blitzkit/availableProvisions.ts @@ -1,12 +1,16 @@ -import { GunDefinition, ProvisionDefinitions, TankDefinition } from "../protos"; -import { checkConsumableProvisionInclusivity } from "./checkConsumableProvisionInclusivity"; +import { + GunDefinition, + ProvisionDefinitions, + TankDefinition, +} from "../../../protos/src/blitzkit"; +import { isTankCompatible } from "../tankopedia"; export function availableProvisions( tank: TankDefinition, gun: GunDefinition, - provisionDefinitions: ProvisionDefinitions + provisionDefinitions: ProvisionDefinitions, ) { return Object.values(provisionDefinitions.provisions).filter((provision) => - checkConsumableProvisionInclusivity(provision, tank, gun) + isTankCompatible(tank, gun, provision.include, provision.exclude), ); } diff --git a/packages/core/src/blitzkit/averageDefinitions/constants.ts b/packages/core/src/blitzkit/averageDefinitions/constants.ts deleted file mode 100644 index 79c732fd6..000000000 --- a/packages/core/src/blitzkit/averageDefinitions/constants.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { emptyAllStats } from '../../blitz/constants'; -import { Samples } from '../../protos'; -import type { BlitzkitStats } from '../../statistics'; - -export const emptyAverageDefinitionsAllStats: BlitzkitStats = { - ...emptyAllStats, - battle_life_time: 0, -}; - -export const averageDefinitionsAllStatsKeys = Object.keys( - emptyAverageDefinitionsAllStats, -) as (keyof BlitzkitStats)[]; - -export const emptySamples: Samples = { - d_1: 0, - d_7: 0, - d_30: 0, - d_60: 0, - d_90: 0, - d_120: 0, - total: 0, -}; diff --git a/packages/core/src/blitzkit/averageDefinitions/index.ts b/packages/core/src/blitzkit/averageDefinitions/index.ts deleted file mode 100644 index 188e289d8..000000000 --- a/packages/core/src/blitzkit/averageDefinitions/index.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { staticAsset } from "@blitzkit/core"; -import { fetchPB } from "../../protobuf"; -import { AverageDefinitions } from "../../protos"; - -export interface AverageDefinitionsManifest { - version: 1; - /** - * epoch in days - */ - latest: number; -} - -export async function fetchAverageDefinitions() { - return await fetchPB(staticAsset("averages.pb"), AverageDefinitions); -} - -export * from "./constants"; diff --git a/packages/core/src/blitzkit/createDefaultEnvironment.ts b/packages/core/src/blitzkit/createDefaultEnvironment.ts new file mode 100644 index 000000000..f1408d0dd --- /dev/null +++ b/packages/core/src/blitzkit/createDefaultEnvironment.ts @@ -0,0 +1,11 @@ +import { SkillDefinitions } from "@blitzkit/protos"; +import { createDefaultSkills } from "./createDefaultSkills"; +import { TankEnvironment } from "./tankEnvironment"; + +export function createDefaultEnvironment(skills: SkillDefinitions) { + return { + equalize: false, + distance: 0, + skills: createDefaultSkills(skills), + } satisfies TankEnvironment; +} diff --git a/packages/core/src/blitzkit/createDefaultProvisions.ts b/packages/core/src/blitzkit/createDefaultProvisions.ts index 2719bb2d2..a895e7c73 100644 --- a/packages/core/src/blitzkit/createDefaultProvisions.ts +++ b/packages/core/src/blitzkit/createDefaultProvisions.ts @@ -1,5 +1,10 @@ -import { GunDefinition, ProvisionDefinitions, TankDefinition } from '../protos'; -import { availableProvisions } from './availableProvisions'; +import { + GunDefinition, + ProvisionDefinitions, + TankDefinition, +} from "@blitzkit/protos"; +import { BlitzScripts } from "../types/blitzScripts"; +import { availableProvisions } from "./availableProvisions"; const PROVISION_PREFERENCES = [ 19, // improved fuel @@ -14,9 +19,10 @@ function infinityFallback(value: number) { export function createDefaultProvisions( tank: TankDefinition, gun: GunDefinition, - provisionDefinitions: ProvisionDefinitions, + provisions: ProvisionDefinitions, + scripts: BlitzScripts, ) { - const provisionsList = availableProvisions(tank, gun, provisionDefinitions); + const provisionsList = availableProvisions(tank, gun, provisions); return provisionsList .sort( @@ -24,7 +30,11 @@ export function createDefaultProvisions( infinityFallback(PROVISION_PREFERENCES.indexOf(a.id)) - infinityFallback(PROVISION_PREFERENCES.indexOf(b.id)), ) - .sort((a, b) => (b.crew ?? 0) - (a.crew ?? 0)) + .sort( + (a, b) => + (scripts.provisions[b.id].bonusValues?.crewLevelIncrease ?? 0) - + (scripts.provisions[a.id].bonusValues?.crewLevelIncrease ?? 0), + ) .slice(0, tank.max_provisions) .map(({ id }) => id); } diff --git a/packages/core/src/blitzkit/createDefaultSkills.ts b/packages/core/src/blitzkit/createDefaultSkills.ts index b36611f90..f9d6d0f1b 100644 --- a/packages/core/src/blitzkit/createDefaultSkills.ts +++ b/packages/core/src/blitzkit/createDefaultSkills.ts @@ -1,12 +1,13 @@ -import { SkillDefinitions } from ".."; +import { SkillDefinitions } from "@blitzkit/protos"; import { permanentSkills } from "../blitz/permanentSkills"; +import { MAX_SKILL_LEVEL } from "../config/skills"; export function createDefaultSkills(skillDefinitions: SkillDefinitions) { const skills: Record = {}; Object.values(skillDefinitions.classes).forEach((tankSkills) => { tankSkills.skills.forEach((skill) => { - skills[skill] = permanentSkills.includes(skill) ? 7 : 0; + skills[skill] = permanentSkills.includes(skill) ? MAX_SKILL_LEVEL : 0; }); }); diff --git a/packages/core/src/blitzkit/degressiveStat.ts b/packages/core/src/blitzkit/degressiveStat.ts index 7fdcac47a..b2424e01a 100644 --- a/packages/core/src/blitzkit/degressiveStat.ts +++ b/packages/core/src/blitzkit/degressiveStat.ts @@ -1,3 +1,3 @@ export function degressiveStat(crew: number) { - return 0.875 / (0.00375 * 100 * crew + 0.5) - 1; + return 0.875 / (0.00375 * 100 * crew + 0.5); } diff --git a/packages/core/src/blitzkit/discoveredIdDefinitions.ts b/packages/core/src/blitzkit/discoveredIdDefinitions.ts index 2354afc9f..0ccf9546f 100644 --- a/packages/core/src/blitzkit/discoveredIdDefinitions.ts +++ b/packages/core/src/blitzkit/discoveredIdDefinitions.ts @@ -6,7 +6,7 @@ export interface DiscoveredIdsDefinitions { count: number; } -export async function fetchDiscoveredIdsDefinitions() { +export async function fetchDiscoveredIds() { const response = await fetch(staticAsset("ids/manifest.json")); return response.json() as Promise; } diff --git a/packages/core/src/blitzkit/index.ts b/packages/core/src/blitzkit/index.ts index 20298bcee..3545dbf76 100644 --- a/packages/core/src/blitzkit/index.ts +++ b/packages/core/src/blitzkit/index.ts @@ -1,8 +1,9 @@ export * from "./alias"; +export * from "./api"; export * from "./assertSecret"; export * from "./availableProvisions"; -export * from "./averageDefinitions"; export * from "./coefficient"; +export * from "./createDefaultEnvironment"; export * from "./createDefaultProvisions"; export * from "./createDefaultSkills"; export * from "./degressiveStat"; @@ -12,20 +13,20 @@ export * from "./environment"; export * from "./eventManager"; export * from "./getTimeDaysAgo"; export * from "./isExplosive"; -export * from "./metaSortTank"; +export * from "./metaSortTanks"; export * from "./normalizeBoundingBox"; export * from "./patientFetchJSON"; export * from "./popularTanks"; export * from "./progressiveStat"; -export * from "./resolveDpm"; export * from "./resolvePenetrationCoefficient"; export * from "./reviews"; export * from "./romanize"; export * from "./sluggify"; export * from "./staticAsset"; export * from "./sum"; -export * from "./tankDefinitions"; export * from "./tankBoundingBox"; +export * from "./tankDefinitions"; +export * from "./tankEnvironment"; export * from "./tankIcon"; export * from "./tankNames"; export * from "./unionBoundingBox"; diff --git a/packages/core/src/blitzkit/isExplosive.ts b/packages/core/src/blitzkit/isExplosive.ts index aae220abe..aa8155a7e 100644 --- a/packages/core/src/blitzkit/isExplosive.ts +++ b/packages/core/src/blitzkit/isExplosive.ts @@ -1,4 +1,4 @@ -import { ShellDefinition, ShellType } from "../protos"; +import { ShellDefinition, ShellType } from "../../../protos/src/blitzkit"; export function isExplosive( type: ShellDefinition["type"], diff --git a/packages/core/src/blitzkit/metaSortTank.ts b/packages/core/src/blitzkit/metaSortTanks.ts similarity index 55% rename from packages/core/src/blitzkit/metaSortTank.ts rename to packages/core/src/blitzkit/metaSortTanks.ts index db1137359..4d9001338 100644 --- a/packages/core/src/blitzkit/metaSortTank.ts +++ b/packages/core/src/blitzkit/metaSortTanks.ts @@ -1,13 +1,8 @@ -import { TANK_CLASSES } from "../blitz/constants"; -import { GameDefinitions, TankDefinition, TankType } from "../protos"; +import { GameDefinitions, TankDefinition } from "@blitzkit/protos"; +import { tankClassOrder } from "../config/tankClassOrder"; +import { treeTypeOrder } from "../config/treeTypeOrder"; -const treeTypeOrder = [ - TankType.TANK_TYPE_RESEARCHABLE, - TankType.TANK_TYPE_PREMIUM, - TankType.TANK_TYPE_COLLECTOR, -]; - -export function metaSortTank( +export function metaSortTanks( tanks: TankDefinition[], gameDefinitions: GameDefinitions, ) { @@ -18,7 +13,8 @@ export function metaSortTank( (a, b) => treeTypeOrder.indexOf(b.type) - treeTypeOrder.indexOf(a.type), ) .sort( - (a, b) => TANK_CLASSES.indexOf(b.class) - TANK_CLASSES.indexOf(a.class), + (a, b) => + tankClassOrder.indexOf(b.class) - tankClassOrder.indexOf(a.class), ) .sort( (a, b) => diff --git a/packages/core/src/blitzkit/normalizeBoundingBox.ts b/packages/core/src/blitzkit/normalizeBoundingBox.ts index 8e95ccd55..26ae27ae7 100644 --- a/packages/core/src/blitzkit/normalizeBoundingBox.ts +++ b/packages/core/src/blitzkit/normalizeBoundingBox.ts @@ -1,9 +1,9 @@ -import { BoundingBox, Vector3 } from "../protos"; +import { BoundingBox, ProtoVector3 } from "../../../protos/src/blitzkit"; export function normalizeBoundingBox(boundingBox: BoundingBox) { return { x: boundingBox.max!.x - boundingBox.min!.x, y: boundingBox.max!.y - boundingBox.min!.y, z: boundingBox.max!.z - boundingBox.min!.z, - } satisfies Vector3; + } satisfies ProtoVector3; } diff --git a/packages/core/src/blitzkit/popularTanks.ts b/packages/core/src/blitzkit/popularTanks.ts index 7f7e4a5b1..be4795fae 100644 --- a/packages/core/src/blitzkit/popularTanks.ts +++ b/packages/core/src/blitzkit/popularTanks.ts @@ -1,6 +1,6 @@ import { staticAsset } from "@blitzkit/core"; -import { fetchPB } from "../protobuf"; -import { PopularTanks } from "../protos"; +import { PopularTanks } from "../../../protos/src/blitzkit"; +import { fetchPB } from "../api"; export function fetchPopularTanks() { return fetchPB(staticAsset("definitions/popular-tanks.pb"), PopularTanks); diff --git a/packages/core/src/blitzkit/progressiveStat.ts b/packages/core/src/blitzkit/progressiveStat.ts index 59fb0b420..36dff660f 100644 --- a/packages/core/src/blitzkit/progressiveStat.ts +++ b/packages/core/src/blitzkit/progressiveStat.ts @@ -1,3 +1,3 @@ export function progressiveStat(crew: number) { - return (0.00375 * 100 * crew + 0.5) / 0.875 - 1; + return (0.00375 * 100 * crew + 0.5) / 0.875; } diff --git a/packages/core/src/blitzkit/resolveDpm.ts b/packages/core/src/blitzkit/resolveDpm.ts deleted file mode 100644 index 1d35df571..000000000 --- a/packages/core/src/blitzkit/resolveDpm.ts +++ /dev/null @@ -1,63 +0,0 @@ -import { - GunDefinition, - GunDefinitionAutoReloader, - ShellDefinition, -} from '../protos'; - -export function resolveDpm( - gun: GunDefinition, - shell: ShellDefinition, - damageCoefficient = 1, - reloadCoefficient = 1, - intraClipCoefficient = 1, -) { - const alpha = shell.armor_damage * damageCoefficient; - let dps: number; - - if (gun.gun_type!.$case === 'regular') { - dps = alpha / (reloadCoefficient * gun.gun_type!.value.reload); - } else if (gun.gun_type!.$case === 'auto_loader') { - const damage = alpha * gun.gun_type!.value.shell_count; - let time = gun.gun_type!.value.clip_reload * reloadCoefficient; - - if (gun.burst) { - time += - (gun.gun_type!.value.shell_count / gun.burst.count - 1) * - gun.gun_type!.value.intra_clip * - intraClipCoefficient; - - time += - (gun.gun_type!.value.shell_count / gun.burst.count) * - (gun.burst.count - 1) * - gun.burst.interval; - } else { - time += - (gun.gun_type!.value.shell_count - 1) * - gun.gun_type!.value.intra_clip * - intraClipCoefficient; - } - - dps = damage / time; - } else { - const mostOptimalShell = gun.gun_type!.value.shell_reloads.reduce((current, reloadRaw, index) => { - const reload = - reloadRaw * reloadCoefficient + - (index > 0 - ? (gun.gun_type!.value as GunDefinitionAutoReloader).intra_clip * - intraClipCoefficient - : 0); - - if (current === null || reload < current.reload) { - return { index, reload }; - } - return current; - }, null)!; - - dps = alpha / mostOptimalShell?.reload; - } - - return dps * 60; -} diff --git a/packages/core/src/blitzkit/resolvePenetrationCoefficient.ts b/packages/core/src/blitzkit/resolvePenetrationCoefficient.ts index 56dcb2560..26ee3f65c 100644 --- a/packages/core/src/blitzkit/resolvePenetrationCoefficient.ts +++ b/packages/core/src/blitzkit/resolvePenetrationCoefficient.ts @@ -1,4 +1,4 @@ -import { Equalizer, ShellType } from "../protos"; +import { Equalizer, ShellType } from "@blitzkit/protos"; export function resolvePenetrationCoefficient( calibratedShells: boolean, diff --git a/packages/core/src/blitzkit/reviews.ts b/packages/core/src/blitzkit/reviews.ts index 29a2377d5..785861fdc 100644 --- a/packages/core/src/blitzkit/reviews.ts +++ b/packages/core/src/blitzkit/reviews.ts @@ -1,6 +1,6 @@ import { staticAsset } from "@blitzkit/core"; -import { fetchPB } from "../protobuf"; -import { Reviews } from "../protos"; +import { Reviews } from "../../../protos/src/blitzkit"; +import { fetchPB } from "../api"; export function fetchReviews() { return fetchPB(staticAsset("definitions/reviews.pb"), Reviews); diff --git a/packages/core/src/blitzkit/tankDefinitions/constants.ts b/packages/core/src/blitzkit/tankDefinitions/constants.ts index a92e56743..ff8a5b33f 100644 --- a/packages/core/src/blitzkit/tankDefinitions/constants.ts +++ b/packages/core/src/blitzkit/tankDefinitions/constants.ts @@ -1,5 +1,5 @@ +import { CrewType, ShellType } from "@blitzkit/protos"; import { times } from "lodash-es"; -import { CrewType, ShellType } from "../../protos"; export const SHELL_NAMES: Record = { [ShellType.SHELL_TYPE_AP]: "AP", @@ -16,19 +16,6 @@ export const CREW_MEMBER_NAMES = { } as const; export const TIERS = times(10, (index) => index + 1); -export const TIER_ROMAN_NUMERALS: Record = { - 1: "I", - 2: "II", - 3: "III", - 4: "IV", - 5: "V", - 6: "VI", - 7: "VII", - 8: "VIII", - 9: "IX", - 10: "X", - 11: "XI", -}; export const flags: Record = { ussr: "<:ussr:1218421042033197197>", diff --git a/packages/core/src/blitzkit/tankEnvironment.ts b/packages/core/src/blitzkit/tankEnvironment.ts new file mode 100644 index 000000000..a0f2da159 --- /dev/null +++ b/packages/core/src/blitzkit/tankEnvironment.ts @@ -0,0 +1,5 @@ +export interface TankEnvironment { + equalize: boolean; + distance: number; + skills: Record; +} diff --git a/packages/core/src/blitzkit/tankIcon.ts b/packages/core/src/blitzkit/tankIcon.ts index 8eef1203d..0f8c56db9 100644 --- a/packages/core/src/blitzkit/tankIcon.ts +++ b/packages/core/src/blitzkit/tankIcon.ts @@ -3,5 +3,5 @@ import { alias } from "@blitzkit/core"; export const BLITZKIT_TANK_ICON_SIZE = { width: 40 * 16, height: 30 * 16 }; export function tankIcon(id: number, size: "big" | "small" = "big") { - return alias("api", `/tanks/${id}/icons/${size}.webp`); + return alias("api", `tanks/${id}/icons/${size}.webp`); } diff --git a/packages/core/src/blitzkit/tankNames.ts b/packages/core/src/blitzkit/tankNames.ts index 15462add5..d99af0c37 100644 --- a/packages/core/src/blitzkit/tankNames.ts +++ b/packages/core/src/blitzkit/tankNames.ts @@ -1,25 +1,37 @@ -import { BlitzKitAPI } from "@blitzkit/core"; import locales from "@blitzkit/i18n/locales.json"; -import { deburr } from "lodash-es"; -import { I18nString } from "../protos"; +import { I18nString } from "@blitzkit/protos"; +import { deburr, times } from "lodash-es"; +import { AbstractBlitzKitAPI } from "./api"; -export async function fetchTankNames(api: BlitzKitAPI) { +export async function fetchTankNames(api: AbstractBlitzKitAPI) { const [tankDefinitions, camouflageDefinitions] = await Promise.all([ - api.tankDefinitions(), - api.camouflageDefinitions(), + api.tanks(), + api.camouflages(), ]); const tankDefinitionsArray = Object.values(tankDefinitions.tanks); return await Promise.all( tankDefinitionsArray.map(async (tank) => { - const searchableNameDeburr: I18nString = { locales: {} }; + const name_deburr: I18nString = I18nString.create(); + const camouflages_deburr: I18nString[] = []; + + const camouflages = tank.camouflages.map( + (id) => camouflageDefinitions.camouflages[id].name!, + ); Object.entries(tank.name!).forEach(([key, value]) => { - searchableNameDeburr.locales[key] = deburr(value); + name_deburr.locales[key] = deburr(value); + }); + + camouflages.forEach((camouflage, index) => { + camouflages_deburr[index] = I18nString.create(); + Object.entries(camouflage).forEach(([key, value]) => { + camouflages_deburr[index].locales[key] = deburr(value); + }); }); const searchableNameFull: I18nString = { - locales: { ...tank.name_full?.locales }, + locales: { ...(tank.name_full?.locales ?? tank.name!.locales) }, }; const searchableNameFullDeburr: I18nString = { locales: {} }; @@ -29,36 +41,33 @@ export async function fetchTankNames(api: BlitzKitAPI) { return { id: tank.id, - name: tank.name, - searchableName: tank.name, - searchableNameDeburr, - searchableNameFull, - searchableNameFullDeburr, - camouflages: tank.camouflages - ?.map((id) => - locales.supported.map( - ({ locale }) => - camouflageDefinitions.camouflages[id]?.name!.locales[locale], - ), - ) - .flat() - .filter(Boolean) - .map(deburr) - .join(" "), - treeType: tank.type, + slug: tank.slug, + dev_name: tank.dev_name, + + name: tank.name!, + name_deburr, + + camouflages, + camouflages_deburr, }; }), ); } export const SEARCH_KEYS = [ + "id", + "slug", + "dev_name", + ...locales.supported .map(({ locale }) => [ - `searchableName.locales.${locale}`, - `searchableNameDeburr.locales.${locale}`, - `searchableNameFull.locales.${locale}`, - `searchableNameFullDeburr.locales.${locale}`, + `name.locales.${locale}`, + `name_deburr.locales.${locale}`, + + ...times(8, (index) => [ + `camouflages.${index}.locales.${locale}`, + `camouflages_deburr.${index}.locales.${locale}`, + ]), ]) - .flat(), - "camouflages", + .flat(2), ]; diff --git a/packages/core/src/blitzkit/unionBoundingBox.ts b/packages/core/src/blitzkit/unionBoundingBox.ts index 63abaef21..c07ffb2d0 100644 --- a/packages/core/src/blitzkit/unionBoundingBox.ts +++ b/packages/core/src/blitzkit/unionBoundingBox.ts @@ -1,4 +1,4 @@ -import { BoundingBox } from "../protos"; +import { BoundingBox } from "../../../protos/src/blitzkit"; export function unionBoundingBox(a: BoundingBox, b: BoundingBox) { return { diff --git a/packages/core/src/blitzkit/uniqueGuns.ts b/packages/core/src/blitzkit/uniqueGuns.ts index 40cb2e787..6867fb89f 100644 --- a/packages/core/src/blitzkit/uniqueGuns.ts +++ b/packages/core/src/blitzkit/uniqueGuns.ts @@ -1,5 +1,5 @@ import { forEachRight } from 'lodash-es'; -import { GunDefinition, TurretDefinition } from '../protos'; +import { GunDefinition, TurretDefinition } from '../../../protos/src/blitzkit'; export function uniqueGuns(turrets: TurretDefinition[]) { const gunIds = new Set(); diff --git a/packages/core/src/blitzkit/vfs/client.ts b/packages/core/src/blitzkit/vfs/client.ts deleted file mode 100644 index 9a314801b..000000000 --- a/packages/core/src/blitzkit/vfs/client.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { assertSecret } from "@blitzkit/core"; -import { AbstractVFS } from "./abstract"; -import { LocalVFS } from "./local"; -import { ZipVFS } from "./zip"; - -export async function createClientVFS() { - let vfs: AbstractVFS; - - if (import.meta.env.CLIENT_PROVIDER === "zip") { - vfs = new ZipVFS(assertSecret(import.meta.env.CLIENT_SOURCE)); - } else { - vfs = new LocalVFS(assertSecret(import.meta.env.CLIENT_DIR)); - } - - await vfs.init(); - - return vfs; -} diff --git a/packages/core/src/config/gunTypeOrder.ts b/packages/core/src/config/gunTypeOrder.ts new file mode 100644 index 000000000..b10fc89cb --- /dev/null +++ b/packages/core/src/config/gunTypeOrder.ts @@ -0,0 +1,8 @@ +import { GunDefinition } from "@blitzkit/protos"; +import { CaseType } from "../types"; + +export const gunTypeOrder: CaseType[] = [ + "regular", + "auto_loader", + "auto_reloader", +]; diff --git a/packages/core/src/config/index.ts b/packages/core/src/config/index.ts new file mode 100644 index 000000000..7aa910d6e --- /dev/null +++ b/packages/core/src/config/index.ts @@ -0,0 +1,4 @@ +export * from "./gunTypeOrder"; +export * from "./skills"; +export * from "./tankClassOrder"; +export * from "./treeTypeOrder"; diff --git a/packages/core/src/config/skills.ts b/packages/core/src/config/skills.ts new file mode 100644 index 000000000..36febccbf --- /dev/null +++ b/packages/core/src/config/skills.ts @@ -0,0 +1 @@ +export const MAX_SKILL_LEVEL = 7; diff --git a/packages/core/src/config/tankClassOrder.ts b/packages/core/src/config/tankClassOrder.ts new file mode 100644 index 000000000..14458a7ee --- /dev/null +++ b/packages/core/src/config/tankClassOrder.ts @@ -0,0 +1,8 @@ +import { TankClass } from "@blitzkit/protos"; + +export const tankClassOrder = [ + TankClass.TANK_CLASS_LIGHT, + TankClass.TANK_CLASS_MEDIUM, + TankClass.TANK_CLASS_HEAVY, + TankClass.TANK_CLASS_TANK_DESTROYER, +]; diff --git a/packages/core/src/config/treeTypeOrder.ts b/packages/core/src/config/treeTypeOrder.ts new file mode 100644 index 000000000..fbf11a7ce --- /dev/null +++ b/packages/core/src/config/treeTypeOrder.ts @@ -0,0 +1,7 @@ +import { TankType } from "@blitzkit/protos"; + +export const treeTypeOrder = [ + TankType.TANK_TYPE_RESEARCHABLE, + TankType.TANK_TYPE_PREMIUM, + TankType.TANK_TYPE_COLLECTOR, +]; diff --git a/packages/core/src/index.ts b/packages/core/src/index.ts index cb8712d9a..553924bf8 100644 --- a/packages/core/src/index.ts +++ b/packages/core/src/index.ts @@ -1,9 +1,10 @@ +export * from "./api"; export * from "./blitz"; export * from "./blitzkit"; +export * from "./config"; export * from "./math"; export * from "./patreon"; -export * from "./protobuf"; -export * from "./protos"; export * from "./statistics"; export * from "./streams"; +export * from "./tankopedia"; export * from "./types"; diff --git a/packages/core/src/protobuf/index.ts b/packages/core/src/protobuf/index.ts deleted file mode 100644 index 997a198cb..000000000 --- a/packages/core/src/protobuf/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from './fetchPB'; -export * from './pbMap'; diff --git a/packages/core/src/protobuf/pbMap.ts b/packages/core/src/protobuf/pbMap.ts deleted file mode 100644 index 74e031394..000000000 --- a/packages/core/src/protobuf/pbMap.ts +++ /dev/null @@ -1 +0,0 @@ -export type PBMap = T[keyof T] extends number ? T[keyof T] : never; diff --git a/packages/core/src/protos/average_definitions.proto b/packages/core/src/protos/average_definitions.proto deleted file mode 100644 index 693edab02..000000000 --- a/packages/core/src/protos/average_definitions.proto +++ /dev/null @@ -1,47 +0,0 @@ -syntax = "proto2"; - -package blitzkit; - -message AverageDefinitions { - map averages = 1; - required Samples samples = 2; - required uint64 time = 3; -} - -message AverageDefinitionsEntry { - required AverageDefinitionsAllStats mu = 1; - required AverageDefinitionsAllStats sigma = 2; - required AverageDefinitionsAllStats r = 3; - required Samples samples = 4; -} - -message AverageDefinitionsAllStats { - required float battles = 1; - required float capture_points = 2; - required float damage_dealt = 3; - required float damage_received = 4; - required float dropped_capture_points = 5; - required float frags = 6; - required float frags8p = 7; - required float hits = 8; - required float losses = 9; - required float max_frags = 10; - required float max_xp = 11; - required float shots = 12; - required float spotted = 13; - required float survived_battles = 14; - required float win_and_survived = 15; - required float wins = 16; - required float xp = 17; - required float battle_life_time = 18; -} - -message Samples { - required uint32 d_1 = 1; - required uint32 d_7 = 2; - required uint32 d_30 = 3; - required uint32 d_60 = 4; - required uint32 d_90 = 5; - required uint32 d_120 = 6; - required uint32 total = 7; -} \ No newline at end of file diff --git a/packages/core/src/protos/average_definitions.ts b/packages/core/src/protos/average_definitions.ts deleted file mode 100644 index a9c044921..000000000 --- a/packages/core/src/protos/average_definitions.ts +++ /dev/null @@ -1,923 +0,0 @@ -// Code generated by protoc-gen-ts_proto. DO NOT EDIT. -// versions: -// protoc-gen-ts_proto v2.7.7 -// protoc v3.19.6 -// source: average_definitions.proto - -/* eslint-disable */ -import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire"; - -export const protobufPackage = "blitzkit"; - -export interface AverageDefinitions { - averages: { [key: number]: AverageDefinitionsEntry }; - samples: Samples | undefined; - time: number; -} - -export interface AverageDefinitions_AveragesEntry { - key: number; - value: AverageDefinitionsEntry | undefined; -} - -export interface AverageDefinitionsEntry { - mu: AverageDefinitionsAllStats | undefined; - sigma: AverageDefinitionsAllStats | undefined; - r: AverageDefinitionsAllStats | undefined; - samples: Samples | undefined; -} - -export interface AverageDefinitionsAllStats { - battles: number; - capture_points: number; - damage_dealt: number; - damage_received: number; - dropped_capture_points: number; - frags: number; - frags8p: number; - hits: number; - losses: number; - max_frags: number; - max_xp: number; - shots: number; - spotted: number; - survived_battles: number; - win_and_survived: number; - wins: number; - xp: number; - battle_life_time: number; -} - -export interface Samples { - d_1: number; - d_7: number; - d_30: number; - d_60: number; - d_90: number; - d_120: number; - total: number; -} - -function createBaseAverageDefinitions(): AverageDefinitions { - return { averages: {}, samples: undefined, time: 0 }; -} - -export const AverageDefinitions: MessageFns = { - encode(message: AverageDefinitions, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { - Object.entries(message.averages).forEach(([key, value]) => { - AverageDefinitions_AveragesEntry.encode({ key: key as any, value }, writer.uint32(10).fork()).join(); - }); - if (message.samples !== undefined) { - Samples.encode(message.samples, writer.uint32(18).fork()).join(); - } - if (message.time !== 0) { - writer.uint32(24).uint64(message.time); - } - return writer; - }, - - decode(input: BinaryReader | Uint8Array, length?: number): AverageDefinitions { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseAverageDefinitions(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (tag !== 10) { - break; - } - - const entry1 = AverageDefinitions_AveragesEntry.decode(reader, reader.uint32()); - if (entry1.value !== undefined) { - message.averages[entry1.key] = entry1.value; - } - continue; - } - case 2: { - if (tag !== 18) { - break; - } - - message.samples = Samples.decode(reader, reader.uint32()); - continue; - } - case 3: { - if (tag !== 24) { - break; - } - - message.time = longToNumber(reader.uint64()); - continue; - } - } - if ((tag & 7) === 4 || tag === 0) { - break; - } - reader.skip(tag & 7); - } - return message; - }, - - fromJSON(object: any): AverageDefinitions { - return { - averages: isObject(object.averages) - ? Object.entries(object.averages).reduce<{ [key: number]: AverageDefinitionsEntry }>((acc, [key, value]) => { - acc[globalThis.Number(key)] = AverageDefinitionsEntry.fromJSON(value); - return acc; - }, {}) - : {}, - samples: isSet(object.samples) ? Samples.fromJSON(object.samples) : undefined, - time: isSet(object.time) ? globalThis.Number(object.time) : 0, - }; - }, - - toJSON(message: AverageDefinitions): unknown { - const obj: any = {}; - if (message.averages) { - const entries = Object.entries(message.averages); - if (entries.length > 0) { - obj.averages = {}; - entries.forEach(([k, v]) => { - obj.averages[k] = AverageDefinitionsEntry.toJSON(v); - }); - } - } - if (message.samples !== undefined) { - obj.samples = Samples.toJSON(message.samples); - } - if (message.time !== 0) { - obj.time = Math.round(message.time); - } - return obj; - }, - - create, I>>(base?: I): AverageDefinitions { - return AverageDefinitions.fromPartial(base ?? ({} as any)); - }, - fromPartial, I>>(object: I): AverageDefinitions { - const message = createBaseAverageDefinitions(); - message.averages = Object.entries(object.averages ?? {}).reduce<{ [key: number]: AverageDefinitionsEntry }>( - (acc, [key, value]) => { - if (value !== undefined) { - acc[globalThis.Number(key)] = AverageDefinitionsEntry.fromPartial(value); - } - return acc; - }, - {}, - ); - message.samples = (object.samples !== undefined && object.samples !== null) - ? Samples.fromPartial(object.samples) - : undefined; - message.time = object.time ?? 0; - return message; - }, -}; - -function createBaseAverageDefinitions_AveragesEntry(): AverageDefinitions_AveragesEntry { - return { key: 0, value: undefined }; -} - -export const AverageDefinitions_AveragesEntry: MessageFns = { - encode(message: AverageDefinitions_AveragesEntry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { - if (message.key !== 0) { - writer.uint32(8).uint32(message.key); - } - if (message.value !== undefined) { - AverageDefinitionsEntry.encode(message.value, writer.uint32(18).fork()).join(); - } - return writer; - }, - - decode(input: BinaryReader | Uint8Array, length?: number): AverageDefinitions_AveragesEntry { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseAverageDefinitions_AveragesEntry(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (tag !== 8) { - break; - } - - message.key = reader.uint32(); - continue; - } - case 2: { - if (tag !== 18) { - break; - } - - message.value = AverageDefinitionsEntry.decode(reader, reader.uint32()); - continue; - } - } - if ((tag & 7) === 4 || tag === 0) { - break; - } - reader.skip(tag & 7); - } - return message; - }, - - fromJSON(object: any): AverageDefinitions_AveragesEntry { - return { - key: isSet(object.key) ? globalThis.Number(object.key) : 0, - value: isSet(object.value) ? AverageDefinitionsEntry.fromJSON(object.value) : undefined, - }; - }, - - toJSON(message: AverageDefinitions_AveragesEntry): unknown { - const obj: any = {}; - if (message.key !== 0) { - obj.key = Math.round(message.key); - } - if (message.value !== undefined) { - obj.value = AverageDefinitionsEntry.toJSON(message.value); - } - return obj; - }, - - create, I>>( - base?: I, - ): AverageDefinitions_AveragesEntry { - return AverageDefinitions_AveragesEntry.fromPartial(base ?? ({} as any)); - }, - fromPartial, I>>( - object: I, - ): AverageDefinitions_AveragesEntry { - const message = createBaseAverageDefinitions_AveragesEntry(); - message.key = object.key ?? 0; - message.value = (object.value !== undefined && object.value !== null) - ? AverageDefinitionsEntry.fromPartial(object.value) - : undefined; - return message; - }, -}; - -function createBaseAverageDefinitionsEntry(): AverageDefinitionsEntry { - return { mu: undefined, sigma: undefined, r: undefined, samples: undefined }; -} - -export const AverageDefinitionsEntry: MessageFns = { - encode(message: AverageDefinitionsEntry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { - if (message.mu !== undefined) { - AverageDefinitionsAllStats.encode(message.mu, writer.uint32(10).fork()).join(); - } - if (message.sigma !== undefined) { - AverageDefinitionsAllStats.encode(message.sigma, writer.uint32(18).fork()).join(); - } - if (message.r !== undefined) { - AverageDefinitionsAllStats.encode(message.r, writer.uint32(26).fork()).join(); - } - if (message.samples !== undefined) { - Samples.encode(message.samples, writer.uint32(34).fork()).join(); - } - return writer; - }, - - decode(input: BinaryReader | Uint8Array, length?: number): AverageDefinitionsEntry { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseAverageDefinitionsEntry(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (tag !== 10) { - break; - } - - message.mu = AverageDefinitionsAllStats.decode(reader, reader.uint32()); - continue; - } - case 2: { - if (tag !== 18) { - break; - } - - message.sigma = AverageDefinitionsAllStats.decode(reader, reader.uint32()); - continue; - } - case 3: { - if (tag !== 26) { - break; - } - - message.r = AverageDefinitionsAllStats.decode(reader, reader.uint32()); - continue; - } - case 4: { - if (tag !== 34) { - break; - } - - message.samples = Samples.decode(reader, reader.uint32()); - continue; - } - } - if ((tag & 7) === 4 || tag === 0) { - break; - } - reader.skip(tag & 7); - } - return message; - }, - - fromJSON(object: any): AverageDefinitionsEntry { - return { - mu: isSet(object.mu) ? AverageDefinitionsAllStats.fromJSON(object.mu) : undefined, - sigma: isSet(object.sigma) ? AverageDefinitionsAllStats.fromJSON(object.sigma) : undefined, - r: isSet(object.r) ? AverageDefinitionsAllStats.fromJSON(object.r) : undefined, - samples: isSet(object.samples) ? Samples.fromJSON(object.samples) : undefined, - }; - }, - - toJSON(message: AverageDefinitionsEntry): unknown { - const obj: any = {}; - if (message.mu !== undefined) { - obj.mu = AverageDefinitionsAllStats.toJSON(message.mu); - } - if (message.sigma !== undefined) { - obj.sigma = AverageDefinitionsAllStats.toJSON(message.sigma); - } - if (message.r !== undefined) { - obj.r = AverageDefinitionsAllStats.toJSON(message.r); - } - if (message.samples !== undefined) { - obj.samples = Samples.toJSON(message.samples); - } - return obj; - }, - - create, I>>(base?: I): AverageDefinitionsEntry { - return AverageDefinitionsEntry.fromPartial(base ?? ({} as any)); - }, - fromPartial, I>>(object: I): AverageDefinitionsEntry { - const message = createBaseAverageDefinitionsEntry(); - message.mu = (object.mu !== undefined && object.mu !== null) - ? AverageDefinitionsAllStats.fromPartial(object.mu) - : undefined; - message.sigma = (object.sigma !== undefined && object.sigma !== null) - ? AverageDefinitionsAllStats.fromPartial(object.sigma) - : undefined; - message.r = (object.r !== undefined && object.r !== null) - ? AverageDefinitionsAllStats.fromPartial(object.r) - : undefined; - message.samples = (object.samples !== undefined && object.samples !== null) - ? Samples.fromPartial(object.samples) - : undefined; - return message; - }, -}; - -function createBaseAverageDefinitionsAllStats(): AverageDefinitionsAllStats { - return { - battles: 0, - capture_points: 0, - damage_dealt: 0, - damage_received: 0, - dropped_capture_points: 0, - frags: 0, - frags8p: 0, - hits: 0, - losses: 0, - max_frags: 0, - max_xp: 0, - shots: 0, - spotted: 0, - survived_battles: 0, - win_and_survived: 0, - wins: 0, - xp: 0, - battle_life_time: 0, - }; -} - -export const AverageDefinitionsAllStats: MessageFns = { - encode(message: AverageDefinitionsAllStats, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { - if (message.battles !== 0) { - writer.uint32(13).float(message.battles); - } - if (message.capture_points !== 0) { - writer.uint32(21).float(message.capture_points); - } - if (message.damage_dealt !== 0) { - writer.uint32(29).float(message.damage_dealt); - } - if (message.damage_received !== 0) { - writer.uint32(37).float(message.damage_received); - } - if (message.dropped_capture_points !== 0) { - writer.uint32(45).float(message.dropped_capture_points); - } - if (message.frags !== 0) { - writer.uint32(53).float(message.frags); - } - if (message.frags8p !== 0) { - writer.uint32(61).float(message.frags8p); - } - if (message.hits !== 0) { - writer.uint32(69).float(message.hits); - } - if (message.losses !== 0) { - writer.uint32(77).float(message.losses); - } - if (message.max_frags !== 0) { - writer.uint32(85).float(message.max_frags); - } - if (message.max_xp !== 0) { - writer.uint32(93).float(message.max_xp); - } - if (message.shots !== 0) { - writer.uint32(101).float(message.shots); - } - if (message.spotted !== 0) { - writer.uint32(109).float(message.spotted); - } - if (message.survived_battles !== 0) { - writer.uint32(117).float(message.survived_battles); - } - if (message.win_and_survived !== 0) { - writer.uint32(125).float(message.win_and_survived); - } - if (message.wins !== 0) { - writer.uint32(133).float(message.wins); - } - if (message.xp !== 0) { - writer.uint32(141).float(message.xp); - } - if (message.battle_life_time !== 0) { - writer.uint32(149).float(message.battle_life_time); - } - return writer; - }, - - decode(input: BinaryReader | Uint8Array, length?: number): AverageDefinitionsAllStats { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseAverageDefinitionsAllStats(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (tag !== 13) { - break; - } - - message.battles = reader.float(); - continue; - } - case 2: { - if (tag !== 21) { - break; - } - - message.capture_points = reader.float(); - continue; - } - case 3: { - if (tag !== 29) { - break; - } - - message.damage_dealt = reader.float(); - continue; - } - case 4: { - if (tag !== 37) { - break; - } - - message.damage_received = reader.float(); - continue; - } - case 5: { - if (tag !== 45) { - break; - } - - message.dropped_capture_points = reader.float(); - continue; - } - case 6: { - if (tag !== 53) { - break; - } - - message.frags = reader.float(); - continue; - } - case 7: { - if (tag !== 61) { - break; - } - - message.frags8p = reader.float(); - continue; - } - case 8: { - if (tag !== 69) { - break; - } - - message.hits = reader.float(); - continue; - } - case 9: { - if (tag !== 77) { - break; - } - - message.losses = reader.float(); - continue; - } - case 10: { - if (tag !== 85) { - break; - } - - message.max_frags = reader.float(); - continue; - } - case 11: { - if (tag !== 93) { - break; - } - - message.max_xp = reader.float(); - continue; - } - case 12: { - if (tag !== 101) { - break; - } - - message.shots = reader.float(); - continue; - } - case 13: { - if (tag !== 109) { - break; - } - - message.spotted = reader.float(); - continue; - } - case 14: { - if (tag !== 117) { - break; - } - - message.survived_battles = reader.float(); - continue; - } - case 15: { - if (tag !== 125) { - break; - } - - message.win_and_survived = reader.float(); - continue; - } - case 16: { - if (tag !== 133) { - break; - } - - message.wins = reader.float(); - continue; - } - case 17: { - if (tag !== 141) { - break; - } - - message.xp = reader.float(); - continue; - } - case 18: { - if (tag !== 149) { - break; - } - - message.battle_life_time = reader.float(); - continue; - } - } - if ((tag & 7) === 4 || tag === 0) { - break; - } - reader.skip(tag & 7); - } - return message; - }, - - fromJSON(object: any): AverageDefinitionsAllStats { - return { - battles: isSet(object.battles) ? globalThis.Number(object.battles) : 0, - capture_points: isSet(object.capture_points) ? globalThis.Number(object.capture_points) : 0, - damage_dealt: isSet(object.damage_dealt) ? globalThis.Number(object.damage_dealt) : 0, - damage_received: isSet(object.damage_received) ? globalThis.Number(object.damage_received) : 0, - dropped_capture_points: isSet(object.dropped_capture_points) - ? globalThis.Number(object.dropped_capture_points) - : 0, - frags: isSet(object.frags) ? globalThis.Number(object.frags) : 0, - frags8p: isSet(object.frags8p) ? globalThis.Number(object.frags8p) : 0, - hits: isSet(object.hits) ? globalThis.Number(object.hits) : 0, - losses: isSet(object.losses) ? globalThis.Number(object.losses) : 0, - max_frags: isSet(object.max_frags) ? globalThis.Number(object.max_frags) : 0, - max_xp: isSet(object.max_xp) ? globalThis.Number(object.max_xp) : 0, - shots: isSet(object.shots) ? globalThis.Number(object.shots) : 0, - spotted: isSet(object.spotted) ? globalThis.Number(object.spotted) : 0, - survived_battles: isSet(object.survived_battles) ? globalThis.Number(object.survived_battles) : 0, - win_and_survived: isSet(object.win_and_survived) ? globalThis.Number(object.win_and_survived) : 0, - wins: isSet(object.wins) ? globalThis.Number(object.wins) : 0, - xp: isSet(object.xp) ? globalThis.Number(object.xp) : 0, - battle_life_time: isSet(object.battle_life_time) ? globalThis.Number(object.battle_life_time) : 0, - }; - }, - - toJSON(message: AverageDefinitionsAllStats): unknown { - const obj: any = {}; - if (message.battles !== 0) { - obj.battles = message.battles; - } - if (message.capture_points !== 0) { - obj.capture_points = message.capture_points; - } - if (message.damage_dealt !== 0) { - obj.damage_dealt = message.damage_dealt; - } - if (message.damage_received !== 0) { - obj.damage_received = message.damage_received; - } - if (message.dropped_capture_points !== 0) { - obj.dropped_capture_points = message.dropped_capture_points; - } - if (message.frags !== 0) { - obj.frags = message.frags; - } - if (message.frags8p !== 0) { - obj.frags8p = message.frags8p; - } - if (message.hits !== 0) { - obj.hits = message.hits; - } - if (message.losses !== 0) { - obj.losses = message.losses; - } - if (message.max_frags !== 0) { - obj.max_frags = message.max_frags; - } - if (message.max_xp !== 0) { - obj.max_xp = message.max_xp; - } - if (message.shots !== 0) { - obj.shots = message.shots; - } - if (message.spotted !== 0) { - obj.spotted = message.spotted; - } - if (message.survived_battles !== 0) { - obj.survived_battles = message.survived_battles; - } - if (message.win_and_survived !== 0) { - obj.win_and_survived = message.win_and_survived; - } - if (message.wins !== 0) { - obj.wins = message.wins; - } - if (message.xp !== 0) { - obj.xp = message.xp; - } - if (message.battle_life_time !== 0) { - obj.battle_life_time = message.battle_life_time; - } - return obj; - }, - - create, I>>(base?: I): AverageDefinitionsAllStats { - return AverageDefinitionsAllStats.fromPartial(base ?? ({} as any)); - }, - fromPartial, I>>(object: I): AverageDefinitionsAllStats { - const message = createBaseAverageDefinitionsAllStats(); - message.battles = object.battles ?? 0; - message.capture_points = object.capture_points ?? 0; - message.damage_dealt = object.damage_dealt ?? 0; - message.damage_received = object.damage_received ?? 0; - message.dropped_capture_points = object.dropped_capture_points ?? 0; - message.frags = object.frags ?? 0; - message.frags8p = object.frags8p ?? 0; - message.hits = object.hits ?? 0; - message.losses = object.losses ?? 0; - message.max_frags = object.max_frags ?? 0; - message.max_xp = object.max_xp ?? 0; - message.shots = object.shots ?? 0; - message.spotted = object.spotted ?? 0; - message.survived_battles = object.survived_battles ?? 0; - message.win_and_survived = object.win_and_survived ?? 0; - message.wins = object.wins ?? 0; - message.xp = object.xp ?? 0; - message.battle_life_time = object.battle_life_time ?? 0; - return message; - }, -}; - -function createBaseSamples(): Samples { - return { d_1: 0, d_7: 0, d_30: 0, d_60: 0, d_90: 0, d_120: 0, total: 0 }; -} - -export const Samples: MessageFns = { - encode(message: Samples, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { - if (message.d_1 !== 0) { - writer.uint32(8).uint32(message.d_1); - } - if (message.d_7 !== 0) { - writer.uint32(16).uint32(message.d_7); - } - if (message.d_30 !== 0) { - writer.uint32(24).uint32(message.d_30); - } - if (message.d_60 !== 0) { - writer.uint32(32).uint32(message.d_60); - } - if (message.d_90 !== 0) { - writer.uint32(40).uint32(message.d_90); - } - if (message.d_120 !== 0) { - writer.uint32(48).uint32(message.d_120); - } - if (message.total !== 0) { - writer.uint32(56).uint32(message.total); - } - return writer; - }, - - decode(input: BinaryReader | Uint8Array, length?: number): Samples { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseSamples(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (tag !== 8) { - break; - } - - message.d_1 = reader.uint32(); - continue; - } - case 2: { - if (tag !== 16) { - break; - } - - message.d_7 = reader.uint32(); - continue; - } - case 3: { - if (tag !== 24) { - break; - } - - message.d_30 = reader.uint32(); - continue; - } - case 4: { - if (tag !== 32) { - break; - } - - message.d_60 = reader.uint32(); - continue; - } - case 5: { - if (tag !== 40) { - break; - } - - message.d_90 = reader.uint32(); - continue; - } - case 6: { - if (tag !== 48) { - break; - } - - message.d_120 = reader.uint32(); - continue; - } - case 7: { - if (tag !== 56) { - break; - } - - message.total = reader.uint32(); - continue; - } - } - if ((tag & 7) === 4 || tag === 0) { - break; - } - reader.skip(tag & 7); - } - return message; - }, - - fromJSON(object: any): Samples { - return { - d_1: isSet(object.d_1) ? globalThis.Number(object.d_1) : 0, - d_7: isSet(object.d_7) ? globalThis.Number(object.d_7) : 0, - d_30: isSet(object.d_30) ? globalThis.Number(object.d_30) : 0, - d_60: isSet(object.d_60) ? globalThis.Number(object.d_60) : 0, - d_90: isSet(object.d_90) ? globalThis.Number(object.d_90) : 0, - d_120: isSet(object.d_120) ? globalThis.Number(object.d_120) : 0, - total: isSet(object.total) ? globalThis.Number(object.total) : 0, - }; - }, - - toJSON(message: Samples): unknown { - const obj: any = {}; - if (message.d_1 !== 0) { - obj.d_1 = Math.round(message.d_1); - } - if (message.d_7 !== 0) { - obj.d_7 = Math.round(message.d_7); - } - if (message.d_30 !== 0) { - obj.d_30 = Math.round(message.d_30); - } - if (message.d_60 !== 0) { - obj.d_60 = Math.round(message.d_60); - } - if (message.d_90 !== 0) { - obj.d_90 = Math.round(message.d_90); - } - if (message.d_120 !== 0) { - obj.d_120 = Math.round(message.d_120); - } - if (message.total !== 0) { - obj.total = Math.round(message.total); - } - return obj; - }, - - create, I>>(base?: I): Samples { - return Samples.fromPartial(base ?? ({} as any)); - }, - fromPartial, I>>(object: I): Samples { - const message = createBaseSamples(); - message.d_1 = object.d_1 ?? 0; - message.d_7 = object.d_7 ?? 0; - message.d_30 = object.d_30 ?? 0; - message.d_60 = object.d_60 ?? 0; - message.d_90 = object.d_90 ?? 0; - message.d_120 = object.d_120 ?? 0; - message.total = object.total ?? 0; - return message; - }, -}; - -type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; - -export type DeepPartial = T extends Builtin ? T - : T extends globalThis.Array ? globalThis.Array> - : T extends ReadonlyArray ? ReadonlyArray> - : T extends { $case: string; value: unknown } ? { $case: T["$case"]; value?: DeepPartial } - : T extends {} ? { [K in keyof T]?: DeepPartial } - : Partial; - -type KeysOfUnion = T extends T ? keyof T : never; -export type Exact = P extends Builtin ? P - : P & { [K in keyof P]: Exact } & { [K in Exclude>]: never }; - -function longToNumber(int64: { toString(): string }): number { - const num = globalThis.Number(int64.toString()); - if (num > globalThis.Number.MAX_SAFE_INTEGER) { - throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER"); - } - if (num < globalThis.Number.MIN_SAFE_INTEGER) { - throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER"); - } - return num; -} - -function isObject(value: any): boolean { - return typeof value === "object" && value !== null; -} - -function isSet(value: any): boolean { - return value !== null && value !== undefined; -} - -export interface MessageFns { - encode(message: T, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): T; - fromJSON(object: any): T; - toJSON(message: T): unknown; - create, I>>(base?: I): T; - fromPartial, I>>(object: I): T; -} diff --git a/packages/core/src/protos/camouflage_definitions.ts b/packages/core/src/protos/camouflage_definitions.ts deleted file mode 100644 index 14466cb1c..000000000 --- a/packages/core/src/protos/camouflage_definitions.ts +++ /dev/null @@ -1,369 +0,0 @@ -// Code generated by protoc-gen-ts_proto. DO NOT EDIT. -// versions: -// protoc-gen-ts_proto v2.7.7 -// protoc v3.19.6 -// source: camouflage_definitions.proto - -/* eslint-disable */ -import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire"; -import { I18nString } from "./i18n"; - -export const protobufPackage = "blitzkit"; - -export interface CamouflageDefinitions { - camouflages: { [key: number]: Camouflage }; -} - -export interface CamouflageDefinitions_CamouflagesEntry { - key: number; - value: Camouflage | undefined; -} - -export interface Camouflage { - id: number; - name: I18nString | undefined; - tank_name?: I18nString | undefined; - tank_name_full?: I18nString | undefined; - tank_id?: number | undefined; - attachment?: boolean | undefined; -} - -function createBaseCamouflageDefinitions(): CamouflageDefinitions { - return { camouflages: {} }; -} - -export const CamouflageDefinitions: MessageFns = { - encode(message: CamouflageDefinitions, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { - Object.entries(message.camouflages).forEach(([key, value]) => { - CamouflageDefinitions_CamouflagesEntry.encode({ key: key as any, value }, writer.uint32(10).fork()).join(); - }); - return writer; - }, - - decode(input: BinaryReader | Uint8Array, length?: number): CamouflageDefinitions { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseCamouflageDefinitions(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (tag !== 10) { - break; - } - - const entry1 = CamouflageDefinitions_CamouflagesEntry.decode(reader, reader.uint32()); - if (entry1.value !== undefined) { - message.camouflages[entry1.key] = entry1.value; - } - continue; - } - } - if ((tag & 7) === 4 || tag === 0) { - break; - } - reader.skip(tag & 7); - } - return message; - }, - - fromJSON(object: any): CamouflageDefinitions { - return { - camouflages: isObject(object.camouflages) - ? Object.entries(object.camouflages).reduce<{ [key: number]: Camouflage }>((acc, [key, value]) => { - acc[globalThis.Number(key)] = Camouflage.fromJSON(value); - return acc; - }, {}) - : {}, - }; - }, - - toJSON(message: CamouflageDefinitions): unknown { - const obj: any = {}; - if (message.camouflages) { - const entries = Object.entries(message.camouflages); - if (entries.length > 0) { - obj.camouflages = {}; - entries.forEach(([k, v]) => { - obj.camouflages[k] = Camouflage.toJSON(v); - }); - } - } - return obj; - }, - - create, I>>(base?: I): CamouflageDefinitions { - return CamouflageDefinitions.fromPartial(base ?? ({} as any)); - }, - fromPartial, I>>(object: I): CamouflageDefinitions { - const message = createBaseCamouflageDefinitions(); - message.camouflages = Object.entries(object.camouflages ?? {}).reduce<{ [key: number]: Camouflage }>( - (acc, [key, value]) => { - if (value !== undefined) { - acc[globalThis.Number(key)] = Camouflage.fromPartial(value); - } - return acc; - }, - {}, - ); - return message; - }, -}; - -function createBaseCamouflageDefinitions_CamouflagesEntry(): CamouflageDefinitions_CamouflagesEntry { - return { key: 0, value: undefined }; -} - -export const CamouflageDefinitions_CamouflagesEntry: MessageFns = { - encode(message: CamouflageDefinitions_CamouflagesEntry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { - if (message.key !== 0) { - writer.uint32(8).uint32(message.key); - } - if (message.value !== undefined) { - Camouflage.encode(message.value, writer.uint32(18).fork()).join(); - } - return writer; - }, - - decode(input: BinaryReader | Uint8Array, length?: number): CamouflageDefinitions_CamouflagesEntry { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseCamouflageDefinitions_CamouflagesEntry(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (tag !== 8) { - break; - } - - message.key = reader.uint32(); - continue; - } - case 2: { - if (tag !== 18) { - break; - } - - message.value = Camouflage.decode(reader, reader.uint32()); - continue; - } - } - if ((tag & 7) === 4 || tag === 0) { - break; - } - reader.skip(tag & 7); - } - return message; - }, - - fromJSON(object: any): CamouflageDefinitions_CamouflagesEntry { - return { - key: isSet(object.key) ? globalThis.Number(object.key) : 0, - value: isSet(object.value) ? Camouflage.fromJSON(object.value) : undefined, - }; - }, - - toJSON(message: CamouflageDefinitions_CamouflagesEntry): unknown { - const obj: any = {}; - if (message.key !== 0) { - obj.key = Math.round(message.key); - } - if (message.value !== undefined) { - obj.value = Camouflage.toJSON(message.value); - } - return obj; - }, - - create, I>>( - base?: I, - ): CamouflageDefinitions_CamouflagesEntry { - return CamouflageDefinitions_CamouflagesEntry.fromPartial(base ?? ({} as any)); - }, - fromPartial, I>>( - object: I, - ): CamouflageDefinitions_CamouflagesEntry { - const message = createBaseCamouflageDefinitions_CamouflagesEntry(); - message.key = object.key ?? 0; - message.value = (object.value !== undefined && object.value !== null) - ? Camouflage.fromPartial(object.value) - : undefined; - return message; - }, -}; - -function createBaseCamouflage(): Camouflage { - return { id: 0, name: undefined, tank_name: undefined, tank_name_full: undefined, tank_id: 0, attachment: false }; -} - -export const Camouflage: MessageFns = { - encode(message: Camouflage, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { - if (message.id !== 0) { - writer.uint32(8).uint32(message.id); - } - if (message.name !== undefined) { - I18nString.encode(message.name, writer.uint32(18).fork()).join(); - } - if (message.tank_name !== undefined) { - I18nString.encode(message.tank_name, writer.uint32(26).fork()).join(); - } - if (message.tank_name_full !== undefined) { - I18nString.encode(message.tank_name_full, writer.uint32(34).fork()).join(); - } - if (message.tank_id !== undefined && message.tank_id !== 0) { - writer.uint32(40).uint32(message.tank_id); - } - if (message.attachment !== undefined && message.attachment !== false) { - writer.uint32(48).bool(message.attachment); - } - return writer; - }, - - decode(input: BinaryReader | Uint8Array, length?: number): Camouflage { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseCamouflage(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (tag !== 8) { - break; - } - - message.id = reader.uint32(); - continue; - } - case 2: { - if (tag !== 18) { - break; - } - - message.name = I18nString.decode(reader, reader.uint32()); - continue; - } - case 3: { - if (tag !== 26) { - break; - } - - message.tank_name = I18nString.decode(reader, reader.uint32()); - continue; - } - case 4: { - if (tag !== 34) { - break; - } - - message.tank_name_full = I18nString.decode(reader, reader.uint32()); - continue; - } - case 5: { - if (tag !== 40) { - break; - } - - message.tank_id = reader.uint32(); - continue; - } - case 6: { - if (tag !== 48) { - break; - } - - message.attachment = reader.bool(); - continue; - } - } - if ((tag & 7) === 4 || tag === 0) { - break; - } - reader.skip(tag & 7); - } - return message; - }, - - fromJSON(object: any): Camouflage { - return { - id: isSet(object.id) ? globalThis.Number(object.id) : 0, - name: isSet(object.name) ? I18nString.fromJSON(object.name) : undefined, - tank_name: isSet(object.tank_name) ? I18nString.fromJSON(object.tank_name) : undefined, - tank_name_full: isSet(object.tank_name_full) ? I18nString.fromJSON(object.tank_name_full) : undefined, - tank_id: isSet(object.tank_id) ? globalThis.Number(object.tank_id) : 0, - attachment: isSet(object.attachment) ? globalThis.Boolean(object.attachment) : false, - }; - }, - - toJSON(message: Camouflage): unknown { - const obj: any = {}; - if (message.id !== 0) { - obj.id = Math.round(message.id); - } - if (message.name !== undefined) { - obj.name = I18nString.toJSON(message.name); - } - if (message.tank_name !== undefined) { - obj.tank_name = I18nString.toJSON(message.tank_name); - } - if (message.tank_name_full !== undefined) { - obj.tank_name_full = I18nString.toJSON(message.tank_name_full); - } - if (message.tank_id !== undefined && message.tank_id !== 0) { - obj.tank_id = Math.round(message.tank_id); - } - if (message.attachment !== undefined && message.attachment !== false) { - obj.attachment = message.attachment; - } - return obj; - }, - - create, I>>(base?: I): Camouflage { - return Camouflage.fromPartial(base ?? ({} as any)); - }, - fromPartial, I>>(object: I): Camouflage { - const message = createBaseCamouflage(); - message.id = object.id ?? 0; - message.name = (object.name !== undefined && object.name !== null) - ? I18nString.fromPartial(object.name) - : undefined; - message.tank_name = (object.tank_name !== undefined && object.tank_name !== null) - ? I18nString.fromPartial(object.tank_name) - : undefined; - message.tank_name_full = (object.tank_name_full !== undefined && object.tank_name_full !== null) - ? I18nString.fromPartial(object.tank_name_full) - : undefined; - message.tank_id = object.tank_id ?? 0; - message.attachment = object.attachment ?? false; - return message; - }, -}; - -type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; - -export type DeepPartial = T extends Builtin ? T - : T extends globalThis.Array ? globalThis.Array> - : T extends ReadonlyArray ? ReadonlyArray> - : T extends { $case: string; value: unknown } ? { $case: T["$case"]; value?: DeepPartial } - : T extends {} ? { [K in keyof T]?: DeepPartial } - : Partial; - -type KeysOfUnion = T extends T ? keyof T : never; -export type Exact = P extends Builtin ? P - : P & { [K in keyof P]: Exact } & { [K in Exclude>]: never }; - -function isObject(value: any): boolean { - return typeof value === "object" && value !== null; -} - -function isSet(value: any): boolean { - return value !== null && value !== undefined; -} - -export interface MessageFns { - encode(message: T, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): T; - fromJSON(object: any): T; - toJSON(message: T): unknown; - create, I>>(base?: I): T; - fromPartial, I>>(object: I): T; -} diff --git a/packages/core/src/protos/consumable_definitions.ts b/packages/core/src/protos/consumable_definitions.ts deleted file mode 100644 index 9e36defd2..000000000 --- a/packages/core/src/protos/consumable_definitions.ts +++ /dev/null @@ -1,861 +0,0 @@ -// Code generated by protoc-gen-ts_proto. DO NOT EDIT. -// versions: -// protoc-gen-ts_proto v2.7.7 -// protoc v3.19.6 -// source: consumable_definitions.proto - -/* eslint-disable */ -import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire"; -import { I18nString } from "./i18n"; - -export const protobufPackage = "blitzkit"; - -export enum ConsumableTankCategoryFilterCategory { - CONSUMABLE_TANK_CATEGORY_FILTER_CATEGORY_CLIP = 0, -} - -export function consumableTankCategoryFilterCategoryFromJSON(object: any): ConsumableTankCategoryFilterCategory { - switch (object) { - case 0: - case "CONSUMABLE_TANK_CATEGORY_FILTER_CATEGORY_CLIP": - return ConsumableTankCategoryFilterCategory.CONSUMABLE_TANK_CATEGORY_FILTER_CATEGORY_CLIP; - default: - throw new globalThis.Error( - "Unrecognized enum value " + object + " for enum ConsumableTankCategoryFilterCategory", - ); - } -} - -export function consumableTankCategoryFilterCategoryToJSON(object: ConsumableTankCategoryFilterCategory): string { - switch (object) { - case ConsumableTankCategoryFilterCategory.CONSUMABLE_TANK_CATEGORY_FILTER_CATEGORY_CLIP: - return "CONSUMABLE_TANK_CATEGORY_FILTER_CATEGORY_CLIP"; - default: - throw new globalThis.Error( - "Unrecognized enum value " + object + " for enum ConsumableTankCategoryFilterCategory", - ); - } -} - -export interface ConsumableDefinitions { - consumables: { [key: number]: Consumable }; -} - -export interface ConsumableDefinitions_ConsumablesEntry { - key: number; - value: Consumable | undefined; -} - -export interface Consumable { - id: number; - name: I18nString | undefined; - cooldown: number; - duration?: number | undefined; - game_mode_exclusive: boolean; - include: ConsumableTankFilter[]; - exclude: ConsumableTankFilter[]; -} - -export interface ConsumableTankFilter { - filter_type?: - | { $case: "tiers"; value: ConsumableTankTierFilter } - | { $case: "ids"; value: ConsumableTankIdsFilter } - | { $case: "categories"; value: ConsumableTankCategoryFilter } - | { $case: "nations"; value: ConsumableTankNationFilter } - | undefined; -} - -export interface ConsumableTankTierFilter { - min: number; - max: number; -} - -export interface ConsumableTankIdsFilter { - ids: number[]; -} - -export interface ConsumableTankCategoryFilter { - categories: ConsumableTankCategoryFilterCategory[]; -} - -export interface ConsumableTankNationFilter { - nations: string[]; -} - -function createBaseConsumableDefinitions(): ConsumableDefinitions { - return { consumables: {} }; -} - -export const ConsumableDefinitions: MessageFns = { - encode(message: ConsumableDefinitions, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { - Object.entries(message.consumables).forEach(([key, value]) => { - ConsumableDefinitions_ConsumablesEntry.encode({ key: key as any, value }, writer.uint32(10).fork()).join(); - }); - return writer; - }, - - decode(input: BinaryReader | Uint8Array, length?: number): ConsumableDefinitions { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseConsumableDefinitions(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (tag !== 10) { - break; - } - - const entry1 = ConsumableDefinitions_ConsumablesEntry.decode(reader, reader.uint32()); - if (entry1.value !== undefined) { - message.consumables[entry1.key] = entry1.value; - } - continue; - } - } - if ((tag & 7) === 4 || tag === 0) { - break; - } - reader.skip(tag & 7); - } - return message; - }, - - fromJSON(object: any): ConsumableDefinitions { - return { - consumables: isObject(object.consumables) - ? Object.entries(object.consumables).reduce<{ [key: number]: Consumable }>((acc, [key, value]) => { - acc[globalThis.Number(key)] = Consumable.fromJSON(value); - return acc; - }, {}) - : {}, - }; - }, - - toJSON(message: ConsumableDefinitions): unknown { - const obj: any = {}; - if (message.consumables) { - const entries = Object.entries(message.consumables); - if (entries.length > 0) { - obj.consumables = {}; - entries.forEach(([k, v]) => { - obj.consumables[k] = Consumable.toJSON(v); - }); - } - } - return obj; - }, - - create, I>>(base?: I): ConsumableDefinitions { - return ConsumableDefinitions.fromPartial(base ?? ({} as any)); - }, - fromPartial, I>>(object: I): ConsumableDefinitions { - const message = createBaseConsumableDefinitions(); - message.consumables = Object.entries(object.consumables ?? {}).reduce<{ [key: number]: Consumable }>( - (acc, [key, value]) => { - if (value !== undefined) { - acc[globalThis.Number(key)] = Consumable.fromPartial(value); - } - return acc; - }, - {}, - ); - return message; - }, -}; - -function createBaseConsumableDefinitions_ConsumablesEntry(): ConsumableDefinitions_ConsumablesEntry { - return { key: 0, value: undefined }; -} - -export const ConsumableDefinitions_ConsumablesEntry: MessageFns = { - encode(message: ConsumableDefinitions_ConsumablesEntry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { - if (message.key !== 0) { - writer.uint32(8).uint32(message.key); - } - if (message.value !== undefined) { - Consumable.encode(message.value, writer.uint32(18).fork()).join(); - } - return writer; - }, - - decode(input: BinaryReader | Uint8Array, length?: number): ConsumableDefinitions_ConsumablesEntry { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseConsumableDefinitions_ConsumablesEntry(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (tag !== 8) { - break; - } - - message.key = reader.uint32(); - continue; - } - case 2: { - if (tag !== 18) { - break; - } - - message.value = Consumable.decode(reader, reader.uint32()); - continue; - } - } - if ((tag & 7) === 4 || tag === 0) { - break; - } - reader.skip(tag & 7); - } - return message; - }, - - fromJSON(object: any): ConsumableDefinitions_ConsumablesEntry { - return { - key: isSet(object.key) ? globalThis.Number(object.key) : 0, - value: isSet(object.value) ? Consumable.fromJSON(object.value) : undefined, - }; - }, - - toJSON(message: ConsumableDefinitions_ConsumablesEntry): unknown { - const obj: any = {}; - if (message.key !== 0) { - obj.key = Math.round(message.key); - } - if (message.value !== undefined) { - obj.value = Consumable.toJSON(message.value); - } - return obj; - }, - - create, I>>( - base?: I, - ): ConsumableDefinitions_ConsumablesEntry { - return ConsumableDefinitions_ConsumablesEntry.fromPartial(base ?? ({} as any)); - }, - fromPartial, I>>( - object: I, - ): ConsumableDefinitions_ConsumablesEntry { - const message = createBaseConsumableDefinitions_ConsumablesEntry(); - message.key = object.key ?? 0; - message.value = (object.value !== undefined && object.value !== null) - ? Consumable.fromPartial(object.value) - : undefined; - return message; - }, -}; - -function createBaseConsumable(): Consumable { - return { id: 0, name: undefined, cooldown: 0, duration: 0, game_mode_exclusive: false, include: [], exclude: [] }; -} - -export const Consumable: MessageFns = { - encode(message: Consumable, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { - if (message.id !== 0) { - writer.uint32(8).uint32(message.id); - } - if (message.name !== undefined) { - I18nString.encode(message.name, writer.uint32(18).fork()).join(); - } - if (message.cooldown !== 0) { - writer.uint32(24).uint32(message.cooldown); - } - if (message.duration !== undefined && message.duration !== 0) { - writer.uint32(37).float(message.duration); - } - if (message.game_mode_exclusive !== false) { - writer.uint32(40).bool(message.game_mode_exclusive); - } - for (const v of message.include) { - ConsumableTankFilter.encode(v!, writer.uint32(50).fork()).join(); - } - for (const v of message.exclude) { - ConsumableTankFilter.encode(v!, writer.uint32(58).fork()).join(); - } - return writer; - }, - - decode(input: BinaryReader | Uint8Array, length?: number): Consumable { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseConsumable(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (tag !== 8) { - break; - } - - message.id = reader.uint32(); - continue; - } - case 2: { - if (tag !== 18) { - break; - } - - message.name = I18nString.decode(reader, reader.uint32()); - continue; - } - case 3: { - if (tag !== 24) { - break; - } - - message.cooldown = reader.uint32(); - continue; - } - case 4: { - if (tag !== 37) { - break; - } - - message.duration = reader.float(); - continue; - } - case 5: { - if (tag !== 40) { - break; - } - - message.game_mode_exclusive = reader.bool(); - continue; - } - case 6: { - if (tag !== 50) { - break; - } - - message.include.push(ConsumableTankFilter.decode(reader, reader.uint32())); - continue; - } - case 7: { - if (tag !== 58) { - break; - } - - message.exclude.push(ConsumableTankFilter.decode(reader, reader.uint32())); - continue; - } - } - if ((tag & 7) === 4 || tag === 0) { - break; - } - reader.skip(tag & 7); - } - return message; - }, - - fromJSON(object: any): Consumable { - return { - id: isSet(object.id) ? globalThis.Number(object.id) : 0, - name: isSet(object.name) ? I18nString.fromJSON(object.name) : undefined, - cooldown: isSet(object.cooldown) ? globalThis.Number(object.cooldown) : 0, - duration: isSet(object.duration) ? globalThis.Number(object.duration) : 0, - game_mode_exclusive: isSet(object.game_mode_exclusive) ? globalThis.Boolean(object.game_mode_exclusive) : false, - include: globalThis.Array.isArray(object?.include) - ? object.include.map((e: any) => ConsumableTankFilter.fromJSON(e)) - : [], - exclude: globalThis.Array.isArray(object?.exclude) - ? object.exclude.map((e: any) => ConsumableTankFilter.fromJSON(e)) - : [], - }; - }, - - toJSON(message: Consumable): unknown { - const obj: any = {}; - if (message.id !== 0) { - obj.id = Math.round(message.id); - } - if (message.name !== undefined) { - obj.name = I18nString.toJSON(message.name); - } - if (message.cooldown !== 0) { - obj.cooldown = Math.round(message.cooldown); - } - if (message.duration !== undefined && message.duration !== 0) { - obj.duration = message.duration; - } - if (message.game_mode_exclusive !== false) { - obj.game_mode_exclusive = message.game_mode_exclusive; - } - if (message.include?.length) { - obj.include = message.include.map((e) => ConsumableTankFilter.toJSON(e)); - } - if (message.exclude?.length) { - obj.exclude = message.exclude.map((e) => ConsumableTankFilter.toJSON(e)); - } - return obj; - }, - - create, I>>(base?: I): Consumable { - return Consumable.fromPartial(base ?? ({} as any)); - }, - fromPartial, I>>(object: I): Consumable { - const message = createBaseConsumable(); - message.id = object.id ?? 0; - message.name = (object.name !== undefined && object.name !== null) - ? I18nString.fromPartial(object.name) - : undefined; - message.cooldown = object.cooldown ?? 0; - message.duration = object.duration ?? 0; - message.game_mode_exclusive = object.game_mode_exclusive ?? false; - message.include = object.include?.map((e) => ConsumableTankFilter.fromPartial(e)) || []; - message.exclude = object.exclude?.map((e) => ConsumableTankFilter.fromPartial(e)) || []; - return message; - }, -}; - -function createBaseConsumableTankFilter(): ConsumableTankFilter { - return { filter_type: undefined }; -} - -export const ConsumableTankFilter: MessageFns = { - encode(message: ConsumableTankFilter, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { - switch (message.filter_type?.$case) { - case "tiers": - ConsumableTankTierFilter.encode(message.filter_type.value, writer.uint32(10).fork()).join(); - break; - case "ids": - ConsumableTankIdsFilter.encode(message.filter_type.value, writer.uint32(18).fork()).join(); - break; - case "categories": - ConsumableTankCategoryFilter.encode(message.filter_type.value, writer.uint32(26).fork()).join(); - break; - case "nations": - ConsumableTankNationFilter.encode(message.filter_type.value, writer.uint32(34).fork()).join(); - break; - } - return writer; - }, - - decode(input: BinaryReader | Uint8Array, length?: number): ConsumableTankFilter { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseConsumableTankFilter(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (tag !== 10) { - break; - } - - message.filter_type = { $case: "tiers", value: ConsumableTankTierFilter.decode(reader, reader.uint32()) }; - continue; - } - case 2: { - if (tag !== 18) { - break; - } - - message.filter_type = { $case: "ids", value: ConsumableTankIdsFilter.decode(reader, reader.uint32()) }; - continue; - } - case 3: { - if (tag !== 26) { - break; - } - - message.filter_type = { - $case: "categories", - value: ConsumableTankCategoryFilter.decode(reader, reader.uint32()), - }; - continue; - } - case 4: { - if (tag !== 34) { - break; - } - - message.filter_type = { $case: "nations", value: ConsumableTankNationFilter.decode(reader, reader.uint32()) }; - continue; - } - } - if ((tag & 7) === 4 || tag === 0) { - break; - } - reader.skip(tag & 7); - } - return message; - }, - - fromJSON(object: any): ConsumableTankFilter { - return { - filter_type: isSet(object.tiers) - ? { $case: "tiers", value: ConsumableTankTierFilter.fromJSON(object.tiers) } - : isSet(object.ids) - ? { $case: "ids", value: ConsumableTankIdsFilter.fromJSON(object.ids) } - : isSet(object.categories) - ? { $case: "categories", value: ConsumableTankCategoryFilter.fromJSON(object.categories) } - : isSet(object.nations) - ? { $case: "nations", value: ConsumableTankNationFilter.fromJSON(object.nations) } - : undefined, - }; - }, - - toJSON(message: ConsumableTankFilter): unknown { - const obj: any = {}; - if (message.filter_type?.$case === "tiers") { - obj.tiers = ConsumableTankTierFilter.toJSON(message.filter_type.value); - } else if (message.filter_type?.$case === "ids") { - obj.ids = ConsumableTankIdsFilter.toJSON(message.filter_type.value); - } else if (message.filter_type?.$case === "categories") { - obj.categories = ConsumableTankCategoryFilter.toJSON(message.filter_type.value); - } else if (message.filter_type?.$case === "nations") { - obj.nations = ConsumableTankNationFilter.toJSON(message.filter_type.value); - } - return obj; - }, - - create, I>>(base?: I): ConsumableTankFilter { - return ConsumableTankFilter.fromPartial(base ?? ({} as any)); - }, - fromPartial, I>>(object: I): ConsumableTankFilter { - const message = createBaseConsumableTankFilter(); - switch (object.filter_type?.$case) { - case "tiers": { - if (object.filter_type?.value !== undefined && object.filter_type?.value !== null) { - message.filter_type = { - $case: "tiers", - value: ConsumableTankTierFilter.fromPartial(object.filter_type.value), - }; - } - break; - } - case "ids": { - if (object.filter_type?.value !== undefined && object.filter_type?.value !== null) { - message.filter_type = { $case: "ids", value: ConsumableTankIdsFilter.fromPartial(object.filter_type.value) }; - } - break; - } - case "categories": { - if (object.filter_type?.value !== undefined && object.filter_type?.value !== null) { - message.filter_type = { - $case: "categories", - value: ConsumableTankCategoryFilter.fromPartial(object.filter_type.value), - }; - } - break; - } - case "nations": { - if (object.filter_type?.value !== undefined && object.filter_type?.value !== null) { - message.filter_type = { - $case: "nations", - value: ConsumableTankNationFilter.fromPartial(object.filter_type.value), - }; - } - break; - } - } - return message; - }, -}; - -function createBaseConsumableTankTierFilter(): ConsumableTankTierFilter { - return { min: 0, max: 0 }; -} - -export const ConsumableTankTierFilter: MessageFns = { - encode(message: ConsumableTankTierFilter, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { - if (message.min !== 0) { - writer.uint32(8).uint32(message.min); - } - if (message.max !== 0) { - writer.uint32(16).uint32(message.max); - } - return writer; - }, - - decode(input: BinaryReader | Uint8Array, length?: number): ConsumableTankTierFilter { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseConsumableTankTierFilter(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (tag !== 8) { - break; - } - - message.min = reader.uint32(); - continue; - } - case 2: { - if (tag !== 16) { - break; - } - - message.max = reader.uint32(); - continue; - } - } - if ((tag & 7) === 4 || tag === 0) { - break; - } - reader.skip(tag & 7); - } - return message; - }, - - fromJSON(object: any): ConsumableTankTierFilter { - return { - min: isSet(object.min) ? globalThis.Number(object.min) : 0, - max: isSet(object.max) ? globalThis.Number(object.max) : 0, - }; - }, - - toJSON(message: ConsumableTankTierFilter): unknown { - const obj: any = {}; - if (message.min !== 0) { - obj.min = Math.round(message.min); - } - if (message.max !== 0) { - obj.max = Math.round(message.max); - } - return obj; - }, - - create, I>>(base?: I): ConsumableTankTierFilter { - return ConsumableTankTierFilter.fromPartial(base ?? ({} as any)); - }, - fromPartial, I>>(object: I): ConsumableTankTierFilter { - const message = createBaseConsumableTankTierFilter(); - message.min = object.min ?? 0; - message.max = object.max ?? 0; - return message; - }, -}; - -function createBaseConsumableTankIdsFilter(): ConsumableTankIdsFilter { - return { ids: [] }; -} - -export const ConsumableTankIdsFilter: MessageFns = { - encode(message: ConsumableTankIdsFilter, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { - for (const v of message.ids) { - writer.uint32(8).uint32(v!); - } - return writer; - }, - - decode(input: BinaryReader | Uint8Array, length?: number): ConsumableTankIdsFilter { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseConsumableTankIdsFilter(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (tag === 8) { - message.ids.push(reader.uint32()); - - continue; - } - - if (tag === 10) { - const end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) { - message.ids.push(reader.uint32()); - } - - continue; - } - - break; - } - } - if ((tag & 7) === 4 || tag === 0) { - break; - } - reader.skip(tag & 7); - } - return message; - }, - - fromJSON(object: any): ConsumableTankIdsFilter { - return { ids: globalThis.Array.isArray(object?.ids) ? object.ids.map((e: any) => globalThis.Number(e)) : [] }; - }, - - toJSON(message: ConsumableTankIdsFilter): unknown { - const obj: any = {}; - if (message.ids?.length) { - obj.ids = message.ids.map((e) => Math.round(e)); - } - return obj; - }, - - create, I>>(base?: I): ConsumableTankIdsFilter { - return ConsumableTankIdsFilter.fromPartial(base ?? ({} as any)); - }, - fromPartial, I>>(object: I): ConsumableTankIdsFilter { - const message = createBaseConsumableTankIdsFilter(); - message.ids = object.ids?.map((e) => e) || []; - return message; - }, -}; - -function createBaseConsumableTankCategoryFilter(): ConsumableTankCategoryFilter { - return { categories: [] }; -} - -export const ConsumableTankCategoryFilter: MessageFns = { - encode(message: ConsumableTankCategoryFilter, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { - for (const v of message.categories) { - writer.uint32(8).int32(v!); - } - return writer; - }, - - decode(input: BinaryReader | Uint8Array, length?: number): ConsumableTankCategoryFilter { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseConsumableTankCategoryFilter(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (tag === 8) { - message.categories.push(reader.int32() as any); - - continue; - } - - if (tag === 10) { - const end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) { - message.categories.push(reader.int32() as any); - } - - continue; - } - - break; - } - } - if ((tag & 7) === 4 || tag === 0) { - break; - } - reader.skip(tag & 7); - } - return message; - }, - - fromJSON(object: any): ConsumableTankCategoryFilter { - return { - categories: globalThis.Array.isArray(object?.categories) - ? object.categories.map((e: any) => consumableTankCategoryFilterCategoryFromJSON(e)) - : [], - }; - }, - - toJSON(message: ConsumableTankCategoryFilter): unknown { - const obj: any = {}; - if (message.categories?.length) { - obj.categories = message.categories.map((e) => consumableTankCategoryFilterCategoryToJSON(e)); - } - return obj; - }, - - create, I>>(base?: I): ConsumableTankCategoryFilter { - return ConsumableTankCategoryFilter.fromPartial(base ?? ({} as any)); - }, - fromPartial, I>>(object: I): ConsumableTankCategoryFilter { - const message = createBaseConsumableTankCategoryFilter(); - message.categories = object.categories?.map((e) => e) || []; - return message; - }, -}; - -function createBaseConsumableTankNationFilter(): ConsumableTankNationFilter { - return { nations: [] }; -} - -export const ConsumableTankNationFilter: MessageFns = { - encode(message: ConsumableTankNationFilter, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { - for (const v of message.nations) { - writer.uint32(10).string(v!); - } - return writer; - }, - - decode(input: BinaryReader | Uint8Array, length?: number): ConsumableTankNationFilter { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseConsumableTankNationFilter(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (tag !== 10) { - break; - } - - message.nations.push(reader.string()); - continue; - } - } - if ((tag & 7) === 4 || tag === 0) { - break; - } - reader.skip(tag & 7); - } - return message; - }, - - fromJSON(object: any): ConsumableTankNationFilter { - return { - nations: globalThis.Array.isArray(object?.nations) ? object.nations.map((e: any) => globalThis.String(e)) : [], - }; - }, - - toJSON(message: ConsumableTankNationFilter): unknown { - const obj: any = {}; - if (message.nations?.length) { - obj.nations = message.nations; - } - return obj; - }, - - create, I>>(base?: I): ConsumableTankNationFilter { - return ConsumableTankNationFilter.fromPartial(base ?? ({} as any)); - }, - fromPartial, I>>(object: I): ConsumableTankNationFilter { - const message = createBaseConsumableTankNationFilter(); - message.nations = object.nations?.map((e) => e) || []; - return message; - }, -}; - -type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; - -export type DeepPartial = T extends Builtin ? T - : T extends globalThis.Array ? globalThis.Array> - : T extends ReadonlyArray ? ReadonlyArray> - : T extends { $case: string; value: unknown } ? { $case: T["$case"]; value?: DeepPartial } - : T extends {} ? { [K in keyof T]?: DeepPartial } - : Partial; - -type KeysOfUnion = T extends T ? keyof T : never; -export type Exact = P extends Builtin ? P - : P & { [K in keyof P]: Exact } & { [K in Exclude>]: never }; - -function isObject(value: any): boolean { - return typeof value === "object" && value !== null; -} - -function isSet(value: any): boolean { - return value !== null && value !== undefined; -} - -export interface MessageFns { - encode(message: T, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): T; - fromJSON(object: any): T; - toJSON(message: T): unknown; - create, I>>(base?: I): T; - fromPartial, I>>(object: I): T; -} diff --git a/packages/core/src/protos/equipment_definitions.ts b/packages/core/src/protos/equipment_definitions.ts deleted file mode 100644 index 68e31f243..000000000 --- a/packages/core/src/protos/equipment_definitions.ts +++ /dev/null @@ -1,570 +0,0 @@ -// Code generated by protoc-gen-ts_proto. DO NOT EDIT. -// versions: -// protoc-gen-ts_proto v2.7.7 -// protoc v3.19.6 -// source: equipment_definitions.proto - -/* eslint-disable */ -import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire"; -import { I18nString } from "./i18n"; - -export const protobufPackage = "blitzkit"; - -export interface EquipmentDefinitions { - presets: { [key: string]: EquipmentPreset }; - equipments: { [key: number]: Equipment }; -} - -export interface EquipmentDefinitions_PresetsEntry { - key: string; - value: EquipmentPreset | undefined; -} - -export interface EquipmentDefinitions_EquipmentsEntry { - key: number; - value: Equipment | undefined; -} - -export interface Equipment { - name: I18nString | undefined; - description: I18nString | undefined; -} - -export interface EquipmentPreset { - slots: EquipmentSlot[]; -} - -export interface EquipmentSlot { - left: number; - right: number; -} - -function createBaseEquipmentDefinitions(): EquipmentDefinitions { - return { presets: {}, equipments: {} }; -} - -export const EquipmentDefinitions: MessageFns = { - encode(message: EquipmentDefinitions, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { - Object.entries(message.presets).forEach(([key, value]) => { - EquipmentDefinitions_PresetsEntry.encode({ key: key as any, value }, writer.uint32(10).fork()).join(); - }); - Object.entries(message.equipments).forEach(([key, value]) => { - EquipmentDefinitions_EquipmentsEntry.encode({ key: key as any, value }, writer.uint32(18).fork()).join(); - }); - return writer; - }, - - decode(input: BinaryReader | Uint8Array, length?: number): EquipmentDefinitions { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEquipmentDefinitions(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (tag !== 10) { - break; - } - - const entry1 = EquipmentDefinitions_PresetsEntry.decode(reader, reader.uint32()); - if (entry1.value !== undefined) { - message.presets[entry1.key] = entry1.value; - } - continue; - } - case 2: { - if (tag !== 18) { - break; - } - - const entry2 = EquipmentDefinitions_EquipmentsEntry.decode(reader, reader.uint32()); - if (entry2.value !== undefined) { - message.equipments[entry2.key] = entry2.value; - } - continue; - } - } - if ((tag & 7) === 4 || tag === 0) { - break; - } - reader.skip(tag & 7); - } - return message; - }, - - fromJSON(object: any): EquipmentDefinitions { - return { - presets: isObject(object.presets) - ? Object.entries(object.presets).reduce<{ [key: string]: EquipmentPreset }>((acc, [key, value]) => { - acc[key] = EquipmentPreset.fromJSON(value); - return acc; - }, {}) - : {}, - equipments: isObject(object.equipments) - ? Object.entries(object.equipments).reduce<{ [key: number]: Equipment }>((acc, [key, value]) => { - acc[globalThis.Number(key)] = Equipment.fromJSON(value); - return acc; - }, {}) - : {}, - }; - }, - - toJSON(message: EquipmentDefinitions): unknown { - const obj: any = {}; - if (message.presets) { - const entries = Object.entries(message.presets); - if (entries.length > 0) { - obj.presets = {}; - entries.forEach(([k, v]) => { - obj.presets[k] = EquipmentPreset.toJSON(v); - }); - } - } - if (message.equipments) { - const entries = Object.entries(message.equipments); - if (entries.length > 0) { - obj.equipments = {}; - entries.forEach(([k, v]) => { - obj.equipments[k] = Equipment.toJSON(v); - }); - } - } - return obj; - }, - - create, I>>(base?: I): EquipmentDefinitions { - return EquipmentDefinitions.fromPartial(base ?? ({} as any)); - }, - fromPartial, I>>(object: I): EquipmentDefinitions { - const message = createBaseEquipmentDefinitions(); - message.presets = Object.entries(object.presets ?? {}).reduce<{ [key: string]: EquipmentPreset }>( - (acc, [key, value]) => { - if (value !== undefined) { - acc[key] = EquipmentPreset.fromPartial(value); - } - return acc; - }, - {}, - ); - message.equipments = Object.entries(object.equipments ?? {}).reduce<{ [key: number]: Equipment }>( - (acc, [key, value]) => { - if (value !== undefined) { - acc[globalThis.Number(key)] = Equipment.fromPartial(value); - } - return acc; - }, - {}, - ); - return message; - }, -}; - -function createBaseEquipmentDefinitions_PresetsEntry(): EquipmentDefinitions_PresetsEntry { - return { key: "", value: undefined }; -} - -export const EquipmentDefinitions_PresetsEntry: MessageFns = { - encode(message: EquipmentDefinitions_PresetsEntry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { - if (message.key !== "") { - writer.uint32(10).string(message.key); - } - if (message.value !== undefined) { - EquipmentPreset.encode(message.value, writer.uint32(18).fork()).join(); - } - return writer; - }, - - decode(input: BinaryReader | Uint8Array, length?: number): EquipmentDefinitions_PresetsEntry { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEquipmentDefinitions_PresetsEntry(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (tag !== 10) { - break; - } - - message.key = reader.string(); - continue; - } - case 2: { - if (tag !== 18) { - break; - } - - message.value = EquipmentPreset.decode(reader, reader.uint32()); - continue; - } - } - if ((tag & 7) === 4 || tag === 0) { - break; - } - reader.skip(tag & 7); - } - return message; - }, - - fromJSON(object: any): EquipmentDefinitions_PresetsEntry { - return { - key: isSet(object.key) ? globalThis.String(object.key) : "", - value: isSet(object.value) ? EquipmentPreset.fromJSON(object.value) : undefined, - }; - }, - - toJSON(message: EquipmentDefinitions_PresetsEntry): unknown { - const obj: any = {}; - if (message.key !== "") { - obj.key = message.key; - } - if (message.value !== undefined) { - obj.value = EquipmentPreset.toJSON(message.value); - } - return obj; - }, - - create, I>>( - base?: I, - ): EquipmentDefinitions_PresetsEntry { - return EquipmentDefinitions_PresetsEntry.fromPartial(base ?? ({} as any)); - }, - fromPartial, I>>( - object: I, - ): EquipmentDefinitions_PresetsEntry { - const message = createBaseEquipmentDefinitions_PresetsEntry(); - message.key = object.key ?? ""; - message.value = (object.value !== undefined && object.value !== null) - ? EquipmentPreset.fromPartial(object.value) - : undefined; - return message; - }, -}; - -function createBaseEquipmentDefinitions_EquipmentsEntry(): EquipmentDefinitions_EquipmentsEntry { - return { key: 0, value: undefined }; -} - -export const EquipmentDefinitions_EquipmentsEntry: MessageFns = { - encode(message: EquipmentDefinitions_EquipmentsEntry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { - if (message.key !== 0) { - writer.uint32(8).uint32(message.key); - } - if (message.value !== undefined) { - Equipment.encode(message.value, writer.uint32(18).fork()).join(); - } - return writer; - }, - - decode(input: BinaryReader | Uint8Array, length?: number): EquipmentDefinitions_EquipmentsEntry { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEquipmentDefinitions_EquipmentsEntry(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (tag !== 8) { - break; - } - - message.key = reader.uint32(); - continue; - } - case 2: { - if (tag !== 18) { - break; - } - - message.value = Equipment.decode(reader, reader.uint32()); - continue; - } - } - if ((tag & 7) === 4 || tag === 0) { - break; - } - reader.skip(tag & 7); - } - return message; - }, - - fromJSON(object: any): EquipmentDefinitions_EquipmentsEntry { - return { - key: isSet(object.key) ? globalThis.Number(object.key) : 0, - value: isSet(object.value) ? Equipment.fromJSON(object.value) : undefined, - }; - }, - - toJSON(message: EquipmentDefinitions_EquipmentsEntry): unknown { - const obj: any = {}; - if (message.key !== 0) { - obj.key = Math.round(message.key); - } - if (message.value !== undefined) { - obj.value = Equipment.toJSON(message.value); - } - return obj; - }, - - create, I>>( - base?: I, - ): EquipmentDefinitions_EquipmentsEntry { - return EquipmentDefinitions_EquipmentsEntry.fromPartial(base ?? ({} as any)); - }, - fromPartial, I>>( - object: I, - ): EquipmentDefinitions_EquipmentsEntry { - const message = createBaseEquipmentDefinitions_EquipmentsEntry(); - message.key = object.key ?? 0; - message.value = (object.value !== undefined && object.value !== null) - ? Equipment.fromPartial(object.value) - : undefined; - return message; - }, -}; - -function createBaseEquipment(): Equipment { - return { name: undefined, description: undefined }; -} - -export const Equipment: MessageFns = { - encode(message: Equipment, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { - if (message.name !== undefined) { - I18nString.encode(message.name, writer.uint32(10).fork()).join(); - } - if (message.description !== undefined) { - I18nString.encode(message.description, writer.uint32(18).fork()).join(); - } - return writer; - }, - - decode(input: BinaryReader | Uint8Array, length?: number): Equipment { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEquipment(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (tag !== 10) { - break; - } - - message.name = I18nString.decode(reader, reader.uint32()); - continue; - } - case 2: { - if (tag !== 18) { - break; - } - - message.description = I18nString.decode(reader, reader.uint32()); - continue; - } - } - if ((tag & 7) === 4 || tag === 0) { - break; - } - reader.skip(tag & 7); - } - return message; - }, - - fromJSON(object: any): Equipment { - return { - name: isSet(object.name) ? I18nString.fromJSON(object.name) : undefined, - description: isSet(object.description) ? I18nString.fromJSON(object.description) : undefined, - }; - }, - - toJSON(message: Equipment): unknown { - const obj: any = {}; - if (message.name !== undefined) { - obj.name = I18nString.toJSON(message.name); - } - if (message.description !== undefined) { - obj.description = I18nString.toJSON(message.description); - } - return obj; - }, - - create, I>>(base?: I): Equipment { - return Equipment.fromPartial(base ?? ({} as any)); - }, - fromPartial, I>>(object: I): Equipment { - const message = createBaseEquipment(); - message.name = (object.name !== undefined && object.name !== null) - ? I18nString.fromPartial(object.name) - : undefined; - message.description = (object.description !== undefined && object.description !== null) - ? I18nString.fromPartial(object.description) - : undefined; - return message; - }, -}; - -function createBaseEquipmentPreset(): EquipmentPreset { - return { slots: [] }; -} - -export const EquipmentPreset: MessageFns = { - encode(message: EquipmentPreset, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { - for (const v of message.slots) { - EquipmentSlot.encode(v!, writer.uint32(10).fork()).join(); - } - return writer; - }, - - decode(input: BinaryReader | Uint8Array, length?: number): EquipmentPreset { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEquipmentPreset(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (tag !== 10) { - break; - } - - message.slots.push(EquipmentSlot.decode(reader, reader.uint32())); - continue; - } - } - if ((tag & 7) === 4 || tag === 0) { - break; - } - reader.skip(tag & 7); - } - return message; - }, - - fromJSON(object: any): EquipmentPreset { - return { - slots: globalThis.Array.isArray(object?.slots) ? object.slots.map((e: any) => EquipmentSlot.fromJSON(e)) : [], - }; - }, - - toJSON(message: EquipmentPreset): unknown { - const obj: any = {}; - if (message.slots?.length) { - obj.slots = message.slots.map((e) => EquipmentSlot.toJSON(e)); - } - return obj; - }, - - create, I>>(base?: I): EquipmentPreset { - return EquipmentPreset.fromPartial(base ?? ({} as any)); - }, - fromPartial, I>>(object: I): EquipmentPreset { - const message = createBaseEquipmentPreset(); - message.slots = object.slots?.map((e) => EquipmentSlot.fromPartial(e)) || []; - return message; - }, -}; - -function createBaseEquipmentSlot(): EquipmentSlot { - return { left: 0, right: 0 }; -} - -export const EquipmentSlot: MessageFns = { - encode(message: EquipmentSlot, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { - if (message.left !== 0) { - writer.uint32(8).uint32(message.left); - } - if (message.right !== 0) { - writer.uint32(16).uint32(message.right); - } - return writer; - }, - - decode(input: BinaryReader | Uint8Array, length?: number): EquipmentSlot { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseEquipmentSlot(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (tag !== 8) { - break; - } - - message.left = reader.uint32(); - continue; - } - case 2: { - if (tag !== 16) { - break; - } - - message.right = reader.uint32(); - continue; - } - } - if ((tag & 7) === 4 || tag === 0) { - break; - } - reader.skip(tag & 7); - } - return message; - }, - - fromJSON(object: any): EquipmentSlot { - return { - left: isSet(object.left) ? globalThis.Number(object.left) : 0, - right: isSet(object.right) ? globalThis.Number(object.right) : 0, - }; - }, - - toJSON(message: EquipmentSlot): unknown { - const obj: any = {}; - if (message.left !== 0) { - obj.left = Math.round(message.left); - } - if (message.right !== 0) { - obj.right = Math.round(message.right); - } - return obj; - }, - - create, I>>(base?: I): EquipmentSlot { - return EquipmentSlot.fromPartial(base ?? ({} as any)); - }, - fromPartial, I>>(object: I): EquipmentSlot { - const message = createBaseEquipmentSlot(); - message.left = object.left ?? 0; - message.right = object.right ?? 0; - return message; - }, -}; - -type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; - -export type DeepPartial = T extends Builtin ? T - : T extends globalThis.Array ? globalThis.Array> - : T extends ReadonlyArray ? ReadonlyArray> - : T extends { $case: string; value: unknown } ? { $case: T["$case"]; value?: DeepPartial } - : T extends {} ? { [K in keyof T]?: DeepPartial } - : Partial; - -type KeysOfUnion = T extends T ? keyof T : never; -export type Exact = P extends Builtin ? P - : P & { [K in keyof P]: Exact } & { [K in Exclude>]: never }; - -function isObject(value: any): boolean { - return typeof value === "object" && value !== null; -} - -function isSet(value: any): boolean { - return value !== null && value !== undefined; -} - -export interface MessageFns { - encode(message: T, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): T; - fromJSON(object: any): T; - toJSON(message: T): unknown; - create, I>>(base?: I): T; - fromPartial, I>>(object: I): T; -} diff --git a/packages/core/src/protos/gallery.proto b/packages/core/src/protos/gallery.proto deleted file mode 100644 index a983b6133..000000000 --- a/packages/core/src/protos/gallery.proto +++ /dev/null @@ -1,15 +0,0 @@ -syntax = "proto2"; - -package blitzkit; - -import "i18n.proto"; - -message Gallery { - repeated Avatar avatars = 1; -} - -message Avatar { - required string id = 1; - required I18nString name = 2; - required string extension = 3; -} \ No newline at end of file diff --git a/packages/core/src/protos/gallery.ts b/packages/core/src/protos/gallery.ts deleted file mode 100644 index 16cb06336..000000000 --- a/packages/core/src/protos/gallery.ts +++ /dev/null @@ -1,201 +0,0 @@ -// Code generated by protoc-gen-ts_proto. DO NOT EDIT. -// versions: -// protoc-gen-ts_proto v2.7.7 -// protoc v3.19.6 -// source: gallery.proto - -/* eslint-disable */ -import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire"; -import { I18nString } from "./i18n"; - -export const protobufPackage = "blitzkit"; - -export interface Gallery { - avatars: Avatar[]; -} - -export interface Avatar { - id: string; - name: I18nString | undefined; - extension: string; -} - -function createBaseGallery(): Gallery { - return { avatars: [] }; -} - -export const Gallery: MessageFns = { - encode(message: Gallery, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { - for (const v of message.avatars) { - Avatar.encode(v!, writer.uint32(10).fork()).join(); - } - return writer; - }, - - decode(input: BinaryReader | Uint8Array, length?: number): Gallery { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGallery(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (tag !== 10) { - break; - } - - message.avatars.push(Avatar.decode(reader, reader.uint32())); - continue; - } - } - if ((tag & 7) === 4 || tag === 0) { - break; - } - reader.skip(tag & 7); - } - return message; - }, - - fromJSON(object: any): Gallery { - return { - avatars: globalThis.Array.isArray(object?.avatars) ? object.avatars.map((e: any) => Avatar.fromJSON(e)) : [], - }; - }, - - toJSON(message: Gallery): unknown { - const obj: any = {}; - if (message.avatars?.length) { - obj.avatars = message.avatars.map((e) => Avatar.toJSON(e)); - } - return obj; - }, - - create, I>>(base?: I): Gallery { - return Gallery.fromPartial(base ?? ({} as any)); - }, - fromPartial, I>>(object: I): Gallery { - const message = createBaseGallery(); - message.avatars = object.avatars?.map((e) => Avatar.fromPartial(e)) || []; - return message; - }, -}; - -function createBaseAvatar(): Avatar { - return { id: "", name: undefined, extension: "" }; -} - -export const Avatar: MessageFns = { - encode(message: Avatar, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { - if (message.id !== "") { - writer.uint32(10).string(message.id); - } - if (message.name !== undefined) { - I18nString.encode(message.name, writer.uint32(18).fork()).join(); - } - if (message.extension !== "") { - writer.uint32(26).string(message.extension); - } - return writer; - }, - - decode(input: BinaryReader | Uint8Array, length?: number): Avatar { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseAvatar(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (tag !== 10) { - break; - } - - message.id = reader.string(); - continue; - } - case 2: { - if (tag !== 18) { - break; - } - - message.name = I18nString.decode(reader, reader.uint32()); - continue; - } - case 3: { - if (tag !== 26) { - break; - } - - message.extension = reader.string(); - continue; - } - } - if ((tag & 7) === 4 || tag === 0) { - break; - } - reader.skip(tag & 7); - } - return message; - }, - - fromJSON(object: any): Avatar { - return { - id: isSet(object.id) ? globalThis.String(object.id) : "", - name: isSet(object.name) ? I18nString.fromJSON(object.name) : undefined, - extension: isSet(object.extension) ? globalThis.String(object.extension) : "", - }; - }, - - toJSON(message: Avatar): unknown { - const obj: any = {}; - if (message.id !== "") { - obj.id = message.id; - } - if (message.name !== undefined) { - obj.name = I18nString.toJSON(message.name); - } - if (message.extension !== "") { - obj.extension = message.extension; - } - return obj; - }, - - create, I>>(base?: I): Avatar { - return Avatar.fromPartial(base ?? ({} as any)); - }, - fromPartial, I>>(object: I): Avatar { - const message = createBaseAvatar(); - message.id = object.id ?? ""; - message.name = (object.name !== undefined && object.name !== null) - ? I18nString.fromPartial(object.name) - : undefined; - message.extension = object.extension ?? ""; - return message; - }, -}; - -type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; - -export type DeepPartial = T extends Builtin ? T - : T extends globalThis.Array ? globalThis.Array> - : T extends ReadonlyArray ? ReadonlyArray> - : T extends { $case: string; value: unknown } ? { $case: T["$case"]; value?: DeepPartial } - : T extends {} ? { [K in keyof T]?: DeepPartial } - : Partial; - -type KeysOfUnion = T extends T ? keyof T : never; -export type Exact = P extends Builtin ? P - : P & { [K in keyof P]: Exact } & { [K in Exclude>]: never }; - -function isSet(value: any): boolean { - return value !== null && value !== undefined; -} - -export interface MessageFns { - encode(message: T, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): T; - fromJSON(object: any): T; - toJSON(message: T): unknown; - create, I>>(base?: I): T; - fromPartial, I>>(object: I): T; -} diff --git a/packages/core/src/protos/game_definitions.ts b/packages/core/src/protos/game_definitions.ts deleted file mode 100644 index 11f13b79f..000000000 --- a/packages/core/src/protos/game_definitions.ts +++ /dev/null @@ -1,534 +0,0 @@ -// Code generated by protoc-gen-ts_proto. DO NOT EDIT. -// versions: -// protoc-gen-ts_proto v2.7.7 -// protoc v3.19.6 -// source: game_definitions.proto - -/* eslint-disable */ -import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire"; -import { I18nString } from "./i18n"; - -export const protobufPackage = "blitzkit"; - -export interface GameDefinitions { - version: string; - nations: string[]; - gameModes: { [key: string]: GameMode }; - roles: { [key: number]: GameModeRole }; -} - -export interface GameDefinitions_GameModesEntry { - key: string; - value: GameMode | undefined; -} - -export interface GameDefinitions_RolesEntry { - key: number; - value: GameModeRole | undefined; -} - -export interface GameMode { - name: I18nString | undefined; -} - -export interface GameModeRole { - provisions: number[]; - consumables: number[]; -} - -function createBaseGameDefinitions(): GameDefinitions { - return { version: "", nations: [], gameModes: {}, roles: {} }; -} - -export const GameDefinitions: MessageFns = { - encode(message: GameDefinitions, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { - if (message.version !== "") { - writer.uint32(10).string(message.version); - } - for (const v of message.nations) { - writer.uint32(18).string(v!); - } - Object.entries(message.gameModes).forEach(([key, value]) => { - GameDefinitions_GameModesEntry.encode({ key: key as any, value }, writer.uint32(26).fork()).join(); - }); - Object.entries(message.roles).forEach(([key, value]) => { - GameDefinitions_RolesEntry.encode({ key: key as any, value }, writer.uint32(34).fork()).join(); - }); - return writer; - }, - - decode(input: BinaryReader | Uint8Array, length?: number): GameDefinitions { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGameDefinitions(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (tag !== 10) { - break; - } - - message.version = reader.string(); - continue; - } - case 2: { - if (tag !== 18) { - break; - } - - message.nations.push(reader.string()); - continue; - } - case 3: { - if (tag !== 26) { - break; - } - - const entry3 = GameDefinitions_GameModesEntry.decode(reader, reader.uint32()); - if (entry3.value !== undefined) { - message.gameModes[entry3.key] = entry3.value; - } - continue; - } - case 4: { - if (tag !== 34) { - break; - } - - const entry4 = GameDefinitions_RolesEntry.decode(reader, reader.uint32()); - if (entry4.value !== undefined) { - message.roles[entry4.key] = entry4.value; - } - continue; - } - } - if ((tag & 7) === 4 || tag === 0) { - break; - } - reader.skip(tag & 7); - } - return message; - }, - - fromJSON(object: any): GameDefinitions { - return { - version: isSet(object.version) ? globalThis.String(object.version) : "", - nations: globalThis.Array.isArray(object?.nations) ? object.nations.map((e: any) => globalThis.String(e)) : [], - gameModes: isObject(object.gameModes) - ? Object.entries(object.gameModes).reduce<{ [key: string]: GameMode }>((acc, [key, value]) => { - acc[key] = GameMode.fromJSON(value); - return acc; - }, {}) - : {}, - roles: isObject(object.roles) - ? Object.entries(object.roles).reduce<{ [key: number]: GameModeRole }>((acc, [key, value]) => { - acc[globalThis.Number(key)] = GameModeRole.fromJSON(value); - return acc; - }, {}) - : {}, - }; - }, - - toJSON(message: GameDefinitions): unknown { - const obj: any = {}; - if (message.version !== "") { - obj.version = message.version; - } - if (message.nations?.length) { - obj.nations = message.nations; - } - if (message.gameModes) { - const entries = Object.entries(message.gameModes); - if (entries.length > 0) { - obj.gameModes = {}; - entries.forEach(([k, v]) => { - obj.gameModes[k] = GameMode.toJSON(v); - }); - } - } - if (message.roles) { - const entries = Object.entries(message.roles); - if (entries.length > 0) { - obj.roles = {}; - entries.forEach(([k, v]) => { - obj.roles[k] = GameModeRole.toJSON(v); - }); - } - } - return obj; - }, - - create, I>>(base?: I): GameDefinitions { - return GameDefinitions.fromPartial(base ?? ({} as any)); - }, - fromPartial, I>>(object: I): GameDefinitions { - const message = createBaseGameDefinitions(); - message.version = object.version ?? ""; - message.nations = object.nations?.map((e) => e) || []; - message.gameModes = Object.entries(object.gameModes ?? {}).reduce<{ [key: string]: GameMode }>( - (acc, [key, value]) => { - if (value !== undefined) { - acc[key] = GameMode.fromPartial(value); - } - return acc; - }, - {}, - ); - message.roles = Object.entries(object.roles ?? {}).reduce<{ [key: number]: GameModeRole }>((acc, [key, value]) => { - if (value !== undefined) { - acc[globalThis.Number(key)] = GameModeRole.fromPartial(value); - } - return acc; - }, {}); - return message; - }, -}; - -function createBaseGameDefinitions_GameModesEntry(): GameDefinitions_GameModesEntry { - return { key: "", value: undefined }; -} - -export const GameDefinitions_GameModesEntry: MessageFns = { - encode(message: GameDefinitions_GameModesEntry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { - if (message.key !== "") { - writer.uint32(10).string(message.key); - } - if (message.value !== undefined) { - GameMode.encode(message.value, writer.uint32(18).fork()).join(); - } - return writer; - }, - - decode(input: BinaryReader | Uint8Array, length?: number): GameDefinitions_GameModesEntry { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGameDefinitions_GameModesEntry(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (tag !== 10) { - break; - } - - message.key = reader.string(); - continue; - } - case 2: { - if (tag !== 18) { - break; - } - - message.value = GameMode.decode(reader, reader.uint32()); - continue; - } - } - if ((tag & 7) === 4 || tag === 0) { - break; - } - reader.skip(tag & 7); - } - return message; - }, - - fromJSON(object: any): GameDefinitions_GameModesEntry { - return { - key: isSet(object.key) ? globalThis.String(object.key) : "", - value: isSet(object.value) ? GameMode.fromJSON(object.value) : undefined, - }; - }, - - toJSON(message: GameDefinitions_GameModesEntry): unknown { - const obj: any = {}; - if (message.key !== "") { - obj.key = message.key; - } - if (message.value !== undefined) { - obj.value = GameMode.toJSON(message.value); - } - return obj; - }, - - create, I>>(base?: I): GameDefinitions_GameModesEntry { - return GameDefinitions_GameModesEntry.fromPartial(base ?? ({} as any)); - }, - fromPartial, I>>( - object: I, - ): GameDefinitions_GameModesEntry { - const message = createBaseGameDefinitions_GameModesEntry(); - message.key = object.key ?? ""; - message.value = (object.value !== undefined && object.value !== null) - ? GameMode.fromPartial(object.value) - : undefined; - return message; - }, -}; - -function createBaseGameDefinitions_RolesEntry(): GameDefinitions_RolesEntry { - return { key: 0, value: undefined }; -} - -export const GameDefinitions_RolesEntry: MessageFns = { - encode(message: GameDefinitions_RolesEntry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { - if (message.key !== 0) { - writer.uint32(8).uint32(message.key); - } - if (message.value !== undefined) { - GameModeRole.encode(message.value, writer.uint32(18).fork()).join(); - } - return writer; - }, - - decode(input: BinaryReader | Uint8Array, length?: number): GameDefinitions_RolesEntry { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGameDefinitions_RolesEntry(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (tag !== 8) { - break; - } - - message.key = reader.uint32(); - continue; - } - case 2: { - if (tag !== 18) { - break; - } - - message.value = GameModeRole.decode(reader, reader.uint32()); - continue; - } - } - if ((tag & 7) === 4 || tag === 0) { - break; - } - reader.skip(tag & 7); - } - return message; - }, - - fromJSON(object: any): GameDefinitions_RolesEntry { - return { - key: isSet(object.key) ? globalThis.Number(object.key) : 0, - value: isSet(object.value) ? GameModeRole.fromJSON(object.value) : undefined, - }; - }, - - toJSON(message: GameDefinitions_RolesEntry): unknown { - const obj: any = {}; - if (message.key !== 0) { - obj.key = Math.round(message.key); - } - if (message.value !== undefined) { - obj.value = GameModeRole.toJSON(message.value); - } - return obj; - }, - - create, I>>(base?: I): GameDefinitions_RolesEntry { - return GameDefinitions_RolesEntry.fromPartial(base ?? ({} as any)); - }, - fromPartial, I>>(object: I): GameDefinitions_RolesEntry { - const message = createBaseGameDefinitions_RolesEntry(); - message.key = object.key ?? 0; - message.value = (object.value !== undefined && object.value !== null) - ? GameModeRole.fromPartial(object.value) - : undefined; - return message; - }, -}; - -function createBaseGameMode(): GameMode { - return { name: undefined }; -} - -export const GameMode: MessageFns = { - encode(message: GameMode, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { - if (message.name !== undefined) { - I18nString.encode(message.name, writer.uint32(10).fork()).join(); - } - return writer; - }, - - decode(input: BinaryReader | Uint8Array, length?: number): GameMode { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGameMode(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (tag !== 10) { - break; - } - - message.name = I18nString.decode(reader, reader.uint32()); - continue; - } - } - if ((tag & 7) === 4 || tag === 0) { - break; - } - reader.skip(tag & 7); - } - return message; - }, - - fromJSON(object: any): GameMode { - return { name: isSet(object.name) ? I18nString.fromJSON(object.name) : undefined }; - }, - - toJSON(message: GameMode): unknown { - const obj: any = {}; - if (message.name !== undefined) { - obj.name = I18nString.toJSON(message.name); - } - return obj; - }, - - create, I>>(base?: I): GameMode { - return GameMode.fromPartial(base ?? ({} as any)); - }, - fromPartial, I>>(object: I): GameMode { - const message = createBaseGameMode(); - message.name = (object.name !== undefined && object.name !== null) - ? I18nString.fromPartial(object.name) - : undefined; - return message; - }, -}; - -function createBaseGameModeRole(): GameModeRole { - return { provisions: [], consumables: [] }; -} - -export const GameModeRole: MessageFns = { - encode(message: GameModeRole, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { - for (const v of message.provisions) { - writer.uint32(8).uint32(v!); - } - for (const v of message.consumables) { - writer.uint32(16).uint32(v!); - } - return writer; - }, - - decode(input: BinaryReader | Uint8Array, length?: number): GameModeRole { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGameModeRole(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (tag === 8) { - message.provisions.push(reader.uint32()); - - continue; - } - - if (tag === 10) { - const end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) { - message.provisions.push(reader.uint32()); - } - - continue; - } - - break; - } - case 2: { - if (tag === 16) { - message.consumables.push(reader.uint32()); - - continue; - } - - if (tag === 18) { - const end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) { - message.consumables.push(reader.uint32()); - } - - continue; - } - - break; - } - } - if ((tag & 7) === 4 || tag === 0) { - break; - } - reader.skip(tag & 7); - } - return message; - }, - - fromJSON(object: any): GameModeRole { - return { - provisions: globalThis.Array.isArray(object?.provisions) - ? object.provisions.map((e: any) => globalThis.Number(e)) - : [], - consumables: globalThis.Array.isArray(object?.consumables) - ? object.consumables.map((e: any) => globalThis.Number(e)) - : [], - }; - }, - - toJSON(message: GameModeRole): unknown { - const obj: any = {}; - if (message.provisions?.length) { - obj.provisions = message.provisions.map((e) => Math.round(e)); - } - if (message.consumables?.length) { - obj.consumables = message.consumables.map((e) => Math.round(e)); - } - return obj; - }, - - create, I>>(base?: I): GameModeRole { - return GameModeRole.fromPartial(base ?? ({} as any)); - }, - fromPartial, I>>(object: I): GameModeRole { - const message = createBaseGameModeRole(); - message.provisions = object.provisions?.map((e) => e) || []; - message.consumables = object.consumables?.map((e) => e) || []; - return message; - }, -}; - -type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; - -export type DeepPartial = T extends Builtin ? T - : T extends globalThis.Array ? globalThis.Array> - : T extends ReadonlyArray ? ReadonlyArray> - : T extends { $case: string; value: unknown } ? { $case: T["$case"]; value?: DeepPartial } - : T extends {} ? { [K in keyof T]?: DeepPartial } - : Partial; - -type KeysOfUnion = T extends T ? keyof T : never; -export type Exact = P extends Builtin ? P - : P & { [K in keyof P]: Exact } & { [K in Exclude>]: never }; - -function isObject(value: any): boolean { - return typeof value === "object" && value !== null; -} - -function isSet(value: any): boolean { - return value !== null && value !== undefined; -} - -export interface MessageFns { - encode(message: T, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): T; - fromJSON(object: any): T; - toJSON(message: T): unknown; - create, I>>(base?: I): T; - fromPartial, I>>(object: I): T; -} diff --git a/packages/core/src/protos/i18n.ts b/packages/core/src/protos/i18n.ts deleted file mode 100644 index bc7648214..000000000 --- a/packages/core/src/protos/i18n.ts +++ /dev/null @@ -1,204 +0,0 @@ -// Code generated by protoc-gen-ts_proto. DO NOT EDIT. -// versions: -// protoc-gen-ts_proto v2.7.7 -// protoc v3.19.6 -// source: i18n.proto - -/* eslint-disable */ -import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire"; - -export const protobufPackage = "blitzkit"; - -export interface I18nString { - locales: { [key: string]: string }; -} - -export interface I18nString_LocalesEntry { - key: string; - value: string; -} - -function createBaseI18nString(): I18nString { - return { locales: {} }; -} - -export const I18nString: MessageFns = { - encode(message: I18nString, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { - Object.entries(message.locales).forEach(([key, value]) => { - I18nString_LocalesEntry.encode({ key: key as any, value }, writer.uint32(10).fork()).join(); - }); - return writer; - }, - - decode(input: BinaryReader | Uint8Array, length?: number): I18nString { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseI18nString(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (tag !== 10) { - break; - } - - const entry1 = I18nString_LocalesEntry.decode(reader, reader.uint32()); - if (entry1.value !== undefined) { - message.locales[entry1.key] = entry1.value; - } - continue; - } - } - if ((tag & 7) === 4 || tag === 0) { - break; - } - reader.skip(tag & 7); - } - return message; - }, - - fromJSON(object: any): I18nString { - return { - locales: isObject(object.locales) - ? Object.entries(object.locales).reduce<{ [key: string]: string }>((acc, [key, value]) => { - acc[key] = String(value); - return acc; - }, {}) - : {}, - }; - }, - - toJSON(message: I18nString): unknown { - const obj: any = {}; - if (message.locales) { - const entries = Object.entries(message.locales); - if (entries.length > 0) { - obj.locales = {}; - entries.forEach(([k, v]) => { - obj.locales[k] = v; - }); - } - } - return obj; - }, - - create, I>>(base?: I): I18nString { - return I18nString.fromPartial(base ?? ({} as any)); - }, - fromPartial, I>>(object: I): I18nString { - const message = createBaseI18nString(); - message.locales = Object.entries(object.locales ?? {}).reduce<{ [key: string]: string }>((acc, [key, value]) => { - if (value !== undefined) { - acc[key] = globalThis.String(value); - } - return acc; - }, {}); - return message; - }, -}; - -function createBaseI18nString_LocalesEntry(): I18nString_LocalesEntry { - return { key: "", value: "" }; -} - -export const I18nString_LocalesEntry: MessageFns = { - encode(message: I18nString_LocalesEntry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { - if (message.key !== "") { - writer.uint32(10).string(message.key); - } - if (message.value !== "") { - writer.uint32(18).string(message.value); - } - return writer; - }, - - decode(input: BinaryReader | Uint8Array, length?: number): I18nString_LocalesEntry { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseI18nString_LocalesEntry(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (tag !== 10) { - break; - } - - message.key = reader.string(); - continue; - } - case 2: { - if (tag !== 18) { - break; - } - - message.value = reader.string(); - continue; - } - } - if ((tag & 7) === 4 || tag === 0) { - break; - } - reader.skip(tag & 7); - } - return message; - }, - - fromJSON(object: any): I18nString_LocalesEntry { - return { - key: isSet(object.key) ? globalThis.String(object.key) : "", - value: isSet(object.value) ? globalThis.String(object.value) : "", - }; - }, - - toJSON(message: I18nString_LocalesEntry): unknown { - const obj: any = {}; - if (message.key !== "") { - obj.key = message.key; - } - if (message.value !== "") { - obj.value = message.value; - } - return obj; - }, - - create, I>>(base?: I): I18nString_LocalesEntry { - return I18nString_LocalesEntry.fromPartial(base ?? ({} as any)); - }, - fromPartial, I>>(object: I): I18nString_LocalesEntry { - const message = createBaseI18nString_LocalesEntry(); - message.key = object.key ?? ""; - message.value = object.value ?? ""; - return message; - }, -}; - -type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; - -export type DeepPartial = T extends Builtin ? T - : T extends globalThis.Array ? globalThis.Array> - : T extends ReadonlyArray ? ReadonlyArray> - : T extends { $case: string; value: unknown } ? { $case: T["$case"]; value?: DeepPartial } - : T extends {} ? { [K in keyof T]?: DeepPartial } - : Partial; - -type KeysOfUnion = T extends T ? keyof T : never; -export type Exact = P extends Builtin ? P - : P & { [K in keyof P]: Exact } & { [K in Exclude>]: never }; - -function isObject(value: any): boolean { - return typeof value === "object" && value !== null; -} - -function isSet(value: any): boolean { - return value !== null && value !== undefined; -} - -export interface MessageFns { - encode(message: T, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): T; - fromJSON(object: any): T; - toJSON(message: T): unknown; - create, I>>(base?: I): T; - fromPartial, I>>(object: I): T; -} diff --git a/packages/core/src/protos/index.ts b/packages/core/src/protos/index.ts deleted file mode 100644 index 024a1cebb..000000000 --- a/packages/core/src/protos/index.ts +++ /dev/null @@ -1,16 +0,0 @@ -// @ts-nocheck -export * from "./average_definitions.ts"; -export * from "./camouflage_definitions.ts"; -export * from "./consumable_definitions.ts"; -export * from "./equipment_definitions.ts"; -export * from "./gallery.ts"; -export * from "./game_definitions.ts"; -export * from "./i18n.ts"; -export * from "./map_definitions.ts"; -export * from "./model_definitions.ts"; -export * from "./popular_tanks.ts"; -export * from "./provision_definitions.ts"; -export * from "./rating_leaderboard.ts"; -export * from "./reviews.ts"; -export * from "./skill_definitions.ts"; -export * from "./tank_definitions.ts"; diff --git a/packages/core/src/protos/map_definitions.ts b/packages/core/src/protos/map_definitions.ts deleted file mode 100644 index e4f45572d..000000000 --- a/packages/core/src/protos/map_definitions.ts +++ /dev/null @@ -1,290 +0,0 @@ -// Code generated by protoc-gen-ts_proto. DO NOT EDIT. -// versions: -// protoc-gen-ts_proto v2.7.7 -// protoc v3.19.6 -// source: map_definitions.proto - -/* eslint-disable */ -import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire"; -import { I18nString } from "./i18n"; - -export const protobufPackage = "blitzkit"; - -export interface MapDefinitions { - maps: { [key: number]: MapDefinition }; -} - -export interface MapDefinitions_MapsEntry { - key: number; - value: MapDefinition | undefined; -} - -export interface MapDefinition { - id: number; - name: I18nString | undefined; -} - -function createBaseMapDefinitions(): MapDefinitions { - return { maps: {} }; -} - -export const MapDefinitions: MessageFns = { - encode(message: MapDefinitions, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { - Object.entries(message.maps).forEach(([key, value]) => { - MapDefinitions_MapsEntry.encode({ key: key as any, value }, writer.uint32(10).fork()).join(); - }); - return writer; - }, - - decode(input: BinaryReader | Uint8Array, length?: number): MapDefinitions { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMapDefinitions(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (tag !== 10) { - break; - } - - const entry1 = MapDefinitions_MapsEntry.decode(reader, reader.uint32()); - if (entry1.value !== undefined) { - message.maps[entry1.key] = entry1.value; - } - continue; - } - } - if ((tag & 7) === 4 || tag === 0) { - break; - } - reader.skip(tag & 7); - } - return message; - }, - - fromJSON(object: any): MapDefinitions { - return { - maps: isObject(object.maps) - ? Object.entries(object.maps).reduce<{ [key: number]: MapDefinition }>((acc, [key, value]) => { - acc[globalThis.Number(key)] = MapDefinition.fromJSON(value); - return acc; - }, {}) - : {}, - }; - }, - - toJSON(message: MapDefinitions): unknown { - const obj: any = {}; - if (message.maps) { - const entries = Object.entries(message.maps); - if (entries.length > 0) { - obj.maps = {}; - entries.forEach(([k, v]) => { - obj.maps[k] = MapDefinition.toJSON(v); - }); - } - } - return obj; - }, - - create, I>>(base?: I): MapDefinitions { - return MapDefinitions.fromPartial(base ?? ({} as any)); - }, - fromPartial, I>>(object: I): MapDefinitions { - const message = createBaseMapDefinitions(); - message.maps = Object.entries(object.maps ?? {}).reduce<{ [key: number]: MapDefinition }>((acc, [key, value]) => { - if (value !== undefined) { - acc[globalThis.Number(key)] = MapDefinition.fromPartial(value); - } - return acc; - }, {}); - return message; - }, -}; - -function createBaseMapDefinitions_MapsEntry(): MapDefinitions_MapsEntry { - return { key: 0, value: undefined }; -} - -export const MapDefinitions_MapsEntry: MessageFns = { - encode(message: MapDefinitions_MapsEntry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { - if (message.key !== 0) { - writer.uint32(8).int32(message.key); - } - if (message.value !== undefined) { - MapDefinition.encode(message.value, writer.uint32(18).fork()).join(); - } - return writer; - }, - - decode(input: BinaryReader | Uint8Array, length?: number): MapDefinitions_MapsEntry { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMapDefinitions_MapsEntry(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (tag !== 8) { - break; - } - - message.key = reader.int32(); - continue; - } - case 2: { - if (tag !== 18) { - break; - } - - message.value = MapDefinition.decode(reader, reader.uint32()); - continue; - } - } - if ((tag & 7) === 4 || tag === 0) { - break; - } - reader.skip(tag & 7); - } - return message; - }, - - fromJSON(object: any): MapDefinitions_MapsEntry { - return { - key: isSet(object.key) ? globalThis.Number(object.key) : 0, - value: isSet(object.value) ? MapDefinition.fromJSON(object.value) : undefined, - }; - }, - - toJSON(message: MapDefinitions_MapsEntry): unknown { - const obj: any = {}; - if (message.key !== 0) { - obj.key = Math.round(message.key); - } - if (message.value !== undefined) { - obj.value = MapDefinition.toJSON(message.value); - } - return obj; - }, - - create, I>>(base?: I): MapDefinitions_MapsEntry { - return MapDefinitions_MapsEntry.fromPartial(base ?? ({} as any)); - }, - fromPartial, I>>(object: I): MapDefinitions_MapsEntry { - const message = createBaseMapDefinitions_MapsEntry(); - message.key = object.key ?? 0; - message.value = (object.value !== undefined && object.value !== null) - ? MapDefinition.fromPartial(object.value) - : undefined; - return message; - }, -}; - -function createBaseMapDefinition(): MapDefinition { - return { id: 0, name: undefined }; -} - -export const MapDefinition: MessageFns = { - encode(message: MapDefinition, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { - if (message.id !== 0) { - writer.uint32(8).uint32(message.id); - } - if (message.name !== undefined) { - I18nString.encode(message.name, writer.uint32(18).fork()).join(); - } - return writer; - }, - - decode(input: BinaryReader | Uint8Array, length?: number): MapDefinition { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMapDefinition(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (tag !== 8) { - break; - } - - message.id = reader.uint32(); - continue; - } - case 2: { - if (tag !== 18) { - break; - } - - message.name = I18nString.decode(reader, reader.uint32()); - continue; - } - } - if ((tag & 7) === 4 || tag === 0) { - break; - } - reader.skip(tag & 7); - } - return message; - }, - - fromJSON(object: any): MapDefinition { - return { - id: isSet(object.id) ? globalThis.Number(object.id) : 0, - name: isSet(object.name) ? I18nString.fromJSON(object.name) : undefined, - }; - }, - - toJSON(message: MapDefinition): unknown { - const obj: any = {}; - if (message.id !== 0) { - obj.id = Math.round(message.id); - } - if (message.name !== undefined) { - obj.name = I18nString.toJSON(message.name); - } - return obj; - }, - - create, I>>(base?: I): MapDefinition { - return MapDefinition.fromPartial(base ?? ({} as any)); - }, - fromPartial, I>>(object: I): MapDefinition { - const message = createBaseMapDefinition(); - message.id = object.id ?? 0; - message.name = (object.name !== undefined && object.name !== null) - ? I18nString.fromPartial(object.name) - : undefined; - return message; - }, -}; - -type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; - -export type DeepPartial = T extends Builtin ? T - : T extends globalThis.Array ? globalThis.Array> - : T extends ReadonlyArray ? ReadonlyArray> - : T extends { $case: string; value: unknown } ? { $case: T["$case"]; value?: DeepPartial } - : T extends {} ? { [K in keyof T]?: DeepPartial } - : Partial; - -type KeysOfUnion = T extends T ? keyof T : never; -export type Exact = P extends Builtin ? P - : P & { [K in keyof P]: Exact } & { [K in Exclude>]: never }; - -function isObject(value: any): boolean { - return typeof value === "object" && value !== null; -} - -function isSet(value: any): boolean { - return value !== null && value !== undefined; -} - -export interface MessageFns { - encode(message: T, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): T; - fromJSON(object: any): T; - toJSON(message: T): unknown; - create, I>>(base?: I): T; - fromPartial, I>>(object: I): T; -} diff --git a/packages/core/src/protos/model_definitions.proto b/packages/core/src/protos/model_definitions.proto deleted file mode 100644 index 242af4c34..000000000 --- a/packages/core/src/protos/model_definitions.proto +++ /dev/null @@ -1,79 +0,0 @@ -syntax = "proto2"; - -package blitzkit; - -message ModelDefinitions { - map models = 1; -} - -message ModelDefinition { - required Armor armor = 1; - required Vector3 turret_origin = 2; - optional InitialTurretRotation initial_turret_rotation = 3; - map turrets = 4; - map tracks = 5; - required BoundingBox bounding_box = 6; -} - -message Armor { - map thickness = 1; - repeated uint32 spaced = 2; -} - -message Vector3 { - required float x = 1; - required float y = 2; - required float z = 3; -} - -message InitialTurretRotation { - required float yaw = 1; - required float pitch = 2; - required float roll = 3; -} - -message TurretModelDefinition { - required BoundingBox bounding_box = 1; - required Armor armor = 2; - required uint32 model_id = 3; - required Vector3 gun_origin = 4; - map guns = 5; - optional YawLimits yaw = 6; -} - -message YawLimits { - required float min = 1; - required float max = 2; -} - -message BoundingBox { - required Vector3 min = 1; - required Vector3 max = 2; -} - -message TrackModelDefinition { - required float thickness = 1; - required Vector3 origin = 2; -} - -message GunModelDefinition { - required Armor armor = 1; - required float thickness = 2; - required uint32 model_id = 3; - required PitchLimits pitch = 4; - optional float mask = 5; -} - -message PitchLimits { - required float min = 1; - required float max = 2; - optional PitchLimitsExtrema front = 3; - optional PitchLimitsExtrema back = 4; - optional float transition = 5; -} - -message PitchLimitsExtrema { - required float min = 1; - required float max = 2; - required float range = 3; -} \ No newline at end of file diff --git a/packages/core/src/protos/model_definitions.ts b/packages/core/src/protos/model_definitions.ts deleted file mode 100644 index a08ce9b55..000000000 --- a/packages/core/src/protos/model_definitions.ts +++ /dev/null @@ -1,1847 +0,0 @@ -// Code generated by protoc-gen-ts_proto. DO NOT EDIT. -// versions: -// protoc-gen-ts_proto v2.7.7 -// protoc v3.19.6 -// source: model_definitions.proto - -/* eslint-disable */ -import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire"; - -export const protobufPackage = "blitzkit"; - -export interface ModelDefinitions { - models: { [key: number]: ModelDefinition }; -} - -export interface ModelDefinitions_ModelsEntry { - key: number; - value: ModelDefinition | undefined; -} - -export interface ModelDefinition { - armor: Armor | undefined; - turret_origin: Vector3 | undefined; - initial_turret_rotation?: InitialTurretRotation | undefined; - turrets: { [key: number]: TurretModelDefinition }; - tracks: { [key: number]: TrackModelDefinition }; - bounding_box: BoundingBox | undefined; -} - -export interface ModelDefinition_TurretsEntry { - key: number; - value: TurretModelDefinition | undefined; -} - -export interface ModelDefinition_TracksEntry { - key: number; - value: TrackModelDefinition | undefined; -} - -export interface Armor { - thickness: { [key: number]: number }; - spaced: number[]; -} - -export interface Armor_ThicknessEntry { - key: number; - value: number; -} - -export interface Vector3 { - x: number; - y: number; - z: number; -} - -export interface InitialTurretRotation { - yaw: number; - pitch: number; - roll: number; -} - -export interface TurretModelDefinition { - bounding_box: BoundingBox | undefined; - armor: Armor | undefined; - model_id: number; - gun_origin: Vector3 | undefined; - guns: { [key: number]: GunModelDefinition }; - yaw?: YawLimits | undefined; -} - -export interface TurretModelDefinition_GunsEntry { - key: number; - value: GunModelDefinition | undefined; -} - -export interface YawLimits { - min: number; - max: number; -} - -export interface BoundingBox { - min: Vector3 | undefined; - max: Vector3 | undefined; -} - -export interface TrackModelDefinition { - thickness: number; - origin: Vector3 | undefined; -} - -export interface GunModelDefinition { - armor: Armor | undefined; - thickness: number; - model_id: number; - pitch: PitchLimits | undefined; - mask?: number | undefined; -} - -export interface PitchLimits { - min: number; - max: number; - front?: PitchLimitsExtrema | undefined; - back?: PitchLimitsExtrema | undefined; - transition?: number | undefined; -} - -export interface PitchLimitsExtrema { - min: number; - max: number; - range: number; -} - -function createBaseModelDefinitions(): ModelDefinitions { - return { models: {} }; -} - -export const ModelDefinitions: MessageFns = { - encode(message: ModelDefinitions, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { - Object.entries(message.models).forEach(([key, value]) => { - ModelDefinitions_ModelsEntry.encode({ key: key as any, value }, writer.uint32(10).fork()).join(); - }); - return writer; - }, - - decode(input: BinaryReader | Uint8Array, length?: number): ModelDefinitions { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseModelDefinitions(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (tag !== 10) { - break; - } - - const entry1 = ModelDefinitions_ModelsEntry.decode(reader, reader.uint32()); - if (entry1.value !== undefined) { - message.models[entry1.key] = entry1.value; - } - continue; - } - } - if ((tag & 7) === 4 || tag === 0) { - break; - } - reader.skip(tag & 7); - } - return message; - }, - - fromJSON(object: any): ModelDefinitions { - return { - models: isObject(object.models) - ? Object.entries(object.models).reduce<{ [key: number]: ModelDefinition }>((acc, [key, value]) => { - acc[globalThis.Number(key)] = ModelDefinition.fromJSON(value); - return acc; - }, {}) - : {}, - }; - }, - - toJSON(message: ModelDefinitions): unknown { - const obj: any = {}; - if (message.models) { - const entries = Object.entries(message.models); - if (entries.length > 0) { - obj.models = {}; - entries.forEach(([k, v]) => { - obj.models[k] = ModelDefinition.toJSON(v); - }); - } - } - return obj; - }, - - create, I>>(base?: I): ModelDefinitions { - return ModelDefinitions.fromPartial(base ?? ({} as any)); - }, - fromPartial, I>>(object: I): ModelDefinitions { - const message = createBaseModelDefinitions(); - message.models = Object.entries(object.models ?? {}).reduce<{ [key: number]: ModelDefinition }>( - (acc, [key, value]) => { - if (value !== undefined) { - acc[globalThis.Number(key)] = ModelDefinition.fromPartial(value); - } - return acc; - }, - {}, - ); - return message; - }, -}; - -function createBaseModelDefinitions_ModelsEntry(): ModelDefinitions_ModelsEntry { - return { key: 0, value: undefined }; -} - -export const ModelDefinitions_ModelsEntry: MessageFns = { - encode(message: ModelDefinitions_ModelsEntry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { - if (message.key !== 0) { - writer.uint32(8).uint32(message.key); - } - if (message.value !== undefined) { - ModelDefinition.encode(message.value, writer.uint32(18).fork()).join(); - } - return writer; - }, - - decode(input: BinaryReader | Uint8Array, length?: number): ModelDefinitions_ModelsEntry { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseModelDefinitions_ModelsEntry(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (tag !== 8) { - break; - } - - message.key = reader.uint32(); - continue; - } - case 2: { - if (tag !== 18) { - break; - } - - message.value = ModelDefinition.decode(reader, reader.uint32()); - continue; - } - } - if ((tag & 7) === 4 || tag === 0) { - break; - } - reader.skip(tag & 7); - } - return message; - }, - - fromJSON(object: any): ModelDefinitions_ModelsEntry { - return { - key: isSet(object.key) ? globalThis.Number(object.key) : 0, - value: isSet(object.value) ? ModelDefinition.fromJSON(object.value) : undefined, - }; - }, - - toJSON(message: ModelDefinitions_ModelsEntry): unknown { - const obj: any = {}; - if (message.key !== 0) { - obj.key = Math.round(message.key); - } - if (message.value !== undefined) { - obj.value = ModelDefinition.toJSON(message.value); - } - return obj; - }, - - create, I>>(base?: I): ModelDefinitions_ModelsEntry { - return ModelDefinitions_ModelsEntry.fromPartial(base ?? ({} as any)); - }, - fromPartial, I>>(object: I): ModelDefinitions_ModelsEntry { - const message = createBaseModelDefinitions_ModelsEntry(); - message.key = object.key ?? 0; - message.value = (object.value !== undefined && object.value !== null) - ? ModelDefinition.fromPartial(object.value) - : undefined; - return message; - }, -}; - -function createBaseModelDefinition(): ModelDefinition { - return { - armor: undefined, - turret_origin: undefined, - initial_turret_rotation: undefined, - turrets: {}, - tracks: {}, - bounding_box: undefined, - }; -} - -export const ModelDefinition: MessageFns = { - encode(message: ModelDefinition, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { - if (message.armor !== undefined) { - Armor.encode(message.armor, writer.uint32(10).fork()).join(); - } - if (message.turret_origin !== undefined) { - Vector3.encode(message.turret_origin, writer.uint32(18).fork()).join(); - } - if (message.initial_turret_rotation !== undefined) { - InitialTurretRotation.encode(message.initial_turret_rotation, writer.uint32(26).fork()).join(); - } - Object.entries(message.turrets).forEach(([key, value]) => { - ModelDefinition_TurretsEntry.encode({ key: key as any, value }, writer.uint32(34).fork()).join(); - }); - Object.entries(message.tracks).forEach(([key, value]) => { - ModelDefinition_TracksEntry.encode({ key: key as any, value }, writer.uint32(42).fork()).join(); - }); - if (message.bounding_box !== undefined) { - BoundingBox.encode(message.bounding_box, writer.uint32(50).fork()).join(); - } - return writer; - }, - - decode(input: BinaryReader | Uint8Array, length?: number): ModelDefinition { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseModelDefinition(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (tag !== 10) { - break; - } - - message.armor = Armor.decode(reader, reader.uint32()); - continue; - } - case 2: { - if (tag !== 18) { - break; - } - - message.turret_origin = Vector3.decode(reader, reader.uint32()); - continue; - } - case 3: { - if (tag !== 26) { - break; - } - - message.initial_turret_rotation = InitialTurretRotation.decode(reader, reader.uint32()); - continue; - } - case 4: { - if (tag !== 34) { - break; - } - - const entry4 = ModelDefinition_TurretsEntry.decode(reader, reader.uint32()); - if (entry4.value !== undefined) { - message.turrets[entry4.key] = entry4.value; - } - continue; - } - case 5: { - if (tag !== 42) { - break; - } - - const entry5 = ModelDefinition_TracksEntry.decode(reader, reader.uint32()); - if (entry5.value !== undefined) { - message.tracks[entry5.key] = entry5.value; - } - continue; - } - case 6: { - if (tag !== 50) { - break; - } - - message.bounding_box = BoundingBox.decode(reader, reader.uint32()); - continue; - } - } - if ((tag & 7) === 4 || tag === 0) { - break; - } - reader.skip(tag & 7); - } - return message; - }, - - fromJSON(object: any): ModelDefinition { - return { - armor: isSet(object.armor) ? Armor.fromJSON(object.armor) : undefined, - turret_origin: isSet(object.turret_origin) ? Vector3.fromJSON(object.turret_origin) : undefined, - initial_turret_rotation: isSet(object.initial_turret_rotation) - ? InitialTurretRotation.fromJSON(object.initial_turret_rotation) - : undefined, - turrets: isObject(object.turrets) - ? Object.entries(object.turrets).reduce<{ [key: number]: TurretModelDefinition }>((acc, [key, value]) => { - acc[globalThis.Number(key)] = TurretModelDefinition.fromJSON(value); - return acc; - }, {}) - : {}, - tracks: isObject(object.tracks) - ? Object.entries(object.tracks).reduce<{ [key: number]: TrackModelDefinition }>((acc, [key, value]) => { - acc[globalThis.Number(key)] = TrackModelDefinition.fromJSON(value); - return acc; - }, {}) - : {}, - bounding_box: isSet(object.bounding_box) ? BoundingBox.fromJSON(object.bounding_box) : undefined, - }; - }, - - toJSON(message: ModelDefinition): unknown { - const obj: any = {}; - if (message.armor !== undefined) { - obj.armor = Armor.toJSON(message.armor); - } - if (message.turret_origin !== undefined) { - obj.turret_origin = Vector3.toJSON(message.turret_origin); - } - if (message.initial_turret_rotation !== undefined) { - obj.initial_turret_rotation = InitialTurretRotation.toJSON(message.initial_turret_rotation); - } - if (message.turrets) { - const entries = Object.entries(message.turrets); - if (entries.length > 0) { - obj.turrets = {}; - entries.forEach(([k, v]) => { - obj.turrets[k] = TurretModelDefinition.toJSON(v); - }); - } - } - if (message.tracks) { - const entries = Object.entries(message.tracks); - if (entries.length > 0) { - obj.tracks = {}; - entries.forEach(([k, v]) => { - obj.tracks[k] = TrackModelDefinition.toJSON(v); - }); - } - } - if (message.bounding_box !== undefined) { - obj.bounding_box = BoundingBox.toJSON(message.bounding_box); - } - return obj; - }, - - create, I>>(base?: I): ModelDefinition { - return ModelDefinition.fromPartial(base ?? ({} as any)); - }, - fromPartial, I>>(object: I): ModelDefinition { - const message = createBaseModelDefinition(); - message.armor = (object.armor !== undefined && object.armor !== null) ? Armor.fromPartial(object.armor) : undefined; - message.turret_origin = (object.turret_origin !== undefined && object.turret_origin !== null) - ? Vector3.fromPartial(object.turret_origin) - : undefined; - message.initial_turret_rotation = - (object.initial_turret_rotation !== undefined && object.initial_turret_rotation !== null) - ? InitialTurretRotation.fromPartial(object.initial_turret_rotation) - : undefined; - message.turrets = Object.entries(object.turrets ?? {}).reduce<{ [key: number]: TurretModelDefinition }>( - (acc, [key, value]) => { - if (value !== undefined) { - acc[globalThis.Number(key)] = TurretModelDefinition.fromPartial(value); - } - return acc; - }, - {}, - ); - message.tracks = Object.entries(object.tracks ?? {}).reduce<{ [key: number]: TrackModelDefinition }>( - (acc, [key, value]) => { - if (value !== undefined) { - acc[globalThis.Number(key)] = TrackModelDefinition.fromPartial(value); - } - return acc; - }, - {}, - ); - message.bounding_box = (object.bounding_box !== undefined && object.bounding_box !== null) - ? BoundingBox.fromPartial(object.bounding_box) - : undefined; - return message; - }, -}; - -function createBaseModelDefinition_TurretsEntry(): ModelDefinition_TurretsEntry { - return { key: 0, value: undefined }; -} - -export const ModelDefinition_TurretsEntry: MessageFns = { - encode(message: ModelDefinition_TurretsEntry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { - if (message.key !== 0) { - writer.uint32(8).uint32(message.key); - } - if (message.value !== undefined) { - TurretModelDefinition.encode(message.value, writer.uint32(18).fork()).join(); - } - return writer; - }, - - decode(input: BinaryReader | Uint8Array, length?: number): ModelDefinition_TurretsEntry { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseModelDefinition_TurretsEntry(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (tag !== 8) { - break; - } - - message.key = reader.uint32(); - continue; - } - case 2: { - if (tag !== 18) { - break; - } - - message.value = TurretModelDefinition.decode(reader, reader.uint32()); - continue; - } - } - if ((tag & 7) === 4 || tag === 0) { - break; - } - reader.skip(tag & 7); - } - return message; - }, - - fromJSON(object: any): ModelDefinition_TurretsEntry { - return { - key: isSet(object.key) ? globalThis.Number(object.key) : 0, - value: isSet(object.value) ? TurretModelDefinition.fromJSON(object.value) : undefined, - }; - }, - - toJSON(message: ModelDefinition_TurretsEntry): unknown { - const obj: any = {}; - if (message.key !== 0) { - obj.key = Math.round(message.key); - } - if (message.value !== undefined) { - obj.value = TurretModelDefinition.toJSON(message.value); - } - return obj; - }, - - create, I>>(base?: I): ModelDefinition_TurretsEntry { - return ModelDefinition_TurretsEntry.fromPartial(base ?? ({} as any)); - }, - fromPartial, I>>(object: I): ModelDefinition_TurretsEntry { - const message = createBaseModelDefinition_TurretsEntry(); - message.key = object.key ?? 0; - message.value = (object.value !== undefined && object.value !== null) - ? TurretModelDefinition.fromPartial(object.value) - : undefined; - return message; - }, -}; - -function createBaseModelDefinition_TracksEntry(): ModelDefinition_TracksEntry { - return { key: 0, value: undefined }; -} - -export const ModelDefinition_TracksEntry: MessageFns = { - encode(message: ModelDefinition_TracksEntry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { - if (message.key !== 0) { - writer.uint32(8).uint32(message.key); - } - if (message.value !== undefined) { - TrackModelDefinition.encode(message.value, writer.uint32(18).fork()).join(); - } - return writer; - }, - - decode(input: BinaryReader | Uint8Array, length?: number): ModelDefinition_TracksEntry { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseModelDefinition_TracksEntry(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (tag !== 8) { - break; - } - - message.key = reader.uint32(); - continue; - } - case 2: { - if (tag !== 18) { - break; - } - - message.value = TrackModelDefinition.decode(reader, reader.uint32()); - continue; - } - } - if ((tag & 7) === 4 || tag === 0) { - break; - } - reader.skip(tag & 7); - } - return message; - }, - - fromJSON(object: any): ModelDefinition_TracksEntry { - return { - key: isSet(object.key) ? globalThis.Number(object.key) : 0, - value: isSet(object.value) ? TrackModelDefinition.fromJSON(object.value) : undefined, - }; - }, - - toJSON(message: ModelDefinition_TracksEntry): unknown { - const obj: any = {}; - if (message.key !== 0) { - obj.key = Math.round(message.key); - } - if (message.value !== undefined) { - obj.value = TrackModelDefinition.toJSON(message.value); - } - return obj; - }, - - create, I>>(base?: I): ModelDefinition_TracksEntry { - return ModelDefinition_TracksEntry.fromPartial(base ?? ({} as any)); - }, - fromPartial, I>>(object: I): ModelDefinition_TracksEntry { - const message = createBaseModelDefinition_TracksEntry(); - message.key = object.key ?? 0; - message.value = (object.value !== undefined && object.value !== null) - ? TrackModelDefinition.fromPartial(object.value) - : undefined; - return message; - }, -}; - -function createBaseArmor(): Armor { - return { thickness: {}, spaced: [] }; -} - -export const Armor: MessageFns = { - encode(message: Armor, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { - Object.entries(message.thickness).forEach(([key, value]) => { - Armor_ThicknessEntry.encode({ key: key as any, value }, writer.uint32(10).fork()).join(); - }); - for (const v of message.spaced) { - writer.uint32(16).uint32(v!); - } - return writer; - }, - - decode(input: BinaryReader | Uint8Array, length?: number): Armor { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseArmor(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (tag !== 10) { - break; - } - - const entry1 = Armor_ThicknessEntry.decode(reader, reader.uint32()); - if (entry1.value !== undefined) { - message.thickness[entry1.key] = entry1.value; - } - continue; - } - case 2: { - if (tag === 16) { - message.spaced.push(reader.uint32()); - - continue; - } - - if (tag === 18) { - const end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) { - message.spaced.push(reader.uint32()); - } - - continue; - } - - break; - } - } - if ((tag & 7) === 4 || tag === 0) { - break; - } - reader.skip(tag & 7); - } - return message; - }, - - fromJSON(object: any): Armor { - return { - thickness: isObject(object.thickness) - ? Object.entries(object.thickness).reduce<{ [key: number]: number }>((acc, [key, value]) => { - acc[globalThis.Number(key)] = Number(value); - return acc; - }, {}) - : {}, - spaced: globalThis.Array.isArray(object?.spaced) ? object.spaced.map((e: any) => globalThis.Number(e)) : [], - }; - }, - - toJSON(message: Armor): unknown { - const obj: any = {}; - if (message.thickness) { - const entries = Object.entries(message.thickness); - if (entries.length > 0) { - obj.thickness = {}; - entries.forEach(([k, v]) => { - obj.thickness[k] = v; - }); - } - } - if (message.spaced?.length) { - obj.spaced = message.spaced.map((e) => Math.round(e)); - } - return obj; - }, - - create, I>>(base?: I): Armor { - return Armor.fromPartial(base ?? ({} as any)); - }, - fromPartial, I>>(object: I): Armor { - const message = createBaseArmor(); - message.thickness = Object.entries(object.thickness ?? {}).reduce<{ [key: number]: number }>( - (acc, [key, value]) => { - if (value !== undefined) { - acc[globalThis.Number(key)] = globalThis.Number(value); - } - return acc; - }, - {}, - ); - message.spaced = object.spaced?.map((e) => e) || []; - return message; - }, -}; - -function createBaseArmor_ThicknessEntry(): Armor_ThicknessEntry { - return { key: 0, value: 0 }; -} - -export const Armor_ThicknessEntry: MessageFns = { - encode(message: Armor_ThicknessEntry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { - if (message.key !== 0) { - writer.uint32(8).uint32(message.key); - } - if (message.value !== 0) { - writer.uint32(21).float(message.value); - } - return writer; - }, - - decode(input: BinaryReader | Uint8Array, length?: number): Armor_ThicknessEntry { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseArmor_ThicknessEntry(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (tag !== 8) { - break; - } - - message.key = reader.uint32(); - continue; - } - case 2: { - if (tag !== 21) { - break; - } - - message.value = reader.float(); - continue; - } - } - if ((tag & 7) === 4 || tag === 0) { - break; - } - reader.skip(tag & 7); - } - return message; - }, - - fromJSON(object: any): Armor_ThicknessEntry { - return { - key: isSet(object.key) ? globalThis.Number(object.key) : 0, - value: isSet(object.value) ? globalThis.Number(object.value) : 0, - }; - }, - - toJSON(message: Armor_ThicknessEntry): unknown { - const obj: any = {}; - if (message.key !== 0) { - obj.key = Math.round(message.key); - } - if (message.value !== 0) { - obj.value = message.value; - } - return obj; - }, - - create, I>>(base?: I): Armor_ThicknessEntry { - return Armor_ThicknessEntry.fromPartial(base ?? ({} as any)); - }, - fromPartial, I>>(object: I): Armor_ThicknessEntry { - const message = createBaseArmor_ThicknessEntry(); - message.key = object.key ?? 0; - message.value = object.value ?? 0; - return message; - }, -}; - -function createBaseVector3(): Vector3 { - return { x: 0, y: 0, z: 0 }; -} - -export const Vector3: MessageFns = { - encode(message: Vector3, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { - if (message.x !== 0) { - writer.uint32(13).float(message.x); - } - if (message.y !== 0) { - writer.uint32(21).float(message.y); - } - if (message.z !== 0) { - writer.uint32(29).float(message.z); - } - return writer; - }, - - decode(input: BinaryReader | Uint8Array, length?: number): Vector3 { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseVector3(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (tag !== 13) { - break; - } - - message.x = reader.float(); - continue; - } - case 2: { - if (tag !== 21) { - break; - } - - message.y = reader.float(); - continue; - } - case 3: { - if (tag !== 29) { - break; - } - - message.z = reader.float(); - continue; - } - } - if ((tag & 7) === 4 || tag === 0) { - break; - } - reader.skip(tag & 7); - } - return message; - }, - - fromJSON(object: any): Vector3 { - return { - x: isSet(object.x) ? globalThis.Number(object.x) : 0, - y: isSet(object.y) ? globalThis.Number(object.y) : 0, - z: isSet(object.z) ? globalThis.Number(object.z) : 0, - }; - }, - - toJSON(message: Vector3): unknown { - const obj: any = {}; - if (message.x !== 0) { - obj.x = message.x; - } - if (message.y !== 0) { - obj.y = message.y; - } - if (message.z !== 0) { - obj.z = message.z; - } - return obj; - }, - - create, I>>(base?: I): Vector3 { - return Vector3.fromPartial(base ?? ({} as any)); - }, - fromPartial, I>>(object: I): Vector3 { - const message = createBaseVector3(); - message.x = object.x ?? 0; - message.y = object.y ?? 0; - message.z = object.z ?? 0; - return message; - }, -}; - -function createBaseInitialTurretRotation(): InitialTurretRotation { - return { yaw: 0, pitch: 0, roll: 0 }; -} - -export const InitialTurretRotation: MessageFns = { - encode(message: InitialTurretRotation, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { - if (message.yaw !== 0) { - writer.uint32(13).float(message.yaw); - } - if (message.pitch !== 0) { - writer.uint32(21).float(message.pitch); - } - if (message.roll !== 0) { - writer.uint32(29).float(message.roll); - } - return writer; - }, - - decode(input: BinaryReader | Uint8Array, length?: number): InitialTurretRotation { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseInitialTurretRotation(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (tag !== 13) { - break; - } - - message.yaw = reader.float(); - continue; - } - case 2: { - if (tag !== 21) { - break; - } - - message.pitch = reader.float(); - continue; - } - case 3: { - if (tag !== 29) { - break; - } - - message.roll = reader.float(); - continue; - } - } - if ((tag & 7) === 4 || tag === 0) { - break; - } - reader.skip(tag & 7); - } - return message; - }, - - fromJSON(object: any): InitialTurretRotation { - return { - yaw: isSet(object.yaw) ? globalThis.Number(object.yaw) : 0, - pitch: isSet(object.pitch) ? globalThis.Number(object.pitch) : 0, - roll: isSet(object.roll) ? globalThis.Number(object.roll) : 0, - }; - }, - - toJSON(message: InitialTurretRotation): unknown { - const obj: any = {}; - if (message.yaw !== 0) { - obj.yaw = message.yaw; - } - if (message.pitch !== 0) { - obj.pitch = message.pitch; - } - if (message.roll !== 0) { - obj.roll = message.roll; - } - return obj; - }, - - create, I>>(base?: I): InitialTurretRotation { - return InitialTurretRotation.fromPartial(base ?? ({} as any)); - }, - fromPartial, I>>(object: I): InitialTurretRotation { - const message = createBaseInitialTurretRotation(); - message.yaw = object.yaw ?? 0; - message.pitch = object.pitch ?? 0; - message.roll = object.roll ?? 0; - return message; - }, -}; - -function createBaseTurretModelDefinition(): TurretModelDefinition { - return { bounding_box: undefined, armor: undefined, model_id: 0, gun_origin: undefined, guns: {}, yaw: undefined }; -} - -export const TurretModelDefinition: MessageFns = { - encode(message: TurretModelDefinition, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { - if (message.bounding_box !== undefined) { - BoundingBox.encode(message.bounding_box, writer.uint32(10).fork()).join(); - } - if (message.armor !== undefined) { - Armor.encode(message.armor, writer.uint32(18).fork()).join(); - } - if (message.model_id !== 0) { - writer.uint32(24).uint32(message.model_id); - } - if (message.gun_origin !== undefined) { - Vector3.encode(message.gun_origin, writer.uint32(34).fork()).join(); - } - Object.entries(message.guns).forEach(([key, value]) => { - TurretModelDefinition_GunsEntry.encode({ key: key as any, value }, writer.uint32(42).fork()).join(); - }); - if (message.yaw !== undefined) { - YawLimits.encode(message.yaw, writer.uint32(50).fork()).join(); - } - return writer; - }, - - decode(input: BinaryReader | Uint8Array, length?: number): TurretModelDefinition { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseTurretModelDefinition(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (tag !== 10) { - break; - } - - message.bounding_box = BoundingBox.decode(reader, reader.uint32()); - continue; - } - case 2: { - if (tag !== 18) { - break; - } - - message.armor = Armor.decode(reader, reader.uint32()); - continue; - } - case 3: { - if (tag !== 24) { - break; - } - - message.model_id = reader.uint32(); - continue; - } - case 4: { - if (tag !== 34) { - break; - } - - message.gun_origin = Vector3.decode(reader, reader.uint32()); - continue; - } - case 5: { - if (tag !== 42) { - break; - } - - const entry5 = TurretModelDefinition_GunsEntry.decode(reader, reader.uint32()); - if (entry5.value !== undefined) { - message.guns[entry5.key] = entry5.value; - } - continue; - } - case 6: { - if (tag !== 50) { - break; - } - - message.yaw = YawLimits.decode(reader, reader.uint32()); - continue; - } - } - if ((tag & 7) === 4 || tag === 0) { - break; - } - reader.skip(tag & 7); - } - return message; - }, - - fromJSON(object: any): TurretModelDefinition { - return { - bounding_box: isSet(object.bounding_box) ? BoundingBox.fromJSON(object.bounding_box) : undefined, - armor: isSet(object.armor) ? Armor.fromJSON(object.armor) : undefined, - model_id: isSet(object.model_id) ? globalThis.Number(object.model_id) : 0, - gun_origin: isSet(object.gun_origin) ? Vector3.fromJSON(object.gun_origin) : undefined, - guns: isObject(object.guns) - ? Object.entries(object.guns).reduce<{ [key: number]: GunModelDefinition }>((acc, [key, value]) => { - acc[globalThis.Number(key)] = GunModelDefinition.fromJSON(value); - return acc; - }, {}) - : {}, - yaw: isSet(object.yaw) ? YawLimits.fromJSON(object.yaw) : undefined, - }; - }, - - toJSON(message: TurretModelDefinition): unknown { - const obj: any = {}; - if (message.bounding_box !== undefined) { - obj.bounding_box = BoundingBox.toJSON(message.bounding_box); - } - if (message.armor !== undefined) { - obj.armor = Armor.toJSON(message.armor); - } - if (message.model_id !== 0) { - obj.model_id = Math.round(message.model_id); - } - if (message.gun_origin !== undefined) { - obj.gun_origin = Vector3.toJSON(message.gun_origin); - } - if (message.guns) { - const entries = Object.entries(message.guns); - if (entries.length > 0) { - obj.guns = {}; - entries.forEach(([k, v]) => { - obj.guns[k] = GunModelDefinition.toJSON(v); - }); - } - } - if (message.yaw !== undefined) { - obj.yaw = YawLimits.toJSON(message.yaw); - } - return obj; - }, - - create, I>>(base?: I): TurretModelDefinition { - return TurretModelDefinition.fromPartial(base ?? ({} as any)); - }, - fromPartial, I>>(object: I): TurretModelDefinition { - const message = createBaseTurretModelDefinition(); - message.bounding_box = (object.bounding_box !== undefined && object.bounding_box !== null) - ? BoundingBox.fromPartial(object.bounding_box) - : undefined; - message.armor = (object.armor !== undefined && object.armor !== null) ? Armor.fromPartial(object.armor) : undefined; - message.model_id = object.model_id ?? 0; - message.gun_origin = (object.gun_origin !== undefined && object.gun_origin !== null) - ? Vector3.fromPartial(object.gun_origin) - : undefined; - message.guns = Object.entries(object.guns ?? {}).reduce<{ [key: number]: GunModelDefinition }>( - (acc, [key, value]) => { - if (value !== undefined) { - acc[globalThis.Number(key)] = GunModelDefinition.fromPartial(value); - } - return acc; - }, - {}, - ); - message.yaw = (object.yaw !== undefined && object.yaw !== null) ? YawLimits.fromPartial(object.yaw) : undefined; - return message; - }, -}; - -function createBaseTurretModelDefinition_GunsEntry(): TurretModelDefinition_GunsEntry { - return { key: 0, value: undefined }; -} - -export const TurretModelDefinition_GunsEntry: MessageFns = { - encode(message: TurretModelDefinition_GunsEntry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { - if (message.key !== 0) { - writer.uint32(8).uint32(message.key); - } - if (message.value !== undefined) { - GunModelDefinition.encode(message.value, writer.uint32(18).fork()).join(); - } - return writer; - }, - - decode(input: BinaryReader | Uint8Array, length?: number): TurretModelDefinition_GunsEntry { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseTurretModelDefinition_GunsEntry(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (tag !== 8) { - break; - } - - message.key = reader.uint32(); - continue; - } - case 2: { - if (tag !== 18) { - break; - } - - message.value = GunModelDefinition.decode(reader, reader.uint32()); - continue; - } - } - if ((tag & 7) === 4 || tag === 0) { - break; - } - reader.skip(tag & 7); - } - return message; - }, - - fromJSON(object: any): TurretModelDefinition_GunsEntry { - return { - key: isSet(object.key) ? globalThis.Number(object.key) : 0, - value: isSet(object.value) ? GunModelDefinition.fromJSON(object.value) : undefined, - }; - }, - - toJSON(message: TurretModelDefinition_GunsEntry): unknown { - const obj: any = {}; - if (message.key !== 0) { - obj.key = Math.round(message.key); - } - if (message.value !== undefined) { - obj.value = GunModelDefinition.toJSON(message.value); - } - return obj; - }, - - create, I>>(base?: I): TurretModelDefinition_GunsEntry { - return TurretModelDefinition_GunsEntry.fromPartial(base ?? ({} as any)); - }, - fromPartial, I>>( - object: I, - ): TurretModelDefinition_GunsEntry { - const message = createBaseTurretModelDefinition_GunsEntry(); - message.key = object.key ?? 0; - message.value = (object.value !== undefined && object.value !== null) - ? GunModelDefinition.fromPartial(object.value) - : undefined; - return message; - }, -}; - -function createBaseYawLimits(): YawLimits { - return { min: 0, max: 0 }; -} - -export const YawLimits: MessageFns = { - encode(message: YawLimits, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { - if (message.min !== 0) { - writer.uint32(13).float(message.min); - } - if (message.max !== 0) { - writer.uint32(21).float(message.max); - } - return writer; - }, - - decode(input: BinaryReader | Uint8Array, length?: number): YawLimits { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseYawLimits(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (tag !== 13) { - break; - } - - message.min = reader.float(); - continue; - } - case 2: { - if (tag !== 21) { - break; - } - - message.max = reader.float(); - continue; - } - } - if ((tag & 7) === 4 || tag === 0) { - break; - } - reader.skip(tag & 7); - } - return message; - }, - - fromJSON(object: any): YawLimits { - return { - min: isSet(object.min) ? globalThis.Number(object.min) : 0, - max: isSet(object.max) ? globalThis.Number(object.max) : 0, - }; - }, - - toJSON(message: YawLimits): unknown { - const obj: any = {}; - if (message.min !== 0) { - obj.min = message.min; - } - if (message.max !== 0) { - obj.max = message.max; - } - return obj; - }, - - create, I>>(base?: I): YawLimits { - return YawLimits.fromPartial(base ?? ({} as any)); - }, - fromPartial, I>>(object: I): YawLimits { - const message = createBaseYawLimits(); - message.min = object.min ?? 0; - message.max = object.max ?? 0; - return message; - }, -}; - -function createBaseBoundingBox(): BoundingBox { - return { min: undefined, max: undefined }; -} - -export const BoundingBox: MessageFns = { - encode(message: BoundingBox, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { - if (message.min !== undefined) { - Vector3.encode(message.min, writer.uint32(10).fork()).join(); - } - if (message.max !== undefined) { - Vector3.encode(message.max, writer.uint32(18).fork()).join(); - } - return writer; - }, - - decode(input: BinaryReader | Uint8Array, length?: number): BoundingBox { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseBoundingBox(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (tag !== 10) { - break; - } - - message.min = Vector3.decode(reader, reader.uint32()); - continue; - } - case 2: { - if (tag !== 18) { - break; - } - - message.max = Vector3.decode(reader, reader.uint32()); - continue; - } - } - if ((tag & 7) === 4 || tag === 0) { - break; - } - reader.skip(tag & 7); - } - return message; - }, - - fromJSON(object: any): BoundingBox { - return { - min: isSet(object.min) ? Vector3.fromJSON(object.min) : undefined, - max: isSet(object.max) ? Vector3.fromJSON(object.max) : undefined, - }; - }, - - toJSON(message: BoundingBox): unknown { - const obj: any = {}; - if (message.min !== undefined) { - obj.min = Vector3.toJSON(message.min); - } - if (message.max !== undefined) { - obj.max = Vector3.toJSON(message.max); - } - return obj; - }, - - create, I>>(base?: I): BoundingBox { - return BoundingBox.fromPartial(base ?? ({} as any)); - }, - fromPartial, I>>(object: I): BoundingBox { - const message = createBaseBoundingBox(); - message.min = (object.min !== undefined && object.min !== null) ? Vector3.fromPartial(object.min) : undefined; - message.max = (object.max !== undefined && object.max !== null) ? Vector3.fromPartial(object.max) : undefined; - return message; - }, -}; - -function createBaseTrackModelDefinition(): TrackModelDefinition { - return { thickness: 0, origin: undefined }; -} - -export const TrackModelDefinition: MessageFns = { - encode(message: TrackModelDefinition, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { - if (message.thickness !== 0) { - writer.uint32(13).float(message.thickness); - } - if (message.origin !== undefined) { - Vector3.encode(message.origin, writer.uint32(18).fork()).join(); - } - return writer; - }, - - decode(input: BinaryReader | Uint8Array, length?: number): TrackModelDefinition { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseTrackModelDefinition(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (tag !== 13) { - break; - } - - message.thickness = reader.float(); - continue; - } - case 2: { - if (tag !== 18) { - break; - } - - message.origin = Vector3.decode(reader, reader.uint32()); - continue; - } - } - if ((tag & 7) === 4 || tag === 0) { - break; - } - reader.skip(tag & 7); - } - return message; - }, - - fromJSON(object: any): TrackModelDefinition { - return { - thickness: isSet(object.thickness) ? globalThis.Number(object.thickness) : 0, - origin: isSet(object.origin) ? Vector3.fromJSON(object.origin) : undefined, - }; - }, - - toJSON(message: TrackModelDefinition): unknown { - const obj: any = {}; - if (message.thickness !== 0) { - obj.thickness = message.thickness; - } - if (message.origin !== undefined) { - obj.origin = Vector3.toJSON(message.origin); - } - return obj; - }, - - create, I>>(base?: I): TrackModelDefinition { - return TrackModelDefinition.fromPartial(base ?? ({} as any)); - }, - fromPartial, I>>(object: I): TrackModelDefinition { - const message = createBaseTrackModelDefinition(); - message.thickness = object.thickness ?? 0; - message.origin = (object.origin !== undefined && object.origin !== null) - ? Vector3.fromPartial(object.origin) - : undefined; - return message; - }, -}; - -function createBaseGunModelDefinition(): GunModelDefinition { - return { armor: undefined, thickness: 0, model_id: 0, pitch: undefined, mask: 0 }; -} - -export const GunModelDefinition: MessageFns = { - encode(message: GunModelDefinition, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { - if (message.armor !== undefined) { - Armor.encode(message.armor, writer.uint32(10).fork()).join(); - } - if (message.thickness !== 0) { - writer.uint32(21).float(message.thickness); - } - if (message.model_id !== 0) { - writer.uint32(24).uint32(message.model_id); - } - if (message.pitch !== undefined) { - PitchLimits.encode(message.pitch, writer.uint32(34).fork()).join(); - } - if (message.mask !== undefined && message.mask !== 0) { - writer.uint32(45).float(message.mask); - } - return writer; - }, - - decode(input: BinaryReader | Uint8Array, length?: number): GunModelDefinition { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseGunModelDefinition(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (tag !== 10) { - break; - } - - message.armor = Armor.decode(reader, reader.uint32()); - continue; - } - case 2: { - if (tag !== 21) { - break; - } - - message.thickness = reader.float(); - continue; - } - case 3: { - if (tag !== 24) { - break; - } - - message.model_id = reader.uint32(); - continue; - } - case 4: { - if (tag !== 34) { - break; - } - - message.pitch = PitchLimits.decode(reader, reader.uint32()); - continue; - } - case 5: { - if (tag !== 45) { - break; - } - - message.mask = reader.float(); - continue; - } - } - if ((tag & 7) === 4 || tag === 0) { - break; - } - reader.skip(tag & 7); - } - return message; - }, - - fromJSON(object: any): GunModelDefinition { - return { - armor: isSet(object.armor) ? Armor.fromJSON(object.armor) : undefined, - thickness: isSet(object.thickness) ? globalThis.Number(object.thickness) : 0, - model_id: isSet(object.model_id) ? globalThis.Number(object.model_id) : 0, - pitch: isSet(object.pitch) ? PitchLimits.fromJSON(object.pitch) : undefined, - mask: isSet(object.mask) ? globalThis.Number(object.mask) : 0, - }; - }, - - toJSON(message: GunModelDefinition): unknown { - const obj: any = {}; - if (message.armor !== undefined) { - obj.armor = Armor.toJSON(message.armor); - } - if (message.thickness !== 0) { - obj.thickness = message.thickness; - } - if (message.model_id !== 0) { - obj.model_id = Math.round(message.model_id); - } - if (message.pitch !== undefined) { - obj.pitch = PitchLimits.toJSON(message.pitch); - } - if (message.mask !== undefined && message.mask !== 0) { - obj.mask = message.mask; - } - return obj; - }, - - create, I>>(base?: I): GunModelDefinition { - return GunModelDefinition.fromPartial(base ?? ({} as any)); - }, - fromPartial, I>>(object: I): GunModelDefinition { - const message = createBaseGunModelDefinition(); - message.armor = (object.armor !== undefined && object.armor !== null) ? Armor.fromPartial(object.armor) : undefined; - message.thickness = object.thickness ?? 0; - message.model_id = object.model_id ?? 0; - message.pitch = (object.pitch !== undefined && object.pitch !== null) - ? PitchLimits.fromPartial(object.pitch) - : undefined; - message.mask = object.mask ?? 0; - return message; - }, -}; - -function createBasePitchLimits(): PitchLimits { - return { min: 0, max: 0, front: undefined, back: undefined, transition: 0 }; -} - -export const PitchLimits: MessageFns = { - encode(message: PitchLimits, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { - if (message.min !== 0) { - writer.uint32(13).float(message.min); - } - if (message.max !== 0) { - writer.uint32(21).float(message.max); - } - if (message.front !== undefined) { - PitchLimitsExtrema.encode(message.front, writer.uint32(26).fork()).join(); - } - if (message.back !== undefined) { - PitchLimitsExtrema.encode(message.back, writer.uint32(34).fork()).join(); - } - if (message.transition !== undefined && message.transition !== 0) { - writer.uint32(45).float(message.transition); - } - return writer; - }, - - decode(input: BinaryReader | Uint8Array, length?: number): PitchLimits { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const end = length === undefined ? reader.len : reader.pos + length; - const message = createBasePitchLimits(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (tag !== 13) { - break; - } - - message.min = reader.float(); - continue; - } - case 2: { - if (tag !== 21) { - break; - } - - message.max = reader.float(); - continue; - } - case 3: { - if (tag !== 26) { - break; - } - - message.front = PitchLimitsExtrema.decode(reader, reader.uint32()); - continue; - } - case 4: { - if (tag !== 34) { - break; - } - - message.back = PitchLimitsExtrema.decode(reader, reader.uint32()); - continue; - } - case 5: { - if (tag !== 45) { - break; - } - - message.transition = reader.float(); - continue; - } - } - if ((tag & 7) === 4 || tag === 0) { - break; - } - reader.skip(tag & 7); - } - return message; - }, - - fromJSON(object: any): PitchLimits { - return { - min: isSet(object.min) ? globalThis.Number(object.min) : 0, - max: isSet(object.max) ? globalThis.Number(object.max) : 0, - front: isSet(object.front) ? PitchLimitsExtrema.fromJSON(object.front) : undefined, - back: isSet(object.back) ? PitchLimitsExtrema.fromJSON(object.back) : undefined, - transition: isSet(object.transition) ? globalThis.Number(object.transition) : 0, - }; - }, - - toJSON(message: PitchLimits): unknown { - const obj: any = {}; - if (message.min !== 0) { - obj.min = message.min; - } - if (message.max !== 0) { - obj.max = message.max; - } - if (message.front !== undefined) { - obj.front = PitchLimitsExtrema.toJSON(message.front); - } - if (message.back !== undefined) { - obj.back = PitchLimitsExtrema.toJSON(message.back); - } - if (message.transition !== undefined && message.transition !== 0) { - obj.transition = message.transition; - } - return obj; - }, - - create, I>>(base?: I): PitchLimits { - return PitchLimits.fromPartial(base ?? ({} as any)); - }, - fromPartial, I>>(object: I): PitchLimits { - const message = createBasePitchLimits(); - message.min = object.min ?? 0; - message.max = object.max ?? 0; - message.front = (object.front !== undefined && object.front !== null) - ? PitchLimitsExtrema.fromPartial(object.front) - : undefined; - message.back = (object.back !== undefined && object.back !== null) - ? PitchLimitsExtrema.fromPartial(object.back) - : undefined; - message.transition = object.transition ?? 0; - return message; - }, -}; - -function createBasePitchLimitsExtrema(): PitchLimitsExtrema { - return { min: 0, max: 0, range: 0 }; -} - -export const PitchLimitsExtrema: MessageFns = { - encode(message: PitchLimitsExtrema, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { - if (message.min !== 0) { - writer.uint32(13).float(message.min); - } - if (message.max !== 0) { - writer.uint32(21).float(message.max); - } - if (message.range !== 0) { - writer.uint32(29).float(message.range); - } - return writer; - }, - - decode(input: BinaryReader | Uint8Array, length?: number): PitchLimitsExtrema { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const end = length === undefined ? reader.len : reader.pos + length; - const message = createBasePitchLimitsExtrema(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (tag !== 13) { - break; - } - - message.min = reader.float(); - continue; - } - case 2: { - if (tag !== 21) { - break; - } - - message.max = reader.float(); - continue; - } - case 3: { - if (tag !== 29) { - break; - } - - message.range = reader.float(); - continue; - } - } - if ((tag & 7) === 4 || tag === 0) { - break; - } - reader.skip(tag & 7); - } - return message; - }, - - fromJSON(object: any): PitchLimitsExtrema { - return { - min: isSet(object.min) ? globalThis.Number(object.min) : 0, - max: isSet(object.max) ? globalThis.Number(object.max) : 0, - range: isSet(object.range) ? globalThis.Number(object.range) : 0, - }; - }, - - toJSON(message: PitchLimitsExtrema): unknown { - const obj: any = {}; - if (message.min !== 0) { - obj.min = message.min; - } - if (message.max !== 0) { - obj.max = message.max; - } - if (message.range !== 0) { - obj.range = message.range; - } - return obj; - }, - - create, I>>(base?: I): PitchLimitsExtrema { - return PitchLimitsExtrema.fromPartial(base ?? ({} as any)); - }, - fromPartial, I>>(object: I): PitchLimitsExtrema { - const message = createBasePitchLimitsExtrema(); - message.min = object.min ?? 0; - message.max = object.max ?? 0; - message.range = object.range ?? 0; - return message; - }, -}; - -type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; - -export type DeepPartial = T extends Builtin ? T - : T extends globalThis.Array ? globalThis.Array> - : T extends ReadonlyArray ? ReadonlyArray> - : T extends { $case: string; value: unknown } ? { $case: T["$case"]; value?: DeepPartial } - : T extends {} ? { [K in keyof T]?: DeepPartial } - : Partial; - -type KeysOfUnion = T extends T ? keyof T : never; -export type Exact = P extends Builtin ? P - : P & { [K in keyof P]: Exact } & { [K in Exclude>]: never }; - -function isObject(value: any): boolean { - return typeof value === "object" && value !== null; -} - -function isSet(value: any): boolean { - return value !== null && value !== undefined; -} - -export interface MessageFns { - encode(message: T, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): T; - fromJSON(object: any): T; - toJSON(message: T): unknown; - create, I>>(base?: I): T; - fromPartial, I>>(object: I): T; -} diff --git a/packages/core/src/protos/popular_tanks.proto b/packages/core/src/protos/popular_tanks.proto deleted file mode 100644 index 68a3cef36..000000000 --- a/packages/core/src/protos/popular_tanks.proto +++ /dev/null @@ -1,12 +0,0 @@ -syntax = "proto2"; - -package blitzkit; - -message PopularTanks { - repeated PopularTank tanks = 1; -} - -message PopularTank { - required uint32 id = 1; - required uint32 views = 2; // views in the last 7 days -} \ No newline at end of file diff --git a/packages/core/src/protos/popular_tanks.ts b/packages/core/src/protos/popular_tanks.ts deleted file mode 100644 index c502b56ca..000000000 --- a/packages/core/src/protos/popular_tanks.ts +++ /dev/null @@ -1,182 +0,0 @@ -// Code generated by protoc-gen-ts_proto. DO NOT EDIT. -// versions: -// protoc-gen-ts_proto v2.7.7 -// protoc v3.19.6 -// source: popular_tanks.proto - -/* eslint-disable */ -import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire"; - -export const protobufPackage = "blitzkit"; - -export interface PopularTanks { - tanks: PopularTank[]; -} - -export interface PopularTank { - id: number; - /** views in the last 7 days */ - views: number; -} - -function createBasePopularTanks(): PopularTanks { - return { tanks: [] }; -} - -export const PopularTanks: MessageFns = { - encode(message: PopularTanks, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { - for (const v of message.tanks) { - PopularTank.encode(v!, writer.uint32(10).fork()).join(); - } - return writer; - }, - - decode(input: BinaryReader | Uint8Array, length?: number): PopularTanks { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const end = length === undefined ? reader.len : reader.pos + length; - const message = createBasePopularTanks(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (tag !== 10) { - break; - } - - message.tanks.push(PopularTank.decode(reader, reader.uint32())); - continue; - } - } - if ((tag & 7) === 4 || tag === 0) { - break; - } - reader.skip(tag & 7); - } - return message; - }, - - fromJSON(object: any): PopularTanks { - return { - tanks: globalThis.Array.isArray(object?.tanks) ? object.tanks.map((e: any) => PopularTank.fromJSON(e)) : [], - }; - }, - - toJSON(message: PopularTanks): unknown { - const obj: any = {}; - if (message.tanks?.length) { - obj.tanks = message.tanks.map((e) => PopularTank.toJSON(e)); - } - return obj; - }, - - create, I>>(base?: I): PopularTanks { - return PopularTanks.fromPartial(base ?? ({} as any)); - }, - fromPartial, I>>(object: I): PopularTanks { - const message = createBasePopularTanks(); - message.tanks = object.tanks?.map((e) => PopularTank.fromPartial(e)) || []; - return message; - }, -}; - -function createBasePopularTank(): PopularTank { - return { id: 0, views: 0 }; -} - -export const PopularTank: MessageFns = { - encode(message: PopularTank, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { - if (message.id !== 0) { - writer.uint32(8).uint32(message.id); - } - if (message.views !== 0) { - writer.uint32(16).uint32(message.views); - } - return writer; - }, - - decode(input: BinaryReader | Uint8Array, length?: number): PopularTank { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const end = length === undefined ? reader.len : reader.pos + length; - const message = createBasePopularTank(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (tag !== 8) { - break; - } - - message.id = reader.uint32(); - continue; - } - case 2: { - if (tag !== 16) { - break; - } - - message.views = reader.uint32(); - continue; - } - } - if ((tag & 7) === 4 || tag === 0) { - break; - } - reader.skip(tag & 7); - } - return message; - }, - - fromJSON(object: any): PopularTank { - return { - id: isSet(object.id) ? globalThis.Number(object.id) : 0, - views: isSet(object.views) ? globalThis.Number(object.views) : 0, - }; - }, - - toJSON(message: PopularTank): unknown { - const obj: any = {}; - if (message.id !== 0) { - obj.id = Math.round(message.id); - } - if (message.views !== 0) { - obj.views = Math.round(message.views); - } - return obj; - }, - - create, I>>(base?: I): PopularTank { - return PopularTank.fromPartial(base ?? ({} as any)); - }, - fromPartial, I>>(object: I): PopularTank { - const message = createBasePopularTank(); - message.id = object.id ?? 0; - message.views = object.views ?? 0; - return message; - }, -}; - -type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; - -export type DeepPartial = T extends Builtin ? T - : T extends globalThis.Array ? globalThis.Array> - : T extends ReadonlyArray ? ReadonlyArray> - : T extends { $case: string; value: unknown } ? { $case: T["$case"]; value?: DeepPartial } - : T extends {} ? { [K in keyof T]?: DeepPartial } - : Partial; - -type KeysOfUnion = T extends T ? keyof T : never; -export type Exact = P extends Builtin ? P - : P & { [K in keyof P]: Exact } & { [K in Exclude>]: never }; - -function isSet(value: any): boolean { - return value !== null && value !== undefined; -} - -export interface MessageFns { - encode(message: T, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): T; - fromJSON(object: any): T; - toJSON(message: T): unknown; - create, I>>(base?: I): T; - fromPartial, I>>(object: I): T; -} diff --git a/packages/core/src/protos/provision_definitions.proto b/packages/core/src/protos/provision_definitions.proto deleted file mode 100644 index 51629b370..000000000 --- a/packages/core/src/protos/provision_definitions.proto +++ /dev/null @@ -1,19 +0,0 @@ -syntax = "proto2"; - -package blitzkit; - -import "consumable_definitions.proto"; -import "i18n.proto"; - -message ProvisionDefinitions { - map provisions = 1; -} - -message Provision { - required uint32 id = 1; - required I18nString name = 2; - optional float crew = 3; - required bool game_mode_exclusive = 5; - repeated ConsumableTankFilter include = 6; - repeated ConsumableTankFilter exclude = 7; -} \ No newline at end of file diff --git a/packages/core/src/protos/provision_definitions.ts b/packages/core/src/protos/provision_definitions.ts deleted file mode 100644 index e1a4acd5c..000000000 --- a/packages/core/src/protos/provision_definitions.ts +++ /dev/null @@ -1,370 +0,0 @@ -// Code generated by protoc-gen-ts_proto. DO NOT EDIT. -// versions: -// protoc-gen-ts_proto v2.7.7 -// protoc v3.19.6 -// source: provision_definitions.proto - -/* eslint-disable */ -import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire"; -import { ConsumableTankFilter } from "./consumable_definitions"; -import { I18nString } from "./i18n"; - -export const protobufPackage = "blitzkit"; - -export interface ProvisionDefinitions { - provisions: { [key: number]: Provision }; -} - -export interface ProvisionDefinitions_ProvisionsEntry { - key: number; - value: Provision | undefined; -} - -export interface Provision { - id: number; - name: I18nString | undefined; - crew?: number | undefined; - game_mode_exclusive: boolean; - include: ConsumableTankFilter[]; - exclude: ConsumableTankFilter[]; -} - -function createBaseProvisionDefinitions(): ProvisionDefinitions { - return { provisions: {} }; -} - -export const ProvisionDefinitions: MessageFns = { - encode(message: ProvisionDefinitions, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { - Object.entries(message.provisions).forEach(([key, value]) => { - ProvisionDefinitions_ProvisionsEntry.encode({ key: key as any, value }, writer.uint32(10).fork()).join(); - }); - return writer; - }, - - decode(input: BinaryReader | Uint8Array, length?: number): ProvisionDefinitions { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseProvisionDefinitions(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (tag !== 10) { - break; - } - - const entry1 = ProvisionDefinitions_ProvisionsEntry.decode(reader, reader.uint32()); - if (entry1.value !== undefined) { - message.provisions[entry1.key] = entry1.value; - } - continue; - } - } - if ((tag & 7) === 4 || tag === 0) { - break; - } - reader.skip(tag & 7); - } - return message; - }, - - fromJSON(object: any): ProvisionDefinitions { - return { - provisions: isObject(object.provisions) - ? Object.entries(object.provisions).reduce<{ [key: number]: Provision }>((acc, [key, value]) => { - acc[globalThis.Number(key)] = Provision.fromJSON(value); - return acc; - }, {}) - : {}, - }; - }, - - toJSON(message: ProvisionDefinitions): unknown { - const obj: any = {}; - if (message.provisions) { - const entries = Object.entries(message.provisions); - if (entries.length > 0) { - obj.provisions = {}; - entries.forEach(([k, v]) => { - obj.provisions[k] = Provision.toJSON(v); - }); - } - } - return obj; - }, - - create, I>>(base?: I): ProvisionDefinitions { - return ProvisionDefinitions.fromPartial(base ?? ({} as any)); - }, - fromPartial, I>>(object: I): ProvisionDefinitions { - const message = createBaseProvisionDefinitions(); - message.provisions = Object.entries(object.provisions ?? {}).reduce<{ [key: number]: Provision }>( - (acc, [key, value]) => { - if (value !== undefined) { - acc[globalThis.Number(key)] = Provision.fromPartial(value); - } - return acc; - }, - {}, - ); - return message; - }, -}; - -function createBaseProvisionDefinitions_ProvisionsEntry(): ProvisionDefinitions_ProvisionsEntry { - return { key: 0, value: undefined }; -} - -export const ProvisionDefinitions_ProvisionsEntry: MessageFns = { - encode(message: ProvisionDefinitions_ProvisionsEntry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { - if (message.key !== 0) { - writer.uint32(8).uint32(message.key); - } - if (message.value !== undefined) { - Provision.encode(message.value, writer.uint32(18).fork()).join(); - } - return writer; - }, - - decode(input: BinaryReader | Uint8Array, length?: number): ProvisionDefinitions_ProvisionsEntry { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseProvisionDefinitions_ProvisionsEntry(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (tag !== 8) { - break; - } - - message.key = reader.uint32(); - continue; - } - case 2: { - if (tag !== 18) { - break; - } - - message.value = Provision.decode(reader, reader.uint32()); - continue; - } - } - if ((tag & 7) === 4 || tag === 0) { - break; - } - reader.skip(tag & 7); - } - return message; - }, - - fromJSON(object: any): ProvisionDefinitions_ProvisionsEntry { - return { - key: isSet(object.key) ? globalThis.Number(object.key) : 0, - value: isSet(object.value) ? Provision.fromJSON(object.value) : undefined, - }; - }, - - toJSON(message: ProvisionDefinitions_ProvisionsEntry): unknown { - const obj: any = {}; - if (message.key !== 0) { - obj.key = Math.round(message.key); - } - if (message.value !== undefined) { - obj.value = Provision.toJSON(message.value); - } - return obj; - }, - - create, I>>( - base?: I, - ): ProvisionDefinitions_ProvisionsEntry { - return ProvisionDefinitions_ProvisionsEntry.fromPartial(base ?? ({} as any)); - }, - fromPartial, I>>( - object: I, - ): ProvisionDefinitions_ProvisionsEntry { - const message = createBaseProvisionDefinitions_ProvisionsEntry(); - message.key = object.key ?? 0; - message.value = (object.value !== undefined && object.value !== null) - ? Provision.fromPartial(object.value) - : undefined; - return message; - }, -}; - -function createBaseProvision(): Provision { - return { id: 0, name: undefined, crew: 0, game_mode_exclusive: false, include: [], exclude: [] }; -} - -export const Provision: MessageFns = { - encode(message: Provision, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { - if (message.id !== 0) { - writer.uint32(8).uint32(message.id); - } - if (message.name !== undefined) { - I18nString.encode(message.name, writer.uint32(18).fork()).join(); - } - if (message.crew !== undefined && message.crew !== 0) { - writer.uint32(29).float(message.crew); - } - if (message.game_mode_exclusive !== false) { - writer.uint32(40).bool(message.game_mode_exclusive); - } - for (const v of message.include) { - ConsumableTankFilter.encode(v!, writer.uint32(50).fork()).join(); - } - for (const v of message.exclude) { - ConsumableTankFilter.encode(v!, writer.uint32(58).fork()).join(); - } - return writer; - }, - - decode(input: BinaryReader | Uint8Array, length?: number): Provision { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseProvision(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (tag !== 8) { - break; - } - - message.id = reader.uint32(); - continue; - } - case 2: { - if (tag !== 18) { - break; - } - - message.name = I18nString.decode(reader, reader.uint32()); - continue; - } - case 3: { - if (tag !== 29) { - break; - } - - message.crew = reader.float(); - continue; - } - case 5: { - if (tag !== 40) { - break; - } - - message.game_mode_exclusive = reader.bool(); - continue; - } - case 6: { - if (tag !== 50) { - break; - } - - message.include.push(ConsumableTankFilter.decode(reader, reader.uint32())); - continue; - } - case 7: { - if (tag !== 58) { - break; - } - - message.exclude.push(ConsumableTankFilter.decode(reader, reader.uint32())); - continue; - } - } - if ((tag & 7) === 4 || tag === 0) { - break; - } - reader.skip(tag & 7); - } - return message; - }, - - fromJSON(object: any): Provision { - return { - id: isSet(object.id) ? globalThis.Number(object.id) : 0, - name: isSet(object.name) ? I18nString.fromJSON(object.name) : undefined, - crew: isSet(object.crew) ? globalThis.Number(object.crew) : 0, - game_mode_exclusive: isSet(object.game_mode_exclusive) ? globalThis.Boolean(object.game_mode_exclusive) : false, - include: globalThis.Array.isArray(object?.include) - ? object.include.map((e: any) => ConsumableTankFilter.fromJSON(e)) - : [], - exclude: globalThis.Array.isArray(object?.exclude) - ? object.exclude.map((e: any) => ConsumableTankFilter.fromJSON(e)) - : [], - }; - }, - - toJSON(message: Provision): unknown { - const obj: any = {}; - if (message.id !== 0) { - obj.id = Math.round(message.id); - } - if (message.name !== undefined) { - obj.name = I18nString.toJSON(message.name); - } - if (message.crew !== undefined && message.crew !== 0) { - obj.crew = message.crew; - } - if (message.game_mode_exclusive !== false) { - obj.game_mode_exclusive = message.game_mode_exclusive; - } - if (message.include?.length) { - obj.include = message.include.map((e) => ConsumableTankFilter.toJSON(e)); - } - if (message.exclude?.length) { - obj.exclude = message.exclude.map((e) => ConsumableTankFilter.toJSON(e)); - } - return obj; - }, - - create, I>>(base?: I): Provision { - return Provision.fromPartial(base ?? ({} as any)); - }, - fromPartial, I>>(object: I): Provision { - const message = createBaseProvision(); - message.id = object.id ?? 0; - message.name = (object.name !== undefined && object.name !== null) - ? I18nString.fromPartial(object.name) - : undefined; - message.crew = object.crew ?? 0; - message.game_mode_exclusive = object.game_mode_exclusive ?? false; - message.include = object.include?.map((e) => ConsumableTankFilter.fromPartial(e)) || []; - message.exclude = object.exclude?.map((e) => ConsumableTankFilter.fromPartial(e)) || []; - return message; - }, -}; - -type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; - -export type DeepPartial = T extends Builtin ? T - : T extends globalThis.Array ? globalThis.Array> - : T extends ReadonlyArray ? ReadonlyArray> - : T extends { $case: string; value: unknown } ? { $case: T["$case"]; value?: DeepPartial } - : T extends {} ? { [K in keyof T]?: DeepPartial } - : Partial; - -type KeysOfUnion = T extends T ? keyof T : never; -export type Exact = P extends Builtin ? P - : P & { [K in keyof P]: Exact } & { [K in Exclude>]: never }; - -function isObject(value: any): boolean { - return typeof value === "object" && value !== null; -} - -function isSet(value: any): boolean { - return value !== null && value !== undefined; -} - -export interface MessageFns { - encode(message: T, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): T; - fromJSON(object: any): T; - toJSON(message: T): unknown; - create, I>>(base?: I): T; - fromPartial, I>>(object: I): T; -} diff --git a/packages/core/src/protos/rating_leaderboard.ts b/packages/core/src/protos/rating_leaderboard.ts deleted file mode 100644 index 108f95dca..000000000 --- a/packages/core/src/protos/rating_leaderboard.ts +++ /dev/null @@ -1,511 +0,0 @@ -// Code generated by protoc-gen-ts_proto. DO NOT EDIT. -// versions: -// protoc-gen-ts_proto v2.7.7 -// protoc v3.19.6 -// source: rating_leaderboard.proto - -/* eslint-disable */ -import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire"; - -export const protobufPackage = "blitzkit"; - -export interface RatingLeaderboard { - version?: { $case: "v1"; value: RatingLeaderboardV1 } | { $case: "v2"; value: RatingLeaderboardV2 } | undefined; -} - -export interface RatingLeaderboardV1 { - entries: RatingLeaderboardEntryV1[]; -} - -export interface RatingLeaderboardEntryV1 { - id: number; - score: number; -} - -export interface RatingLeaderboardV2 { - entries: RatingLeaderboardEntryV2[]; -} - -export interface RatingLeaderboardEntryV2 { - id: number; - score: number; - battles: number; - wins: number; - survived: number; - damage: number; - kills: number; -} - -function createBaseRatingLeaderboard(): RatingLeaderboard { - return { version: undefined }; -} - -export const RatingLeaderboard: MessageFns = { - encode(message: RatingLeaderboard, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { - switch (message.version?.$case) { - case "v1": - RatingLeaderboardV1.encode(message.version.value, writer.uint32(10).fork()).join(); - break; - case "v2": - RatingLeaderboardV2.encode(message.version.value, writer.uint32(18).fork()).join(); - break; - } - return writer; - }, - - decode(input: BinaryReader | Uint8Array, length?: number): RatingLeaderboard { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseRatingLeaderboard(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (tag !== 10) { - break; - } - - message.version = { $case: "v1", value: RatingLeaderboardV1.decode(reader, reader.uint32()) }; - continue; - } - case 2: { - if (tag !== 18) { - break; - } - - message.version = { $case: "v2", value: RatingLeaderboardV2.decode(reader, reader.uint32()) }; - continue; - } - } - if ((tag & 7) === 4 || tag === 0) { - break; - } - reader.skip(tag & 7); - } - return message; - }, - - fromJSON(object: any): RatingLeaderboard { - return { - version: isSet(object.v1) - ? { $case: "v1", value: RatingLeaderboardV1.fromJSON(object.v1) } - : isSet(object.v2) - ? { $case: "v2", value: RatingLeaderboardV2.fromJSON(object.v2) } - : undefined, - }; - }, - - toJSON(message: RatingLeaderboard): unknown { - const obj: any = {}; - if (message.version?.$case === "v1") { - obj.v1 = RatingLeaderboardV1.toJSON(message.version.value); - } else if (message.version?.$case === "v2") { - obj.v2 = RatingLeaderboardV2.toJSON(message.version.value); - } - return obj; - }, - - create, I>>(base?: I): RatingLeaderboard { - return RatingLeaderboard.fromPartial(base ?? ({} as any)); - }, - fromPartial, I>>(object: I): RatingLeaderboard { - const message = createBaseRatingLeaderboard(); - switch (object.version?.$case) { - case "v1": { - if (object.version?.value !== undefined && object.version?.value !== null) { - message.version = { $case: "v1", value: RatingLeaderboardV1.fromPartial(object.version.value) }; - } - break; - } - case "v2": { - if (object.version?.value !== undefined && object.version?.value !== null) { - message.version = { $case: "v2", value: RatingLeaderboardV2.fromPartial(object.version.value) }; - } - break; - } - } - return message; - }, -}; - -function createBaseRatingLeaderboardV1(): RatingLeaderboardV1 { - return { entries: [] }; -} - -export const RatingLeaderboardV1: MessageFns = { - encode(message: RatingLeaderboardV1, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { - for (const v of message.entries) { - RatingLeaderboardEntryV1.encode(v!, writer.uint32(10).fork()).join(); - } - return writer; - }, - - decode(input: BinaryReader | Uint8Array, length?: number): RatingLeaderboardV1 { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseRatingLeaderboardV1(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (tag !== 10) { - break; - } - - message.entries.push(RatingLeaderboardEntryV1.decode(reader, reader.uint32())); - continue; - } - } - if ((tag & 7) === 4 || tag === 0) { - break; - } - reader.skip(tag & 7); - } - return message; - }, - - fromJSON(object: any): RatingLeaderboardV1 { - return { - entries: globalThis.Array.isArray(object?.entries) - ? object.entries.map((e: any) => RatingLeaderboardEntryV1.fromJSON(e)) - : [], - }; - }, - - toJSON(message: RatingLeaderboardV1): unknown { - const obj: any = {}; - if (message.entries?.length) { - obj.entries = message.entries.map((e) => RatingLeaderboardEntryV1.toJSON(e)); - } - return obj; - }, - - create, I>>(base?: I): RatingLeaderboardV1 { - return RatingLeaderboardV1.fromPartial(base ?? ({} as any)); - }, - fromPartial, I>>(object: I): RatingLeaderboardV1 { - const message = createBaseRatingLeaderboardV1(); - message.entries = object.entries?.map((e) => RatingLeaderboardEntryV1.fromPartial(e)) || []; - return message; - }, -}; - -function createBaseRatingLeaderboardEntryV1(): RatingLeaderboardEntryV1 { - return { id: 0, score: 0 }; -} - -export const RatingLeaderboardEntryV1: MessageFns = { - encode(message: RatingLeaderboardEntryV1, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { - if (message.id !== 0) { - writer.uint32(8).uint32(message.id); - } - if (message.score !== 0) { - writer.uint32(16).uint32(message.score); - } - return writer; - }, - - decode(input: BinaryReader | Uint8Array, length?: number): RatingLeaderboardEntryV1 { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseRatingLeaderboardEntryV1(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (tag !== 8) { - break; - } - - message.id = reader.uint32(); - continue; - } - case 2: { - if (tag !== 16) { - break; - } - - message.score = reader.uint32(); - continue; - } - } - if ((tag & 7) === 4 || tag === 0) { - break; - } - reader.skip(tag & 7); - } - return message; - }, - - fromJSON(object: any): RatingLeaderboardEntryV1 { - return { - id: isSet(object.id) ? globalThis.Number(object.id) : 0, - score: isSet(object.score) ? globalThis.Number(object.score) : 0, - }; - }, - - toJSON(message: RatingLeaderboardEntryV1): unknown { - const obj: any = {}; - if (message.id !== 0) { - obj.id = Math.round(message.id); - } - if (message.score !== 0) { - obj.score = Math.round(message.score); - } - return obj; - }, - - create, I>>(base?: I): RatingLeaderboardEntryV1 { - return RatingLeaderboardEntryV1.fromPartial(base ?? ({} as any)); - }, - fromPartial, I>>(object: I): RatingLeaderboardEntryV1 { - const message = createBaseRatingLeaderboardEntryV1(); - message.id = object.id ?? 0; - message.score = object.score ?? 0; - return message; - }, -}; - -function createBaseRatingLeaderboardV2(): RatingLeaderboardV2 { - return { entries: [] }; -} - -export const RatingLeaderboardV2: MessageFns = { - encode(message: RatingLeaderboardV2, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { - for (const v of message.entries) { - RatingLeaderboardEntryV2.encode(v!, writer.uint32(10).fork()).join(); - } - return writer; - }, - - decode(input: BinaryReader | Uint8Array, length?: number): RatingLeaderboardV2 { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseRatingLeaderboardV2(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (tag !== 10) { - break; - } - - message.entries.push(RatingLeaderboardEntryV2.decode(reader, reader.uint32())); - continue; - } - } - if ((tag & 7) === 4 || tag === 0) { - break; - } - reader.skip(tag & 7); - } - return message; - }, - - fromJSON(object: any): RatingLeaderboardV2 { - return { - entries: globalThis.Array.isArray(object?.entries) - ? object.entries.map((e: any) => RatingLeaderboardEntryV2.fromJSON(e)) - : [], - }; - }, - - toJSON(message: RatingLeaderboardV2): unknown { - const obj: any = {}; - if (message.entries?.length) { - obj.entries = message.entries.map((e) => RatingLeaderboardEntryV2.toJSON(e)); - } - return obj; - }, - - create, I>>(base?: I): RatingLeaderboardV2 { - return RatingLeaderboardV2.fromPartial(base ?? ({} as any)); - }, - fromPartial, I>>(object: I): RatingLeaderboardV2 { - const message = createBaseRatingLeaderboardV2(); - message.entries = object.entries?.map((e) => RatingLeaderboardEntryV2.fromPartial(e)) || []; - return message; - }, -}; - -function createBaseRatingLeaderboardEntryV2(): RatingLeaderboardEntryV2 { - return { id: 0, score: 0, battles: 0, wins: 0, survived: 0, damage: 0, kills: 0 }; -} - -export const RatingLeaderboardEntryV2: MessageFns = { - encode(message: RatingLeaderboardEntryV2, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { - if (message.id !== 0) { - writer.uint32(8).uint32(message.id); - } - if (message.score !== 0) { - writer.uint32(16).uint32(message.score); - } - if (message.battles !== 0) { - writer.uint32(24).uint32(message.battles); - } - if (message.wins !== 0) { - writer.uint32(32).uint32(message.wins); - } - if (message.survived !== 0) { - writer.uint32(40).uint32(message.survived); - } - if (message.damage !== 0) { - writer.uint32(48).uint32(message.damage); - } - if (message.kills !== 0) { - writer.uint32(56).uint32(message.kills); - } - return writer; - }, - - decode(input: BinaryReader | Uint8Array, length?: number): RatingLeaderboardEntryV2 { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseRatingLeaderboardEntryV2(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (tag !== 8) { - break; - } - - message.id = reader.uint32(); - continue; - } - case 2: { - if (tag !== 16) { - break; - } - - message.score = reader.uint32(); - continue; - } - case 3: { - if (tag !== 24) { - break; - } - - message.battles = reader.uint32(); - continue; - } - case 4: { - if (tag !== 32) { - break; - } - - message.wins = reader.uint32(); - continue; - } - case 5: { - if (tag !== 40) { - break; - } - - message.survived = reader.uint32(); - continue; - } - case 6: { - if (tag !== 48) { - break; - } - - message.damage = reader.uint32(); - continue; - } - case 7: { - if (tag !== 56) { - break; - } - - message.kills = reader.uint32(); - continue; - } - } - if ((tag & 7) === 4 || tag === 0) { - break; - } - reader.skip(tag & 7); - } - return message; - }, - - fromJSON(object: any): RatingLeaderboardEntryV2 { - return { - id: isSet(object.id) ? globalThis.Number(object.id) : 0, - score: isSet(object.score) ? globalThis.Number(object.score) : 0, - battles: isSet(object.battles) ? globalThis.Number(object.battles) : 0, - wins: isSet(object.wins) ? globalThis.Number(object.wins) : 0, - survived: isSet(object.survived) ? globalThis.Number(object.survived) : 0, - damage: isSet(object.damage) ? globalThis.Number(object.damage) : 0, - kills: isSet(object.kills) ? globalThis.Number(object.kills) : 0, - }; - }, - - toJSON(message: RatingLeaderboardEntryV2): unknown { - const obj: any = {}; - if (message.id !== 0) { - obj.id = Math.round(message.id); - } - if (message.score !== 0) { - obj.score = Math.round(message.score); - } - if (message.battles !== 0) { - obj.battles = Math.round(message.battles); - } - if (message.wins !== 0) { - obj.wins = Math.round(message.wins); - } - if (message.survived !== 0) { - obj.survived = Math.round(message.survived); - } - if (message.damage !== 0) { - obj.damage = Math.round(message.damage); - } - if (message.kills !== 0) { - obj.kills = Math.round(message.kills); - } - return obj; - }, - - create, I>>(base?: I): RatingLeaderboardEntryV2 { - return RatingLeaderboardEntryV2.fromPartial(base ?? ({} as any)); - }, - fromPartial, I>>(object: I): RatingLeaderboardEntryV2 { - const message = createBaseRatingLeaderboardEntryV2(); - message.id = object.id ?? 0; - message.score = object.score ?? 0; - message.battles = object.battles ?? 0; - message.wins = object.wins ?? 0; - message.survived = object.survived ?? 0; - message.damage = object.damage ?? 0; - message.kills = object.kills ?? 0; - return message; - }, -}; - -type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; - -export type DeepPartial = T extends Builtin ? T - : T extends globalThis.Array ? globalThis.Array> - : T extends ReadonlyArray ? ReadonlyArray> - : T extends { $case: string; value: unknown } ? { $case: T["$case"]; value?: DeepPartial } - : T extends {} ? { [K in keyof T]?: DeepPartial } - : Partial; - -type KeysOfUnion = T extends T ? keyof T : never; -export type Exact = P extends Builtin ? P - : P & { [K in keyof P]: Exact } & { [K in Exclude>]: never }; - -function isSet(value: any): boolean { - return value !== null && value !== undefined; -} - -export interface MessageFns { - encode(message: T, writer?: BinaryWriter): BinaryWriter; - decode(input: BinaryReader | Uint8Array, length?: number): T; - fromJSON(object: any): T; - toJSON(message: T): unknown; - create, I>>(base?: I): T; - fromPartial, I>>(object: I): T; -} diff --git a/packages/core/src/protos/reviews.ts b/packages/core/src/protos/reviews.ts deleted file mode 100644 index 4981454dc..000000000 --- a/packages/core/src/protos/reviews.ts +++ /dev/null @@ -1,368 +0,0 @@ -// Code generated by protoc-gen-ts_proto. DO NOT EDIT. -// versions: -// protoc-gen-ts_proto v2.7.7 -// protoc v3.19.6 -// source: reviews.proto - -/* eslint-disable */ -import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire"; - -export const protobufPackage = "blitzkit"; - -export interface Reviews { - reviews: { [key: number]: Review }; -} - -export interface Reviews_ReviewsEntry { - key: number; - value: Review | undefined; -} - -export interface Review { - last_updated: number; - videos: Video[]; -} - -export interface Video { - id: string; - author: string; -} - -function createBaseReviews(): Reviews { - return { reviews: {} }; -} - -export const Reviews: MessageFns = { - encode(message: Reviews, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { - Object.entries(message.reviews).forEach(([key, value]) => { - Reviews_ReviewsEntry.encode({ key: key as any, value }, writer.uint32(10).fork()).join(); - }); - return writer; - }, - - decode(input: BinaryReader | Uint8Array, length?: number): Reviews { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseReviews(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (tag !== 10) { - break; - } - - const entry1 = Reviews_ReviewsEntry.decode(reader, reader.uint32()); - if (entry1.value !== undefined) { - message.reviews[entry1.key] = entry1.value; - } - continue; - } - } - if ((tag & 7) === 4 || tag === 0) { - break; - } - reader.skip(tag & 7); - } - return message; - }, - - fromJSON(object: any): Reviews { - return { - reviews: isObject(object.reviews) - ? Object.entries(object.reviews).reduce<{ [key: number]: Review }>((acc, [key, value]) => { - acc[globalThis.Number(key)] = Review.fromJSON(value); - return acc; - }, {}) - : {}, - }; - }, - - toJSON(message: Reviews): unknown { - const obj: any = {}; - if (message.reviews) { - const entries = Object.entries(message.reviews); - if (entries.length > 0) { - obj.reviews = {}; - entries.forEach(([k, v]) => { - obj.reviews[k] = Review.toJSON(v); - }); - } - } - return obj; - }, - - create, I>>(base?: I): Reviews { - return Reviews.fromPartial(base ?? ({} as any)); - }, - fromPartial, I>>(object: I): Reviews { - const message = createBaseReviews(); - message.reviews = Object.entries(object.reviews ?? {}).reduce<{ [key: number]: Review }>((acc, [key, value]) => { - if (value !== undefined) { - acc[globalThis.Number(key)] = Review.fromPartial(value); - } - return acc; - }, {}); - return message; - }, -}; - -function createBaseReviews_ReviewsEntry(): Reviews_ReviewsEntry { - return { key: 0, value: undefined }; -} - -export const Reviews_ReviewsEntry: MessageFns = { - encode(message: Reviews_ReviewsEntry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { - if (message.key !== 0) { - writer.uint32(8).uint32(message.key); - } - if (message.value !== undefined) { - Review.encode(message.value, writer.uint32(18).fork()).join(); - } - return writer; - }, - - decode(input: BinaryReader | Uint8Array, length?: number): Reviews_ReviewsEntry { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseReviews_ReviewsEntry(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (tag !== 8) { - break; - } - - message.key = reader.uint32(); - continue; - } - case 2: { - if (tag !== 18) { - break; - } - - message.value = Review.decode(reader, reader.uint32()); - continue; - } - } - if ((tag & 7) === 4 || tag === 0) { - break; - } - reader.skip(tag & 7); - } - return message; - }, - - fromJSON(object: any): Reviews_ReviewsEntry { - return { - key: isSet(object.key) ? globalThis.Number(object.key) : 0, - value: isSet(object.value) ? Review.fromJSON(object.value) : undefined, - }; - }, - - toJSON(message: Reviews_ReviewsEntry): unknown { - const obj: any = {}; - if (message.key !== 0) { - obj.key = Math.round(message.key); - } - if (message.value !== undefined) { - obj.value = Review.toJSON(message.value); - } - return obj; - }, - - create, I>>(base?: I): Reviews_ReviewsEntry { - return Reviews_ReviewsEntry.fromPartial(base ?? ({} as any)); - }, - fromPartial, I>>(object: I): Reviews_ReviewsEntry { - const message = createBaseReviews_ReviewsEntry(); - message.key = object.key ?? 0; - message.value = (object.value !== undefined && object.value !== null) - ? Review.fromPartial(object.value) - : undefined; - return message; - }, -}; - -function createBaseReview(): Review { - return { last_updated: 0, videos: [] }; -} - -export const Review: MessageFns = { - encode(message: Review, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { - if (message.last_updated !== 0) { - writer.uint32(13).float(message.last_updated); - } - for (const v of message.videos) { - Video.encode(v!, writer.uint32(18).fork()).join(); - } - return writer; - }, - - decode(input: BinaryReader | Uint8Array, length?: number): Review { - const reader = input instanceof BinaryReader ? input : new BinaryReader(input); - const end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseReview(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (tag !== 13) { - break; - } - - message.last_updated = reader.float(); - continue; - } - case 2: { - if (tag !== 18) { - break; - } - - message.videos.push(Video.decode(reader, reader.uint32())); - continue; - } - } - if ((tag & 7) === 4 || tag === 0) { - break; - } - reader.skip(tag & 7); - } - return message; - }, - - fromJSON(object: any): Review { - return { - last_updated: isSet(object.last_updated) ? globalThis.Number(object.last_updated) : 0, - videos: globalThis.Array.isArray(object?.videos) ? object.videos.map((e: any) => Video.fromJSON(e)) : [], - }; - }, - - toJSON(message: Review): unknown { - const obj: any = {}; - if (message.last_updated !== 0) { - obj.last_updated = message.last_updated; - } - if (message.videos?.length) { - obj.videos = message.videos.map((e) => Video.toJSON(e)); - } - return obj; - }, - - create, I>>(base?: I): Review { - return Review.fromPartial(base ?? ({} as any)); - }, - fromPartial, I>>(object: I): Review { - const message = createBaseReview(); - message.last_updated = object.last_updated ?? 0; - message.videos = object.videos?.map((e) => Video.fromPartial(e)) || []; - return message; - }, -}; - -function createBaseVideo(): Video { - return { id: "", author: "" }; -} - -export const Video: MessageFns