From d603304be36f242f1b917ef6bee304008f1d9349 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 29 Oct 2026 02:05:44 +0000 Subject: [PATCH] SU1: the auth app on Workers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit apps/web is Auth.js's SvelteKit example (nextauthjs/sveltekit-auth-example, ISC, © 2022-2024 Balázs Orbán; the licence is apps/web/LICENSE) on SvelteKit 2.60.1 and Svelte 5, built by @sveltejs/adapter-cloudflare into one Worker with Static Assets. @auth/sveltekit is pinned at 1.11.3, and upstream's cookie@0 override is carried in pnpm-workspace.yaml. - The example's pages, header, footer and actions. Its 26 providers are in src/server/providers.ts, and each is registered only when every key it takes is set. The configuration is built per request from the Worker's bindings. - A /signin page lists the connected providers, or says that none is connected and which keys connect each one. - Sessions are Auth.js's JWT cookies. There is no database. - tooling/wire/worker-secrets.mjs runs in the deploy lane's build. It lists the secrets the Worker carries, generates AUTH_SECRET only if there is none, and refuses to mint when the list fails. It pushes AUTH_SECRET and any provider keys that are set with `wrangler secret bulk` over stdin. `pnpm secret:dev` runs the same step against apps/web/.env. - The smoke is read-only: `/` must render and /auth/session must answer null. Checks: typecheck, lint, 18 unit tests and the build are green, and `wrangler deploy --dry-run` reports 702 KiB, 162 KiB gzipped. Under `wrangler dev`, with no secret /auth/session fails. With a secret, every page renders. With GitHub keys, signing in reaches GitHub's authorize URL. Co-Authored-By: Claude Claude-Session: https://claude.ai/code/session_019PcpNVpFBcbeiX3EHdXfmn --- README.md | 23 +- apps/.gitkeep | 0 apps/web/.env.example | 36 + apps/web/.npmrc | 1 + apps/web/.prettierignore | 23 + apps/web/.prettierrc | 5 + apps/web/LICENSE | 15 + apps/web/README.md | 35 + apps/web/component.yaml | 121 + apps/web/package.json | 36 + apps/web/src/app.d.ts | 13 + apps/web/src/app.html | 13 + apps/web/src/auth.ts | 17 + apps/web/src/components/external-icon.svelte | 19 + apps/web/src/components/footer.svelte | 52 + apps/web/src/components/header.svelte | 112 + apps/web/src/hooks.server.ts | 1 + apps/web/src/lib/SignInButton.svelte | 12 + apps/web/src/routes/+layout.server.ts | 7 + apps/web/src/routes/+layout.svelte | 60 + apps/web/src/routes/+page.svelte | 23 + apps/web/src/routes/protected/+page.svelte | 19 + apps/web/src/routes/signin/+page.server.ts | 32 + apps/web/src/routes/signin/+page.svelte | 74 + apps/web/src/routes/signout/+page.server.ts | 4 + apps/web/src/server/env.ts | 7 + apps/web/src/server/providers.test.ts | 64 + apps/web/src/server/providers.ts | 187 ++ apps/web/src/server/vars.test.ts | 25 + apps/web/src/server/vars.ts | 18 + apps/web/src/site.test.ts | 14 + apps/web/src/site.ts | 10 + apps/web/src/worker-secrets.test.ts | 176 ++ apps/web/static/favicon.ico | Bin 0 -> 1571 bytes apps/web/static/robots.txt | 3 + apps/web/svelte.config.js | 25 + apps/web/tsconfig.json | 17 + apps/web/turbo.json | 13 + apps/web/vite.config.ts | 13 + apps/web/wrangler.jsonc | 21 + pnpm-lock.yaml | 2500 ++++++++++++++++- pnpm-workspace.yaml | 6 + specs/epics/README.md | 2 +- .../sveltekit-auth/IMPLEMENTATION-STATUS.md | 26 +- specs/epics/sveltekit-auth/README.md | 2 +- tooling/wire/worker-secrets.mjs | 167 ++ 46 files changed, 3925 insertions(+), 124 deletions(-) delete mode 100644 apps/.gitkeep create mode 100644 apps/web/.env.example create mode 100644 apps/web/.npmrc create mode 100644 apps/web/.prettierignore create mode 100644 apps/web/.prettierrc create mode 100644 apps/web/LICENSE create mode 100644 apps/web/README.md create mode 100644 apps/web/component.yaml create mode 100644 apps/web/package.json create mode 100644 apps/web/src/app.d.ts create mode 100644 apps/web/src/app.html create mode 100644 apps/web/src/auth.ts create mode 100644 apps/web/src/components/external-icon.svelte create mode 100644 apps/web/src/components/footer.svelte create mode 100644 apps/web/src/components/header.svelte create mode 100644 apps/web/src/hooks.server.ts create mode 100644 apps/web/src/lib/SignInButton.svelte create mode 100644 apps/web/src/routes/+layout.server.ts create mode 100644 apps/web/src/routes/+layout.svelte create mode 100644 apps/web/src/routes/+page.svelte create mode 100644 apps/web/src/routes/protected/+page.svelte create mode 100644 apps/web/src/routes/signin/+page.server.ts create mode 100644 apps/web/src/routes/signin/+page.svelte create mode 100644 apps/web/src/routes/signout/+page.server.ts create mode 100644 apps/web/src/server/env.ts create mode 100644 apps/web/src/server/providers.test.ts create mode 100644 apps/web/src/server/providers.ts create mode 100644 apps/web/src/server/vars.test.ts create mode 100644 apps/web/src/server/vars.ts create mode 100644 apps/web/src/site.test.ts create mode 100644 apps/web/src/site.ts create mode 100644 apps/web/src/worker-secrets.test.ts create mode 100644 apps/web/static/favicon.ico create mode 100644 apps/web/static/robots.txt create mode 100644 apps/web/svelte.config.js create mode 100644 apps/web/tsconfig.json create mode 100644 apps/web/turbo.json create mode 100644 apps/web/vite.config.ts create mode 100644 apps/web/wrangler.jsonc create mode 100644 tooling/wire/worker-secrets.mjs diff --git a/README.md b/README.md index 032e3e8..5bd1e02 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,24 @@ # sveltekit-auth -An Orunbase starter baseline, being built: Auth.js's SvelteKit authentication example on Cloudflare Workers, on the Cirrus baseline conventions. +An Orunbase starter baseline, being built: Auth.js's [SvelteKit example](https://github.com/nextauthjs/sveltekit-auth-example) +on Cloudflare Workers + Static Assets through +[`@sveltejs/adapter-cloudflare`](https://svelte.dev/docs/kit/adapter-cloudflare), +on the Cirrus baseline conventions. ISC, © 2022-2024 Balázs Orbán +(`apps/web/LICENSE`). -Upstream: https://github.com/nextauthjs/sveltekit-auth-example (ISC, © 2022-2024 Balázs Orbán) +Upstream: https://github.com/nextauthjs/sveltekit-auth-example -The plan — what the example is, how each piece maps to Cloudflare, the -milestones and the risks — is the epic in +## Running it + +```bash +pnpm install +pnpm typecheck && pnpm lint && pnpm test && pnpm build +pnpm --filter @app/web secret:dev # a generated AUTH_SECRET in apps/web/.env (git-ignored) +pnpm --filter @app/web dev # http://localhost:3000 +pnpm --filter @app/web preview # wrangler dev over the built Worker +``` + +A sign-in provider appears on `/signin` once its keys are in +`apps/web/.env` (`.env.example` lists them). The plan and the as-built +status are the epic in [`specs/epics/sveltekit-auth`](specs/epics/sveltekit-auth/README.md). diff --git a/apps/.gitkeep b/apps/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/apps/web/.env.example b/apps/web/.env.example new file mode 100644 index 0000000..fa52afe --- /dev/null +++ b/apps/web/.env.example @@ -0,0 +1,36 @@ +# Local secrets, upstream's .env.example: copy to .env (git-ignored), which +# `vite dev` and `wrangler dev` both read, or run +# `pnpm --filter @app/web secret:dev`, which writes a generated AUTH_SECRET +# into .env and keeps it on a second run. (A .dev.vars file, if there is one, +# takes the place of .env for wrangler.) Nothing here is read at build time: +# deployed, the Worker reads every value at request time from its own +# secrets, which the deploy lane pushes. +# +# Required: the key Auth.js encrypts its session cookie with. Any long random +# string; on UNIX systems `openssl rand -hex 32`. +AUTH_SECRET= + +# Optional: a sign-in provider appears on /signin once all its keys are set. +# These are the nine providers upstream's .env.example names; every other +# provider's keys are in src/server/providers.ts. +# GitHub: https://github.com/settings/developers → New OAuth App, callback +# http://localhost:3000/auth/callback/github (and your deployed origin's). +AUTH_GITHUB_ID= +AUTH_GITHUB_SECRET= +AUTH_GOOGLE_ID= +AUTH_GOOGLE_SECRET= +AUTH_DISCORD_ID= +AUTH_DISCORD_SECRET= +AUTH_LINKEDIN_ID= +AUTH_LINKEDIN_SECRET= +AUTH_FACEBOOK_ID= +AUTH_FACEBOOK_SECRET= +AUTH_TWITTER_ID= +AUTH_TWITTER_SECRET= +AUTH_TWITCH_ID= +AUTH_TWITCH_SECRET= +AUTH_PINTEREST_ID= +AUTH_PINTEREST_SECRET= +AUTH_AUTH0_ID= +AUTH_AUTH0_SECRET= +AUTH_AUTH0_ISSUER= diff --git a/apps/web/.npmrc b/apps/web/.npmrc new file mode 100644 index 0000000..b6f27f1 --- /dev/null +++ b/apps/web/.npmrc @@ -0,0 +1 @@ +engine-strict=true diff --git a/apps/web/.prettierignore b/apps/web/.prettierignore new file mode 100644 index 0000000..e81889e --- /dev/null +++ b/apps/web/.prettierignore @@ -0,0 +1,23 @@ +.DS_Store +node_modules +/build +/.svelte-kit +/package +.env +.env.* +!.env.example + +# Ignore files for PNPM, NPM and YARN +pnpm-lock.yaml +package-lock.json +yarn.lock + +# The deploy contract and its generated pages, formatted by their own tools +# (tooling/catalog/gen-component-docs.py writes docs/), and the committed +# wrangler config, which keeps its comments as written. +component.yaml +docs/ +wrangler.jsonc +.dev.vars +.dev.vars.* +.wrangler diff --git a/apps/web/.prettierrc b/apps/web/.prettierrc new file mode 100644 index 0000000..322ece4 --- /dev/null +++ b/apps/web/.prettierrc @@ -0,0 +1,5 @@ +{ + "semi": false, + "plugins": ["prettier-plugin-svelte"], + "overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }] +} diff --git a/apps/web/LICENSE b/apps/web/LICENSE new file mode 100644 index 0000000..360d357 --- /dev/null +++ b/apps/web/LICENSE @@ -0,0 +1,15 @@ +ISC License + +Copyright (c) 2022-2024, Balázs Orbán + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/apps/web/README.md b/apps/web/README.md new file mode 100644 index 0000000..fbda56e --- /dev/null +++ b/apps/web/README.md @@ -0,0 +1,35 @@ +# apps/web — the site + +Auth.js's [SvelteKit example](https://github.com/nextauthjs/sveltekit-auth-example) +(ISC, © 2022-2024 Balázs Orbán, `LICENSE` beside this file) on SvelteKit 2 +and Svelte 5, running on Cloudflare Workers + Static Assets through +[`@sveltejs/adapter-cloudflare`](https://svelte.dev/docs/kit/adapter-cloudflare): + +- `/` — the home page; the header says who is signed in, with a sign-in or + sign-out button +- `/signin` — a button per connected provider, or, with none connected, + what to connect; its form action is upstream's, Auth.js's `signIn` +- `/protected` — its content only for a signed-in visitor, "Access Denied" + for anyone else +- `/signout` — upstream's action, Auth.js's `signOut` +- `/auth/*` — Auth.js's own routes (`/auth/session`, `/auth/providers`, + `/auth/callback/`, …), answered by the handle in + `src/hooks.server.ts` + +Auth.js is configured per request (`src/auth.ts`) from the Worker's own +secrets: `AUTH_SECRET` seals the session cookie, and each provider in +`src/server/providers.ts` is offered only when every key it takes is set. +The site's name — the home page's heading and every page's `` — is +in `src/site.ts`. + +```bash +pnpm secret:dev # a generated AUTH_SECRET in .env (kept on a second run) +pnpm dev # vite dev on http://localhost:3000, reading .env +pnpm build # vite build → .svelte-kit/cloudflare (_worker.js + the static output) +pnpm preview # wrangler dev over the built Worker +pnpm test # vitest +``` + +How it is deployed — per environment, on merge to `main`, its secrets +pushed to the Worker first — is the repository's README and +`component.yaml` beside this file. diff --git a/apps/web/component.yaml b/apps/web/component.yaml new file mode 100644 index 0000000..f0aac44 --- /dev/null +++ b/apps/web/component.yaml @@ -0,0 +1,121 @@ +apiVersion: sourceplane.io/v1 +kind: Component +metadata: + name: web + description: The Auth.js sign-in example (SvelteKit on Cloudflare Workers + Static Assets via @sveltejs/adapter-cloudflare, per environment) +spec: + type: cloudflare-workers-assets-turbo + lifecycle: production + owner: platform + # Its pages, attached to it in the workspace's catalog: what the Docs + # library shows for it, and what the catalog's docs and runbook checks read. + # Generated from what this manifest and its sources declare. + docs: + overview: docs/overview.md + pages: + - { path: docs/architecture.md, role: architecture, title: Architecture } + - { path: docs/runbook.md, role: runbook, title: Runbook } + # `app`, not `web`: a domain and a component share one name space in the + # catalog, and a domain called `web` hid this component from it. + domain: app + path: apps/web + # Its own lane per environment: the framework build is the longest job in + # the plan, and a shared lane would wait on it. + lane: isolated + # The Worker's SECRETS, each read at request time ($env/dynamic/private), + # never inlined. The sign-in providers' client ids and secrets — the nine + # upstream's .env.example names, GitHub first — stored per environment as + # the product's secrets (README → Sign-in providers). BEST-EFFORT, + # wire-now-seed-later: a key nobody has stored is skipped when the job + # resolves its secrets (no env var, no failure), and a provider is offered + # only once all its keys are set (src/server/providers.ts), so a fresh + # product deploys and serves before its owner has an OAuth app at all. + # AUTH_SECRET, if stored, replaces the one the first deploy generates. + optionalSecretEnv: + AUTH_SECRET: "secret://sveltekit-auth/sveltekit-auth/{{ .environment }}/AUTH_SECRET" + AUTH_GITHUB_ID: "secret://sveltekit-auth/sveltekit-auth/{{ .environment }}/AUTH_GITHUB_ID" + AUTH_GITHUB_SECRET: "secret://sveltekit-auth/sveltekit-auth/{{ .environment }}/AUTH_GITHUB_SECRET" + AUTH_GOOGLE_ID: "secret://sveltekit-auth/sveltekit-auth/{{ .environment }}/AUTH_GOOGLE_ID" + AUTH_GOOGLE_SECRET: "secret://sveltekit-auth/sveltekit-auth/{{ .environment }}/AUTH_GOOGLE_SECRET" + AUTH_DISCORD_ID: "secret://sveltekit-auth/sveltekit-auth/{{ .environment }}/AUTH_DISCORD_ID" + AUTH_DISCORD_SECRET: "secret://sveltekit-auth/sveltekit-auth/{{ .environment }}/AUTH_DISCORD_SECRET" + AUTH_LINKEDIN_ID: "secret://sveltekit-auth/sveltekit-auth/{{ .environment }}/AUTH_LINKEDIN_ID" + AUTH_LINKEDIN_SECRET: "secret://sveltekit-auth/sveltekit-auth/{{ .environment }}/AUTH_LINKEDIN_SECRET" + AUTH_FACEBOOK_ID: "secret://sveltekit-auth/sveltekit-auth/{{ .environment }}/AUTH_FACEBOOK_ID" + AUTH_FACEBOOK_SECRET: "secret://sveltekit-auth/sveltekit-auth/{{ .environment }}/AUTH_FACEBOOK_SECRET" + AUTH_TWITTER_ID: "secret://sveltekit-auth/sveltekit-auth/{{ .environment }}/AUTH_TWITTER_ID" + AUTH_TWITTER_SECRET: "secret://sveltekit-auth/sveltekit-auth/{{ .environment }}/AUTH_TWITTER_SECRET" + AUTH_TWITCH_ID: "secret://sveltekit-auth/sveltekit-auth/{{ .environment }}/AUTH_TWITCH_ID" + AUTH_TWITCH_SECRET: "secret://sveltekit-auth/sveltekit-auth/{{ .environment }}/AUTH_TWITCH_SECRET" + AUTH_PINTEREST_ID: "secret://sveltekit-auth/sveltekit-auth/{{ .environment }}/AUTH_PINTEREST_ID" + AUTH_PINTEREST_SECRET: "secret://sveltekit-auth/sveltekit-auth/{{ .environment }}/AUTH_PINTEREST_SECRET" + AUTH_AUTH0_ID: "secret://sveltekit-auth/sveltekit-auth/{{ .environment }}/AUTH_AUTH0_ID" + AUTH_AUTH0_SECRET: "secret://sveltekit-auth/sveltekit-auth/{{ .environment }}/AUTH_AUTH0_SECRET" + AUTH_AUTH0_ISSUER: "secret://sveltekit-auth/sveltekit-auth/{{ .environment }}/AUTH_AUTH0_ISSUER" + subscribe: + environments: + - name: dev + profile: verify + - name: stage + profile: verify + profileRules: + - profile: deploy + when: + triggerRef: github-push-main + - name: prod + profile: verify + profileRules: + - profile: deploy + when: + triggerRef: github-push-main + parameters: + nodeVersion: "22" + pnpmVersion: "10.12.1" + + workspaceDir: ../.. + appDir: . + + turboFilter: "@app/web" + # The committed config: worker name, compatibility date and flags, the + # Worker entry and the ASSETS binding over the adapter's output. Nothing + # to render: no binding but ASSETS (sessions are Auth.js's JWT cookies). + wranglerConfig: wrangler.jsonc + + # @sveltejs/adapter-cloudflare emits the Worker as + # .svelte-kit/cloudflare/_worker.js and the static output (_app/* hashed + # assets, static/) beside it — both deploy in one `wrangler deploy`. + workerEntrypoint: .svelte-kit/cloudflare/_worker.js + assetsDir: .svelte-kit/cloudflare + + # Per-env worker name: sveltekit-auth-web-{dev,stage,prod}. + workerName: sveltekit-auth-web + environmentAwareWorkerName: true + + # The account's workers.dev subdomain; exported to the smoke step as + # ${WORKERS_DEV_SUBDOMAIN} and used to build ${DEPLOYED_URL}. + workersDevSubdomain: your-workers-subdomain + + installCommand: pnpm install --frozen-lockfile + # Build, then hand the Worker its secrets. No secret reaches the build + # (`env -u`): the Worker reads each at request time. Then the providers' + # keys the environment has go to the Worker (`wrangler secret bulk`, the + # values over stdin) before the composition deploys it, and AUTH_SECRET + # with them when the Worker does not carry one yet — a fresh 32-byte key + # the FIRST deploy of each environment generates and every later deploy + # keeps (tooling/wire/worker-secrets.mjs --generate). Only the deploy lane + # holds a Cloudflare credential, so a verify lane builds the same and + # pushes nothing. + buildCommand: env -u AUTH_SECRET -u AUTH_GITHUB_ID -u AUTH_GITHUB_SECRET -u AUTH_GOOGLE_ID -u AUTH_GOOGLE_SECRET -u AUTH_DISCORD_ID -u AUTH_DISCORD_SECRET -u AUTH_LINKEDIN_ID -u AUTH_LINKEDIN_SECRET -u AUTH_FACEBOOK_ID -u AUTH_FACEBOOK_SECRET -u AUTH_TWITTER_ID -u AUTH_TWITTER_SECRET -u AUTH_TWITCH_ID -u AUTH_TWITCH_SECRET -u AUTH_PINTEREST_ID -u AUTH_PINTEREST_SECRET -u AUTH_AUTH0_ID -u AUTH_AUTH0_SECRET -u AUTH_AUTH0_ISSUER pnpm exec turbo run build --filter=@app/web && node ../../tooling/wire/worker-secrets.mjs --worker "sveltekit-auth-web-${ORUN_ENVIRONMENT}" --config wrangler.jsonc --generate AUTH_SECRET --secret AUTH_GITHUB_ID --secret AUTH_GITHUB_SECRET --secret AUTH_GOOGLE_ID --secret AUTH_GOOGLE_SECRET --secret AUTH_DISCORD_ID --secret AUTH_DISCORD_SECRET --secret AUTH_LINKEDIN_ID --secret AUTH_LINKEDIN_SECRET --secret AUTH_FACEBOOK_ID --secret AUTH_FACEBOOK_SECRET --secret AUTH_TWITTER_ID --secret AUTH_TWITTER_SECRET --secret AUTH_TWITCH_ID --secret AUTH_TWITCH_SECRET --secret AUTH_PINTEREST_ID --secret AUTH_PINTEREST_SECRET --secret AUTH_AUTH0_ID --secret AUTH_AUTH0_SECRET --secret AUTH_AUTH0_ISSUER + + # Smoke: the home page renders to its end (`</html>` — the layout asks + # Auth.js for the session, so a Worker without AUTH_SECRET answers 500), + # and /auth/session answers `null` for a visitor with no session — Auth.js + # itself, in the Worker, with its secret bound. Not the site's name: that + # is the owner's to change. Read-only. Each response is buffered before + # it is tested so an early match cannot SIGPIPE curl. + smokeCommand: "html=$(curl -sfL \"${DEPLOYED_URL}/\") && echo \"${html}\" | grep -q '</html>' && session=$(curl -sf \"${DEPLOYED_URL}/auth/session\") && [ \"${session}\" = \"null\" ]" + labels: + team: platform + layer: delivery + surface: web + runtime: cloudflare diff --git a/apps/web/package.json b/apps/web/package.json new file mode 100644 index 0000000..ece2c98 --- /dev/null +++ b/apps/web/package.json @@ -0,0 +1,36 @@ +{ + "name": "@app/web", + "version": "0.0.0", + "private": true, + "description": "Auth.js's SvelteKit example on Cloudflare Workers + Static Assets", + "type": "module", + "scripts": { + "dev": "vite dev", + "build": "vite build", + "preview": "wrangler dev --config wrangler.jsonc", + "prepare": "svelte-kit sync || echo ''", + "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", + "typecheck": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", + "lint": "prettier --check .", + "format": "prettier --write .", + "test": "vitest run", + "secret:dev": "node ../../tooling/wire/worker-secrets.mjs --dev-vars .env --generate AUTH_SECRET --secret AUTH_SECRET" + }, + "dependencies": { + "@auth/sveltekit": "1.11.3" + }, + "devDependencies": { + "@sveltejs/adapter-cloudflare": "7.2.9", + "@sveltejs/kit": "2.60.1", + "@sveltejs/vite-plugin-svelte": "5.1.1", + "@types/node": "^22.20.5", + "prettier": "^3.6.2", + "prettier-plugin-svelte": "^3.4.0", + "svelte": "5.55.7", + "svelte-check": "^4.3.1", + "typescript": "^5.8.3", + "vite": "6.4.2", + "vitest": "^3.2.4", + "wrangler": "^4.151.0" + } +} diff --git a/apps/web/src/app.d.ts b/apps/web/src/app.d.ts new file mode 100644 index 0000000..4442995 --- /dev/null +++ b/apps/web/src/app.d.ts @@ -0,0 +1,13 @@ +/// <reference types="@auth/sveltekit" /> +/// <reference types="@sveltejs/adapter-cloudflare" /> + +// See https://svelte.dev/docs/kit/types#app.d.ts +declare global { + namespace App { + interface Platform { + env: Record<string, unknown> + } + } +} + +export {} diff --git a/apps/web/src/app.html b/apps/web/src/app.html new file mode 100644 index 0000000..5c85742 --- /dev/null +++ b/apps/web/src/app.html @@ -0,0 +1,13 @@ +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8" /> + <link rel="icon" href="%sveltekit.assets%/favicon.ico" /> + <meta name="viewport" content="width=device-width" /> + %sveltekit.head% + </head> + + <body> + <div>%sveltekit.body%</div> + </body> +</html> diff --git a/apps/web/src/auth.ts b/apps/web/src/auth.ts new file mode 100644 index 0000000..6c11d1b --- /dev/null +++ b/apps/web/src/auth.ts @@ -0,0 +1,17 @@ +import { SvelteKitAuth } from "@auth/sveltekit" +import { serverEnv } from "./server/env" +import { providersFor } from "./server/providers" + +// Upstream's Auth.js configuration, made lazy: the providers are read per +// request from the Worker's own secrets, so a provider whose keys are stored +// appears on the next request after the deploy that pushed them, and one +// with no keys is never offered. Sessions are Auth.js's default, an +// encrypted JWT cookie sealed with AUTH_SECRET; there is no database. +export const { handle, signIn, signOut } = SvelteKitAuth(async (event) => { + const env = serverEnv(event) + return { + trustHost: true, + secret: env.AUTH_SECRET, + providers: providersFor(env), + } +}) diff --git a/apps/web/src/components/external-icon.svelte b/apps/web/src/components/external-icon.svelte new file mode 100644 index 0000000..db2de54 --- /dev/null +++ b/apps/web/src/components/external-icon.svelte @@ -0,0 +1,19 @@ +<svg + xmlns="http://www.w3.org/2000/svg" + width="16" + height="16" + viewBox="0 0 24 24" + fill="none" + stroke="currentColor" + stroke-width="2" + stroke-linecap="round" + stroke-linejoin="round" + class="inline-block ml-0.5 w-4 h-4" + ><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" + ></path><polyline points="15 3 21 3 21 9"></polyline><line + x1="10" + x2="21" + y1="14" + y2="3" + ></line></svg +> diff --git a/apps/web/src/components/footer.svelte b/apps/web/src/components/footer.svelte new file mode 100644 index 0000000..a934be4 --- /dev/null +++ b/apps/web/src/components/footer.svelte @@ -0,0 +1,52 @@ +<script lang="ts"> + import packageJSON from "@auth/sveltekit/package.json" + import ExternalIcon from "./external-icon.svelte" +</script> + +<footer> + <div> + <a href="https://sveltekit.authjs.dev">Documentation <ExternalIcon /></a> + <a href="https://www.npmjs.com/package/next-auth"> NPM <ExternalIcon /> </a> + <a + href="https://github.com/nextauthjs/next-auth/tree/main/apps/examples/sveltekit" + > + Source on GitHub <ExternalIcon /> + </a> + </div> + <div> + <img src="https://authjs.dev/img/logo-sm.png" alt="Auth.js Logo" /> + <a href="https://www.npmjs.com/package/@auth/sveltekit"> + @auth/sveltekit@{packageJSON.version} + <ExternalIcon /> + </a> + </div> +</footer> + +<style> + footer { + display: flex; + width: 100%; + justify-content: space-between; + align-items: center; + padding-inline: 1.25rem; + margin-block: 2rem; + } + footer > div { + gap: 1rem; + display: flex; + flex-wrap: wrap; + align-items: center; + } + footer a { + color: #333; + text-underline-offset: 4px; + font-weight: 500; + display: flex; + align-items: flex-end; + gap: 0.25rem; + } + footer img { + width: 24px; + height: 24px; + } +</style> diff --git a/apps/web/src/components/header.svelte b/apps/web/src/components/header.svelte new file mode 100644 index 0000000..7fe13ed --- /dev/null +++ b/apps/web/src/components/header.svelte @@ -0,0 +1,112 @@ +<script lang="ts"> + import { page } from "$app/stores" + import { SignIn, SignOut } from "@auth/sveltekit/components" +</script> + +<header> + <div class="signedInStatus"> + <div class="nojs-show loaded"> + <img + alt="User avatar" + src={$page.data?.session?.user?.image ?? + `https://api.dicebear.com/9.x/thumbs/svg?seed=${Math.floor(Math.random() * 100000) + 1}&randomizeIds=true`} + class="avatar" + /> + {#if $page.data.session} + <span class="signedInText"> + {$page.data.session.user?.email ?? $page.data.session.user?.name} + </span> + <SignOut> + <div slot="submitButton" class="buttonPrimary">Sign out</div> + </SignOut> + {:else} + <span class="notSignedInText">You are not signed in</span> + <SignIn> + <div slot="submitButton" class="buttonPrimary">Sign in</div> + </SignIn> + {/if} + </div> + </div> + <nav> + <ul class="navItems"> + <li class="navItem"><a href="/">Home</a></li> + <li class="navItem"><a href="/protected">Protected</a></li> + </ul> + </nav> +</header> + +<style> + .nojs-show { + opacity: 1; + top: 0; + } + .signedInStatus { + display: block; + min-height: 4rem; + } + .loaded { + position: relative; + top: 0; + opacity: 1; + overflow: hidden; + display: flex; + align-items: center; + border-radius: 0 0 0.6rem 0.6rem; + padding: 0.6rem 1rem; + margin: 0; + background-color: rgba(0, 0, 0, 0.05); + transition: all 0.2s ease-in; + } + .signedInText, + .notSignedInText { + justify-content: end; + padding-left: 1rem; + white-space: nowrap; + text-overflow: ellipsis; + overflow: hidden; + display: inherit; + line-height: 1.3rem; + flex: 1; + } + .signedInText { + padding-top: 0rem; + left: 4.6rem; + } + .avatar { + border-radius: 2rem; + float: left; + height: 2.8rem; + width: 2.8rem; + background-color: white; + background-size: cover; + background-repeat: no-repeat; + } + .buttonPrimary { + font-weight: 500; + border-radius: 0.3rem; + cursor: pointer; + font-size: 1rem; + line-height: 1.4rem; + position: relative; + justify-self: end; + background-color: #346df1; + color: #fff; + text-decoration: none; + padding: 0.7rem 1.4rem; + } + .buttonPrimary:hover { + box-shadow: inset 0 0 5rem rgba(0, 0, 0, 0.2); + } + .navItems { + margin-bottom: 2rem; + padding: 0; + list-style: none; + } + .navItem { + display: inline-block; + margin-right: 1rem; + } + :global(form button) { + border: none !important; + } +</style> diff --git a/apps/web/src/hooks.server.ts b/apps/web/src/hooks.server.ts new file mode 100644 index 0000000..69f0f9e --- /dev/null +++ b/apps/web/src/hooks.server.ts @@ -0,0 +1 @@ +export { handle } from "./auth" diff --git a/apps/web/src/lib/SignInButton.svelte b/apps/web/src/lib/SignInButton.svelte new file mode 100644 index 0000000..7de98fc --- /dev/null +++ b/apps/web/src/lib/SignInButton.svelte @@ -0,0 +1,12 @@ +<script lang="ts"> + export let provider: any +</script> + +<form action={provider.signinUrl} method="POST"> + {#if provider.callbackUrl} + <input type="hidden" name="callbackUrl" value={provider.callbackUrl} /> + {/if} + <button type="submit" class="button"> + <slot>Sign in with {provider.name}</slot> + </button> +</form> diff --git a/apps/web/src/routes/+layout.server.ts b/apps/web/src/routes/+layout.server.ts new file mode 100644 index 0000000..f0b8425 --- /dev/null +++ b/apps/web/src/routes/+layout.server.ts @@ -0,0 +1,7 @@ +import type { LayoutServerLoad } from "./$types" + +export const load: LayoutServerLoad = async (event) => { + return { + session: await event.locals.auth(), + } +} diff --git a/apps/web/src/routes/+layout.svelte b/apps/web/src/routes/+layout.svelte new file mode 100644 index 0000000..fd915fd --- /dev/null +++ b/apps/web/src/routes/+layout.svelte @@ -0,0 +1,60 @@ +<script lang="ts"> + import Header from "$components/header.svelte" + import Footer from "$components/footer.svelte" +</script> + +<div class="container"> + <Header /> + <slot /> + <Footer /> +</div> + +<style> + :global(body) { + font-family: + ui-sans-serif, + system-ui, + -apple-system, + BlinkMacSystemFont, + "Segoe UI", + Roboto, + "Helvetica Neue", + Arial, + "Noto Sans", + sans-serif, + "Apple Color Emoji", + "Segoe UI Emoji", + "Segoe UI Symbol", + "Noto Color Emoji"; + padding: 0 1rem 0rem 1rem; + max-width: 768px; + margin: 0 auto; + background: #fff; + color: #333; + } + :global(li), + :global(p) { + line-height: 1.5rem; + } + :global(a) { + font-weight: 500; + } + :global(hr) { + border: 1px solid #ddd; + } + :global(iframe) { + background: #ccc; + border: 1px solid #ccc; + height: 10rem; + width: 100%; + border-radius: 0.5rem; + filter: invert(1); + } + .container { + height: 100dvh; + display: flex; + flex-direction: column; + justify-content: start; + align-items: stretch; + } +</style> diff --git a/apps/web/src/routes/+page.svelte b/apps/web/src/routes/+page.svelte new file mode 100644 index 0000000..302f42b --- /dev/null +++ b/apps/web/src/routes/+page.svelte @@ -0,0 +1,23 @@ +<script lang="ts"> + import { SITE_NAME, pageTitle } from "../site" +</script> + +<svelte:head> + <title>{pageTitle()} + + +
+

