diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5eda294a..a6bf6646 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,6 +12,8 @@ permissions: env: GO_VERSION: "1.26" GOLANGCI_LINT_VERSION: v2.15.0 + # Exact release, at least 48 hours old when pinned (company package-age policy). + NODE_VERSION: "22.23.4" jobs: build-and-unit-test: @@ -113,6 +115,33 @@ jobs: - name: Run govulncheck run: make vuln + dashboard: + name: Dashboard + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + + - name: Set up Node + uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 + with: + node-version: ${{ env.NODE_VERSION }} + cache: npm + cache-dependency-path: web/dashboard/package-lock.json + + - name: Set up Go + uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0 + with: + go-version: ${{ env.GO_VERSION }} + check-latest: true + cache: true + + - name: Install, lint, typecheck and build + run: make dashboard + + - name: Check the build embeds and serves + run: go test -v -run 'TestEmbeddedBuild|TestServesBuild' ./internal/webui/ + integration-tests: name: Integration Tests runs-on: ubuntu-latest diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b6b6108c..353c7f1d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,7 +9,9 @@ on: - .github/workflows/release.yml - scripts/dist.sh - internal/version/** + - internal/webui/** - cmd/gfsctl/** + - web/dashboard/** - go.mod workflow_dispatch: @@ -18,6 +20,8 @@ permissions: env: GO_VERSION: "1.26" + # Exact release, at least 48 hours old when pinned (company package-age policy). + NODE_VERSION: "22.23.4" jobs: build: @@ -38,6 +42,14 @@ jobs: check-latest: true cache: false + - name: Set up Node + uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 + with: + node-version: ${{ env.NODE_VERSION }} + + - name: Build the dashboard + run: make dashboard + - name: Build archives run: scripts/dist.sh @@ -51,6 +63,15 @@ jobs: echo "$out" grep -qF "$(git rev-parse HEAD)" <<<"$out" + - name: Check goclusterfs-mount embeds the dashboard + run: | + mount="$(echo "$RUNNER_TEMP"/goclusterfs_*_linux_amd64/goclusterfs-mount)" + if ! grep -qF 'src="/ui/assets/' "$mount"; then + echo "::error::goclusterfs-mount has no dashboard build, only the placeholder" + exit 1 + fi + ls "$RUNNER_TEMP"/goclusterfs_*_linux_amd64/licenses/npm/react + - name: List artifacts run: | for f in dist/*.tar.gz; do diff --git a/CHANGELOG.md b/CHANGELOG.md index 9505c03f..78ed8477 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -43,6 +43,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), - `-api-token-file` (mode 0600 or stricter) and `GOCLUSTERFS_API_TOKEN` for the API token. Mount warns when it comes from `-api-token`, which `ps` shows to every local user. - HTTP API write endpoints, only with a token: create, list, clone and delete snapshots, clone files, and flush the journal, flush TRIM or clear caches on this node. Snapshot and clone requests call `setxattr` through the mount, like `setfattr`. - `gfsctl`, a read-only CLI for the HTTP API: `status`, `health`, `stats`, `metrics`, with watch mode and JSON output. Release archives include it. +- Web dashboard at `/ui/` on the API server (`-dashboard`, on by default): status, capacity, cache, journal, TRIM and lock counters, the node registry, and per-file snapshots and clones. Release archives include it; `make dashboard build` builds it from source. - `goclusterfs-mount -version`, which prints the same version string as `goclusterfs-fsck -version`. `/api/v1/status` reports it too. - Mount logs a `WARNING` line at startup when `-broadcast` is on without `-broadcast-secret`. - Design, deployment, operations, and troubleshooting docs in `docs/`. diff --git a/CLAUDE.md b/CLAUDE.md index f95e3493..ce855161 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -12,6 +12,7 @@ FUSE binding: `github.com/hanwen/go-fuse/v2`. Linux only. ```bash make build # ./goclusterfs-mount, ./goclusterfs-fsck and ./gfsctl +make dashboard build # same, with the web dashboard embedded (needs Node 22 and npm) go build ./... && go vet ./... ``` @@ -57,6 +58,8 @@ fusermount3 -u mnt # or Ctrl+C the mo | `internal/api` | HTTP API served by `cmd/mount`: `/health`, `/metrics`, `/api/v1/status`, `/api/v1/stats/...`; loopback only unless `-api-token` is set | | `internal/stats` | Background sampler that feeds `/api/v1/stats/...`, `/metrics` and the capacity in `/api/v1/status` | | `internal/version` | Build version, set with `-ldflags -X` by `scripts/dist.sh` | +| `internal/webui` | Serves the web dashboard under `/ui/`; embeds `make dashboard`'s build, or a placeholder page | +| `web/dashboard` | React dashboard source (Vite, npm); `make dashboard` builds it into `internal/webui/build/dist` | ## On-Disk Layout diff --git a/Makefile b/Makefile index fa9adb46..8c76513e 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ # GoClusterFS Makefile # Build and test automation for the distributed filesystem -.PHONY: build build-mount build-fsck build-gfsctl test test-unit test-integration test-all test-parity test-multinode-docker docker-build-test docker-clean-test test-multinode-vm vm-clean clean fmt vet check-fuse check-qemu lint vuln help +.PHONY: build build-mount build-fsck build-gfsctl dashboard test test-unit test-integration test-all test-parity test-multinode-docker docker-build-test docker-clean-test test-multinode-vm vm-clean clean fmt vet check-fuse check-qemu lint vuln help # Go parameters GOCMD=go @@ -16,6 +16,9 @@ MOUNT_BINARY=goclusterfs-mount FSCK_BINARY=goclusterfs-fsck GFSCTL_BINARY=gfsctl +DASHBOARD_DIR=web/dashboard +DASHBOARD_DIST=internal/webui/build/dist + GOLANGCI_LINT_VERSION=v2.15.0 GOVULNCHECK_VERSION=v1.9.0 COVER_PROFILE=coverage.out @@ -41,6 +44,12 @@ build-gfsctl: $(GOBUILD) -o $(GFSCTL_BINARY) ./cmd/gfsctl @echo "Built $(GFSCTL_BINARY) successfully" +# Builds the web dashboard into $(DASHBOARD_DIST), which goclusterfs-mount embeds; run before build +dashboard: + @echo "Building the web dashboard..." + cd $(DASHBOARD_DIR) && npm ci && npm run lint && npm run build + @echo "Built the dashboard into $(DASHBOARD_DIST)" + # Unit tests (fast, no FUSE needed) test: test-unit @@ -174,6 +183,7 @@ vuln: clean: @echo "Cleaning build artifacts..." rm -f $(MOUNT_BINARY) $(FSCK_BINARY) $(GFSCTL_BINARY) $(COVER_PROFILE) + rm -rf $(DASHBOARD_DIST) rm -f *.img @echo "Clean complete" @@ -200,6 +210,8 @@ help: @echo " build - Build all binaries" @echo " build-mount - Build goclusterfs-mount binary" @echo " build-fsck - Build goclusterfs-fsck binary" + @echo " build-gfsctl - Build gfsctl binary" + @echo " dashboard - Build the web dashboard (npm ci) for build to embed; run make dashboard build" @echo "" @echo " Test:" @echo " test - Run unit tests (alias for test-unit)" diff --git a/README.md b/README.md index 6363cbde..b9a36d77 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ cd GoClusterFS make build ``` -This builds `goclusterfs-mount`, `goclusterfs-fsck` and `gfsctl` in the repo root. +This builds `goclusterfs-mount`, `goclusterfs-fsck` and `gfsctl` in the repo root. To include the web dashboard, run `make dashboard build` instead; it needs Node 22 and npm. Release archives include it. ### Format and Mount @@ -142,6 +142,7 @@ With `-broadcast` on, the mount fails if it cannot bind both UDP ports; pass `-b | `-api-token` | (empty) | The token on the command line; visible to all local users in `ps` | | `-api-cors` | (empty) | Comma-separated CORS allowed origins | | `-api-rate-limit` | `0` (off) | Requests per second per client IP, with bursts of twice that | +| `-dashboard` | `true` | Serve the web dashboard at `http:///ui/` | The API only listens on this host by default. Mount refuses to start when `-api-addr` can be reached from other hosts and no token is set. See [HTTP API Flags](docs/API-CONFIG.md#http-api-flags). diff --git a/cmd/mount/main.go b/cmd/mount/main.go index b7c18eab..cbe3bf35 100644 --- a/cmd/mount/main.go +++ b/cmd/mount/main.go @@ -36,6 +36,7 @@ import ( "github.com/supporttools/GoClusterFS/internal/superblock" "github.com/supporttools/GoClusterFS/internal/trim" "github.com/supporttools/GoClusterFS/internal/version" + "github.com/supporttools/GoClusterFS/internal/webui" ) type fsStatusProvider struct { @@ -115,6 +116,7 @@ func main() { apiToken = flag.String("api-token", "", "API bearer token; visible to all local users in ps, prefer -api-token-file") apiCORS = flag.String("api-cors", "", "Comma-separated CORS allowed origins (empty=disabled)") apiRate = flag.Float64("api-rate-limit", 0, "API requests per second per client IP, with bursts of twice that (0=off)") + dashboard = flag.Bool("dashboard", true, "Serve the web dashboard on the API server under /ui/") ) flag.Parse() @@ -137,6 +139,9 @@ func main() { log.Printf("WARNING: -api-token is visible to every local user in ps and /proc//cmdline, and it unlocks API writes. Use -api-token-file or %s instead.", apiTokenEnv) } apiCfg := apiConfig(*apiAddr, token, *apiCORS, *apiRate) + if *dashboard { + apiCfg.Dashboard = webui.Handler() + } if *apiEnabled { if err := apiCfg.Validate(); err != nil { log.Fatalf("Invalid API settings: %v", err) @@ -461,6 +466,11 @@ func main() { if !apiServer.WritesEnabled() { log.Printf("API: snapshot, clone and admin endpoints are off; set -api-token-file or %s to turn them on", apiTokenEnv) } + if apiCfg.Dashboard != nil && webui.Built() { + log.Printf("API: dashboard at /ui/") + } else if apiCfg.Dashboard != nil { + log.Printf("API: this binary has no dashboard build; /ui/ explains how to add it") + } } } } else { diff --git a/docs/API-CONFIG.md b/docs/API-CONFIG.md index 3eafaf4e..853fbb23 100644 --- a/docs/API-CONFIG.md +++ b/docs/API-CONFIG.md @@ -94,16 +94,17 @@ The kernel caches file attributes and directory entries for `-attr-timeout`. For | `-api-token` | string | (empty) | The token on the command line. Every local user can read it with `ps`; mount logs a `WARNING` | | `-api-cors` | string | (empty) | Comma-separated CORS allowed origins, or `*` | | `-api-rate-limit` | float | `0` (off) | Requests per second per client IP, with bursts of twice that, up to 1,000,000. Over the limit, the API answers 429 | +| `-dashboard` | bool | `true` | Serve the [web dashboard](#web-dashboard) under `/ui/` | -The API serves `GET /health`, `GET /metrics`, `GET /api/v1/status`, `GET /api/v1/stats/...` and, with `-api-token`, the [write endpoints](#http-api-write-endpoints). [HTTP API Statistics](#http-api-statistics) lists what `/metrics`, `/api/v1/status` and `/api/v1/stats/...` return. `/health` only checks the API itself. With `-api-token` set, `/api/v1/...` requests need `Authorization: Bearer `. `/health` and `/metrics` never need the token. +The API serves `GET /health`, `GET /metrics`, `GET /api/v1/status`, `GET /api/v1/stats/...`, the [web dashboard](#web-dashboard) under `/ui/` and, with `-api-token`, the [write endpoints](#http-api-write-endpoints). [HTTP API Statistics](#http-api-statistics) lists what `/metrics`, `/api/v1/status` and `/api/v1/stats/...` return. `/health` only checks the API itself. With `-api-token` set, `/api/v1/...` requests need `Authorization: Bearer `. `/health`, `/metrics` and the dashboard's files under `/ui/` never need the token. -Without `-api-token`, the API answers only requests whose `Host` header is `localhost`, a `127.x` address or `[::1]`, so a web page cannot reach it through DNS rebinding, and mount refuses `-api-cors '*'`. List the dashboard's origin instead, for example `-api-cors http://localhost:5173`. +Without `-api-token`, the API answers only requests whose `Host` header is `localhost`, a `127.x` address or `[::1]`, so a web page cannot reach it through DNS rebinding, and mount refuses `-api-cors '*'`. List the allowed origins instead. The dashboard at `/ui/` shares the API's origin and needs no CORS. By default the API only accepts connections from this host. To serve other hosts, set `-api-addr` (for example `:8080` or `10.0.0.5:8080`) and `-api-token-file`. Mount exits before it opens the device when the address is not loopback (`127.0.0.0/8`, `::1` or `localhost`) and the token is empty. Give the token with `-api-token-file` or the `GOCLUSTERFS_API_TOKEN` environment variable, and set only one of them. Mount refuses a token file that group or others can read. `-api-token` still works, but `ps` and `/proc//cmdline` show it to every local user, and with it they could change any file's snapshots through the API. The API uses plain HTTP, so a token sent to another host crosses the network unencrypted: put a TLS proxy in front of the API, or reach it over an SSH tunnel (`ssh -L 8080:127.0.0.1:8080 node`). -The rate limit counts requests per connecting IP address, and per /64 for IPv6. It ignores `X-Forwarded-For`, so behind a proxy every client shares the proxy's limit. `/health` and `/metrics` are never limited. The limiter tracks at most 65,536 clients at once; while it is full, new clients get 429 until idle clients' buckets refill and are dropped, about 2 seconds (longer below 0.5 requests per second). +The rate limit counts requests per connecting IP address, and per /64 for IPv6. It ignores `X-Forwarded-For`, so behind a proxy every client shares the proxy's limit. `/health`, `/metrics` and `/ui/` are never limited. The limiter tracks at most 65,536 clients at once; while it is full, new clients get 429 until idle clients' buckets refill and are dropped, about 2 seconds (longer below 0.5 requests per second). Each mount on a host needs its own `-api-addr`. When the port is taken, mount logs a warning and runs without the API. @@ -130,6 +131,14 @@ Errors answer with `{error, code, details}`: 400 for a bad path, name, destinati Mount logs each write at INFO with the client address, the action, its arguments and the result. On shutdown, mount stops taking requests, waits for writes in flight to finish, and only then unmounts. +### Web Dashboard + +Mount serves a web dashboard at `http:///ui/`, unless `-dashboard=false`. It shows status, capacity, the cache, journal, TRIM and lock counters, and the nodes in the registry. It lists snapshots, and for a file you name it creates, clones and deletes them and clones the file. Its Settings page runs the admin endpoints. + +The dashboard's files are static and hold no data, so they need no token and skip the rate limit. The page calls `/api/v1/...` on the same origin with the same rules as any client: reads need the token when one is set, and snapshots always need it. Enter the token on the dashboard's Settings page. The browser keeps it in `sessionStorage`, so closing the tab forgets it. Responses carry a `Content-Security-Policy` that lets the page load and call only its own origin and stops other sites from framing it. + +Release archives include the dashboard. `go build` and `make build` alone embed a page that says to run `make dashboard build`; `make dashboard` needs Node 22 and npm, and installs the exact packages in `web/dashboard/package-lock.json` with `npm ci`. + --- ## HTTP API Statistics diff --git a/internal/api/config.go b/internal/api/config.go index bd8322a1..216c0148 100644 --- a/internal/api/config.go +++ b/internal/api/config.go @@ -3,6 +3,7 @@ package api import ( "fmt" "net" + "net/http" "net/url" "slices" "strings" @@ -56,6 +57,9 @@ type Config struct { // RateLimitBurst is the maximum burst size (token bucket capacity). // Default: 200 RateLimitBurst int + + // Dashboard, if set, serves the web dashboard under /ui/ without auth or rate limiting. + Dashboard http.Handler } // DefaultConfig returns a Config with sensible defaults. diff --git a/internal/api/dashboard_test.go b/internal/api/dashboard_test.go new file mode 100644 index 00000000..f388572b --- /dev/null +++ b/internal/api/dashboard_test.go @@ -0,0 +1,85 @@ +package api + +import ( + "net/http" + "testing" +) + +func dashboardConfig() Config { + cfg := DefaultConfig().WithListenAddr("127.0.0.1:0").WithAuthToken("secret") + cfg.Dashboard = http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + w.Header().Set("X-Dashboard-Path", r.URL.Path) + }) + return cfg +} + +func TestExempt(t *testing.T) { + paths := []string{"/health", "/metrics", "/ui/"} + for p, want := range map[string]bool{ + "/health": true, + "/metrics": true, + "/ui": true, + "/ui/": true, + "/ui/assets/a.js": true, + "/ui/snapshots": true, + "/health/x": false, + "/healthz": false, + "/uix": false, + "/ui/../api/v1/status": false, + "/ui/./../metrics/x": false, + "/api/v1/status": false, + } { + if got := exempt(p, paths); got != want { + t.Errorf("exempt(%q) = %v, want %v", p, got, want) + } + } +} + +func TestDashboardNeedsNoToken(t *testing.T) { + srv := startServer(t, dashboardConfig()) + for path, want := range map[string]string{ + "/ui": "/", + "/ui/": "/", + "/ui/assets/a.js": "/assets/a.js", + "/ui/snapshots": "/snapshots", + } { + resp := get(t, srv, path, "", nil) + if resp.StatusCode != http.StatusOK || resp.Header.Get("X-Dashboard-Path") != want { + t.Errorf("%s: status %d, dashboard saw %q; want 200 and %q", path, resp.StatusCode, resp.Header.Get("X-Dashboard-Path"), want) + } + } + for _, path := range []string{"/ui/../api/v1/status", "/ui/%2e%2e/api/v1/status", "/uix", "/api/v1/status"} { + if got := get(t, srv, path, "", nil).StatusCode; got != http.StatusUnauthorized { + t.Errorf("%s without token: status %d, want 401", path, got) + } + } +} + +func TestDashboardSkipsRateLimit(t *testing.T) { + srv := startServer(t, dashboardConfig().WithRateLimit(0.25, 1)) + for i := 0; i < 5; i++ { + if got := get(t, srv, "/ui/assets/a.js", "", nil).StatusCode; got != http.StatusOK { + t.Fatalf("request %d: status %d, want 200", i+1, got) + } + } +} + +func TestNoDashboardMeansNoUIRoute(t *testing.T) { + cfg := DefaultConfig().WithListenAddr("127.0.0.1:0").WithAuthToken("secret") + srv := startServer(t, cfg) + if got := get(t, srv, "/ui/", "", nil).StatusCode; got != http.StatusUnauthorized { + t.Errorf("/ui/ without token: status %d, want 401", got) + } + auth := map[string]string{"Authorization": "Bearer secret"} + if got := get(t, srv, "/ui/", "", auth).StatusCode; got != http.StatusNotFound { + t.Errorf("/ui/ with token: status %d, want 404", got) + } +} + +func TestDashboardKeepsLoopbackHostCheck(t *testing.T) { + cfg := dashboardConfig().WithAuthToken("") + srv := startServer(t, cfg) + if got := get(t, srv, "/ui/", "evil.example", nil).StatusCode; got != http.StatusForbidden { + t.Errorf("/ui/ with a foreign Host: status %d, want 403", got) + } +} diff --git a/internal/api/middleware.go b/internal/api/middleware.go index 33efa542..35232f68 100644 --- a/internal/api/middleware.go +++ b/internal/api/middleware.go @@ -6,7 +6,7 @@ import ( "math" "net" "net/http" - "slices" + "path" "strconv" "strings" "sync" @@ -57,9 +57,20 @@ func LoggingMiddleware(next http.Handler) http.Handler { }) } +// exempt reports whether p is one of paths, or lies under a path that ends in "/". +func exempt(p string, paths []string) bool { + under := path.Clean(p) + "/" + for _, e := range paths { + if p == e || strings.HasSuffix(e, "/") && strings.HasPrefix(under, e) { + return true + } + } + return false +} + // AuthMiddleware returns a middleware that validates Bearer tokens. // If token is empty, authentication is disabled. -// Paths in skipPaths are not authenticated (e.g., /health, /metrics). +// Paths in skipPaths are not authenticated (e.g., /health, /metrics); see exempt. func AuthMiddleware(token string, skipPaths ...string) Middleware { return func(next http.Handler) http.Handler { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { @@ -69,12 +80,9 @@ func AuthMiddleware(token string, skipPaths ...string) Middleware { return } - // Check if path should skip auth - for _, path := range skipPaths { - if r.URL.Path == path { - next.ServeHTTP(w, r) - return - } + if exempt(r.URL.Path, skipPaths) { + next.ServeHTTP(w, r) + return } // Extract Bearer token from Authorization header @@ -275,11 +283,11 @@ func (rl *RateLimiter) retryAfter() string { } // RateLimitMiddleware returns a middleware that enforces rate limiting per client. -// If limiter is nil, no rate limiting is applied. Paths in skipPaths are never limited. +// If limiter is nil, no rate limiting is applied. Paths in skipPaths are never limited; see exempt. func RateLimitMiddleware(limiter *RateLimiter, skipPaths ...string) Middleware { return func(next http.Handler) http.Handler { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - if limiter == nil || slices.Contains(skipPaths, r.URL.Path) { + if limiter == nil || exempt(r.URL.Path, skipPaths) { next.ServeHTTP(w, r) return } diff --git a/internal/api/routes.go b/internal/api/routes.go index 01aecefc..965e49cc 100644 --- a/internal/api/routes.go +++ b/internal/api/routes.go @@ -10,6 +10,7 @@ import ( // - /health - Health check (no auth required) // - /api/v1/* - Versioned API endpoints (auth required when configured) // - /metrics - Prometheus metrics (no auth required) +// - /ui/ - Web dashboard, if configured (no auth required) func (s *Server) registerRoutes() { // Health check endpoint - always accessible, no auth required s.router.HandleFunc("/health", s.handleHealth) @@ -19,6 +20,10 @@ func (s *Server) registerRoutes() { // Metrics endpoint for Prometheus scraping s.router.HandleFunc("/metrics", s.handleMetrics) + + if s.config.Dashboard != nil { + s.router.Handle("/ui/", http.StripPrefix("/ui", s.config.Dashboard)) + } } // handleHealth handles GET /health requests. diff --git a/internal/api/server.go b/internal/api/server.go index d4b85cf3..78a04321 100644 --- a/internal/api/server.go +++ b/internal/api/server.go @@ -72,13 +72,18 @@ func NewServer(cfg Config) (*Server, error) { // Build middleware chain (order: rate limit -> logging -> loopback Host check -> CORS -> auth). // Probes and scrapers on loopback share one bucket, so /health and /metrics skip the limiter. - middlewares := []Middleware{RateLimitMiddleware(s.rateLimiter, "/health", "/metrics"), LoggingMiddleware} + // The dashboard's static files hold no data, and a browser can't send a token when it loads them. + exempt := []string{"/health", "/metrics"} + if cfg.Dashboard != nil { + exempt = append(exempt, "/ui/") + } + middlewares := []Middleware{RateLimitMiddleware(s.rateLimiter, exempt...), LoggingMiddleware} if cfg.AuthToken == "" && cfg.LoopbackOnly() { middlewares = append(middlewares, LoopbackHostMiddleware) } middlewares = append(middlewares, CORSMiddleware(cfg.CORSOrigins), - AuthMiddleware(cfg.AuthToken, "/health", "/metrics"), + AuthMiddleware(cfg.AuthToken, exempt...), ) handler := Chain(s.router, middlewares...) diff --git a/internal/webui/build/.gitignore b/internal/webui/build/.gitignore new file mode 100644 index 00000000..178135c2 --- /dev/null +++ b/internal/webui/build/.gitignore @@ -0,0 +1 @@ +/dist/ diff --git a/internal/webui/placeholder.html b/internal/webui/placeholder.html new file mode 100644 index 00000000..06da71f8 --- /dev/null +++ b/internal/webui/placeholder.html @@ -0,0 +1,11 @@ + + + + +GoClusterFS dashboard not built + + +

Dashboard not built

+

This goclusterfs-mount binary was built without the web dashboard. Run make dashboard build, or use a release build.

