Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.
TypeScript ai-agentsbill-of-materialserpinventory-managementleanmanufacturingmanufacturing-execution-systemmcp-servermesmrpopen-source-erppostgresqlproduction-planningqmsquality-management-systemreact-routerself-hostedsupabasetraceabilitytypescript
Self-hosted sign-in works behind a TLS proxy, and assets are compressed once at build (#1856)
Sid73037a820390
diff --git a/apps/erp/package.json b/apps/erp/package.jsonindex d68bbaa909..7cf3a06e75 100644--- a/apps/erp/package.json+++ b/apps/erp/package.json@@ -22,6 +22,7 @@"@carbon/logger": "workspace:*","@carbon/notifications": "workspace:*","@carbon/onboarding": "workspace:*",+ "@carbon/serve": "workspace:*","@carbon/server-functions": "workspace:*","@carbon/planning": "workspace:*","@carbon/printing": "workspace:*",@@ -49,7 +50,6 @@"@react-email/components": "catalog:","@react-pdf/renderer": "catalog:","@react-router/remix-routes-option-adapter": "catalog:",- "@react-router/serve": "catalog:","@react-types/datepicker": "3.13.5","@react-types/shared": "3.33.1","@simplewebauthn/browser": "^13.3.0",@@ -178,7 +178,7 @@"dev": "portless --script dev:app run --force","dev:app": "react-router dev","lint": "biome lint --write ",- "start": "NODE_ENV=production react-router-serve ./build/server/index.js",+ "start": "NODE_ENV=production node ./server/node.ts","test": "vitest run","typecheck": "react-router typegen && tsgo --noEmit","typegen": "react-router typegen"diff --git a/apps/erp/server/node.ts b/apps/erp/server/node.tsnew file mode 100644index 0000000000..d1f14b977d--- /dev/null+++ b/apps/erp/server/node.ts@@ -0,0 +1,23 @@+// SPDX-License-Identifier: AGPL-3.0-only+// Carbon (github.com/crbnos/carbon). Modified or adapted versions of this file,+// including ports, remain AGPLv3; serving them over a network requires releasing their source.++// What `pnpm start` runs in the self-hosted image. Vercel does not come+// through here; it calls `server/app.ts`.++import path from "node:path";+import { serve } from "@carbon/serve";+import type { ServerBuild } from "react-router";++// By URL, not as a literal path: the build is not there when this file is+// typechecked, and a literal one TypeScript would go looking for.+const build: ServerBuild = await import(+ new URL("../build/server/index.js", import.meta.url).href+);++await serve({+ build,+ clientDirectory: path.resolve(import.meta.dirname, "../build/client"),+ // The app's own address, as the deployment sets it.+ siteUrl: process.env.ERP_URL+});diff --git a/apps/erp/vite.config.ts b/apps/erp/vite.config.tsindex df66fd6639..2bd5aced0b 100644--- a/apps/erp/vite.config.ts+++ b/apps/erp/vite.config.ts@@ -6,6 +6,7 @@ import {applyDotenvToProcessEnv,clientOnlyAlias,linguiWithoutIdQuery,+ precompressedAssets,stackActivity,} from "@carbon/dev/vite";import { getConfig } from "@lingui/conf";@@ -144,6 +145,7 @@ export default defineConfig(({ command, isSsrBuild, mode }) => {tailwindcss(),linguiWithoutIdQuery(lingui({ macroTransform: true })),reactRouter(),+ precompressedAssets({ command, mode }),// react-aria ships strings for ~34 locales; keep the ones the app translates.optimizeLocales.vite({ locales: getConfig().locales }),// unpdf's bundled PDF.js engine is a dead lazy chunk in the browser, whichdiff --git a/apps/mes/package.json b/apps/mes/package.jsonindex 25ea0e3e66..b398c76b62 100644--- a/apps/mes/package.json+++ b/apps/mes/package.json@@ -13,6 +13,7 @@"@carbon/lib": "workspace:*","@carbon/locale": "workspace:*","@carbon/logger": "workspace:*",+ "@carbon/serve": "workspace:*","@carbon/server-functions": "workspace:*","@carbon/notifications": "workspace:*","@carbon/printing": "workspace:*",@@ -35,7 +36,6 @@"@react-pdf/renderer": "catalog:","@react-router/dev": "catalog:","@react-router/remix-routes-option-adapter": "catalog:",- "@react-router/serve": "catalog:","@simplewebauthn/browser": "^13.3.0","@supabase/functions-js": "catalog:","@supabase/storage-js": "catalog:",@@ -118,7 +118,7 @@"dev": "portless --script dev:app run --force","dev:app": "react-router dev","lint": "biome lint --write ",- "start": "NODE_ENV=production react-router-serve ./build/server/index.js",+ "start": "NODE_ENV=production node ./server/node.ts","test": "vitest run","typecheck": "react-router typegen && tsgo --noEmit","typegen": "react-router typegen"diff --git a/apps/mes/server/node.ts b/apps/mes/server/node.tsnew file mode 100644index 0000000000..15041531c8--- /dev/null+++ b/apps/mes/server/node.ts@@ -0,0 +1,23 @@+// SPDX-License-Identifier: AGPL-3.0-only+// Carbon (github.com/crbnos/carbon). Modified or adapted versions of this file,+// including ports, remain AGPLv3; serving them over a network requires releasing their source.++// What `pnpm start` runs in the self-hosted image. Vercel does not come+// through here; it calls `server/app.ts`.++import path from "node:path";+import { serve } from "@carbon/serve";+import type { ServerBuild } from "react-router";++// By URL, not as a literal path: the build is not there when this file is+// typechecked, and a literal one TypeScript would go looking for.+const build: ServerBuild = await import(+ new URL("../build/server/index.js", import.meta.url).href+);++await serve({+ build,+ clientDirectory: path.resolve(import.meta.dirname, "../build/client"),+ // The app's own address, as the deployment sets it.+ siteUrl: process.env.MES_URL+});diff --git a/apps/mes/vite.config.ts b/apps/mes/vite.config.tsindex 8c8dbebfe6..9e9bcedbd1 100644--- a/apps/mes/vite.config.ts+++ b/apps/mes/vite.config.ts@@ -6,6 +6,7 @@ import {applyDotenvToProcessEnv,clientOnlyAlias,linguiWithoutIdQuery,+ precompressedAssets,stackActivity,} from "@carbon/dev/vite";import { reactRouter } from "@react-router/dev/vite";@@ -112,6 +113,7 @@ export default defineConfig(({ command, mode, isSsrBuild }) => {tailwindcss(),linguiWithoutIdQuery(lingui({ macroTransform: true })),reactRouter(),+ precompressedAssets({ command, mode }),// react-aria ships strings for ~34 locales; keep the ones the app translates.optimizeLocales.vite({ locales: getConfig().locales }),// unpdf's bundled PDF.js engine is a dead lazy chunk in the browser, whichdiff --git a/packages/dev/package.json b/packages/dev/package.jsonindex 9ac3b29cb6..360c93ccd1 100644--- a/packages/dev/package.json+++ b/packages/dev/package.json@@ -20,6 +20,7 @@"dependencies": {"@bomb.sh/tab": "^0.0.15","@clack/prompts": "^1.3.0",+ "@medicomind/rolldown-compression": "catalog:","citty": "^0.1.6","cli-table3": "^0.6.5","dotenv": "16.3.1",diff --git a/packages/dev/vite.d.ts b/packages/dev/vite.d.tsindex 812c94315d..4813710edf 100644--- a/packages/dev/vite.d.ts+++ b/packages/dev/vite.d.ts@@ -7,5 +7,10 @@ import type { Plugin } from "vite";export function applyDotenvToProcessEnv(mode: string, appDir: string): void;export function clientOnlyAlias(specifier: string, file: string): Plugin;export function stackActivity(): Plugin;+export function precompressedAssets(env: {+ command: "build" | "serve";+ mode: string;+}): Promise<Plugin[]>;+export function compressRemaining(directory: string): Promise<void>;export function linguiWithoutIdQuery<T>(plugins: T[]): T[];diff --git a/packages/dev/vite.js b/packages/dev/vite.jsindex bb48b7b4cd..43a6c87274 100644--- a/packages/dev/vite.js+++ b/packages/dev/vite.js@@ -3,7 +3,10 @@// including ports, remain AGPLv3; serving them over a network requires releasing their source.import fs from "node:fs";+import { readdir, readFile, writeFile } from "node:fs/promises";import path from "node:path";+import { promisify } from "node:util";+import { brotliCompress, constants } from "node:zlib";import { loadEnv } from "vite";/**@@ -132,3 +135,97 @@ export function stackActivity() {},};}++/**+ * Compresses the client build once, at build time: a `.br` at Brotli's+ * highest setting is written beside each asset. `@carbon/serve` sends the+ * `.br` as it is, where the stock server compressed the same never-changing+ * file again on every request, at a setting weak enough to do that fast.+ * The originals stay, for a caller that does not take Brotli and for+ * anything else that reads the build.+ *+ * Every production build does this except Vercel's: Vercel serves the+ * files from its own CDN and compresses them there, and never asks for a+ * `.br`. Client build only: nobody downloads the server bundle.+ *+ * The plugin is native code, imported only when it is going to run, so+ * `vite dev` never loads it.+ *+ * @param {{ command: "build" | "serve", mode: string }} env what Vite+ * hands a config function+ * @returns {Promise<import("vite").Plugin[]>}+ */+export async function precompressedAssets({ command, mode }) {+ if (command !== "build" || mode !== "production" || process.env.VERCEL) {+ return [];+ }+ const { compression, defineAlgorithm } = await import(+ "@medicomind/rolldown-compression"+ );+ /** @type {string | undefined} */+ let clientDirectory;+ return [+ {+ ...compression({+ // Under this a response is one packet either way.+ threshold: 1024,+ algorithms: [defineAlgorithm("brotli", { quality: 11 })],+ // From disk, after everything is written. In memory the plugin+ // sees each chunk before Vite has finished it — the preload lists+ // are still `__VITE_PRELOAD__` — and the `.br` it wrote was of code+ // that throws the first time it lazy-loads anything.+ stream: true,+ }),+ applyToEnvironment: (environment) => environment.name === "client",+ },+ {+ // React Router writes its route manifest after the client build's+ // plugins have run, so the largest script in the build was the one+ // file left without a `.br`. Once the server build is done, it is+ // there to compress.+ name: "carbon:compress-remaining",+ applyToEnvironment: (environment) => environment.name === "ssr",+ configResolved(config) {+ const outDir = config.environments?.client?.build?.outDir;+ if (outDir) clientDirectory = path.resolve(config.root, outDir);+ },+ closeBundle: {+ order: "post",+ sequential: true,+ async handler(error) {+ if (error || !clientDirectory) return;+ await compressRemaining(clientDirectory);+ },+ },+ },+ ];+}++/** @param {Buffer} source */+const brotli = (source) =>+ promisify(brotliCompress)(source, {+ params: {+ [constants.BROTLI_PARAM_QUALITY]: 11,+ [constants.BROTLI_PARAM_SIZE_HINT]: source.length,+ },+ });++/**+ * Writes a `.br` beside every script and stylesheet under `directory` that+ * is worth compressing and has none.+ *+ * @param {string} directory+ */+export async function compressRemaining(directory) {+ const entries = await readdir(directory, {+ recursive: true,+ withFileTypes: true,+ });+ const files = new Set(entries.map((e) => path.join(e.parentPath, e.name)));+ for (const file of files) {+ if (!/\.(js|css)$/.test(file) || files.has(`${file}.br`)) continue;+ const source = await readFile(file);+ if (source.length < 1024) continue;+ await writeFile(`${file}.br`, await brotli(source));+ }+}diff --git a/packages/serve/AGENTS.md b/packages/serve/AGENTS.mdnew file mode 100644index 0000000000..531537d379--- /dev/null+++ b/packages/serve/AGENTS.md@@ -0,0 +1,59 @@+# @carbon/serve++The HTTP server a self-hosted ERP or MES runs on (`apps/*/server/node.ts`,+which is what `pnpm start` runs in the image). Fastify in front, React Router+behind. Vercel does not use it; it calls `apps/*/server/app.ts`.++It replaces `react-router-serve`, which loads the build itself and takes no+options, so nothing could be put between a request and React Router.++## Always++- **TypeScript that `node` can run as it is.** The image has no TypeScript+ toolchain; Node 22 strips the types. So only erasable syntax (no enums,+ no parameter properties), `import type` for types, and file extensions on+ relative imports. It must stay outside `node_modules`: Node refuses to+ strip types there, and `packages/` is copied into the image as it is.+- **The app's own URL is the allowed origin.** `serve({ siteUrl })` adds that+ host to React Router's `allowedActionOrigins` at runtime. React Router+ refuses a form submit whose `Origin` is not the origin of `request.url`, and+ behind a proxy that ends TLS the app is called over http while the browser+ says https — without this every submit is a 400. ERP passes `ERP_URL`, MES+ `MES_URL`. Unset, nothing is added.+- **Static files are sent as the build left them.** A build (see+ `precompressedAssets` in `@carbon/dev/vite`; every production build but+ Vercel's) writes a `.br` beside each asset and keeps the original. The+ `.br` goes as it is to anything that accepts Brotli; the original to a+ caller that does not. Both answers carry `Vary: Accept-Encoding`.+- **Which files exist is read once, at start.** `@fastify/static` is only+ used to send the file that index names (`serve: false`, `reply.sendFile`).+ Left to find files itself it lists the parent directory on every request,+ which with two thousand chunks was slower than compressing on the fly.+- **React Router is a route, not the not-found handler.** `@fastify/compress`+ attaches to routes only; from the not-found handler pages went out+ uncompressed.+- **Bodies are left unread.** The content-type parsers are removed so the+ request stream reaches React Router whole.+- **The request URL is joined as text**, never resolved against a base: a+ path of `//other.host/x` would name another host, and React Router checks+ a form's `Origin` against that URL.+- **Fastify's defaults are not all kept.** `keepAliveTimeout` is above any+ proxy's idle timeout, and `requestTimeout` is Node's 300s (Fastify sets+ none). `bodyLimit` does not apply: no body is parsed here. A request whose `Content-Type` is not a+ media type at all is a 415 from Fastify before React Router sees it.+- Routes that should not go through React Router at all belong here, in front+ of the catch-all — not as a path check inside a route.++## Never++- Compress a client asset per request. That is what the build step replaced.+- Trust `X-Forwarded-*` to decide the origin. The deployment's configured URL+ is the answer; a header is whatever the last hop sent.+- Send the caller an error's message. It is logged; the answer is the status.++## Validation++```bash+pnpm --filter @carbon/serve test+pnpm --filter @carbon/serve typecheck+```diff --git a/packages/serve/CLAUDE.md b/packages/serve/CLAUDE.mdnew file mode 100644index 0000000000..43c994c2d3--- /dev/null+++ b/packages/serve/CLAUDE.md@@ -0,0 +1 @@diff --git a/packages/serve/package.json b/packages/serve/package.jsonnew file mode 100644index 0000000000..072ae21f96--- /dev/null+++ b/packages/serve/package.json@@ -0,0 +1,27 @@+{+ "name": "@carbon/serve",+ "dependencies": {+ "@fastify/compress": "catalog:",+ "@fastify/static": "catalog:",+ "fastify": "catalog:",+ "react-router": "catalog:"+ },+ "devDependencies": {+ "@carbon/config": "workspace:*",+ "@types/node": "20.19.39",+ "typescript": "catalog:",+ "vitest": "catalog:"+ },+ "exports": {+ ".": "./src/index.ts"+ },+ "private": true,+ "scripts": {+ "clean": "rimraf .turbo node_modules dist",+ "lint": "biome lint --write ",+ "test": "vitest run",+ "typecheck": "tsgo --noEmit"+ },+ "sideEffects": false,+ "type": "module"+}diff --git a/packages/serve/src/index.test.ts b/packages/serve/src/index.test.tsnew file mode 100644index 0000000000..380a85d9f9--- /dev/null+++ b/packages/serve/src/index.test.ts@@ -0,0 +1,240 @@+// SPDX-License-Identifier: AGPL-3.0-only+// Carbon (github.com/crbnos/carbon). Modified or adapted versions of this file,+// including ports, remain AGPLv3; serving them over a network requires releasing their source.++import { mkdirSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";+import { tmpdir } from "node:os";+import path from "node:path";+import { brotliCompressSync } from "node:zlib";+import { afterAll, beforeAll, describe, expect, it } from "vitest";+import { allowedActionOrigins, createApp, takesBrotli } from "./index.ts";++const SCRIPT = "console.log('carbon');\n".repeat(200);++describe("allowedActionOrigins", () => {+ it("is the host of the configured site URL", () => {+ expect(allowedActionOrigins("https://erp.acme.com")).toEqual([+ "erp.acme.com"+ ]);+ expect(allowedActionOrigins("https://erp.acme.com:8443/x")).toEqual([+ "erp.acme.com:8443"+ ]);+ });++ it("is nothing when the deployment does not say where the app lives", () => {+ expect(allowedActionOrigins(undefined)).toEqual([]);+ expect(allowedActionOrigins("")).toEqual([]);+ expect(allowedActionOrigins("erp.acme.com")).toEqual([]);+ });+});++describe("takesBrotli", () => {+ it("is what the header says, a refusal included", () => {+ expect(takesBrotli("gzip, deflate, br")).toBe(true);+ expect(takesBrotli("BR;q=0.5, gzip")).toBe(true);+ expect(takesBrotli("gzip, br;q=0")).toBe(false);+ expect(takesBrotli("gzip, br; q=0.0")).toBe(false);+ expect(takesBrotli("gzip, brotli")).toBe(false);+ expect(takesBrotli(undefined)).toBe(false);+ });+});++describe("createApp", () => {+ let root: string;+ let app: Awaited<ReturnType<typeof createApp>>;+ const seen: Request[] = [];++ beforeAll(async () => {+ root = mkdtempSync(path.join(tmpdir(), "carbon-serve-"));+ mkdirSync(path.join(root, "assets"));+ // As the build leaves it: the file, and a Brotli copy beside it.+ writeFileSync(path.join(root, "assets", "entry-abc123.js"), SCRIPT);+ writeFileSync(+ path.join(root, "assets", "entry-abc123.js.br"),+ brotliCompressSync(SCRIPT)+ );+ // Too small to be worth compressing, so it stays as it is.+ writeFileSync(path.join(root, "robots.txt"), "User-agent: *\n");++ app = await createApp({+ clientDirectory: root,+ handleRequest: async (request: Request) => {+ seen.push(request);+ const headers = new Headers({ "content-type": "text/plain" });+ headers.append("set-cookie", "a=1; Path=/");+ headers.append("set-cookie", "b=2; Path=/");+ if (new URL(request.url).pathname === "/upload")+ return new Response(String((await request.arrayBuffer()).byteLength));+ const body = request.body ? await request.text() : "";+ if (new URL(request.url).pathname === "/boom")+ throw new Error("postgres://user:secret@db/carbon");+ const type = new URL(request.url).searchParams.get("type");+ if (type)+ return new Response("carbon ".repeat(1000), {+ headers: { "content-type": type }+ });+ if (new URL(request.url).pathname === "/page")+ return new Response("<p>carbon</p>".repeat(500), {+ headers: { "content-type": "text/html; charset=utf-8" }+ });+ return new Response(`${request.method} ${request.url} ${body}`, {+ status: 201,+ headers+ });+ }+ });+ });++ afterAll(async () => {+ await app.close();+ rmSync(root, { recursive: true, force: true });+ });++ it("sends the Brotli file as it is to a browser", async () => {+ const res = await app.inject({+ url: "/assets/entry-abc123.js",+ headers: { "accept-encoding": "gzip, deflate, br" }+ });+ expect(res.statusCode).toBe(200);+ expect(res.headers["content-encoding"]).toBe("br");+ expect(res.headers["cache-control"]).toContain("immutable");+ expect(res.headers["content-type"]).toContain("text/javascript");+ expect(res.headers.vary).toContain("Accept-Encoding");+ expect(res.rawPayload.length).toBeLessThan(SCRIPT.length / 10);+ });++ it("sends the file itself to a caller that refuses Brotli", async () => {+ const res = await app.inject({+ url: "/assets/entry-abc123.js",+ headers: { "accept-encoding": "br;q=0" }+ });+ expect(res.headers["content-encoding"]).toBeUndefined();+ expect(res.payload).toBe(SCRIPT);+ });++ it("sends the file itself to a caller that cannot take Brotli", async () => {+ const res = await app.inject({ url: "/assets/entry-abc123.js" });+ expect(res.statusCode).toBe(200);+ expect(res.headers["content-encoding"]).toBeUndefined();+ expect(res.headers["content-type"]).toContain("javascript");+ expect(res.headers["cache-control"]).toContain("immutable");+ // A cache in between must not hand this copy to a browser, or the+ // other way round.+ expect(res.headers.vary).toContain("Accept-Encoding");+ expect(res.payload).toBe(SCRIPT);+ });++ it("serves a file the build left uncompressed, cached for less", async () => {+ const res = await app.inject({ url: "/robots.txt" });+ expect(res.statusCode).toBe(200);+ expect(res.payload).toBe("User-agent: *\n");+ expect(res.headers["cache-control"]).toBe("public, max-age=3600");+ });++ it("compresses what the handler renders", async () => {+ const res = await app.inject({+ url: "/page",+ headers: { "accept-encoding": "gzip, deflate, br" }+ });+ expect(res.statusCode).toBe(200);+ expect(res.headers["content-encoding"]).toBe("br");+ expect(res.rawPayload.length).toBeLessThan(1000);+ });++ it("names the charset of a page", async () => {+ const res = await app.inject({ url: "/page" });+ expect(res.headers["content-type"]).toBe("text/html; charset=utf-8");+ });++ it("answers a missing asset itself", async () => {+ seen.length = 0;+ for (const url of [+ "/assets/gone-abc123.js",+ "/_vercel/insights/script.js"+ ]) {+ const res = await app.inject({ url });+ expect(res.statusCode).toBe(404);+ expect(res.headers["cache-control"]).toBe("no-store");+ }+ expect(seen).toHaveLength(0);+ });++ it("keeps the host it was called on, whatever the path says", async () => {+ seen.length = 0;+ await app.inject({+ method: "POST",+ url: "//evil.test/login.data",+ headers: { host: "erp.acme.com" }+ });+ expect(new URL(seen[0]?.url ?? "").host).toBe("erp.acme.com");+ });++ it("passes on a body larger than Fastify's own limit", async () => {+ const res = await app.inject({+ method: "POST",+ url: "/upload",+ headers: { "content-type": "application/octet-stream" },+ payload: Buffer.alloc(5 * 1024 * 1024, 1)+ });+ expect(res.payload).toBe(String(5 * 1024 * 1024));+ });++ it("does not tell the caller what failed", async () => {+ const res = await app.inject({ url: "/boom" });+ expect(res.statusCode).toBe(500);+ expect(res.payload).toBe("Internal Server Error");+ });++ it("compresses text and leaves an event stream alone", async () => {+ const encoding = async (type: string) =>+ (+ await app.inject({+ url: `/data?type=${encodeURIComponent(type)}`,+ headers: { "accept-encoding": "br" }+ })+ ).headers["content-encoding"];+ expect(await encoding("application/json")).toBe("br");+ expect(await encoding("text/x-component")).toBe("br");+ expect(await encoding("text/event-stream")).toBeUndefined();+ });++ it("answers a URL it cannot decode plainly", async () => {+ const res = await app.inject({ url: "/%E0%A4%A" });+ expect(res.statusCode).toBe(400);+ expect(res.payload).toBe("Bad Request");+ });++ it("outlives a proxy's idle connections and bounds a slow request", () => {+ expect(app.server.keepAliveTimeout).toBeGreaterThan(90_000);+ expect(app.server.requestTimeout).toBe(300_000);+ });++ it("does not climb out of the client directory", async () => {+ // Not in the index, so never the filesystem's to answer.+ const res = await app.inject({ url: "/assets/..%2F..%2Fetc%2Fpasswd.txt" });+ expect(res.statusCode).toBe(404);+ const other = await app.inject({ url: "/..%2F..%2Fetc%2Fpasswd.txt" });+ expect(other.statusCode).toBe(201);+ });++ it("hands everything else to the handler, body and headers intact", async () => {+ seen.length = 0;+ const res = await app.inject({+ method: "POST",+ url: "/login.data?redirectTo=%2F",+ headers: {+ host: "erp.acme.com",+ origin: "https://erp.acme.com",+ "content-type": "application/x-www-form-urlencoded"+ },+ payload: "email=ada%40acme.com"+ });+ expect(res.statusCode).toBe(201);+ expect(res.payload).toBe(+ "POST http://erp.acme.com/login.data?redirectTo=%2F email=ada%40acme.com"+ );+ expect(seen[0]?.headers.get("origin")).toBe("https://erp.acme.com");+ // Both cookies, not the last one.+ expect(res.headers["set-cookie"]).toEqual(["a=1; Path=/", "b=2; Path=/"]);+ });+});diff --git a/packages/serve/src/index.ts b/packages/serve/src/index.tsnew file mode 100644index 0000000000..49eb158c54--- /dev/null+++ b/packages/serve/src/index.ts@@ -0,0 +1,333 @@+// SPDX-License-Identifier: AGPL-3.0-only+// Carbon (github.com/crbnos/carbon). Modified or adapted versions of this file,+// including ports, remain AGPLv3; serving them over a network requires releasing their source.++// The server a self-hosted app runs on. `node` runs this file as it is, by+// stripping the types: the runtime image has no TypeScript toolchain. So+// only syntax that can be erased — no enums, no parameter properties, and+// `import type` for anything that is only a type.+//+// It replaces `react-router-serve`, which loads the build itself and so+// leaves no place to stand between a request and React Router. Two things+// need that place:+//+// - React Router refuses a form submit whose `Origin` is not the origin of+// `request.url`. Behind a proxy that ends TLS the app is called over+// http, the browser says https, and every submit was a 400. The+// deployment already says where the app lives (`siteUrl`); that host is+// allowed, through the option React Router has for it.+// - Static files compressed once at build (a `.br` beside each one) are+// sent as they are instead of being compressed again on every request.++import { readdirSync } from "node:fs";+import path from "node:path";+import { Readable } from "node:stream";+import { constants } from "node:zlib";+import fastifyCompress from "@fastify/compress";+import fastifyStatic from "@fastify/static";+import Fastify, { type FastifyReply, type FastifyRequest } from "fastify";+import {+ createRequestHandler,+ RouterContextProvider,+ type ServerBuild+} from "react-router";++/**+ * The hosts whose forms React Router should accept: the app's own, read+ * from where the deployment says it lives. Nothing when that is unset or+ * unreadable — the request's own origin is then the only one accepted, as+ * it is in local development.+ */+export function allowedActionOrigins(siteUrl: string | undefined): string[] {+ if (!siteUrl) return [];+ try {+ return [new URL(siteUrl).host];+ } catch {+ return [];+ }+}++// What the build compresses, and so the only types a `.br` can be of.+const TYPES: Record<string, string> = {+ ".css": "text/css; charset=utf-8",+ ".html": "text/html; charset=utf-8",+ ".js": "text/javascript; charset=utf-8",+ ".json": "application/json; charset=utf-8",+ ".mjs": "text/javascript; charset=utf-8",+ ".svg": "image/svg+xml",+ ".toml": "text/plain; charset=utf-8",+ ".txt": "text/plain; charset=utf-8",+ ".wasm": "application/wasm",+ ".xml": "application/xml; charset=utf-8",+ ".yaml": "text/plain; charset=utf-8",+ ".yml": "text/plain; charset=utf-8"+};++// Fingerprinted by the build: the name changes when the bytes do.+const IMMUTABLE = "public, max-age=31536000, immutable";+const SHORT = "public, max-age=3600";++// Paths that are a file or nothing.+const NEVER_A_PAGE = /^\/(assets|_vercel)\//;++/**+ * Whether an `Accept-Encoding` header names Brotli and does not rule it out:+ * `br;q=0` is a caller saying it cannot take it.+ */+export function takesBrotli(header: string | string[] | undefined): boolean {+ for (const part of String(header ?? "").split(",")) {+ const [name, ...params] = part.split(";").map((piece) => piece.trim());+ if (name?.toLowerCase() !== "br") continue;+ const quality = params.find((param) =>+ param.toLowerCase().startsWith("q=")+ );+ return quality === undefined || Number(quality.slice(2)) > 0;+ }+ return false;+}++const contentType = (file: string) =>+ TYPES[path.extname(file).toLowerCase()] ?? "application/octet-stream";++const cacheControl = (urlPath: string) =>+ urlPath.startsWith("/assets/") ? IMMUTABLE : SHORT;++/**+ * Every file in the built client, by its path from the root. Read once: an+ * image's files do not change under it, and asking the disk on each request+ * is what made a directory of two thousand chunks slow to serve from.+ */+function indexFiles(root: string): Set<string> {+ const files = new Set<string>();+ for (const entry of readdirSync(root, {+ recursive: true,+ withFileTypes: true+ })) {+ if (!entry.isFile()) continue;+ const rel = path+ .relative(root, path.join(entry.parentPath, entry.name))+ .split(path.sep)+ .join("/");+ if (!rel.split("/").some((segment) => segment.startsWith(".")))+ files.add(rel);+ }+ return files;+}++/**+ * A Node request as the Fetch `Request` React Router takes. The URL is the+ * one the app was called on — host from the `Host` header, scheme from the+ * socket — exactly as `react-router-serve` built it.+ */+function toRequest(req: FastifyRequest, signal: AbortSignal): Request {+ const raw = req.raw;+ const encrypted = "encrypted" in raw.socket && raw.socket.encrypted;+ // Joined as text, never resolved against a base: a path of `//other.host/x`+ // resolved that way names another host, and React Router checks a form's+ // `Origin` against this URL.+ const url = new URL(+ `${encrypted ? "https" : "http"}://${raw.headers.host ?? "localhost"}${raw.url ?? "/"}`+ );+ const headers = new Headers();+ for (const [name, value] of Object.entries(raw.headers)) {+ if (value === undefined) continue;+ if (Array.isArray(value)) for (const v of value) headers.append(name, v);+ else headers.set(name, value);+ }+ const hasBody = raw.method !== "GET" && raw.method !== "HEAD";+ return new Request(url, {+ method: raw.method,+ headers,+ signal,+ // Node's stream type and the DOM's disagree on a detail of byte+ // readers; at runtime they are the one class.+ ...(hasBody+ ? { body: Readable.toWeb(raw) as unknown as BodyInit, duplex: "half" }+ : {})+ } as RequestInit);+}++/** The server, not yet listening — which is what a test wants. */+export async function createApp({+ handleRequest,+ clientDirectory+}: {+ /** Everything that is not a file: React Router, usually. */+ handleRequest: (request: Request) => Promise<Response> | Response;+ /** The built client, served at `/`. */+ clientDirectory: string;+}) {+ const root = path.resolve(clientDirectory);+ // The apps log their own requests, with the request id; a second line+ // from here said the same thing without one.+ const app = Fastify({+ logger: false,+ // Longer than any proxy in front holds an idle connection (an ALB 60s,+ // Traefik 90s). Shorter, and the proxy reuses a connection this side+ // has just closed: an occasional 502 on a request that was never read.+ keepAliveTimeout: 100_000,+ // Node's own limit on how long a request may take to arrive, which+ // Fastify turns off. Without it a client that never finishes sending+ // holds its connection for good.+ requestTimeout: 300_000,+ // A URL the router cannot decode. Fastify's own answer is JSON naming+ // its error code.+ frameworkErrors: (_error, _req, reply) =>+ (reply as FastifyReply)+ .code(400)+ .type("text/plain; charset=utf-8")+ .send("Bad Request")+ });++ // Bodies are React Router's to read. Parsed here, the stream it is handed+ // would already be empty.+ app.removeAllContentTypeParsers();+ app.addContentTypeParser("*", (_req, _payload, done) => done(null));++ // For what is rendered per request. A file compressed at build already+ // carries its encoding and is left alone. Flushed as it is written:+ // React streams a page in pieces, and a compressor that waits for a full+ // buffer holds the first of them back.+ await app.register(fastifyCompress, {+ global: true,+ encodings: ["br", "gzip"],+ threshold: 1024,+ brotliOptions: {+ flush: constants.BROTLI_OPERATION_FLUSH,+ params: { [constants.BROTLI_PARAM_QUALITY]: 4 }+ },+ zlibOptions: { flush: constants.Z_SYNC_FLUSH }+ });++ // Only for `reply.sendFile`, which answers ranges and conditional+ // requests. Which file is ours to say, from the index: left to find it+ // itself, the plugin lists the directory on every request.+ const files = indexFiles(root);+ await app.register(fastifyStatic, {+ root,+ serve: false,+ cacheControl: false,+ setHeaders(reply, filePath) {+ const urlPath = `/${path.relative(root, filePath).split(path.sep).join("/")}`;+ reply.header("Cache-Control", cacheControl(urlPath));+ if (!filePath.endsWith(".br")) return;+ // Say what it is a file of, not that it is Brotli.+ reply+ .header("Content-Type", contentType(filePath.slice(0, -3)))+ .header("Content-Encoding", "br");+ }+ });++ // A route, not the not-found handler: the compression above attaches to+ // routes, and pages rendered from the not-found handler went out as they+ // were.+ app.all("/*", async (req, reply) => {+ const { method } = req.raw;+ const urlPath = (req.raw.url ?? "/").split("?")[0] ?? "/";++ if (method === "GET" || method === "HEAD") {+ let rel = "";+ try {+ rel = decodeURIComponent(urlPath).slice(1);+ } catch {+ // Not a path at all: React Router's to refuse.+ }+ if (files.has(rel)) {+ if (!files.has(`${rel}.br`)) return reply.sendFile(rel);+ // Which of the two is sent depends on the caller, and a cache in+ // between has to know that — whichever one it is handed.+ reply.header("Vary", "Accept-Encoding");+ // Every browser takes Brotli; a monitor or a script may not.+ const brotli = takesBrotli(req.headers["accept-encoding"]);+ return reply.sendFile(brotli ? `${rel}.br` : rel);+ }+ // A chunk from before the last deploy, or Vercel's analytics script+ // off Vercel: there is no page to render for these, and rendering the+ // app's 404 for each cost a full pass through React Router.+ if (NEVER_A_PAGE.test(urlPath))+ return reply+ .code(404)+ .header("Cache-Control", "no-store")+ .type("text/plain; charset=utf-8")+ .send("Not found");+ }++ // Stops the render when the browser goes away, as the stock server did.+ const controller = new AbortController();+ reply.raw.on("close", () => {+ if (!reply.raw.writableFinished) controller.abort();+ });+ const response = await handleRequest(toRequest(req, controller.signal));+ // The stock server named the charset on text it was handed without one.+ const type = response.headers.get("content-type");+ if (type && /^text\/[^;]+$/.test(type))+ response.headers.set("content-type", `${type}; charset=utf-8`);+ return reply.send(response);+ });++ // Fastify's own answer carries the error's message; what failed is for+ // the log, not the caller.+ app.setErrorHandler((error: { statusCode?: unknown }, _req, reply) => {+ const status =+ typeof error.statusCode === "number" && error.statusCode >= 400+ ? error.statusCode+ : 500;+ if (status >= 500) console.error("[carbon] request failed", error);+ reply+ .code(status)+ .type("text/plain; charset=utf-8")+ .send(status >= 500 ? "Internal Server Error" : "Bad Request");+ });++ return app;+}++/**+ * Starts a built React Router app.+ */+export async function serve({+ build,+ clientDirectory,+ siteUrl,+ port,+ host+}: {+ build: ServerBuild;+ clientDirectory: string;+ /** Where the deployment says this app lives. */+ siteUrl?: string;+ port?: number;+ host?: string;+}) {+ const handler = createRequestHandler(+ {+ ...build,+ allowedActionOrigins: [+ ...(Array.isArray(build.allowedActionOrigins)+ ? build.allowedActionOrigins+ : []),+ ...allowedActionOrigins(siteUrl)+ ]+ },+ process.env.NODE_ENV+ );+ const app = await createApp({+ clientDirectory,+ handleRequest: (request) =>+ // @ts-expect-error RouterContextProvider matches runtime loadContext; types drift vs AppLoadContext+ handler(request, new RouterContextProvider())+ });++ for (const signal of ["SIGTERM", "SIGINT"]) {+ process.once(signal, () => {+ app.close().finally(() => process.exit(0));+ });+ }++ const address = await app.listen({+ port: port ?? Number(process.env.PORT ?? 3000),+ host: host ?? process.env.HOST ?? "0.0.0.0"+ });+ console.log(`[carbon] ${address}`);+ return app;+}diff --git a/packages/serve/tsconfig.json b/packages/serve/tsconfig.jsonnew file mode 100644index 0000000000..5593836731--- /dev/null+++ b/packages/serve/tsconfig.json@@ -0,0 +1,11 @@+{+ "compilerOptions": {+ "allowImportingTsExtensions": true,+ "erasableSyntaxOnly": true,+ "noEmit": true,+ "verbatimModuleSyntax": true+ },+ "exclude": ["node_modules"],+ "extends": "@carbon/config/tsconfig/base.json",+ "include": ["src"]+}diff --git a/packages/serve/vitest.config.ts b/packages/serve/vitest.config.tsnew file mode 100644index 0000000000..fd9aafbd04--- /dev/null+++ b/packages/serve/vitest.config.ts@@ -0,0 +1,7 @@+// SPDX-License-Identifier: AGPL-3.0-only+// Carbon (github.com/crbnos/carbon). Modified or adapted versions of this file,+// including ports, remain AGPLv3; serving them over a network requires releasing their source.++import baseConfig from "@carbon/config/vitest";++export default baseConfig;diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex ee83219f4d..b6f25ac396 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -30,6 +30,12 @@ catalogs:'@emoji-mart/react':specifier: 1.1.1version: 1.1.1+ '@fastify/compress':+ specifier: 9.2.0+ version: 9.2.0+ '@fastify/static':+ specifier: 10.1.5+ version: 10.1.5'@internationalized/date':specifier: 3.12.0version: 3.12.0@@ -60,6 +66,9 @@ catalogs:'@marsidev/react-turnstile':specifier: 1.5.0version: 1.5.0+ '@medicomind/rolldown-compression':+ specifier: 2.5.3+ version: 2.5.3'@opentelemetry/api':specifier: 1.9.0version: 1.9.0@@ -117,9 +126,6 @@ catalogs:'@react-router/remix-routes-option-adapter':specifier: 7.18.4version: 7.18.4- '@react-router/serve':- specifier: 7.18.4- version: 7.18.4'@shikijs/langs':specifier: 4.2.0version: 4.2.0@@ -234,6 +240,9 @@ catalogs:dompurify:specifier: 3.4.0version: 3.4.0+ fastify:+ specifier: 5.12.5+ version: 5.12.5intl-parse-accept-language:specifier: 1.0.0version: 1.0.0@@ -729,6 +738,9 @@ importers:'@carbon/react':specifier: workspace:*version: link:../../packages/react+ '@carbon/serve':+ specifier: workspace:*+ version: link:../../packages/serve'@carbon/server-functions':specifier: workspace:*version: link:../../packages/server-functions@@ -779,10 +791,10 @@ importers:'@orpc/openapi':specifier: 'catalog:'- version: 1.15.0(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])+ version: 1.15.0(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])'@orpc/server':specifier: 'catalog:'- version: 1.15.0(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])+ version: 1.15.0(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])'@paper-design/shaders-react':specifier: ^0.0.57version: 0.0.57(@types/[email protected])([email protected])@@ -798,9 +810,6 @@ importers:'@react-router/remix-routes-option-adapter':specifier: 'catalog:'version: 7.18.4(@react-router/[email protected](patch_hash=26f651e284eca5bd3bc5389f089a09f3ae8d2dbb58b8b3bee0321aebb2960a03)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])- '@react-router/serve':- specifier: 'catalog:'- version: 7.18.4([email protected]([email protected]([email protected]))([email protected]))([email protected])'@react-types/datepicker':specifier: 3.13.5version: 3.13.5([email protected])@@ -887,7 +896,7 @@ importers:version: 5.6.0inngest:specifier: ^3.52.7- version: 3.54.0(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected])([email protected])([email protected])([email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected])+ version: 3.54.0(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected])([email protected])([email protected])([email protected])([email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected])intl-parse-accept-language:specifier: 'catalog:'version: 1.0.0@@ -1204,6 +1213,9 @@ importers:'@carbon/react':specifier: workspace:*version: link:../../packages/react+ '@carbon/serve':+ specifier: workspace:*+ version: link:../../packages/serve'@carbon/server-functions':specifier: workspace:*version: link:../../packages/server-functions@@ -1258,9 +1270,6 @@ importers:'@react-router/remix-routes-option-adapter':specifier: 'catalog:'version: 7.18.4(@react-router/[email protected](patch_hash=26f651e284eca5bd3bc5389f089a09f3ae8d2dbb58b8b3bee0321aebb2960a03)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])- '@react-router/serve':- specifier: 'catalog:'- version: 7.18.4([email protected]([email protected]([email protected]))([email protected]))([email protected])'@simplewebauthn/browser':specifier: ^13.3.0version: 13.3.0@@ -1949,7 +1958,7 @@ importers:version: link:../config'@orpc/openapi':specifier: 'catalog:'- version: 1.15.0(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])+ version: 1.15.0(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])tsx:specifier: 'catalog:'version: 4.21.0@@ -2226,6 +2235,9 @@ importers:'@clack/prompts':specifier: ^1.3.0version: 1.3.0+ '@medicomind/rolldown-compression':+ specifier: 'catalog:'+ version: 2.5.3([email protected])citty:specifier: ^0.1.6version: 0.1.6@@ -2807,7 +2819,7 @@ importers:version: 1.16.0inngest:specifier: ^3.52.7- version: 3.54.0(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected])([email protected])([email protected])([email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected])+ version: 3.54.0(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected])([email protected])([email protected])([email protected])([email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected])kysely:specifier: 'catalog:'version: 0.28.17@@ -2950,7 +2962,7 @@ importers:version: 2.117.2(@opentelemetry/[email protected])inngest:specifier: 3.54.0- version: 3.54.0(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected])([email protected])([email protected])([email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected])+ version: 3.54.0(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected])([email protected])([email protected])([email protected])([email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected])nanoid:specifier: 'catalog:'version: 5.1.16@@ -3608,6 +3620,34 @@ importers:specifier: 'catalog:'version: 4.1.6(@opentelemetry/[email protected])(@types/[email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))+ packages/serve:+ dependencies:+ '@fastify/compress':+ specifier: 'catalog:'+ version: 9.2.0+ '@fastify/static':+ specifier: 'catalog:'+ version: 10.1.5+ fastify:+ specifier: 'catalog:'+ version: 5.12.5+ react-router:+ specifier: 'catalog:'+ devDependencies:+ '@carbon/config':+ specifier: workspace:*+ version: link:../config+ '@types/node':+ specifier: 20.19.39+ version: 20.19.39+ typescript:+ specifier: 'catalog:'+ version: 5.8.3+ vitest:+ specifier: 'catalog:'+ version: 4.1.6(@opentelemetry/[email protected])(@types/[email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))+packages/server-functions:dependencies:'@carbon/auth':@@ -4675,9 +4715,18 @@ packages:'@egjs/[email protected]':resolution: {integrity: sha512-OTFTDQcWS+1ZREOdCWuk5hCBgYO4OsD30lXcOCyVOAjXMhgL5rBRDnt/otb6Nz8CzU0L/igdcaQBDLWc4t9gvg==}+ '@emnapi/[email protected]':+ resolution: {integrity: sha512-DbeLFquQJyYGwM3LzPdjvb4IRmAAQuTzEmqUGtIAYxlAO4ArfUZ7WMytLWDSsCAYm6MZJNeojaawQQiFrFVehg==}+'@emnapi/[email protected]':resolution: {integrity: sha512-Xz4Tpyki7XyrpbUK1jR1AhdAdaXyhhY4lZ3neLodmhpuWfy2PAQN5B46sAiU4liOXGLkHypn/qU+jvfWSCYYLA==}+ '@emnapi/[email protected]':+ resolution: {integrity: sha512-SS4jUXRklsrPKTEtW92WHdneh9QBrZGmRyeYEac2ktLN3ie1wd/BrkBbk4DqPWKhjSFfrR8NClXwMlfZ73m60A==}++ '@emnapi/[email protected]':+ resolution: {integrity: sha512-DM18NXgQ5coifswrwhFgrqeW/UiFRaLj0aLKU0cp0FoYjEfP/hj/yUeF+Hz754ViG+jQmG2HIeDCUeQsPnRwOA==}+'@emoji-mart/[email protected]':resolution: {integrity: sha512-no2pQMWiBy6gpBEiqGeU77/bFejDqUTRY7KX+0+iur13op3bqUsXdnwoZs6Xb1zbv0gAj5VvS1PWoUUckSr5Dw==}@@ -5314,6 +5363,36 @@ packages:cpu: [x64]os: [win32]+ '@fastify/[email protected]':+ resolution: {integrity: sha512-F3EVbzWt+xcnVaOHmWyIlpuFtbxOln7HDZQsh09MtMmMm/CipMayNt8hnIL8VQi54u2ZociDbf+iluGYkf7B1A==}++ '@fastify/[email protected]':+ resolution: {integrity: sha512-NtuzM0SfaMJbGlnjr9LWQUN5LzgSrbB8tf/wRZNas+4E1O/Nmzl53e7ruT61HDZyRCJGC6FxIogmNZO1c5ETBA==}++ '@fastify/[email protected]':+ resolution: {integrity: sha512-35VL33PIEt/UbD/ZMlRNaICd2BQz0IaG7en74Dv7tI+MHIQkedibS1+9JfekWH4I1g+Y8RbbZD4Zsk9h4XTItg==}++ '@fastify/[email protected]':+ resolution: {integrity: sha512-RSo3sVDXfHskiBZKBPRgnQTtIqpi/7zhJOEmAxCiBcM7d0uwdGdxLlsCaLzGs8v8NnxIRlfG0N51p5yFaOentQ==}++ '@fastify/[email protected]':+ resolution: {integrity: sha512-PxcYtKLbQ8Z+yApiqjK8FwxIwvEj38k2OiLc17u8dkJSlmfi2wHHPaSnaoqBPQqtvF8YVsDgDpP2snDCfFrpfw==}++ '@fastify/[email protected]':+ resolution: {integrity: sha512-NE8HgKLgYejV9lDpqkEFaDKMLYelJBVfHekhB0UKvX0ghagXRJqg68feg8er1NPXxG4N9i6vPxzt8E+3wHfcmA==}++ '@fastify/[email protected]':+ resolution: {integrity: sha512-OA3KGBCy6KtIvLf8DINC5880o5iBlDX4SxzLQS8HorJAbqluzLRn80UXU0bxZn7UOFhFgpRJDasfwn9nG4FG4A==}++ '@fastify/[email protected]':+ resolution: {integrity: sha512-zv07Y9GEuDsJPegZoDFd4SDWaZOW8N2pa0GSrYmKpId/tjt1Hgo3BjZBVjdVpfVrHaA+Qv5jawtS2O50J5xM9g==}++ '@fastify/[email protected]':+ resolution: {integrity: sha512-BYo+EiaKwlxH+WetGk6hAs1d39iP0y1gqB8lGF/qwkJ9ZZ/cBY1vx5NvExb9Sc3yRMFjD5X4Eyh4e4+TzRkzdw==}++ '@fastify/[email protected]':+ resolution: {integrity: sha512-3r0ZFXo82nKlPzySOUYhwWVfPZStfiwjmyevkX7cJWL2yXmEzl0Rpxv+L6L1R4OxqvlDGqf3g8OdBzILKgqe6w==}+'@floating-ui/[email protected]':resolution: {integrity: sha512-1Ih4WTWyw0+lKyFMcBHGbb5U5FtuHJuujoyyr5zTaWS5EYMeT6Jb2AuDeftsCsEuchO+mM2ij5+q9crhydzLhQ==}@@ -5873,6 +5952,10 @@ packages:'@lottiefiles/[email protected]':resolution: {integrity: sha512-Zr2LCaOAoPCsdAQgeLyCSiQ1+xrAJtRCyuEYDj0qR5heUwpc+Pxbb88JyTVumcXFfKOBMOMmrlsTScLz2mrvQQ==}+ '@lukeed/[email protected]':+ resolution: {integrity: sha512-9I2Zn6+NJLfaGoz9jN3lpwDgAYvfGeNYdbAIjJOqzs4Tpc+VU3Jqq4IofSUBKajiDS8k9fZIg18/z13mpk1bsA==}+ engines: {node: '>=8'}+'@madeja-studio/[email protected]':resolution: {integrity: sha512-S38JVFCuj+QmA5Hv78i3egepF2durkeNxYS98Y6VBiK+9TXJYqRAl2ZA/+g877IkRTud/wKLzykFAKcmKdhKyQ==}peerDependencies:@@ -5891,6 +5974,55 @@ packages:'@mediapipe/[email protected]':resolution: {integrity: sha512-CZWV/q6TTe8ta61cZXjfnnHsfWIdFhms03M9T7Cnd5y2mdpylJM0rF1qRq+wsQVRMLz1OYPVEBU9ph2Bx8cxrg==}+ '@medicomind/[email protected]':+ resolution: {integrity: sha512-vLLfx1trt4I3OqegVpE5+/lFu5g67jZWYFB3Es5p7ipolS0iK7QO3MMZ0Uy5b942kJupzjYIr4rj/R4/S4by0Q==}+ engines: {node: '>= 18'}+ cpu: [arm64]+ os: [darwin]++ '@medicomind/[email protected]':+ resolution: {integrity: sha512-EghF7+CwZMcSjlvnLuhLY9QlCq6c2IwXkbbACENI8DVSTZqMiADaxLxZdX1TqYlw7hM3iJEUWk+/SKxRj3zGqw==}+ engines: {node: '>= 18'}+ cpu: [x64]+ os: [darwin]++ '@medicomind/[email protected]':+ resolution: {integrity: sha512-lirS3Gxgkw9JFxUVcXmAV3ozBZk8RCE2EOlQyknWznH6m9JI6cKkW827SfrGpSj0WOAHZMWKVMxAQpBKlaMN4g==}+ engines: {node: '>= 18'}+ cpu: [arm64]+ os: [linux]+ libc: [glibc]++ '@medicomind/[email protected]':+ resolution: {integrity: sha512-8SrNBezNFnMdIQD38kTuct0v6vtM9UhU7l2cmqpx/3LFg63piwqSN8r7zp+ywNxTq6v20WWxrB1lRPGLlqTyFA==}+ engines: {node: '>= 18'}+ cpu: [x64]+ os: [linux]+ libc: [glibc]++ '@medicomind/[email protected]':+ resolution: {integrity: sha512-P5BoZAhEnQRqCtDDnfXv2vKffXWnzZNq05Ah9I6Ere8ZwbLCG9L32wCLq0XjTp1l2RdDFeB9QlCuSaess89Eow==}+ engines: {node: '>= 18'}+ cpu: [x64]+ os: [linux]+ libc: [musl]++ '@medicomind/[email protected]':+ resolution: {integrity: sha512-weOCkR8Zi//+m94mkP2RcHNNlguLmiSBIBrmMy6BpRvDgsc9+f5JNMjrBIlPJvpQxk32weyzfU+hD1XeNKtJzw==}+ engines: {node: '>=22.14.0 <23.0.0-0 || >=23.5.0'}++ '@medicomind/[email protected]':+ resolution: {integrity: sha512-KapgURic6OA2Pww/8jjygNBkqBGj3U56Ig9gWoQw9pxsVb3cdWyiiLgW/+TZOGviqZxXDWzdkLWQz0LPlDzgpg==}+ engines: {node: '>= 18'}+ cpu: [x64]+ os: [win32]++ '@medicomind/[email protected]':+ resolution: {integrity: sha512-OL4SbiYRjcW/oDpOPOWAr/3DjsLCUEqCxrkOl4PYZcdrXvcCTcERMSwJM4zSOURsyEXK11MfWeuWc1xViW14Mw==}+ engines: {node: '>= 22.14.0'}+ peerDependencies:+ rolldown: ^1.0.0+'@messageformat/[email protected]':resolution: {integrity: sha512-rmGAfB1tIPER+gh3p/RgA+PVeRE/gxuQ2w4snFWPF5xtb5mbWR7Cbw7wCOftcUypbD6HVoxrVdyyghPm3WzP5A==}@@ -6012,6 +6144,13 @@ packages:resolution: {integrity: sha512-8cFniXvrIEnVwuNSRCW9wirRZbHvrD3JVujdS2P5n5xiJZNZMOZcfOvJ1pb66c7jXMKHHglJEDVJGbm8XWFcXQ==}engines: {node: '>= 10'}+ '@napi-rs/[email protected]':+ resolution: {integrity: sha512-AJxoUD2/15ESHbvpcyjU274nsAPLuOtPHCk0vKJM5pj//Fg/B1FXNWjPnXTT9PymCYYiHo4zPj0ZomXBKhoy7g==}+ engines: {node: ^20.19.0 || ^22.13.0 || >=23.5.0}+ peerDependencies:+ '@emnapi/core': ^1.7.1 || ^2.0.0-alpha.4+ '@emnapi/runtime': ^1.7.1 || ^2.0.0-alpha.4+'@next/[email protected]':resolution: {integrity: sha512-hjJI/GfrjWHgNguRIBzItjRRu0m3Nrz17GhxsjuHfjIvg9hyg3239REd2dpI+bpMTFuVrVprHzEQ19m++cDtbw==}@@ -6871,6 +7010,9 @@ packages:'@pgsql/[email protected]':resolution: {integrity: sha512-jtAY4JU7jdVYZ/Vv3zlZqVP+FRWZokyCLKPPCnAApiaJAElpyyiMC3HRiquBu29kSrVs+rkqZD50SUIb/zyEGw==}+ '@pinojs/[email protected]':+ resolution: {integrity: sha512-k2ENnmBugE/rzQfEcdWHcCY+/FM3VLzH9cYEsbdsoqrvzAKRhUZeRNhAZvB8OitQJ1TBed3yqWtdjzS6wJKBwg==}+'@pkgjs/[email protected]':resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==}engines: {node: '>=14'}@@ -10392,6 +10534,9 @@ packages:'@tweenjs/[email protected]':resolution: {integrity: sha512-vJmvvwFxYuGnF2axRtPYocag6Clbb5YS7kLL+SO/TeVFzHqDIWrNKYtcsPMibjDx9O+bu+psAy9NKfWklassUA==}+ '@tybys/[email protected]':+ resolution: {integrity: sha512-F3fo1MYrRJYL3zER0OUOmkutjr1Vp23m7OsSgp7nq4SP6OqX6C/56XFIPAl5bt3zaBRjmW7SGz3u/6LwFpYcOg==}+'@types/[email protected]':resolution: {integrity: sha512-rfT93uj5s0PRL7EzccGMs3brplhcrghnDoV26NqKhCAS1hVo+WdNsPvE/yb6ilfr5hi2MEk6d5EWJTKdxg8jVw==}@@ -11078,67 +11223,79 @@ packages:resolution: {integrity: sha512-xt4Vy3RTBw1NfszBlf4A0Rr6ZjA/th2Pj9XlWFLQHW9A1qOCtxNCoIWSzn/INtnZLMB4jO2gWdEtSaHUtK73wA==}cpu: [arm64]os: [android]+ deprecated: yuku-analyzer runs on yuku-core since 0.14'@yuku-analyzer/[email protected]':resolution: {integrity: sha512-ftokSqvYXZxfmA/bfIbp8c1BJ8QxNax371kUOQNFyvR5hmtKqQyTqSKtMk+WaixHM3w4tKj/JdyY+ud1bGamXA==}cpu: [arm64]os: [darwin]+ deprecated: yuku-analyzer runs on yuku-core since 0.14'@yuku-analyzer/[email protected]':resolution: {integrity: sha512-yUrmmhmF5R4Xmbfo8gUxJKr3YbvbLcE2JvLhDLzFJkMN29/fGm6K3dZX6YpNecfgBDnQ+VywGp8K9xjRaBFZ3Q==}cpu: [x64]os: [darwin]+ deprecated: yuku-analyzer runs on yuku-core since 0.14'@yuku-analyzer/[email protected]':resolution: {integrity: sha512-cy9+KvVoK5Xad3Vs5pLwAeZf3JC/1y0XJElgv1q6g7W7g/n52FRjedpYmQiJeMZdnhJiAshq7Vz/Xj3jC5Ns2Q==}cpu: [x64]os: [freebsd]+ deprecated: yuku-analyzer runs on yuku-core since 0.14'@yuku-analyzer/[email protected]':resolution: {integrity: sha512-AgVZ6VCV2XP4yHCwyv78KLV76gcu2neiEF2+RBTPQN7sqYY+bLvMxphGPmfG+9qk5Uf1PJAhZYIUnMGVbbRCZw==}cpu: [arm]os: [linux]libc: [glibc]+ deprecated: yuku-analyzer runs on yuku-core since 0.14'@yuku-analyzer/[email protected]':resolution: {integrity: sha512-5qAj2GjoSN6+HuH75+g5r40CFhWmMvH0K8VKWmPfQyOgA/LonoDMr5H5O5feJwzdnfdCytPDAh1RAf7/SSg7dg==}cpu: [arm]os: [linux]libc: [musl]+ deprecated: yuku-analyzer runs on yuku-core since 0.14'@yuku-analyzer/[email protected]':resolution: {integrity: sha512-eJvQ4Ja5oPf/HOjmBkCLYyhOHUkL7U+iMAN8sX44x8exBBpPRyqnhEgTsuU73HzxPLrGPdRhybFnAE63Omib/Q==}cpu: [arm64]os: [linux]libc: [glibc]+ deprecated: yuku-analyzer runs on yuku-core since 0.14'@yuku-analyzer/[email protected]':resolution: {integrity: sha512-TppF2j194mOQ/kBXvNr9u5TYO+eR9r8ieg4lTIEyJIVYHAR9GWeB0oFHLcJiLXVa3qUJGzE4bmzSntCW5ylA7A==}cpu: [arm64]os: [linux]libc: [musl]+ deprecated: yuku-analyzer runs on yuku-core since 0.14'@yuku-analyzer/[email protected]':resolution: {integrity: sha512-03xu6ocJuwhm1a/JKmrHiaJUO1Oj86rABsm4FAl8AvfewfW/9idIUmPiFxZfb6RfiIONegebsTGJhFx0NbBNpA==}cpu: [x64]os: [linux]libc: [glibc]+ deprecated: yuku-analyzer runs on yuku-core since 0.14'@yuku-analyzer/[email protected]':resolution: {integrity: sha512-f7W2sAWWQN8x8YB0RRxIche7mLImH7lDgzUy9+B69cM2I6VFJ4a5+0pgAuMLROPOqimaxFPdXqLdDE/vpgGltg==}cpu: [x64]os: [linux]libc: [musl]+ deprecated: yuku-analyzer runs on yuku-core since 0.14'@yuku-analyzer/[email protected]':resolution: {integrity: sha512-f534qNc5YaJI29e1oryxEnxPkp7WCYJ1j7ChSec8pQNlYqTm8Tao7hij7NxRF+9BuxzeZCZ+WsbaAfLlklR0Eg==}cpu: [arm64]os: [win32]+ deprecated: yuku-analyzer runs on yuku-core since 0.14'@yuku-analyzer/[email protected]':resolution: {integrity: sha512-sKHkmLK8BsindMfyIThoN0bWC5uqSJEVNaLRD/ifA99mtb0UDin1ZCg4WYSVQAmM4k2iOTl4UZx/p3zcBiBgYw==}cpu: [x64]os: [win32]+ deprecated: yuku-analyzer runs on yuku-core since 0.14'@yuku-toolchain/[email protected]':resolution: {integrity: sha512-sSeo4SSSToiS+sSD+bwn/s94EEcaLJ7tG5LCp8gFYC1G5VzxzX7fqB6m9RU1yMD8KTpu6zdU/I1NlQf8hVBJ9Q==}@@ -11154,6 +11311,9 @@ packages:resolution: {integrity: sha512-d8XPSGjfyzlXC3Xx891DJRyZfqk5JU0BJrDQcsWomFIV1/BIzPW5HDH5iDdWpqWaav0YVIEzT1RHTwWr0FFshA==}+ resolution: {integrity: sha512-2BjRTZxTPvheOvGbBslFSYOUkr+SjPtOnrLP33f+VIWLzezQpZcqVg7ja3L4dBXmzzgwT+a029jRx5PCi3JuiA==}+resolution: {integrity: sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==}engines: {node: '>= 0.6'}@@ -11341,6 +11501,10 @@ packages:resolution: {integrity: sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==}+ resolution: {integrity: sha512-kNOjDqAh7px0XWNI+4QbzoiR/nTkHAWNud2uvnJquD1/x5a7EQZMJT0AczqK0Qn67oY/TTQ1LbUKajZpp3I9tQ==}+ engines: {node: '>=8.0.0'}+resolution: {integrity: sha512-P4w9o2dqARji6P7MHprklbfiArZAWvo07yW7qs3pdljb3BWr12FIB7W+p0zJiuiVsUpRO0iZn1kFFcpPegg0tQ==}@@ -11363,6 +11527,9 @@ packages:resolution: {integrity: sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==}engines: {node: '>= 0.4'}+ resolution: {integrity: sha512-g2tQ7LE7oOSqDfwEm3M+ZCMTJc7KiZCdJ4UwyZJb5ckTKyYu50OYmvv0mCFXPuYXoM4zkSt8zM9XQ9KCvxA74A==}+resolution: {integrity: sha512-3Cf+YaUl07p24MoQ46rFwulAmiyCwH2+1zw1ZyPAX5OtJ34Hh185DwB8y/qRLb6cYYYtSFJ9pthyLc0MD4e8sQ==}@@ -11855,6 +12022,10 @@ packages:resolution: {integrity: sha512-5jRCH9Z/+DRP7rkvY83B+yGIGX96OYdJmzngqnw2SBSxqCFPd0w2km3s5iawpGX8krnwSGmF0FW5Nhr0Hfai3g==}engines: {node: '>=18'}+ resolution: {integrity: sha512-ZH/0Xs9rMIFWCOmGdmS9eHBTF62qqQYNz4nVjQhkdIO/a0fCP4UIM3mRz/wiqL0L14YgAz/1xio4OaSY4+ON/A==}+ engines: {node: '>=22'}+resolution: {integrity: sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==}engines: {node: '>= 0.6'}@@ -12592,6 +12763,9 @@ packages:resolution: {integrity: sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==}+ resolution: {integrity: sha512-WKgKWg5eUxvRZGwW8FvfbaH7AXSh2cL+3j5fMGzUMCxWBJ3dV3a7Wz8y2f/uQ0e3B6WmodD3oS54jTQ9HVTIIg==}+resolution: {integrity: sha512-bCK/2Z4zLidyB4ReuIsvALH6w31YfAQDmXMqMx6FyfHqvBxtjC0eRumeSu4Bs3XtXwpyIywtSTrVT99BxY1f9w==}@@ -12612,6 +12786,12 @@ packages:resolution: {integrity: sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==}+ resolution: {integrity: sha512-eRSayARSbbwlBjpP4vnTTIRD5QPcIrmihPxDeN1DtKnHPg66UuJLx+8hlK1kaFdjvzyQ/dzALoi4vwAQ+T+iZA==}++ resolution: {integrity: sha512-g6KuKWmFXc0fID8WWH0jit4g0AGBoJhCkJMb1RmbsSEUNvQ+ZC8D6CUZ+GtF8nMzSPXnhiePyyqqipzNNEnHjg==}+resolution: {integrity: sha512-0jjjIEL6+0jag3l2XWWizO64/aZVtpiGE3t0Zgqxv0DPuxiMjvB3M24fCyhZUO4KomJQPj3LTSUnDP3GpdwC0g==}@@ -12631,6 +12811,12 @@ packages:resolution: {integrity: sha512-P7oW7tLbYnhOLQk/Gv7cZgzgMPP/XN03K02/Jy6Y/NHzyIAIpxuZIM/YqAkfiXFPxA2CTm7NtCijK9EDu09u2w==}hasBin: true+ resolution: {integrity: sha512-fZOty7z3O7vOliF6d8bHE3wiEh1KcNnKEQensSgTk9C1DvN6nRLS++XVd86v33Hw/8u9Un8A1zDrQ8ujcQDHEg==}++ resolution: {integrity: sha512-OB2k1dlxs5/NAABqeKV2FUHkSD2BbENsCak8yULVcymn3fHIPDVa9TI3SDnJSWYSllZmSYuZXy2gTnsT+Sut1A==}+resolution: {integrity: sha512-GGToxJ/w1x32s/D2EKND7kTil4n8OVk/9mycTc4VDza13lOvpUZTGX3mFSCtV9ksdGBVzvsyAVLM6mHFThxXxw==}@@ -12687,6 +12873,10 @@ packages:resolution: {integrity: sha512-S8KoZgRZN+a5rNwqTxlZZePjT/4cnm0ROV70LedRHZ0p8u9fRID0hJUZQpkKLzro8LfmC8sx23bY6tVNxv8pQA==}engines: {node: '>= 18.0.0'}+ resolution: {integrity: sha512-sJsgZ1sQH2UDuowPuMKg8az7Qc8F0jnj+SKkFWU/+T0xcFlgV5skgXOGUqmQzOdmW6ALA7AhJINWx3qFBkbLHA==}+ engines: {node: '>=20'}+resolution: {integrity: sha512-pVIECanWFC61Hzl2+oOCtoJ3F17kglZC/6N94eRWycFgBH35hHx0Li604ZIzhseh97mf2p0cv7vVrOZGoqhlEg==}@@ -13018,6 +13208,10 @@ packages:deprecated: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting [email protected]hasBin: true+ resolution: {integrity: sha512-Wjlyrolmm8uDpm/ogGyXZXb1Z+Ca2B8NbJwqBVg0axK9GbBeoS7yGV6vjXnYdGm6X53iehEuxxbyiKp8QmN4Vw==}+ engines: {node: 18 || 20 || >=22}+resolution: {integrity: sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==}engines: {node: '>=4'}@@ -13359,6 +13553,10 @@ packages:resolution: {integrity: sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==}engines: {node: '>= 0.10'}+ resolution: {integrity: sha512-aq+t5NAc+cS6rZQQVWC2x98CPqGtKKTMDd4Gaodv0wShnItdKg/51djkGJ1hqH+Oy0ivDftCbSLCQob8zso01w==}+ engines: {node: '>= 10'}+resolution: {integrity: sha512-FWyyY60MeTNyeSRpkM2Iry0G9hpr7/9kD40mD/cGQEuilcZYS4okz8SN2Q6rLCJ8gbCt6fN+rC+6tMGS99LaxQ==}@@ -13682,6 +13880,9 @@ packages:resolution: {integrity: sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==}+ resolution: {integrity: sha512-hOrZIVL5jyYFjzk7+y7n5JDzGlU8rfWDuYyHwGa2WA8/pcmMHezp2xsVwxrebD/Q9t8Nc5DboieySDpCp4WG4A==}+resolution: {integrity: sha512-pR4yQ9DHz6itqswtHCm26mw45FSNfQ9rEQjosaZErhn5J3J2sIViQiz8rDaezjKAhFGpmsoczYVBgGHzFw/stA==}@@ -13766,6 +13967,9 @@ packages:resolution: {integrity: sha512-RiNhHysUjhrDQntfYSfY4MU24coXXdEOgw9WGcKHNeEwffDYbF//u87M1EWaMGzuFoSbqW0C9C6lEEhDOAswfw==}+ resolution: {integrity: sha512-CHYbu8RtboSIoVsHZ6Ye4cj4Aw/yg2oAFimlF7mNvfDV192LR7nDiKtSIfCuLT7KokPSTn/9kfVLm5OGN0A28A==}+resolution: {integrity: sha512-YK7/ClTt4kAK0vo6w3X+Pnm0D2cf2vPHbhOXdoNti1Ga0al1P4TBZhwjATvjNwLEBCnKvjJc2jQgHXH0NEwlAg==}engines: {node: '>= 12.0.0'}@@ -14381,6 +14585,11 @@ packages:engines: {node: '>=4'}hasBin: true+ resolution: {integrity: sha512-jSCU7/VB1loIWBZe14aEYHU/+1UMEHoaO7qxCOVJOw9GgH72VAWppxNcjU+x9a2k3GSIBXNKxXQFqRvvZ7vr3A==}+ engines: {node: '>=10.0.0'}+ hasBin: true+resolution: {integrity: sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==}engines: {node: '>=6'}@@ -14852,6 +15061,10 @@ packages:zod:optional: true+ resolution: {integrity: sha512-0eJJY6hXLGf1udHwfNftBqH+g73EU4B504nZeKpz1sYRKafAghwxEJunB2O7rDZkL4PGfsMVnTXZ2EjibbqcsA==}+ engines: {node: '>=14.0.0'}+resolution: {integrity: sha512-ikqdkGAAyf/X/gPhXGvfgAytDZtDbr+bkNUJ0N9h5MI/dmdgCs3l6hoHrcUv41sRKew3jIwrp4qQDXiK99Utww==}engines: {node: '>= 0.8'}@@ -15123,6 +15336,16 @@ packages:resolution: {integrity: sha512-VFVaU1ysKakao68ktZm76PIdOhvEfoNNRaGkyLln9Os7r0/MCxqHjHyBM7dT3pgTiBybqiPtpqKfpENwdBp50Q==}engines: {node: '>=0.10.0'}+ resolution: {integrity: sha512-wlfUczU+n7Hy/Ha5j9a/gZNy7We5+cXp8YL+X+PG8S0KXxw7n/JXA3c46Y0zQznIJ83URJiwy7Lh56WLokNuxg==}++ resolution: {integrity: sha512-BndPH67/JxGExRgiX1dX0w1FvZck5Wa4aal9198SrRhZjH3GxKQUKIBnYJTdj2HDN3UQAS06HlfcSbQj2OHmaw==}++ resolution: {integrity: sha512-bk1ZMTwG/Vymx+zPoa28MhNzucFvXJWp3csrSuxuHPSMeUettaCoQ5Jvg07mtC4JGNpcfTwz41oVCnNgBK9+vA==}+ hasBin: true+resolution: {integrity: sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA==}engines: {node: '>= 6'}@@ -15267,6 +15490,12 @@ packages:resolution: {integrity: sha512-iG+GYldRf2BQ0UDUAd6JQ/RwzaQy6mXmsk/IzlYyal4A4SNFw54MeH4/tLkF4I5WoWG9SQwuqWzS99jaFQHBuQ==}engines: {node: ^20.17.0 || >=22.9.0}+ resolution: {integrity: sha512-3c2LzQ3rY9d0hc1emcsHhfT9Jwz0cChib/QN89oME2R451w5fy3f0afAhERFZAwrbDU43wk12d0ORBpDVME50Q==}++ resolution: {integrity: sha512-jQSaVHsPgtyw60e1rQ/A+/ArPEj/S8pS/vFnyGa/gYFXrKk/6RuDkoqVDQ5NI5MmS01698ltlAk0NoDBNLujRw==}+resolution: {integrity: sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==}engines: {node: '>= 0.6.0'}@@ -15406,6 +15635,9 @@ packages:resolution: {integrity: sha512-iHZWu+q3IdFZFX36ro/lKBkSvfkztY5Y7HMiPlOUjhupPcG2JMfst2KKEpu5XndviX/3UhFbRngUPNKtgvtZiA==}+ resolution: {integrity: sha512-tYC1Q1hgyRuHgloV/YXs2w15unPVh8qfu/qCTfhTYamaw7fyhumKa2yGpdSo87vY32rIclj+4fWYQXUMs9EHvg==}+resolution: {integrity: sha512-QFnPfjFey8EqknSrSxe1hZrf1/8z7/6s1QzGOmKo6++02r7QRRX7ZoyNaZh7JuVjWsVW87KnQrbZqnHkOAzUyg==}@@ -15712,6 +15944,9 @@ packages:resolution: {integrity: sha512-gNva8/6UAe8QYepIQH/jQ2qn91Qj0B9sYjMBBs3QOB8F2CXcKgLxQaJRP76sWVRQt+QU+8fAkCbCvjjMFu7Ycw==}engines: {node: '>= 0.8.0'}+ resolution: {integrity: sha512-P4nbQYQfePJxRSmY+v/KINxVucm4NF3p3s7pJveMTtom52FR4YGltUQLB8idDXwDDWW+eYrWDFbuzUnjoWHF7g==}+resolution: {integrity: sha512-kivNFO+0OcUNu7jQquLXAxz1FIwZj8nrj+YkOKc5694NbjCvcT6aSZiIzNzd2Kul4o4rTto8QVR9lMNtxD4G1w==}@@ -15866,6 +16101,10 @@ packages:resolution: {integrity: sha512-gSfoiOEA0VPE6Tukkrr7I0RBdE0s7H1eFCDBk05l1KIQT1UIKNc5JZy6jdyW6eYH3aR3g5b3PuL77rq0hvwtAw==}+ resolution: {integrity: sha512-I1XxrZSQ+oErkRR4jYbAyEEu2I0avBvvMM5JN+6EBprOGRCs63ENqZ3vjavq8fBw2+62G5LF5XelKwuJpcvcxw==}+ engines: {node: '>=10'}+resolution: {integrity: sha512-9LkiTwjUh6rT555DtE9rTX+BKByPfrMzEAtnlEtdEwr3Nkffwiihqe2bWADg+OQRjt9gl6ICdmB/ZFDCGAtSow==}engines: {node: '>= 4'}@@ -15941,6 +16180,14 @@ packages:resolution: {integrity: sha512-x/+Cz4YrimQxQccJf5mKEbIa1NzeCRNI5Ecl/ekmlYaampdNLPalVyIcCZNNH3MvmqBugV5TMYZXv0ljslUlaw==}engines: {node: '>= 0.4'}+ resolution: {integrity: sha512-mOSBvHGDZMuIEZMdOz/aCEYDCv0E7nfcNsIhUF+/P+xC7Hyf3FkvymqgPbg9D1EdSGu+uKbJgy09K/RKKc7kJA==}+ hasBin: true++ resolution: {integrity: sha512-b3rppTKm9T+PsVCBEOUR46GWI7fdOs00VKZ1+9c1EWDaDMvjQc6tUwuFyIprgGgTcWoVHSKrU8H31ZHA2e0RHA==}+ engines: {node: '>=10'}+resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==}@@ -15963,6 +16210,9 @@ packages:resolution: {integrity: sha512-6aU+Rwsezw7VR8/nyvKTx8QpWH9FrcYiXXlqC4z5d5XQBDRqtbfsRjnwGyqbi3gddNtWHuEk9OANUotL26qKUw==}+ resolution: {integrity: sha512-l4KnYfEyqYJxDwlNVyRfO2E4NTHfMKAWdUuA8J0yve2Dz/E/PdBepY03RvyJpssIpRFwJoCD55wA+mEDs6ByWA==}+resolution: {integrity: sha512-5TF+l7p4+OsnP8BCCvSyZiSPc4x4//p5uPwK8TCnVPJYRmU2aYKMpOXvw8zM5a5JvuuCGN1jmsMwuU2W02ukfA==}@@ -16144,6 +16394,9 @@ packages:peerDependencies:solid-js: ^1.6.12+ resolution: {integrity: sha512-w6AxtubXa2wTXAUsZMMWERrsIRAdrK0Sc+FUytWvYAhBJLyuI4llrMIC1DtlNSdI99EI86KZum2MMq3EAZlF9Q==}+resolution: {integrity: sha512-njQ4Hht92m0sMqqHVDL32V2Oun9W1+PHO9NDv9FHfJjT3JT22IG4Jpo3FPQy+mouRKCXFWO+r67v6MrHX2zeIA==}peerDependencies:@@ -16542,6 +16795,10 @@ packages:resolution: {integrity: sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==}+ resolution: {integrity: sha512-e2zZ96wSChazBsbENf/Pcm/4swHt2cEKQ92rhUjkL9GCKiTDJIaTBenjE/m9DXi0QBmTMDkFDdOomUy20A1tDQ==}+ engines: {node: '>=20'}+resolution: {integrity: sha512-BGEZTOIC14U0XIRw3tO4jY7IjP7n7v24nv9JXS1CyeVRWOCkcOMhRnmENUjuV39gktAw4Ofhr0OvIAiTspQrrw==}deprecated: Deprecated due to three.js version incompatibility. Please use v0.8.0, instead.@@ -16614,6 +16871,10 @@ packages:resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==}engines: {node: '>=8.0'}+ resolution: {integrity: sha512-m1TdR/rvT7kgGJZhspNtXdsdYk0fddFpJJFlG5s+UkPFo6lkLoZ3YLOaovPYjq1R75NP5JfeTlSHaOsE09peCg==}+ engines: {node: '>=20'}+resolution: {integrity: sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==}engines: {node: '>=0.6'}@@ -18339,11 +18600,27 @@ snapshots:'@egjs/[email protected]': {}+ '@emnapi/[email protected]':+ dependencies:+ '@emnapi/wasi-threads': 2.1.0+ tslib: 2.8.1+ optional: true+'@emnapi/[email protected]':dependencies:tslib: 2.8.1optional: true+ '@emnapi/[email protected]':+ dependencies:+ tslib: 2.8.1+ optional: true++ '@emnapi/[email protected]':+ dependencies:+ tslib: 2.8.1+ optional: true+'@emoji-mart/[email protected]': {}@@ -18670,6 +18947,57 @@ snapshots:'@esbuild/[email protected]':optional: true+ '@fastify/[email protected]': {}++ '@fastify/[email protected]':+ dependencies:+ ajv: 8.18.0+ ajv-formats: 3.0.1([email protected])+ fast-uri: 3.1.5++ '@fastify/[email protected]':+ dependencies:+ '@fastify/accept-negotiator': 2.1.0+ fastify-plugin: 6.0.0+ mime-db: 1.54.0+ minipass: 7.1.3+ readable-stream: 4.7.0++ '@fastify/[email protected]': {}++ '@fastify/[email protected]':+ dependencies:+ fast-json-stringify: 7.0.1++ '@fastify/[email protected]': {}++ '@fastify/[email protected]':+ dependencies:+ dequal: 2.0.3++ '@fastify/[email protected]':+ dependencies:+ '@fastify/forwarded': 3.0.2+ ipaddr.js: 2.5.0++ '@fastify/[email protected]':+ dependencies:+ '@lukeed/ms': 2.0.2+ escape-html: 1.0.3+ fast-decode-uri-component: 1.0.1+ http-errors: 2.0.1+ mime: 3.0.0++ '@fastify/[email protected]':+ dependencies:+ '@fastify/accept-negotiator': 2.1.0+ '@fastify/error': 4.2.0+ '@fastify/send': 4.1.1+ content-disposition: 3.0.0+ fastify-plugin: 6.0.0+ fastq: 1.20.1+ glob: 13.0.6+'@floating-ui/[email protected]':dependencies:'@floating-ui/utils': 0.2.11@@ -19245,6 +19573,8 @@ snapshots:'@lottiefiles/[email protected]': {}+ '@lukeed/[email protected]': {}+dependencies:react-native-uuid: 2.0.4@@ -19289,6 +19619,43 @@ snapshots:'@mediapipe/[email protected]': {}+ '@medicomind/[email protected]':+ optional: true++ '@medicomind/[email protected]':+ optional: true++ '@medicomind/[email protected]':+ optional: true++ '@medicomind/[email protected]':+ optional: true++ '@medicomind/[email protected]':+ optional: true++ '@medicomind/[email protected]':+ dependencies:+ '@emnapi/core': 2.0.0-alpha.5+ '@emnapi/runtime': 2.0.0-alpha.5+ '@napi-rs/wasm-runtime': 1.2.4(@emnapi/[email protected])(@emnapi/[email protected])+ optional: true++ '@medicomind/[email protected]':+ optional: true++ '@medicomind/[email protected]([email protected])':+ dependencies:+ rolldown: 1.2.12+ optionalDependencies:+ '@medicomind/rolldown-compression-darwin-arm64': 2.5.3+ '@medicomind/rolldown-compression-darwin-x64': 2.5.3+ '@medicomind/rolldown-compression-linux-arm64-gnu': 2.5.3+ '@medicomind/rolldown-compression-linux-x64-gnu': 2.5.3+ '@medicomind/rolldown-compression-linux-x64-musl': 2.5.3+ '@medicomind/rolldown-compression-wasm32-wasi': 2.5.3+ '@medicomind/rolldown-compression-win32-x64-msvc': 2.5.3+'@messageformat/[email protected]': {}'@messageformat/[email protected]':@@ -19402,6 +19769,13 @@ snapshots:'@napi-rs/canvas-win32-x64-msvc': 0.1.97optional: true+ dependencies:+ '@emnapi/core': 2.0.0-alpha.5+ '@emnapi/runtime': 2.0.0-alpha.5+ '@tybys/wasm-util': 0.10.3+ optional: true+'@next/[email protected]': {}'@next/[email protected]': {}@@ -20373,13 +20747,13 @@ snapshots:transitivePeerDependencies:- '@opentelemetry/api'- '@orpc/[email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected])':+ '@orpc/[email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])':dependencies:'@orpc/client': 1.15.0(@opentelemetry/[email protected])'@orpc/contract': 1.15.0(@opentelemetry/[email protected])'@orpc/interop': 1.15.0'@orpc/openapi-client': 1.15.0(@opentelemetry/[email protected])- '@orpc/server': 1.15.0(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])+ '@orpc/server': 1.15.0(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])'@orpc/shared': 1.15.0(@opentelemetry/[email protected])'@orpc/standard-server': 1.15.0(@opentelemetry/[email protected])json-schema-typed: 8.0.2@@ -20390,7 +20764,7 @@ snapshots:- fastify- ws- '@orpc/[email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected])':+ '@orpc/[email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])':dependencies:'@orpc/client': 1.15.0(@opentelemetry/[email protected])'@orpc/contract': 1.15.0(@opentelemetry/[email protected])@@ -20398,7 +20772,7 @@ snapshots:'@orpc/shared': 1.15.0(@opentelemetry/[email protected])'@orpc/standard-server': 1.15.0(@opentelemetry/[email protected])'@orpc/standard-server-aws-lambda': 1.15.0(@opentelemetry/[email protected])- '@orpc/standard-server-fastify': 1.15.0(@opentelemetry/[email protected])+ '@orpc/standard-server-fastify': 1.15.0(@opentelemetry/[email protected])([email protected])'@orpc/standard-server-fetch': 1.15.0(@opentelemetry/[email protected])'@orpc/standard-server-node': 1.15.0(@opentelemetry/[email protected])'@orpc/standard-server-peer': 1.15.0(@opentelemetry/[email protected])@@ -20426,11 +20800,13 @@ snapshots:transitivePeerDependencies:- '@opentelemetry/api'- '@orpc/[email protected](@opentelemetry/[email protected])':dependencies:'@orpc/shared': 1.15.0(@opentelemetry/[email protected])'@orpc/standard-server': 1.15.0(@opentelemetry/[email protected])'@orpc/standard-server-node': 1.15.0(@opentelemetry/[email protected])+ optionalDependencies:+ fastify: 5.12.5transitivePeerDependencies:- '@opentelemetry/api'@@ -20587,6 +20963,8 @@ snapshots:'@pgsql/[email protected]': {}+ '@pinojs/[email protected]': {}+'@pkgjs/[email protected]':optional: true@@ -23139,6 +23517,7 @@ snapshots:optionalDependencies:typescript: 5.8.3+ optional: true'@react-router/[email protected](@react-router/[email protected](patch_hash=26f651e284eca5bd3bc5389f089a09f3ae8d2dbb58b8b3bee0321aebb2960a03)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])':dependencies:@@ -23180,6 +23559,7 @@ snapshots:transitivePeerDependencies:- supports-color- typescript+ optional: true'@react-spring/[email protected]([email protected])':dependencies:@@ -24885,6 +25265,11 @@ snapshots:'@tweenjs/[email protected]': {}+ '@tybys/[email protected]':+ dependencies:+ tslib: 2.8.1+ optional: true+'@types/[email protected]': {}'@types/[email protected]': {}@@ -25820,6 +26205,8 @@ snapshots:+ [email protected]: {}+dependencies:mime-types: 2.1.35@@ -25957,7 +26344,8 @@ snapshots:call-bound: 1.0.4is-array-buffer: 3.0.5- [email protected]: {}+ optional: truedependencies:@@ -25987,6 +26375,8 @@ snapshots:+ [email protected]: {}+dependencies:stubborn-fs: 2.0.0@@ -26010,6 +26400,11 @@ snapshots:dependencies:possible-typed-array-names: 1.1.0+ dependencies:+ '@fastify/error': 4.2.0+ fastq: 1.20.1+@@ -26090,6 +26485,7 @@ snapshots:dependencies:safe-buffer: 5.1.2+ optional: truedependencies:@@ -26129,6 +26525,7 @@ snapshots:unpipe: 1.0.0transitivePeerDependencies:- supports-color+ optional: truedependencies:@@ -26443,6 +26840,7 @@ snapshots:dependencies:mime-db: 1.54.0+ optional: truedependencies:@@ -26455,6 +26853,7 @@ snapshots:vary: 1.1.2transitivePeerDependencies:- supports-color+ optional: true@@ -26481,16 +26880,20 @@ snapshots:dependencies:safe-buffer: 5.2.1+ optional: true+ [email protected]: {}+- [email protected]: {}+ optional: true@@ -26871,7 +27274,8 @@ snapshots:- [email protected]: {}+ optional: truedependencies:@@ -27440,6 +27844,7 @@ snapshots:vary: 1.1.2transitivePeerDependencies:- supports-color+ optional: truedependencies:@@ -27478,6 +27883,8 @@ snapshots:+ [email protected]: {}+@@ -27496,6 +27903,19 @@ snapshots:+ dependencies:+ '@fastify/merge-json-schemas': 0.2.1+ ajv: 8.18.0+ ajv-formats: 3.0.1([email protected])+ fast-uri: 3.1.5+ json-schema-ref-resolver: 3.0.0+ rfdc: 1.4.1++ dependencies:+ fast-decode-uri-component: 1.0.1+@@ -27519,6 +27939,26 @@ snapshots:path-expression-matcher: 1.5.0strnum: 2.3.0+ [email protected]: {}++ dependencies:+ '@fastify/ajv-compiler': 4.0.6+ '@fastify/error': 4.2.0+ '@fastify/fast-json-stringify-compiler': 5.1.0+ '@fastify/proxy-addr': 5.1.1+ abstract-logging: 2.0.1+ avvio: 9.3.0+ fast-json-stringify: 7.0.1+ find-my-way: 9.9.0+ light-my-request: 6.6.0+ pino: 10.4.0+ process-warning: 5.1.0+ rfdc: 1.4.1+ secure-json-parse: 4.1.0+ semver: 7.7.4+ toad-cache: 3.7.4+dependencies:reusify: 1.1.0@@ -27579,6 +28019,7 @@ snapshots:unpipe: 1.0.0transitivePeerDependencies:- supports-color+ optional: truedependencies:@@ -27591,6 +28032,12 @@ snapshots:transitivePeerDependencies:- supports-color+ dependencies:+ fast-deep-equal: 3.1.3+ fast-querystring: 1.1.2+ safe-regex2: 5.1.1+dependencies:magic-string: 0.30.21@@ -27677,7 +28124,8 @@ snapshots:- [email protected]: {}+ optional: true@@ -27867,7 +28315,8 @@ snapshots:- [email protected]: {}+ optional: truedependencies:@@ -27923,6 +28372,12 @@ snapshots:package-json-from-dist: 1.0.1path-scurry: 2.0.2+ dependencies:+ minimatch: 10.2.5+ minipass: 7.1.3+ path-scurry: 2.0.2+@@ -28177,6 +28632,7 @@ snapshots:dependencies:safer-buffer: 2.1.2+ optional: truedependencies:@@ -28256,45 +28712,7 @@ snapshots:- [email protected](@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected])([email protected])([email protected])([email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected]):- dependencies:- '@bufbuild/protobuf': 2.11.0- '@inngest/ai': 0.1.7- '@jpwilliams/waitgroup': 2.1.1- '@opentelemetry/api': 1.9.0- '@opentelemetry/auto-instrumentations-node': 0.75.0(@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))- '@opentelemetry/context-async-hooks': 2.6.1(@opentelemetry/[email protected])- '@opentelemetry/exporter-trace-otlp-http': 0.214.0(@opentelemetry/[email protected])- '@opentelemetry/instrumentation': 0.214.0(@opentelemetry/[email protected])- '@opentelemetry/resources': 2.6.1(@opentelemetry/[email protected])- '@opentelemetry/sdk-trace-base': 2.6.1(@opentelemetry/[email protected])- '@standard-schema/spec': 1.1.0- '@traceloop/instrumentation-anthropic': 0.20.0- '@types/debug': 4.1.13- '@types/ms': 2.1.0- canonicalize: 1.0.8- chalk: 4.1.2- cross-fetch: 4.1.0([email protected])- debug: 4.4.3([email protected])- hash.js: 1.1.7- json-stringify-safe: 5.0.1- ms: 2.1.3- serialize-error-cjs: 0.1.4- strip-ansi: 5.2.0- temporal-polyfill: 0.2.5- ulid: 2.4.0- zod: 4.5.4- optionalDependencies:- express: 4.22.1- hono: 4.12.25- next: 15.5.21(@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]([email protected]))([email protected])- typescript: 5.8.3- transitivePeerDependencies:- - '@opentelemetry/core'- - encoding- - supports-color-- [email protected](@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected])([email protected])([email protected])([email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected]):+ [email protected](@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected])([email protected])([email protected])([email protected])([email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected]):dependencies:'@bufbuild/protobuf': 2.11.0'@inngest/ai': 0.1.7@@ -28324,6 +28742,7 @@ snapshots:zod: 4.5.4optionalDependencies:express: 5.2.1+ fastify: 5.12.5hono: 4.12.25next: 15.5.21(@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]([email protected]))([email protected])typescript: 5.8.3@@ -28389,6 +28808,8 @@ snapshots:+ [email protected]: {}+@@ -28675,6 +29096,10 @@ snapshots:+ dependencies:+ dequal: 2.0.3+dependencies:'@types/json-schema': 7.0.15@@ -28764,6 +29189,12 @@ snapshots:dependencies:immediate: 3.0.6+ dependencies:+ cookie: 1.1.1+ process-warning: 4.0.1+ set-cookie-parser: 2.7.2+optional: true@@ -29286,13 +29717,15 @@ snapshots:- [email protected]: {}+ optional: true- [email protected]: {}+ optional: true@@ -29310,7 +29743,8 @@ snapshots:- [email protected]: {}+ optional: truedependencies:@@ -29593,7 +30027,10 @@ snapshots:dependencies:mime-db: 1.54.0- [email protected]: {}+ optional: true++ [email protected]: {}@@ -29669,6 +30106,7 @@ snapshots:on-headers: 1.1.0transitivePeerDependencies:- supports-color+ optional: truedependencies:@@ -29721,7 +30159,8 @@ snapshots:- [email protected]: {}+ optional: true@@ -29958,15 +30397,19 @@ snapshots:optionalDependencies:zod: 3.25.76+ [email protected]: {}+dependencies:ee-first: 1.1.1+ optional: truedependencies:ee-first: 1.1.1- [email protected]: {}+ optional: truedependencies:@@ -30143,7 +30586,8 @@ snapshots:lru-cache: 11.2.7minipass: 7.1.3- [email protected]: {}+ optional: true@@ -30231,6 +30675,26 @@ snapshots:+ dependencies:+ split2: 4.2.0++ [email protected]: {}++ dependencies:+ '@pinojs/redact': 0.4.0+ atomic-sleep: 1.0.0+ on-exit-leak-free: 2.1.2+ pino-abstract-transport: 3.0.0+ pino-std-serializers: 7.1.0+ process-warning: 5.1.0+ quick-format-unescaped: 4.0.4+ real-require: 1.0.0+ safe-stable-stringify: 2.5.0+ sonic-boom: 4.2.1+ thread-stream: 4.2.0+@@ -30369,6 +30833,10 @@ snapshots:+ [email protected]: {}++ [email protected]: {}+@@ -30541,6 +31009,7 @@ snapshots:dependencies:side-channel: 1.1.0+ optional: truedependencies:@@ -30558,6 +31027,8 @@ snapshots:dependencies:inherits: 2.0.4+ [email protected]: {}+dependencies:'@jitl/quickjs-ffi-types': 0.32.0@@ -30572,6 +31043,7 @@ snapshots:http-errors: 2.0.1iconv-lite: 0.4.24unpipe: 1.0.0+ optional: truedependencies:@@ -31000,6 +31472,8 @@ snapshots:+ [email protected]: {}+dependencies:decimal.js-light: 2.5.1@@ -31231,6 +31705,8 @@ snapshots:+ [email protected]: {}+@@ -31333,7 +31809,8 @@ snapshots:has-symbols: 1.1.0isarray: 2.0.5- [email protected]: {}+ optional: true@@ -31348,6 +31825,12 @@ snapshots:es-errors: 1.3.0is-regex: 1.2.1+ dependencies:+ ret: 0.5.0++ [email protected]: {}+@@ -31376,6 +31859,8 @@ snapshots:+ [email protected]: {}+dependencies:parseley: 0.12.1@@ -31412,6 +31897,7 @@ snapshots:statuses: 2.0.2transitivePeerDependencies:- supports-color+ optional: truedependencies:@@ -31445,6 +31931,7 @@ snapshots:send: 0.19.2transitivePeerDependencies:- supports-color+ optional: truedependencies:@@ -31675,6 +32162,10 @@ snapshots:'@solid-primitives/transition-group': 1.1.2([email protected])solid-js: 1.9.15+ dependencies:+ atomic-sleep: 1.0.0+dependencies:react: 18.3.1@@ -32126,6 +32617,10 @@ snapshots:dependencies:any-promise: 1.3.0+ dependencies:+ real-require: 1.0.0+dependencies:three: 0.163.0@@ -32187,6 +32682,8 @@ snapshots:dependencies:is-number: 7.0.0+ [email protected]: {}+@@ -32362,6 +32859,7 @@ snapshots:dependencies:media-typer: 0.3.0mime-types: 2.1.35+ optional: truedependencies:@@ -32545,7 +33043,8 @@ snapshots:- [email protected]: {}+ optional: truediff --git a/pnpm-workspace.yaml b/pnpm-workspace.yamlindex 17bdc11241..ab7e5c6aa5 100644--- a/pnpm-workspace.yaml+++ b/pnpm-workspace.yaml@@ -89,9 +89,11 @@ catalog:'@react-email/components': 0.3.3'@react-pdf/renderer': 3.4.5'@react-aria/optimize-locales-plugin': 2.0.2+ '@fastify/compress': 9.2.0+ '@fastify/static': 10.1.5+ '@medicomind/rolldown-compression': 2.5.3'@react-router/dev': 7.18.4'@react-router/remix-routes-option-adapter': 7.18.4- '@react-router/serve': 7.18.4'@shikijs/langs': 4.2.0'@shikijs/themes': 4.2.0'@shikijs/types': 4.2.0@@ -135,6 +137,7 @@ catalog:cross-env: 7.0.3dompurify: 3.4.0fast-xml-parser: 5.3.1+ fastify: 5.12.5intl-parse-accept-language: 1.0.0isbot: '5'jose: 6.0.11