{SITE_NAME}

+

+ This is an example site to demonstrate how to use SvelteKit + with SvelteKit Auth for authentication. +

+
+ + diff --git a/apps/web/src/routes/protected/+page.svelte b/apps/web/src/routes/protected/+page.svelte new file mode 100644 index 0000000..5cf181a --- /dev/null +++ b/apps/web/src/routes/protected/+page.svelte @@ -0,0 +1,19 @@ + + + + {pageTitle("Protected")} + + +{#if $page.data.session} +

Protected page

+

+ This is a protected content. You can access this content because you are + signed in. +

+

Session expiry: {$page.data.session?.expires}

+{:else} +

Access Denied

+{/if} diff --git a/apps/web/src/routes/signin/+page.server.ts b/apps/web/src/routes/signin/+page.server.ts new file mode 100644 index 0000000..3f0c22b --- /dev/null +++ b/apps/web/src/routes/signin/+page.server.ts @@ -0,0 +1,32 @@ +import { redirect } from "@sveltejs/kit" +import { signIn } from "../../auth" +import { serverEnv } from "../../server/env" +import { connectedProviders, PROVIDERS } from "../../server/providers" +import type { Actions, PageServerLoad } from "./$types" + +// GET /signin: which providers this deployment offers, and — when it offers +// none — the keys each one needs, so the page can say what to connect. +export const load: PageServerLoad = async (event) => { + const connected = connectedProviders(serverEnv(event)).map( + ({ id, name }) => ({ + id, + name, + }), + ) + return { + connected, + available: PROVIDERS.map(({ id, name, keys }) => ({ id, name, keys })), + } +} + +// POST /signin is upstream's action (the header's Sign in button): Auth.js +// sends the visitor to its sign-in page, or straight to a provider when the +// form names one. With no provider connected there is nothing to send them to, +// so they land on this route's own page, which says how to connect one. +export const actions = { + default: async (event) => { + if (connectedProviders(serverEnv(event)).length === 0) + redirect(303, "/signin") + return signIn(event) + }, +} satisfies Actions diff --git a/apps/web/src/routes/signin/+page.svelte b/apps/web/src/routes/signin/+page.svelte new file mode 100644 index 0000000..652cc8f --- /dev/null +++ b/apps/web/src/routes/signin/+page.svelte @@ -0,0 +1,74 @@ + + + + {pageTitle("Sign in")} + + +
+

Sign in

+ {#if data.connected.length > 0} +

Choose how to sign in:

+
    + {#each data.connected as provider} +
  • + +
    + Sign in with {provider.name} +
    +
    +
  • + {/each} +
+ {:else} +

+ No sign-in provider is connected to this site yet. +

+

+ Connect one by storing its keys as the site's secrets, then redeploy: + GitHub needs AUTH_GITHUB_ID and + AUTH_GITHUB_SECRET from a GitHub OAuth app whose callback URL + is this site's /auth/callback/github. The site's README, + "Sign-in providers", lists the keys every provider takes. +

+
+ Every provider this site can offer +
    + {#each data.available as provider} +
  • + {provider.name}: {#each provider.keys as key, i}{key}{i < provider.keys.length - 1 ? ", " : ""}{/each} +
  • + {/each} +
+
+ {/if} +
+ + diff --git a/apps/web/src/routes/signout/+page.server.ts b/apps/web/src/routes/signout/+page.server.ts new file mode 100644 index 0000000..1bc8b77 --- /dev/null +++ b/apps/web/src/routes/signout/+page.server.ts @@ -0,0 +1,4 @@ +import { signOut } from "../../auth" +import type { Actions } from "./$types" + +export const actions = { default: signOut } satisfies Actions diff --git a/apps/web/src/server/env.ts b/apps/web/src/server/env.ts new file mode 100644 index 0000000..9df19df --- /dev/null +++ b/apps/web/src/server/env.ts @@ -0,0 +1,7 @@ +import { env } from "$env/dynamic/private" +import { workerVars, type Vars } from "./vars" + +/** The variables and secrets this request's Worker carries. */ +export function serverEnv(event: { platform?: App.Platform }): Vars { + return workerVars(env, event.platform?.env) +} diff --git a/apps/web/src/server/providers.test.ts b/apps/web/src/server/providers.test.ts new file mode 100644 index 0000000..06a45eb --- /dev/null +++ b/apps/web/src/server/providers.test.ts @@ -0,0 +1,64 @@ +import { describe, expect, it } from "vitest" +import { connectedProviders, PROVIDERS, providersFor } from "./providers" + +const ids = (env: Record) => + connectedProviders(env).map((p) => p.id) + +describe("the sign-in providers", () => { + it("keeps upstream's twenty-six, in upstream's order", () => { + expect(PROVIDERS).toHaveLength(26) + expect(PROVIDERS[0].id).toBe("apple") + expect(PROVIDERS.at(-1)?.id).toBe("zoom") + expect(new Set(PROVIDERS.map((p) => p.id)).size).toBe(26) + }) + + it("offers none when no key is set", () => { + expect(ids({})).toEqual([]) + expect(providersFor({})).toEqual([]) + }) + + it("offers a provider only once every key it needs is set", () => { + expect(ids({ AUTH_GITHUB_ID: "id" })).toEqual([]) + expect(ids({ AUTH_GITHUB_ID: "id", AUTH_GITHUB_SECRET: "s" })).toEqual([ + "github", + ]) + // Auth0 needs its issuer too. + expect(ids({ AUTH_AUTH0_ID: "id", AUTH_AUTH0_SECRET: "s" })).toEqual([]) + expect( + ids({ + AUTH_AUTH0_ID: "id", + AUTH_AUTH0_SECRET: "s", + AUTH_AUTH0_ISSUER: "https://x.auth0.com", + }), + ).toEqual(["auth0"]) + // WorkOS needs its connection. + expect(ids({ AUTH_WORKOS_ID: "id", AUTH_WORKOS_SECRET: "s" })).toEqual([]) + }) + + it("treats a blank key as unset", () => { + expect(ids({ AUTH_GITHUB_ID: " ", AUTH_GITHUB_SECRET: "s" })).toEqual([]) + }) + + it("lists several in upstream's order, not the environment's", () => { + const env = { + AUTH_GOOGLE_ID: "g", + AUTH_GOOGLE_SECRET: "g", + AUTH_DISCORD_ID: "d", + AUTH_DISCORD_SECRET: "d", + AUTH_GITHUB_ID: "h", + AUTH_GITHUB_SECRET: "h", + } + expect(ids(env)).toEqual(["discord", "github", "google"]) + expect(providersFor(env)).toHaveLength(3) + }) + + it("configures the providers upstream configured from the environment", () => { + const [b2c] = providersFor({ + AUTH_AZURE_AD_B2C_ID: "b2c-id", + AUTH_AZURE_AD_B2C_SECRET: "b2c-secret", + AUTH_AZURE_AD_B2C_ISSUER: "https://tenant.b2clogin.com/x/v2.0/", + }) as unknown as { options: Record }[] + expect(b2c.options.clientId).toBe("b2c-id") + expect(b2c.options.issuer).toBe("https://tenant.b2clogin.com/x/v2.0/") + }) +}) diff --git a/apps/web/src/server/providers.ts b/apps/web/src/server/providers.ts new file mode 100644 index 0000000..fc77768 --- /dev/null +++ b/apps/web/src/server/providers.ts @@ -0,0 +1,187 @@ +// Upstream's providers, each switched on by its own keys. +// +// The example registers twenty-six providers unconditionally, so a fresh +// deployment showed twenty-six buttons that all failed. Here each provider is +// listed with the keys it needs, and the Auth.js config (src/auth.ts) is +// built per request from the ones whose keys are all set: a product goes live +// with none, says so on /signin, and gains a provider the moment its keys are +// stored as Worker secrets. Auth.js itself reads `AUTH__ID` and +// `AUTH__SECRET` for the providers passed bare; the rest take +// their options from the same keys, as upstream wrote them. +import type { Provider } from "@auth/sveltekit/providers" +import Apple from "@auth/sveltekit/providers/apple" +import Auth0 from "@auth/sveltekit/providers/auth0" +import AzureB2C from "@auth/sveltekit/providers/azure-ad-b2c" +import BoxyHQSAML from "@auth/sveltekit/providers/boxyhq-saml" +import Cognito from "@auth/sveltekit/providers/cognito" +import Coinbase from "@auth/sveltekit/providers/coinbase" +import Discord from "@auth/sveltekit/providers/discord" +import Dropbox from "@auth/sveltekit/providers/dropbox" +import Facebook from "@auth/sveltekit/providers/facebook" +import GitHub from "@auth/sveltekit/providers/github" +import GitLab from "@auth/sveltekit/providers/gitlab" +import Google from "@auth/sveltekit/providers/google" +import Hubspot from "@auth/sveltekit/providers/hubspot" +import Keycloak from "@auth/sveltekit/providers/keycloak" +import LinkedIn from "@auth/sveltekit/providers/linkedin" +import Netlify from "@auth/sveltekit/providers/netlify" +import Okta from "@auth/sveltekit/providers/okta" +import Passage from "@auth/sveltekit/providers/passage" +import Pinterest from "@auth/sveltekit/providers/pinterest" +import Reddit from "@auth/sveltekit/providers/reddit" +import Slack from "@auth/sveltekit/providers/slack" +import Spotify from "@auth/sveltekit/providers/spotify" +import Twitch from "@auth/sveltekit/providers/twitch" +import Twitter from "@auth/sveltekit/providers/twitter" +import WorkOS from "@auth/sveltekit/providers/workos" +import Zoom from "@auth/sveltekit/providers/zoom" + +export type Env = Record + +export type ProviderEntry = { + /** Auth.js's provider id: the path segment in /auth/signin/. */ + id: string + /** What the sign-in page calls it. */ + name: string + /** Every key that must be set for the provider to be offered. */ + keys: string[] + /** The provider, configured from the environment. */ + make: (env: Env) => Provider +} + +/** Keys of a provider Auth.js configures itself from AUTH__ID/_SECRET. */ +const pair = (prefix: string) => [`AUTH_${prefix}_ID`, `AUTH_${prefix}_SECRET`] +const triple = (prefix: string) => [...pair(prefix), `AUTH_${prefix}_ISSUER`] + +// Upstream's list, in upstream's order. +export const PROVIDERS: ProviderEntry[] = [ + { id: "apple", name: "Apple", keys: pair("APPLE"), make: () => Apple }, + { id: "auth0", name: "Auth0", keys: triple("AUTH0"), make: () => Auth0 }, + { + id: "azure-ad-b2c", + name: "Azure AD B2C", + keys: triple("AZURE_AD_B2C"), + make: (env) => + AzureB2C({ + clientId: env.AUTH_AZURE_AD_B2C_ID, + clientSecret: env.AUTH_AZURE_AD_B2C_SECRET, + issuer: env.AUTH_AZURE_AD_B2C_ISSUER, + }), + }, + { + id: "boxyhq-saml", + name: "BoxyHQ SAML", + keys: ["AUTH_BOXYHQ_SAML_ISSUER"], + make: (env) => + BoxyHQSAML({ + clientId: "dummy", + clientSecret: "dummy", + issuer: env.AUTH_BOXYHQ_SAML_ISSUER, + }), + }, + { + id: "cognito", + name: "Cognito", + keys: triple("COGNITO"), + make: () => Cognito, + }, + { + id: "coinbase", + name: "Coinbase", + keys: pair("COINBASE"), + make: () => Coinbase, + }, + { + id: "discord", + name: "Discord", + keys: pair("DISCORD"), + make: () => Discord, + }, + { + id: "dropbox", + name: "Dropbox", + keys: pair("DROPBOX"), + make: () => Dropbox, + }, + { + id: "facebook", + name: "Facebook", + keys: pair("FACEBOOK"), + make: () => Facebook, + }, + { id: "github", name: "GitHub", keys: pair("GITHUB"), make: () => GitHub }, + { id: "gitlab", name: "GitLab", keys: pair("GITLAB"), make: () => GitLab }, + { id: "google", name: "Google", keys: pair("GOOGLE"), make: () => Google }, + { + id: "hubspot", + name: "HubSpot", + keys: pair("HUBSPOT"), + make: () => Hubspot, + }, + { + id: "keycloak", + name: "Keycloak", + keys: triple("KEYCLOAK"), + make: () => Keycloak, + }, + { + id: "linkedin", + name: "LinkedIn", + keys: pair("LINKEDIN"), + make: () => LinkedIn, + }, + { + id: "netlify", + name: "Netlify", + keys: pair("NETLIFY"), + make: () => Netlify, + }, + { id: "okta", name: "Okta", keys: triple("OKTA"), make: () => Okta }, + { + id: "passage", + name: "Passage", + keys: triple("PASSAGE"), + make: () => Passage, + }, + { + id: "pinterest", + name: "Pinterest", + keys: pair("PINTEREST"), + make: () => Pinterest, + }, + { id: "reddit", name: "Reddit", keys: pair("REDDIT"), make: () => Reddit }, + { id: "slack", name: "Slack", keys: pair("SLACK"), make: () => Slack }, + { + id: "spotify", + name: "Spotify", + keys: pair("SPOTIFY"), + make: () => Spotify, + }, + { id: "twitch", name: "Twitch", keys: pair("TWITCH"), make: () => Twitch }, + { + id: "twitter", + name: "Twitter", + keys: pair("TWITTER"), + make: () => Twitter, + }, + { + id: "workos", + name: "WorkOS", + keys: [...pair("WORKOS"), "AUTH_WORKOS_CONNECTION"], + make: (env) => WorkOS({ connection: env.AUTH_WORKOS_CONNECTION! }), + }, + { id: "zoom", name: "Zoom", keys: pair("ZOOM"), make: () => Zoom }, +] + +const isSet = (v: string | undefined) => + typeof v === "string" && v.trim() !== "" + +/** The providers whose keys are all set, in upstream's order. */ +export function connectedProviders(env: Env): ProviderEntry[] { + return PROVIDERS.filter((p) => p.keys.every((k) => isSet(env[k]))) +} + +/** The Auth.js providers for this environment. */ +export function providersFor(env: Env): Provider[] { + return connectedProviders(env).map((p) => p.make(env)) +} diff --git a/apps/web/src/server/vars.test.ts b/apps/web/src/server/vars.test.ts new file mode 100644 index 0000000..97ec4d0 --- /dev/null +++ b/apps/web/src/server/vars.test.ts @@ -0,0 +1,25 @@ +import { describe, expect, it } from "vitest" +import { workerVars } from "./vars" + +describe("workerVars", () => { + it("is SvelteKit's dynamic env when there are no bindings", () => { + expect(workerVars({ AUTH_SECRET: "a" })).toEqual({ AUTH_SECRET: "a" }) + }) + + it("lets the Worker's own bindings win (the local .env, under vite dev)", () => { + expect( + workerVars( + { AUTH_SECRET: "from-env", OTHER: "x" }, + { AUTH_SECRET: "from-binding" }, + ), + ).toEqual({ AUTH_SECRET: "from-binding", OTHER: "x" }) + }) + + it("takes only strings: a service binding is not a variable", () => { + const vars = workerVars( + {}, + { ASSETS: { fetch() {} }, AUTH_GITHUB_ID: "id" }, + ) + expect(vars).toEqual({ AUTH_GITHUB_ID: "id" }) + }) +}) diff --git a/apps/web/src/server/vars.ts b/apps/web/src/server/vars.ts new file mode 100644 index 0000000..8d1f738 --- /dev/null +++ b/apps/web/src/server/vars.ts @@ -0,0 +1,18 @@ +export type Vars = Record + +// The Worker's variables and secrets, by name. Deployed, they are the +// Worker's own bindings (`platform.env`): its secrets, pushed by the deploy +// lane. Locally, `wrangler dev` and the adapter's platform proxy under +// `vite dev` read them from `.dev.vars` or, without one, `.env`, which is +// also what SvelteKit's dynamic env reads under `vite dev`. The bindings win, +// and only their strings count (ASSETS, a binding too, is not a variable). +export function workerVars( + dynamicEnv: Vars, + platformEnv?: Record, +): Vars { + const vars: Vars = { ...dynamicEnv } + for (const [name, value] of Object.entries(platformEnv ?? {})) { + if (typeof value === "string") vars[name] = value + } + return vars +} diff --git a/apps/web/src/site.test.ts b/apps/web/src/site.test.ts new file mode 100644 index 0000000..7ef6ba6 --- /dev/null +++ b/apps/web/src/site.test.ts @@ -0,0 +1,14 @@ +import { describe, expect, it } from "vitest" +import { pageTitle, SITE_NAME } from "./site" + +describe("the site's name", () => { + it("is one non-empty literal", () => { + expect(typeof SITE_NAME).toBe("string") + expect(SITE_NAME.trim()).not.toBe("") + }) + + it("titles the home page with it alone, and every other page after it", () => { + expect(pageTitle()).toBe(SITE_NAME) + expect(pageTitle("Sign in")).toBe(`Sign in | ${SITE_NAME}`) + }) +}) diff --git a/apps/web/src/site.ts b/apps/web/src/site.ts new file mode 100644 index 0000000..21558ca --- /dev/null +++ b/apps/web/src/site.ts @@ -0,0 +1,10 @@ +// The site's name, written once: the home page's heading and every page's +// read SITE_NAME. A site made from this repository gets it rewritten +// to its own name, as a JSON string so that any name (an apostrophe or an +// ampersand included) stays a valid one, so keep it a literal on one line. +export const SITE_NAME = "SvelteKit Auth Example" + +/** A page's <title>: the page, then the site. The home page is the site. */ +export function pageTitle(page?: string): string { + return page ? `${page} | ${SITE_NAME}` : SITE_NAME +} diff --git a/apps/web/src/worker-secrets.test.ts b/apps/web/src/worker-secrets.test.ts new file mode 100644 index 0000000..2526f4f --- /dev/null +++ b/apps/web/src/worker-secrets.test.ts @@ -0,0 +1,176 @@ +// tooling/wire/worker-secrets.mjs, the step that hands the Worker its secrets +// and mints AUTH_SECRET, run against a stand-in `pnpm` that records what it +// was asked and answers `wrangler secret list` as each case says. +import { spawnSync } from "node:child_process" +import { + chmodSync, + mkdtempSync, + readFileSync, + writeFileSync, + existsSync, +} from "node:fs" +import { tmpdir } from "node:os" +import { join, resolve } from "node:path" +import { describe, expect, it } from "vitest" + +const SCRIPT = resolve(__dirname, "../../../tooling/wire/worker-secrets.mjs") + +type Run = { + status: number | null + out: string + calls: string[] + bulk: Record<string, string> | null +} + +function run( + argv: string[], + env: Record<string, string>, + list: { status: number; out: string }, +): Run { + const dir = mkdtempSync(join(tmpdir(), "worker-secrets-")) + const shim = join(dir, "pnpm") + writeFileSync( + shim, + `#!/usr/bin/env bash +echo "$*" >> "${dir}/calls" +if [ "$3" = "secret" ] && [ "$4" = "list" ]; then printf '%s' "$LIST_OUT"; exit $LIST_STATUS; fi +if [ "$3" = "secret" ] && [ "$4" = "bulk" ]; then cat > "${dir}/bulk"; exit 0; fi +exit 9 +`, + ) + chmodSync(shim, 0o755) + const r = spawnSync("node", [SCRIPT, ...argv], { + encoding: "utf8", + env: { + PATH: `${dir}:${process.env.PATH}`, + LIST_OUT: list.out, + LIST_STATUS: String(list.status), + ...env, + }, + }) + const calls = existsSync(join(dir, "calls")) + ? readFileSync(join(dir, "calls"), "utf8").trim().split("\n") + : [] + const bulk = existsSync(join(dir, "bulk")) + ? JSON.parse(readFileSync(join(dir, "bulk"), "utf8")) + : null + return { status: r.status, out: r.stdout + r.stderr, calls, bulk } +} + +const deploy = [ + "--worker", + "acme-web-stage", + "--config", + "wrangler.jsonc", + "--generate", + "AUTH_SECRET", + "--secret", + "AUTH_GITHUB_ID", + "--secret", + "AUTH_GITHUB_SECRET", +] +const token = { CLOUDFLARE_API_TOKEN: "t" } +const listing = (names: string[]) => ({ + status: 0, + out: JSON.stringify(names.map((name) => ({ name, type: "secret_text" }))), +}) + +describe("worker-secrets", () => { + it("pushes nothing from a verify lane (no Cloudflare credential)", () => { + const r = run(deploy, { AUTH_GITHUB_ID: "id" }, listing([])) + expect(r.status).toBe(0) + expect(r.calls).toEqual([]) + expect(r.out).toMatch(/verify lane/) + }) + + it("mints AUTH_SECRET on the first deploy, with the providers' keys that are set", () => { + const r = run( + deploy, + { ...token, AUTH_GITHUB_ID: "id", AUTH_GITHUB_SECRET: "s" }, + { + status: 1, + out: "✘ This Worker does not exist on your account. [code: 10007]", + }, + ) + expect(r.status).toBe(0) + expect(r.calls[0]).toMatch( + /^exec wrangler secret list --name acme-web-stage --config wrangler.jsonc --format json$/, + ) + expect(r.calls[1]).toMatch( + /^exec wrangler secret bulk --name acme-web-stage --config wrangler.jsonc$/, + ) + expect(Object.keys(r.bulk!).sort()).toEqual([ + "AUTH_GITHUB_ID", + "AUTH_GITHUB_SECRET", + "AUTH_SECRET", + ]) + expect(r.bulk!.AUTH_SECRET).toMatch(/^[A-Za-z0-9_-]{43}$/) + // Never on a command line, never in the log. + expect(r.calls.join(" ")).not.toContain(r.bulk!.AUTH_SECRET) + expect(r.out).not.toContain(r.bulk!.AUTH_SECRET) + }) + + it("keeps the AUTH_SECRET a Worker already carries", () => { + const r = run( + deploy, + { ...token, AUTH_GITHUB_ID: "id", AUTH_GITHUB_SECRET: "s" }, + listing(["AUTH_SECRET"]), + ) + expect(r.status).toBe(0) + expect(Object.keys(r.bulk!).sort()).toEqual([ + "AUTH_GITHUB_ID", + "AUTH_GITHUB_SECRET", + ]) + expect(r.out).toMatch(/AUTH_SECRET already on acme-web-stage, kept/) + }) + + it("pushes nothing when the Worker has its key and no provider is connected", () => { + const r = run(deploy, token, listing(["AUTH_SECRET"])) + expect(r.status).toBe(0) + expect(r.calls).toHaveLength(1) + expect(r.bulk).toBeNull() + }) + + it("refuses to mint a replacement when the Worker's secrets cannot be read", () => { + const r = run(deploy, token, { + status: 1, + out: "✘ Authentication error [code: 10000]", + }) + expect(r.status).not.toBe(0) + expect(r.bulk).toBeNull() + expect(r.out).toMatch(/refusing to mint a replacement/) + }) + + it("uses a stored AUTH_SECRET as it is, without asking the Worker", () => { + const r = run( + deploy, + { ...token, AUTH_SECRET: "stored-by-the-owner" }, + listing([]), + ) + expect(r.status).toBe(0) + expect(r.calls.some((c) => c.includes("secret list"))).toBe(false) + expect(r.bulk).toEqual({ AUTH_SECRET: "stored-by-the-owner" }) + }) + + it("writes .dev.vars, keeping a generated key it already holds and the owner's lines", () => { + const dir = mkdtempSync(join(tmpdir(), "dev-vars-")) + const file = join(dir, ".dev.vars") + const args = [ + "--dev-vars", + file, + "--generate", + "AUTH_SECRET", + "--secret", + "AUTH_GITHUB_ID", + ] + expect(run(args, {}, listing([])).status).toBe(0) + const first = readFileSync(file, "utf8") + expect(first).toMatch(/^AUTH_SECRET="[A-Za-z0-9_-]{43}"$/m) + writeFileSync(file, `${first}MY_OWN="kept"\n`) + expect(run(args, { AUTH_GITHUB_ID: "id" }, listing([])).status).toBe(0) + const second = readFileSync(file, "utf8") + expect(second).toContain(first.trim()) + expect(second).toContain('MY_OWN="kept"') + expect(second).toContain('AUTH_GITHUB_ID="id"') + }) +}) diff --git a/apps/web/static/favicon.ico b/apps/web/static/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..825b9e65af7c104cfb07089bb28659393b4f2097 GIT binary patch literal 1571 zcmV+;2Hg3HP)<h;3K|Lk000e1NJLTq004jh004jp1ONa4X*a1r00001b5ch_0Itp) z=>Px)-AP12RCwC$UE6KzI1p6{F2N<Fgp}YCTtZ542`(WexCEDw|A=A)1A-t30wEX> z1VK2vi|pOpn{~#djwYcWXTI_im_u^TJgMZ4JMOsSj!0ma>B?-(Hr@X&W@|R-$}W@Z zg<YDbY-gN-C@$NXr>j#$x=!~7LGqHW?IO8+*oE1MyDp!G=L<gz=E*n%PA*mnuaD-% zU>0#^lUx?;!fXv@l^6SvTnf^ac{5OurzC#ZMYc20lI%HhX816AYVs1T3heS1*WaWH z%;x>)-J}YB5#CLzU@GBR6sXYrD>Vw(Fmt#|JP;+}<#6b63Ike{Fuo!?M{yEffez;| zp!PfsuaC)>h>-AdbnwN13g*1LowNjT5?+lFVd#9$!8Z9HA|$*6dQ8EHLu}U|obW6f z2%uGv?vr=KNq7YYa2Roj;|zooo<)lf=&2yxM@e`kM$CmCR#x>gI>I|*Ubr({5Y^rb zghxQU22N}F51}^yfDSt7<V*0Nvi!iKPY@n`1~$se=LwHTOE7`*@+};uU_gT$1{Nib z9&~5~nc4J(EWez%_f0Ty7T;wB{7s*oNO=9p8(o}N*_V>86oMTc!W&V;d?76)9KXX1 z+6Okem(d}YXmmOiZq$!IPk5t8nnS{%?+vDFz3BevmFN<oPlV?qzG@=jl`t@|E8zV8 zJ4}It4e%+dFPWw16u{sAX42jlFu{_e!AKZE75iV2&Q7>gpIod~R{>@#@5x9zJK<vg zI0+@80NMa{gtNoRhsR-w%piFI3d-5xrN)R}H!WtK=Gp%dC5(a`Q0V4_vS-mj<((Z~ zbV*PucDY#zFVglY>EHLHv!gHeK~n)Ld!M8DB|Kfe%~123&Hz1Z(86nU7*G5chmyDe ziV7$pB7pJ=96hpxHv9rCR29%bLOXlKU<_13_M8x)6;P8E1Kz6G<&P?$P^%c!M5`2` zfY2zg;VK5~^>TJGQzc+33-n~gKt{{of8GzUkWmU110IgI0DLxRIM>0US|TsM=L|@F z0Bun8U!cRB7-2apz=y-7*UxOxz@Z0)@QM)9wSGki1AZ38ceG7Q72z5`i;i=J`ILzL z@iUO?SBBG-0cQuo+an4TsL<j(YStU%^TNkjEqg808>y-g-x;8P4UVwk|D8{W@U1Zi z!M)+jqy@nQ$p?5tsHp-6J304Q={v-B>66$P0IDx&YT(`IcZ~bZfmn11#rXd7<5s}y zBi9eim&zQc0Dk|2>$bs0PnLmDfMP5lcXRY&cvJ=zKxI^f0%-d$tD!`LBf9^jMSYUA zI8U?CWdY@}cRq6{5~y+<zzg4N+!Mudx;=&$zSp?cjRmyF-+404b-P66DA17$<$H}= z7$P4)QXt>)#h1!*-HcGW@+gZ4B};0OnC~`xQOyH19z*TA!!<qA9l$G~6DRxiCy7Vo zOl^oK!S3XbayWz&p33NSw$lxR1fm)O*rCE0^ZNmk0wnax!!?%g599+O37!666~F(y z5fq?5T*Fm{^%YR^PiM%z#%x`fAC+;C&`X5JXN_40SieIEXoaUU=*}=c0OC7@a*rFE z3xr3yyFB~zRl(lNY&B@$Fia%81M!xeIuTYNz!Dz6eBKONjL<@dJdT$H?ShKl6$p=F ze!fdgzelJI&n`Hk9f}>BJ%9s0V3F?CAJ{hTd#*tf+ur-W9MOURF-@B77_-OshsY}6 zOXRY=5%C^*26z?l)1=$bz30!so5tfABdSYzO+H=CpV~aaUefmjvfZ3Ttu9W&W3Iu6 zROlh0MFA5h;my}8lB0tAV-Rvc2Zs_CCSJnx@d`<ao$!3dCkTn3@aF0ny6VrToO6qA z-~&2=w&2nT&o5u>**$idgy-iMob4dJWWw|21b4NB=LfsYp0Aeh{Ov)yztQi;eL4y5 zMi>8^SzKqk8~k?UiQK^^-5d8c%bV?$F8%X~czyiaKCI2=UH<v&YL5FIcieFm_zQ2O VHuiSbmk|H}002ovPDHLkV1f%e^4kCa literal 0 HcmV?d00001 diff --git a/apps/web/static/robots.txt b/apps/web/static/robots.txt new file mode 100644 index 0000000..e9e57dc --- /dev/null +++ b/apps/web/static/robots.txt @@ -0,0 +1,3 @@ +# https://www.robotstxt.org/robotstxt.html +User-agent: * +Disallow: diff --git a/apps/web/svelte.config.js b/apps/web/svelte.config.js new file mode 100644 index 0000000..24380de --- /dev/null +++ b/apps/web/svelte.config.js @@ -0,0 +1,25 @@ +import adapter from "@sveltejs/adapter-cloudflare" +import { vitePreprocess } from "@sveltejs/vite-plugin-svelte" + +/** @type {import('@sveltejs/kit').Config} */ +const config = { + // Consult https://kit.svelte.dev/docs/integrations#preprocessors + // for more information about preprocessors + preprocess: vitePreprocess(), + + kit: { + // adapter-auto (Vercel) becomes adapter-cloudflare: the build emits the + // Worker (.svelte-kit/cloudflare/_worker.js) with the static output beside + // it, and the committed wrangler.jsonc deploys both as Workers Static + // Assets. `platformProxy` points `vite dev` at the same config, so the + // dev server reads the vars and secrets (.env) the Worker does. + adapter: adapter({ platformProxy: { configPath: "wrangler.jsonc" } }), + alias: { + $components: "src/components", + $lib: "src/components", + $routes: "src/routes", + }, + }, +} + +export default config diff --git a/apps/web/tsconfig.json b/apps/web/tsconfig.json new file mode 100644 index 0000000..794b95b --- /dev/null +++ b/apps/web/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "./.svelte-kit/tsconfig.json", + "compilerOptions": { + "allowJs": true, + "checkJs": true, + "esModuleInterop": true, + "forceConsistentCasingInFileNames": true, + "resolveJsonModule": true, + "skipLibCheck": true, + "sourceMap": true, + "strict": true + } + // Path aliases are handled by https://kit.svelte.dev/docs/configuration#alias + // + // If you want to overwrite includes/excludes, make sure to copy over the relevant includes/excludes + // from the referenced tsconfig.json - TypeScript does not merge them in +} diff --git a/apps/web/turbo.json b/apps/web/turbo.json new file mode 100644 index 0000000..b9e98d4 --- /dev/null +++ b/apps/web/turbo.json @@ -0,0 +1,13 @@ +{ + "$schema": "https://turbo.build/schema.json", + "extends": ["//"], + "tasks": { + "build": { + "dependsOn": ["^build"], + "outputs": [".svelte-kit/**"] + }, + "test": { + "outputs": [] + } + } +} diff --git a/apps/web/vite.config.ts b/apps/web/vite.config.ts new file mode 100644 index 0000000..39ecef9 --- /dev/null +++ b/apps/web/vite.config.ts @@ -0,0 +1,13 @@ +import { sveltekit } from "@sveltejs/kit/vite" +import { defineConfig } from "vitest/config" + +export default defineConfig({ + server: { + port: 3000, + }, + plugins: [sveltekit()], + test: { + include: ["src/**/*.test.ts"], + environment: "node", + }, +}) diff --git a/apps/web/wrangler.jsonc b/apps/web/wrangler.jsonc new file mode 100644 index 0000000..3f753ba --- /dev/null +++ b/apps/web/wrangler.jsonc @@ -0,0 +1,21 @@ +// The Worker's config, committed as written: the adapter's Worker entry and +// the ASSETS binding over the adapter's output. There is nothing to render — +// no database, no namespace, no bucket: sessions are Auth.js's encrypted JWT +// cookies. The Worker's secrets (AUTH_SECRET and the sign-in providers' keys) +// are not here: the deploy lane hands them to the Worker as Worker secrets +// (tooling/wire/worker-secrets.mjs), and `vite dev` / `wrangler dev` read +// them from .env. The workers-assets composition deploys one +// environment per job with no wrangler `--env`, naming the Worker +// sveltekit-auth-web-<env> itself. +{ + "$schema": "node_modules/wrangler/config-schema.json", + "name": "sveltekit-auth-web", + "main": ".svelte-kit/cloudflare/_worker.js", + "compatibility_date": "2026-10-01", + "compatibility_flags": ["nodejs_compat"], + "assets": { + "directory": ".svelte-kit/cloudflare", + "binding": "ASSETS" + }, + "observability": { "enabled": true } +} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 556857a..9f2ff43 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -4,6 +4,9 @@ settings: autoInstallPeers: true excludeLinksFromLockfile: false +overrides: + cookie@0: 0.7.0 + importers: .: @@ -24,6 +27,49 @@ importers: specifier: ^5.8.3 version: 5.9.3 + apps/web: + dependencies: + '@auth/sveltekit': + specifier: 1.11.3 + version: 1.11.3(@sveltejs/kit@2.60.1(@sveltejs/vite-plugin-svelte@5.1.1(svelte@5.55.7(@typescript-eslint/types@8.72.1))(vite@6.4.2(@types/node@22.20.5)))(svelte@5.55.7(@typescript-eslint/types@8.72.1))(typescript@5.9.3)(vite@6.4.2(@types/node@22.20.5)))(svelte@5.55.7(@typescript-eslint/types@8.72.1)) + devDependencies: + '@sveltejs/adapter-cloudflare': + specifier: 7.2.9 + version: 7.2.9(@sveltejs/kit@2.60.1(@sveltejs/vite-plugin-svelte@5.1.1(svelte@5.55.7(@typescript-eslint/types@8.72.1))(vite@6.4.2(@types/node@22.20.5)))(svelte@5.55.7(@typescript-eslint/types@8.72.1))(typescript@5.9.3)(vite@6.4.2(@types/node@22.20.5)))(wrangler@4.155.0(@types/node@22.20.5)) + '@sveltejs/kit': + specifier: 2.60.1 + version: 2.60.1(@sveltejs/vite-plugin-svelte@5.1.1(svelte@5.55.7(@typescript-eslint/types@8.72.1))(vite@6.4.2(@types/node@22.20.5)))(svelte@5.55.7(@typescript-eslint/types@8.72.1))(typescript@5.9.3)(vite@6.4.2(@types/node@22.20.5)) + '@sveltejs/vite-plugin-svelte': + specifier: 5.1.1 + version: 5.1.1(svelte@5.55.7(@typescript-eslint/types@8.72.1))(vite@6.4.2(@types/node@22.20.5)) + '@types/node': + specifier: ^22.20.5 + version: 22.20.5 + prettier: + specifier: ^3.6.2 + version: 3.9.10 + prettier-plugin-svelte: + specifier: ^3.4.0 + version: 3.5.2(prettier@3.9.10)(svelte@5.55.7(@typescript-eslint/types@8.72.1)) + svelte: + specifier: 5.55.7 + version: 5.55.7(@typescript-eslint/types@8.72.1) + svelte-check: + specifier: ^4.3.1 + version: 4.7.7(picomatch@4.0.7)(svelte@5.55.7(@typescript-eslint/types@8.72.1))(typescript@5.9.3) + typescript: + specifier: ^5.8.3 + version: 5.9.3 + vite: + specifier: 6.4.2 + version: 6.4.2(@types/node@22.20.5) + vitest: + specifier: ^3.2.4 + version: 3.2.7(@types/node@22.20.5) + wrangler: + specifier: ^4.151.0 + version: 4.155.0(@types/node@22.20.5) + tooling/eslint: devDependencies: '@typescript-eslint/eslint-plugin': @@ -40,6 +86,401 @@ importers: packages: + '@auth/core@0.41.3': + resolution: {integrity: sha512-sJ3JMHHkXMD3aOjopv7mOBTO1Ocw4b0fAEXJBz6k7YHLpYQI6C40jCUPc5fNvUKxXRXNE1/sRISA15UrwWJBTw==} + peerDependencies: + '@simplewebauthn/browser': ^9.0.1 + '@simplewebauthn/server': ^9.0.2 + nodemailer: ^7.0.7 || ^8.0.5 + peerDependenciesMeta: + '@simplewebauthn/browser': + optional: true + '@simplewebauthn/server': + optional: true + nodemailer: + optional: true + + '@auth/sveltekit@1.11.3': + resolution: {integrity: sha512-nfI/CFHD9hpJG4W+u+xtMrw9XSrA1k6kbgbGc9PvbiEf67oPMuzLAvLDj6/3yd98kFz+51Rq04JLBckKp8T5Kg==} + peerDependencies: + '@simplewebauthn/browser': ^9.0.1 + '@simplewebauthn/server': ^9.0.3 + '@sveltejs/kit': ^1.0.0 || ^2.0.0 + nodemailer: ^7.0.7 || ^8.0.5 + svelte: ^3.54.0 || ^4.0.0 || ^5.0.0-0 + peerDependenciesMeta: + '@simplewebauthn/browser': + optional: true + '@simplewebauthn/server': + optional: true + nodemailer: + optional: true + + '@cloudflare/kv-asset-handler@0.5.0': + resolution: {integrity: sha512-jxQYkj8dSIzc0cD6cMMNdOc1UVjqSqu8BZdor5s8cGjW2I8BjODt/kWPVdY+u9zj3ms75Q5qaZgnxUad83+eAg==} + engines: {node: '>=22.0.0'} + + '@cloudflare/unenv-preset@2.16.2': + resolution: {integrity: sha512-JBP1+Z7ZSNG/d4mRP+y8VC5dka3tZVMLEZRvS+rzQ4DGV1EoxRFQckcJTTkXbHSQiTj0DtNI01Zwb/V2fX0mvQ==} + peerDependencies: + unenv: 2.0.0-rc.24 + workerd: '>1.20260305.0 <2.0.0-0' + peerDependenciesMeta: + workerd: + optional: true + + '@cloudflare/workerd-darwin-64@1.20261023.1': + resolution: {integrity: sha512-lsEx0i7nR0PNG/erUFFHmQmiidEhLfDE5uQmAL9421/y4/ycuxDDOSaxu3VGGYFFPK5sduyUeMmjIlX4CwOBFg==} + engines: {node: '>=16'} + cpu: [x64] + os: [darwin] + + '@cloudflare/workerd-darwin-arm64@1.20261023.1': + resolution: {integrity: sha512-5e79fHgabdDD8EgmjOhJ1S+xMsf6DbC7fL7IgTBizMnzOp0P2isDn7pYmUxI9AJZE9FVQ4RUilH/I36YNg+GQQ==} + engines: {node: '>=16'} + cpu: [arm64] + os: [darwin] + + '@cloudflare/workerd-linux-64@1.20261023.1': + resolution: {integrity: sha512-VHQ6jKFSihjR2+x1buby8XTdBLLJztVnYiB7OLOTYO8aDXB+c1Rd2410PdgFuFYc4AgFEk6PCJLyCLL5L1KBnw==} + engines: {node: '>=16'} + cpu: [x64] + os: [linux] + + '@cloudflare/workerd-linux-arm64@1.20261023.1': + resolution: {integrity: sha512-ilpRHzfDN8YFRM5CLRKuFw40x/LJBS89yVdhdQmxehlVDuBqjKpJB++zPFbTgKRRFaNupgnXc8RHktXAIhgCmQ==} + engines: {node: '>=16'} + cpu: [arm64] + os: [linux] + + '@cloudflare/workerd-windows-64@1.20261023.1': + resolution: {integrity: sha512-279WLVjNsMycAwr0EZNiNEf0l2SY6NUtsN80NwZzbTHzakmiN+WSx4w38muxPm+PAU0oSPPAPXKVD+H6Hya8xw==} + engines: {node: '>=16'} + cpu: [x64] + os: [win32] + + '@cloudflare/workers-types@4.20260702.1': + resolution: {integrity: sha512-mOhf5TUEB1m2vPrxtqoIGfz0fUC9xyxRDx5gWHy5s+OCo6dcV+g7wI1R7gYCMFohhqF/2y2xeKVwMwCJjfn/WA==} + + '@cspotcode/source-map-support@0.8.1': + resolution: {integrity: sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==} + engines: {node: '>=12'} + + '@emnapi/runtime@1.11.3': + resolution: {integrity: sha512-Xz4Tpyki7XyrpbUK1jR1AhdAdaXyhhY4lZ3neLodmhpuWfy2PAQN5B46sAiU4liOXGLkHypn/qU+jvfWSCYYLA==} + + '@esbuild/aix-ppc64@0.25.12': + resolution: {integrity: sha512-Hhmwd6CInZ3dwpuGTF8fJG6yoWmsToE+vYgD4nytZVxcu1ulHpUQRAB1UJ8+N1Am3Mz4+xOByoQoSZf4D+CpkA==} + engines: {node: '>=18'} + cpu: [ppc64] + os: [aix] + + '@esbuild/aix-ppc64@0.28.2': + resolution: {integrity: sha512-XExcO+dvLKvVtNTibSTBej1NCAbaGhWn9Ww1ZPx80qsahhPFe/8jgWP0IchNe0F3HwkU7n8ejhH8bjonqht8mQ==} + engines: {node: '>=18'} + cpu: [ppc64] + os: [aix] + + '@esbuild/android-arm64@0.25.12': + resolution: {integrity: sha512-6AAmLG7zwD1Z159jCKPvAxZd4y/VTO0VkprYy+3N2FtJ8+BQWFXU+OxARIwA46c5tdD9SsKGZ/1ocqBS/gAKHg==} + engines: {node: '>=18'} + cpu: [arm64] + os: [android] + + '@esbuild/android-arm64@0.28.2': + resolution: {integrity: sha512-5YfKeeI8qWfBZIX+u2xZC3Zlb3Os/gLS2sbEKM+I4ZOcsWmHS2WLysCcQZDAFRslDUU5Oiq44gf6PYN1vGwG5A==} + engines: {node: '>=18'} + cpu: [arm64] + os: [android] + + '@esbuild/android-arm@0.25.12': + resolution: {integrity: sha512-VJ+sKvNA/GE7Ccacc9Cha7bpS8nyzVv0jdVgwNDaR4gDMC/2TTRc33Ip8qrNYUcpkOHUT5OZ0bUcNNVZQ9RLlg==} + engines: {node: '>=18'} + cpu: [arm] + os: [android] + + '@esbuild/android-arm@0.28.2': + resolution: {integrity: sha512-kXXoiPVVGQcnIYGOeaovwOURpniDBpSq4A03qkQ+BMQqtGG6HYap3xne9C1O1yo4TR3qxlCX5IqqmX6fFo2Lqg==} + engines: {node: '>=18'} + cpu: [arm] + os: [android] + + '@esbuild/android-x64@0.25.12': + resolution: {integrity: sha512-5jbb+2hhDHx5phYR2By8GTWEzn6I9UqR11Kwf22iKbNpYrsmRB18aX/9ivc5cabcUiAT/wM+YIZ6SG9QO6a8kg==} + engines: {node: '>=18'} + cpu: [x64] + os: [android] + + '@esbuild/android-x64@0.28.2': + resolution: {integrity: sha512-O387ite7SzUyCcy3JQX4P4bLtEA7bLLkx+esve5JHnyYfNTxcVpXZo9jhdB0lTKN44gztELTdU7nS8Nr16Fs1Q==} + engines: {node: '>=18'} + cpu: [x64] + os: [android] + + '@esbuild/darwin-arm64@0.25.12': + resolution: {integrity: sha512-N3zl+lxHCifgIlcMUP5016ESkeQjLj/959RxxNYIthIg+CQHInujFuXeWbWMgnTo4cp5XVHqFPmpyu9J65C1Yg==} + engines: {node: '>=18'} + cpu: [arm64] + os: [darwin] + + '@esbuild/darwin-arm64@0.28.2': + resolution: {integrity: sha512-n4KqkOQrraxHJcgjM1RvwbigfQKIKJVpM7xp+KsxiyUSrRdIXnt73VhrPAx0fV44hgfmIVKjxMN9J1t5jySVkw==} + engines: {node: '>=18'} + cpu: [arm64] + os: [darwin] + + '@esbuild/darwin-x64@0.25.12': + resolution: {integrity: sha512-HQ9ka4Kx21qHXwtlTUVbKJOAnmG1ipXhdWTmNXiPzPfWKpXqASVcWdnf2bnL73wgjNrFXAa3yYvBSd9pzfEIpA==} + engines: {node: '>=18'} + cpu: [x64] + os: [darwin] + + '@esbuild/darwin-x64@0.28.2': + resolution: {integrity: sha512-uq6suIWYP37qzGddBKPw5QEQPi6HiLGsO7UmkpfyaYNQ3D+rN6w6WfwH+nuqcGXWvawGwxOEroO4YGnFh95azw==} + engines: {node: '>=18'} + cpu: [x64] + os: [darwin] + + '@esbuild/freebsd-arm64@0.25.12': + resolution: {integrity: sha512-gA0Bx759+7Jve03K1S0vkOu5Lg/85dou3EseOGUes8flVOGxbhDDh/iZaoek11Y8mtyKPGF3vP8XhnkDEAmzeg==} + engines: {node: '>=18'} + cpu: [arm64] + os: [freebsd] + + '@esbuild/freebsd-arm64@0.28.2': + resolution: {integrity: sha512-n+I0BTSRIoy+d6RPKnEVwql5UwBJolytvY4mAOIEJorKlqgPII8ix6slVVrfZ5Tnj7glIZvloylbB/EJPMWEXw==} + engines: {node: '>=18'} + cpu: [arm64] + os: [freebsd] + + '@esbuild/freebsd-x64@0.25.12': + resolution: {integrity: sha512-TGbO26Yw2xsHzxtbVFGEXBFH0FRAP7gtcPE7P5yP7wGy7cXK2oO7RyOhL5NLiqTlBh47XhmIUXuGciXEqYFfBQ==} + engines: {node: '>=18'} + cpu: [x64] + os: [freebsd] + + '@esbuild/freebsd-x64@0.28.2': + resolution: {integrity: sha512-78XJTJkvPs0kz2w61301PJjXl4g7q3JqiYMZ/M/yVI73EHBrCRTgkhu9oqG7vPqq+a/yadEW8aD+agKlk5xrmg==} + engines: {node: '>=18'} + cpu: [x64] + os: [freebsd] + + '@esbuild/linux-arm64@0.25.12': + resolution: {integrity: sha512-8bwX7a8FghIgrupcxb4aUmYDLp8pX06rGh5HqDT7bB+8Rdells6mHvrFHHW2JAOPZUbnjUpKTLg6ECyzvas2AQ==} + engines: {node: '>=18'} + cpu: [arm64] + os: [linux] + + '@esbuild/linux-arm64@0.28.2': + resolution: {integrity: sha512-pW4AC0P3it8c7do9MVM4p51FzHzdM/TZrerurgRcHJ2WTa1VQ1CIq18xncfpBJw4ojkiZZrKW2yIBWBP92j6Ug==} + engines: {node: '>=18'} + cpu: [arm64] + os: [linux] + + '@esbuild/linux-arm@0.25.12': + resolution: {integrity: sha512-lPDGyC1JPDou8kGcywY0YILzWlhhnRjdof3UlcoqYmS9El818LLfJJc3PXXgZHrHCAKs/Z2SeZtDJr5MrkxtOw==} + engines: {node: '>=18'} + cpu: [arm] + os: [linux] + + '@esbuild/linux-arm@0.28.2': + resolution: {integrity: sha512-XlDnu2q5yoqems+xay6wSAcg9DDD7K9RLKZEBOMZm3ckNpJBvOX20tSfby8KfrrhINDyv9V2YVZKY/SpoGJI8w==} + engines: {node: '>=18'} + cpu: [arm] + os: [linux] + + '@esbuild/linux-ia32@0.25.12': + resolution: {integrity: sha512-0y9KrdVnbMM2/vG8KfU0byhUN+EFCny9+8g202gYqSSVMonbsCfLjUO+rCci7pM0WBEtz+oK/PIwHkzxkyharA==} + engines: {node: '>=18'} + cpu: [ia32] + os: [linux] + + '@esbuild/linux-ia32@0.28.2': + resolution: {integrity: sha512-CYbnj78HsIeA+DhgUKgFCfvNsTHFhMMrinUrMZpDXJXKN8T3XViTZ/+wtHeVxEWY8ewSzTFN+nRmSwO2tZaLUQ==} + engines: {node: '>=18'} + cpu: [ia32] + os: [linux] + + '@esbuild/linux-loong64@0.25.12': + resolution: {integrity: sha512-h///Lr5a9rib/v1GGqXVGzjL4TMvVTv+s1DPoxQdz7l/AYv6LDSxdIwzxkrPW438oUXiDtwM10o9PmwS/6Z0Ng==} + engines: {node: '>=18'} + cpu: [loong64] + os: [linux] + + '@esbuild/linux-loong64@0.28.2': + resolution: {integrity: sha512-buwkd8nsph4R+ajRvw0qM5Hja/TXQow3ptzWO2EbG/cqcIkHloRrdlBtQlshyYGTNFvfkfJ5tpPLVkY4DtsPfQ==} + engines: {node: '>=18'} + cpu: [loong64] + os: [linux] + + '@esbuild/linux-mips64el@0.25.12': + resolution: {integrity: sha512-iyRrM1Pzy9GFMDLsXn1iHUm18nhKnNMWscjmp4+hpafcZjrr2WbT//d20xaGljXDBYHqRcl8HnxbX6uaA/eGVw==} + engines: {node: '>=18'} + cpu: [mips64el] + os: [linux] + + '@esbuild/linux-mips64el@0.28.2': + resolution: {integrity: sha512-ZVykbDyk7519VwiNb9Lcj9m8XM6v5V9uKPvrEMkkEedVewf+0itkhahp4HDpgERXhwLRpWFypsGbG/J8s0QjJA==} + engines: {node: '>=18'} + cpu: [mips64el] + os: [linux] + + '@esbuild/linux-ppc64@0.25.12': + resolution: {integrity: sha512-9meM/lRXxMi5PSUqEXRCtVjEZBGwB7P/D4yT8UG/mwIdze2aV4Vo6U5gD3+RsoHXKkHCfSxZKzmDssVlRj1QQA==} + engines: {node: '>=18'} + cpu: [ppc64] + os: [linux] + + '@esbuild/linux-ppc64@0.28.2': + resolution: {integrity: sha512-CAXl+Dtd9UUuJd8pKKdwh6MLm3MUMiqMPmhZ3tTSXPqfyQ3vDl6R5hZdZ/kYojK4ofXtdfSv1tFq8XzWx3heNQ==} + engines: {node: '>=18'} + cpu: [ppc64] + os: [linux] + + '@esbuild/linux-riscv64@0.25.12': + resolution: {integrity: sha512-Zr7KR4hgKUpWAwb1f3o5ygT04MzqVrGEGXGLnj15YQDJErYu/BGg+wmFlIDOdJp0PmB0lLvxFIOXZgFRrdjR0w==} + engines: {node: '>=18'} + cpu: [riscv64] + os: [linux] + + '@esbuild/linux-riscv64@0.28.2': + resolution: {integrity: sha512-GeXCej4IQtU1B+QlDV8W/RRvbzI3O/Stss+/bCXv4lZls5WGRtu2a+3JkA3i4qIUlMXpcHebWpF8AkJhATowuA==} + engines: {node: '>=18'} + cpu: [riscv64] + os: [linux] + + '@esbuild/linux-s390x@0.25.12': + resolution: {integrity: sha512-MsKncOcgTNvdtiISc/jZs/Zf8d0cl/t3gYWX8J9ubBnVOwlk65UIEEvgBORTiljloIWnBzLs4qhzPkJcitIzIg==} + engines: {node: '>=18'} + cpu: [s390x] + os: [linux] + + '@esbuild/linux-s390x@0.28.2': + resolution: {integrity: sha512-3H1weTYZPxt/WOhByszQZybS9w5lKzUn1FDMsgEChbHWQwHYQQRfBxgCcZvPhjHfKyJjIievvMmEUawJrdY9Dg==} + engines: {node: '>=18'} + cpu: [s390x] + os: [linux] + + '@esbuild/linux-x64@0.25.12': + resolution: {integrity: sha512-uqZMTLr/zR/ed4jIGnwSLkaHmPjOjJvnm6TVVitAa08SLS9Z0VM8wIRx7gWbJB5/J54YuIMInDquWyYvQLZkgw==} + engines: {node: '>=18'} + cpu: [x64] + os: [linux] + + '@esbuild/linux-x64@0.28.2': + resolution: {integrity: sha512-4xTZr1FUmSoQW4XIWmit3tzQrUTZM+N3P0XV8xROKYF50XfI7xeO90+1bZvNwxIufQ9hDQVRJH5YhgPVF8A/HQ==} + engines: {node: '>=18'} + cpu: [x64] + os: [linux] + + '@esbuild/netbsd-arm64@0.25.12': + resolution: {integrity: sha512-xXwcTq4GhRM7J9A8Gv5boanHhRa/Q9KLVmcyXHCTaM4wKfIpWkdXiMog/KsnxzJ0A1+nD+zoecuzqPmCRyBGjg==} + engines: {node: '>=18'} + cpu: [arm64] + os: [netbsd] + + '@esbuild/netbsd-arm64@0.28.2': + resolution: {integrity: sha512-sSATRjPeDBg3pdgHoQfoYBob11Kk1FGa9lui5RIHZCoCkJa9QKlvl3/vKz2usCmYYjs7ymJR/2Nnsqe+Hjt5nw==} + engines: {node: '>=18'} + cpu: [arm64] + os: [netbsd] + + '@esbuild/netbsd-x64@0.25.12': + resolution: {integrity: sha512-Ld5pTlzPy3YwGec4OuHh1aCVCRvOXdH8DgRjfDy/oumVovmuSzWfnSJg+VtakB9Cm0gxNO9BzWkj6mtO1FMXkQ==} + engines: {node: '>=18'} + cpu: [x64] + os: [netbsd] + + '@esbuild/netbsd-x64@0.28.2': + resolution: {integrity: sha512-lqnzCV+mM0gIADaKihiCg6ifgfU2L3h5E33rNQBN1Y4MaVGnzryzmvvf7UHxprpQdE8hpqLolJ9Rl+SkIRDpyw==} + engines: {node: '>=18'} + cpu: [x64] + os: [netbsd] + + '@esbuild/openbsd-arm64@0.25.12': + resolution: {integrity: sha512-fF96T6KsBo/pkQI950FARU9apGNTSlZGsv1jZBAlcLL1MLjLNIWPBkj5NlSz8aAzYKg+eNqknrUJ24QBybeR5A==} + engines: {node: '>=18'} + cpu: [arm64] + os: [openbsd] + + '@esbuild/openbsd-arm64@0.28.2': + resolution: {integrity: sha512-AL2qJILH7lNjrDmCQDvdxMfAUIv8KMNZOvrwAQ8i8//ntL9FflhOyMJ8OZSMBb8/AWXe3/5v5S20y3zCoZWKoQ==} + engines: {node: '>=18'} + cpu: [arm64] + os: [openbsd] + + '@esbuild/openbsd-x64@0.25.12': + resolution: {integrity: sha512-MZyXUkZHjQxUvzK7rN8DJ3SRmrVrke8ZyRusHlP+kuwqTcfWLyqMOE3sScPPyeIXN/mDJIfGXvcMqCgYKekoQw==} + engines: {node: '>=18'} + cpu: [x64] + os: [openbsd] + + '@esbuild/openbsd-x64@0.28.2': + resolution: {integrity: sha512-QtiuPytchRyC4rwUKhexJdQKvDuZ6hWloi3igqPQNUJCS1/v9EiO3UTOXR6A3FoMo4fnAKbWJdqaIwhOzh8qEw==} + engines: {node: '>=18'} + cpu: [x64] + os: [openbsd] + + '@esbuild/openharmony-arm64@0.25.12': + resolution: {integrity: sha512-rm0YWsqUSRrjncSXGA7Zv78Nbnw4XL6/dzr20cyrQf7ZmRcsovpcRBdhD43Nuk3y7XIoW2OxMVvwuRvk9XdASg==} + engines: {node: '>=18'} + cpu: [arm64] + os: [openharmony] + + '@esbuild/openharmony-arm64@0.28.2': + resolution: {integrity: sha512-WkhYDmpTjLvGlScA1rwjRUmhl4k8oXR3cIbtqWmELgU/dFeHHlEllxDvdWcNJV9rbzCexB5vz8gtNewWLgCT7Q==} + engines: {node: '>=18'} + cpu: [arm64] + os: [openharmony] + + '@esbuild/sunos-x64@0.25.12': + resolution: {integrity: sha512-3wGSCDyuTHQUzt0nV7bocDy72r2lI33QL3gkDNGkod22EsYl04sMf0qLb8luNKTOmgF/eDEDP5BFNwoBKH441w==} + engines: {node: '>=18'} + cpu: [x64] + os: [sunos] + + '@esbuild/sunos-x64@0.28.2': + resolution: {integrity: sha512-GPMSkTOtMnv2U2F8gxe4Io6qmVs+YKyp832Etqqxr0hFngmXQ3rzwytelm3GIn7T4VviRUlf3sOgBOiTdvaf7g==} + engines: {node: '>=18'} + cpu: [x64] + os: [sunos] + + '@esbuild/win32-arm64@0.25.12': + resolution: {integrity: sha512-rMmLrur64A7+DKlnSuwqUdRKyd3UE7oPJZmnljqEptesKM8wx9J8gx5u0+9Pq0fQQW8vqeKebwNXdfOyP+8Bsg==} + engines: {node: '>=18'} + cpu: [arm64] + os: [win32] + + '@esbuild/win32-arm64@0.28.2': + resolution: {integrity: sha512-PIhhEkE9uPBleRBrQEJpUn7MBnibZzbGzYWPmY3x+YoVg/95zbjB4CxPPOQ8l5tYYM4mMaCthF8/1DIfBQQyWQ==} + engines: {node: '>=18'} + cpu: [arm64] + os: [win32] + + '@esbuild/win32-ia32@0.25.12': + resolution: {integrity: sha512-HkqnmmBoCbCwxUKKNPBixiWDGCpQGVsrQfJoVGYLPT41XWF8lHuE5N6WhVia2n4o5QK5M4tYr21827fNhi4byQ==} + engines: {node: '>=18'} + cpu: [ia32] + os: [win32] + + '@esbuild/win32-ia32@0.28.2': + resolution: {integrity: sha512-YmJbfTlvU7Sdn9BB+4PRES4oB6pxgS37MAONj+hBr/cpXS1aBPKXxNnDbu+QCWPj0o9dgyxeq79g6c5P8KeuYA==} + engines: {node: '>=18'} + cpu: [ia32] + os: [win32] + + '@esbuild/win32-x64@0.25.12': + resolution: {integrity: sha512-alJC0uCZpTFrSL0CCDjcgleBXPnCrEAhTBILpeAp7M/OFgoqtAetfBzX0xM00MUsVVPpVjlPuMbREqnZCXaTnA==} + engines: {node: '>=18'} + cpu: [x64] + os: [win32] + + '@esbuild/win32-x64@0.28.2': + resolution: {integrity: sha512-5ebpxr3nWMzrL/rnUI755Jkuee0bHL/Gq0WTF9lvcpv73wAp5eu8MfBUgWK9bhWvZjj7yX8etf/8tI8Ney695g==} + engines: {node: '>=18'} + cpu: [x64] + os: [win32] + '@eslint-community/eslint-utils@4.10.1': resolution: {integrity: sha512-cuadcxVFE8sDK6iWJbs8Sn0av2Nrh2QSGQhVlBW9AaAHqHwjWsZHT8LJ4hFGPh7ASBV2deFdM7H/DPjulmh8rg==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} @@ -98,72 +539,454 @@ packages: resolution: {integrity: sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==} engines: {node: '>=18.18'} - '@turbo/darwin-64@2.11.10': - resolution: {integrity: sha512-By4idRap5+nLnMuRzLB4qkOPRlvNdyY1ne4VJYDyUoUB11H94k7uif9mbe3JT8JSNXs1D68uMcBj6hJ/jMQRvA==} + '@img/colour@1.1.0': + resolution: {integrity: sha512-Td76q7j57o/tLVdgS746cYARfSyxk8iEfRxewL9h4OMzYhbW4TAcppl0mT4eyqXddh6L/jwoM75mo7ixa/pCeQ==} + engines: {node: '>=18'} + + '@img/sharp-darwin-arm64@0.35.5': + resolution: {integrity: sha512-QRUlFQ0WxvdWyqqG/WtI3iupfD5rBzmCHXSdPsY91sAtVtTo7Q4cb6zOccZ3gqEqkr0f1As1ehLqmEpDsRf+lg==} + engines: {node: '>=20.9.0'} + cpu: [arm64] + os: [darwin] + + '@img/sharp-darwin-x64@0.35.5': + resolution: {integrity: sha512-+BR255RhDlpygUpOc/Jdt1nT6DQ3XG/ERo5wbcdOf5Q320dKtPCKPLR1LJs9VGXRaMa8l1uUa0tkCNOXiAxZUw==} + engines: {node: '>=20.9.0'} cpu: [x64] os: [darwin] - '@turbo/darwin-arm64@2.11.10': - resolution: {integrity: sha512-pyEYlVcuexOPa92p0Wlwl9YT1Is5D60lxN3ItWm3g30YLvFaUq86TF4BBWg5ZAc0uMTnrOzCvuCsOBTdzUWnRQ==} + '@img/sharp-freebsd-wasm32@0.35.5': + resolution: {integrity: sha512-Y/z91nEZ4uIBX5X3nfTovjU9lHNKFYbL2lpHCLVNmXQK03VIZvXBBt0KxbPGp2SdGSF+2mQU4e+hQaWOt86iAw==} + engines: {node: '>=20.9.0'} + os: [freebsd] + + '@img/sharp-libvips-darwin-arm64@1.3.4': + resolution: {integrity: sha512-5R89nBYiRdUlSWJxPhO+GVtaXzXSxKnRu/xqMn3KTA3L9EB9Oy/P+Nn2f2vlhPuUdy/Zusb2DarbyTpGCfEDuw==} cpu: [arm64] os: [darwin] - '@turbo/linux-64@2.11.10': - resolution: {integrity: sha512-1tYeR/IDZ5HEdsb0jNq2L2xam5nMQ+g80tlV2BZmv4OFw+pMcUM0mMmUcfc5wXPPNHVNPuDMjh9Y8G8HgXPLZA==} + '@img/sharp-libvips-darwin-x64@1.3.4': + resolution: {integrity: sha512-iR2OKH80yi0U+dUplyh3/xdpFvps6YkCwsXenIJxqxR1v9o+xtKTGbS9H7cps+2Vxjc8B1j96p75NmTGjIhtpQ==} cpu: [x64] - os: [android, linux] + os: [darwin] - '@turbo/linux-arm64@2.11.10': - resolution: {integrity: sha512-HuekQxvVGhUd46g1Im/DKdOtglHr4/gguZAvzEpPUgtxNkztSa8lWhQEGQ+EmPQ0n7w19qjThFU+OfEEd0uvlw==} + '@img/sharp-libvips-linux-arm64@1.3.4': + resolution: {integrity: sha512-Y3dgX/6lE2QhQb+Gxy0WZxfg9MEm/JBjamZpS2IklP7xIQoKN4hzAm7KcMVGtaVDt3neE9OKBC7vAfonA/Lr1A==} cpu: [arm64] - os: [android, linux] + os: [linux] + + '@img/sharp-libvips-linux-arm@1.3.4': + resolution: {integrity: sha512-LmRtTsOHuvM2+wlO2Db37dx5MiZhB0FvSunciw48YjdOkZz9KAiRbm8ujeMOA1INqmei5NapFxYEK1D1ZSidmw==} + cpu: [arm] + os: [linux] + + '@img/sharp-libvips-linux-ppc64@1.3.4': + resolution: {integrity: sha512-Le6boB8Tai0Nis+gIxIpKx68UDVVIqdR8Tin5Yf1z2LJJQLDJvCDRqRu+jC2qCoD+eIomonmOwB4smBRxfVpYQ==} + cpu: [ppc64] + os: [linux] + + '@img/sharp-libvips-linux-riscv64@1.3.4': + resolution: {integrity: sha512-aHkkIEHPRdQEegJN20MLmGtxYD9R2wQr3Cwpddnu5+YKMt6Uzax7S9h5gpZTo8wyrGuZSlfQ63OevL5mTyOC7Q==} + cpu: [riscv64] + os: [linux] + + '@img/sharp-libvips-linux-s390x@1.3.4': + resolution: {integrity: sha512-ra/mB6MikESDUO7Yg+Mi95bFBb9GsObURuhnOv3OqknjGe9sZrG8tCe9q0xSIGrtLgvgw0gKnFWcK4blSgQOuQ==} + cpu: [s390x] + os: [linux] + + '@img/sharp-libvips-linux-x64@1.3.4': + resolution: {integrity: sha512-GJ//SSXbnwSDes02umB3nDJLFcQzw8a18V8fyhqr6tV515tOEMdImjjxj1AoafMRz56F3PHgftnj1QEKSU1zkw==} + cpu: [x64] + os: [linux] - '@turbo/windows-64@2.11.10': - resolution: {integrity: sha512-UJOP3BkbreY3/JlMgJR6ZiimxYIBn+c+B4tnBIxD0E9c3Estmk+XoVNVBNBottZLNRXe3/ScgOU4+/k8tIWysg==} + '@img/sharp-libvips-linuxmusl-arm64@1.3.4': + resolution: {integrity: sha512-hvulFwtjUcagsis6BBxHwGFwWoNZjgYmULGVrZcyfNbjA8hKILbRxGg15/7w5HDyXHXUos/j6baAWqnCyQ2DWA==} + cpu: [arm64] + os: [linux] + + '@img/sharp-libvips-linuxmusl-x64@1.3.4': + resolution: {integrity: sha512-6zXKeE/p39I1AmA3cJG35eyBGNqNddLnUXjhwBnsGjFPWqf5VKkDBEqaEkPDoTEtkxwi2vv8Tcr2mDyP4So7Fg==} cpu: [x64] - os: [win32] + os: [linux] - '@turbo/windows-arm64@2.11.10': - resolution: {integrity: sha512-xOkEjF3ws/b/YNlc+bvJHMYBn+vL+QbEISZFVi0qS+ImmhA1X3/gmNmBrjjIG3dg6aeN+n6gQitzSkXQ286qJQ==} + '@img/sharp-linux-arm64@0.35.5': + resolution: {integrity: sha512-LYVx5JTsOM2CBzmxreh+nl64/3H6Xb09iSLknqH47z2T2DFFxDeFLP5y4dJwe6H7uGQlHPyEEtIqyo3DYsRwdQ==} + engines: {node: '>=20.9.0'} cpu: [arm64] - os: [win32] + os: [linux] + + '@img/sharp-linux-arm@0.35.5': + resolution: {integrity: sha512-LEaXK2WdXVK5ykcw0buWyPMsmLLL2vpHLD6yrNSW+JGEL3BZPA4tpKN6iaMc4AxTTAoaX/sU1rOL51lcIz48ZQ==} + engines: {node: '>=20.9.0'} + cpu: [arm] + os: [linux] + + '@img/sharp-linux-ppc64@0.35.5': + resolution: {integrity: sha512-QVxAAq8evVRI9ia2vqgwrmWucn5Dfv+JdWzj75pD8omHLPSP7f8p20O8jxzjCcuCEQEOtYOZUmX1hkiZ0kdevA==} + engines: {node: '>=20.9.0'} + cpu: [ppc64] + os: [linux] + + '@img/sharp-linux-riscv64@0.35.5': + resolution: {integrity: sha512-LtdreXguaavKODPIfzJ4kffx7UNt1omwtK0rch4EBbbSTXPnxWmYSayXdLJw0fJzQ97kHt1gL/yh4tvU+nCyRQ==} + engines: {node: '>=20.9.0'} + cpu: [riscv64] + os: [linux] + + '@img/sharp-linux-s390x@0.35.5': + resolution: {integrity: sha512-UZasTOFiYzotTsGOCu42BfUzP6Tu6Do/947iRm1RsLKvlllxwGcn4RN27LibGWceix4Y+Pmw3jsnTcCQIgWjqA==} + engines: {node: '>=20.9.0'} + cpu: [s390x] + os: [linux] + + '@img/sharp-linux-x64@0.35.5': + resolution: {integrity: sha512-SxFtLTeJInhAA9Q836kux2vZNeOBQEx658qvbboZScr0wIARym3IcGmW7KpVD5sbVg0Ojy+udFQdayYIZyoNog==} + engines: {node: '>=20.9.0'} + cpu: [x64] + os: [linux] - '@types/estree@1.0.9': - resolution: {integrity: sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==} + '@img/sharp-linuxmusl-arm64@0.35.5': + resolution: {integrity: sha512-9HbMclmI1zlNkFRs3z9/eBtDjfD0sGlrX1z6b1qwmiFY5ElDLh4BC0LPBdVp7z1DXFiKlIcznf+ZlsuZzLxQqg==} + engines: {node: '>=20.9.0'} + cpu: [arm64] + os: [linux] - '@types/json-schema@7.0.15': - resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==} + '@img/sharp-linuxmusl-x64@0.35.5': + resolution: {integrity: sha512-4KOphqB035HrVdqLZfCgMzzERrQkkzOwRhl4OAkRO1YCldbaFjySXMaK534Mo0V+LndnlJk+sbUyLeU0ULyD1A==} + engines: {node: '>=20.9.0'} + cpu: [x64] + os: [linux] - '@typescript-eslint/eslint-plugin@8.72.1': - resolution: {integrity: sha512-5CokTWXpmbylfFabsbvHC0CAw3XLaGnoa+nFJX5FR592h/LoZsENUE6p/rg5xvkKrFEXz6pYmgI29AgXc2N3BQ==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - peerDependencies: - '@typescript-eslint/parser': ^8.72.1 - eslint: ^8.57.0 || ^9.0.0 || ^10.0.0 - typescript: '>=4.8.4 <6.1.0' + '@img/sharp-wasm32@0.35.5': + resolution: {integrity: sha512-Ptsga1su4tQx+LLF1ECS9U6nz5kmrXKo6XVbtR48Ke3ZRxxgaWBu7IDtEe1quo8hiupwm6WFqxVlXaSf7IINGQ==} + engines: {node: '>=20.9.0'} - '@typescript-eslint/parser@8.72.1': - resolution: {integrity: sha512-ZGwZP4OCfyA0AQTpEAMWz+rtX01DRhQWW5hB0ucKDEIX5U7jdmPSaMx94rQfaPAQzIYz2BimOgKOJtjfpRFQ9g==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - peerDependencies: - eslint: ^8.57.0 || ^9.0.0 || ^10.0.0 - typescript: '>=4.8.4 <6.1.0' + '@img/sharp-webcontainers-wasm32@0.35.5': + resolution: {integrity: sha512-hfhF/FmoQyTUkA0bIKFOtw536BQSeBMe6BF6QyWlrPxT754+TFLaZ7sKKTfvvM0yJgKgaYTwnFCIZ/GuDw5SUA==} + engines: {node: '>=20.9.0'} + cpu: [wasm32] - '@typescript-eslint/project-service@8.72.1': - resolution: {integrity: sha512-fAuVMkwdO/huI8nyo/WKnNKf6Gag93S56Rh3Ts5mGcavwSdaN8tRg1gCeIGX8PF+nzp1BjGfO4gHhGzW1J6jTg==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - peerDependencies: - typescript: '>=4.8.4 <6.1.0' + '@img/sharp-win32-arm64@0.35.5': + resolution: {integrity: sha512-X4t7g+7ZA5DKblCBEXGjUqqemj4vczING/5viFwAL8h4N3qYeyjwdCvRLHi4EdOUI+2Z7UFlp1VM+p/AuEtm6Q==} + engines: {node: '>=20.9.0'} + cpu: [arm64] + os: [win32] - '@typescript-eslint/scope-manager@8.72.1': - resolution: {integrity: sha512-lC/t6eMCZZQAAKZEYGL6RDVSuFehpdmMT6h+nJIjIa6oylN/PwDgDVtEIbB7O9xFfZYtZAYLoLlDNWKJhtF+uQ==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + '@img/sharp-win32-ia32@0.35.5': + resolution: {integrity: sha512-5Zm82LoBc43nhwNybZlG7Y1KO//Zhsn306fQl29ZOuStHLGTo3BWL83q3cznX0poxSAMuYL1On/BHBxkBeKr6A==} + engines: {node: ^20.9.0} + cpu: [ia32] + os: [win32] - '@typescript-eslint/tsconfig-utils@8.72.1': - resolution: {integrity: sha512-e4D5R5vpeAEPBxT2BAzsFQL3sbwyeeeo5+aczgNSRK1V734jE7pTqaGFU+fXapWEQwnZbpFaTn32+Z8DwS6OTg==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - peerDependencies: - typescript: '>=4.8.4 <6.1.0' + '@img/sharp-win32-x64@0.35.5': + resolution: {integrity: sha512-x76eH0vEiHlcMQu8Y8IenntaACtddpT6W0wmXtWrnKcnKI7ME5DdgqhAD6SEWOEl1v2zDvkZDhFA9KnURwpfqg==} + engines: {node: '>=20.9.0'} + cpu: [x64] + os: [win32] + + '@jridgewell/gen-mapping@0.3.13': + resolution: {integrity: sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==} + + '@jridgewell/remapping@2.3.5': + resolution: {integrity: sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==} + + '@jridgewell/resolve-uri@3.1.2': + resolution: {integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==} + engines: {node: '>=6.0.0'} + + '@jridgewell/sourcemap-codec@1.6.0': + resolution: {integrity: sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==} + + '@jridgewell/trace-mapping@0.3.31': + resolution: {integrity: sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==} + + '@jridgewell/trace-mapping@0.3.9': + resolution: {integrity: sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==} + + '@napi-rs/lzma-linux-x64-gnu@1.5.1': + resolution: {integrity: sha512-oTXEIha4SsuXdTA4Iyskj0kpdx2yVXdhd75c2v3xGrHFfVMsbhTPZU/nMPL4sWKo4pBHm3aucLaqGlF696dTyQ==} + engines: {node: ^22.20 || ^24.12 || >=25} + cpu: [x64] + os: [linux] + + '@panva/hkdf@1.2.1': + resolution: {integrity: sha512-6oclG6Y3PiDFcoyk8srjLfVKyMfVCKJ27JwNPViuXziFpmdz+MZnZN/aKY0JGXgYuO/VghU0jcOAZgWXZ1Dmrw==} + + '@polka/url@1.0.0-next.29': + resolution: {integrity: sha512-wwQAWhWSuHaag8c4q/KN/vCoeOJYshAIvMQwD4GpSb3OiZklFfvAgmj0VCBBImRpuF/aFgIRzllXlVX93Jevww==} + + '@poppinss/colors@4.1.6': + resolution: {integrity: sha512-H9xkIdFswbS8n1d6vmRd8+c10t2Qe+rZITbbDHHkQixH5+2x1FDGmi/0K+WgWiqQFKPSlIYB7jlH6Kpfn6Fleg==} + + '@poppinss/dumper@0.6.5': + resolution: {integrity: sha512-NBdYIb90J7LfOI32dOewKI1r7wnkiH6m920puQ3qHUeZkxNkQiFnXVWoE6YtFSv6QOiPPf7ys6i+HWWecDz7sw==} + + '@poppinss/exception@1.2.3': + resolution: {integrity: sha512-dCED+QRChTVatE9ibtoaxc+WkdzOSjYTKi/+uacHWIsfodVfpsueo3+DKpgU5Px8qXjgmXkSvhXvSCz3fnP9lw==} + + '@rollup/rollup-android-arm-eabi@4.66.0': + resolution: {integrity: sha512-7y4XeoUHPecjfUDRmap8U0q6bjfLAPn7uOGT8BKyqy8uNDOjsGS8rlBhOx6sZLVwwjN6hapvGl2mW9/IS6UNww==} + cpu: [arm] + os: [android] + + '@rollup/rollup-android-arm64@4.66.0': + resolution: {integrity: sha512-e8WugYZXpgqrlMXLCudYVRAxAcK7AIY36JxRDwFRD38L9q62G1VsEUW6ijXxzjxYjNB8i1zo3B/ycIQ/qjLC/Q==} + cpu: [arm64] + os: [android] + + '@rollup/rollup-darwin-arm64@4.66.0': + resolution: {integrity: sha512-6vkDCfyDjNLokh+Rt1D2KtNgFFMEPdkWha/mbtP4cSjh9xiN8T/JBS/A7nDYKjmMAXHrvR9J3AzUk2LtFbIBLg==} + cpu: [arm64] + os: [darwin] + + '@rollup/rollup-darwin-x64@4.66.0': + resolution: {integrity: sha512-/mzZAX0+Q6eXxvkR0HB0RZCCrsbmFD8DpsvCQoMYABDfq/DjqkbfytuJ7GvZ4AhR/Mgis2fXbZrGqfbcK2Z5fA==} + cpu: [x64] + os: [darwin] + + '@rollup/rollup-freebsd-arm64@4.66.0': + resolution: {integrity: sha512-JQJx9E8tUjGqed1RevDmoHaS3V30ODdV8uyvGxlwd4K5se6bkPrMeltSybqAtpJ+ltDRfo7FORQaJG2Hd5nGog==} + cpu: [arm64] + os: [freebsd] + + '@rollup/rollup-freebsd-x64@4.66.0': + resolution: {integrity: sha512-GEaUQQjMaG7X1304qMgqLjzCKv6CdDirzJSS+UqUs3xhJ9X2Kjzu0JDbLoUU42FWxwmZqz+SsgU1SlQv9GNRVA==} + cpu: [x64] + os: [freebsd] + + '@rollup/rollup-linux-arm-gnueabihf@4.66.0': + resolution: {integrity: sha512-DgmAU9N0NhDQDzHgFUocDio7zRO8jR/nY/obDGvCR8zbJ6J77Fg6X49yPuExJUpYPbC82EOaRhG969pWzUSnHQ==} + cpu: [arm] + os: [linux] + + '@rollup/rollup-linux-arm-musleabihf@4.66.0': + resolution: {integrity: sha512-zG09YZ+sk/HoHq+P9gYB0EseQ3M20RbDuKGWey6fbiMDV1LxfXvhgSW9jDaCcvFPMgfLXpimzXY+UYvA8R2mLQ==} + cpu: [arm] + os: [linux] + + '@rollup/rollup-linux-arm64-gnu@4.66.0': + resolution: {integrity: sha512-vlArhgyXbcVc1D4WZPoiYuqJIaMiSHBj6etRXua0KlfjlZeuiQyVAPYi0/N49O4mSp3u1iGUBLEjNa8ec81XZg==} + cpu: [arm64] + os: [linux] + + '@rollup/rollup-linux-arm64-musl@4.66.0': + resolution: {integrity: sha512-RxJZtk0G87YPotDaRDvRqStV8cbqLSC5TroHvQHHKsqBg0ok64RxKgtXeFsa7FBcy7mb4crBrG3xK8USWIqWNA==} + cpu: [arm64] + os: [linux] + + '@rollup/rollup-linux-loong64-gnu@4.66.0': + resolution: {integrity: sha512-qlGcw959PrLLkZhiBxF3OZ6SQvj+OKY85mCqGNgSRs4LZlDJ6ICqmz6UdxtINdhcXYwNIbZoapQVBAmZlD2hUQ==} + cpu: [loong64] + os: [linux] + + '@rollup/rollup-linux-loong64-musl@4.66.0': + resolution: {integrity: sha512-TvTI/7Cy0WvRA1SXgwzu6bwXBnMpmeT/ln5q7WvSpqmXy1VbmEnY8HVIDQNBiaHJvoWqRr0M4FNo7qiqtyMaFw==} + cpu: [loong64] + os: [linux] + + '@rollup/rollup-linux-ppc64-gnu@4.66.0': + resolution: {integrity: sha512-UZEDkSoDRZ50NyLj70nO6mpIK3dvs2cPTTvQb1bA/PBDmr9fvn5KiESuGfh6srd7Zi6Lt9Sv2sVrFr1QoHLvPQ==} + cpu: [ppc64] + os: [linux] + + '@rollup/rollup-linux-ppc64-musl@4.66.0': + resolution: {integrity: sha512-VRbxTvagLh3HRcysx1CNq+HHcvJbSebNI6fCbk7jwmmWHkXjrSIV3igXBpRHUTFdg0pagWGu50xoSZXnrZHjVQ==} + cpu: [ppc64] + os: [linux] + + '@rollup/rollup-linux-riscv64-gnu@4.66.0': + resolution: {integrity: sha512-uWdJpvYqh0LE/i+YBL3sMX0a2kUkICENjmrPmyBmMOFc3jMrs6MSQH/pMD+VIpGEoUcr3XkHGLLfymzIqPSRRg==} + cpu: [riscv64] + os: [linux] + + '@rollup/rollup-linux-riscv64-musl@4.66.0': + resolution: {integrity: sha512-3FUd88pxgWAjK60OgCrika1AcNG+u8zaCdWjg4TlcZTDkt5TGyci8ZU64l3OJ9ax0MEjw3P80B/3PoSQDCLwJQ==} + cpu: [riscv64] + os: [linux] + + '@rollup/rollup-linux-s390x-gnu@4.66.0': + resolution: {integrity: sha512-qT2rMmgyej62g5AdwktK+Bt2lBu497pzWZe12TTQ5JmZjOYPnEwcPEAOSLTBxBV+6gIES75rXm219v/QkT397A==} + cpu: [s390x] + os: [linux] + + '@rollup/rollup-linux-x64-gnu@4.66.0': + resolution: {integrity: sha512-E46rnZgp7J84Qwe8RMlF+rgimnDo/9fuiGbUArGB0ZkMWf97O7yeSCfKls5x/YJOF0RcuSe9RctuKe1hlxICiA==} + cpu: [x64] + os: [linux] + + '@rollup/rollup-linux-x64-musl@4.66.0': + resolution: {integrity: sha512-Uz1HiZe+qBzqgdPsON+z0wRx3WdATuyzwvGT6cr2VZVrqqko0ZJVfkrQJtwDMuDcAfXYdo7XucaxJ7lTLjEcgg==} + cpu: [x64] + os: [linux] + + '@rollup/rollup-openbsd-x64@4.66.0': + resolution: {integrity: sha512-Ph7TX3Ex5qdfcb7Tc6eEPugVkRfJ501eTovO4T5029YObfpZ7dzn3RiwpFvGp50nk2QUhvBMZ0PFGlEj6pOYTg==} + cpu: [x64] + os: [openbsd] + + '@rollup/rollup-openharmony-arm64@4.66.0': + resolution: {integrity: sha512-nZYPEya7ZkeNxUEiF7qmNZbyLTyRN3MK5cO22KqsaoneUzXJuzBIQRw+7BEQy9LGj2O5vrCE9V3EpK06FYo1tQ==} + cpu: [arm64] + os: [openharmony] + + '@rollup/rollup-win32-arm64-msvc@4.66.0': + resolution: {integrity: sha512-u7aTfS3R6C4hRsqXSzaO6qLZYLVuMkHMvcWlux4IM8IJif1VCl2cgPBSo5gSNoFoStQypQP+qwq8W1IyFBf1QQ==} + cpu: [arm64] + os: [win32] + + '@rollup/rollup-win32-ia32-msvc@4.66.0': + resolution: {integrity: sha512-e+i9ueHrH1Bafb0cf0woAIVJbYcoC8vRaD+vz+Xi8w6jz9cYJSV3vyKO6ELGSZ6g4W4MJOm2WPLN4/nQf77h7w==} + cpu: [ia32] + os: [win32] + + '@rollup/rollup-win32-x64-gnu@4.66.0': + resolution: {integrity: sha512-KfTCbrtr2zXTqH2E1F+uYlFTrYibxHKqPAHobpd8Kfg49cEHmuHebOidCTDRgqG1suaPFX7oejFQeGE71zWKfA==} + cpu: [x64] + os: [win32] + + '@rollup/rollup-win32-x64-msvc@4.66.0': + resolution: {integrity: sha512-xA+neBh1bqkqaS3b48T2UHZnDsTIpb9B0h+TdBzynjF/ymCpYndhfY10RqW0qSKB1HqqQA83mINVhAdwA+mETg==} + cpu: [x64] + os: [win32] + + '@sindresorhus/is@7.2.0': + resolution: {integrity: sha512-P1Cz1dWaFfR4IR+U13mqqiGsLFf1KbayybWwdd2vfctdV6hDpUkgCY0nKOLLTMSoRd/jJNjtbqzf13K8DCCXQw==} + engines: {node: '>=18'} + + '@speed-highlight/core@1.2.24': + resolution: {integrity: sha512-qeW2e1l78afw8VhRPfPQ1Gjj+KU5XFQ/OFV5ti6eTa9bruO7mJyZtA4vw0ofqmA3tKCkROE9xLk3VZoeRc98nw==} + + '@standard-schema/spec@1.1.0': + resolution: {integrity: sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==} + + '@sveltejs/acorn-typescript@1.0.13': + resolution: {integrity: sha512-wgKggnhZVL9Bfx1OaKKTrYY9BFRk6C8UAkQNUcIv1+llzYrIqy+RZm5HPKzn0NpEBvTVhTqB4kQyllZywsRBRQ==} + peerDependencies: + acorn: ^8.9.0 + + '@sveltejs/adapter-cloudflare@7.2.9': + resolution: {integrity: sha512-LEfLRYKZIiNYBPYk9Cu4dFCCIX37NO96jESNRDv7yr3vvblKU4Yh05FPUMRSrOWFKtG6bJcGIvdG/M2DSf4D1w==} + peerDependencies: + '@sveltejs/kit': ^2.0.0 + wrangler: ^4.0.0 + + '@sveltejs/kit@2.60.1': + resolution: {integrity: sha512-mQjlkNo+rJvpln7V2IGY2j99BqhcFbS4UN0AQNKNYfhBAFZTuCDAdW3a1sgf330mvtNvsBXn3HpAhcmvdJTcIQ==} + engines: {node: '>=18.13'} + hasBin: true + peerDependencies: + '@opentelemetry/api': ^1.0.0 + '@sveltejs/vite-plugin-svelte': ^3.0.0 || ^4.0.0-next.1 || ^5.0.0 || ^6.0.0-next.0 || ^7.0.0 + svelte: ^4.0.0 || ^5.0.0-next.0 + typescript: ^5.3.3 || ^6.0.0 + vite: ^5.0.3 || ^6.0.0 || ^7.0.0-beta.0 || ^8.0.0 + peerDependenciesMeta: + '@opentelemetry/api': + optional: true + typescript: + optional: true + + '@sveltejs/load-config@0.2.3': + resolution: {integrity: sha512-VT3qmUb8pRV2QrZjd8iAmtg8lf4W0TIjZbvXtz5MKei/q96teWZgGJyyidJzOjzZzvdq616eSRVeMYIQChUTAQ==} + engines: {node: '>= 18.0.0'} + + '@sveltejs/vite-plugin-svelte-inspector@4.0.1': + resolution: {integrity: sha512-J/Nmb2Q2y7mck2hyCX4ckVHcR5tu2J+MtBEQqpDrrgELZ2uvraQcK/ioCV61AqkdXFgriksOKIceDcQmqnGhVw==} + engines: {node: ^18.0.0 || ^20.0.0 || >=22} + peerDependencies: + '@sveltejs/vite-plugin-svelte': ^5.0.0 + svelte: ^5.0.0 + vite: ^6.0.0 + + '@sveltejs/vite-plugin-svelte@5.1.1': + resolution: {integrity: sha512-Y1Cs7hhTc+a5E9Va/xwKlAJoariQyHY+5zBgCZg4PFWNYQ1nMN9sjK1zhw1gK69DuqVP++sht/1GZg1aRwmAXQ==} + engines: {node: ^18.0.0 || ^20.0.0 || >=22} + peerDependencies: + svelte: ^5.0.0 + vite: ^6.0.0 + + '@turbo/darwin-64@2.11.10': + resolution: {integrity: sha512-By4idRap5+nLnMuRzLB4qkOPRlvNdyY1ne4VJYDyUoUB11H94k7uif9mbe3JT8JSNXs1D68uMcBj6hJ/jMQRvA==} + cpu: [x64] + os: [darwin] + + '@turbo/darwin-arm64@2.11.10': + resolution: {integrity: sha512-pyEYlVcuexOPa92p0Wlwl9YT1Is5D60lxN3ItWm3g30YLvFaUq86TF4BBWg5ZAc0uMTnrOzCvuCsOBTdzUWnRQ==} + cpu: [arm64] + os: [darwin] + + '@turbo/linux-64@2.11.10': + resolution: {integrity: sha512-1tYeR/IDZ5HEdsb0jNq2L2xam5nMQ+g80tlV2BZmv4OFw+pMcUM0mMmUcfc5wXPPNHVNPuDMjh9Y8G8HgXPLZA==} + cpu: [x64] + os: [android, linux] + + '@turbo/linux-arm64@2.11.10': + resolution: {integrity: sha512-HuekQxvVGhUd46g1Im/DKdOtglHr4/gguZAvzEpPUgtxNkztSa8lWhQEGQ+EmPQ0n7w19qjThFU+OfEEd0uvlw==} + cpu: [arm64] + os: [android, linux] + + '@turbo/windows-64@2.11.10': + resolution: {integrity: sha512-UJOP3BkbreY3/JlMgJR6ZiimxYIBn+c+B4tnBIxD0E9c3Estmk+XoVNVBNBottZLNRXe3/ScgOU4+/k8tIWysg==} + cpu: [x64] + os: [win32] + + '@turbo/windows-arm64@2.11.10': + resolution: {integrity: sha512-xOkEjF3ws/b/YNlc+bvJHMYBn+vL+QbEISZFVi0qS+ImmhA1X3/gmNmBrjjIG3dg6aeN+n6gQitzSkXQ286qJQ==} + cpu: [arm64] + os: [win32] + + '@types/chai@5.2.3': + resolution: {integrity: sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA==} + + '@types/cookie@0.6.0': + resolution: {integrity: sha512-4Kh9a6B2bQciAhf7FSuMRRkUWecJgJu9nPnx3yzpsfXX/c50REIqpHY4C82bXP90qrLtXtkDxTZosYO3UpOwlA==} + + '@types/deep-eql@4.0.2': + resolution: {integrity: sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==} + + '@types/estree@1.0.9': + resolution: {integrity: sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==} + + '@types/json-schema@7.0.15': + resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==} + + '@types/node@22.20.5': + resolution: {integrity: sha512-U2+DNr+wSjpsTS/wZGYHq7GcwfuSmKiKvoPvK22zwTlRhU91yOniN4qRR5KhIjvif7ysw/dz/hKmfDH0Ris4aA==} + + '@types/trusted-types@2.0.7': + resolution: {integrity: sha512-ScaPdn1dQczgbl0QFTeTOmVHFULt394XJgOQNoyVhZ6r2vLnMLJfBPd53SB52T/3G36VI1/g2MZaX0cwDuXsfw==} + + '@typescript-eslint/eslint-plugin@8.72.1': + resolution: {integrity: sha512-5CokTWXpmbylfFabsbvHC0CAw3XLaGnoa+nFJX5FR592h/LoZsENUE6p/rg5xvkKrFEXz6pYmgI29AgXc2N3BQ==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + peerDependencies: + '@typescript-eslint/parser': ^8.72.1 + eslint: ^8.57.0 || ^9.0.0 || ^10.0.0 + typescript: '>=4.8.4 <6.1.0' + + '@typescript-eslint/parser@8.72.1': + resolution: {integrity: sha512-ZGwZP4OCfyA0AQTpEAMWz+rtX01DRhQWW5hB0ucKDEIX5U7jdmPSaMx94rQfaPAQzIYz2BimOgKOJtjfpRFQ9g==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + peerDependencies: + eslint: ^8.57.0 || ^9.0.0 || ^10.0.0 + typescript: '>=4.8.4 <6.1.0' + + '@typescript-eslint/project-service@8.72.1': + resolution: {integrity: sha512-fAuVMkwdO/huI8nyo/WKnNKf6Gag93S56Rh3Ts5mGcavwSdaN8tRg1gCeIGX8PF+nzp1BjGfO4gHhGzW1J6jTg==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + peerDependencies: + typescript: '>=4.8.4 <6.1.0' + + '@typescript-eslint/scope-manager@8.72.1': + resolution: {integrity: sha512-lC/t6eMCZZQAAKZEYGL6RDVSuFehpdmMT6h+nJIjIa6oylN/PwDgDVtEIbB7O9xFfZYtZAYLoLlDNWKJhtF+uQ==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + + '@typescript-eslint/tsconfig-utils@8.72.1': + resolution: {integrity: sha512-e4D5R5vpeAEPBxT2BAzsFQL3sbwyeeeo5+aczgNSRK1V734jE7pTqaGFU+fXapWEQwnZbpFaTn32+Z8DwS6OTg==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + peerDependencies: + typescript: '>=4.8.4 <6.1.0' '@typescript-eslint/type-utils@8.72.1': resolution: {integrity: sha512-iY2wlmyrXJmx4yxUGP3aYCFF3cA/6ShddOKmLU2dx7LnEykbAM8WThlxZEfd1NddqceF6eJmZUayxx9oKIYNlg==} @@ -193,6 +1016,35 @@ packages: resolution: {integrity: sha512-SB8xqipSzZHUePCCLNeYxqnxq83X61/qzNhjQGbTfjxGZIeOEP7tBgWYX05Tcd6CgE02WdTJnh5b8kMZJ/+bnQ==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + '@vitest/expect@3.2.7': + resolution: {integrity: sha512-E8eBXaKibuvH2pSZErOjdVb5vF4PbKYcrnluBTYxEk1l/VhhwZg1kZQsdtjq+CsF5CFydf2Rdkz7jDHKSisi3w==} + + '@vitest/mocker@3.2.7': + resolution: {integrity: sha512-Trr0hYO9CM3Wj6ksWHRhK9IZpIY6wTMO5u/MqXurMxT57sWBaOPEtP3Oq60ihZuh5JsiagKfz95OcxdEP6dBrA==} + peerDependencies: + msw: ^2.4.9 + vite: ^5.0.0 || ^6.0.0 || ^7.0.0-0 + peerDependenciesMeta: + msw: + optional: true + vite: + optional: true + + '@vitest/pretty-format@3.2.7': + resolution: {integrity: sha512-KUHlwqVu0sRlhCdyPdQ/wBoTfRahjUky1MubOmYw9fWfIZy1gNoHpuaaQBPAaMaVYdQYHJLurzj8ECCj5OwTqA==} + + '@vitest/runner@3.2.7': + resolution: {integrity: sha512-sB9y4ovltoQP+WaUPwmSxO9WIg9Ig694Di5PalVPsYHklAdE027mehpWF2SQSVq+k6sFgaivbTjTJwZLSHbedA==} + + '@vitest/snapshot@3.2.7': + resolution: {integrity: sha512-7C+MwShwtBSI5Buwoyg3s/iY1eHL9PKAf+O1wVh/TdnjXUtkoL/9YQtre90i4MtNXM6edP1wJ2zOBpfCyhIS7g==} + + '@vitest/spy@3.2.7': + resolution: {integrity: sha512-Q2eQGI6d2L/hBtZ0qNuKcAGid68XK6cv1xsoaIma6PaJhHPoqcEJhYpXZ/5myCMqkNgtP6UKuBhbc0nHKnrkuQ==} + + '@vitest/utils@3.2.7': + resolution: {integrity: sha512-x6BDOd7dyo3PFLY3I9/HJ25X/6OurhGXk2/B9gOZNPF7XDVjeBK4k01lQE5uvDpbuheErh91qYuE1E2OEjK3Rw==} + acorn-jsx@5.3.2: resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==} peerDependencies: @@ -213,6 +1065,18 @@ packages: argparse@2.0.1: resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==} + aria-query@5.3.1: + resolution: {integrity: sha512-Z/ZeOgVl7bcSYZ/u/rh0fOpvEpq//LZmdbkXyc7syVzjPAhfOa9ebsdTSjEBDU4vs5nC98Kfduj1uFo0qyET3g==} + engines: {node: '>= 0.4'} + + assertion-error@2.0.1: + resolution: {integrity: sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==} + engines: {node: '>=12'} + + axobject-query@4.1.0: + resolution: {integrity: sha512-qIj0G9wZbMGNLjLmg1PT6v2mE9AH2zlnADJD/2tC6E00hgmhUOfEB6greHPAfLRSufHqROIUTkw6E+M3lH0PTQ==} + engines: {node: '>= 0.4'} + balanced-match@1.0.2: resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==} @@ -220,6 +1084,9 @@ packages: resolution: {integrity: sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==} engines: {node: 18 || 20 || >=22} + blake3-wasm@2.1.5: + resolution: {integrity: sha512-F1+K8EbfOZE49dtoPtmxUQrpXaBIl3ICvasLh+nJta0xkz+9kF/7uet9fLnwKqhDrmj6g+6K3Tw9yQPUg2ka5g==} + brace-expansion@1.1.21: resolution: {integrity: sha512-9zeA+KLZNNzglF2TPKRQEDyx6Yby7daAkuy8MiPzpXPsYDWi/DRM8jmwUDxokQjYqBpv5DgPiwD4h4ZZSy1Ujw==} @@ -227,14 +1094,34 @@ packages: resolution: {integrity: sha512-YovQ3rzhaLMIrDjNDMkNS01tea93qhEhG5xy8f6+R0l+dw3Ki+5sCoIoI942iuLZTHWogWktgwVDhU09iNEimQ==} engines: {node: 20 || >=22} + cac@6.7.14: + resolution: {integrity: sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==} + engines: {node: '>=8'} + callsites@3.1.0: resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==} engines: {node: '>=6'} + chai@5.3.3: + resolution: {integrity: sha512-4zNhdJD/iOjSH0A05ea+Ke6MU5mmpQcbQsSOkgdaUMJ9zTlDTD/GYlwohmIE2u0gaxHYiVHEn1Fw9mZ/ktJWgw==} + engines: {node: '>=18'} + chalk@4.1.2: resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==} engines: {node: '>=10'} + check-error@2.1.3: + resolution: {integrity: sha512-PAJdDJusoxnwm1VwW07VWwUN1sl7smmC3OKggvndJFadxxDRyFJBX/ggnu/KE4kQAB7a3Dp8f/YXC1FlUprWmA==} + engines: {node: '>= 16'} + + chokidar@4.0.3: + resolution: {integrity: sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA==} + engines: {node: '>= 14.16.0'} + + clsx@2.1.1: + resolution: {integrity: sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==} + engines: {node: '>=6'} + color-convert@2.0.1: resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==} engines: {node: '>=7.0.0'} @@ -245,6 +1132,14 @@ packages: concat-map@0.0.1: resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==} + cookie@0.7.0: + resolution: {integrity: sha512-qCf+V4dtlNhSRXGAZatc1TasyFO6GjohcOul807YOb5ik3+kQSnb4d7iajeCL8QHaJ4uZEjCgiCJerKXwdRVlQ==} + engines: {node: '>= 0.6'} + + cookie@1.1.1: + resolution: {integrity: sha512-ei8Aos7ja0weRpFzJnEA9UHJ/7XQmqglbRwnf2ATjcB9Wq874VKH9kfjjirM6UhU2/E5fFYadylyhFldcqSidQ==} + engines: {node: '>=18'} + cross-spawn@7.0.6: resolution: {integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==} engines: {node: '>= 8'} @@ -258,9 +1153,40 @@ packages: supports-color: optional: true + deep-eql@5.0.2: + resolution: {integrity: sha512-h5k/5U50IJJFpzfL6nO9jaaumfjO/f2NjK/oYB2Djzm4p9L+3T9qWpZqZ2hAbLPuuYq9wrU08WQyBTL5GbPk5Q==} + engines: {node: '>=6'} + deep-is@0.1.4: resolution: {integrity: sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==} + deepmerge@4.3.1: + resolution: {integrity: sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==} + engines: {node: '>=0.10.0'} + + detect-libc@2.1.2: + resolution: {integrity: sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==} + engines: {node: '>=8'} + + devalue@5.9.4: + resolution: {integrity: sha512-sPAT4pztbu6586/hrhOnMKS17IJrvg12mXiSPSS3W5qDeN2RGgvZ0diZCm31dBbnevfVmujNO3IM2wrS4Y2Rhg==} + + error-stack-parser-es@1.0.5: + resolution: {integrity: sha512-5qucVt2XcuGMcEGgWI7i+yZpmpByQ8J1lHhcL7PwqCwu9FPP3VUXzT4ltHe5i2z9dePwEHcDVOAfSnHsOlCXRA==} + + es-module-lexer@1.7.0: + resolution: {integrity: sha512-jEQoCwk8hyb2AZziIOLhDqpm5+2ww5uIE6lkO/6jcOCusfk6LhMHpXXfBLXTZ7Ydyt0j4VoUQv6uGNYbdW+kBA==} + + esbuild@0.25.12: + resolution: {integrity: sha512-bbPBYYrtZbkt6Os6FiTLCTFxvq4tt3JKall1vRwshA3fdVztsLAatFaZobhkBC8/BrPetoa0oksYoKXoG4ryJg==} + engines: {node: '>=18'} + hasBin: true + + esbuild@0.28.2: + resolution: {integrity: sha512-HKVLS8dvII+xoKW9kmqxbRKrnWEXfJJr/FZhhJmiqIB0e053QNYFqOBouTMO/k5sID4MvCiUCvv8b9M4h32wIA==} + engines: {node: '>=18'} + hasBin: true + escape-string-regexp@4.0.0: resolution: {integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==} engines: {node: '>=10'} @@ -292,6 +1218,9 @@ packages: jiti: optional: true + esm-env@1.2.2: + resolution: {integrity: sha512-Epxrv+Nr/CaL4ZcFGPJIYLWFom+YeV1DqMLHJoEd9SYRxNbaFruBwfEX/kkHUJf55j2+TUbmDcmuilbP1TmXHA==} + espree@10.4.0: resolution: {integrity: sha512-j6PAQ2uUr79PZhBjP5C5fhl8e39FmRnOjsD5lGnWrFU8i2G776tBK7+nP8KuQUTTyAZUwfQqXAgrVH5MbH9CYQ==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} @@ -300,6 +1229,14 @@ packages: resolution: {integrity: sha512-Ap6G0WQwcU/LHsvLwON1fAQX9Zp0A2Y6Y/cJBl9r/JbW90Zyg4/zbG6zzKa2OTALELarYHmKu0GhpM5EO+7T0g==} engines: {node: '>=0.10'} + esrap@2.4.0: + resolution: {integrity: sha512-CQPcneEHw/czj32uwQC52nYnax8H4SXt25FCM+LIwGZ49cMIxpOj3bP8wmzcI+Z0HIy5KkClaPhRLfCySzwHPA==} + peerDependencies: + '@typescript-eslint/types': ^8.2.0 + peerDependenciesMeta: + '@typescript-eslint/types': + optional: true + esrecurse@4.3.0: resolution: {integrity: sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==} engines: {node: '>=4.0'} @@ -308,10 +1245,17 @@ packages: resolution: {integrity: sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==} engines: {node: '>=4.0'} + estree-walker@3.0.3: + resolution: {integrity: sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==} + esutils@2.0.3: resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==} engines: {node: '>=0.10.0'} + expect-type@1.4.0: + resolution: {integrity: sha512-KfYbmpRm0VbLjEvVa9yGwCi9GI34xvi7A/HXYWQO65CSD2u3MczUJSuwXKFIxlGsgBQizV9q5J9NHj4VG0n+pA==} + engines: {node: '>=12.0.0'} + fast-deep-equal@3.1.3: resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==} @@ -345,6 +1289,11 @@ packages: flatted@3.4.4: resolution: {integrity: sha512-5+ybhBZANEJxaH3X5evAFatUxLfEHSr7n6kYJ+1Qd0mUqr4eu9gIf6GDbWHf8RJijHrjjO8G+la14SlL2SeS1Q==} + fsevents@2.3.3: + resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==} + engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} + os: [darwin] + glob-parent@6.0.2: resolution: {integrity: sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==} engines: {node: '>=10.13.0'} @@ -381,9 +1330,18 @@ packages: resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==} engines: {node: '>=0.10.0'} + is-reference@3.0.3: + resolution: {integrity: sha512-ixkJoqQvAP88E6wLydLGGqCJsrFUnqoH6HnaczB8XmDH1oaWU+xxdptvikTgaEhtZ53Ky6YXiBuUI2WXLMCwjw==} + isexe@2.0.0: resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==} + jose@6.2.13: + resolution: {integrity: sha512-7TIg10ZE1x82YediN+lcrPNvGMKge9yFHQD+Qho/b8y2adfugU3AsvvHfxV0fzyFllT6l9xCjf4RWY9g/Z9PJQ==} + + js-tokens@9.0.1: + resolution: {integrity: sha512-mxa9E9ITFOt0ban3j6L5MpjwegGz6lBQmM1IJkWeBZGcMxto50+eWdjC/52xDbS2vy0k7vIMK0Fe2wfL9OQSpQ==} + js-yaml@4.3.2: resolution: {integrity: sha512-SFNOvSJ+Dgf/9An904Yx+CgSlIPCkIpao4qo51lpee25TIRejdH3rhR4EZMGoNx3/TP3O+wzWuiTFl4sqbltzA==} hasBin: true @@ -400,10 +1358,17 @@ packages: keyv@4.5.4: resolution: {integrity: sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==} + kleur@4.1.5: + resolution: {integrity: sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==} + engines: {node: '>=6'} + levn@0.4.1: resolution: {integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==} engines: {node: '>= 0.8.0'} + locate-character@3.0.0: + resolution: {integrity: sha512-SW13ws7BjaeJ6p7Q6CO2nchbYEc3X3J6WrmTTDto7yMPqVSZTUyY5Tjbid+Ab8gLnATtygYtiDIJGQRRn2ZOiA==} + locate-path@6.0.0: resolution: {integrity: sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==} engines: {node: '>=10'} @@ -411,6 +1376,16 @@ packages: lodash.merge@4.6.2: resolution: {integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==} + loupe@3.2.1: + resolution: {integrity: sha512-CdzqowRJCeLU72bHvWqwRBBlLcMEtIvGrlvef74kMnV2AolS9Y8xUv1I0U/MNAWMhBlKIoyuEgoJ0t/bbwHbLQ==} + + magic-string@0.30.21: + resolution: {integrity: sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==} + + miniflare@5.20261023.2-beta: + resolution: {integrity: sha512-sXpZloQnIUe4raXXdwwqd2ioRHox9a/1B4nB2/p4JWKDwGuVgEK4DugCNgIeQf0iVuSgBItdYpodJe4iwY6SrQ==} + engines: {node: '>=22.0.0'} + minimatch@10.2.6: resolution: {integrity: sha512-vpLQEs+VLCr1nU0BXS07maYoFwlDAH0gngQuuttxIwutDFEMHq2blX+8vpgxDdK3J1PwjCJiep77OitTZ4Ll1A==} engines: {node: 18 || 20 || >=22} @@ -418,12 +1393,28 @@ packages: minimatch@3.1.5: resolution: {integrity: sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==} + mri@1.2.0: + resolution: {integrity: sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA==} + engines: {node: '>=4'} + + mrmime@2.0.1: + resolution: {integrity: sha512-Y3wQdFg2Va6etvQ5I82yUhGdsKrcYox6p7FfL1LbK2J4V01F9TGlepTIhnK24t7koZibmg82KGglhA1XK5IsLQ==} + engines: {node: '>=10'} + ms@2.1.3: resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==} + nanoid@3.3.20: + resolution: {integrity: sha512-uKdg2G3GNCKQn9byYOpxbGqrT2fGO5KRt5J/8b3pok8rT6qxGWF6hxMyJiEYtAf+FVyYuD9hRaDqX5uPFYJ4ZQ==} + engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} + hasBin: true + natural-compare@1.4.0: resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==} + oauth4webapi@3.8.8: + resolution: {integrity: sha512-8N28E+a/oxfXWBgOMt+ZP/JUf/XR+IFbvkAEPP3gznXOMv9BpAAwiIj0TFNz3tGTPc0ZQ8zmWBNgN1nAys0gng==} + optionator@0.9.4: resolution: {integrity: sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==} engines: {node: '>= 0.8.0'} @@ -448,27 +1439,95 @@ packages: resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==} engines: {node: '>=8'} + path-to-regexp@6.3.0: + resolution: {integrity: sha512-Yhpw4T9C6hPpgPeA28us07OJeqZ5EzQTkbfwuhsUg0c237RomFoETJgmp2sa3F/41gfLE6G5cqcYwznmeEeOlQ==} + + pathe@2.0.3: + resolution: {integrity: sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==} + + pathval@2.0.1: + resolution: {integrity: sha512-//nshmD55c46FuFw26xV/xFAaB5HF9Xdap7HJBBnrKdAd6/GxDBaNA1870O79+9ueg61cZLSVc+OaFlfmObYVQ==} + engines: {node: '>= 14.16'} + + picocolors@1.1.1: + resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==} + picomatch@4.0.7: resolution: {integrity: sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==} engines: {node: '>=12'} + postcss@8.5.32: + resolution: {integrity: sha512-LJlKCCAUFKOuZxipUdYw1NzIITEsPcgyOG9LkvRJvuKj/bRzbuRY0ARXvL0pWGpsZvn8jku+LMep2eU0seHp8g==} + engines: {node: ^10 || ^12 || >=14} + + preact-render-to-string@6.5.11: + resolution: {integrity: sha512-ubnauqoGczeGISiOh6RjX0/cdaF8v/oDXIjO85XALCQjwQP+SB4RDXXtvZ6yTYSjG+PC1QRP2AhPgCEsM2EvUw==} + peerDependencies: + preact: '>=10' + + preact@10.24.3: + resolution: {integrity: sha512-Z2dPnBnMUfyQfSQ+GBdsGa16hz35YmLmtTLhM169uW944hYL6xzTYkJjC07j+Wosz733pMWx0fgON3JNw1jJQA==} + prelude-ls@1.2.1: resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==} engines: {node: '>= 0.8.0'} + prettier-plugin-svelte@3.5.2: + resolution: {integrity: sha512-ItFouLvzSFE3ulNl4DKoWM3BGcbDCNVpIyy/Y3F2gC3aNiGLxtFUdffVqO5Z5hhYG+DFT5KULWaxmeFFpdbvaQ==} + peerDependencies: + prettier: ^3.0.0 + svelte: ^3.2.0 || ^4.0.0-next.0 || ^5.0.0-next.0 + + prettier@3.9.10: + resolution: {integrity: sha512-skGHTH1Yb9QvaTC4hWnRTzEYtCpApF0UMBPz+t/0ZPzP8ihefo/btKd+QA7pUE0fEwA1SbS/NmhyEcstdXOIdA==} + engines: {node: '>=14'} + hasBin: true + punycode@2.3.1: resolution: {integrity: sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==} engines: {node: '>=6'} + readdirp@4.1.2: + resolution: {integrity: sha512-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg==} + engines: {node: '>= 14.18.0'} + + regexparam@3.0.0: + resolution: {integrity: sha512-RSYAtP31mvYLkAHrOlh25pCNQ5hWnT106VukGaaFfuJrZFkGRX5GhUAdPqpSDXxOhA2c4akmRuplv1mRqnBn6Q==} + engines: {node: '>=8'} + resolve-from@4.0.0: resolution: {integrity: sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==} engines: {node: '>=4'} + rollup@4.66.0: + resolution: {integrity: sha512-Onq6/qO4ARhxIs+jYiHE0pYehadLyMECAiGEqQ+0/aWND3+2PmifJIIqBLYtuBODqHTlOUEQFtIVPyCy0Lck7A==} + engines: {node: '>=18.0.0', npm: '>=8.0.0'} + hasBin: true + + sade@1.8.1: + resolution: {integrity: sha512-xal3CZX1Xlo/k4ApwCFrHVACi9fBqJ7V+mwhBsuf/1IOKbBy098Fex+Wa/5QMubw09pSZ/u8EY8PWgevJsXp1A==} + engines: {node: '>=6'} + semver@7.8.5: resolution: {integrity: sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==} engines: {node: '>=10'} hasBin: true + set-cookie-parser@2.7.3: + resolution: {integrity: sha512-irZHtTqurLna57KQG/s+fzOwv/J6XSH4cs8M/vsrY3uCaQ3S6+QJguAH0WdN47SXlk82voMZ4naWMQf8fdEoIg==} + + set-cookie-parser@3.2.1: + resolution: {integrity: sha512-Npd1Pt+4zb3BrSZDPd2qFwRpS6b1EUEasRrO8xS0zMJi0fApXXK5YuzP0minyJnxwnFHoVoJwA55q0A0cu63gQ==} + + sharp@0.35.5: + resolution: {integrity: sha512-Ywn4OnzGukp7CDMrp08RQ50YKmuwG47brZgIVPTvBaaAfQlRlygrRqSrxdCiL9M+LlzLBiJ68IR1QqvzHyjC7g==} + engines: {node: '>=20.9.0'} + peerDependencies: + '@types/node': '*' + peerDependenciesMeta: + '@types/node': + optional: true + shebang-command@2.0.0: resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==} engines: {node: '>=8'} @@ -477,116 +1536,803 @@ packages: resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==} engines: {node: '>=8'} + siginfo@2.0.0: + resolution: {integrity: sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==} + + sirv@3.0.2: + resolution: {integrity: sha512-2wcC/oGxHis/BoHkkPwldgiPSYcpZK3JU28WoMVv55yHJgcZ8rlXvuG9iZggz+sU1d4bRgIGASwyWqjxu3FM0g==} + engines: {node: '>=18'} + + source-map-js@1.2.2: + resolution: {integrity: sha512-KGj/8Y43x35aZVDtt+J4mK1hoLGHULMYfSkODJNQjNDC3oW1PqPoxMwo0pLUsWM/UEGzON/NxeHywEfNXNP3Vw==} + engines: {node: '>=0.10.0'} + + stackback@0.0.2: + resolution: {integrity: sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==} + + std-env@3.10.0: + resolution: {integrity: sha512-5GS12FdOZNliM5mAOxFRg7Ir0pWz8MdpYm6AY6VPkGpbA7ZzmbzNcBJQ0GPvvyWgcY7QAhCgf9Uy89I03faLkg==} + strip-json-comments@3.1.1: resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==} engines: {node: '>=8'} + strip-literal@3.1.0: + resolution: {integrity: sha512-8r3mkIM/2+PpjHoOtiAW8Rg3jJLHaV7xPwG+YRGrv6FP0wwk/toTpATxWYOW0BKdWwl82VT2tFYi5DlROa0Mxg==} + + supports-color@10.2.2: + resolution: {integrity: sha512-SS+jx45GF1QjgEXQx4NJZV9ImqmO2NPz5FNsIHrsDjh2YsHnawpan7SNQ1o8NuhrbHZy9AZhIoCUiCeaW/C80g==} + engines: {node: '>=18'} + supports-color@7.2.0: resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==} engines: {node: '>=8'} + svelte-check@4.7.7: + resolution: {integrity: sha512-Ge2IMdeTpbJuzNFGRiiMg0RWgbScysKQu7xwcyFJ22+DU9F5nPX51+Q3gHmGqRxYQMx2knreVWt5oCtfe0vf2g==} + engines: {node: '>= 18.0.0'} + hasBin: true + peerDependencies: + svelte: ^4.0.0 || ^5.0.0-next.0 + typescript: ^5.0.0 || ^6.0.0 + + svelte@5.55.7: + resolution: {integrity: sha512-ymI5ykLPwIHW839E053FQbI1G+jnRFJEw3Kv5Y4njixVWywQBx+NUFpkkKyk5LIb36Fg9DVXSYpqiGekLD0hyw==} + engines: {node: '>=18'} + + tinybench@2.9.0: + resolution: {integrity: sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==} + + tinyexec@0.3.2: + resolution: {integrity: sha512-KQQR9yN7R5+OSwaK0XQoj22pwHoTlgYqmUscPYoknOoWCWfj/5/ABTMRi69FrKU5ffPVh5QcFikpWJI/P1ocHA==} + tinyglobby@0.2.17: resolution: {integrity: sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==} engines: {node: '>=12.0.0'} - ts-api-utils@2.5.0: - resolution: {integrity: sha512-OJ/ibxhPlqrMM0UiNHJ/0CKQkoKF243/AEmplt3qpRgkW8VG7IfOS41h7V8TjITqdByHzrjcS/2si+y4lIh8NA==} - engines: {node: '>=18.12'} - peerDependencies: + tinypool@1.1.1: + resolution: {integrity: sha512-Zba82s87IFq9A9XmjiX5uZA/ARWDrB03OHlq+Vw1fSdt0I+4/Kutwy8BP4Y/y/aORMo61FQ0vIb5j44vSo5Pkg==} + engines: {node: ^18.0.0 || >=20.0.0} + + tinyrainbow@2.0.0: + resolution: {integrity: sha512-op4nsTR47R6p0vMUUoYl/a+ljLFVtlfaXkLQmqfLR1qHma1h/ysYk4hEXZ880bf2CYgTskvTa/e196Vd5dDQXw==} + engines: {node: '>=14.0.0'} + + tinyspy@4.0.6: + resolution: {integrity: sha512-u8KszXvGfU68hVcZpRHKG28T0krMuv2G5nDhiHaMLen/gIuFEgIJhaJuO69qjnXg5paSrbPMFfx3brNuN8eVSg==} + engines: {node: '>=14.0.0'} + + totalist@3.0.1: + resolution: {integrity: sha512-sf4i37nQ2LBx4m3wB74y+ubopq6W/dIzXg0FDGjsYnZHVa1Da8FH853wlL2gtUhg+xJXjfk3kUZS3BRoQeoQBQ==} + engines: {node: '>=6'} + + ts-api-utils@2.5.0: + resolution: {integrity: sha512-OJ/ibxhPlqrMM0UiNHJ/0CKQkoKF243/AEmplt3qpRgkW8VG7IfOS41h7V8TjITqdByHzrjcS/2si+y4lIh8NA==} + engines: {node: '>=18.12'} + peerDependencies: typescript: '>=4.8.4' + tslib@2.8.1: + resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==} + turbo@2.11.10: resolution: {integrity: sha512-3GJYwig8ygEI89oaOZdduJX8/aw6O9eRPYHoIt6T3FZl9hkKjiyIspufJoVgqXihPoJu8M5CSV0DlZvzfohBCw==} hasBin: true - type-check@0.4.0: - resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==} - engines: {node: '>= 0.8.0'} + type-check@0.4.0: + resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==} + engines: {node: '>= 0.8.0'} + + typescript@5.9.3: + resolution: {integrity: sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==} + engines: {node: '>=14.17'} + hasBin: true + + undici-types@6.21.0: + resolution: {integrity: sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==} + + undici@7.30.1: + resolution: {integrity: sha512-03KrMbjIFDWQR5RNPrSw3bd1r12JpyFQl9/yxjUbJtqkjmllqC5lFjZh6ujeuJCKr8EOQvRW872Oy/az+nLYxg==} + engines: {node: '>=20.18.1'} + + unenv@2.0.0-rc.24: + resolution: {integrity: sha512-i7qRCmY42zmCwnYlh9H2SvLEypEFGye5iRmEMKjcGi7zk9UquigRjFtTLz0TYqr0ZGLZhaMHl/foy1bZR+Cwlw==} + + uri-js@4.4.1: + resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==} + + vite-node@3.2.4: + resolution: {integrity: sha512-EbKSKh+bh1E1IFxeO0pg1n4dvoOTt0UDiXMd/qn++r98+jPO1xtJilvXldeuQ8giIB5IkpjCgMleHMNEsGH6pg==} + engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0} + hasBin: true + + vite@6.4.2: + resolution: {integrity: sha512-2N/55r4JDJ4gdrCvGgINMy+HH3iRpNIz8K6SFwVsA+JbQScLiC+clmAxBgwiSPgcG9U15QmvqCGWzMbqda5zGQ==} + engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0} + hasBin: true + peerDependencies: + '@types/node': ^18.0.0 || ^20.0.0 || >=22.0.0 + jiti: '>=1.21.0' + less: '*' + lightningcss: ^1.21.0 + sass: '*' + sass-embedded: '*' + stylus: '*' + sugarss: '*' + terser: ^5.16.0 + tsx: ^4.8.1 + yaml: ^2.4.2 + peerDependenciesMeta: + '@types/node': + optional: true + jiti: + optional: true + less: + optional: true + lightningcss: + optional: true + sass: + optional: true + sass-embedded: + optional: true + stylus: + optional: true + sugarss: + optional: true + terser: + optional: true + tsx: + optional: true + yaml: + optional: true + + vitefu@1.1.3: + resolution: {integrity: sha512-ub4okH7Z5KLjb6hDyjqrGXqWtWvoYdU3IGm/NorpgHncKoLTCfRIbvlhBm7r0YstIaQRYlp4yEbFqDcKSzXSSg==} + peerDependencies: + vite: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0 + peerDependenciesMeta: + vite: + optional: true + + vitest@3.2.7: + resolution: {integrity: sha512-KrxIJ62Fd89gfysR4WotlgZABiz2dqFPgqGzX7s+CwsqLFomRH7777ZcrOD6+WVAh7khPQP41A+BKbpcJFrdEg==} + engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0} + hasBin: true + peerDependencies: + '@edge-runtime/vm': '*' + '@types/debug': ^4.1.12 + '@types/node': ^18.0.0 || ^20.0.0 || >=22.0.0 + '@vitest/browser': 3.2.7 + '@vitest/ui': 3.2.7 + happy-dom: '*' + jsdom: '*' + peerDependenciesMeta: + '@edge-runtime/vm': + optional: true + '@types/debug': + optional: true + '@types/node': + optional: true + '@vitest/browser': + optional: true + '@vitest/ui': + optional: true + happy-dom: + optional: true + jsdom: + optional: true + + which@2.0.2: + resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==} + engines: {node: '>= 8'} + hasBin: true + + why-is-node-running@2.3.0: + resolution: {integrity: sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==} + engines: {node: '>=8'} + hasBin: true + + word-wrap@1.2.5: + resolution: {integrity: sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==} + engines: {node: '>=0.10.0'} + + workerd@1.20261023.1: + resolution: {integrity: sha512-NeofJFyaYNpqKpFRJW3ApuonaerPd6/JWlfTtLDYf2A6ygqrDEFnYgEXmc0hhOxqnJsSM+kXJN6VebPojzRrsg==} + engines: {node: '>=16'} + hasBin: true + + worktop@0.8.0-next.18: + resolution: {integrity: sha512-+TvsA6VAVoMC3XDKR5MoC/qlLqDixEfOBysDEKnPIPou/NvoPWCAuXHXMsswwlvmEuvX56lQjvELLyLuzTKvRw==} + engines: {node: '>=12'} + + wrangler@4.155.0: + resolution: {integrity: sha512-gBKtAg2e0abQDvXPRQu611YMTd/cfAaJTOLAs/89tTxFxEeUyC260MRJRK+m3gLmQjDYWFwJv+ErwuJ/GuALpA==} + engines: {node: '>=22.0.0'} + hasBin: true + peerDependencies: + '@cloudflare/workers-types': ^5.20261023.1 + peerDependenciesMeta: + '@cloudflare/workers-types': + optional: true + + ws@8.21.0: + resolution: {integrity: sha512-Vsp28b7DRcimFQvrqu2Wek3z1iYxDCWqHYB8Qsnk/S4RfaCQzPGPyBNuVjJV3cd6UiKtUtp6sNM77gWvzcCH+g==} + engines: {node: '>=10.0.0'} + peerDependencies: + bufferutil: ^4.0.1 + utf-8-validate: '>=5.0.2' + peerDependenciesMeta: + bufferutil: + optional: true + utf-8-validate: + optional: true + + yocto-queue@0.1.0: + resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==} + engines: {node: '>=10'} + + youch-core@0.3.3: + resolution: {integrity: sha512-ho7XuGjLaJ2hWHoK8yFnsUGy2Y5uDpqSTq1FkHLK4/oqKtyUU1AFbOOxY4IpC9f0fTLjwYbslUz0Po5BpD1wrA==} + + youch@4.1.0-beta.10: + resolution: {integrity: sha512-rLfVLB4FgQneDr0dv1oddCVZmKjcJ6yX6mS4pU82Mq/Dt9a3cLZQ62pDBL4AUO+uVrCvtWz3ZFUL2HFAFJ/BXQ==} + + zimmerframe@1.1.5: + resolution: {integrity: sha512-msJxIvYDYcoNL+PJsu+7qmpDWsYmAxTY+2TNYXXF0hzBzBk0BMecOqDOG/EckUoKCuKwObfbugIl8QpqHDXeFA==} + +snapshots: + + '@auth/core@0.41.3': + dependencies: + '@panva/hkdf': 1.2.1 + jose: 6.2.13 + oauth4webapi: 3.8.8 + preact: 10.24.3 + preact-render-to-string: 6.5.11(preact@10.24.3) + + '@auth/sveltekit@1.11.3(@sveltejs/kit@2.60.1(@sveltejs/vite-plugin-svelte@5.1.1(svelte@5.55.7(@typescript-eslint/types@8.72.1))(vite@6.4.2(@types/node@22.20.5)))(svelte@5.55.7(@typescript-eslint/types@8.72.1))(typescript@5.9.3)(vite@6.4.2(@types/node@22.20.5)))(svelte@5.55.7(@typescript-eslint/types@8.72.1))': + dependencies: + '@auth/core': 0.41.3 + '@sveltejs/kit': 2.60.1(@sveltejs/vite-plugin-svelte@5.1.1(svelte@5.55.7(@typescript-eslint/types@8.72.1))(vite@6.4.2(@types/node@22.20.5)))(svelte@5.55.7(@typescript-eslint/types@8.72.1))(typescript@5.9.3)(vite@6.4.2(@types/node@22.20.5)) + set-cookie-parser: 2.7.3 + svelte: 5.55.7(@typescript-eslint/types@8.72.1) + + '@cloudflare/kv-asset-handler@0.5.0': {} + + '@cloudflare/unenv-preset@2.16.2(unenv@2.0.0-rc.24)(workerd@1.20261023.1)': + dependencies: + unenv: 2.0.0-rc.24 + optionalDependencies: + workerd: 1.20261023.1 + + '@cloudflare/workerd-darwin-64@1.20261023.1': + optional: true + + '@cloudflare/workerd-darwin-arm64@1.20261023.1': + optional: true + + '@cloudflare/workerd-linux-64@1.20261023.1': + optional: true + + '@cloudflare/workerd-linux-arm64@1.20261023.1': + optional: true + + '@cloudflare/workerd-windows-64@1.20261023.1': + optional: true + + '@cloudflare/workers-types@4.20260702.1': {} + + '@cspotcode/source-map-support@0.8.1': + dependencies: + '@jridgewell/trace-mapping': 0.3.9 + + '@emnapi/runtime@1.11.3': + dependencies: + tslib: 2.8.1 + optional: true + + '@esbuild/aix-ppc64@0.25.12': + optional: true + + '@esbuild/aix-ppc64@0.28.2': + optional: true + + '@esbuild/android-arm64@0.25.12': + optional: true + + '@esbuild/android-arm64@0.28.2': + optional: true + + '@esbuild/android-arm@0.25.12': + optional: true + + '@esbuild/android-arm@0.28.2': + optional: true + + '@esbuild/android-x64@0.25.12': + optional: true + + '@esbuild/android-x64@0.28.2': + optional: true + + '@esbuild/darwin-arm64@0.25.12': + optional: true + + '@esbuild/darwin-arm64@0.28.2': + optional: true + + '@esbuild/darwin-x64@0.25.12': + optional: true + + '@esbuild/darwin-x64@0.28.2': + optional: true + + '@esbuild/freebsd-arm64@0.25.12': + optional: true + + '@esbuild/freebsd-arm64@0.28.2': + optional: true + + '@esbuild/freebsd-x64@0.25.12': + optional: true + + '@esbuild/freebsd-x64@0.28.2': + optional: true + + '@esbuild/linux-arm64@0.25.12': + optional: true + + '@esbuild/linux-arm64@0.28.2': + optional: true + + '@esbuild/linux-arm@0.25.12': + optional: true + + '@esbuild/linux-arm@0.28.2': + optional: true + + '@esbuild/linux-ia32@0.25.12': + optional: true + + '@esbuild/linux-ia32@0.28.2': + optional: true + + '@esbuild/linux-loong64@0.25.12': + optional: true + + '@esbuild/linux-loong64@0.28.2': + optional: true + + '@esbuild/linux-mips64el@0.25.12': + optional: true + + '@esbuild/linux-mips64el@0.28.2': + optional: true + + '@esbuild/linux-ppc64@0.25.12': + optional: true + + '@esbuild/linux-ppc64@0.28.2': + optional: true + + '@esbuild/linux-riscv64@0.25.12': + optional: true + + '@esbuild/linux-riscv64@0.28.2': + optional: true + + '@esbuild/linux-s390x@0.25.12': + optional: true + + '@esbuild/linux-s390x@0.28.2': + optional: true + + '@esbuild/linux-x64@0.25.12': + optional: true + + '@esbuild/linux-x64@0.28.2': + optional: true + + '@esbuild/netbsd-arm64@0.25.12': + optional: true + + '@esbuild/netbsd-arm64@0.28.2': + optional: true + + '@esbuild/netbsd-x64@0.25.12': + optional: true + + '@esbuild/netbsd-x64@0.28.2': + optional: true + + '@esbuild/openbsd-arm64@0.25.12': + optional: true + + '@esbuild/openbsd-arm64@0.28.2': + optional: true + + '@esbuild/openbsd-x64@0.25.12': + optional: true + + '@esbuild/openbsd-x64@0.28.2': + optional: true + + '@esbuild/openharmony-arm64@0.25.12': + optional: true + + '@esbuild/openharmony-arm64@0.28.2': + optional: true + + '@esbuild/sunos-x64@0.25.12': + optional: true + + '@esbuild/sunos-x64@0.28.2': + optional: true + + '@esbuild/win32-arm64@0.25.12': + optional: true + + '@esbuild/win32-arm64@0.28.2': + optional: true + + '@esbuild/win32-ia32@0.25.12': + optional: true + + '@esbuild/win32-ia32@0.28.2': + optional: true + + '@esbuild/win32-x64@0.25.12': + optional: true + + '@esbuild/win32-x64@0.28.2': + optional: true + + '@eslint-community/eslint-utils@4.10.1(eslint@9.39.5)': + dependencies: + eslint: 9.39.5 + eslint-visitor-keys: 3.4.3 + + '@eslint-community/regexpp@4.12.2': {} + + '@eslint/config-array@0.21.2': + dependencies: + '@eslint/object-schema': 2.1.7 + debug: 4.4.3 + minimatch: 3.1.5 + transitivePeerDependencies: + - supports-color + + '@eslint/config-helpers@0.4.2': + dependencies: + '@eslint/core': 0.17.0 + + '@eslint/core@0.17.0': + dependencies: + '@types/json-schema': 7.0.15 + + '@eslint/eslintrc@3.3.7': + dependencies: + ajv: 6.15.0 + debug: 4.4.3 + espree: 10.4.0 + globals: 14.0.0 + ignore: 5.3.2 + import-fresh: 3.3.1 + js-yaml: 4.3.2 + minimatch: 3.1.5 + strip-json-comments: 3.1.1 + transitivePeerDependencies: + - supports-color + + '@eslint/js@9.39.5': {} + + '@eslint/object-schema@2.1.7': {} + + '@eslint/plugin-kit@0.4.1': + dependencies: + '@eslint/core': 0.17.0 + levn: 0.4.1 + + '@humanfs/core@0.19.2': + dependencies: + '@humanfs/types': 0.15.0 + + '@humanfs/node@0.16.8': + dependencies: + '@humanfs/core': 0.19.2 + '@humanfs/types': 0.15.0 + '@humanwhocodes/retry': 0.4.3 + + '@humanfs/types@0.15.0': {} + + '@humanwhocodes/module-importer@1.0.1': {} + + '@humanwhocodes/retry@0.4.3': {} + + '@img/colour@1.1.0': {} + + '@img/sharp-darwin-arm64@0.35.5': + optionalDependencies: + '@img/sharp-libvips-darwin-arm64': 1.3.4 + optional: true + + '@img/sharp-darwin-x64@0.35.5': + optionalDependencies: + '@img/sharp-libvips-darwin-x64': 1.3.4 + optional: true + + '@img/sharp-freebsd-wasm32@0.35.5': + dependencies: + '@img/sharp-wasm32': 0.35.5 + optional: true + + '@img/sharp-libvips-darwin-arm64@1.3.4': + optional: true + + '@img/sharp-libvips-darwin-x64@1.3.4': + optional: true + + '@img/sharp-libvips-linux-arm64@1.3.4': + optional: true + + '@img/sharp-libvips-linux-arm@1.3.4': + optional: true + + '@img/sharp-libvips-linux-ppc64@1.3.4': + optional: true + + '@img/sharp-libvips-linux-riscv64@1.3.4': + optional: true + + '@img/sharp-libvips-linux-s390x@1.3.4': + optional: true + + '@img/sharp-libvips-linux-x64@1.3.4': + optional: true + + '@img/sharp-libvips-linuxmusl-arm64@1.3.4': + optional: true + + '@img/sharp-libvips-linuxmusl-x64@1.3.4': + optional: true + + '@img/sharp-linux-arm64@0.35.5': + optionalDependencies: + '@img/sharp-libvips-linux-arm64': 1.3.4 + optional: true + + '@img/sharp-linux-arm@0.35.5': + optionalDependencies: + '@img/sharp-libvips-linux-arm': 1.3.4 + optional: true + + '@img/sharp-linux-ppc64@0.35.5': + optionalDependencies: + '@img/sharp-libvips-linux-ppc64': 1.3.4 + optional: true + + '@img/sharp-linux-riscv64@0.35.5': + optionalDependencies: + '@img/sharp-libvips-linux-riscv64': 1.3.4 + optional: true + + '@img/sharp-linux-s390x@0.35.5': + optionalDependencies: + '@img/sharp-libvips-linux-s390x': 1.3.4 + optional: true + + '@img/sharp-linux-x64@0.35.5': + optionalDependencies: + '@img/sharp-libvips-linux-x64': 1.3.4 + optional: true + + '@img/sharp-linuxmusl-arm64@0.35.5': + optionalDependencies: + '@img/sharp-libvips-linuxmusl-arm64': 1.3.4 + optional: true + + '@img/sharp-linuxmusl-x64@0.35.5': + optionalDependencies: + '@img/sharp-libvips-linuxmusl-x64': 1.3.4 + optional: true + + '@img/sharp-wasm32@0.35.5': + dependencies: + '@emnapi/runtime': 1.11.3 + optional: true + + '@img/sharp-webcontainers-wasm32@0.35.5': + dependencies: + '@img/sharp-wasm32': 0.35.5 + optional: true + + '@img/sharp-win32-arm64@0.35.5': + optional: true + + '@img/sharp-win32-ia32@0.35.5': + optional: true + + '@img/sharp-win32-x64@0.35.5': + optional: true + + '@jridgewell/gen-mapping@0.3.13': + dependencies: + '@jridgewell/sourcemap-codec': 1.6.0 + '@jridgewell/trace-mapping': 0.3.31 + + '@jridgewell/remapping@2.3.5': + dependencies: + '@jridgewell/gen-mapping': 0.3.13 + '@jridgewell/trace-mapping': 0.3.31 + + '@jridgewell/resolve-uri@3.1.2': {} + + '@jridgewell/sourcemap-codec@1.6.0': {} + + '@jridgewell/trace-mapping@0.3.31': + dependencies: + '@jridgewell/resolve-uri': 3.1.2 + '@jridgewell/sourcemap-codec': 1.6.0 + + '@jridgewell/trace-mapping@0.3.9': + dependencies: + '@jridgewell/resolve-uri': 3.1.2 + '@jridgewell/sourcemap-codec': 1.6.0 + + '@napi-rs/lzma-linux-x64-gnu@1.5.1': + optional: true + + '@panva/hkdf@1.2.1': {} + + '@polka/url@1.0.0-next.29': {} + + '@poppinss/colors@4.1.6': + dependencies: + kleur: 4.1.5 + + '@poppinss/dumper@0.6.5': + dependencies: + '@poppinss/colors': 4.1.6 + '@sindresorhus/is': 7.2.0 + supports-color: 10.2.2 + + '@poppinss/exception@1.2.3': {} + + '@rollup/rollup-android-arm-eabi@4.66.0': + optional: true + + '@rollup/rollup-android-arm64@4.66.0': + optional: true + + '@rollup/rollup-darwin-arm64@4.66.0': + optional: true + + '@rollup/rollup-darwin-x64@4.66.0': + optional: true + + '@rollup/rollup-freebsd-arm64@4.66.0': + optional: true + + '@rollup/rollup-freebsd-x64@4.66.0': + optional: true + + '@rollup/rollup-linux-arm-gnueabihf@4.66.0': + optional: true + + '@rollup/rollup-linux-arm-musleabihf@4.66.0': + optional: true + + '@rollup/rollup-linux-arm64-gnu@4.66.0': + optional: true + + '@rollup/rollup-linux-arm64-musl@4.66.0': + optional: true + + '@rollup/rollup-linux-loong64-gnu@4.66.0': + optional: true + + '@rollup/rollup-linux-loong64-musl@4.66.0': + optional: true + + '@rollup/rollup-linux-ppc64-gnu@4.66.0': + optional: true - typescript@5.9.3: - resolution: {integrity: sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==} - engines: {node: '>=14.17'} - hasBin: true + '@rollup/rollup-linux-ppc64-musl@4.66.0': + optional: true - uri-js@4.4.1: - resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==} + '@rollup/rollup-linux-riscv64-gnu@4.66.0': + optional: true - which@2.0.2: - resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==} - engines: {node: '>= 8'} - hasBin: true + '@rollup/rollup-linux-riscv64-musl@4.66.0': + optional: true - word-wrap@1.2.5: - resolution: {integrity: sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==} - engines: {node: '>=0.10.0'} + '@rollup/rollup-linux-s390x-gnu@4.66.0': + optional: true - yocto-queue@0.1.0: - resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==} - engines: {node: '>=10'} + '@rollup/rollup-linux-x64-gnu@4.66.0': + optional: true -snapshots: + '@rollup/rollup-linux-x64-musl@4.66.0': + optional: true - '@eslint-community/eslint-utils@4.10.1(eslint@9.39.5)': - dependencies: - eslint: 9.39.5 - eslint-visitor-keys: 3.4.3 + '@rollup/rollup-openbsd-x64@4.66.0': + optional: true - '@eslint-community/regexpp@4.12.2': {} + '@rollup/rollup-openharmony-arm64@4.66.0': + optional: true - '@eslint/config-array@0.21.2': - dependencies: - '@eslint/object-schema': 2.1.7 - debug: 4.4.3 - minimatch: 3.1.5 - transitivePeerDependencies: - - supports-color + '@rollup/rollup-win32-arm64-msvc@4.66.0': + optional: true - '@eslint/config-helpers@0.4.2': - dependencies: - '@eslint/core': 0.17.0 + '@rollup/rollup-win32-ia32-msvc@4.66.0': + optional: true - '@eslint/core@0.17.0': - dependencies: - '@types/json-schema': 7.0.15 + '@rollup/rollup-win32-x64-gnu@4.66.0': + optional: true - '@eslint/eslintrc@3.3.7': - dependencies: - ajv: 6.15.0 - debug: 4.4.3 - espree: 10.4.0 - globals: 14.0.0 - ignore: 5.3.2 - import-fresh: 3.3.1 - js-yaml: 4.3.2 - minimatch: 3.1.5 - strip-json-comments: 3.1.1 - transitivePeerDependencies: - - supports-color + '@rollup/rollup-win32-x64-msvc@4.66.0': + optional: true - '@eslint/js@9.39.5': {} + '@sindresorhus/is@7.2.0': {} - '@eslint/object-schema@2.1.7': {} + '@speed-highlight/core@1.2.24': {} - '@eslint/plugin-kit@0.4.1': + '@standard-schema/spec@1.1.0': {} + + '@sveltejs/acorn-typescript@1.0.13(acorn@8.19.0)': dependencies: - '@eslint/core': 0.17.0 - levn: 0.4.1 + acorn: 8.19.0 - '@humanfs/core@0.19.2': + '@sveltejs/adapter-cloudflare@7.2.9(@sveltejs/kit@2.60.1(@sveltejs/vite-plugin-svelte@5.1.1(svelte@5.55.7(@typescript-eslint/types@8.72.1))(vite@6.4.2(@types/node@22.20.5)))(svelte@5.55.7(@typescript-eslint/types@8.72.1))(typescript@5.9.3)(vite@6.4.2(@types/node@22.20.5)))(wrangler@4.155.0(@types/node@22.20.5))': dependencies: - '@humanfs/types': 0.15.0 + '@cloudflare/workers-types': 4.20260702.1 + '@sveltejs/kit': 2.60.1(@sveltejs/vite-plugin-svelte@5.1.1(svelte@5.55.7(@typescript-eslint/types@8.72.1))(vite@6.4.2(@types/node@22.20.5)))(svelte@5.55.7(@typescript-eslint/types@8.72.1))(typescript@5.9.3)(vite@6.4.2(@types/node@22.20.5)) + worktop: 0.8.0-next.18 + wrangler: 4.155.0(@types/node@22.20.5) - '@humanfs/node@0.16.8': + '@sveltejs/kit@2.60.1(@sveltejs/vite-plugin-svelte@5.1.1(svelte@5.55.7(@typescript-eslint/types@8.72.1))(vite@6.4.2(@types/node@22.20.5)))(svelte@5.55.7(@typescript-eslint/types@8.72.1))(typescript@5.9.3)(vite@6.4.2(@types/node@22.20.5))': dependencies: - '@humanfs/core': 0.19.2 - '@humanfs/types': 0.15.0 - '@humanwhocodes/retry': 0.4.3 + '@standard-schema/spec': 1.1.0 + '@sveltejs/acorn-typescript': 1.0.13(acorn@8.19.0) + '@sveltejs/vite-plugin-svelte': 5.1.1(svelte@5.55.7(@typescript-eslint/types@8.72.1))(vite@6.4.2(@types/node@22.20.5)) + '@types/cookie': 0.6.0 + acorn: 8.19.0 + cookie: 0.7.0 + devalue: 5.9.4 + esm-env: 1.2.2 + kleur: 4.1.5 + magic-string: 0.30.21 + mrmime: 2.0.1 + set-cookie-parser: 3.2.1 + sirv: 3.0.2 + svelte: 5.55.7(@typescript-eslint/types@8.72.1) + vite: 6.4.2(@types/node@22.20.5) + optionalDependencies: + typescript: 5.9.3 - '@humanfs/types@0.15.0': {} + '@sveltejs/load-config@0.2.3': {} - '@humanwhocodes/module-importer@1.0.1': {} + '@sveltejs/vite-plugin-svelte-inspector@4.0.1(@sveltejs/vite-plugin-svelte@5.1.1(svelte@5.55.7(@typescript-eslint/types@8.72.1))(vite@6.4.2(@types/node@22.20.5)))(svelte@5.55.7(@typescript-eslint/types@8.72.1))(vite@6.4.2(@types/node@22.20.5))': + dependencies: + '@sveltejs/vite-plugin-svelte': 5.1.1(svelte@5.55.7(@typescript-eslint/types@8.72.1))(vite@6.4.2(@types/node@22.20.5)) + debug: 4.4.3 + svelte: 5.55.7(@typescript-eslint/types@8.72.1) + vite: 6.4.2(@types/node@22.20.5) + transitivePeerDependencies: + - supports-color - '@humanwhocodes/retry@0.4.3': {} + '@sveltejs/vite-plugin-svelte@5.1.1(svelte@5.55.7(@typescript-eslint/types@8.72.1))(vite@6.4.2(@types/node@22.20.5))': + dependencies: + '@sveltejs/vite-plugin-svelte-inspector': 4.0.1(@sveltejs/vite-plugin-svelte@5.1.1(svelte@5.55.7(@typescript-eslint/types@8.72.1))(vite@6.4.2(@types/node@22.20.5)))(svelte@5.55.7(@typescript-eslint/types@8.72.1))(vite@6.4.2(@types/node@22.20.5)) + debug: 4.4.3 + deepmerge: 4.3.1 + kleur: 4.1.5 + magic-string: 0.30.21 + svelte: 5.55.7(@typescript-eslint/types@8.72.1) + vite: 6.4.2(@types/node@22.20.5) + vitefu: 1.1.3(vite@6.4.2(@types/node@22.20.5)) + transitivePeerDependencies: + - supports-color '@turbo/darwin-64@2.11.10': optional: true @@ -606,10 +2352,25 @@ snapshots: '@turbo/windows-arm64@2.11.10': optional: true + '@types/chai@5.2.3': + dependencies: + '@types/deep-eql': 4.0.2 + assertion-error: 2.0.1 + + '@types/cookie@0.6.0': {} + + '@types/deep-eql@4.0.2': {} + '@types/estree@1.0.9': {} '@types/json-schema@7.0.15': {} + '@types/node@22.20.5': + dependencies: + undici-types: 6.21.0 + + '@types/trusted-types@2.0.7': {} + '@typescript-eslint/eslint-plugin@8.72.1(@typescript-eslint/parser@8.72.1(eslint@9.39.5)(typescript@5.9.3))(eslint@9.39.5)(typescript@5.9.3)': dependencies: '@eslint-community/regexpp': 4.12.2 @@ -701,6 +2462,48 @@ snapshots: '@typescript-eslint/types': 8.72.1 eslint-visitor-keys: 5.0.1 + '@vitest/expect@3.2.7': + dependencies: + '@types/chai': 5.2.3 + '@vitest/spy': 3.2.7 + '@vitest/utils': 3.2.7 + chai: 5.3.3 + tinyrainbow: 2.0.0 + + '@vitest/mocker@3.2.7(vite@6.4.2(@types/node@22.20.5))': + dependencies: + '@vitest/spy': 3.2.7 + estree-walker: 3.0.3 + magic-string: 0.30.21 + optionalDependencies: + vite: 6.4.2(@types/node@22.20.5) + + '@vitest/pretty-format@3.2.7': + dependencies: + tinyrainbow: 2.0.0 + + '@vitest/runner@3.2.7': + dependencies: + '@vitest/utils': 3.2.7 + pathe: 2.0.3 + strip-literal: 3.1.0 + + '@vitest/snapshot@3.2.7': + dependencies: + '@vitest/pretty-format': 3.2.7 + magic-string: 0.30.21 + pathe: 2.0.3 + + '@vitest/spy@3.2.7': + dependencies: + tinyspy: 4.0.6 + + '@vitest/utils@3.2.7': + dependencies: + '@vitest/pretty-format': 3.2.7 + loupe: 3.2.1 + tinyrainbow: 2.0.0 + acorn-jsx@5.3.2(acorn@8.19.0): dependencies: acorn: 8.19.0 @@ -720,10 +2523,18 @@ snapshots: argparse@2.0.1: {} + aria-query@5.3.1: {} + + assertion-error@2.0.1: {} + + axobject-query@4.1.0: {} + balanced-match@1.0.2: {} balanced-match@4.0.4: {} + blake3-wasm@2.1.5: {} + brace-expansion@1.1.21: dependencies: balanced-match: 1.0.2 @@ -733,13 +2544,31 @@ snapshots: dependencies: balanced-match: 4.0.4 + cac@6.7.14: {} + callsites@3.1.0: {} + chai@5.3.3: + dependencies: + assertion-error: 2.0.1 + check-error: 2.1.3 + deep-eql: 5.0.2 + loupe: 3.2.1 + pathval: 2.0.1 + chalk@4.1.2: dependencies: ansi-styles: 4.3.0 supports-color: 7.2.0 + check-error@2.1.3: {} + + chokidar@4.0.3: + dependencies: + readdirp: 4.1.2 + + clsx@2.1.1: {} + color-convert@2.0.1: dependencies: color-name: 1.1.4 @@ -748,6 +2577,10 @@ snapshots: concat-map@0.0.1: {} + cookie@0.7.0: {} + + cookie@1.1.1: {} + cross-spawn@7.0.6: dependencies: path-key: 3.1.1 @@ -758,8 +2591,78 @@ snapshots: dependencies: ms: 2.1.3 + deep-eql@5.0.2: {} + deep-is@0.1.4: {} + deepmerge@4.3.1: {} + + detect-libc@2.1.2: {} + + devalue@5.9.4: {} + + error-stack-parser-es@1.0.5: {} + + es-module-lexer@1.7.0: {} + + esbuild@0.25.12: + optionalDependencies: + '@esbuild/aix-ppc64': 0.25.12 + '@esbuild/android-arm': 0.25.12 + '@esbuild/android-arm64': 0.25.12 + '@esbuild/android-x64': 0.25.12 + '@esbuild/darwin-arm64': 0.25.12 + '@esbuild/darwin-x64': 0.25.12 + '@esbuild/freebsd-arm64': 0.25.12 + '@esbuild/freebsd-x64': 0.25.12 + '@esbuild/linux-arm': 0.25.12 + '@esbuild/linux-arm64': 0.25.12 + '@esbuild/linux-ia32': 0.25.12 + '@esbuild/linux-loong64': 0.25.12 + '@esbuild/linux-mips64el': 0.25.12 + '@esbuild/linux-ppc64': 0.25.12 + '@esbuild/linux-riscv64': 0.25.12 + '@esbuild/linux-s390x': 0.25.12 + '@esbuild/linux-x64': 0.25.12 + '@esbuild/netbsd-arm64': 0.25.12 + '@esbuild/netbsd-x64': 0.25.12 + '@esbuild/openbsd-arm64': 0.25.12 + '@esbuild/openbsd-x64': 0.25.12 + '@esbuild/openharmony-arm64': 0.25.12 + '@esbuild/sunos-x64': 0.25.12 + '@esbuild/win32-arm64': 0.25.12 + '@esbuild/win32-ia32': 0.25.12 + '@esbuild/win32-x64': 0.25.12 + + esbuild@0.28.2: + optionalDependencies: + '@esbuild/aix-ppc64': 0.28.2 + '@esbuild/android-arm': 0.28.2 + '@esbuild/android-arm64': 0.28.2 + '@esbuild/android-x64': 0.28.2 + '@esbuild/darwin-arm64': 0.28.2 + '@esbuild/darwin-x64': 0.28.2 + '@esbuild/freebsd-arm64': 0.28.2 + '@esbuild/freebsd-x64': 0.28.2 + '@esbuild/linux-arm': 0.28.2 + '@esbuild/linux-arm64': 0.28.2 + '@esbuild/linux-ia32': 0.28.2 + '@esbuild/linux-loong64': 0.28.2 + '@esbuild/linux-mips64el': 0.28.2 + '@esbuild/linux-ppc64': 0.28.2 + '@esbuild/linux-riscv64': 0.28.2 + '@esbuild/linux-s390x': 0.28.2 + '@esbuild/linux-x64': 0.28.2 + '@esbuild/netbsd-arm64': 0.28.2 + '@esbuild/netbsd-x64': 0.28.2 + '@esbuild/openbsd-arm64': 0.28.2 + '@esbuild/openbsd-x64': 0.28.2 + '@esbuild/openharmony-arm64': 0.28.2 + '@esbuild/sunos-x64': 0.28.2 + '@esbuild/win32-arm64': 0.28.2 + '@esbuild/win32-ia32': 0.28.2 + '@esbuild/win32-x64': 0.28.2 + escape-string-regexp@4.0.0: {} eslint-scope@8.4.0: @@ -812,6 +2715,8 @@ snapshots: transitivePeerDependencies: - supports-color + esm-env@1.2.2: {} + espree@10.4.0: dependencies: acorn: 8.19.0 @@ -822,14 +2727,26 @@ snapshots: dependencies: estraverse: 5.3.0 + esrap@2.4.0(@typescript-eslint/types@8.72.1): + dependencies: + '@jridgewell/sourcemap-codec': 1.6.0 + optionalDependencies: + '@typescript-eslint/types': 8.72.1 + esrecurse@4.3.0: dependencies: estraverse: 5.3.0 estraverse@5.3.0: {} + estree-walker@3.0.3: + dependencies: + '@types/estree': 1.0.9 + esutils@2.0.3: {} + expect-type@1.4.0: {} + fast-deep-equal@3.1.3: {} fast-json-stable-stringify@2.1.0: {} @@ -856,6 +2773,9 @@ snapshots: flatted@3.4.4: {} + fsevents@2.3.3: + optional: true + glob-parent@6.0.2: dependencies: is-glob: 4.0.3 @@ -881,8 +2801,16 @@ snapshots: dependencies: is-extglob: 2.1.1 + is-reference@3.0.3: + dependencies: + '@types/estree': 1.0.9 + isexe@2.0.0: {} + jose@6.2.13: {} + + js-tokens@9.0.1: {} + js-yaml@4.3.2: dependencies: argparse: 2.0.1 @@ -897,17 +2825,40 @@ snapshots: dependencies: json-buffer: 3.0.1 + kleur@4.1.5: {} + levn@0.4.1: dependencies: prelude-ls: 1.2.1 type-check: 0.4.0 + locate-character@3.0.0: {} + locate-path@6.0.0: dependencies: p-locate: 5.0.0 lodash.merge@4.6.2: {} + loupe@3.2.1: {} + + magic-string@0.30.21: + dependencies: + '@jridgewell/sourcemap-codec': 1.6.0 + + miniflare@5.20261023.2-beta(@types/node@22.20.5): + dependencies: + '@cspotcode/source-map-support': 0.8.1 + sharp: 0.35.5(@types/node@22.20.5) + undici: 7.30.1 + workerd: 1.20261023.1 + ws: 8.21.0 + youch: 4.1.0-beta.10 + transitivePeerDependencies: + - '@types/node' + - bufferutil + - utf-8-validate + minimatch@10.2.6: dependencies: brace-expansion: 5.0.12 @@ -916,10 +2867,18 @@ snapshots: dependencies: brace-expansion: 1.1.21 + mri@1.2.0: {} + + mrmime@2.0.1: {} + ms@2.1.3: {} + nanoid@3.3.20: {} + natural-compare@1.4.0: {} + oauth4webapi@3.8.8: {} + optionator@0.9.4: dependencies: deep-is: 0.1.4 @@ -945,37 +2904,210 @@ snapshots: path-key@3.1.1: {} + path-to-regexp@6.3.0: {} + + pathe@2.0.3: {} + + pathval@2.0.1: {} + + picocolors@1.1.1: {} + picomatch@4.0.7: {} + postcss@8.5.32: + dependencies: + nanoid: 3.3.20 + picocolors: 1.1.1 + source-map-js: 1.2.2 + + preact-render-to-string@6.5.11(preact@10.24.3): + dependencies: + preact: 10.24.3 + + preact@10.24.3: {} + prelude-ls@1.2.1: {} + prettier-plugin-svelte@3.5.2(prettier@3.9.10)(svelte@5.55.7(@typescript-eslint/types@8.72.1)): + dependencies: + prettier: 3.9.10 + svelte: 5.55.7(@typescript-eslint/types@8.72.1) + + prettier@3.9.10: {} + punycode@2.3.1: {} + readdirp@4.1.2: {} + + regexparam@3.0.0: {} + resolve-from@4.0.0: {} + rollup@4.66.0: + dependencies: + '@types/estree': 1.0.9 + optionalDependencies: + '@napi-rs/lzma-linux-x64-gnu': 1.5.1 + '@rollup/rollup-android-arm-eabi': 4.66.0 + '@rollup/rollup-android-arm64': 4.66.0 + '@rollup/rollup-darwin-arm64': 4.66.0 + '@rollup/rollup-darwin-x64': 4.66.0 + '@rollup/rollup-freebsd-arm64': 4.66.0 + '@rollup/rollup-freebsd-x64': 4.66.0 + '@rollup/rollup-linux-arm-gnueabihf': 4.66.0 + '@rollup/rollup-linux-arm-musleabihf': 4.66.0 + '@rollup/rollup-linux-arm64-gnu': 4.66.0 + '@rollup/rollup-linux-arm64-musl': 4.66.0 + '@rollup/rollup-linux-loong64-gnu': 4.66.0 + '@rollup/rollup-linux-loong64-musl': 4.66.0 + '@rollup/rollup-linux-ppc64-gnu': 4.66.0 + '@rollup/rollup-linux-ppc64-musl': 4.66.0 + '@rollup/rollup-linux-riscv64-gnu': 4.66.0 + '@rollup/rollup-linux-riscv64-musl': 4.66.0 + '@rollup/rollup-linux-s390x-gnu': 4.66.0 + '@rollup/rollup-linux-x64-gnu': 4.66.0 + '@rollup/rollup-linux-x64-musl': 4.66.0 + '@rollup/rollup-openbsd-x64': 4.66.0 + '@rollup/rollup-openharmony-arm64': 4.66.0 + '@rollup/rollup-win32-arm64-msvc': 4.66.0 + '@rollup/rollup-win32-ia32-msvc': 4.66.0 + '@rollup/rollup-win32-x64-gnu': 4.66.0 + '@rollup/rollup-win32-x64-msvc': 4.66.0 + fsevents: 2.3.3 + + sade@1.8.1: + dependencies: + mri: 1.2.0 + semver@7.8.5: {} + set-cookie-parser@2.7.3: {} + + set-cookie-parser@3.2.1: {} + + sharp@0.35.5(@types/node@22.20.5): + dependencies: + '@img/colour': 1.1.0 + detect-libc: 2.1.2 + semver: 7.8.5 + optionalDependencies: + '@img/sharp-darwin-arm64': 0.35.5 + '@img/sharp-darwin-x64': 0.35.5 + '@img/sharp-freebsd-wasm32': 0.35.5 + '@img/sharp-libvips-darwin-arm64': 1.3.4 + '@img/sharp-libvips-darwin-x64': 1.3.4 + '@img/sharp-libvips-linux-arm': 1.3.4 + '@img/sharp-libvips-linux-arm64': 1.3.4 + '@img/sharp-libvips-linux-ppc64': 1.3.4 + '@img/sharp-libvips-linux-riscv64': 1.3.4 + '@img/sharp-libvips-linux-s390x': 1.3.4 + '@img/sharp-libvips-linux-x64': 1.3.4 + '@img/sharp-libvips-linuxmusl-arm64': 1.3.4 + '@img/sharp-libvips-linuxmusl-x64': 1.3.4 + '@img/sharp-linux-arm': 0.35.5 + '@img/sharp-linux-arm64': 0.35.5 + '@img/sharp-linux-ppc64': 0.35.5 + '@img/sharp-linux-riscv64': 0.35.5 + '@img/sharp-linux-s390x': 0.35.5 + '@img/sharp-linux-x64': 0.35.5 + '@img/sharp-linuxmusl-arm64': 0.35.5 + '@img/sharp-linuxmusl-x64': 0.35.5 + '@img/sharp-webcontainers-wasm32': 0.35.5 + '@img/sharp-win32-arm64': 0.35.5 + '@img/sharp-win32-ia32': 0.35.5 + '@img/sharp-win32-x64': 0.35.5 + '@types/node': 22.20.5 + shebang-command@2.0.0: dependencies: shebang-regex: 3.0.0 shebang-regex@3.0.0: {} + siginfo@2.0.0: {} + + sirv@3.0.2: + dependencies: + '@polka/url': 1.0.0-next.29 + mrmime: 2.0.1 + totalist: 3.0.1 + + source-map-js@1.2.2: {} + + stackback@0.0.2: {} + + std-env@3.10.0: {} + strip-json-comments@3.1.1: {} + strip-literal@3.1.0: + dependencies: + js-tokens: 9.0.1 + + supports-color@10.2.2: {} + supports-color@7.2.0: dependencies: has-flag: 4.0.0 + svelte-check@4.7.7(picomatch@4.0.7)(svelte@5.55.7(@typescript-eslint/types@8.72.1))(typescript@5.9.3): + dependencies: + '@jridgewell/trace-mapping': 0.3.31 + '@sveltejs/load-config': 0.2.3 + chokidar: 4.0.3 + fdir: 6.5.0(picomatch@4.0.7) + picocolors: 1.1.1 + sade: 1.8.1 + svelte: 5.55.7(@typescript-eslint/types@8.72.1) + typescript: 5.9.3 + transitivePeerDependencies: + - picomatch + + svelte@5.55.7(@typescript-eslint/types@8.72.1): + dependencies: + '@jridgewell/remapping': 2.3.5 + '@jridgewell/sourcemap-codec': 1.6.0 + '@sveltejs/acorn-typescript': 1.0.13(acorn@8.19.0) + '@types/estree': 1.0.9 + '@types/trusted-types': 2.0.7 + acorn: 8.19.0 + aria-query: 5.3.1 + axobject-query: 4.1.0 + clsx: 2.1.1 + devalue: 5.9.4 + esm-env: 1.2.2 + esrap: 2.4.0(@typescript-eslint/types@8.72.1) + is-reference: 3.0.3 + locate-character: 3.0.0 + magic-string: 0.30.21 + zimmerframe: 1.1.5 + transitivePeerDependencies: + - '@typescript-eslint/types' + + tinybench@2.9.0: {} + + tinyexec@0.3.2: {} + tinyglobby@0.2.17: dependencies: fdir: 6.5.0(picomatch@4.0.7) picomatch: 4.0.7 + tinypool@1.1.1: {} + + tinyrainbow@2.0.0: {} + + tinyspy@4.0.6: {} + + totalist@3.0.1: {} + ts-api-utils@2.5.0(typescript@5.9.3): dependencies: typescript: 5.9.3 + tslib@2.8.1: + optional: true + turbo@2.11.10: optionalDependencies: '@turbo/darwin-64': 2.11.10 @@ -991,14 +3123,152 @@ snapshots: typescript@5.9.3: {} + undici-types@6.21.0: {} + + undici@7.30.1: {} + + unenv@2.0.0-rc.24: + dependencies: + pathe: 2.0.3 + uri-js@4.4.1: dependencies: punycode: 2.3.1 + vite-node@3.2.4(@types/node@22.20.5): + dependencies: + cac: 6.7.14 + debug: 4.4.3 + es-module-lexer: 1.7.0 + pathe: 2.0.3 + vite: 6.4.2(@types/node@22.20.5) + transitivePeerDependencies: + - '@types/node' + - jiti + - less + - lightningcss + - sass + - sass-embedded + - stylus + - sugarss + - supports-color + - terser + - tsx + - yaml + + vite@6.4.2(@types/node@22.20.5): + dependencies: + esbuild: 0.25.12 + fdir: 6.5.0(picomatch@4.0.7) + picomatch: 4.0.7 + postcss: 8.5.32 + rollup: 4.66.0 + tinyglobby: 0.2.17 + optionalDependencies: + '@types/node': 22.20.5 + fsevents: 2.3.3 + + vitefu@1.1.3(vite@6.4.2(@types/node@22.20.5)): + optionalDependencies: + vite: 6.4.2(@types/node@22.20.5) + + vitest@3.2.7(@types/node@22.20.5): + dependencies: + '@types/chai': 5.2.3 + '@vitest/expect': 3.2.7 + '@vitest/mocker': 3.2.7(vite@6.4.2(@types/node@22.20.5)) + '@vitest/pretty-format': 3.2.7 + '@vitest/runner': 3.2.7 + '@vitest/snapshot': 3.2.7 + '@vitest/spy': 3.2.7 + '@vitest/utils': 3.2.7 + chai: 5.3.3 + debug: 4.4.3 + expect-type: 1.4.0 + magic-string: 0.30.21 + pathe: 2.0.3 + picomatch: 4.0.7 + std-env: 3.10.0 + tinybench: 2.9.0 + tinyexec: 0.3.2 + tinyglobby: 0.2.17 + tinypool: 1.1.1 + tinyrainbow: 2.0.0 + vite: 6.4.2(@types/node@22.20.5) + vite-node: 3.2.4(@types/node@22.20.5) + why-is-node-running: 2.3.0 + optionalDependencies: + '@types/node': 22.20.5 + transitivePeerDependencies: + - jiti + - less + - lightningcss + - msw + - sass + - sass-embedded + - stylus + - sugarss + - supports-color + - terser + - tsx + - yaml + which@2.0.2: dependencies: isexe: 2.0.0 + why-is-node-running@2.3.0: + dependencies: + siginfo: 2.0.0 + stackback: 0.0.2 + word-wrap@1.2.5: {} + workerd@1.20261023.1: + optionalDependencies: + '@cloudflare/workerd-darwin-64': 1.20261023.1 + '@cloudflare/workerd-darwin-arm64': 1.20261023.1 + '@cloudflare/workerd-linux-64': 1.20261023.1 + '@cloudflare/workerd-linux-arm64': 1.20261023.1 + '@cloudflare/workerd-windows-64': 1.20261023.1 + + worktop@0.8.0-next.18: + dependencies: + mrmime: 2.0.1 + regexparam: 3.0.0 + + wrangler@4.155.0(@types/node@22.20.5): + dependencies: + '@cloudflare/kv-asset-handler': 0.5.0 + '@cloudflare/unenv-preset': 2.16.2(unenv@2.0.0-rc.24)(workerd@1.20261023.1) + blake3-wasm: 2.1.5 + esbuild: 0.28.2 + miniflare: 5.20261023.2-beta(@types/node@22.20.5) + path-to-regexp: 6.3.0 + unenv: 2.0.0-rc.24 + workerd: 1.20261023.1 + optionalDependencies: + fsevents: 2.3.3 + transitivePeerDependencies: + - '@types/node' + - bufferutil + - utf-8-validate + + ws@8.21.0: {} + yocto-queue@0.1.0: {} + + youch-core@0.3.3: + dependencies: + '@poppinss/exception': 1.2.3 + error-stack-parser-es: 1.0.5 + + youch@4.1.0-beta.10: + dependencies: + '@poppinss/colors': 4.1.6 + '@poppinss/dumper': 0.6.5 + '@speed-highlight/core': 1.2.24 + cookie: 1.1.1 + youch-core: 0.3.3 + + zimmerframe@1.1.5: {} diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index a335faa..1da3398 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -11,3 +11,9 @@ onlyBuiltDependencies: - workerd - sharp +# The upstream example's one override this tree still needs: SvelteKit 2 +# depends on cookie@^0.6, and 0.7.0 is the release that refuses out-of-bounds +# characters in a cookie's name, path and domain (CVE-2024-47764). The +# example's other overrides are floors the lockfile already resolves above. +overrides: + "cookie@0": 0.7.0 diff --git a/specs/epics/README.md b/specs/epics/README.md index 121219b..4d34ce9 100644 --- a/specs/epics/README.md +++ b/specs/epics/README.md @@ -7,6 +7,6 @@ folder is the adoption; the merge creates the epic in the workspace. | Epic | Cluster | Status | What it is | |------|---------|--------|------------| -| [`sveltekit-auth/`](./sveltekit-auth/) | **SU** | In progress (SU0) | Auth.js's SvelteKit example — sign-in through any of 26 OAuth providers, each offered once its keys are stored, a protected page, JWT sessions with no database — on Cloudflare Workers + Static Assets, and an Orun baseline that instantiates it in one landing | +| [`sveltekit-auth/`](./sveltekit-auth/) | **SU** | In progress (SU1) | Auth.js's SvelteKit example — sign-in through any of 26 OAuth providers, each offered once its keys are stored, a protected page, JWT sessions with no database — on Cloudflare Workers + Static Assets, and an Orun baseline that instantiates it in one landing | As-built ≠ intent: what shipped lives in each epic's `IMPLEMENTATION-STATUS.md`. diff --git a/specs/epics/sveltekit-auth/IMPLEMENTATION-STATUS.md b/specs/epics/sveltekit-auth/IMPLEMENTATION-STATUS.md index aaa9790..218a93f 100644 --- a/specs/epics/sveltekit-auth/IMPLEMENTATION-STATUS.md +++ b/specs/epics/sveltekit-auth/IMPLEMENTATION-STATUS.md @@ -2,12 +2,32 @@ | Milestone | Status | Shipped in | |---|---|---| -| SU0 — the spec | In progress | | -| SU1 — the auth app on Workers | Not started | | +| SU0 — the spec | ✅ Shipped | [#1](https://github.com/sourceplane/sveltekit-auth/pull/1) | +| SU1 — the auth app on Workers | In progress | | | SU2 — the data | Not needed: JWT sessions persist nothing | — | | SU3 — ready to instantiate | Not started | | | SU4 — a baseline | Not started | | +## What is proven, and how + +| Claim | Proven by | +|---|---| +| The app builds into one Worker with Static Assets (702 KiB, 162 KiB gzipped) | `pnpm build` + `wrangler deploy --dry-run` | +| The providers and their keys (all 26, in upstream's order; a blank key is no key; Auth0 needs its issuer, WorkOS its connection), the bindings winning over the dynamic env, the site's name | `apps/web/src/server/*.test.ts`, `apps/web/src/site.test.ts` | +| The secret step: a verify lane pushes nothing; a first deploy mints a 43-character key that appears in no argument and no log; an existing key is kept; a failed list refuses; a stored key is used as is; the local `.env` is merged, 0600 | `apps/web/src/worker-secrets.test.ts`, against a stand-in `wrangler` | +| Served by `wrangler dev` and `vite dev`: with no AUTH_SECRET `/auth/session` fails; with one every page renders, `/auth/session` is null, `/signin` says what to connect and its post goes back there, `/protected` denies; with GitHub's keys `/signin` offers GitHub and its post is GitHub's authorize URL with this site's callback; a session cookie sealed with the secret opens `/protected`; sign-out clears it | by hand (SU1); Baseline CI's end-to-end tier, next (SU4) | +| The secret push and the deploy on a real account | only a live bootstrap (risk SU-A) | + ## Departures from the upstream example -Recorded as each lands. +1. **`@sveltejs/adapter-cloudflare`** in place of `adapter-auto`, with `wrangler.jsonc` (`nodejs_compat`, the assets binding, observability) and the upstream aliases kept. +2. **Exact pins** — `@auth/sveltekit@1.11.3` (upstream: `latest`), SvelteKit `2.60.1`, Svelte `5.55.7`, Vite `6.4.2`, `@sveltejs/vite-plugin-svelte` `5.1.1` (upstream's floors, exact). Of upstream's pnpm overrides only `cookie@0 → 0.7.0` is still needed (`pnpm-workspace.yaml`); the rest are floors the lockfile resolves above. SvelteKit stays on 2: `@auth/sveltekit` peers `^1 || ^2`. +3. **Providers by their keys** (`src/server/providers.ts`): the same 26, in upstream's order, with upstream's options for Azure AD B2C, BoxyHQ SAML and WorkOS; each registered only when every key it takes is set. Upstream registers all 26, so a fresh deployment showed 26 buttons that failed. +4. **The configuration is lazy** (`SvelteKitAuth(async (event) => …)`, `src/auth.ts`) and reads the Worker's bindings first (`src/server/env.ts`), so a provider's keys take effect with the deploy that pushes them, and `vite dev` and `wrangler dev` read the same `.env`. +5. **A `/signin` page**: one button per connected provider (Auth.js's `SignIn` component, posting to upstream's action), or, with none, the notice, GitHub's keys, and every provider's keys. The action sends a visitor back to it when nothing is connected. +6. **AUTH_SECRET is generated** on each environment's Worker by the deploy (`tooling/wire/worker-secrets.mjs`) and kept by every later one; an Orun secret of the same name wins. Locally, `pnpm secret:dev` writes one into `.env`. +7. **`<title>`s and the site's name** (`src/site.ts`): the home page's heading is the site's name; every page has a title. +8. **The footer's `/policy` link is dropped**: upstream links a page it does not have. +9. `.env.example` is upstream's, its comments added; `.env` is the local file for `vite dev` and `wrangler dev` alike (wrangler reads `.env` when there is no `.dev.vars`). `vite.config.js` becomes `vite.config.ts` with vitest's config. Upstream's ESLint 8 config is not carried (it had no lint script); `pnpm lint` is upstream's Prettier config, checked. +10. **Tests**, the monorepo wrapper and the deploy contract are new. The smoke reads `/` and `/auth/session`, read-only. +11. Kept as upstream wrote it: the signed-out avatar from `api.dicebear.com` (risk SU-F), the footer's links, `trustHost: true`. diff --git a/specs/epics/sveltekit-auth/README.md b/specs/epics/sveltekit-auth/README.md index 3b4e4f1..c0a1035 100644 --- a/specs/epics/sveltekit-auth/README.md +++ b/specs/epics/sveltekit-auth/README.md @@ -13,7 +13,7 @@ the monorepo wrapper, tests and the deploy contract. | Field | Value | |-------|-------| -| Status | In progress — SU0 | +| Status | In progress — SU0 (#1) shipped; SU1 | | Cluster | **SU** (SU0, SU1, SU3, SU4; SU2, the data rung, is not needed) | | Owner(s) | `apps/web` · `tooling/wire/worker-secrets.mjs` | | Builds on | `sveltekit-boilerplate`: its scaffolding, its adapter-cloudflare build and its one-landing blueprint; the reference starters' `worker-secrets.mjs` | diff --git a/tooling/wire/worker-secrets.mjs b/tooling/wire/worker-secrets.mjs new file mode 100644 index 0000000..f1e1306 --- /dev/null +++ b/tooling/wire/worker-secrets.mjs @@ -0,0 +1,167 @@ +#!/usr/bin/env node +// Worker SECRETS from the job's environment (zero-dependency). +// +// Some values must reach the Worker at request time and never a bundle: the +// key Auth.js encrypts its session cookie with (AUTH_SECRET) and the sign-in +// providers' client ids and secrets. The deploy lane has the providers' keys +// in its environment (Orun secrets the component's `optionalSecretEnv` +// resolves), and this hands the named variables that are set to +// `wrangler secret bulk` as JSON over stdin, so no value is ever on a command +// line or in a log. +// +// node worker-secrets.mjs --worker <worker-name> [--config wrangler.jsonc] \ +// --secret AUTH_GITHUB_ID [--secret …] [--generate AUTH_SECRET …] +// +// --generate <NAME> a secret the Worker must have and nobody types: when +// the job's environment does not set it and the Worker +// does not already carry it (`wrangler secret list`), a +// fresh 32-byte random value is pushed with the others. +// So the FIRST deploy of an environment mints it, every +// later deploy keeps it, and a value stored as an Orun +// secret (the same name in the environment) wins. A +// Worker that does not exist yet carries nothing; any +// other failure to read its secrets stops the deploy +// rather than replace a key every session depends on. +// --dev-vars <file> write the same secrets as KEY=value lines instead +// (wrangler dev and `vite dev` read .env as the +// Worker's secrets), keeping the file's other lines and +// any generated value it already holds +// +// The --secret values are OPTIONAL, like the Orun secrets they come from: a +// variable that is not set is skipped, named, and the site reads its absence +// at request time (src/server/providers.ts offers only the providers whose +// keys are set). Only a job that can deploy holds a Cloudflare credential +// (the composition's deploy profile binds CLOUDFLARE_API_TOKEN; its verify +// profiles bind nothing), so without one this says so and exits 0: a verify +// lane builds exactly what the deploy lane does and pushes nothing. +import * as fs from "node:fs"; +import { randomBytes } from "node:crypto"; +import { spawnSync } from "node:child_process"; + +function arg(name) { + const i = process.argv.indexOf(`--${name}`); + return i >= 0 ? process.argv[i + 1] : undefined; +} +function args(name) { + const out = []; + process.argv.forEach((a, i) => { + if (a === `--${name}` && process.argv[i + 1] !== undefined) out.push(process.argv[i + 1]); + }); + return out; +} + +const worker = arg("worker"); +const config = arg("config"); +const devVars = arg("dev-vars"); +const names = args("secret"); +const generated = args("generate"); +if (names.length + generated.length === 0 || (!worker && !devVars)) { + console.error( + "usage: worker-secrets.mjs --secret NAME [--secret …] [--generate NAME …] (--worker <name> [--config <file>] | --dev-vars <file>)", + ); + process.exit(2); +} +for (const name of [...names, ...generated]) { + if (!/^[A-Z][A-Z0-9_]*$/.test(name)) { + console.error(`worker-secrets: ${name} is not an environment variable name`); + process.exit(2); + } +} + +const fresh = () => randomBytes(32).toString("base64url"); +const isSet = (v) => typeof v === "string" && v.length > 0; + +const secrets = {}; +const unset = []; +for (const name of [...new Set([...names, ...generated])]) { + const value = process.env[name]; + if (isSet(value)) secrets[name] = value; + else if (!generated.includes(name)) unset.push(name); +} +if (unset.length > 0) console.log(`worker-secrets: not set, skipped: ${unset.join(", ")}`); +// Generated names the environment does not set; decided below, per target. +const toGenerate = generated.filter((n) => !(n in secrets)); + +if (devVars) { + // Keep what the file already says: an owner's own lines, and a generated + // value it holds (a new one would sign every local session out). + const kept = new Map(); + if (fs.existsSync(devVars)) { + for (const line of fs.readFileSync(devVars, "utf8").split("\n")) { + const m = /^([A-Z][A-Z0-9_]*)=(.*)$/.exec(line); + if (m) kept.set(m[1], m[2]); + } + } + for (const name of toGenerate) { + const old = kept.get(name); + if (old && old !== '""') continue; + secrets[name] = fresh(); + } + for (const [k, v] of Object.entries(secrets)) kept.set(k, JSON.stringify(v)); + // KEY=value, one per line, double-quoted (dotenv's syntax, which wrangler + // reads): a JSON string is a valid dotenv double-quoted value. + const body = [...kept.entries()].map(([k, v]) => `${k}=${v}`).join("\n"); + fs.writeFileSync(devVars, `${body}\n`, { mode: 0o600 }); + const wrote = Object.keys(secrets); + console.log(`worker-secrets: wrote ${wrote.length ? wrote.join(", ") : "nothing new"} to ${devVars}`); + process.exit(0); +} + +const scope = ["--name", worker, ...(config ? ["--config", config] : [])]; + +if (!process.env.CLOUDFLARE_API_TOKEN) { + const all = [...Object.keys(secrets), ...toGenerate]; + console.log(`worker-secrets: no Cloudflare credential in this job (a verify lane) — ${all.join(", ")} reach ${worker} from the deploy lane`); + process.exit(0); +} + +if (toGenerate.length > 0) { + // What the Worker already carries. A Worker that has never been deployed + // has no secrets to list (Cloudflare answers 10007, wrangler says it does + // not exist); anything else is a question this cannot answer, and minting a + // new key on a guess would sign out every session the old one sealed. + const listed = spawnSync("pnpm", ["exec", "wrangler", "secret", "list", ...scope, "--format", "json"], { + encoding: "utf8", + stdio: ["ignore", "pipe", "pipe"], + }); + let present = []; + if (listed.status === 0) { + try { + present = JSON.parse(listed.stdout.slice(listed.stdout.indexOf("["))).map((s) => s.name); + } catch { + console.error(`worker-secrets: could not read the secrets ${worker} carries: ${listed.stdout.trim().slice(0, 200)}`); + process.exit(1); + } + } else { + const said = `${listed.stdout}\n${listed.stderr}`; + if (!/10007|does not exist|not found/i.test(said)) { + console.error(`worker-secrets: could not list the secrets ${worker} carries — refusing to mint a replacement:`); + console.error(said.trim().split("\n").slice(-5).join("\n")); + process.exit(listed.status ?? 1); + } + console.log(`worker-secrets: ${worker} does not exist yet; it carries no secrets`); + } + for (const name of toGenerate) { + if (present.includes(name)) console.log(`worker-secrets: ${name} already on ${worker}, kept`); + else { + secrets[name] = fresh(); + console.log(`worker-secrets: ${name} generated for ${worker}`); + } + } +} + +const set = Object.keys(secrets); +if (set.length === 0) { + console.log("worker-secrets: nothing to set"); + process.exit(0); +} +const list = set.join(", "); +const result = spawnSync("pnpm", ["exec", "wrangler", "secret", "bulk", ...scope], { + input: JSON.stringify(secrets), + stdio: ["pipe", "inherit", "inherit"], +}); +if (result.status !== 0) { + console.error(`worker-secrets: wrangler secret bulk failed for ${worker}`); + process.exit(result.status ?? 1); +} +console.log(`worker-secrets: ${list} set on ${worker}`);