+ + diff --git a/internal/webui/webui.go b/internal/webui/webui.go new file mode 100644 index 00000000..6d79d718 --- /dev/null +++ b/internal/webui/webui.go @@ -0,0 +1,101 @@ +// Package webui serves the web/dashboard build that `make dashboard` writes to build/dist. +package webui + +import ( + "bytes" + "embed" + "io/fs" + "net/http" + "path" + "strings" + "time" +) + +//go:embed all:build +var build embed.FS + +//go:embed placeholder.html +var placeholder []byte + +// ContentSecurityPolicy allows data: images for the SVG icons Tailwind's form styles inline. +const ContentSecurityPolicy = "default-src 'self'; connect-src 'self'; img-src 'self' data:; " + + "object-src 'none'; base-uri 'none'; form-action 'self'; frame-ancestors 'none'" + +var dist = mustSub(build, "build/dist") + +// contentTypes overrides /etc/mime.types, which differs between hosts. +var contentTypes = map[string]string{ + ".html": "text/html; charset=utf-8", + ".js": "text/javascript; charset=utf-8", + ".css": "text/css; charset=utf-8", + ".svg": "image/svg+xml", +} + +func mustSub(fsys fs.FS, dir string) fs.FS { + sub, err := fs.Sub(fsys, dir) + if err != nil { + panic(err) + } + return sub +} + +// Built reports whether the binary holds a real dashboard build. +func Built() bool { return hasIndex(dist) } + +func hasIndex(fsys fs.FS) bool { + _, err := fs.Stat(fsys, "index.html") + return err == nil +} + +// Handler expects paths relative to the dashboard root and answers unknown routes with index.html. +func Handler() http.Handler { return newHandler(dist) } + +func newHandler(files fs.FS) http.Handler { + built := hasIndex(files) + return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + if r.Method != http.MethodGet && r.Method != http.MethodHead { + w.Header().Set("Allow", "GET, HEAD") + http.Error(w, "method not allowed", http.StatusMethodNotAllowed) + return + } + h := w.Header() + h.Set("Content-Security-Policy", ContentSecurityPolicy) + h.Set("X-Content-Type-Options", "nosniff") + h.Set("Referrer-Policy", "no-referrer") + + if !built { + serve(w, r, "index.html", placeholder) + return + } + name := strings.TrimPrefix(path.Clean("/"+r.URL.Path), "/") + if name == "" { + name = "index.html" + } + data, err := fs.ReadFile(files, name) + if err != nil { + if strings.HasPrefix(name, "assets/") || path.Ext(name) != "" { + http.NotFound(w, r) + return + } + name = "index.html" + if data, err = fs.ReadFile(files, name); err != nil { + http.Error(w, "dashboard index missing", http.StatusInternalServerError) + return + } + } + serve(w, r, name, data) + }) +} + +// serve caches Vite's content-hashed assets for good and makes browsers revalidate the rest. +func serve(w http.ResponseWriter, r *http.Request, name string, data []byte) { + if strings.HasPrefix(name, "assets/") { + w.Header().Set("Cache-Control", "public, max-age=31536000, immutable") + } else { + w.Header().Set("Cache-Control", "no-cache") + } + if ct, ok := contentTypes[path.Ext(name)]; ok { + w.Header().Set("Content-Type", ct) + } + http.ServeContent(w, r, name, time.Time{}, bytes.NewReader(data)) +} diff --git a/internal/webui/webui_test.go b/internal/webui/webui_test.go new file mode 100644 index 00000000..cddff567 --- /dev/null +++ b/internal/webui/webui_test.go @@ -0,0 +1,161 @@ +package webui + +import ( + "io" + "io/fs" + "net/http" + "net/http/httptest" + "regexp" + "strings" + "testing" + "testing/fstest" +) + +const testIndex = `
` + +var testBuild = fstest.MapFS{ + "index.html": {Data: []byte(testIndex)}, + "favicon.svg": {Data: []byte(``)}, + "assets/index-abc.js": {Data: []byte(`console.log("dashboard")`)}, + "assets/index-abc.css": {Data: []byte(`body{margin:0}`)}, +} + +func get(t *testing.T, h http.Handler, method, target string) *http.Response { + t.Helper() + rec := httptest.NewRecorder() + h.ServeHTTP(rec, httptest.NewRequest(method, target, nil)) + return rec.Result() +} + +func body(t *testing.T, resp *http.Response) string { + t.Helper() + b, err := io.ReadAll(resp.Body) + if err != nil { + t.Fatal(err) + } + return string(b) +} + +func TestServesBuild(t *testing.T) { + h := newHandler(testBuild) + tests := []struct { + target, wantType, wantBody, wantCache string + }{ + {"/", "text/html; charset=utf-8", testIndex, "no-cache"}, + {"/index.html", "text/html; charset=utf-8", testIndex, "no-cache"}, + {"/snapshots", "text/html; charset=utf-8", testIndex, "no-cache"}, + {"/cluster/", "text/html; charset=utf-8", testIndex, "no-cache"}, + {"/assets", "text/html; charset=utf-8", testIndex, "no-cache"}, + {"/assets/index-abc.js", "text/javascript; charset=utf-8", `console.log("dashboard")`, "public, max-age=31536000, immutable"}, + {"/assets/index-abc.css", "text/css; charset=utf-8", `body{margin:0}`, "public, max-age=31536000, immutable"}, + {"/favicon.svg", "image/svg+xml", ``, "no-cache"}, + {"/../index.html", "text/html; charset=utf-8", testIndex, "no-cache"}, + } + for _, tt := range tests { + t.Run(tt.target, func(t *testing.T) { + resp := get(t, h, http.MethodGet, tt.target) + if resp.StatusCode != http.StatusOK { + t.Fatalf("status = %d, want 200", resp.StatusCode) + } + if got := resp.Header.Get("Content-Type"); got != tt.wantType { + t.Errorf("Content-Type = %q, want %q", got, tt.wantType) + } + if got := resp.Header.Get("Cache-Control"); got != tt.wantCache { + t.Errorf("Cache-Control = %q, want %q", got, tt.wantCache) + } + if got := body(t, resp); got != tt.wantBody { + t.Errorf("body = %q, want %q", got, tt.wantBody) + } + }) + } +} + +func TestSecurityHeaders(t *testing.T) { + for _, h := range []http.Handler{newHandler(testBuild), newHandler(fstest.MapFS{})} { + for _, target := range []string{"/", "/assets/index-abc.js", "/missing.js"} { + resp := get(t, h, http.MethodGet, target) + if got := resp.Header.Get("Content-Security-Policy"); got != ContentSecurityPolicy { + t.Errorf("%s: CSP = %q", target, got) + } + if got := resp.Header.Get("X-Content-Type-Options"); got != "nosniff" { + t.Errorf("%s: X-Content-Type-Options = %q", target, got) + } + } + } + for _, want := range []string{"default-src 'self'", "connect-src 'self'", "frame-ancestors 'none'"} { + if !strings.Contains(ContentSecurityPolicy, want) { + t.Errorf("CSP lacks %q", want) + } + } +} + +func TestMissingFilesAre404(t *testing.T) { + h := newHandler(testBuild) + for _, target := range []string{"/assets/gone.js", "/assets/x", "/robots.txt"} { + if resp := get(t, h, http.MethodGet, target); resp.StatusCode != http.StatusNotFound { + t.Errorf("%s: status = %d, want 404", target, resp.StatusCode) + } + } +} + +func TestOnlyGetAndHead(t *testing.T) { + h := newHandler(testBuild) + if resp := get(t, h, http.MethodHead, "/"); resp.StatusCode != http.StatusOK { + t.Errorf("HEAD status = %d, want 200", resp.StatusCode) + } + for _, method := range []string{http.MethodPost, http.MethodPut, http.MethodDelete} { + resp := get(t, h, method, "/") + if resp.StatusCode != http.StatusMethodNotAllowed { + t.Errorf("%s status = %d, want 405", method, resp.StatusCode) + } + if got := resp.Header.Get("Allow"); got != "GET, HEAD" { + t.Errorf("%s Allow = %q", method, got) + } + } +} + +func TestPlaceholderWhenNotBuilt(t *testing.T) { + h := newHandler(fstest.MapFS{}) + for _, target := range []string{"/", "/snapshots", "/assets/index-abc.js"} { + resp := get(t, h, http.MethodGet, target) + if resp.StatusCode != http.StatusOK { + t.Fatalf("%s: status = %d, want 200", target, resp.StatusCode) + } + if got := body(t, resp); !strings.Contains(got, "make dashboard") { + t.Errorf("%s: body is not the placeholder: %q", target, got) + } + } +} + +var assetRef = regexp.MustCompile(`(?:src|href)="/ui/([^"]+)"`) + +// TestEmbeddedBuild checks the real build when `make dashboard` produced one. +func TestEmbeddedBuild(t *testing.T) { + if !Built() { + t.Skip("dashboard not built; run make dashboard") + } + index, err := fs.ReadFile(dist, "index.html") + if err != nil { + t.Fatal(err) + } + refs := assetRef.FindAllStringSubmatch(string(index), -1) + if len(refs) == 0 { + t.Fatalf("index.html references nothing under /ui/; is Vite's base set to /ui/?\n%s", index) + } + h := Handler() + for _, ref := range refs { + resp := get(t, h, http.MethodGet, "/"+ref[1]) + if resp.StatusCode != http.StatusOK || strings.HasPrefix(resp.Header.Get("Content-Type"), "text/html") { + t.Errorf("/ui/%s: status %d, type %q", ref[1], resp.StatusCode, resp.Header.Get("Content-Type")) + } + } + err = fs.WalkDir(dist, ".", func(p string, d fs.DirEntry, err error) error { + if err == nil && strings.HasSuffix(p, ".map") { + t.Errorf("source map %s is embedded", p) + } + return err + }) + if err != nil { + t.Fatal(err) + } +} diff --git a/scripts/dist.sh b/scripts/dist.sh index 155d5d8d..aca786af 100755 --- a/scripts/dist.sh +++ b/scripts/dist.sh @@ -1,10 +1,15 @@ #!/usr/bin/env bash -# Builds release archives and checksums.txt into dist/. +# Builds release archives and checksums.txt into dist/. Run `make dashboard` first. # VERSION defaults to `git describe`; PLATFORMS defaults to "linux/amd64 linux/arm64". set -euo pipefail cd "$(dirname "$0")/.." +if [ ! -f internal/webui/build/dist/index.html ]; then + echo "dist.sh: the web dashboard is not built, so goclusterfs-mount would serve a placeholder. Run make dashboard first." >&2 + exit 1 +fi + version="${VERSION:-$(git describe --tags --always --dirty)}" commit="$(git rev-parse HEAD)" date="$(TZ=UTC git log -1 --date=format-local:%Y-%m-%dT%H:%M:%SZ --format=%cd)" @@ -15,7 +20,22 @@ go_license="$(go env GOROOT)/LICENSE" [ -f "$go_license" ] || go_license="$(go env GOROOT)/../LICENSE" # Homebrew keeps it outside GOROOT rm -rf dist -mkdir -p dist +mkdir -p dist/npm-licenses + +# The dashboard bundles its npm runtime dependencies into goclusterfs-mount. +npm --prefix web/dashboard ls --omit=dev --all --parseable | tail -n +2 | sort -u | + while read -r pkgdir; do + dest="dist/npm-licenses/${pkgdir##*/node_modules/}" + mkdir -p "$dest" + found=$(cd "$pkgdir" && find . -maxdepth 3 -name node_modules -prune -o -type f -iname 'licen[cs]e*' -print) + if [ -z "$found" ]; then + cp "$pkgdir/package.json" "$dest/" + fi + for f in $found; do + mkdir -p "$dest/$(dirname "$f")" + cp "$pkgdir/$f" "$dest/$f" + done + done for platform in $platforms; do goos="${platform%/*}" @@ -33,6 +53,7 @@ for platform in $platforms; do cp LICENSE README.md "$dir/" cp "$go_license" "$dir/licenses/go/" + cp -R dist/npm-licenses "$dir/licenses/npm" go version -m "$dir"/goclusterfs-* "$dir"/gfsctl | awk '$1 == "dep" { print $2 }' | sort -u | while read -r mod; do mkdir -p "$dir/licenses/$mod" @@ -43,6 +64,7 @@ for platform in $platforms; do rm -rf "$dir" done +rm -rf dist/npm-licenses cd dist if command -v sha256sum >/dev/null; then sha256sum goclusterfs_*.tar.gz >checksums.txt diff --git a/tests/integration/api_writes_test.go b/tests/integration/api_writes_test.go index 64de7e0e..3a9d8732 100644 --- a/tests/integration/api_writes_test.go +++ b/tests/integration/api_writes_test.go @@ -54,11 +54,11 @@ func writeTokenFile(t *testing.T, token string, mode os.FileMode) string { return p } -func startAPIMount(t *testing.T, token string, sizeMB int) *apiMount { +func startAPIMount(t *testing.T, token string, sizeMB int, extraArgs ...string) *apiMount { t.Helper() m := &apiMount{MountedFS: NewMountedFS(t, sizeMB), addr: freeLoopbackAddr(t), token: token, log: &lockedBuffer{}} m.Log = m.log - m.ExtraArgs = []string{"-format", "-api-addr", m.addr} + m.ExtraArgs = append([]string{"-format", "-api-addr", m.addr}, extraArgs...) if token != "" { m.ExtraArgs = append(m.ExtraArgs, "-api-token-file", writeTokenFile(t, token, 0o600)) } diff --git a/tests/integration/dashboard_test.go b/tests/integration/dashboard_test.go new file mode 100644 index 00000000..7b6ccc6f --- /dev/null +++ b/tests/integration/dashboard_test.go @@ -0,0 +1,81 @@ +package integration + +import ( + "io" + "net/http" + "strings" + "testing" +) + +func getDashboard(t *testing.T, url, token string) (*http.Response, string) { + t.Helper() + req, err := http.NewRequest(http.MethodGet, url, nil) + if err != nil { + t.Fatal(err) + } + if token != "" { + req.Header.Set("Authorization", "Bearer "+token) + } + resp, err := writeClient.Do(req) + if err != nil { + t.Fatal(err) + } + defer resp.Body.Close() + body, err := io.ReadAll(resp.Body) + if err != nil { + t.Fatal(err) + } + return resp, string(body) +} + +// TestDashboardOnLiveMount checks /ui/ with whichever build the binary has: CI's Go jobs embed the placeholder. +func TestDashboardOnLiveMount(t *testing.T) { + const token = "dashboard-test-token" + m := startAPIMount(t, token, 20) + base := "http://" + m.addr + + resp, shell := getDashboard(t, base+"/ui/snapshots", "") + if resp.StatusCode != http.StatusOK { + t.Fatalf("/ui/snapshots without a token: status %d, want 200", resp.StatusCode) + } + if ct := resp.Header.Get("Content-Type"); !strings.HasPrefix(ct, "text/html") { + t.Errorf("Content-Type = %q, want text/html", ct) + } + if csp := resp.Header.Get("Content-Security-Policy"); !strings.Contains(csp, "default-src 'self'") || !strings.Contains(csp, "frame-ancestors 'none'") { + t.Errorf("Content-Security-Policy = %q", csp) + } + if !strings.Contains(shell, `id="root"`) && !strings.Contains(shell, "make dashboard build") { + t.Errorf("/ui/snapshots is neither the dashboard nor the placeholder:\n%s", shell) + } + + _, withToken := getDashboard(t, base+"/ui/snapshots", token) + if withToken != shell { + t.Error("the /ui/ shell changes when the request carries a token; it must be static") + } + for name, values := range resp.Header { + if strings.Contains(strings.Join(values, " "), token) { + t.Errorf("header %s carries the token", name) + } + } + if strings.Contains(shell, token) { + t.Error("the /ui/ shell contains the token") + } + + if resp, _ := getDashboard(t, base+"/api/v1/status", ""); resp.StatusCode != http.StatusUnauthorized { + t.Errorf("/api/v1/status without a token: status %d, want 401", resp.StatusCode) + } + if !strings.Contains(m.log.String(), "/ui/") { + t.Errorf("mount log never mentions /ui/:\n%s", m.log.String()) + } +} + +func TestDashboardFlagOff(t *testing.T) { + const token = "dashboard-test-token" + m := startAPIMount(t, token, 20, "-dashboard=false") + if resp, _ := getDashboard(t, "http://"+m.addr+"/ui/", ""); resp.StatusCode != http.StatusUnauthorized { + t.Errorf("/ui/ without a token: status %d, want 401", resp.StatusCode) + } + if resp, _ := getDashboard(t, "http://"+m.addr+"/ui/", token); resp.StatusCode != http.StatusNotFound { + t.Errorf("/ui/ with a token: status %d, want 404", resp.StatusCode) + } +} diff --git a/tests/test-manifest.yaml b/tests/test-manifest.yaml index 15b199a4..873e9cd2 100644 --- a/tests/test-manifest.yaml +++ b/tests/test-manifest.yaml @@ -2420,6 +2420,20 @@ scenarios: environments: go: api_writes_test.go::TestMountTokenSources + - id: dashboard-live-mount + name: Web dashboard on a live mount + description: /ui/ serves the same static shell with or without a token, with a strict Content-Security-Policy, while /api/v1/* still needs the token + priority: go_only + environments: + go: dashboard_test.go::TestDashboardOnLiveMount + + - id: dashboard-flag-off + name: -dashboard=false removes /ui/ + description: With -dashboard=false, /ui/ goes through the normal auth and answers 404 + priority: go_only + environments: + go: dashboard_test.go::TestDashboardFlagOff + - id: gfsctl-reads-live-mount name: gfsctl reads a live mount description: gfsctl status, health and metrics work against a mounted filesystem's API diff --git a/web/dashboard/.gitignore b/web/dashboard/.gitignore new file mode 100644 index 00000000..a547bf36 --- /dev/null +++ b/web/dashboard/.gitignore @@ -0,0 +1,24 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +lerna-debug.log* + +node_modules +dist +dist-ssr +*.local + +# Editor directories and files +.vscode/* +!.vscode/extensions.json +.idea +.DS_Store +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? diff --git a/web/dashboard/README.md b/web/dashboard/README.md new file mode 100644 index 00000000..dc3ccf61 --- /dev/null +++ b/web/dashboard/README.md @@ -0,0 +1,28 @@ +# GoClusterFS dashboard + +The web dashboard that `goclusterfs-mount` serves at `http:///ui/`. What it shows and how auth works: [docs/API-CONFIG.md](../../docs/API-CONFIG.md#web-dashboard). + +## Build + +From the repo root: + +```bash +make dashboard build +``` + +`make dashboard` runs `npm ci`, `npm run lint` and `npm run build`, which writes to `internal/webui/build/dist`. `make build` then embeds it in `goclusterfs-mount`. Without it, `/ui/` shows a placeholder page. Use Node 22; CI pins the exact version in `.github/workflows/ci.yml`. + +## Develop + +Start a mount with its API on `127.0.0.1:8080`, then: + +```bash +npm ci +npm run dev +``` + +Open `http://localhost:5173/ui/`. Vite proxies `/api` and `/health` to the mount. Writes from the dev server work, because the proxy keeps the `Host` header and the API sees a same-origin request. They still need the token, which you enter on the Settings page. + +## Packages + +`package-lock.json` pins every package, and CI and releases install it with `npm ci`. Company policy: a package version must be at least 48 hours old before anyone installs it. Upgrade packages in their own PR, and only to versions that old. diff --git a/web/dashboard/eslint.config.js b/web/dashboard/eslint.config.js new file mode 100644 index 00000000..5e6b472f --- /dev/null +++ b/web/dashboard/eslint.config.js @@ -0,0 +1,23 @@ +import js from '@eslint/js' +import globals from 'globals' +import reactHooks from 'eslint-plugin-react-hooks' +import reactRefresh from 'eslint-plugin-react-refresh' +import tseslint from 'typescript-eslint' +import { defineConfig, globalIgnores } from 'eslint/config' + +export default defineConfig([ + globalIgnores(['dist']), + { + files: ['**/*.{ts,tsx}'], + extends: [ + js.configs.recommended, + tseslint.configs.recommended, + reactHooks.configs.flat.recommended, + reactRefresh.configs.vite, + ], + languageOptions: { + ecmaVersion: 2020, + globals: globals.browser, + }, + }, +]) diff --git a/web/dashboard/index.html b/web/dashboard/index.html new file mode 100644 index 00000000..ea64eb24 --- /dev/null +++ b/web/dashboard/index.html @@ -0,0 +1,15 @@ + + + + + + + + + GoClusterFS Dashboard + + +
+ + + diff --git a/web/dashboard/package-lock.json b/web/dashboard/package-lock.json new file mode 100644 index 00000000..d0200911 --- /dev/null +++ b/web/dashboard/package-lock.json @@ -0,0 +1,4527 @@ +{ + "name": "@goclusterfs/dashboard", + "version": "0.1.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "@goclusterfs/dashboard", + "version": "0.1.0", + "dependencies": { + "react": "^19.2.0", + "react-dom": "^19.2.0", + "react-router-dom": "^7.11.0", + "recharts": "^3.6.0" + }, + "devDependencies": { + "@eslint/js": "^9.39.1", + "@tailwindcss/forms": "^0.5.11", + "@types/node": "^24.10.1", + "@types/react": "^19.2.5", + "@types/react-dom": "^19.2.3", + "@vitejs/plugin-react": "^5.1.1", + "autoprefixer": "^10.4.23", + "eslint": "^9.39.1", + "eslint-plugin-react-hooks": "^7.0.1", + "eslint-plugin-react-refresh": "^0.4.24", + "globals": "^16.5.0", + "postcss": "^8.5.6", + "tailwindcss": "^3.4.19", + "typescript": "~5.9.3", + "typescript-eslint": "^8.46.4", + "vite": "^7.2.4" + } + }, + "node_modules/@alloc/quick-lru": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/@alloc/quick-lru/-/quick-lru-5.2.0.tgz", + "integrity": "sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@babel/code-frame": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.27.1.tgz", + "integrity": "sha512-cjQ7ZlQ0Mv3b47hABuTevyTuYN4i+loJKGeV9flcCgIK37cCXRh+L1bd3iBHlynerhQ7BhCkn2BPbQUL+rGqFg==", + "dev": true, + "dependencies": { + "@babel/helper-validator-identifier": "^7.27.1", + "js-tokens": "^4.0.0", + "picocolors": "^1.1.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/compat-data": { + "version": "7.28.5", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.28.5.tgz", + "integrity": "sha512-6uFXyCayocRbqhZOB+6XcuZbkMNimwfVGFji8CTZnCzOHVGvDqzvitu1re2AU5LROliz7eQPhB8CpAMvnx9EjA==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/core": { + "version": "7.28.5", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.28.5.tgz", + "integrity": "sha512-e7jT4DxYvIDLk1ZHmU/m/mB19rex9sv0c2ftBtjSBv+kVM/902eh0fINUzD7UwLLNR+jU585GxUJ8/EBfAM5fw==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.27.1", + "@babel/generator": "^7.28.5", + "@babel/helper-compilation-targets": "^7.27.2", + "@babel/helper-module-transforms": "^7.28.3", + "@babel/helpers": "^7.28.4", + "@babel/parser": "^7.28.5", + "@babel/template": "^7.27.2", + "@babel/traverse": "^7.28.5", + "@babel/types": "^7.28.5", + "@jridgewell/remapping": "^2.3.5", + "convert-source-map": "^2.0.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.3", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/babel" + } + }, + "node_modules/@babel/generator": { + "version": "7.28.5", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.28.5.tgz", + "integrity": "sha512-3EwLFhZ38J4VyIP6WNtt2kUdW9dokXA9Cr4IVIFHuCpZ3H8/YFOl5JjZHisrn1fATPBmKKqXzDFvh9fUwHz6CQ==", + "dev": true, + "dependencies": { + "@babel/parser": "^7.28.5", + "@babel/types": "^7.28.5", + "@jridgewell/gen-mapping": "^0.3.12", + "@jridgewell/trace-mapping": "^0.3.28", + "jsesc": "^3.0.2" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-compilation-targets": { + "version": "7.27.2", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.27.2.tgz", + "integrity": "sha512-2+1thGUUWWjLTYTHZWK1n8Yga0ijBz1XAhUXcKy81rd5g6yh7hGqMp45v7cadSbEHc9G3OTv45SyneRN3ps4DQ==", + "dev": true, + "dependencies": { + "@babel/compat-data": "^7.27.2", + "@babel/helper-validator-option": "^7.27.1", + "browserslist": "^4.24.0", + "lru-cache": "^5.1.1", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-globals": { + "version": "7.28.0", + "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.28.0.tgz", + "integrity": "sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-imports": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.27.1.tgz", + "integrity": "sha512-0gSFWUPNXNopqtIPQvlD5WgXYI5GY2kP2cCvoT8kczjbfcfuIljTbcWrulD1CIPIX2gt1wghbDy08yE1p+/r3w==", + "dev": true, + "dependencies": { + "@babel/traverse": "^7.27.1", + "@babel/types": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-transforms": { + "version": "7.28.3", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.28.3.tgz", + "integrity": "sha512-gytXUbs8k2sXS9PnQptz5o0QnpLL51SwASIORY6XaBKF88nsOT0Zw9szLqlSGQDP/4TljBAD5y98p2U1fqkdsw==", + "dev": true, + "dependencies": { + "@babel/helper-module-imports": "^7.27.1", + "@babel/helper-validator-identifier": "^7.27.1", + "@babel/traverse": "^7.28.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-plugin-utils": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.27.1.tgz", + "integrity": "sha512-1gn1Up5YXka3YYAHGKpbideQ5Yjf1tDa9qYcgysz+cNCXukyLl6DjPXhD3VRwSb8c0J9tA4b2+rHEZtc6R0tlw==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz", + "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.28.5", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.28.5.tgz", + "integrity": "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-option": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.27.1.tgz", + "integrity": "sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helpers": { + "version": "7.28.4", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.28.4.tgz", + "integrity": "sha512-HFN59MmQXGHVyYadKLVumYsA9dBFun/ldYxipEjzA4196jpLZd8UjEEBLkbEkvfYreDqJhZxYAWFPtrfhNpj4w==", + "dev": true, + "dependencies": { + "@babel/template": "^7.27.2", + "@babel/types": "^7.28.4" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/parser": { + "version": "7.28.5", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.28.5.tgz", + "integrity": "sha512-KKBU1VGYR7ORr3At5HAtUQ+TV3SzRCXmA/8OdDZiLDBIZxVyzXuztPjfLd3BV1PRAQGCMWWSHYhL0F8d5uHBDQ==", + "dev": true, + "dependencies": { + "@babel/types": "^7.28.5" + }, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/plugin-transform-react-jsx-self": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.27.1.tgz", + "integrity": "sha512-6UzkCs+ejGdZ5mFFC/OCUrv028ab2fp1znZmCZjAOBKiBK2jXD1O+BPSfX8X2qjJ75fZBMSnQn3Rq2mrBJK2mw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-react-jsx-source": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.27.1.tgz", + "integrity": "sha512-zbwoTsBruTeKB9hSq73ha66iFeJHuaFkUbwvqElnygoNbj/jHRsSeokowZFN3CZ64IvEqcmmkVe89OPXc7ldAw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/template": { + "version": "7.27.2", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.27.2.tgz", + "integrity": "sha512-LPDZ85aEJyYSd18/DkjNh4/y1ntkE5KwUHWTiqgRxruuZL2F1yuHligVHLvcHY2vMHXttKFpJn6LwfI7cw7ODw==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.27.1", + "@babel/parser": "^7.27.2", + "@babel/types": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse": { + "version": "7.28.5", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.28.5.tgz", + "integrity": "sha512-TCCj4t55U90khlYkVV/0TfkJkAkUg3jZFA3Neb7unZT8CPok7iiRfaX0F+WnqWqt7OxhOn0uBKXCw4lbL8W0aQ==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.27.1", + "@babel/generator": "^7.28.5", + "@babel/helper-globals": "^7.28.0", + "@babel/parser": "^7.28.5", + "@babel/template": "^7.27.2", + "@babel/types": "^7.28.5", + "debug": "^4.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/types": { + "version": "7.28.5", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.28.5.tgz", + "integrity": "sha512-qQ5m48eI/MFLQ5PxQj4PFaprjyCTLI37ElWMmNs0K8Lk3dVeOdNpB3ks8jc7yM5CDmVC73eMVk/trk3fgmrUpA==", + "dev": true, + "dependencies": { + "@babel/helper-string-parser": "^7.27.1", + "@babel/helper-validator-identifier": "^7.28.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@esbuild/aix-ppc64": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.27.2.tgz", + "integrity": "sha512-GZMB+a0mOMZs4MpDbj8RJp4cw+w1WV5NYD6xzgvzUJ5Ek2jerwfO2eADyI6ExDSUED+1X8aMbegahsJi+8mgpw==", + "cpu": [ + "ppc64" + ], + "dev": true, + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.27.2.tgz", + "integrity": "sha512-DVNI8jlPa7Ujbr1yjU2PfUSRtAUZPG9I1RwW4F4xFB1Imiu2on0ADiI/c3td+KmDtVKNbi+nffGDQMfcIMkwIA==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm64": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.27.2.tgz", + "integrity": "sha512-pvz8ZZ7ot/RBphf8fv60ljmaoydPU12VuXHImtAs0XhLLw+EXBi2BLe3OYSBslR4rryHvweW5gmkKFwTiFy6KA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-x64": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.27.2.tgz", + "integrity": "sha512-z8Ank4Byh4TJJOh4wpz8g2vDy75zFL0TlZlkUkEwYXuPSgX8yzep596n6mT7905kA9uHZsf/o2OJZubl2l3M7A==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-arm64": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.27.2.tgz", + "integrity": "sha512-davCD2Zc80nzDVRwXTcQP/28fiJbcOwvdolL0sOiOsbwBa72kegmVU0Wrh1MYrbuCL98Omp5dVhQFWRKR2ZAlg==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-x64": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.27.2.tgz", + "integrity": "sha512-ZxtijOmlQCBWGwbVmwOF/UCzuGIbUkqB1faQRf5akQmxRJ1ujusWsb3CVfk/9iZKr2L5SMU5wPBi1UWbvL+VQA==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-arm64": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.27.2.tgz", + "integrity": "sha512-lS/9CN+rgqQ9czogxlMcBMGd+l8Q3Nj1MFQwBZJyoEKI50XGxwuzznYdwcav6lpOGv5BqaZXqvBSiB/kJ5op+g==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-x64": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.27.2.tgz", + "integrity": "sha512-tAfqtNYb4YgPnJlEFu4c212HYjQWSO/w/h/lQaBK7RbwGIkBOuNKQI9tqWzx7Wtp7bTPaGC6MJvWI608P3wXYA==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.27.2.tgz", + "integrity": "sha512-vWfq4GaIMP9AIe4yj1ZUW18RDhx6EPQKjwe7n8BbIecFtCQG4CfHGaHuh7fdfq+y3LIA2vGS/o9ZBGVxIDi9hw==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm64": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.27.2.tgz", + "integrity": "sha512-hYxN8pr66NsCCiRFkHUAsxylNOcAQaxSSkHMMjcpx0si13t1LHFphxJZUiGwojB1a/Hd5OiPIqDdXONia6bhTw==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ia32": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.27.2.tgz", + "integrity": "sha512-MJt5BRRSScPDwG2hLelYhAAKh9imjHK5+NE/tvnRLbIqUWa+0E9N4WNMjmp/kXXPHZGqPLxggwVhz7QP8CTR8w==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-loong64": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.27.2.tgz", + "integrity": "sha512-lugyF1atnAT463aO6KPshVCJK5NgRnU4yb3FUumyVz+cGvZbontBgzeGFO1nF+dPueHD367a2ZXe1NtUkAjOtg==", + "cpu": [ + "loong64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-mips64el": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.27.2.tgz", + "integrity": "sha512-nlP2I6ArEBewvJ2gjrrkESEZkB5mIoaTswuqNFRv/WYd+ATtUpe9Y09RnJvgvdag7he0OWgEZWhviS1OTOKixw==", + "cpu": [ + "mips64el" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ppc64": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.27.2.tgz", + "integrity": "sha512-C92gnpey7tUQONqg1n6dKVbx3vphKtTHJaNG2Ok9lGwbZil6DrfyecMsp9CrmXGQJmZ7iiVXvvZH6Ml5hL6XdQ==", + "cpu": [ + "ppc64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-riscv64": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.27.2.tgz", + "integrity": "sha512-B5BOmojNtUyN8AXlK0QJyvjEZkWwy/FKvakkTDCziX95AowLZKR6aCDhG7LeF7uMCXEJqwa8Bejz5LTPYm8AvA==", + "cpu": [ + "riscv64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-s390x": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.27.2.tgz", + "integrity": "sha512-p4bm9+wsPwup5Z8f4EpfN63qNagQ47Ua2znaqGH6bqLlmJ4bx97Y9JdqxgGZ6Y8xVTixUnEkoKSHcpRlDnNr5w==", + "cpu": [ + "s390x" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-x64": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.27.2.tgz", + "integrity": "sha512-uwp2Tip5aPmH+NRUwTcfLb+W32WXjpFejTIOWZFw/v7/KnpCDKG66u4DLcurQpiYTiYwQ9B7KOeMJvLCu/OvbA==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-arm64": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.27.2.tgz", + "integrity": "sha512-Kj6DiBlwXrPsCRDeRvGAUb/LNrBASrfqAIok+xB0LxK8CHqxZ037viF13ugfsIpePH93mX7xfJp97cyDuTZ3cw==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-x64": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.27.2.tgz", + "integrity": "sha512-HwGDZ0VLVBY3Y+Nw0JexZy9o/nUAWq9MlV7cahpaXKW6TOzfVno3y3/M8Ga8u8Yr7GldLOov27xiCnqRZf0tCA==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-arm64": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.27.2.tgz", + "integrity": "sha512-DNIHH2BPQ5551A7oSHD0CKbwIA/Ox7+78/AWkbS5QoRzaqlev2uFayfSxq68EkonB+IKjiuxBFoV8ESJy8bOHA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-x64": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.27.2.tgz", + "integrity": "sha512-/it7w9Nb7+0KFIzjalNJVR5bOzA9Vay+yIPLVHfIQYG/j+j9VTH84aNB8ExGKPU4AzfaEvN9/V4HV+F+vo8OEg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openharmony-arm64": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.27.2.tgz", + "integrity": "sha512-LRBbCmiU51IXfeXk59csuX/aSaToeG7w48nMwA6049Y4J4+VbWALAuXcs+qcD04rHDuSCSRKdmY63sruDS5qag==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "openharmony" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/sunos-x64": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.27.2.tgz", + "integrity": "sha512-kMtx1yqJHTmqaqHPAzKCAkDaKsffmXkPHThSfRwZGyuqyIeBvf08KSsYXl+abf5HDAPMJIPnbBfXvP2ZC2TfHg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-arm64": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.27.2.tgz", + "integrity": "sha512-Yaf78O/B3Kkh+nKABUF++bvJv5Ijoy9AN1ww904rOXZFLWVc5OLOfL56W+C8F9xn5JQZa3UX6m+IktJnIb1Jjg==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-ia32": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.27.2.tgz", + "integrity": "sha512-Iuws0kxo4yusk7sw70Xa2E2imZU5HoixzxfGCdxwBdhiDgt9vX9VUCBhqcwY7/uh//78A1hMkkROMJq9l27oLQ==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-x64": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.27.2.tgz", + "integrity": "sha512-sRdU18mcKf7F+YgheI/zGf5alZatMUTKj/jNS6l744f9u3WFu4v7twcUI9vu4mknF4Y9aDlblIie0IM+5xxaqQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@eslint-community/eslint-utils": { + "version": "4.9.0", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.9.0.tgz", + "integrity": "sha512-ayVFHdtZ+hsq1t2Dy24wCmGXGe4q9Gu3smhLYALJrr473ZH27MsnSL+LKUlimp4BWJqMDMLmPpx/Q9R3OAlL4g==", + "dev": true, + "dependencies": { + "eslint-visitor-keys": "^3.4.3" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" + } + }, + "node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@eslint-community/regexpp": { + "version": "4.12.2", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.2.tgz", + "integrity": "sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==", + "dev": true, + "engines": { + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" + } + }, + "node_modules/@eslint/config-array": { + "version": "0.21.1", + "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.21.1.tgz", + "integrity": "sha512-aw1gNayWpdI/jSYVgzN5pL0cfzU02GT3NBpeT/DXbx1/1x7ZKxFPd9bwrzygx/qiwIQiJ1sw/zD8qY/kRvlGHA==", + "dev": true, + "dependencies": { + "@eslint/object-schema": "^2.1.7", + "debug": "^4.3.1", + "minimatch": "^3.1.2" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/config-helpers": { + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.4.2.tgz", + "integrity": "sha512-gBrxN88gOIf3R7ja5K9slwNayVcZgK6SOUORm2uBzTeIEfeVaIhOpCtTox3P6R7o2jLFwLFTLnC7kU/RGcYEgw==", + "dev": true, + "dependencies": { + "@eslint/core": "^0.17.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/core": { + "version": "0.17.0", + "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.17.0.tgz", + "integrity": "sha512-yL/sLrpmtDaFEiUj1osRP4TI2MDz1AddJL+jZ7KSqvBuliN4xqYY54IfdN8qD8Toa6g1iloph1fxQNkjOxrrpQ==", + "dev": true, + "dependencies": { + "@types/json-schema": "^7.0.15" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/eslintrc": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.3.tgz", + "integrity": "sha512-Kr+LPIUVKz2qkx1HAMH8q1q6azbqBAsXJUxBl/ODDuVPX45Z9DfwB8tPjTi6nNZ8BuM3nbJxC5zCAg5elnBUTQ==", + "dev": true, + "dependencies": { + "ajv": "^6.12.4", + "debug": "^4.3.2", + "espree": "^10.0.1", + "globals": "^14.0.0", + "ignore": "^5.2.0", + "import-fresh": "^3.2.1", + "js-yaml": "^4.1.1", + "minimatch": "^3.1.2", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@eslint/eslintrc/node_modules/globals": { + "version": "14.0.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz", + "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==", + "dev": true, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@eslint/js": { + "version": "9.39.2", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.39.2.tgz", + "integrity": "sha512-q1mjIoW1VX4IvSocvM/vbTiveKC4k9eLrajNEuSsmjymSDEbpGddtpfOoN7YGAqBK3NG+uqo8ia4PDTt8buCYA==", + "dev": true, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://eslint.org/donate" + } + }, + "node_modules/@eslint/object-schema": { + "version": "2.1.7", + "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-2.1.7.tgz", + "integrity": "sha512-VtAOaymWVfZcmZbp6E2mympDIHvyjXs/12LqWYjVw6qjrfF+VK+fyG33kChz3nnK+SU5/NeHOqrTEHS8sXO3OA==", + "dev": true, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/plugin-kit": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.4.1.tgz", + "integrity": "sha512-43/qtrDUokr7LJqoF2c3+RInu/t4zfrpYdoSDfYyhg52rwLV6TnOvdG4fXm7IkSB3wErkcmJS9iEhjVtOSEjjA==", + "dev": true, + "dependencies": { + "@eslint/core": "^0.17.0", + "levn": "^0.4.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@humanfs/core": { + "version": "0.19.1", + "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.1.tgz", + "integrity": "sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==", + "dev": true, + "engines": { + "node": ">=18.18.0" + } + }, + "node_modules/@humanfs/node": { + "version": "0.16.7", + "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.7.tgz", + "integrity": "sha512-/zUx+yOsIrG4Y43Eh2peDeKCxlRt/gET6aHfaKpuq267qXdYDFViVHfMaLyygZOnl0kGWxFIgsBy8QFuTLUXEQ==", + "dev": true, + "dependencies": { + "@humanfs/core": "^0.19.1", + "@humanwhocodes/retry": "^0.4.0" + }, + "engines": { + "node": ">=18.18.0" + } + }, + "node_modules/@humanwhocodes/module-importer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", + "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", + "dev": true, + "engines": { + "node": ">=12.22" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@humanwhocodes/retry": { + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.3.tgz", + "integrity": "sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==", + "dev": true, + "engines": { + "node": ">=18.18" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.13", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", + "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==", + "dev": true, + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.0", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/remapping": { + "version": "2.3.5", + "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz", + "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==", + "dev": true, + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "dev": true, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz", + "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==", + "dev": true + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.31", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz", + "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==", + "dev": true, + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "dev": true, + "dependencies": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "dev": true, + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@reduxjs/toolkit": { + "version": "2.11.2", + "resolved": "https://registry.npmjs.org/@reduxjs/toolkit/-/toolkit-2.11.2.tgz", + "integrity": "sha512-Kd6kAHTA6/nUpp8mySPqj3en3dm0tdMIgbttnQ1xFMVpufoj+ADi8pXLBsd4xzTRHQa7t/Jv8W5UnCuW4kuWMQ==", + "dependencies": { + "@standard-schema/spec": "^1.0.0", + "@standard-schema/utils": "^0.3.0", + "immer": "^11.0.0", + "redux": "^5.0.1", + "redux-thunk": "^3.1.0", + "reselect": "^5.1.0" + }, + "peerDependencies": { + "react": "^16.9.0 || ^17.0.0 || ^18 || ^19", + "react-redux": "^7.2.1 || ^8.1.3 || ^9.0.0" + }, + "peerDependenciesMeta": { + "react": { + "optional": true + }, + "react-redux": { + "optional": true + } + } + }, + "node_modules/@reduxjs/toolkit/node_modules/immer": { + "version": "11.1.3", + "resolved": "https://registry.npmjs.org/immer/-/immer-11.1.3.tgz", + "integrity": "sha512-6jQTc5z0KJFtr1UgFpIL3N9XSC3saRaI9PwWtzM2pSqkNGtiNkYY2OSwkOGDK2XcTRcLb1pi/aNkKZz0nxVH4Q==", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/immer" + } + }, + "node_modules/@rolldown/pluginutils": { + "version": "1.0.0-beta.53", + "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.0-beta.53.tgz", + "integrity": "sha512-vENRlFU4YbrwVqNDZ7fLvy+JR1CRkyr01jhSiDpE1u6py3OMzQfztQU2jxykW3ALNxO4kSlqIDeYyD0Y9RcQeQ==", + "dev": true + }, + "node_modules/@rollup/rollup-android-arm-eabi": { + "version": "4.54.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.54.0.tgz", + "integrity": "sha512-OywsdRHrFvCdvsewAInDKCNyR3laPA2mc9bRYJ6LBp5IyvF3fvXbbNR0bSzHlZVFtn6E0xw2oZlyjg4rKCVcng==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-android-arm64": { + "version": "4.54.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.54.0.tgz", + "integrity": "sha512-Skx39Uv+u7H224Af+bDgNinitlmHyQX1K/atIA32JP3JQw6hVODX5tkbi2zof/E69M1qH2UoN3Xdxgs90mmNYw==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-darwin-arm64": { + "version": "4.54.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.54.0.tgz", + "integrity": "sha512-k43D4qta/+6Fq+nCDhhv9yP2HdeKeP56QrUUTW7E6PhZP1US6NDqpJj4MY0jBHlJivVJD5P8NxrjuobZBJTCRw==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-darwin-x64": { + "version": "4.54.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.54.0.tgz", + "integrity": "sha512-cOo7biqwkpawslEfox5Vs8/qj83M/aZCSSNIWpVzfU2CYHa2G3P1UN5WF01RdTHSgCkri7XOlTdtk17BezlV3A==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-freebsd-arm64": { + "version": "4.54.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.54.0.tgz", + "integrity": "sha512-miSvuFkmvFbgJ1BevMa4CPCFt5MPGw094knM64W9I0giUIMMmRYcGW/JWZDriaw/k1kOBtsWh1z6nIFV1vPNtA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@rollup/rollup-freebsd-x64": { + "version": "4.54.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.54.0.tgz", + "integrity": "sha512-KGXIs55+b/ZfZsq9aR026tmr/+7tq6VG6MsnrvF4H8VhwflTIuYh+LFUlIsRdQSgrgmtM3fVATzEAj4hBQlaqQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@rollup/rollup-linux-arm-gnueabihf": { + "version": "4.54.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.54.0.tgz", + "integrity": "sha512-EHMUcDwhtdRGlXZsGSIuXSYwD5kOT9NVnx9sqzYiwAc91wfYOE1g1djOEDseZJKKqtHAHGwnGPQu3kytmfaXLQ==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm-musleabihf": { + "version": "4.54.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.54.0.tgz", + "integrity": "sha512-+pBrqEjaakN2ySv5RVrj/qLytYhPKEUwk+e3SFU5jTLHIcAtqh2rLrd/OkbNuHJpsBgxsD8ccJt5ga/SeG0JmA==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-gnu": { + "version": "4.54.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.54.0.tgz", + "integrity": "sha512-NSqc7rE9wuUaRBsBp5ckQ5CVz5aIRKCwsoa6WMF7G01sX3/qHUw/z4pv+D+ahL1EIKy6Enpcnz1RY8pf7bjwng==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-musl": { + "version": "4.54.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.54.0.tgz", + "integrity": "sha512-gr5vDbg3Bakga5kbdpqx81m2n9IX8M6gIMlQQIXiLTNeQW6CucvuInJ91EuCJ/JYvc+rcLLsDFcfAD1K7fMofg==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-loong64-gnu": { + "version": "4.54.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.54.0.tgz", + "integrity": "sha512-gsrtB1NA3ZYj2vq0Rzkylo9ylCtW/PhpLEivlgWe0bpgtX5+9j9EZa0wtZiCjgu6zmSeZWyI/e2YRX1URozpIw==", + "cpu": [ + "loong64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-ppc64-gnu": { + "version": "4.54.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.54.0.tgz", + "integrity": "sha512-y3qNOfTBStmFNq+t4s7Tmc9hW2ENtPg8FeUD/VShI7rKxNW7O4fFeaYbMsd3tpFlIg1Q8IapFgy7Q9i2BqeBvA==", + "cpu": [ + "ppc64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-gnu": { + "version": "4.54.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.54.0.tgz", + "integrity": "sha512-89sepv7h2lIVPsFma8iwmccN7Yjjtgz0Rj/Ou6fEqg3HDhpCa+Et+YSufy27i6b0Wav69Qv4WBNl3Rs6pwhebQ==", + "cpu": [ + "riscv64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-musl": { + "version": "4.54.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.54.0.tgz", + "integrity": "sha512-ZcU77ieh0M2Q8Ur7D5X7KvK+UxbXeDHwiOt/CPSBTI1fBmeDMivW0dPkdqkT4rOgDjrDDBUed9x4EgraIKoR2A==", + "cpu": [ + "riscv64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-s390x-gnu": { + "version": "4.54.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.54.0.tgz", + "integrity": "sha512-2AdWy5RdDF5+4YfG/YesGDDtbyJlC9LHmL6rZw6FurBJ5n4vFGupsOBGfwMRjBYH7qRQowT8D/U4LoSvVwOhSQ==", + "cpu": [ + "s390x" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-gnu": { + "version": "4.54.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.54.0.tgz", + "integrity": "sha512-WGt5J8Ij/rvyqpFexxk3ffKqqbLf9AqrTBbWDk7ApGUzaIs6V+s2s84kAxklFwmMF/vBNGrVdYgbblCOFFezMQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-musl": { + "version": "4.54.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.54.0.tgz", + "integrity": "sha512-JzQmb38ATzHjxlPHuTH6tE7ojnMKM2kYNzt44LO/jJi8BpceEC8QuXYA908n8r3CNuG/B3BV8VR3Hi1rYtmPiw==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-openharmony-arm64": { + "version": "4.54.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.54.0.tgz", + "integrity": "sha512-huT3fd0iC7jigGh7n3q/+lfPcXxBi+om/Rs3yiFxjvSxbSB6aohDFXbWvlspaqjeOh+hx7DDHS+5Es5qRkWkZg==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "openharmony" + ] + }, + "node_modules/@rollup/rollup-win32-arm64-msvc": { + "version": "4.54.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.54.0.tgz", + "integrity": "sha512-c2V0W1bsKIKfbLMBu/WGBz6Yci8nJ/ZJdheE0EwB73N3MvHYKiKGs3mVilX4Gs70eGeDaMqEob25Tw2Gb9Nqyw==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-ia32-msvc": { + "version": "4.54.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.54.0.tgz", + "integrity": "sha512-woEHgqQqDCkAzrDhvDipnSirm5vxUXtSKDYTVpZG3nUdW/VVB5VdCYA2iReSj/u3yCZzXID4kuKG7OynPnB3WQ==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-gnu": { + "version": "4.54.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.54.0.tgz", + "integrity": "sha512-dzAc53LOuFvHwbCEOS0rPbXp6SIhAf2txMP5p6mGyOXXw5mWY8NGGbPMPrs4P1WItkfApDathBj/NzMLUZ9rtQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-msvc": { + "version": "4.54.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.54.0.tgz", + "integrity": "sha512-hYT5d3YNdSh3mbCU1gwQyPgQd3T2ne0A3KG8KSBdav5TiBg6eInVmV+TeR5uHufiIgSFg0XsOWGW5/RhNcSvPg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@standard-schema/spec": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@standard-schema/spec/-/spec-1.1.0.tgz", + "integrity": "sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==" + }, + "node_modules/@standard-schema/utils": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/@standard-schema/utils/-/utils-0.3.0.tgz", + "integrity": "sha512-e7Mew686owMaPJVNNLs55PUvgz371nKgwsc4vxE49zsODpJEnxgxRo2y/OKrqueavXgZNMDVj3DdHFlaSAeU8g==" + }, + "node_modules/@tailwindcss/forms": { + "version": "0.5.11", + "resolved": "https://registry.npmjs.org/@tailwindcss/forms/-/forms-0.5.11.tgz", + "integrity": "sha512-h9wegbZDPurxG22xZSoWtdzc41/OlNEUQERNqI/0fOwa2aVlWGu7C35E/x6LDyD3lgtztFSSjKZyuVM0hxhbgA==", + "dev": true, + "dependencies": { + "mini-svg-data-uri": "^1.2.3" + }, + "peerDependencies": { + "tailwindcss": ">=3.0.0 || >= 3.0.0-alpha.1 || >= 4.0.0-alpha.20 || >= 4.0.0-beta.1" + } + }, + "node_modules/@types/babel__core": { + "version": "7.20.5", + "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz", + "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==", + "dev": true, + "dependencies": { + "@babel/parser": "^7.20.7", + "@babel/types": "^7.20.7", + "@types/babel__generator": "*", + "@types/babel__template": "*", + "@types/babel__traverse": "*" + } + }, + "node_modules/@types/babel__generator": { + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.27.0.tgz", + "integrity": "sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==", + "dev": true, + "dependencies": { + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__template": { + "version": "7.4.4", + "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz", + "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==", + "dev": true, + "dependencies": { + "@babel/parser": "^7.1.0", + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__traverse": { + "version": "7.28.0", + "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.28.0.tgz", + "integrity": "sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q==", + "dev": true, + "dependencies": { + "@babel/types": "^7.28.2" + } + }, + "node_modules/@types/d3-array": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/@types/d3-array/-/d3-array-3.2.2.tgz", + "integrity": "sha512-hOLWVbm7uRza0BYXpIIW5pxfrKe0W+D5lrFiAEYR+pb6w3N2SwSMaJbXdUfSEv+dT4MfHBLtn5js0LAWaO6otw==" + }, + "node_modules/@types/d3-color": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/@types/d3-color/-/d3-color-3.1.3.tgz", + "integrity": "sha512-iO90scth9WAbmgv7ogoq57O9YpKmFBbmoEoCHDB2xMBY0+/KVrqAaCDyCE16dUspeOvIxFFRI+0sEtqDqy2b4A==" + }, + "node_modules/@types/d3-ease": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@types/d3-ease/-/d3-ease-3.0.2.tgz", + "integrity": "sha512-NcV1JjO5oDzoK26oMzbILE6HW7uVXOHLQvHshBUW4UMdZGfiY6v5BeQwh9a9tCzv+CeefZQHJt5SRgK154RtiA==" + }, + "node_modules/@types/d3-interpolate": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@types/d3-interpolate/-/d3-interpolate-3.0.4.tgz", + "integrity": "sha512-mgLPETlrpVV1YRJIglr4Ez47g7Yxjl1lj7YKsiMCb27VJH9W8NVM6Bb9d8kkpG/uAQS5AmbA48q2IAolKKo1MA==", + "dependencies": { + "@types/d3-color": "*" + } + }, + "node_modules/@types/d3-path": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/@types/d3-path/-/d3-path-3.1.1.tgz", + "integrity": "sha512-VMZBYyQvbGmWyWVea0EHs/BwLgxc+MKi1zLDCONksozI4YJMcTt8ZEuIR4Sb1MMTE8MMW49v0IwI5+b7RmfWlg==" + }, + "node_modules/@types/d3-scale": { + "version": "4.0.9", + "resolved": "https://registry.npmjs.org/@types/d3-scale/-/d3-scale-4.0.9.tgz", + "integrity": "sha512-dLmtwB8zkAeO/juAMfnV+sItKjlsw2lKdZVVy6LRr0cBmegxSABiLEpGVmSJJ8O08i4+sGR6qQtb6WtuwJdvVw==", + "dependencies": { + "@types/d3-time": "*" + } + }, + "node_modules/@types/d3-shape": { + "version": "3.1.7", + "resolved": "https://registry.npmjs.org/@types/d3-shape/-/d3-shape-3.1.7.tgz", + "integrity": "sha512-VLvUQ33C+3J+8p+Daf+nYSOsjB4GXp19/S/aGo60m9h1v6XaxjiT82lKVWJCfzhtuZ3yD7i/TPeC/fuKLLOSmg==", + "dependencies": { + "@types/d3-path": "*" + } + }, + "node_modules/@types/d3-time": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@types/d3-time/-/d3-time-3.0.4.tgz", + "integrity": "sha512-yuzZug1nkAAaBlBBikKZTgzCeA+k1uy4ZFwWANOfKw5z5LRhV0gNA7gNkKm7HoK+HRN0wX3EkxGk0fpbWhmB7g==" + }, + "node_modules/@types/d3-timer": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@types/d3-timer/-/d3-timer-3.0.2.tgz", + "integrity": "sha512-Ps3T8E8dZDam6fUyNiMkekK3XUsaUEik+idO9/YjPtfj2qruF8tFBXS7XhtE4iIXBLxhmLjP3SXpLhVf21I9Lw==" + }, + "node_modules/@types/estree": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz", + "integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==", + "dev": true + }, + "node_modules/@types/json-schema": { + "version": "7.0.15", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", + "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", + "dev": true + }, + "node_modules/@types/node": { + "version": "24.10.4", + "resolved": "https://registry.npmjs.org/@types/node/-/node-24.10.4.tgz", + "integrity": "sha512-vnDVpYPMzs4wunl27jHrfmwojOGKya0xyM3sH+UE5iv5uPS6vX7UIoh6m+vQc5LGBq52HBKPIn/zcSZVzeDEZg==", + "dev": true, + "dependencies": { + "undici-types": "~7.16.0" + } + }, + "node_modules/@types/react": { + "version": "19.2.7", + "resolved": "https://registry.npmjs.org/@types/react/-/react-19.2.7.tgz", + "integrity": "sha512-MWtvHrGZLFttgeEj28VXHxpmwYbor/ATPYbBfSFZEIRK0ecCFLl2Qo55z52Hss+UV9CRN7trSeq1zbgx7YDWWg==", + "devOptional": true, + "dependencies": { + "csstype": "^3.2.2" + } + }, + "node_modules/@types/react-dom": { + "version": "19.2.3", + "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-19.2.3.tgz", + "integrity": "sha512-jp2L/eY6fn+KgVVQAOqYItbF0VY/YApe5Mz2F0aykSO8gx31bYCZyvSeYxCHKvzHG5eZjc+zyaS5BrBWya2+kQ==", + "dev": true, + "peerDependencies": { + "@types/react": "^19.2.0" + } + }, + "node_modules/@types/use-sync-external-store": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/@types/use-sync-external-store/-/use-sync-external-store-0.0.6.tgz", + "integrity": "sha512-zFDAD+tlpf2r4asuHEj0XH6pY6i0g5NeAHPn+15wk3BV6JA69eERFXC1gyGThDkVa1zCyKr5jox1+2LbV/AMLg==" + }, + "node_modules/@typescript-eslint/eslint-plugin": { + "version": "8.51.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.51.0.tgz", + "integrity": "sha512-XtssGWJvypyM2ytBnSnKtHYOGT+4ZwTnBVl36TA4nRO2f4PRNGz5/1OszHzcZCvcBMh+qb7I06uoCmLTRdR9og==", + "dev": true, + "dependencies": { + "@eslint-community/regexpp": "^4.10.0", + "@typescript-eslint/scope-manager": "8.51.0", + "@typescript-eslint/type-utils": "8.51.0", + "@typescript-eslint/utils": "8.51.0", + "@typescript-eslint/visitor-keys": "8.51.0", + "ignore": "^7.0.0", + "natural-compare": "^1.4.0", + "ts-api-utils": "^2.2.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "@typescript-eslint/parser": "^8.51.0", + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/eslint-plugin/node_modules/ignore": { + "version": "7.0.5", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.5.tgz", + "integrity": "sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg==", + "dev": true, + "engines": { + "node": ">= 4" + } + }, + "node_modules/@typescript-eslint/parser": { + "version": "8.51.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.51.0.tgz", + "integrity": "sha512-3xP4XzzDNQOIqBMWogftkwxhg5oMKApqY0BAflmLZiFYHqyhSOxv/cd/zPQLTcCXr4AkaKb25joocY0BD1WC6A==", + "dev": true, + "dependencies": { + "@typescript-eslint/scope-manager": "8.51.0", + "@typescript-eslint/types": "8.51.0", + "@typescript-eslint/typescript-estree": "8.51.0", + "@typescript-eslint/visitor-keys": "8.51.0", + "debug": "^4.3.4" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/project-service": { + "version": "8.51.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.51.0.tgz", + "integrity": "sha512-Luv/GafO07Z7HpiI7qeEW5NW8HUtZI/fo/kE0YbtQEFpJRUuR0ajcWfCE5bnMvL7QQFrmT/odMe8QZww8X2nfQ==", + "dev": true, + "dependencies": { + "@typescript-eslint/tsconfig-utils": "^8.51.0", + "@typescript-eslint/types": "^8.51.0", + "debug": "^4.3.4" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/scope-manager": { + "version": "8.51.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.51.0.tgz", + "integrity": "sha512-JhhJDVwsSx4hiOEQPeajGhCWgBMBwVkxC/Pet53EpBVs7zHHtayKefw1jtPaNRXpI9RA2uocdmpdfE7T+NrizA==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "8.51.0", + "@typescript-eslint/visitor-keys": "8.51.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/tsconfig-utils": { + "version": "8.51.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.51.0.tgz", + "integrity": "sha512-Qi5bSy/vuHeWyir2C8u/uqGMIlIDu8fuiYWv48ZGlZ/k+PRPHtaAu7erpc7p5bzw2WNNSniuxoMSO4Ar6V9OXw==", + "dev": true, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/type-utils": { + "version": "8.51.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.51.0.tgz", + "integrity": "sha512-0XVtYzxnobc9K0VU7wRWg1yiUrw4oQzexCG2V2IDxxCxhqBMSMbjB+6o91A+Uc0GWtgjCa3Y8bi7hwI0Tu4n5Q==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "8.51.0", + "@typescript-eslint/typescript-estree": "8.51.0", + "@typescript-eslint/utils": "8.51.0", + "debug": "^4.3.4", + "ts-api-utils": "^2.2.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/types": { + "version": "8.51.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.51.0.tgz", + "integrity": "sha512-TizAvWYFM6sSscmEakjY3sPqGwxZRSywSsPEiuZF6d5GmGD9Gvlsv0f6N8FvAAA0CD06l3rIcWNbsN1e5F/9Ag==", + "dev": true, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/typescript-estree": { + "version": "8.51.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.51.0.tgz", + "integrity": "sha512-1qNjGqFRmlq0VW5iVlcyHBbCjPB7y6SxpBkrbhNWMy/65ZoncXCEPJxkRZL8McrseNH6lFhaxCIaX+vBuFnRng==", + "dev": true, + "dependencies": { + "@typescript-eslint/project-service": "8.51.0", + "@typescript-eslint/tsconfig-utils": "8.51.0", + "@typescript-eslint/types": "8.51.0", + "@typescript-eslint/visitor-keys": "8.51.0", + "debug": "^4.3.4", + "minimatch": "^9.0.4", + "semver": "^7.6.0", + "tinyglobby": "^0.2.15", + "ts-api-utils": "^2.2.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz", + "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", + "dev": true, + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/semver": { + "version": "7.7.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.3.tgz", + "integrity": "sha512-SdsKMrI9TdgjdweUSR9MweHA4EJ8YxHn8DFaDisvhVlUOe4BF1tLD7GAj0lIqWVl+dPb/rExr0Btby5loQm20Q==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@typescript-eslint/utils": { + "version": "8.51.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.51.0.tgz", + "integrity": "sha512-11rZYxSe0zabiKaCP2QAwRf/dnmgFgvTmeDTtZvUvXG3UuAdg/GU02NExmmIXzz3vLGgMdtrIosI84jITQOxUA==", + "dev": true, + "dependencies": { + "@eslint-community/eslint-utils": "^4.7.0", + "@typescript-eslint/scope-manager": "8.51.0", + "@typescript-eslint/types": "8.51.0", + "@typescript-eslint/typescript-estree": "8.51.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/visitor-keys": { + "version": "8.51.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.51.0.tgz", + "integrity": "sha512-mM/JRQOzhVN1ykejrvwnBRV3+7yTKK8tVANVN3o1O0t0v7o+jqdVu9crPy5Y9dov15TJk/FTIgoUGHrTOVL3Zg==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "8.51.0", + "eslint-visitor-keys": "^4.2.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@vitejs/plugin-react": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-5.1.2.tgz", + "integrity": "sha512-EcA07pHJouywpzsoTUqNh5NwGayl2PPVEJKUSinGGSxFGYn+shYbqMGBg6FXDqgXum9Ou/ecb+411ssw8HImJQ==", + "dev": true, + "dependencies": { + "@babel/core": "^7.28.5", + "@babel/plugin-transform-react-jsx-self": "^7.27.1", + "@babel/plugin-transform-react-jsx-source": "^7.27.1", + "@rolldown/pluginutils": "1.0.0-beta.53", + "@types/babel__core": "^7.20.5", + "react-refresh": "^0.18.0" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "peerDependencies": { + "vite": "^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0" + } + }, + "node_modules/acorn": { + "version": "8.15.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz", + "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==", + "dev": true, + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "dev": true, + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/any-promise": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/any-promise/-/any-promise-1.3.0.tgz", + "integrity": "sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==", + "dev": true + }, + "node_modules/anymatch": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "dev": true, + "dependencies": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/anymatch/node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true, + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/arg": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/arg/-/arg-5.0.2.tgz", + "integrity": "sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==", + "dev": true + }, + "node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true + }, + "node_modules/autoprefixer": { + "version": "10.4.23", + "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.23.tgz", + "integrity": "sha512-YYTXSFulfwytnjAPlw8QHncHJmlvFKtczb8InXaAx9Q0LbfDnfEYDE55omerIJKihhmU61Ft+cAOSzQVaBUmeA==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/autoprefixer" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "browserslist": "^4.28.1", + "caniuse-lite": "^1.0.30001760", + "fraction.js": "^5.3.4", + "picocolors": "^1.1.1", + "postcss-value-parser": "^4.2.0" + }, + "bin": { + "autoprefixer": "bin/autoprefixer" + }, + "engines": { + "node": "^10 || ^12 || >=14" + }, + "peerDependencies": { + "postcss": "^8.1.0" + } + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true + }, + "node_modules/baseline-browser-mapping": { + "version": "2.9.11", + "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.9.11.tgz", + "integrity": "sha512-Sg0xJUNDU1sJNGdfGWhVHX0kkZ+HWcvmVymJbj6NSgZZmW/8S9Y2HQ5euytnIgakgxN6papOAWiwDo1ctFDcoQ==", + "dev": true, + "bin": { + "baseline-browser-mapping": "dist/cli.js" + } + }, + "node_modules/binary-extensions": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz", + "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/brace-expansion": { + "version": "1.1.12", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz", + "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/braces": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", + "dev": true, + "dependencies": { + "fill-range": "^7.1.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/browserslist": { + "version": "4.28.1", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.1.tgz", + "integrity": "sha512-ZC5Bd0LgJXgwGqUknZY/vkUQ04r8NXnJZ3yYi4vDmSiZmC/pdSN0NbNRPxZpbtO4uAfDUAFffO8IZoM3Gj8IkA==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "baseline-browser-mapping": "^2.9.0", + "caniuse-lite": "^1.0.30001759", + "electron-to-chromium": "^1.5.263", + "node-releases": "^2.0.27", + "update-browserslist-db": "^1.2.0" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/camelcase-css": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/camelcase-css/-/camelcase-css-2.0.1.tgz", + "integrity": "sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==", + "dev": true, + "engines": { + "node": ">= 6" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001762", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001762.tgz", + "integrity": "sha512-PxZwGNvH7Ak8WX5iXzoK1KPZttBXNPuaOvI2ZYU7NrlM+d9Ov+TUvlLOBNGzVXAntMSMMlJPd+jY6ovrVjSmUw==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ] + }, + "node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/chokidar": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz", + "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==", + "dev": true, + "dependencies": { + "anymatch": "~3.1.2", + "braces": "~3.0.2", + "glob-parent": "~5.1.2", + "is-binary-path": "~2.1.0", + "is-glob": "~4.0.1", + "normalize-path": "~3.0.0", + "readdirp": "~3.6.0" + }, + "engines": { + "node": ">= 8.10.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" + } + }, + "node_modules/chokidar/node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/clsx": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/clsx/-/clsx-2.1.1.tgz", + "integrity": "sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==", + "engines": { + "node": ">=6" + } + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/commander": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz", + "integrity": "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==", + "dev": true, + "engines": { + "node": ">= 6" + } + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "dev": true + }, + "node_modules/convert-source-map": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", + "dev": true + }, + "node_modules/cookie": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-1.1.1.tgz", + "integrity": "sha512-ei8Aos7ja0weRpFzJnEA9UHJ/7XQmqglbRwnf2ATjcB9Wq874VKH9kfjjirM6UhU2/E5fFYadylyhFldcqSidQ==", + "engines": { + "node": ">=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/cross-spawn": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", + "dev": true, + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/cssesc": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz", + "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==", + "dev": true, + "bin": { + "cssesc": "bin/cssesc" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/csstype": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz", + "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==", + "devOptional": true + }, + "node_modules/d3-array": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/d3-array/-/d3-array-3.2.4.tgz", + "integrity": "sha512-tdQAmyA18i4J7wprpYq8ClcxZy3SC31QMeByyCFyRt7BVHdREQZ5lpzoe5mFEYZUWe+oq8HBvk9JjpibyEV4Jg==", + "dependencies": { + "internmap": "1 - 2" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-color": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/d3-color/-/d3-color-3.1.0.tgz", + "integrity": "sha512-zg/chbXyeBtMQ1LbD/WSoW2DpC3I0mpmPdW+ynRTj/x2DAWYrIY7qeZIHidozwV24m4iavr15lNwIwLxRmOxhA==", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-ease": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-ease/-/d3-ease-3.0.1.tgz", + "integrity": "sha512-wR/XK3D3XcLIZwpbvQwQ5fK+8Ykds1ip7A2Txe0yxncXSdq1L9skcG7blcedkOX+ZcgxGAmLX1FrRGbADwzi0w==", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-format": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/d3-format/-/d3-format-3.1.0.tgz", + "integrity": "sha512-YyUI6AEuY/Wpt8KWLgZHsIU86atmikuoOmCfommt0LYHiQSPjvX2AcFc38PX0CBpr2RCyZhjex+NS/LPOv6YqA==", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-interpolate": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-interpolate/-/d3-interpolate-3.0.1.tgz", + "integrity": "sha512-3bYs1rOD33uo8aqJfKP3JWPAibgw8Zm2+L9vBKEHJ2Rg+viTR7o5Mmv5mZcieN+FRYaAOWX5SJATX6k1PWz72g==", + "dependencies": { + "d3-color": "1 - 3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-path": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/d3-path/-/d3-path-3.1.0.tgz", + "integrity": "sha512-p3KP5HCf/bvjBSSKuXid6Zqijx7wIfNW+J/maPs+iwR35at5JCbLUT0LzF1cnjbCHWhqzQTIN2Jpe8pRebIEFQ==", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-scale": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/d3-scale/-/d3-scale-4.0.2.tgz", + "integrity": "sha512-GZW464g1SH7ag3Y7hXjf8RoUuAFIqklOAq3MRl4OaWabTFJY9PN/E1YklhXLh+OQ3fM9yS2nOkCoS+WLZ6kvxQ==", + "dependencies": { + "d3-array": "2.10.0 - 3", + "d3-format": "1 - 3", + "d3-interpolate": "1.2.0 - 3", + "d3-time": "2.1.1 - 3", + "d3-time-format": "2 - 4" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-shape": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/d3-shape/-/d3-shape-3.2.0.tgz", + "integrity": "sha512-SaLBuwGm3MOViRq2ABk3eLoxwZELpH6zhl3FbAoJ7Vm1gofKx6El1Ib5z23NUEhF9AsGl7y+dzLe5Cw2AArGTA==", + "dependencies": { + "d3-path": "^3.1.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-time": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/d3-time/-/d3-time-3.1.0.tgz", + "integrity": "sha512-VqKjzBLejbSMT4IgbmVgDjpkYrNWUYJnbCGo874u7MMKIWsILRX+OpX/gTk8MqjpT1A/c6HY2dCA77ZN0lkQ2Q==", + "dependencies": { + "d3-array": "2 - 3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-time-format": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/d3-time-format/-/d3-time-format-4.1.0.tgz", + "integrity": "sha512-dJxPBlzC7NugB2PDLwo9Q8JiTR3M3e4/XANkreKSUxF8vvXKqm1Yfq4Q5dl8budlunRVlUUaDUgFt7eA8D6NLg==", + "dependencies": { + "d3-time": "1 - 3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-timer": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-timer/-/d3-timer-3.0.1.tgz", + "integrity": "sha512-ndfJ/JxxMd3nw31uyKoY2naivF+r29V+Lc0svZxe1JvvIRmi8hUsrMvdOwgS1o6uBHmiz91geQ0ylPP0aj1VUA==", + "engines": { + "node": ">=12" + } + }, + "node_modules/debug": { + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", + "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", + "dev": true, + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/decimal.js-light": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/decimal.js-light/-/decimal.js-light-2.5.1.tgz", + "integrity": "sha512-qIMFpTMZmny+MMIitAB6D7iVPEorVw6YQRWkvarTkT4tBeSLLiHzcwj6q0MmYSFCiVpiqPJTJEYIrpcPzVEIvg==" + }, + "node_modules/deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "dev": true + }, + "node_modules/detect-libc": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz", + "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==", + "dev": true, + "optional": true, + "peer": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/didyoumean": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/didyoumean/-/didyoumean-1.2.2.tgz", + "integrity": "sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==", + "dev": true + }, + "node_modules/dlv": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/dlv/-/dlv-1.1.3.tgz", + "integrity": "sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==", + "dev": true + }, + "node_modules/electron-to-chromium": { + "version": "1.5.267", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.267.tgz", + "integrity": "sha512-0Drusm6MVRXSOJpGbaSVgcQsuB4hEkMpHXaVstcPmhu5LIedxs1xNK/nIxmQIU/RPC0+1/o0AVZfBTkTNJOdUw==", + "dev": true + }, + "node_modules/es-toolkit": { + "version": "1.43.0", + "resolved": "https://registry.npmjs.org/es-toolkit/-/es-toolkit-1.43.0.tgz", + "integrity": "sha512-SKCT8AsWvYzBBuUqMk4NPwFlSdqLpJwmy6AP322ERn8W2YLIB6JBXnwMI2Qsh2gfphT3q7EKAxKb23cvFHFwKA==" + }, + "node_modules/esbuild": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.27.2.tgz", + "integrity": "sha512-HyNQImnsOC7X9PMNaCIeAm4ISCQXs5a5YasTXVliKv4uuBo1dKrG0A+uQS8M5eXjVMnLg3WgXaKvprHlFJQffw==", + "dev": true, + "hasInstallScript": true, + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=18" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.27.2", + "@esbuild/android-arm": "0.27.2", + "@esbuild/android-arm64": "0.27.2", + "@esbuild/android-x64": "0.27.2", + "@esbuild/darwin-arm64": "0.27.2", + "@esbuild/darwin-x64": "0.27.2", + "@esbuild/freebsd-arm64": "0.27.2", + "@esbuild/freebsd-x64": "0.27.2", + "@esbuild/linux-arm": "0.27.2", + "@esbuild/linux-arm64": "0.27.2", + "@esbuild/linux-ia32": "0.27.2", + "@esbuild/linux-loong64": "0.27.2", + "@esbuild/linux-mips64el": "0.27.2", + "@esbuild/linux-ppc64": "0.27.2", + "@esbuild/linux-riscv64": "0.27.2", + "@esbuild/linux-s390x": "0.27.2", + "@esbuild/linux-x64": "0.27.2", + "@esbuild/netbsd-arm64": "0.27.2", + "@esbuild/netbsd-x64": "0.27.2", + "@esbuild/openbsd-arm64": "0.27.2", + "@esbuild/openbsd-x64": "0.27.2", + "@esbuild/openharmony-arm64": "0.27.2", + "@esbuild/sunos-x64": "0.27.2", + "@esbuild/win32-arm64": "0.27.2", + "@esbuild/win32-ia32": "0.27.2", + "@esbuild/win32-x64": "0.27.2" + } + }, + "node_modules/escalade": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", + "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint": { + "version": "9.39.2", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.39.2.tgz", + "integrity": "sha512-LEyamqS7W5HB3ujJyvi0HQK/dtVINZvd5mAAp9eT5S/ujByGjiZLCzPcHVzuXbpJDJF/cxwHlfceVUDZ2lnSTw==", + "dev": true, + "dependencies": { + "@eslint-community/eslint-utils": "^4.8.0", + "@eslint-community/regexpp": "^4.12.1", + "@eslint/config-array": "^0.21.1", + "@eslint/config-helpers": "^0.4.2", + "@eslint/core": "^0.17.0", + "@eslint/eslintrc": "^3.3.1", + "@eslint/js": "9.39.2", + "@eslint/plugin-kit": "^0.4.1", + "@humanfs/node": "^0.16.6", + "@humanwhocodes/module-importer": "^1.0.1", + "@humanwhocodes/retry": "^0.4.2", + "@types/estree": "^1.0.6", + "ajv": "^6.12.4", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.6", + "debug": "^4.3.2", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^8.4.0", + "eslint-visitor-keys": "^4.2.1", + "espree": "^10.4.0", + "esquery": "^1.5.0", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^8.0.0", + "find-up": "^5.0.0", + "glob-parent": "^6.0.2", + "ignore": "^5.2.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "lodash.merge": "^4.6.2", + "minimatch": "^3.1.2", + "natural-compare": "^1.4.0", + "optionator": "^0.9.3" + }, + "bin": { + "eslint": "bin/eslint.js" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://eslint.org/donate" + }, + "peerDependencies": { + "jiti": "*" + }, + "peerDependenciesMeta": { + "jiti": { + "optional": true + } + } + }, + "node_modules/eslint-plugin-react-hooks": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-7.0.1.tgz", + "integrity": "sha512-O0d0m04evaNzEPoSW+59Mezf8Qt0InfgGIBJnpC0h3NH/WjUAR7BIKUfysC6todmtiZ/A0oUVS8Gce0WhBrHsA==", + "dev": true, + "dependencies": { + "@babel/core": "^7.24.4", + "@babel/parser": "^7.24.4", + "hermes-parser": "^0.25.1", + "zod": "^3.25.0 || ^4.0.0", + "zod-validation-error": "^3.5.0 || ^4.0.0" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "eslint": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 || ^9.0.0" + } + }, + "node_modules/eslint-plugin-react-refresh": { + "version": "0.4.26", + "resolved": "https://registry.npmjs.org/eslint-plugin-react-refresh/-/eslint-plugin-react-refresh-0.4.26.tgz", + "integrity": "sha512-1RETEylht2O6FM/MvgnyvT+8K21wLqDNg4qD51Zj3guhjt433XbnnkVttHMyaVyAFD03QSV4LPS5iE3VQmO7XQ==", + "dev": true, + "peerDependencies": { + "eslint": ">=8.40" + } + }, + "node_modules/eslint-scope": { + "version": "8.4.0", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.4.0.tgz", + "integrity": "sha512-sNXOfKCn74rt8RICKMvJS7XKV/Xk9kA7DyJr8mJik3S7Cwgy3qlkkmyS2uQB3jiJg6VNdZd/pDBJu0nvG2NlTg==", + "dev": true, + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-visitor-keys": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz", + "integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==", + "dev": true, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/espree": { + "version": "10.4.0", + "resolved": "https://registry.npmjs.org/espree/-/espree-10.4.0.tgz", + "integrity": "sha512-j6PAQ2uUr79PZhBjP5C5fhl8e39FmRnOjsD5lGnWrFU8i2G776tBK7+nP8KuQUTTyAZUwfQqXAgrVH5MbH9CYQ==", + "dev": true, + "dependencies": { + "acorn": "^8.15.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^4.2.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/esquery": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.6.0.tgz", + "integrity": "sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==", + "dev": true, + "dependencies": { + "estraverse": "^5.1.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, + "dependencies": { + "estraverse": "^5.2.0" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/eventemitter3": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-5.0.1.tgz", + "integrity": "sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA==" + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true + }, + "node_modules/fast-glob": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.3.tgz", + "integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==", + "dev": true, + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.8" + }, + "engines": { + "node": ">=8.6.0" + } + }, + "node_modules/fast-glob/node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true + }, + "node_modules/fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "dev": true + }, + "node_modules/fastq": { + "version": "1.20.1", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.20.1.tgz", + "integrity": "sha512-GGToxJ/w1x32s/D2EKND7kTil4n8OVk/9mycTc4VDza13lOvpUZTGX3mFSCtV9ksdGBVzvsyAVLM6mHFThxXxw==", + "dev": true, + "dependencies": { + "reusify": "^1.0.4" + } + }, + "node_modules/fdir": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", + "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", + "dev": true, + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "picomatch": "^3 || ^4" + }, + "peerDependenciesMeta": { + "picomatch": { + "optional": true + } + } + }, + "node_modules/file-entry-cache": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz", + "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==", + "dev": true, + "dependencies": { + "flat-cache": "^4.0.0" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/fill-range": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", + "dev": true, + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "dev": true, + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/flat-cache": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz", + "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==", + "dev": true, + "dependencies": { + "flatted": "^3.2.9", + "keyv": "^4.5.4" + }, + "engines": { + "node": ">=16" + } + }, + "node_modules/flatted": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.3.tgz", + "integrity": "sha512-GX+ysw4PBCz0PzosHDepZGANEuFCMLrnRTiEy9McGjmkCQYwRq4A/X786G/fjM/+OjsWSU1ZrY5qyARZmO/uwg==", + "dev": true + }, + "node_modules/fraction.js": { + "version": "5.3.4", + "resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-5.3.4.tgz", + "integrity": "sha512-1X1NTtiJphryn/uLQz3whtY6jK3fTqoE3ohKs0tT+Ujr1W59oopxmoEh7Lu5p6vBaPbgoM0bzveAW4Qi5RyWDQ==", + "dev": true, + "engines": { + "node": "*" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/rawify" + } + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/gensync": { + "version": "1.0.0-beta.2", + "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/globals": { + "version": "16.5.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-16.5.0.tgz", + "integrity": "sha512-c/c15i26VrJ4IRt5Z89DnIzCGDn9EcebibhAOjw5ibqEHsE1wLUgkPn9RDmNcUKyU87GeaL633nyJ+pplFR2ZQ==", + "dev": true, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/hasown": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", + "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", + "dev": true, + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/hermes-estree": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/hermes-estree/-/hermes-estree-0.25.1.tgz", + "integrity": "sha512-0wUoCcLp+5Ev5pDW2OriHC2MJCbwLwuRx+gAqMTOkGKJJiBCLjtrvy4PWUGn6MIVefecRpzoOZ/UV6iGdOr+Cw==", + "dev": true + }, + "node_modules/hermes-parser": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/hermes-parser/-/hermes-parser-0.25.1.tgz", + "integrity": "sha512-6pEjquH3rqaI6cYAXYPcz9MS4rY6R4ngRgrgfDshRptUZIc3lw0MCIJIGDj9++mfySOuPTHB4nrSW99BCvOPIA==", + "dev": true, + "dependencies": { + "hermes-estree": "0.25.1" + } + }, + "node_modules/ignore": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", + "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", + "dev": true, + "engines": { + "node": ">= 4" + } + }, + "node_modules/immer": { + "version": "10.2.0", + "resolved": "https://registry.npmjs.org/immer/-/immer-10.2.0.tgz", + "integrity": "sha512-d/+XTN3zfODyjr89gM3mPq1WNX2B8pYsu7eORitdwyA2sBubnTl3laYlBk4sXY5FUa5qTZGBDPJICVbvqzjlbw==", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/immer" + } + }, + "node_modules/import-fresh": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz", + "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==", + "dev": true, + "dependencies": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true, + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/internmap": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/internmap/-/internmap-2.0.3.tgz", + "integrity": "sha512-5Hh7Y1wQbvY5ooGgPbDaL5iYLAPzMTUrjMulskHLH6wnv/A+1q5rgEaiuqEjB+oxGXIVZs1FF+R/KPN3ZSQYYg==", + "engines": { + "node": ">=12" + } + }, + "node_modules/is-binary-path": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", + "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", + "dev": true, + "dependencies": { + "binary-extensions": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-core-module": { + "version": "2.16.1", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.1.tgz", + "integrity": "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==", + "dev": true, + "dependencies": { + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true, + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true + }, + "node_modules/jiti": { + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/jiti/-/jiti-2.6.1.tgz", + "integrity": "sha512-ekilCSN1jwRvIbgeg/57YFh8qQDNbwDb9xT/qu2DAHbFFZUicIl4ygVaAvzveMhMVr3LnpSKTNnwt8PoOfmKhQ==", + "dev": true, + "optional": true, + "peer": true, + "bin": { + "jiti": "lib/jiti-cli.mjs" + } + }, + "node_modules/js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true + }, + "node_modules/js-yaml": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.1.tgz", + "integrity": "sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==", + "dev": true, + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/jsesc": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz", + "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", + "dev": true, + "bin": { + "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/json-buffer": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", + "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", + "dev": true + }, + "node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + }, + "node_modules/json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", + "dev": true + }, + "node_modules/json5": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "dev": true, + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/keyv": { + "version": "4.5.4", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", + "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", + "dev": true, + "dependencies": { + "json-buffer": "3.0.1" + } + }, + "node_modules/levn": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "dev": true, + "dependencies": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/lightningcss": { + "version": "1.30.2", + "resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.30.2.tgz", + "integrity": "sha512-utfs7Pr5uJyyvDETitgsaqSyjCb2qNRAtuqUeWIAKztsOYdcACf2KtARYXg2pSvhkt+9NfoaNY7fxjl6nuMjIQ==", + "dev": true, + "optional": true, + "peer": true, + "dependencies": { + "detect-libc": "^2.0.3" + }, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + }, + "optionalDependencies": { + "lightningcss-android-arm64": "1.30.2", + "lightningcss-darwin-arm64": "1.30.2", + "lightningcss-darwin-x64": "1.30.2", + "lightningcss-freebsd-x64": "1.30.2", + "lightningcss-linux-arm-gnueabihf": "1.30.2", + "lightningcss-linux-arm64-gnu": "1.30.2", + "lightningcss-linux-arm64-musl": "1.30.2", + "lightningcss-linux-x64-gnu": "1.30.2", + "lightningcss-linux-x64-musl": "1.30.2", + "lightningcss-win32-arm64-msvc": "1.30.2", + "lightningcss-win32-x64-msvc": "1.30.2" + } + }, + "node_modules/lightningcss-android-arm64": { + "version": "1.30.2", + "resolved": "https://registry.npmjs.org/lightningcss-android-arm64/-/lightningcss-android-arm64-1.30.2.tgz", + "integrity": "sha512-BH9sEdOCahSgmkVhBLeU7Hc9DWeZ1Eb6wNS6Da8igvUwAe0sqROHddIlvU06q3WyXVEOYDZ6ykBZQnjTbmo4+A==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "peer": true, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-darwin-arm64": { + "version": "1.30.2", + "resolved": "https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.30.2.tgz", + "integrity": "sha512-ylTcDJBN3Hp21TdhRT5zBOIi73P6/W0qwvlFEk22fkdXchtNTOU4Qc37SkzV+EKYxLouZ6M4LG9NfZ1qkhhBWA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "peer": true, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-darwin-x64": { + "version": "1.30.2", + "resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.30.2.tgz", + "integrity": "sha512-oBZgKchomuDYxr7ilwLcyms6BCyLn0z8J0+ZZmfpjwg9fRVZIR5/GMXd7r9RH94iDhld3UmSjBM6nXWM2TfZTQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "peer": true, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-freebsd-x64": { + "version": "1.30.2", + "resolved": "https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.30.2.tgz", + "integrity": "sha512-c2bH6xTrf4BDpK8MoGG4Bd6zAMZDAXS569UxCAGcA7IKbHNMlhGQ89eRmvpIUGfKWNVdbhSbkQaWhEoMGmGslA==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "freebsd" + ], + "peer": true, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm-gnueabihf": { + "version": "1.30.2", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.30.2.tgz", + "integrity": "sha512-eVdpxh4wYcm0PofJIZVuYuLiqBIakQ9uFZmipf6LF/HRj5Bgm0eb3qL/mr1smyXIS1twwOxNWndd8z0E374hiA==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "peer": true, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm64-gnu": { + "version": "1.30.2", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.30.2.tgz", + "integrity": "sha512-UK65WJAbwIJbiBFXpxrbTNArtfuznvxAJw4Q2ZGlU8kPeDIWEX1dg3rn2veBVUylA2Ezg89ktszWbaQnxD/e3A==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "peer": true, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm64-musl": { + "version": "1.30.2", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.30.2.tgz", + "integrity": "sha512-5Vh9dGeblpTxWHpOx8iauV02popZDsCYMPIgiuw97OJ5uaDsL86cnqSFs5LZkG3ghHoX5isLgWzMs+eD1YzrnA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "peer": true, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-x64-gnu": { + "version": "1.30.2", + "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.30.2.tgz", + "integrity": "sha512-Cfd46gdmj1vQ+lR6VRTTadNHu6ALuw2pKR9lYq4FnhvgBc4zWY1EtZcAc6EffShbb1MFrIPfLDXD6Xprbnni4w==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "peer": true, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-x64-musl": { + "version": "1.30.2", + "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.30.2.tgz", + "integrity": "sha512-XJaLUUFXb6/QG2lGIW6aIk6jKdtjtcffUT0NKvIqhSBY3hh9Ch+1LCeH80dR9q9LBjG3ewbDjnumefsLsP6aiA==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "peer": true, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-win32-arm64-msvc": { + "version": "1.30.2", + "resolved": "https://registry.npmjs.org/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.30.2.tgz", + "integrity": "sha512-FZn+vaj7zLv//D/192WFFVA0RgHawIcHqLX9xuWiQt7P0PtdFEVaxgF9rjM/IRYHQXNnk61/H/gb2Ei+kUQ4xQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "peer": true, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-win32-x64-msvc": { + "version": "1.30.2", + "resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.30.2.tgz", + "integrity": "sha512-5g1yc73p+iAkid5phb4oVFMB45417DkRevRbt/El/gKXJk4jid+vPFF/AXbxn05Aky8PapwzZrdJShv5C0avjw==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "peer": true, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lilconfig": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-3.1.3.tgz", + "integrity": "sha512-/vlFKAoH5Cgt3Ie+JLhRbwOsCQePABiU3tJ1egGvyQ+33R/vcwM2Zl2QR/LzjsBeItPt3oSVXapn+m4nQDvpzw==", + "dev": true, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/antonk52" + } + }, + "node_modules/lines-and-columns": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", + "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", + "dev": true + }, + "node_modules/locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "dev": true, + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", + "dev": true + }, + "node_modules/lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "dev": true, + "dependencies": { + "yallist": "^3.0.2" + } + }, + "node_modules/merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/micromatch": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", + "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", + "dev": true, + "dependencies": { + "braces": "^3.0.3", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/micromatch/node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true, + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/mini-svg-data-uri": { + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/mini-svg-data-uri/-/mini-svg-data-uri-1.4.4.tgz", + "integrity": "sha512-r9deDe9p5FJUPZAk3A59wGH7Ii9YrjjWw0jmw/liSbHl2CHiyXj6FcDXDu2K3TjVAXqiJdaw3xxwlZZr9E6nHg==", + "dev": true, + "bin": { + "mini-svg-data-uri": "cli.js" + } + }, + "node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "dev": true + }, + "node_modules/mz": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/mz/-/mz-2.7.0.tgz", + "integrity": "sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==", + "dev": true, + "dependencies": { + "any-promise": "^1.0.0", + "object-assign": "^4.0.1", + "thenify-all": "^1.0.0" + } + }, + "node_modules/nanoid": { + "version": "3.3.11", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz", + "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true + }, + "node_modules/node-releases": { + "version": "2.0.27", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.27.tgz", + "integrity": "sha512-nmh3lCkYZ3grZvqcCH+fjmQ7X+H0OeZgP40OierEaAptX4XofMh5kwNbWh7lBduUzCcV/8kZ+NDLCwm2iorIlA==", + "dev": true + }, + "node_modules/normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-hash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/object-hash/-/object-hash-3.0.0.tgz", + "integrity": "sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==", + "dev": true, + "engines": { + "node": ">= 6" + } + }, + "node_modules/optionator": { + "version": "0.9.4", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", + "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", + "dev": true, + "dependencies": { + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0", + "word-wrap": "^1.2.5" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "dev": true, + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "dev": true, + "dependencies": { + "callsites": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-parse": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", + "dev": true + }, + "node_modules/picocolors": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "dev": true + }, + "node_modules/picomatch": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz", + "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/pify": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/pirates": { + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.7.tgz", + "integrity": "sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA==", + "dev": true, + "engines": { + "node": ">= 6" + } + }, + "node_modules/postcss": { + "version": "8.5.6", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.6.tgz", + "integrity": "sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "nanoid": "^3.3.11", + "picocolors": "^1.1.1", + "source-map-js": "^1.2.1" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/postcss-import": { + "version": "15.1.0", + "resolved": "https://registry.npmjs.org/postcss-import/-/postcss-import-15.1.0.tgz", + "integrity": "sha512-hpr+J05B2FVYUAXHeK1YyI267J/dDDhMU6B6civm8hSY1jYJnBXxzKDKDswzJmtLHryrjhnDjqqp/49t8FALew==", + "dev": true, + "dependencies": { + "postcss-value-parser": "^4.0.0", + "read-cache": "^1.0.0", + "resolve": "^1.1.7" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "postcss": "^8.0.0" + } + }, + "node_modules/postcss-js": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/postcss-js/-/postcss-js-4.1.0.tgz", + "integrity": "sha512-oIAOTqgIo7q2EOwbhb8UalYePMvYoIeRY2YKntdpFQXNosSu3vLrniGgmH9OKs/qAkfoj5oB3le/7mINW1LCfw==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "camelcase-css": "^2.0.1" + }, + "engines": { + "node": "^12 || ^14 || >= 16" + }, + "peerDependencies": { + "postcss": "^8.4.21" + } + }, + "node_modules/postcss-load-config": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-6.0.1.tgz", + "integrity": "sha512-oPtTM4oerL+UXmx+93ytZVN82RrlY/wPUV8IeDxFrzIjXOLF1pN+EmKPLbubvKHT2HC20xXsCAH2Z+CKV6Oz/g==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "lilconfig": "^3.1.1" + }, + "engines": { + "node": ">= 18" + }, + "peerDependencies": { + "jiti": ">=1.21.0", + "postcss": ">=8.0.9", + "tsx": "^4.8.1", + "yaml": "^2.4.2" + }, + "peerDependenciesMeta": { + "jiti": { + "optional": true + }, + "postcss": { + "optional": true + }, + "tsx": { + "optional": true + }, + "yaml": { + "optional": true + } + } + }, + "node_modules/postcss-nested": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/postcss-nested/-/postcss-nested-6.2.0.tgz", + "integrity": "sha512-HQbt28KulC5AJzG+cZtj9kvKB93CFCdLvog1WFLf1D+xmMvPGlBstkpTEZfK5+AN9hfJocyBFCNiqyS48bpgzQ==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "postcss-selector-parser": "^6.1.1" + }, + "engines": { + "node": ">=12.0" + }, + "peerDependencies": { + "postcss": "^8.2.14" + } + }, + "node_modules/postcss-selector-parser": { + "version": "6.1.2", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.1.2.tgz", + "integrity": "sha512-Q8qQfPiZ+THO/3ZrOrO0cJJKfpYCagtMUkXbnEfmgUjwXg6z/WBeOyS9APBBPCTSiDV+s4SwQGu8yFsiMRIudg==", + "dev": true, + "dependencies": { + "cssesc": "^3.0.0", + "util-deprecate": "^1.0.2" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/postcss-value-parser": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz", + "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==", + "dev": true + }, + "node_modules/prelude-ls": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", + "dev": true, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/punycode": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/react": { + "version": "19.2.3", + "resolved": "https://registry.npmjs.org/react/-/react-19.2.3.tgz", + "integrity": "sha512-Ku/hhYbVjOQnXDZFv2+RibmLFGwFdeeKHFcOTlrt7xplBnya5OGn/hIRDsqDiSUcfORsDC7MPxwork8jBwsIWA==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/react-dom": { + "version": "19.2.3", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.2.3.tgz", + "integrity": "sha512-yELu4WmLPw5Mr/lmeEpox5rw3RETacE++JgHqQzd2dg+YbJuat3jH4ingc+WPZhxaoFzdv9y33G+F7Nl5O0GBg==", + "dependencies": { + "scheduler": "^0.27.0" + }, + "peerDependencies": { + "react": "^19.2.3" + } + }, + "node_modules/react-is": { + "version": "19.2.3", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-19.2.3.tgz", + "integrity": "sha512-qJNJfu81ByyabuG7hPFEbXqNcWSU3+eVus+KJs+0ncpGfMyYdvSmxiJxbWR65lYi1I+/0HBcliO029gc4F+PnA==", + "peer": true + }, + "node_modules/react-redux": { + "version": "9.2.0", + "resolved": "https://registry.npmjs.org/react-redux/-/react-redux-9.2.0.tgz", + "integrity": "sha512-ROY9fvHhwOD9ySfrF0wmvu//bKCQ6AeZZq1nJNtbDC+kk5DuSuNX/n6YWYF/SYy7bSba4D4FSz8DJeKY/S/r+g==", + "dependencies": { + "@types/use-sync-external-store": "^0.0.6", + "use-sync-external-store": "^1.4.0" + }, + "peerDependencies": { + "@types/react": "^18.2.25 || ^19", + "react": "^18.0 || ^19", + "redux": "^5.0.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "redux": { + "optional": true + } + } + }, + "node_modules/react-refresh": { + "version": "0.18.0", + "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.18.0.tgz", + "integrity": "sha512-QgT5//D3jfjJb6Gsjxv0Slpj23ip+HtOpnNgnb2S5zU3CB26G/IDPGoy4RJB42wzFE46DRsstbW6tKHoKbhAxw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/react-router": { + "version": "7.11.0", + "resolved": "https://registry.npmjs.org/react-router/-/react-router-7.11.0.tgz", + "integrity": "sha512-uI4JkMmjbWCZc01WVP2cH7ZfSzH91JAZUDd7/nIprDgWxBV1TkkmLToFh7EbMTcMak8URFRa2YoBL/W8GWnCTQ==", + "dependencies": { + "cookie": "^1.0.1", + "set-cookie-parser": "^2.6.0" + }, + "engines": { + "node": ">=20.0.0" + }, + "peerDependencies": { + "react": ">=18", + "react-dom": ">=18" + }, + "peerDependenciesMeta": { + "react-dom": { + "optional": true + } + } + }, + "node_modules/react-router-dom": { + "version": "7.11.0", + "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-7.11.0.tgz", + "integrity": "sha512-e49Ir/kMGRzFOOrYQBdoitq3ULigw4lKbAyKusnvtDu2t4dBX4AGYPrzNvorXmVuOyeakai6FUPW5MmibvVG8g==", + "dependencies": { + "react-router": "7.11.0" + }, + "engines": { + "node": ">=20.0.0" + }, + "peerDependencies": { + "react": ">=18", + "react-dom": ">=18" + } + }, + "node_modules/read-cache": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/read-cache/-/read-cache-1.0.0.tgz", + "integrity": "sha512-Owdv/Ft7IjOgm/i0xvNDZ1LrRANRfew4b2prF3OWMQLxLfu3bS8FVhCsrSCMK4lR56Y9ya+AThoTpDCTxCmpRA==", + "dev": true, + "dependencies": { + "pify": "^2.3.0" + } + }, + "node_modules/readdirp": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", + "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", + "dev": true, + "dependencies": { + "picomatch": "^2.2.1" + }, + "engines": { + "node": ">=8.10.0" + } + }, + "node_modules/readdirp/node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true, + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/recharts": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/recharts/-/recharts-3.6.0.tgz", + "integrity": "sha512-L5bjxvQRAe26RlToBAziKUB7whaGKEwD3znoM6fz3DrTowCIC/FnJYnuq1GEzB8Zv2kdTfaxQfi5GoH0tBinyg==", + "dependencies": { + "@reduxjs/toolkit": "1.x.x || 2.x.x", + "clsx": "^2.1.1", + "decimal.js-light": "^2.5.1", + "es-toolkit": "^1.39.3", + "eventemitter3": "^5.0.1", + "immer": "^10.1.1", + "react-redux": "8.x.x || 9.x.x", + "reselect": "5.1.1", + "tiny-invariant": "^1.3.3", + "use-sync-external-store": "^1.2.2", + "victory-vendor": "^37.0.2" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0", + "react-dom": "^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0", + "react-is": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" + } + }, + "node_modules/redux": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/redux/-/redux-5.0.1.tgz", + "integrity": "sha512-M9/ELqF6fy8FwmkpnF0S3YKOqMyoWJ4+CS5Efg2ct3oY9daQvd/Pc71FpGZsVsbl3Cpb+IIcjBDUnnyBdQbq4w==" + }, + "node_modules/redux-thunk": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/redux-thunk/-/redux-thunk-3.1.0.tgz", + "integrity": "sha512-NW2r5T6ksUKXCabzhL9z+h206HQw/NJkcLm1GPImRQ8IzfXwRGqjVhKJGauHirT0DAuyy6hjdnMZaRoAcy0Klw==", + "peerDependencies": { + "redux": "^5.0.0" + } + }, + "node_modules/reselect": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/reselect/-/reselect-5.1.1.tgz", + "integrity": "sha512-K/BG6eIky/SBpzfHZv/dd+9JBFiS4SWV7FIujVyJRux6e45+73RaUHXLmIR1f7WOMaQ0U1km6qwklRQxpJJY0w==" + }, + "node_modules/resolve": { + "version": "1.22.11", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.11.tgz", + "integrity": "sha512-RfqAvLnMl313r7c9oclB1HhUEAezcpLjz95wFH4LVuhk9JF/r22qmVP9AMmOU4vMX7Q8pN8jwNg/CSpdFnMjTQ==", + "dev": true, + "dependencies": { + "is-core-module": "^2.16.1", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/reusify": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.1.0.tgz", + "integrity": "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==", + "dev": true, + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } + }, + "node_modules/rollup": { + "version": "4.54.0", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.54.0.tgz", + "integrity": "sha512-3nk8Y3a9Ea8szgKhinMlGMhGMw89mqule3KWczxhIzqudyHdCIOHw8WJlj/r329fACjKLEh13ZSk7oE22kyeIw==", + "dev": true, + "dependencies": { + "@types/estree": "1.0.8" + }, + "bin": { + "rollup": "dist/bin/rollup" + }, + "engines": { + "node": ">=18.0.0", + "npm": ">=8.0.0" + }, + "optionalDependencies": { + "@rollup/rollup-android-arm-eabi": "4.54.0", + "@rollup/rollup-android-arm64": "4.54.0", + "@rollup/rollup-darwin-arm64": "4.54.0", + "@rollup/rollup-darwin-x64": "4.54.0", + "@rollup/rollup-freebsd-arm64": "4.54.0", + "@rollup/rollup-freebsd-x64": "4.54.0", + "@rollup/rollup-linux-arm-gnueabihf": "4.54.0", + "@rollup/rollup-linux-arm-musleabihf": "4.54.0", + "@rollup/rollup-linux-arm64-gnu": "4.54.0", + "@rollup/rollup-linux-arm64-musl": "4.54.0", + "@rollup/rollup-linux-loong64-gnu": "4.54.0", + "@rollup/rollup-linux-ppc64-gnu": "4.54.0", + "@rollup/rollup-linux-riscv64-gnu": "4.54.0", + "@rollup/rollup-linux-riscv64-musl": "4.54.0", + "@rollup/rollup-linux-s390x-gnu": "4.54.0", + "@rollup/rollup-linux-x64-gnu": "4.54.0", + "@rollup/rollup-linux-x64-musl": "4.54.0", + "@rollup/rollup-openharmony-arm64": "4.54.0", + "@rollup/rollup-win32-arm64-msvc": "4.54.0", + "@rollup/rollup-win32-ia32-msvc": "4.54.0", + "@rollup/rollup-win32-x64-gnu": "4.54.0", + "@rollup/rollup-win32-x64-msvc": "4.54.0", + "fsevents": "~2.3.2" + } + }, + "node_modules/run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "queue-microtask": "^1.2.2" + } + }, + "node_modules/scheduler": { + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.27.0.tgz", + "integrity": "sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q==" + }, + "node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/set-cookie-parser": { + "version": "2.7.2", + "resolved": "https://registry.npmjs.org/set-cookie-parser/-/set-cookie-parser-2.7.2.tgz", + "integrity": "sha512-oeM1lpU/UvhTxw+g3cIfxXHyJRc/uidd3yK1P242gzHds0udQBYzs3y8j4gCCW+ZJ7ad0yctld8RYO+bdurlvw==" + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/source-map-js": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", + "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/sucrase": { + "version": "3.35.1", + "resolved": "https://registry.npmjs.org/sucrase/-/sucrase-3.35.1.tgz", + "integrity": "sha512-DhuTmvZWux4H1UOnWMB3sk0sbaCVOoQZjv8u1rDoTV0HTdGem9hkAZtl4JZy8P2z4Bg0nT+YMeOFyVr4zcG5Tw==", + "dev": true, + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.2", + "commander": "^4.0.0", + "lines-and-columns": "^1.1.6", + "mz": "^2.7.0", + "pirates": "^4.0.1", + "tinyglobby": "^0.2.11", + "ts-interface-checker": "^0.1.9" + }, + "bin": { + "sucrase": "bin/sucrase", + "sucrase-node": "bin/sucrase-node" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, + "node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/tailwindcss": { + "version": "3.4.19", + "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.4.19.tgz", + "integrity": "sha512-3ofp+LL8E+pK/JuPLPggVAIaEuhvIz4qNcf3nA1Xn2o/7fb7s/TYpHhwGDv1ZU3PkBluUVaF8PyCHcm48cKLWQ==", + "dev": true, + "dependencies": { + "@alloc/quick-lru": "^5.2.0", + "arg": "^5.0.2", + "chokidar": "^3.6.0", + "didyoumean": "^1.2.2", + "dlv": "^1.1.3", + "fast-glob": "^3.3.2", + "glob-parent": "^6.0.2", + "is-glob": "^4.0.3", + "jiti": "^1.21.7", + "lilconfig": "^3.1.3", + "micromatch": "^4.0.8", + "normalize-path": "^3.0.0", + "object-hash": "^3.0.0", + "picocolors": "^1.1.1", + "postcss": "^8.4.47", + "postcss-import": "^15.1.0", + "postcss-js": "^4.0.1", + "postcss-load-config": "^4.0.2 || ^5.0 || ^6.0", + "postcss-nested": "^6.2.0", + "postcss-selector-parser": "^6.1.2", + "resolve": "^1.22.8", + "sucrase": "^3.35.0" + }, + "bin": { + "tailwind": "lib/cli.js", + "tailwindcss": "lib/cli.js" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/tailwindcss/node_modules/jiti": { + "version": "1.21.7", + "resolved": "https://registry.npmjs.org/jiti/-/jiti-1.21.7.tgz", + "integrity": "sha512-/imKNG4EbWNrVjoNC/1H5/9GFy+tqjGBHCaSsN+P2RnPqjsLmv6UD3Ej+Kj8nBWaRAwyk7kK5ZUc+OEatnTR3A==", + "dev": true, + "bin": { + "jiti": "bin/jiti.js" + } + }, + "node_modules/thenify": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/thenify/-/thenify-3.3.1.tgz", + "integrity": "sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==", + "dev": true, + "dependencies": { + "any-promise": "^1.0.0" + } + }, + "node_modules/thenify-all": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/thenify-all/-/thenify-all-1.6.0.tgz", + "integrity": "sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==", + "dev": true, + "dependencies": { + "thenify": ">= 3.1.0 < 4" + }, + "engines": { + "node": ">=0.8" + } + }, + "node_modules/tiny-invariant": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/tiny-invariant/-/tiny-invariant-1.3.3.tgz", + "integrity": "sha512-+FbBPE1o9QAYvviau/qC5SE3caw21q3xkvWKBtja5vgqOWIHHJ3ioaq1VPfn/Szqctz2bU/oYeKd9/z5BL+PVg==" + }, + "node_modules/tinyglobby": { + "version": "0.2.15", + "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.15.tgz", + "integrity": "sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==", + "dev": true, + "dependencies": { + "fdir": "^6.5.0", + "picomatch": "^4.0.3" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/SuperchupuDev" + } + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/ts-api-utils": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.3.0.tgz", + "integrity": "sha512-6eg3Y9SF7SsAvGzRHQvvc1skDAhwI4YQ32ui1scxD1Ccr0G5qIIbUBT3pFTKX8kmWIQClHobtUdNuaBgwdfdWg==", + "dev": true, + "engines": { + "node": ">=18.12" + }, + "peerDependencies": { + "typescript": ">=4.8.4" + } + }, + "node_modules/ts-interface-checker": { + "version": "0.1.13", + "resolved": "https://registry.npmjs.org/ts-interface-checker/-/ts-interface-checker-0.1.13.tgz", + "integrity": "sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==", + "dev": true + }, + "node_modules/type-check": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", + "dev": true, + "dependencies": { + "prelude-ls": "^1.2.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/typescript": { + "version": "5.9.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz", + "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", + "dev": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/typescript-eslint": { + "version": "8.51.0", + "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.51.0.tgz", + "integrity": "sha512-jh8ZuM5oEh2PSdyQG9YAEM1TCGuWenLSuSUhf/irbVUNW9O5FhbFVONviN2TgMTBnUmyHv7E56rYnfLZK6TkiA==", + "dev": true, + "dependencies": { + "@typescript-eslint/eslint-plugin": "8.51.0", + "@typescript-eslint/parser": "8.51.0", + "@typescript-eslint/typescript-estree": "8.51.0", + "@typescript-eslint/utils": "8.51.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/undici-types": { + "version": "7.16.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.16.0.tgz", + "integrity": "sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw==", + "dev": true + }, + "node_modules/update-browserslist-db": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.2.3.tgz", + "integrity": "sha512-Js0m9cx+qOgDxo0eMiFGEueWztz+d4+M3rGlmKPT+T4IS/jP4ylw3Nwpu6cpTTP8R1MAC1kF4VbdLt3ARf209w==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "escalade": "^3.2.0", + "picocolors": "^1.1.1" + }, + "bin": { + "update-browserslist-db": "cli.js" + }, + "peerDependencies": { + "browserslist": ">= 4.21.0" + } + }, + "node_modules/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/use-sync-external-store": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.6.0.tgz", + "integrity": "sha512-Pp6GSwGP/NrPIrxVFAIkOQeyw8lFenOHijQWkUTrDvrF4ALqylP2C/KCkeS9dpUM3KvYRQhna5vt7IL95+ZQ9w==", + "peerDependencies": { + "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" + } + }, + "node_modules/util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", + "dev": true + }, + "node_modules/victory-vendor": { + "version": "37.3.6", + "resolved": "https://registry.npmjs.org/victory-vendor/-/victory-vendor-37.3.6.tgz", + "integrity": "sha512-SbPDPdDBYp+5MJHhBCAyI7wKM3d5ivekigc2Dk2s7pgbZ9wIgIBYGVw4zGHBml/qTFbexrofXW6Gu4noGxrOwQ==", + "dependencies": { + "@types/d3-array": "^3.0.3", + "@types/d3-ease": "^3.0.0", + "@types/d3-interpolate": "^3.0.1", + "@types/d3-scale": "^4.0.2", + "@types/d3-shape": "^3.1.0", + "@types/d3-time": "^3.0.0", + "@types/d3-timer": "^3.0.0", + "d3-array": "^3.1.6", + "d3-ease": "^3.0.1", + "d3-interpolate": "^3.0.1", + "d3-scale": "^4.0.2", + "d3-shape": "^3.1.0", + "d3-time": "^3.0.0", + "d3-timer": "^3.0.1" + } + }, + "node_modules/vite": { + "version": "7.3.0", + "resolved": "https://registry.npmjs.org/vite/-/vite-7.3.0.tgz", + "integrity": "sha512-dZwN5L1VlUBewiP6H9s2+B3e3Jg96D0vzN+Ry73sOefebhYr9f94wwkMNN/9ouoU8pV1BqA1d1zGk8928cx0rg==", + "dev": true, + "dependencies": { + "esbuild": "^0.27.0", + "fdir": "^6.5.0", + "picomatch": "^4.0.3", + "postcss": "^8.5.6", + "rollup": "^4.43.0", + "tinyglobby": "^0.2.15" + }, + "bin": { + "vite": "bin/vite.js" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "funding": { + "url": "https://github.com/vitejs/vite?sponsor=1" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + }, + "peerDependencies": { + "@types/node": "^20.19.0 || >=22.12.0", + "jiti": ">=1.21.0", + "less": "^4.0.0", + "lightningcss": "^1.21.0", + "sass": "^1.70.0", + "sass-embedded": "^1.70.0", + "stylus": ">=0.54.8", + "sugarss": "^5.0.0", + "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 + } + } + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/word-wrap": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", + "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true + }, + "node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/zod": { + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/zod/-/zod-4.3.2.tgz", + "integrity": "sha512-b8L8yn4rIVfiXyHAmnr52/ZEpDumlT0bmxiq3Ws1ybrinhflGpt12Hvv54kYnEsGPRs6o/Ka3/ppA2OWY21IVg==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/colinhacks" + } + }, + "node_modules/zod-validation-error": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/zod-validation-error/-/zod-validation-error-4.0.2.tgz", + "integrity": "sha512-Q6/nZLe6jxuU80qb/4uJ4t5v2VEZ44lzQjPDhYJNztRQ4wyWc6VF3D3Kb/fAuPetZQnhS3hnajCf9CsWesghLQ==", + "dev": true, + "engines": { + "node": ">=18.0.0" + }, + "peerDependencies": { + "zod": "^3.25.0 || ^4.0.0" + } + } + } +} diff --git a/web/dashboard/package.json b/web/dashboard/package.json new file mode 100644 index 00000000..234ee2e5 --- /dev/null +++ b/web/dashboard/package.json @@ -0,0 +1,38 @@ +{ + "name": "@goclusterfs/dashboard", + "description": "Web dashboard for GoClusterFS monitoring and management", + "private": true, + "version": "0.1.0", + "type": "module", + "scripts": { + "dev": "vite", + "build": "tsc -b && vite build", + "lint": "eslint .", + "preview": "vite preview", + "typecheck": "tsc --noEmit" + }, + "dependencies": { + "react": "^19.2.0", + "react-dom": "^19.2.0", + "react-router-dom": "^7.11.0", + "recharts": "^3.6.0" + }, + "devDependencies": { + "@eslint/js": "^9.39.1", + "@tailwindcss/forms": "^0.5.11", + "@types/node": "^24.10.1", + "@types/react": "^19.2.5", + "@types/react-dom": "^19.2.3", + "@vitejs/plugin-react": "^5.1.1", + "autoprefixer": "^10.4.23", + "eslint": "^9.39.1", + "eslint-plugin-react-hooks": "^7.0.1", + "eslint-plugin-react-refresh": "^0.4.24", + "globals": "^16.5.0", + "postcss": "^8.5.6", + "tailwindcss": "^3.4.19", + "typescript": "~5.9.3", + "typescript-eslint": "^8.46.4", + "vite": "^7.2.4" + } +} diff --git a/web/dashboard/postcss.config.js b/web/dashboard/postcss.config.js new file mode 100644 index 00000000..2e7af2b7 --- /dev/null +++ b/web/dashboard/postcss.config.js @@ -0,0 +1,6 @@ +export default { + plugins: { + tailwindcss: {}, + autoprefixer: {}, + }, +} diff --git a/web/dashboard/public/favicon.svg b/web/dashboard/public/favicon.svg new file mode 100644 index 00000000..813815c4 --- /dev/null +++ b/web/dashboard/public/favicon.svg @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/web/dashboard/src/App.tsx b/web/dashboard/src/App.tsx new file mode 100644 index 00000000..019c9430 --- /dev/null +++ b/web/dashboard/src/App.tsx @@ -0,0 +1,24 @@ +import { BrowserRouter, Routes, Route } from 'react-router-dom' +import { DashboardLayout } from '@/layouts' +import { DashboardPage, ClusterPage, SnapshotsPage, StatisticsPage, SettingsPage } from '@/pages' +import { SettingsProvider } from '@/stores' + +function App() { + return ( + + + + }> + } /> + } /> + } /> + } /> + } /> + + + + + ) +} + +export default App diff --git a/web/dashboard/src/api/client.ts b/web/dashboard/src/api/client.ts new file mode 100644 index 00000000..0d9875fe --- /dev/null +++ b/web/dashboard/src/api/client.ts @@ -0,0 +1,216 @@ +// Typed fetch client for the GoClusterFS HTTP API. Calls go to the page's own origin. + +import type { + HealthResponse, + StatusResponse, + CacheStatsResponse, + JournalStatsResponse, + TrimStatsResponse, + LockStatsResponse, + ClusterInfoResponse, + AllStatsResponse, + ErrorResponse, + SnapshotListResponse, + SnapshotRequest, + CloneRequest, + WriteResponse, + AdminOperation, + AdminResponse, +} from './types' + +export interface ApiConfig { + baseUrl: string + authToken?: string + timeout: number +} + +const defaultConfig: ApiConfig = { + baseUrl: '', + timeout: 30_000, +} + +// The server gives a snapshot or clone of a large file up to 10 minutes. +const WRITE_TIMEOUT = 10 * 60_000 + +export class ApiError extends Error { + readonly status: number + readonly code?: number + readonly details?: string + + constructor(message: string, status: number, code?: number, details?: string) { + super(message) + this.name = 'ApiError' + this.status = status + this.code = code + this.details = details + } + + static fromResponse(response: ErrorResponse, status: number): ApiError { + return new ApiError(response.error, status, response.code, response.details) + } +} + +interface RequestOptions { + signal?: AbortSignal + headers?: Record + body?: string + timeout?: number +} + +export class ApiClient { + private config: ApiConfig + + constructor(config: Partial = {}) { + this.config = { ...defaultConfig, ...config } + } + + setAuthToken(token: string | undefined): void { + this.config.authToken = token || undefined + } + + hasAuthToken(): boolean { + return this.config.authToken !== undefined + } + + private async request(method: string, path: string, options: RequestOptions = {}): Promise { + const headers: Record = { + Accept: 'application/json', + ...options.headers, + } + if (this.config.authToken) { + headers['Authorization'] = `Bearer ${this.config.authToken}` + } + + const controller = new AbortController() + const timeoutId = setTimeout(() => controller.abort(), options.timeout ?? this.config.timeout) + const signal = options.signal ? AbortSignal.any([options.signal, controller.signal]) : controller.signal + + try { + const response = await fetch(`${this.config.baseUrl}${path}`, { + method, + headers, + body: options.body, + signal, + credentials: 'omit', + }) + + if (!response.ok) { + let errorData: ErrorResponse | undefined + try { + errorData = (await response.json()) as ErrorResponse + } catch { + errorData = undefined + } + if (errorData?.error) { + throw ApiError.fromResponse(errorData, response.status) + } + throw new ApiError(`HTTP ${response.status}: ${response.statusText}`, response.status) + } + + const text = await response.text() + return (text ? JSON.parse(text) : {}) as T + } catch (error) { + if (error instanceof ApiError) throw error + if (error instanceof DOMException && error.name === 'AbortError') { + if (options.signal?.aborted) throw error + throw new ApiError('Request timed out', 408) + } + if (error instanceof TypeError) { + throw new ApiError('Network error: unable to reach the API', 0) + } + throw new ApiError(error instanceof Error ? error.message : 'Unknown error', 0) + } finally { + clearTimeout(timeoutId) + } + } + + private get(path: string, options?: RequestOptions): Promise { + return this.request('GET', path, options) + } + + private send(method: 'POST' | 'DELETE', path: string, body?: unknown): Promise { + return this.request(method, path, { + headers: body === undefined ? undefined : { 'Content-Type': 'application/json' }, + body: body === undefined ? undefined : JSON.stringify(body), + timeout: WRITE_TIMEOUT, + }) + } + + getHealth(options?: RequestOptions): Promise { + return this.get('/health', options) + } + + getStatus(options?: RequestOptions): Promise { + return this.get('/api/v1/status', options) + } + + getAllStats(options?: RequestOptions): Promise { + return this.get('/api/v1/stats/all', options) + } + + getCacheStats(options?: RequestOptions): Promise { + return this.get('/api/v1/stats/cache', options) + } + + getJournalStats(options?: RequestOptions): Promise { + return this.get('/api/v1/stats/journal', options) + } + + getTrimStats(options?: RequestOptions): Promise { + return this.get('/api/v1/stats/trim', options) + } + + getLockStats(options?: RequestOptions): Promise { + return this.get('/api/v1/stats/lock', options) + } + + getClusterStats(options?: RequestOptions): Promise { + return this.get('/api/v1/stats/cluster', options) + } + + // Without a path, lists every snapshot in the filesystem. + listSnapshots(path?: string, options?: RequestOptions): Promise { + const query = path ? `?path=${encodeURIComponent(path)}` : '' + return this.get(`/api/v1/snapshots${query}`, options) + } + + createSnapshot(request: SnapshotRequest): Promise { + return this.send('POST', '/api/v1/snapshots', request) + } + + // Deletion finishes in the background: the snapshot lists as "deleting" until the worker frees it. + deleteSnapshot(name: string, path: string): Promise { + return this.send('DELETE', `/api/v1/snapshots/${encodeURIComponent(name)}?path=${encodeURIComponent(path)}`) + } + + cloneSnapshot(name: string, request: CloneRequest): Promise { + return this.send('POST', `/api/v1/snapshots/${encodeURIComponent(name)}/clone`, request) + } + + cloneFile(request: CloneRequest): Promise { + return this.send('POST', '/api/v1/clones', request) + } + + admin(operation: AdminOperation): Promise { + return this.send('POST', `/api/v1/admin/${operation}`) + } +} + +export const apiClient = new ApiClient() + +export const api = { + getHealth: (options?: RequestOptions) => apiClient.getHealth(options), + getStatus: (options?: RequestOptions) => apiClient.getStatus(options), + getAllStats: (options?: RequestOptions) => apiClient.getAllStats(options), + getCacheStats: (options?: RequestOptions) => apiClient.getCacheStats(options), + getJournalStats: (options?: RequestOptions) => apiClient.getJournalStats(options), + getTrimStats: (options?: RequestOptions) => apiClient.getTrimStats(options), + getLockStats: (options?: RequestOptions) => apiClient.getLockStats(options), + getClusterStats: (options?: RequestOptions) => apiClient.getClusterStats(options), + listSnapshots: (path?: string, options?: RequestOptions) => apiClient.listSnapshots(path, options), + createSnapshot: (request: SnapshotRequest) => apiClient.createSnapshot(request), + deleteSnapshot: (name: string, path: string) => apiClient.deleteSnapshot(name, path), + cloneSnapshot: (name: string, request: CloneRequest) => apiClient.cloneSnapshot(name, request), + cloneFile: (request: CloneRequest) => apiClient.cloneFile(request), + admin: (operation: AdminOperation) => apiClient.admin(operation), +} diff --git a/web/dashboard/src/api/index.ts b/web/dashboard/src/api/index.ts new file mode 100644 index 00000000..da2da164 --- /dev/null +++ b/web/dashboard/src/api/index.ts @@ -0,0 +1,10 @@ +/** + * API module exports + */ + +// Export all types +export * from './types' + +// Export client and utilities +export { ApiClient, ApiError, apiClient, api } from './client' +export type { ApiConfig } from './client' diff --git a/web/dashboard/src/api/types.ts b/web/dashboard/src/api/types.ts new file mode 100644 index 00000000..3def9932 --- /dev/null +++ b/web/dashboard/src/api/types.ts @@ -0,0 +1,235 @@ +// Mirrors the Go structs in internal/api/types.go and internal/api/writes.go. + +// Health status values +export type HealthStatus = 'ok' | 'degraded' | 'unhealthy' + +// Mount state values +export type MountState = 'unmounted' | 'mounting' | 'mounted' | 'unmounting' | 'error' + +// Component health for individual system components +export interface ComponentHealth { + status: HealthStatus + message?: string +} + +// GET /health response +export interface HealthResponse { + status: HealthStatus + checks?: Record +} + +// API error response +export interface ErrorResponse { + error: string + code: number + details?: string +} + +// Storage capacity information +export interface CapacityInfo { + total_bytes: number + used_bytes: number + free_bytes: number + used_percent: number + total_blocks: number + used_blocks: number + free_blocks: number + block_size_bytes: number +} + +// Cluster membership information +export interface ClusterInfo { + node_id?: string + peer_count: number + peers?: string[] + is_leader?: boolean + leader_id?: string + cluster_state?: string +} + +// GET /api/v1/status response +export interface StatusResponse { + status: string + version: string + git_commit?: string + build_time?: string + go_version?: string + uptime_seconds: number + mount_path?: string + device_path?: string + mount_state?: MountState + read_only?: boolean + capacity?: CapacityInfo + cluster?: ClusterInfo +} + +// Cache hit rate metrics +export interface CacheHitRateInfo { + size: number + hits: number + misses: number + hit_rate: number +} + +// GET /api/v1/stats/cache response +export interface CacheStatsResponse { + inode_cache: CacheHitRateInfo + extent_cache: CacheHitRateInfo + negative_cache: CacheHitRateInfo + lock_hint_cache?: CacheHitRateInfo +} + +// GET /api/v1/stats/journal response; state is clean, dirty, recovering or corrupt +export interface JournalStatsResponse { + state: string + head_offset: number + tail_offset: number + available_space: number + active_txn_count: number + commit_count: number + bytes_written: number + last_checkpoint_seq: number + batch_sync_count: number +} + +// I/O operation statistics +export interface IOStatsResponse { + read_ops: number + write_ops: number + bytes_read: number + bytes_written: number + avg_read_latency_us: number + avg_write_latency_us: number +} + +// GET /api/v1/stats/metrics response +export interface MetricsStatsResponse { + io?: IOStatsResponse + start_time_unix: number + uptime_seconds: number +} + +// GET /api/v1/stats/trim response +export interface TrimStatsResponse { + trim_operations: number + trim_bytes: number + trim_blocks: number + pending_trim_blocks?: number + last_trim_at?: string + trim_errors?: number + trim_enabled: boolean + batch_size?: number +} + +// GET /api/v1/stats/lock response +export interface LockStatsResponse { + hint_cache_hits: number + hint_cache_misses: number + hint_cache_hit_rate: number + active_locks?: number + pending_locks?: number +} + +// GET /api/v1/stats/sfb response +export interface SFBStatsResponse { + total_blocks: number + allocated_blocks: number + free_blocks: number + allocation_percent: number + fragmentation_ratio?: number + largest_free_extent?: number + allocations_total: number + deallocations_total: number + allocation_failures?: number +} + +// Cluster peer node information +export interface ClusterPeerInfo { + node_id: string + address: string + state: string + last_seen?: string + latency_ms?: number +} + +// GET /api/v1/stats/cluster response +export interface ClusterInfoResponse { + node_id: string + node_address?: string + role: string + state: string + cluster_size: number + healthy_nodes: number + leader_id?: string + last_heartbeat_at?: string + joined_at?: string + peers?: ClusterPeerInfo[] +} + +// GET /api/v1/stats/all response +export interface AllStatsResponse { + collected_at: string + cache?: CacheStatsResponse + journal?: JournalStatsResponse + trim?: TrimStatsResponse + lock?: LockStatsResponse + sfb?: SFBStatsResponse + cluster?: ClusterInfoResponse +} + +// GET /api/v1/stats response (overview) +export interface StatsOverviewResponse { + cache?: CacheStatsResponse + journal?: JournalStatsResponse + io?: IOStatsResponse +} + +// ============================================================ +// Snapshot, clone and admin types (internal/api/writes.go) +// ============================================================ + +// Registry states; "deleting" lasts until the snapshot worker frees the blocks +export type SnapshotState = 'creating' | 'active' | 'deleting' | 'invalid' + +export interface SnapshotInfo { + id: number + name: string + inode: number + state: SnapshotState + size_bytes: number + blocks: number + created_at?: string +} + +// GET /api/v1/snapshots[?path=] +export interface SnapshotListResponse { + snapshots: SnapshotInfo[] + total: number +} + +// POST /api/v1/snapshots +export interface SnapshotRequest { + path: string + name: string +} + +// POST /api/v1/clones and POST /api/v1/snapshots/{name}/clone +export interface CloneRequest { + path: string + dest: string +} + +export interface WriteResponse { + action: string + path: string + name?: string + dest?: string +} + +export type AdminOperation = 'flush-journal' | 'force-trim' | 'clear-cache' + +// POST /api/v1/admin/{operation}; acts on this node only +export interface AdminResponse { + operation: string + message: string +} diff --git a/web/dashboard/src/components/charts/CacheCharts.tsx b/web/dashboard/src/components/charts/CacheCharts.tsx new file mode 100644 index 00000000..e751becb --- /dev/null +++ b/web/dashboard/src/components/charts/CacheCharts.tsx @@ -0,0 +1,401 @@ +/** + * Cache Performance Charts - visualizations for cache metrics + * + * Uses Recharts for rendering line/area/bar charts showing: + * - Cache hit rate over time + * - Cache size/memory usage + * - Per-cache breakdown (inode, extent, lock hint) + */ + +import { useMemo } from 'react' +import { + BarChart, + Bar, + LineChart, + Line, + XAxis, + YAxis, + CartesianGrid, + Tooltip, + ResponsiveContainer, + Legend, +} from 'recharts' +import type { CacheHitRateInfo } from '@/api' +import { formatNumber, formatPercent } from '@/utils/format' + +// Chart theme colors matching GoClusterFS design system +const CHART_COLORS = { + primary: '#63b3ed', // gfs-accent-primary + secondary: '#4299e1', // gfs-accent-secondary + success: '#48bb78', // gfs-status-ok + warning: '#ed8936', // gfs-status-warning + error: '#f56565', // gfs-status-error + grid: '#2d3748', // gfs-border + text: '#a0aec0', // gfs-text-secondary +} + +// Custom tooltip styles +const tooltipStyle = { + backgroundColor: '#1a1a2e', + border: '1px solid #2d3748', + borderRadius: '0.375rem', + padding: '0.5rem 0.75rem', + color: '#e2e8f0', + fontSize: '0.875rem', +} + +/** + * Props for cache breakdown bar chart + */ +interface CacheBreakdownChartProps { + inodeCache?: CacheHitRateInfo + extentCache?: CacheHitRateInfo + lockHintCache?: CacheHitRateInfo +} + +/** + * Bar chart showing cache breakdown by type + */ +export function CacheBreakdownChart({ + inodeCache, + extentCache, + lockHintCache, +}: CacheBreakdownChartProps) { + const data = useMemo(() => [ + { + name: 'Inode', + hits: inodeCache?.hits ?? 0, + misses: inodeCache?.misses ?? 0, + size: inodeCache?.size ?? 0, + hitRate: (inodeCache?.hit_rate ?? 0) * 100, + }, + { + name: 'Extent', + hits: extentCache?.hits ?? 0, + misses: extentCache?.misses ?? 0, + size: extentCache?.size ?? 0, + hitRate: (extentCache?.hit_rate ?? 0) * 100, + }, + { + name: 'Lock Hint', + hits: lockHintCache?.hits ?? 0, + misses: lockHintCache?.misses ?? 0, + size: lockHintCache?.size ?? 0, + hitRate: (lockHintCache?.hit_rate ?? 0) * 100, + }, + ], [inodeCache, extentCache, lockHintCache]) + + return ( +
+ + + + formatNumber(value)} + /> + + [ + formatNumber(Number(value ?? 0)), + name === 'hits' ? 'Hits' : 'Misses', + ]} + /> + ( + + {value === 'hits' ? 'Hits' : 'Misses'} + + )} + /> + + + + +
+ ) +} + +/** + * Props for hit rate line chart + */ +interface HitRateChartProps { + inodeCache?: CacheHitRateInfo + extentCache?: CacheHitRateInfo + lockHintCache?: CacheHitRateInfo +} + +/** + * Line chart showing hit rates for each cache type + */ +export function HitRateChart({ + inodeCache, + extentCache, + lockHintCache, +}: HitRateChartProps) { + const data = useMemo(() => [ + { + name: 'Inode', + hitRate: (inodeCache?.hit_rate ?? 0) * 100, + }, + { + name: 'Extent', + hitRate: (extentCache?.hit_rate ?? 0) * 100, + }, + { + name: 'Lock Hint', + hitRate: (lockHintCache?.hit_rate ?? 0) * 100, + }, + ], [inodeCache, extentCache, lockHintCache]) + + return ( +
+ + + + + `${value}%`} + /> + [formatPercent(Number(value ?? 0)), 'Hit Rate']} + /> + + + +
+ ) +} + +/** + * Props for cache size chart + */ +interface CacheSizeChartProps { + inodeCache?: CacheHitRateInfo + extentCache?: CacheHitRateInfo + lockHintCache?: CacheHitRateInfo +} + +/** + * Area chart showing cache sizes + */ +export function CacheSizeChart({ + inodeCache, + extentCache, + lockHintCache, +}: CacheSizeChartProps) { + const data = useMemo(() => [ + { + name: 'Inode', + size: inodeCache?.size ?? 0, + }, + { + name: 'Extent', + size: extentCache?.size ?? 0, + }, + { + name: 'Lock Hint', + size: lockHintCache?.size ?? 0, + }, + ], [inodeCache, extentCache, lockHintCache]) + + return ( +
+ + + + + formatNumber(value)} + /> + [formatNumber(Number(value ?? 0)), 'Entries']} + /> + + + +
+ ) +} + +/** + * Props for time series data + */ +interface TimeSeriesPoint { + timestamp: string + inodeHitRate: number + extentHitRate: number + lockHintHitRate: number +} + +interface TimeSeriesChartProps { + data: TimeSeriesPoint[] +} + +/** + * Line chart for hit rate over time + * Note: This requires historical data to be collected by the API + */ +export function HitRateTimeSeriesChart({ data }: TimeSeriesChartProps) { + if (!data || data.length === 0) { + return ( +
+

No historical data available

+
+ ) + } + + return ( +
+ + + + { + const date = new Date(value) + return date.toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' }) + }} + /> + `${value}%`} + /> + [ + formatPercent(Number(value ?? 0)), + String(name).replace('HitRate', ' Hit Rate'), + ]} + labelFormatter={(value) => new Date(String(value)).toLocaleString()} + /> + ( + + {value.replace('HitRate', '')} + + )} + /> + + + + + +
+ ) +} + +/** + * Props for the combined cache stats panel + */ +interface CacheStatsPanelProps { + inodeCache?: CacheHitRateInfo + extentCache?: CacheHitRateInfo + lockHintCache?: CacheHitRateInfo + timeSeries?: TimeSeriesPoint[] +} + +/** + * Combined panel showing all cache charts + */ +export function CacheStatsPanel({ + inodeCache, + extentCache, + lockHintCache, + timeSeries, +}: CacheStatsPanelProps) { + return ( +
+ {/* Hit rates by cache type */} +
+

Cache Hit Rates

+ +
+ + {/* Cache sizes */} +
+

Cache Sizes

+ +
+ + {/* Hits vs Misses breakdown */} +
+

Hits vs Misses

+ +
+ + {/* Time series (if available) */} + {timeSeries && timeSeries.length > 0 && ( +
+

Hit Rate Over Time

+ +
+ )} +
+ ) +} + +export default CacheStatsPanel diff --git a/web/dashboard/src/components/charts/index.ts b/web/dashboard/src/components/charts/index.ts new file mode 100644 index 00000000..7e5cdd57 --- /dev/null +++ b/web/dashboard/src/components/charts/index.ts @@ -0,0 +1,5 @@ +/** + * Charts module exports + */ + +export * from './CacheCharts' diff --git a/web/dashboard/src/components/common/Modal.tsx b/web/dashboard/src/components/common/Modal.tsx new file mode 100644 index 00000000..12966949 --- /dev/null +++ b/web/dashboard/src/components/common/Modal.tsx @@ -0,0 +1,148 @@ +/** + * Reusable modal component with accessibility support + */ + +import { useEffect, useRef, type ReactNode } from 'react' +import { createPortal } from 'react-dom' + +export interface ModalProps { + /** Whether the modal is open */ + isOpen: boolean + /** Callback when the modal should close */ + onClose: () => void + /** Modal title */ + title: string + /** Modal content */ + children: ReactNode + /** Optional footer content (buttons, etc.) */ + footer?: ReactNode + /** Size of the modal */ + size?: 'sm' | 'md' | 'lg' + /** Whether clicking the backdrop closes the modal */ + closeOnBackdrop?: boolean + /** Whether pressing Escape closes the modal */ + closeOnEscape?: boolean +} + +const sizeClasses = { + sm: 'max-w-md', + md: 'max-w-lg', + lg: 'max-w-2xl', +} + +export function Modal({ + isOpen, + onClose, + title, + children, + footer, + size = 'md', + closeOnBackdrop = true, + closeOnEscape = true, +}: ModalProps) { + const modalRef = useRef(null) + const previousActiveElement = useRef(null) + + // Handle escape key + useEffect(() => { + if (!isOpen || !closeOnEscape) return + + const handleKeyDown = (e: KeyboardEvent) => { + if (e.key === 'Escape') { + onClose() + } + } + + document.addEventListener('keydown', handleKeyDown) + return () => document.removeEventListener('keydown', handleKeyDown) + }, [isOpen, closeOnEscape, onClose]) + + // Focus management + useEffect(() => { + if (isOpen) { + previousActiveElement.current = document.activeElement as HTMLElement + // Focus the modal on open + modalRef.current?.focus() + } else if (previousActiveElement.current) { + // Restore focus on close + previousActiveElement.current.focus() + } + }, [isOpen]) + + // Prevent body scroll when modal is open + useEffect(() => { + if (isOpen) { + document.body.style.overflow = 'hidden' + } else { + document.body.style.overflow = '' + } + return () => { + document.body.style.overflow = '' + } + }, [isOpen]) + + if (!isOpen) return null + + const handleBackdropClick = (e: React.MouseEvent) => { + if (closeOnBackdrop && e.target === e.currentTarget) { + onClose() + } + } + + const modalContent = ( +
+ {/* Backdrop */} + + ) + + // Render modal in portal + return createPortal(modalContent, document.body) +} + +export default Modal diff --git a/web/dashboard/src/components/common/SlidePanel.tsx b/web/dashboard/src/components/common/SlidePanel.tsx new file mode 100644 index 00000000..8d162d67 --- /dev/null +++ b/web/dashboard/src/components/common/SlidePanel.tsx @@ -0,0 +1,126 @@ +/** + * Reusable slide-in panel component + * Slides in from the right side of the screen + */ + +import { useEffect, useCallback, type ReactNode } from 'react' +import { createPortal } from 'react-dom' + +export interface SlidePanelProps { + /** Whether the panel is open */ + isOpen: boolean + /** Callback when the panel should close */ + onClose: () => void + /** Panel title */ + title: string + /** Optional subtitle */ + subtitle?: string + /** Panel content */ + children: ReactNode + /** Panel width - defaults to 'md' */ + width?: 'sm' | 'md' | 'lg' | 'xl' + /** Whether to close on backdrop click */ + closeOnBackdrop?: boolean + /** Whether to close on escape key */ + closeOnEscape?: boolean +} + +const widthClasses = { + sm: 'max-w-sm', + md: 'max-w-md', + lg: 'max-w-lg', + xl: 'max-w-xl', +} + +export function SlidePanel({ + isOpen, + onClose, + title, + subtitle, + children, + width = 'md', + closeOnBackdrop = true, + closeOnEscape = true, +}: SlidePanelProps) { + // Handle escape key + const handleKeyDown = useCallback( + (e: KeyboardEvent) => { + if (closeOnEscape && e.key === 'Escape') { + onClose() + } + }, + [closeOnEscape, onClose] + ) + + useEffect(() => { + if (isOpen) { + document.addEventListener('keydown', handleKeyDown) + // Prevent body scroll when panel is open + document.body.style.overflow = 'hidden' + + return () => { + document.removeEventListener('keydown', handleKeyDown) + document.body.style.overflow = '' + } + } + }, [isOpen, handleKeyDown]) + + if (!isOpen) { + return null + } + + const panel = ( +
+ {/* Backdrop */} + + ) + + return createPortal(panel, document.body) +} + +export default SlidePanel diff --git a/web/dashboard/src/components/common/TokenHint.tsx b/web/dashboard/src/components/common/TokenHint.tsx new file mode 100644 index 00000000..3f0370d5 --- /dev/null +++ b/web/dashboard/src/components/common/TokenHint.tsx @@ -0,0 +1,13 @@ +import { Link } from 'react-router-dom' +import { ApiError } from '@/api' + +export function TokenHint({ error }: { error: Error }) { + if (!(error instanceof ApiError) || error.status !== 401) { + return null + } + return ( +
+ This API needs a token. Enter it on the Settings page. +
+ ) +} diff --git a/web/dashboard/src/components/common/index.ts b/web/dashboard/src/components/common/index.ts new file mode 100644 index 00000000..bb20fb84 --- /dev/null +++ b/web/dashboard/src/components/common/index.ts @@ -0,0 +1,11 @@ +/** + * Common components exports + */ + +export { Modal } from './Modal' +export type { ModalProps } from './Modal' + +export { SlidePanel } from './SlidePanel' +export type { SlidePanelProps } from './SlidePanel' + +export { TokenHint } from './TokenHint' diff --git a/web/dashboard/src/components/gauges/CircularGauge.tsx b/web/dashboard/src/components/gauges/CircularGauge.tsx new file mode 100644 index 00000000..ef3bf3d6 --- /dev/null +++ b/web/dashboard/src/components/gauges/CircularGauge.tsx @@ -0,0 +1,796 @@ +/** + * Circular Gauge Components - SVG-based circular progress indicators + * + * These gauges display percentage values in a visually appealing circular format + * with configurable colors, sizes, and warning thresholds. + */ + +import { useMemo } from 'react' +import { formatPercent, formatBytes, formatNumber } from '@/utils/format' + +/** + * Color thresholds for gauge status indication + */ +interface ThresholdColors { + ok: string + warning: string + critical: string +} + +const DEFAULT_COLORS: ThresholdColors = { + ok: '#48bb78', // gfs-status-ok (green) + warning: '#ed8936', // gfs-status-warning (orange) + critical: '#f56565', // gfs-status-error (red) +} + +/** + * Get color based on percentage and thresholds + */ +function getColorForPercent( + percent: number, + warningThreshold: number, + criticalThreshold: number, + colors: ThresholdColors = DEFAULT_COLORS +): string { + if (percent >= criticalThreshold) return colors.critical + if (percent >= warningThreshold) return colors.warning + return colors.ok +} + +/** + * Base props for all circular gauges + */ +interface CircularGaugeBaseProps { + /** Current percentage (0-100) */ + percent: number + /** Size in pixels (default: 120) */ + size?: number + /** Stroke width (default: 8) */ + strokeWidth?: number + /** Warning threshold percentage (default: 75) */ + warningThreshold?: number + /** Critical threshold percentage (default: 90) */ + criticalThreshold?: number + /** Custom color overrides */ + colors?: Partial + /** Label text below the value */ + label?: string + /** Show percentage text (default: true) */ + showPercent?: boolean + /** Animation duration in ms (default: 500) */ + animationDuration?: number +} + +/** + * Basic circular gauge showing a percentage + */ +export function CircularGauge({ + percent, + size = 120, + strokeWidth = 8, + warningThreshold = 75, + criticalThreshold = 90, + colors, + label, + showPercent = true, + animationDuration = 500, +}: CircularGaugeBaseProps) { + const mergedColors = { ...DEFAULT_COLORS, ...colors } + + // Calculate SVG dimensions + const radius = (size - strokeWidth) / 2 + const circumference = 2 * Math.PI * radius + const center = size / 2 + + // Clamp percent to 0-100 + const clampedPercent = Math.min(100, Math.max(0, percent)) + + // Calculate stroke offset for the progress arc + const strokeDashoffset = circumference * (1 - clampedPercent / 100) + + // Get color based on thresholds + const strokeColor = getColorForPercent( + clampedPercent, + warningThreshold, + criticalThreshold, + mergedColors + ) + + return ( +
+ + {/* Background circle */} + + {/* Progress circle */} + + + {/* Center text overlay */} +
+ {showPercent && ( + + {formatPercent(clampedPercent)} + + )} +
+ {/* Label below gauge */} + {label && ( + {label} + )} +
+ ) +} + +/** + * Props for capacity gauge with byte values + */ +interface CapacityGaugeProps extends Omit { + /** Used bytes */ + usedBytes: number + /** Total bytes */ + totalBytes: number + /** Show used/total values (default: true) */ + showValues?: boolean +} + +/** + * Capacity gauge showing storage usage with byte values + */ +export function CapacityGauge({ + usedBytes, + totalBytes, + size = 140, + strokeWidth = 10, + warningThreshold = 75, + criticalThreshold = 90, + colors, + label = 'Storage', + showValues = true, + animationDuration = 500, +}: CapacityGaugeProps) { + const percent = useMemo(() => { + if (totalBytes <= 0) return 0 + return (usedBytes / totalBytes) * 100 + }, [usedBytes, totalBytes]) + + const mergedColors = { ...DEFAULT_COLORS, ...colors } + + const radius = (size - strokeWidth) / 2 + const circumference = 2 * Math.PI * radius + const center = size / 2 + const clampedPercent = Math.min(100, Math.max(0, percent)) + const strokeDashoffset = circumference * (1 - clampedPercent / 100) + + const strokeColor = getColorForPercent( + clampedPercent, + warningThreshold, + criticalThreshold, + mergedColors + ) + + return ( +
+
+ + + + + {/* Center content */} +
+ + {formatPercent(clampedPercent)} + + {showValues && ( + + {formatBytes(usedBytes)} + + )} +
+
+ {label && ( + {label} + )} + {showValues && ( + + of {formatBytes(totalBytes)} + + )} +
+ ) +} + +/** + * Props for inode gauge + */ +interface InodeGaugeProps extends Omit { + /** Used inodes */ + usedInodes: number + /** Total inodes */ + totalInodes: number + /** Show inode counts (default: true) */ + showCounts?: boolean +} + +/** + * Inode gauge showing inode usage + */ +export function InodeGauge({ + usedInodes, + totalInodes, + size = 140, + strokeWidth = 10, + warningThreshold = 80, + criticalThreshold = 95, + colors, + label = 'Inodes', + showCounts = true, + animationDuration = 500, +}: InodeGaugeProps) { + const percent = useMemo(() => { + if (totalInodes <= 0) return 0 + return (usedInodes / totalInodes) * 100 + }, [usedInodes, totalInodes]) + + const mergedColors = { ...DEFAULT_COLORS, ...colors } + + const radius = (size - strokeWidth) / 2 + const circumference = 2 * Math.PI * radius + const center = size / 2 + const clampedPercent = Math.min(100, Math.max(0, percent)) + const strokeDashoffset = circumference * (1 - clampedPercent / 100) + + const strokeColor = getColorForPercent( + clampedPercent, + warningThreshold, + criticalThreshold, + mergedColors + ) + + return ( +
+
+ + + + +
+ + {formatPercent(clampedPercent)} + + {showCounts && ( + + {formatNumber(usedInodes)} + + )} +
+
+ {label && ( + {label} + )} + {showCounts && ( + + of {formatNumber(totalInodes)} + + )} +
+ ) +} + +/** + * Props for block gauge + */ +interface BlockGaugeProps extends Omit { + /** Used blocks */ + usedBlocks: number + /** Total blocks */ + totalBlocks: number + /** Show block counts (default: true) */ + showCounts?: boolean +} + +/** + * Block gauge showing block allocation + */ +export function BlockGauge({ + usedBlocks, + totalBlocks, + size = 140, + strokeWidth = 10, + warningThreshold = 75, + criticalThreshold = 90, + colors, + label = 'Blocks', + showCounts = true, + animationDuration = 500, +}: BlockGaugeProps) { + const percent = useMemo(() => { + if (totalBlocks <= 0) return 0 + return (usedBlocks / totalBlocks) * 100 + }, [usedBlocks, totalBlocks]) + + const mergedColors = { ...DEFAULT_COLORS, ...colors } + + const radius = (size - strokeWidth) / 2 + const circumference = 2 * Math.PI * radius + const center = size / 2 + const clampedPercent = Math.min(100, Math.max(0, percent)) + const strokeDashoffset = circumference * (1 - clampedPercent / 100) + + const strokeColor = getColorForPercent( + clampedPercent, + warningThreshold, + criticalThreshold, + mergedColors + ) + + return ( +
+
+ + + + +
+ + {formatPercent(clampedPercent)} + + {showCounts && ( + + {formatNumber(usedBlocks)} + + )} +
+
+ {label && ( + {label} + )} + {showCounts && ( + + of {formatNumber(totalBlocks)} + + )} +
+ ) +} + +/** + * Mini gauge for compact displays (e.g., in cards or tables) + */ +interface MiniGaugeProps { + percent: number + size?: number + strokeWidth?: number + warningThreshold?: number + criticalThreshold?: number + colors?: Partial +} + +export function MiniGauge({ + percent, + size = 40, + strokeWidth = 4, + warningThreshold = 75, + criticalThreshold = 90, + colors, +}: MiniGaugeProps) { + const mergedColors = { ...DEFAULT_COLORS, ...colors } + + const radius = (size - strokeWidth) / 2 + const circumference = 2 * Math.PI * radius + const center = size / 2 + const clampedPercent = Math.min(100, Math.max(0, percent)) + const strokeDashoffset = circumference * (1 - clampedPercent / 100) + + const strokeColor = getColorForPercent( + clampedPercent, + warningThreshold, + criticalThreshold, + mergedColors + ) + + return ( +
+ + + + + + {Math.round(clampedPercent)} + +
+ ) +} + +/** + * Props for cache hit rate gauge + */ +interface HitRateGaugeProps { + /** Number of cache hits */ + hits: number + /** Number of cache misses */ + misses: number + /** Size in pixels (default: 140) */ + size?: number + /** Stroke width (default: 10) */ + strokeWidth?: number + /** Label text (default: 'Hit Rate') */ + label?: string + /** Show hit/miss counts (default: true) */ + showCounts?: boolean + /** Animation duration in ms (default: 500) */ + animationDuration?: number +} + +/** + * Cache hit rate gauge - shows cache performance with inverted thresholds + * (higher is better, so green >= 80%, yellow >= 50%, red < 50%) + */ +export function HitRateGauge({ + hits, + misses, + size = 140, + strokeWidth = 10, + label = 'Hit Rate', + showCounts = true, + animationDuration = 500, +}: HitRateGaugeProps) { + const percent = useMemo(() => { + const total = hits + misses + if (total <= 0) return 0 + return (hits / total) * 100 + }, [hits, misses]) + + const radius = (size - strokeWidth) / 2 + const circumference = 2 * Math.PI * radius + const center = size / 2 + const clampedPercent = Math.min(100, Math.max(0, percent)) + const strokeDashoffset = circumference * (1 - clampedPercent / 100) + + // Custom color logic for hit rate (higher = better) + const strokeColor = + clampedPercent >= 80 + ? '#48bb78' // green (good) + : clampedPercent >= 50 + ? '#ed8936' // orange (warning) + : '#f56565' // red (bad) + + return ( +
+
+ + + + +
+ + {formatPercent(clampedPercent)} + + {showCounts && ( + + {formatNumber(hits)} / {formatNumber(hits + misses)} + + )} +
+
+ {label && ( + {label} + )} +
+ ) +} + +/** + * Props for journal usage gauge + */ +interface JournalGaugeProps { + /** Bytes written to journal */ + bytesWritten?: number + /** Available space in journal */ + availableSpace?: number + /** Total journal size (bytesWritten + availableSpace if not provided) */ + totalSize?: number + /** Journal state: clean, dirty, recovering or corrupt */ + state?: string + /** Number of commits */ + commitCount?: number + /** Number of active transactions */ + activeTxnCount?: number + /** Size in pixels (default: 140) */ + size?: number + /** Stroke width (default: 10) */ + strokeWidth?: number + /** Animation duration in ms (default: 500) */ + animationDuration?: number +} + +/** + * Journal usage gauge with state indicator + */ +export function JournalGauge({ + bytesWritten = 0, + availableSpace = 0, + totalSize, + state = 'unknown', + commitCount = 0, + activeTxnCount = 0, + size = 140, + strokeWidth = 10, + animationDuration = 500, +}: JournalGaugeProps) { + // Calculate utilization + const total = totalSize ?? (bytesWritten + availableSpace) + const percent = useMemo(() => { + if (total <= 0) return 0 + return ((total - availableSpace) / total) * 100 + }, [total, availableSpace]) + + const radius = (size - strokeWidth) / 2 + const circumference = 2 * Math.PI * radius + const center = size / 2 + const clampedPercent = Math.min(100, Math.max(0, percent)) + const strokeDashoffset = circumference * (1 - clampedPercent / 100) + + // Color based on utilization (higher = worse for journal) + const strokeColor = + clampedPercent >= 90 + ? '#f56565' // red (critical) + : clampedPercent >= 75 + ? '#ed8936' // orange (warning) + : '#48bb78' // green (ok) + + // State badge color + const stateColorMap: Record = { + clean: 'bg-gfs-status-ok', + dirty: 'bg-gfs-status-info', + recovering: 'bg-gfs-status-warning', + corrupt: 'bg-gfs-status-error', + unknown: 'bg-gfs-text-muted', + } + const stateBgColor = stateColorMap[state.toLowerCase()] || stateColorMap.unknown + + return ( +
+
+ + + + +
+ + {formatPercent(clampedPercent)} + + + utilized + +
+
+ + {/* State badge */} +
+ + + {state} + +
+ + {/* Stats row */} +
+ {formatNumber(commitCount)} commits + {activeTxnCount > 0 && ( + + {activeTxnCount} active + + )} +
+
+ ) +} + +export default CircularGauge diff --git a/web/dashboard/src/components/gauges/index.ts b/web/dashboard/src/components/gauges/index.ts new file mode 100644 index 00000000..7b18aa02 --- /dev/null +++ b/web/dashboard/src/components/gauges/index.ts @@ -0,0 +1,5 @@ +/** + * Gauges module exports + */ + +export * from './CircularGauge' diff --git a/web/dashboard/src/components/index.ts b/web/dashboard/src/components/index.ts new file mode 100644 index 00000000..153828c0 --- /dev/null +++ b/web/dashboard/src/components/index.ts @@ -0,0 +1,9 @@ +/** + * Components module exports + */ + +export * from './charts' +export * from './gauges' +export * from './common' +export * from './modals' +export * from './panels' diff --git a/web/dashboard/src/components/modals/ConfirmDeleteModal.tsx b/web/dashboard/src/components/modals/ConfirmDeleteModal.tsx new file mode 100644 index 00000000..5ec4cc42 --- /dev/null +++ b/web/dashboard/src/components/modals/ConfirmDeleteModal.tsx @@ -0,0 +1,232 @@ +/** + * Reusable confirmation modal for destructive actions + * Includes type-to-confirm functionality for extra safety + */ + +import { useState } from 'react' +import { Modal } from '@/components/common/Modal' + +export interface ConfirmDeleteModalProps { + /** Whether the modal is open */ + isOpen: boolean + /** Callback when the modal should close */ + onClose: () => void + /** Callback when deletion is confirmed - should return a promise */ + onConfirm: () => Promise + /** Title for the modal */ + title?: string + /** Name of the item being deleted (used for type-to-confirm) */ + itemName: string + /** Type of item being deleted (e.g., "snapshot", "node") */ + itemType?: string + /** Additional warning message */ + warning?: string + /** Whether to require typing the name to confirm */ + requireTypeToConfirm?: boolean + /** Shown once onConfirm resolves */ + successMessage?: string +} + +type ModalState = 'confirm' | 'deleting' | 'success' | 'error' + +/** + * ConfirmDeleteModal - Reusable delete confirmation with type-to-confirm + * + * IMPORTANT: To ensure proper state reset between uses, pass a unique `key` + * prop based on the item being deleted (e.g., key={snapshot?.id}). + * This causes React to remount the component with fresh state. + */ +export function ConfirmDeleteModal({ + isOpen, + onClose, + onConfirm, + title = 'Confirm Delete', + itemName, + itemType = 'item', + warning, + requireTypeToConfirm = true, + successMessage = 'Deleted successfully', +}: ConfirmDeleteModalProps) { + const [state, setState] = useState('confirm') + const [confirmText, setConfirmText] = useState('') + const [errorMessage, setErrorMessage] = useState('') + + const handleClose = () => { + onClose() + } + + const isConfirmEnabled = !requireTypeToConfirm || confirmText === itemName + + const handleDelete = async () => { + if (!isConfirmEnabled) return + + setState('deleting') + setErrorMessage('') + + try { + await onConfirm() + setState('success') + + // Auto-close after success + setTimeout(() => { + handleClose() + }, 1500) + } catch (err) { + setState('error') + setErrorMessage(err instanceof Error ? err.message : 'Failed to delete') + } + } + + const renderContent = () => { + switch (state) { + case 'deleting': + return ( +
+
+

Deleting {itemType}...

+
+ ) + + case 'success': + return ( +
+
+ + + +
+

{successMessage}

+
+ ) + + case 'error': + return ( +
+
+
+
+ + + +
+
+

Delete failed

+

{errorMessage}

+
+
+
+ +
+ ) + + default: + return ( +
+ {/* Warning icon and message */} +
+
+ + + +
+
+

+ Are you sure you want to delete{' '} + "{itemName}"? +

+

+ This action cannot be undone. +

+
+
+ + {/* Additional warning */} + {warning && ( +
+

{warning}

+
+ )} + + {/* Type to confirm */} + {requireTypeToConfirm && ( +
+ + setConfirmText(e.target.value)} + placeholder={itemName} + className="w-full px-3 py-2 bg-gfs-bg-primary border border-gfs-border rounded-md text-gfs-text-primary placeholder-gfs-text-muted focus:outline-none focus:ring-2 focus:ring-gfs-status-error focus:border-transparent" + autoComplete="off" + spellCheck={false} + /> +
+ )} +
+ ) + } + } + + const renderFooter = () => { + if (state === 'deleting' || state === 'success') { + return null + } + + if (state === 'error') { + return ( + + ) + } + + return ( + <> + + + + ) + } + + return ( + + {renderContent()} + + ) +} + +export default ConfirmDeleteModal diff --git a/web/dashboard/src/components/modals/TextFieldModal.tsx b/web/dashboard/src/components/modals/TextFieldModal.tsx new file mode 100644 index 00000000..b9fc9604 --- /dev/null +++ b/web/dashboard/src/components/modals/TextFieldModal.tsx @@ -0,0 +1,142 @@ +import { useState, type ReactNode } from 'react' +import { Modal } from '@/components/common/Modal' + +export interface TextFieldModalProps { + isOpen: boolean + onClose: () => void + onSuccess?: () => void + title: string + description: ReactNode + label: string + placeholder?: string + initialValue?: string + submitLabel: string + busyLabel: string + successLabel: string + /** Returns an error message, or null if the value is fine */ + validate: (value: string) => string | null + onSubmit: (value: string) => Promise +} + +type ModalState = 'form' | 'submitting' | 'success' + +// Remount with a new key to reset it between uses. +export function TextFieldModal({ + isOpen, + onClose, + onSuccess, + title, + description, + label, + placeholder, + initialValue = '', + submitLabel, + busyLabel, + successLabel, + validate, + onSubmit, +}: TextFieldModalProps) { + const [state, setState] = useState('form') + const [value, setValue] = useState(initialValue) + const [errorMessage, setErrorMessage] = useState('') + + const handleSubmit = async (e: React.FormEvent) => { + e.preventDefault() + const trimmed = value.trim() + const invalid = validate(trimmed) + if (invalid) { + setErrorMessage(invalid) + return + } + setState('submitting') + setErrorMessage('') + try { + await onSubmit(trimmed) + setState('success') + onSuccess?.() + setTimeout(onClose, 1200) + } catch (err) { + setState('form') + setErrorMessage(err instanceof Error ? err.message : 'Request failed') + } + } + + const formId = `text-field-${label.replace(/\W+/g, '-').toLowerCase()}` + + const footer = + state === 'form' ? ( + <> + + + + ) : null + + return ( + + {state === 'submitting' && ( +
+
+

{busyLabel}

+

Large files can take a while

+
+ )} + {state === 'success' && ( +
+
+ + + +
+

{successLabel}

+
+ )} + {state === 'form' && ( +
+
{description}
+
+ + setValue(e.target.value)} + placeholder={placeholder} + className="w-full px-3 py-2 bg-gfs-bg-primary border border-gfs-border rounded-md text-gfs-text-primary placeholder-gfs-text-muted focus:outline-none focus:ring-2 focus:ring-gfs-accent-primary focus:border-transparent" + autoFocus + required + /> +
+ {errorMessage && ( +
+

{errorMessage}

+
+ )} +
+ )} + + ) +} + +export default TextFieldModal diff --git a/web/dashboard/src/components/modals/index.ts b/web/dashboard/src/components/modals/index.ts new file mode 100644 index 00000000..801c6c9f --- /dev/null +++ b/web/dashboard/src/components/modals/index.ts @@ -0,0 +1,5 @@ +export { TextFieldModal } from './TextFieldModal' +export type { TextFieldModalProps } from './TextFieldModal' + +export { ConfirmDeleteModal } from './ConfirmDeleteModal' +export type { ConfirmDeleteModalProps } from './ConfirmDeleteModal' diff --git a/web/dashboard/src/components/panels/NodeDetailPanel.tsx b/web/dashboard/src/components/panels/NodeDetailPanel.tsx new file mode 100644 index 00000000..502615c3 --- /dev/null +++ b/web/dashboard/src/components/panels/NodeDetailPanel.tsx @@ -0,0 +1,57 @@ +import { SlidePanel } from '@/components/common' +import { formatRelativeTime, nodeStateColor } from '@/utils' + +export interface ClusterNode { + nodeId: string + host: string + state: string + lastHeartbeat?: string + joinedAt?: string + isSelf: boolean +} + +export interface NodeDetailPanelProps { + node: ClusterNode | null + onClose: () => void +} + +function InfoRow({ label, value, mono }: { label: string; value: React.ReactNode; mono?: boolean }) { + return ( +
+
{label}
+
{value}
+
+ ) +} + +function timeOrUnknown(timestamp?: string): string { + return timestamp ? formatRelativeTime(new Date(timestamp)) : 'Unknown' +} + +export function NodeDetailPanel({ node, onClose }: NodeDetailPanelProps) { + if (!node) { + return null + } + + return ( + +
+ + + {node.state} + + } + /> + + + + {node.isSelf && } +
+
+ ) +} + +export default NodeDetailPanel diff --git a/web/dashboard/src/components/panels/index.ts b/web/dashboard/src/components/panels/index.ts new file mode 100644 index 00000000..98a72aaf --- /dev/null +++ b/web/dashboard/src/components/panels/index.ts @@ -0,0 +1,2 @@ +export { NodeDetailPanel } from './NodeDetailPanel' +export type { NodeDetailPanelProps, ClusterNode } from './NodeDetailPanel' diff --git a/web/dashboard/src/hooks/index.ts b/web/dashboard/src/hooks/index.ts new file mode 100644 index 00000000..fab18ca0 --- /dev/null +++ b/web/dashboard/src/hooks/index.ts @@ -0,0 +1,5 @@ +/** + * Hooks module exports + */ + +export * from './useApi' diff --git a/web/dashboard/src/hooks/useApi.ts b/web/dashboard/src/hooks/useApi.ts new file mode 100644 index 00000000..851feae1 --- /dev/null +++ b/web/dashboard/src/hooks/useApi.ts @@ -0,0 +1,143 @@ +import { useState, useEffect, useCallback, useRef } from 'react' +import { api, ApiError } from '@/api' +import { useRefreshInterval, useSettings } from '@/stores' +import type { + HealthResponse, + StatusResponse, + AllStatsResponse, + LockStatsResponse, + ClusterInfoResponse, + SnapshotListResponse, +} from '@/api' + +export interface UseApiResult { + data: T | null + loading: boolean + error: ApiError | null + refetch: () => void + lastUpdated: Date | null +} + +export interface UseApiOptions { + /** Auto-refresh interval in milliseconds (0 = disabled) */ + refreshInterval?: number + /** Refetches from scratch whenever this changes, as the API token does */ + key?: string +} + +// The fetcher lives in a ref, so a new closure on every render doesn't start a new request. +function useApiData( + fetcher: (signal: AbortSignal) => Promise, + { refreshInterval = 0, key = '' }: UseApiOptions = {} +): UseApiResult { + const { token } = useSettings() + const [data, setData] = useState(null) + const [loading, setLoading] = useState(true) + const [error, setError] = useState(null) + const [lastUpdated, setLastUpdated] = useState(null) + + const fetcherRef = useRef(fetcher) + const abortControllerRef = useRef(null) + const mountedRef = useRef(true) + + useEffect(() => { + fetcherRef.current = fetcher + }) + + const fetchData = useCallback(async () => { + abortControllerRef.current?.abort() + const controller = new AbortController() + abortControllerRef.current = controller + + setLoading(true) + try { + const result = await fetcherRef.current(controller.signal) + if (mountedRef.current && !controller.signal.aborted) { + setData(result) + setError(null) + setLastUpdated(new Date()) + } + } catch (err) { + if (!mountedRef.current || controller.signal.aborted) { + return + } + setError(err instanceof ApiError ? err : new ApiError(err instanceof Error ? err.message : 'Unknown error', 0)) + } finally { + if (mountedRef.current && abortControllerRef.current === controller) { + setLoading(false) + } + } + }, []) + + useEffect(() => { + mountedRef.current = true + setData(null) + setError(null) + fetchData() + return () => { + mountedRef.current = false + abortControllerRef.current?.abort() + } + }, [fetchData, key, token]) + + useEffect(() => { + if (refreshInterval > 0) { + const interval = setInterval(fetchData, refreshInterval) + return () => clearInterval(interval) + } + }, [fetchData, refreshInterval]) + + return { data, loading, error, refetch: fetchData, lastUpdated } +} + +export function useHealth(options?: UseApiOptions): UseApiResult { + return useApiData((signal) => api.getHealth({ signal }), options) +} + +export function useStatus(options?: UseApiOptions): UseApiResult { + return useApiData((signal) => api.getStatus({ signal }), options) +} + +export function useAllStats(options?: UseApiOptions): UseApiResult { + return useApiData((signal) => api.getAllStats({ signal }), options) +} + +export function useLockStats(options?: UseApiOptions): UseApiResult { + return useApiData((signal) => api.getLockStats({ signal }), options) +} + +export function useClusterStats(options?: UseApiOptions): UseApiResult { + return useApiData((signal) => api.getClusterStats({ signal }), options) +} + +export function useSnapshots(path: string, options?: UseApiOptions): UseApiResult { + return useApiData((signal) => api.listSnapshots(path || undefined, { signal }), { ...options, key: path }) +} + +export function useDashboardData() { + const refreshInterval = useRefreshInterval() + const status = useStatus({ refreshInterval }) + const stats = useAllStats({ refreshInterval }) + const health = useHealth({ refreshInterval }) + + return { + status, + stats, + health, + loading: status.loading || stats.loading || health.loading, + error: status.error || stats.error || health.error, + } +} + +export function useClusterData() { + const refreshInterval = useRefreshInterval() + const cluster = useClusterStats({ refreshInterval }) + const locks = useLockStats({ refreshInterval }) + + return { + cluster, + locks, + loading: cluster.loading || locks.loading, + error: cluster.error || locks.error, + } +} diff --git a/web/dashboard/src/index.css b/web/dashboard/src/index.css new file mode 100644 index 00000000..13f3f7ed --- /dev/null +++ b/web/dashboard/src/index.css @@ -0,0 +1,169 @@ +@tailwind base; +@tailwind components; +@tailwind utilities; + +@layer base { + :root { + font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, + Oxygen, Ubuntu, Cantarell, sans-serif; + line-height: 1.5; + font-weight: 400; + + color-scheme: dark; + + font-synthesis: none; + text-rendering: optimizeLegibility; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; + } + + body { + @apply bg-gfs-bg-primary text-gfs-text-primary; + margin: 0; + min-width: 320px; + min-height: 100vh; + } + + #root { + min-height: 100vh; + } + + a { + @apply text-gfs-accent-primary font-medium no-underline hover:text-gfs-accent-hover hover:underline; + } + + code { + @apply font-mono text-sm bg-white/10 px-1.5 py-0.5 rounded; + } +} + +@layer components { + /* Button variants */ + .btn { + @apply inline-flex items-center justify-center rounded-md px-4 py-2 text-sm font-medium transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-gfs-accent-primary focus:ring-offset-2 focus:ring-offset-gfs-bg-primary disabled:opacity-50 disabled:cursor-not-allowed; + } + + .btn-primary { + @apply btn bg-gfs-accent-primary text-white hover:bg-gfs-accent-secondary; + } + + .btn-secondary { + @apply btn bg-gfs-bg-secondary border border-gfs-border text-gfs-text-primary hover:bg-gfs-border hover:border-gfs-border-light; + } + + .btn-ghost { + @apply btn bg-transparent text-gfs-text-secondary hover:bg-gfs-bg-secondary hover:text-gfs-text-primary; + } + + .btn-danger { + @apply btn bg-gfs-status-error/10 text-gfs-status-error border border-gfs-status-error/30 hover:bg-gfs-status-error/20; + } + + /* Card component */ + .card { + @apply bg-gfs-bg-secondary rounded-lg border border-gfs-border p-6; + } + + .card-header { + @apply text-lg font-semibold text-gfs-text-primary mb-4; + } + + /* Form inputs */ + .input { + @apply w-full rounded-md border border-gfs-border bg-gfs-bg-secondary px-3 py-2 text-sm text-gfs-text-primary placeholder:text-gfs-text-muted focus:border-gfs-accent-primary focus:outline-none focus:ring-1 focus:ring-gfs-accent-primary; + } + + .label { + @apply block text-sm font-medium text-gfs-text-secondary mb-1.5; + } + + /* Status badges */ + .badge { + @apply inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium; + } + + .badge-ok { + @apply badge bg-gfs-status-ok/10 text-gfs-status-ok; + } + + .badge-warning { + @apply badge bg-gfs-status-warning/10 text-gfs-status-warning; + } + + .badge-error { + @apply badge bg-gfs-status-error/10 text-gfs-status-error; + } + + .badge-info { + @apply badge bg-gfs-status-info/10 text-gfs-status-info; + } + + /* Table styles */ + .table { + @apply w-full border-collapse; + } + + .table th { + @apply px-4 py-3 text-left text-xs font-semibold uppercase tracking-wider text-gfs-text-muted border-b border-gfs-border; + } + + .table td { + @apply px-4 py-3 text-sm text-gfs-text-primary border-b border-gfs-border; + } + + .table tbody tr:hover { + @apply bg-gfs-bg-tertiary/50; + } + + /* Stat card for metrics */ + .stat-card { + @apply card flex flex-col; + } + + .stat-label { + @apply text-sm text-gfs-text-muted; + } + + .stat-value { + @apply text-2xl font-bold text-gfs-text-primary mt-1; + } + + .stat-change { + @apply text-sm mt-2; + } + + .stat-change-up { + @apply stat-change text-gfs-status-ok; + } + + .stat-change-down { + @apply stat-change text-gfs-status-error; + } +} + +@layer utilities { + /* Custom scrollbar for dark theme */ + .scrollbar-dark { + scrollbar-width: thin; + scrollbar-color: #4a5568 #1a1a2e; + } + + .scrollbar-dark::-webkit-scrollbar { + width: 8px; + height: 8px; + } + + .scrollbar-dark::-webkit-scrollbar-track { + background: #1a1a2e; + border-radius: 4px; + } + + .scrollbar-dark::-webkit-scrollbar-thumb { + background: #4a5568; + border-radius: 4px; + } + + .scrollbar-dark::-webkit-scrollbar-thumb:hover { + background: #718096; + } +} diff --git a/web/dashboard/src/layouts/DashboardLayout.tsx b/web/dashboard/src/layouts/DashboardLayout.tsx new file mode 100644 index 00000000..905f5c48 --- /dev/null +++ b/web/dashboard/src/layouts/DashboardLayout.tsx @@ -0,0 +1,226 @@ +/** + * Main dashboard layout with sidebar navigation + */ + +import { useState } from 'react' +import { Outlet, NavLink, useLocation } from 'react-router-dom' +import { useHealth } from '@/hooks' + +// Navigation items +const navItems = [ + { path: '/', label: 'Dashboard', icon: DashboardIcon }, + { path: '/cluster', label: 'Cluster', icon: ClusterIcon }, + { path: '/snapshots', label: 'Snapshots', icon: SnapshotsIcon }, + { path: '/statistics', label: 'Statistics', icon: StatsIcon }, + { path: '/settings', label: 'Settings', icon: SettingsIcon }, +] + +export function DashboardLayout() { + const [sidebarCollapsed, setSidebarCollapsed] = useState(false) + const location = useLocation() + const { data: health, error: healthError } = useHealth({ refreshInterval: 10000 }) + + const getHealthStatus = () => { + if (healthError) return 'disconnected' + if (!health) return 'connecting' + return health.status + } + + const healthStatus = getHealthStatus() + + return ( +
+ {/* Sidebar */} + + + {/* Main Content */} +
+ {/* Header */} +
+

+ {navItems.find((item) => item.path === location.pathname)?.label || 'Dashboard'} +

+
+ {/* Health badge in header */} + +
+
+ + {/* Page Content */} +
+ +
+
+
+ ) +} + +// ============================================================ +// Icons +// ============================================================ + +function DashboardIcon({ className }: { className?: string }) { + return ( + + + + ) +} + +function ClusterIcon({ className }: { className?: string }) { + return ( + + + + ) +} + +function SnapshotsIcon({ className }: { className?: string }) { + return ( + + + + + ) +} + +function StatsIcon({ className }: { className?: string }) { + return ( + + + + ) +} + +function SettingsIcon({ className }: { className?: string }) { + return ( + + + + + ) +} + +function ChevronIcon({ collapsed }: { collapsed: boolean }) { + return ( + + + + ) +} + +// ============================================================ +// Status Components +// ============================================================ + +function StatusIndicator({ status }: { status: string }) { + const colors: Record = { + ok: 'bg-gfs-status-ok', + degraded: 'bg-gfs-status-warning', + unhealthy: 'bg-gfs-status-error', + disconnected: 'bg-gfs-status-error', + connecting: 'bg-gfs-text-muted animate-pulse', + } + + return ( + + ) +} + +function HealthBadge({ status }: { status: string }) { + const styles: Record = { + ok: 'badge-ok', + degraded: 'badge-warning', + unhealthy: 'badge-error', + disconnected: 'badge-error', + connecting: 'badge bg-gfs-text-muted/10 text-gfs-text-muted', + } + + const labels: Record = { + ok: 'Connected', + degraded: 'Degraded', + unhealthy: 'Unhealthy', + disconnected: 'Disconnected', + connecting: 'Connecting...', + } + + return ( + + ● {labels[status] || 'Unknown'} + + ) +} + +export default DashboardLayout diff --git a/web/dashboard/src/layouts/index.ts b/web/dashboard/src/layouts/index.ts new file mode 100644 index 00000000..97eaba2f --- /dev/null +++ b/web/dashboard/src/layouts/index.ts @@ -0,0 +1,5 @@ +/** + * Layout module exports + */ + +export { DashboardLayout } from './DashboardLayout' diff --git a/web/dashboard/src/main.tsx b/web/dashboard/src/main.tsx new file mode 100644 index 00000000..5bb7187e --- /dev/null +++ b/web/dashboard/src/main.tsx @@ -0,0 +1,15 @@ +import { StrictMode } from 'react' +import { createRoot } from 'react-dom/client' +import './index.css' +import App from './App.tsx' +import { apiClient } from '@/api' +import { loadToken } from '@/stores' + +// Set before the first render: child effects fetch before the provider's effects run. +apiClient.setAuthToken(loadToken()) + +createRoot(document.getElementById('root')!).render( + + + , +) diff --git a/web/dashboard/src/pages/ClusterPage.tsx b/web/dashboard/src/pages/ClusterPage.tsx new file mode 100644 index 00000000..2c20b465 --- /dev/null +++ b/web/dashboard/src/pages/ClusterPage.tsx @@ -0,0 +1,219 @@ +import { useState } from 'react' +import { useClusterData } from '@/hooks' +import { NodeDetailPanel, TokenHint, type ClusterNode } from '@/components' +import type { ClusterInfoResponse, LockStatsResponse } from '@/api' +import { formatRelativeTime, formatNumber, formatPercent, nodeStateColor } from '@/utils' + +function NodeStateBadge({ state }: { state: string }) { + return ( + + + {state} + + ) +} + +function clusterNodes(cluster: ClusterInfoResponse): ClusterNode[] { + const self: ClusterNode = { + nodeId: cluster.node_id, + host: cluster.node_address ?? '', + state: cluster.state, + lastHeartbeat: cluster.last_heartbeat_at, + joinedAt: cluster.joined_at, + isSelf: true, + } + const peers = (cluster.peers ?? []).map((peer) => ({ + nodeId: peer.node_id, + host: peer.address, + state: peer.state, + lastHeartbeat: peer.last_seen, + isSelf: false, + })) + return [self, ...peers] +} + +function NodeCard({ node, onClick }: { node: ClusterNode; onClick: () => void }) { + return ( +
{ + if (e.key === 'Enter' || e.key === ' ') { + e.preventDefault() + onClick() + } + }} + > +
+
+
+

{node.host || node.nodeId}

+ {node.isSelf && ( + + This Node + + )} +
+

{node.nodeId}

+
+ +
+
+
+ Last Heartbeat +

+ {node.lastHeartbeat ? formatRelativeTime(new Date(node.lastHeartbeat)) : 'Unknown'} +

+
+ {node.joinedAt && ( +
+ Mounted +

{formatRelativeTime(new Date(node.joinedAt))}

+
+ )} +
+
+ ) +} + +function ClusterOverview({ cluster }: { cluster: ClusterInfoResponse }) { + const { cluster_size: size, healthy_nodes: healthy } = cluster + const healthColor = + healthy >= size ? 'text-gfs-status-ok' : healthy * 2 >= size ? 'text-gfs-status-warning' : 'text-gfs-status-error' + + return ( +
+

Cluster Overview

+
+
+ Registered Nodes +

{formatNumber(size)}

+
+
+ Active +

{formatNumber(healthy)}

+
+
+ This Node +

+ +

+
+
+

+ Every node is a peer: GoClusterFS has no leader. Nodes coordinate through locks and heartbeats on the shared device. +

+
+ ) +} + +function LockCounters({ locks }: { locks: LockStatsResponse }) { + const rows: Array<[string, string]> = [ + ['Locks held by this node', formatNumber(locks.active_locks ?? 0)], + ['Waiting on contended locks', formatNumber(locks.pending_locks ?? 0)], + ['Lock hint cache hits', formatNumber(locks.hint_cache_hits)], + ['Lock hint cache misses', formatNumber(locks.hint_cache_misses)], + ['Lock hint hit rate', formatPercent(locks.hint_cache_hit_rate * 100)], + ] + return ( +
+

Distributed Locks

+
+ {rows.map(([label, value]) => ( +
+
{label}
+
{value}
+
+ ))} +
+
+ ) +} + +function ClusterSkeleton() { + return ( +
+
+
+
+ {[...Array(3)].map((_, i) => ( +
+ ))} +
+
+ ) +} + +function ClusterError({ error, onRetry }: { error: Error; onRetry: () => void }) { + return ( +
+
+
Failed to load cluster data
+
{error.message}
+ + +
+
+ ) +} + +export function ClusterPage() { + const { cluster, locks, loading, error } = useClusterData() + const [selectedNodeId, setSelectedNodeId] = useState(null) + + if (loading && !cluster.data) { + return + } + if (!cluster.data) { + return ( + { + cluster.refetch() + locks.refetch() + }} + /> + ) + } + + const nodes = clusterNodes(cluster.data) + const selectedNode = nodes.find((node) => node.nodeId === selectedNodeId) ?? null + + return ( +
+
+
+

Cluster

+

Nodes in the shared device's registry

+
+ + {cluster.lastUpdated && `Last updated: ${formatRelativeTime(cluster.lastUpdated)}`} + +
+ + + +
+

Nodes ({nodes.length})

+
+ {nodes.map((node) => ( + setSelectedNodeId(node.nodeId)} /> + ))} +
+
+ + {locks.data && } + + setSelectedNodeId(null)} /> +
+ ) +} + +export default ClusterPage diff --git a/web/dashboard/src/pages/DashboardPage.tsx b/web/dashboard/src/pages/DashboardPage.tsx new file mode 100644 index 00000000..dcb8950d --- /dev/null +++ b/web/dashboard/src/pages/DashboardPage.tsx @@ -0,0 +1,362 @@ +import { useDashboardData } from '@/hooks' +import { + CapacityGauge, + BlockGauge, + HitRateGauge as CircularHitRateGauge, + MiniGauge, + JournalGauge, + TokenHint, +} from '@/components' +import { + formatBytes, + formatNumber, + formatPercent, + formatDuration, + formatRelativeTime, +} from '@/utils/format' + +/** + * Status indicator component + */ +function StatusBadge({ status }: { status: string }) { + const colorMap: Record = { + healthy: 'bg-gfs-status-ok', + degraded: 'bg-gfs-status-warning', + unhealthy: 'bg-gfs-status-error', + ok: 'bg-gfs-status-ok', + mounted: 'bg-gfs-status-ok', + } + const color = colorMap[status.toLowerCase()] || 'bg-gfs-status-info' + + return ( + + + {status} + + ) +} + +/** + * Stat card component for displaying a single metric + */ +function StatCard({ + label, + value, + subValue, + trend, +}: { + label: string + value: string | number + subValue?: string + trend?: 'up' | 'down' | 'neutral' +}) { + const trendColors = { + up: 'text-gfs-status-ok', + down: 'text-gfs-status-error', + neutral: 'text-gfs-text-muted', + } + + return ( +
+
{label}
+
+ {value} + {subValue && ( + + {subValue} + + )} +
+
+ ) +} + +/** + * Loading skeleton + */ +function DashboardSkeleton() { + return ( +
+
+
+ {[...Array(4)].map((_, i) => ( +
+ ))} +
+
+
+
+
+
+ ) +} + +/** + * Error display + */ +function DashboardError({ error, onRetry }: { error: Error; onRetry: () => void }) { + return ( +
+
+
+ Failed to load dashboard data +
+
{error.message}
+ + +
+
+ ) +} + +export function DashboardPage() { + const { status, stats, health, loading, error } = useDashboardData() + + // Combined refetch function + const refresh = () => { + status.refetch() + stats.refetch() + health.refetch() + } + + if (loading && !status.data) { + return + } + + if (error && !status.data) { + return + } + + // Extract data from responses with defaults + const statusData = status.data + const statsData = stats.data + const healthData = health.data + + // Capacity info from status + const capacity = statusData?.capacity ?? { + total_bytes: 0, + used_bytes: 0, + free_bytes: 0, + used_percent: 0, + total_blocks: 0, + used_blocks: 0, + free_blocks: 0, + block_size_bytes: 1048576, + } + + // Cache stats from all stats + const cacheStats = statsData?.cache + const inodeCache = cacheStats?.inode_cache ?? { size: 0, hits: 0, misses: 0, hit_rate: 0 } + const extentCache = cacheStats?.extent_cache ?? { size: 0, hits: 0, misses: 0, hit_rate: 0 } + const lockHintCache = cacheStats?.lock_hint_cache ?? { size: 0, hits: 0, misses: 0, hit_rate: 0 } + + // Journal stats + const journalStats = statsData?.journal + + const trimStats = statsData?.trim + + // Calculate totals for cache + const totalCacheHits = inodeCache.hits + extentCache.hits + lockHintCache.hits + const totalCacheMisses = inodeCache.misses + extentCache.misses + lockHintCache.misses + + return ( +
+ {/* Header */} +
+
+

Dashboard

+

+ {statusData?.mount_path + ? `Mounted at ${statusData.mount_path}` + : 'Filesystem not mounted'} +

+
+
+ + {stats.lastUpdated && ( + + Last updated: {formatRelativeTime(stats.lastUpdated)} + + )} +
+
+ + {/* Key metrics */} +
+ + + + +
+ + {/* Capacity and Cache */} +
+ {/* Storage capacity */} +
+

Storage Capacity

+
+
+ + +
+
+
+
+ {formatNumber(capacity.total_blocks)} +
+
Total Blocks
+
+
+
+ {formatNumber(capacity.used_blocks)} +
+
Used
+
+
+
+ {formatNumber(capacity.free_blocks)} +
+
Free
+
+
+
+
+ + {/* Cache performance */} +
+

Cache Performance

+
+ +
+
+ +
Inode Cache
+
+
+ +
Extent Cache
+
+
+ +
Lock Hints
+
+
+
+
+
+ + {/* TRIM and Journal */} +
+
+

TRIM

+
+
+ Status + + {trimStats?.trim_enabled ? 'Enabled' : 'Off or unsupported by the device'} + +
+
+ Bytes discarded + {formatBytes(trimStats?.trim_bytes ?? 0)} +
+
+ Blocks waiting + {formatNumber(trimStats?.pending_trim_blocks ?? 0)} +
+
+ Errors + 0 ? 'text-gfs-status-error' : 'text-gfs-text-primary'}`}> + {formatNumber(trimStats?.trim_errors ?? 0)} + +
+
+
+ + {/* Journal Status */} +
+

Journal Status

+
+ +
+
+ Bytes Written + + {formatBytes(journalStats?.bytes_written ?? 0)} + +
+
+ Available Space + + {formatBytes(journalStats?.available_space ?? 0)} + +
+
+
+
+
+
+ ) +} + +export default DashboardPage diff --git a/web/dashboard/src/pages/SettingsPage.tsx b/web/dashboard/src/pages/SettingsPage.tsx new file mode 100644 index 00000000..385dd7c0 --- /dev/null +++ b/web/dashboard/src/pages/SettingsPage.tsx @@ -0,0 +1,404 @@ +import { useState, useEffect } from 'react' +import { useSettings, REFRESH_INTERVAL_OPTIONS } from '@/stores' +import { useStatus } from '@/hooks' +import { api, type AdminOperation } from '@/api' + +/** + * Setting section wrapper + */ +function SettingSection({ + title, + description, + children, +}: { + title: string + description?: string + children: React.ReactNode +}) { + return ( +
+

{title}

+ {description && ( +

{description}

+ )} +
{children}
+
+ ) +} + +/** + * Toggle switch component + */ +function Toggle({ + enabled, + onChange, + label, + description, +}: { + enabled: boolean + onChange: (enabled: boolean) => void + label: string + description?: string +}) { + return ( +
+
+ {label} + {description && ( +

{description}

+ )} +
+ +
+ ) +} + +/** + * Select dropdown component + */ +function Select({ + value, + onChange, + options, + label, + description, +}: { + value: T + onChange: (value: T) => void + options: readonly { value: T; label: string }[] + label: string + description?: string +}) { + return ( +
+ + {description && ( +

{description}

+ )} + +
+ ) +} + +function TokenForm() { + const { token, setToken } = useSettings() + const [draft, setDraft] = useState('') + + return ( +
{ + e.preventDefault() + setToken(draft) + setDraft('') + }} + > +
+ +

+ {token + ? 'A token is set for this tab.' + : 'No token set. Reads work on a loopback API without one; snapshots and clones always need it.'} +

+ setDraft(e.target.value)} + placeholder={token ? 'Enter a new token to replace it' : 'Paste the token from -api-token-file'} + className="input w-full max-w-md" + /> +
+
+ + {token && ( + + )} +
+
+ ) +} + +const ADMIN_ACTIONS: ReadonlyArray<{ operation: AdminOperation; label: string; description: string }> = [ + { operation: 'flush-journal', label: 'Flush journal', description: 'Checkpoint the journal now' }, + { operation: 'force-trim', label: 'Send queued TRIM', description: 'Discard the freed blocks waiting in the TRIM queue' }, + { operation: 'clear-cache', label: 'Clear caches', description: 'Drop the inode, extent and negative caches' }, +] + +function AdminActions() { + const [busy, setBusy] = useState(null) + const [result, setResult] = useState<{ ok: boolean; text: string } | null>(null) + + const run = async (operation: AdminOperation) => { + setBusy(operation) + setResult(null) + try { + const response = await api.admin(operation) + setResult({ ok: true, text: response.message || `${operation} done` }) + } catch (err) { + setResult({ ok: false, text: err instanceof Error ? err.message : 'Request failed' }) + } finally { + setBusy(null) + } + } + + return ( +
+ {ADMIN_ACTIONS.map(({ operation, label, description }) => ( +
+
+ {label} +

{description}

+
+ +
+ ))} + {result && ( +

{result.text}

+ )} +
+ ) +} + +/** + * API status indicator + */ +function ApiStatus() { + const [status, setStatus] = useState<'checking' | 'healthy' | 'error'>('checking') + const [latency, setLatency] = useState(null) + const [errorMessage, setErrorMessage] = useState(null) + + useEffect(() => { + let mounted = true + + async function checkHealth() { + const start = performance.now() + try { + await api.getHealth() + const elapsed = Math.round(performance.now() - start) + if (mounted) { + setStatus('healthy') + setLatency(elapsed) + setErrorMessage(null) + } + } catch (error) { + if (mounted) { + setStatus('error') + setLatency(null) + setErrorMessage(error instanceof Error ? error.message : 'Connection failed') + } + } + } + + checkHealth() + + // Re-check every 30 seconds + const interval = setInterval(checkHealth, 30000) + + return () => { + mounted = false + clearInterval(interval) + } + }, []) + + const statusColors = { + checking: 'bg-gfs-text-muted', + healthy: 'bg-gfs-status-ok', + error: 'bg-gfs-status-error', + } + + const statusLabels = { + checking: 'Checking...', + healthy: 'Connected', + error: 'Disconnected', + } + + return ( +
+ + {statusLabels[status]} + {latency !== null && ( + ({latency}ms) + )} + {errorMessage && ( + {errorMessage} + )} +
+ ) +} + +/** + * Info row for the About section + */ +function InfoRow({ label, value }: { label: string; value: React.ReactNode }) { + return ( +
+
{label}
+
{value}
+
+ ) +} + +export function SettingsPage() { + const { settings, updateSettings, resetSettings } = useSettings() + const status = useStatus() + const [showResetConfirm, setShowResetConfirm] = useState(false) + + const handleReset = () => { + resetSettings() + setShowResetConfirm(false) + } + + return ( +
+ {/* Header */} +
+

Settings

+

+ Dashboard preferences and API access +

+
+ + {/* Data Fetching */} + + updateSettings({ autoRefresh: enabled })} + label="Auto-refresh" + description="Automatically refresh data at the selected interval" + /> + + setDraft(e.target.value)} + placeholder="/data/disk.img" + className="input flex-1 min-w-[16rem] font-mono" + /> + + {path && ( + + )} +
+ {error &&

{error}

} + + ) +} + +type Dialog = + | { kind: 'create' } + | { kind: 'clone-file' } + | { kind: 'clone-snapshot'; snapshot: SnapshotInfo } + | { kind: 'delete'; snapshot: SnapshotInfo } + +export function SnapshotsPage() { + const refreshInterval = useRefreshInterval() + const [path, setPath] = useState('') + const snapshots = useSnapshots(path, { refreshInterval }) + const [dialog, setDialog] = useState(null) + const [notice, setNotice] = useState(null) + + const [sortField, setSortField] = useState('created_at') + const [sortDirection, setSortDirection] = useState('desc') + const [search, setSearch] = useState('') + + const handleSort = (field: SortField) => { + if (field === sortField) { + setSortDirection(sortDirection === 'asc' ? 'desc' : 'asc') + } else { + setSortField(field) + setSortDirection('desc') + } + } + + const rows = useMemo(() => { + const list = snapshots.data?.snapshots ?? [] + const query = search.toLowerCase() + const filtered = query ? list.filter((s) => s.name.toLowerCase().includes(query)) : [...list] + filtered.sort((a, b) => { + let comparison = 0 + switch (sortField) { + case 'name': + comparison = a.name.localeCompare(b.name) + break + case 'created_at': + comparison = (a.created_at ?? '').localeCompare(b.created_at ?? '') + break + case 'size_bytes': + comparison = a.size_bytes - b.size_bytes + break + case 'state': + comparison = a.state.localeCompare(b.state) + break + } + return sortDirection === 'asc' ? comparison : -comparison + }) + return filtered + }, [snapshots.data, search, sortField, sortDirection]) + + const closeDialog = () => setDialog(null) + const list = snapshots.data?.snapshots ?? [] + const totalSize = list.reduce((sum, s) => sum + s.size_bytes, 0) + + return ( +
+
+
+

Snapshots

+

Point-in-time copies of single files

+
+ {path && ( +
+ + +
+ )} +
+ + { + setPath(next) + setNotice(null) + }} + /> + + {notice && ( +
+ {notice} + +
+ )} + + {snapshots.error && !snapshots.data ? ( + + ) : !snapshots.data ? ( +
+ ) : list.length === 0 ? ( +
+

No snapshots

+

+ {path + ? `${path} has no snapshots yet. Use "Create snapshot" to take one.` + : 'No file in this filesystem has a snapshot. Enter a file path above to take one.'} +

+
+ ) : ( + <> +
+
+
Snapshots
+
{formatNumber(snapshots.data.total)}
+
+
+
File size at snapshot
+
{formatBytes(totalSize)}
+
+
+
Active
+
{list.filter((s) => s.state === 'active').length}
+
+
+
Being deleted
+
+ {list.filter((s) => s.state === 'deleting').length} +
+
+
+ +
+ setSearch(e.target.value)} + className="px-3 py-1.5 bg-gfs-bg-tertiary border border-gfs-border rounded text-sm text-gfs-text-primary placeholder-gfs-text-muted focus:outline-none focus:ring-2 focus:ring-gfs-accent-primary w-64" + /> + + + Showing {rows.length} of {list.length} + +
+ +
+
+ + + + + + + + + {path ? : } + + + + {rows.map((snapshot) => ( + + + + + + + {path ? ( + + ) : ( + + )} + + ))} + {rows.length === 0 && ( + + + + )} + +
{snapshot.name} + + {formatBytes(snapshot.size_bytes)}{formatNumber(snapshot.blocks)} + {snapshot.created_at ? formatRelativeTime(new Date(snapshot.created_at)) : '-'} + +
+ + +
+
{snapshot.inode}
+ No snapshots match the filter +
+
+
+ + )} + + {dialog?.kind === 'create' && ( + + Snapshot of {path}. Names are unique across the filesystem. + + } + label="Snapshot name" + placeholder="pre-upgrade" + submitLabel="Create snapshot" + busyLabel="Creating snapshot..." + successLabel="Snapshot created" + validate={snapshotNameError} + onSubmit={async (name) => { + await api.createSnapshot({ path, name }) + }} + /> + )} + + {dialog?.kind === 'clone-file' && ( + + Copy-on-write clone of {path} as it is now. Clones go in the root directory. + + } + label="New file" + placeholder="/disk-copy.img" + submitLabel="Clone" + busyLabel="Cloning..." + successLabel="Clone created" + validate={destError} + onSubmit={async (dest) => { + await api.cloneFile({ path, dest }) + setNotice(`Cloned ${path} to ${dest}.`) + }} + /> + )} + + {dialog?.kind === 'clone-snapshot' && ( + + Creates a new file with the contents {path} had when the snapshot was taken. This is how you + read or restore a snapshot. + + } + label="New file" + placeholder={`/${dialog.snapshot.name}`} + submitLabel="Clone" + busyLabel="Cloning..." + successLabel="Clone created" + validate={destError} + onSubmit={async (dest) => { + await api.cloneSnapshot(dialog.snapshot.name, { path, dest }) + setNotice(`Cloned snapshot ${dialog.snapshot.name} to ${dest}.`) + }} + /> + )} + + {dialog?.kind === 'delete' && ( + { + await api.deleteSnapshot(dialog.snapshot.name, path) + snapshots.refetch() + }} + title="Delete snapshot" + itemName={dialog.snapshot.name} + itemType="snapshot" + warning="The snapshot and the blocks only it holds are freed. This cannot be undone." + successMessage="Delete started. The snapshot shows as deleting until its blocks are freed." + requireTypeToConfirm + /> + )} +
+ ) +} + +export default SnapshotsPage diff --git a/web/dashboard/src/pages/StatisticsPage.tsx b/web/dashboard/src/pages/StatisticsPage.tsx new file mode 100644 index 00000000..eafebd40 --- /dev/null +++ b/web/dashboard/src/pages/StatisticsPage.tsx @@ -0,0 +1,226 @@ +import { useAllStats, useStatus } from '@/hooks' +import { useRefreshInterval } from '@/stores' +import { CacheStatsPanel, TokenHint } from '@/components' +import { formatBytes, formatNumber, formatPercent } from '@/utils/format' + +/** + * Loading skeleton for statistics + */ +function StatsSkeleton() { + return ( +
+
+
+
+
+
+
+
+
+ ) +} + +/** + * Error state + */ +function StatsError({ error, onRetry }: { error: Error; onRetry: () => void }) { + return ( +
+
+
+ Failed to load statistics +
+
{error.message}
+ + +
+
+ ) +} + +export function StatisticsPage() { + const refreshInterval = useRefreshInterval() + const { data: stats, loading, error, refetch } = useAllStats({ refreshInterval }) + const { data: status } = useStatus({ refreshInterval }) + + if (loading && !stats) { + return + } + + if (error && !stats) { + return + } + + const cacheStats = stats?.cache + const journalStats = stats?.journal + const trimStats = stats?.trim + const lockStats = stats?.lock + const capacity = status?.capacity + + return ( +
+ {/* Header */} +
+

Statistics

+

+ Cache, journal, TRIM, lock and storage statistics +

+
+ + {/* Two column layout */} +
+ {/* Left column - Cache Charts */} +
+ +
+ + {/* Right column - Journal and Storage Stats */} +
+ {/* Journal Statistics */} +
+

Journal Statistics

+
+ + + + 0} + /> + + + +
+
+ + {/* Trim Statistics */} +
+

Trim Statistics

+
+ + + + + {trimStats?.pending_trim_blocks !== undefined && ( + 0} + /> + )} + {trimStats?.trim_errors !== undefined && trimStats.trim_errors > 0 && ( + + )} +
+
+ +
+

Lock Statistics

+
+ + 0} + /> + + + +
+
+ +
+

Storage Allocation

+
+ + + + 90} + /> + + +
+
+
+
+
+ ) +} + +/** + * Helper component for stat rows + */ +function StatRow({ + label, + value, + valueClass, + highlight, +}: { + label: string + value: string | number + valueClass?: string + highlight?: boolean +}) { + const baseClass = 'font-medium' + const colorClass = highlight + ? 'text-gfs-status-warning' + : valueClass || 'text-gfs-text-primary' + + return ( +
+ {label} + {value} +
+ ) +} + +export default StatisticsPage diff --git a/web/dashboard/src/pages/index.ts b/web/dashboard/src/pages/index.ts new file mode 100644 index 00000000..8a43c201 --- /dev/null +++ b/web/dashboard/src/pages/index.ts @@ -0,0 +1,9 @@ +/** + * Pages module exports + */ + +export { DashboardPage } from './DashboardPage' +export { ClusterPage } from './ClusterPage' +export { SnapshotsPage } from './SnapshotsPage' +export { StatisticsPage } from './StatisticsPage' +export { SettingsPage } from './SettingsPage' diff --git a/web/dashboard/src/stores/index.ts b/web/dashboard/src/stores/index.ts new file mode 100644 index 00000000..5dfaa65b --- /dev/null +++ b/web/dashboard/src/stores/index.ts @@ -0,0 +1,12 @@ +export { + REFRESH_INTERVAL_OPTIONS, + DEFAULT_SETTINGS, + STORAGE_KEY, + TOKEN_STORAGE_KEY, + type Settings, + type SettingsContextType, +} from './settingsTypes' +export { SettingsContext } from './settingsContext' +export { SettingsProvider } from './settingsStore' +export { useSettings, useRefreshInterval } from './settingsHooks' +export { loadToken } from './token' diff --git a/web/dashboard/src/stores/settingsContext.ts b/web/dashboard/src/stores/settingsContext.ts new file mode 100644 index 00000000..f9a0bd32 --- /dev/null +++ b/web/dashboard/src/stores/settingsContext.ts @@ -0,0 +1,9 @@ +/** + * Settings context + * Separated for import by both provider and hooks + */ + +import { createContext } from 'react' +import type { SettingsContextType } from './settingsTypes' + +export const SettingsContext = createContext(null) diff --git a/web/dashboard/src/stores/settingsHooks.ts b/web/dashboard/src/stores/settingsHooks.ts new file mode 100644 index 00000000..b9759f9f --- /dev/null +++ b/web/dashboard/src/stores/settingsHooks.ts @@ -0,0 +1,29 @@ +/** + * Settings hooks + * Separated from provider component for React Fast Refresh compatibility + */ + +import { useContext } from 'react' +import { SettingsContext } from './settingsContext' +import type { SettingsContextType } from './settingsTypes' + +/** + * Hook to use settings + * Must be used within a SettingsProvider + */ +export function useSettings(): SettingsContextType { + const context = useContext(SettingsContext) + if (!context) { + throw new Error('useSettings must be used within a SettingsProvider') + } + return context +} + +/** + * Hook to get just the refresh interval (for data hooks) + * Returns 0 if auto-refresh is disabled + */ +export function useRefreshInterval(): number { + const { settings } = useSettings() + return settings.autoRefresh ? settings.refreshInterval : 0 +} diff --git a/web/dashboard/src/stores/settingsStore.tsx b/web/dashboard/src/stores/settingsStore.tsx new file mode 100644 index 00000000..2d810bab --- /dev/null +++ b/web/dashboard/src/stores/settingsStore.tsx @@ -0,0 +1,61 @@ +import { useState, useCallback, useEffect, type ReactNode } from 'react' +import { apiClient } from '@/api' +import { SettingsContext } from './settingsContext' +import { type Settings, DEFAULT_SETTINGS, STORAGE_KEY } from './settingsTypes' +import { loadToken, saveToken } from './token' + +function loadSettings(): Settings { + try { + const stored = localStorage.getItem(STORAGE_KEY) + if (stored) { + const parsed = JSON.parse(stored) as Partial + return { + refreshInterval: typeof parsed.refreshInterval === 'number' && parsed.refreshInterval > 0 + ? parsed.refreshInterval + : DEFAULT_SETTINGS.refreshInterval, + autoRefresh: typeof parsed.autoRefresh === 'boolean' ? parsed.autoRefresh : DEFAULT_SETTINGS.autoRefresh, + } + } + } catch { + console.warn('Failed to load settings from localStorage') + } + return DEFAULT_SETTINGS +} + +function saveSettings(settings: Settings): void { + try { + localStorage.setItem(STORAGE_KEY, JSON.stringify(settings)) + } catch { + console.warn('Failed to save settings to localStorage') + } +} + +export function SettingsProvider({ children }: { children: ReactNode }) { + const [settings, setSettings] = useState(loadSettings) + const [token, setTokenState] = useState(loadToken) + + useEffect(() => { + saveSettings(settings) + }, [settings]) + + const updateSettings = useCallback((updates: Partial) => { + setSettings((prev) => ({ ...prev, ...updates })) + }, []) + + const resetSettings = useCallback(() => { + setSettings(DEFAULT_SETTINGS) + }, []) + + const setToken = useCallback((next: string) => { + const trimmed = next.trim() + saveToken(trimmed) + apiClient.setAuthToken(trimmed) + setTokenState(trimmed) + }, []) + + return ( + + {children} + + ) +} diff --git a/web/dashboard/src/stores/settingsTypes.ts b/web/dashboard/src/stores/settingsTypes.ts new file mode 100644 index 00000000..5daa25fb --- /dev/null +++ b/web/dashboard/src/stores/settingsTypes.ts @@ -0,0 +1,32 @@ +// Kept apart from the provider component for React Fast Refresh. + +export const REFRESH_INTERVAL_OPTIONS = [ + { value: 5000, label: '5 seconds' }, + { value: 10000, label: '10 seconds' }, + { value: 30000, label: '30 seconds' }, + { value: 60000, label: '1 minute' }, + { value: 300000, label: '5 minutes' }, +] as const + +export interface Settings { + refreshInterval: number + autoRefresh: boolean +} + +export const DEFAULT_SETTINGS: Settings = { + refreshInterval: 10000, + autoRefresh: true, +} + +export const STORAGE_KEY = 'goclusterfs-dashboard-settings' + +// The token unlocks writes, so it lives in sessionStorage and goes away with the tab. +export const TOKEN_STORAGE_KEY = 'goclusterfs-api-token' + +export interface SettingsContextType { + settings: Settings + updateSettings: (updates: Partial) => void + resetSettings: () => void + token: string + setToken: (token: string) => void +} diff --git a/web/dashboard/src/stores/token.ts b/web/dashboard/src/stores/token.ts new file mode 100644 index 00000000..9cee9734 --- /dev/null +++ b/web/dashboard/src/stores/token.ts @@ -0,0 +1,21 @@ +import { TOKEN_STORAGE_KEY } from './settingsTypes' + +export function loadToken(): string { + try { + return sessionStorage.getItem(TOKEN_STORAGE_KEY) ?? '' + } catch { + return '' + } +} + +export function saveToken(token: string): void { + try { + if (token) { + sessionStorage.setItem(TOKEN_STORAGE_KEY, token) + } else { + sessionStorage.removeItem(TOKEN_STORAGE_KEY) + } + } catch { + console.warn('Failed to save the API token to sessionStorage') + } +} diff --git a/web/dashboard/src/utils/format.ts b/web/dashboard/src/utils/format.ts new file mode 100644 index 00000000..610440b0 --- /dev/null +++ b/web/dashboard/src/utils/format.ts @@ -0,0 +1,81 @@ +/** + * Formatting utilities for displaying data + */ + +/** + * Format bytes to human readable string + */ +export function formatBytes(bytes: number, decimals = 2): string { + if (bytes === 0) return '0 B' + + const k = 1024 + const sizes = ['B', 'KB', 'MB', 'GB', 'TB', 'PB'] + const i = Math.floor(Math.log(bytes) / Math.log(k)) + + return `${parseFloat((bytes / Math.pow(k, i)).toFixed(decimals))} ${sizes[i]}` +} + +/** + * Format number with thousand separators + */ +export function formatNumber(num: number): string { + return num.toLocaleString() +} + +/** + * Format percentage + */ +export function formatPercent(value: number, decimals = 1): string { + return `${value.toFixed(decimals)}%` +} + +/** + * Format duration from seconds to human readable + */ +export function formatDuration(seconds: number): string { + if (seconds < 60) return `${seconds}s` + if (seconds < 3600) return `${Math.floor(seconds / 60)}m ${seconds % 60}s` + if (seconds < 86400) { + const hours = Math.floor(seconds / 3600) + const mins = Math.floor((seconds % 3600) / 60) + return `${hours}h ${mins}m` + } + const days = Math.floor(seconds / 86400) + const hours = Math.floor((seconds % 86400) / 3600) + return `${days}d ${hours}h` +} + +/** + * Format latency in microseconds to readable string + */ +export function formatLatency(us: number): string { + if (us < 1000) return `${us.toFixed(0)} µs` + if (us < 1000000) return `${(us / 1000).toFixed(2)} ms` + return `${(us / 1000000).toFixed(2)} s` +} + +/** + * Format timestamp to relative time (e.g., "2 minutes ago") + */ +export function formatRelativeTime(date: Date | null): string { + if (!date) return 'Never' + + const now = new Date() + const diffMs = now.getTime() - date.getTime() + const diffSec = Math.floor(diffMs / 1000) + + if (diffSec < 5) return 'Just now' + if (diffSec < 60) return `${diffSec}s ago` + if (diffSec < 3600) return `${Math.floor(diffSec / 60)}m ago` + if (diffSec < 86400) return `${Math.floor(diffSec / 3600)}h ago` + return `${Math.floor(diffSec / 86400)}d ago` +} + +/** + * Calculate hit rate from hits and misses + */ +export function calculateHitRate(hits: number, misses: number): number { + const total = hits + misses + if (total === 0) return 0 + return (hits / total) * 100 +} diff --git a/web/dashboard/src/utils/index.ts b/web/dashboard/src/utils/index.ts new file mode 100644 index 00000000..f4bec0b9 --- /dev/null +++ b/web/dashboard/src/utils/index.ts @@ -0,0 +1,2 @@ +export * from './format' +export * from './nodeState' diff --git a/web/dashboard/src/utils/nodeState.ts b/web/dashboard/src/utils/nodeState.ts new file mode 100644 index 00000000..f322c1a6 --- /dev/null +++ b/web/dashboard/src/utils/nodeState.ts @@ -0,0 +1,11 @@ +// Registry states; "stale" means the heartbeat lapsed but no peer has declared the node dead yet. +const NODE_STATE_COLORS: Record = { + active: 'bg-gfs-status-ok', + leaving: 'bg-gfs-status-warning', + stale: 'bg-gfs-status-warning', + dead: 'bg-gfs-status-error', +} + +export function nodeStateColor(state: string): string { + return NODE_STATE_COLORS[state.toLowerCase()] ?? 'bg-gfs-text-muted' +} diff --git a/web/dashboard/tailwind.config.js b/web/dashboard/tailwind.config.js new file mode 100644 index 00000000..ee405da5 --- /dev/null +++ b/web/dashboard/tailwind.config.js @@ -0,0 +1,69 @@ +import forms from '@tailwindcss/forms' + +/** @type {import('tailwindcss').Config} */ +export default { + content: [ + './index.html', + './src/**/*.{js,ts,jsx,tsx}', + ], + darkMode: 'class', + theme: { + extend: { + colors: { + // GoClusterFS theme colors + gfs: { + bg: { + primary: '#0f0f23', + secondary: '#1a1a2e', + tertiary: '#16213e', + }, + accent: { + primary: '#63b3ed', + secondary: '#4299e1', + hover: '#90cdf4', + }, + border: { + DEFAULT: '#2d3748', + light: '#4a5568', + }, + text: { + primary: '#e2e8f0', + secondary: '#a0aec0', + muted: '#718096', + }, + status: { + ok: '#48bb78', + warning: '#ed8936', + error: '#f56565', + info: '#4299e1', + }, + }, + }, + fontFamily: { + sans: ['Inter', '-apple-system', 'BlinkMacSystemFont', 'Segoe UI', 'Roboto', 'sans-serif'], + mono: ['SF Mono', 'Monaco', 'Cascadia Code', 'Fira Code', 'monospace'], + }, + spacing: { + '18': '4.5rem', + '88': '22rem', + }, + animation: { + 'pulse-slow': 'pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite', + 'spin-slow': 'spin 3s linear infinite', + 'slide-in-right': 'slideInRight 0.3s ease-out forwards', + 'fade-in': 'fadeIn 0.2s ease-out forwards', + }, + keyframes: { + slideInRight: { + '0%': { transform: 'translateX(100%)' }, + '100%': { transform: 'translateX(0)' }, + }, + fadeIn: { + '0%': { opacity: '0' }, + '100%': { opacity: '1' }, + }, + }, + }, + }, + plugins: [forms], +} diff --git a/web/dashboard/tsconfig.app.json b/web/dashboard/tsconfig.app.json new file mode 100644 index 00000000..2131bf54 --- /dev/null +++ b/web/dashboard/tsconfig.app.json @@ -0,0 +1,34 @@ +{ + "compilerOptions": { + "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo", + "target": "ES2022", + "useDefineForClassFields": true, + "lib": ["ES2022", "DOM", "DOM.Iterable"], + "module": "ESNext", + "types": ["vite/client", "node"], + "skipLibCheck": true, + + /* Bundler mode */ + "moduleResolution": "bundler", + "allowImportingTsExtensions": true, + "verbatimModuleSyntax": true, + "moduleDetection": "force", + "noEmit": true, + "jsx": "react-jsx", + + /* Path aliases */ + "baseUrl": ".", + "paths": { + "@/*": ["./src/*"] + }, + + /* Linting */ + "strict": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "erasableSyntaxOnly": true, + "noFallthroughCasesInSwitch": true, + "noUncheckedSideEffectImports": true + }, + "include": ["src"] +} diff --git a/web/dashboard/tsconfig.json b/web/dashboard/tsconfig.json new file mode 100644 index 00000000..1ffef600 --- /dev/null +++ b/web/dashboard/tsconfig.json @@ -0,0 +1,7 @@ +{ + "files": [], + "references": [ + { "path": "./tsconfig.app.json" }, + { "path": "./tsconfig.node.json" } + ] +} diff --git a/web/dashboard/tsconfig.node.json b/web/dashboard/tsconfig.node.json new file mode 100644 index 00000000..8a67f62f --- /dev/null +++ b/web/dashboard/tsconfig.node.json @@ -0,0 +1,26 @@ +{ + "compilerOptions": { + "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo", + "target": "ES2023", + "lib": ["ES2023"], + "module": "ESNext", + "types": ["node"], + "skipLibCheck": true, + + /* Bundler mode */ + "moduleResolution": "bundler", + "allowImportingTsExtensions": true, + "verbatimModuleSyntax": true, + "moduleDetection": "force", + "noEmit": true, + + /* Linting */ + "strict": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "erasableSyntaxOnly": true, + "noFallthroughCasesInSwitch": true, + "noUncheckedSideEffectImports": true + }, + "include": ["vite.config.ts"] +} diff --git a/web/dashboard/vite.config.ts b/web/dashboard/vite.config.ts new file mode 100644 index 00000000..4f61ff1d --- /dev/null +++ b/web/dashboard/vite.config.ts @@ -0,0 +1,26 @@ +import { defineConfig } from 'vite' +import react from '@vitejs/plugin-react' +import path from 'path' + +// The Go server embeds the build from internal/webui and serves it under /ui/. +export default defineConfig({ + base: '/ui/', + plugins: [react()], + resolve: { + alias: { + '@': path.resolve(__dirname, './src'), + }, + }, + server: { + port: 5173, + proxy: { + '/api': 'http://127.0.0.1:8080', + '/health': 'http://127.0.0.1:8080', + }, + }, + build: { + outDir: '../../internal/webui/build/dist', + emptyOutDir: true, + sourcemap: false, + }, +})