diff --git a/.github/workflows/filey-erp-release.yml b/.github/workflows/filey-erp-release.yml new file mode 100644 index 0000000..1e90bcb --- /dev/null +++ b/.github/workflows/filey-erp-release.yml @@ -0,0 +1,91 @@ +name: filey-erp release build + +# Builds signed-or-unsigned desktop installers for macOS, Windows and Linux. +# Trigger: push a tag like `filey-erp-v1.0.0`, or run manually. +on: + push: + tags: + - "filey-erp-v*" + workflow_dispatch: + +jobs: + build: + strategy: + fail-fast: false + matrix: + include: + - os: macos-latest + args: "--target universal-apple-darwin" + - os: ubuntu-22.04 + args: "" + - os: windows-latest + args: "" + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v4 + + - name: Linux build deps + if: matrix.os == 'ubuntu-22.04' + run: | + sudo apt-get update + sudo apt-get install -y libwebkit2gtk-4.1-dev libgtk-3-dev \ + libayatana-appindicator3-dev librsvg2-dev build-essential \ + libssl-dev libxdo-dev file + + - uses: actions/setup-node@v4 + with: + node-version: 20 + cache: npm + cache-dependency-path: filey-erp/package-lock.json + + - uses: dtolnay/rust-toolchain@stable + with: + targets: ${{ matrix.os == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }} + + - uses: swatinem/rust-cache@v2 + with: + workspaces: filey-erp/src-tauri + + - name: Install dependencies + working-directory: filey-erp + run: npm ci + + - name: Typecheck & unit tests + working-directory: filey-erp + run: | + npm run typecheck + npm test + + - name: Build desktop app + uses: tauri-apps/tauri-action@v0 + with: + projectPath: filey-erp + args: ${{ matrix.args }} + tagName: ${{ github.ref_type == 'tag' && github.ref_name || '' }} + releaseName: ${{ github.ref_type == 'tag' && 'Filey ERP ${{ github.ref_name }}' || '' }} + releaseDraft: true + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # Optional code signing — populate these repo secrets to ship signed builds. + APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }} + APPLE_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }} + APPLE_SIGNING_IDENTITY: ${{ secrets.APPLE_SIGNING_IDENTITY }} + APPLE_ID: ${{ secrets.APPLE_ID }} + APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }} + APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }} + TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }} + TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }} + + - name: Upload installers as workflow artifacts + uses: actions/upload-artifact@v4 + with: + name: filey-erp-${{ matrix.os }} + path: | + filey-erp/src-tauri/target/**/release/bundle/**/*.dmg + filey-erp/src-tauri/target/**/release/bundle/**/*.app + filey-erp/src-tauri/target/**/release/bundle/**/*.AppImage + filey-erp/src-tauri/target/**/release/bundle/**/*.deb + filey-erp/src-tauri/target/**/release/bundle/**/*.rpm + filey-erp/src-tauri/target/**/release/bundle/**/*.msi + filey-erp/src-tauri/target/**/release/bundle/**/*.exe + if-no-files-found: ignore diff --git a/.github/workflows/filey-erp.yml b/.github/workflows/filey-erp.yml new file mode 100644 index 0000000..55f2ec1 --- /dev/null +++ b/.github/workflows/filey-erp.yml @@ -0,0 +1,39 @@ +name: filey-erp CI + +on: + push: + paths: + - "filey-erp/**" + - ".github/workflows/filey-erp.yml" + pull_request: + paths: + - "filey-erp/**" + - ".github/workflows/filey-erp.yml" + +defaults: + run: + working-directory: filey-erp + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-node@v4 + with: + node-version: 20 + cache: npm + cache-dependency-path: filey-erp/package-lock.json + + - name: Install dependencies + run: npm ci + + - name: Typecheck + run: npm run typecheck + + - name: Unit tests + run: npm test + + - name: Production build + run: npm run build diff --git a/filey-erp/.env.example b/filey-erp/.env.example new file mode 100644 index 0000000..97dfa98 --- /dev/null +++ b/filey-erp/.env.example @@ -0,0 +1,8 @@ +# Filey ERP — Supabase cloud connection +# 1. Create a project at https://supabase.com +# 2. Project Settings → API → copy the values below +# 3. Copy this file to `.env` and fill them in +# 4. Run filey-erp/supabase/schema.sql in the Supabase SQL Editor + +VITE_SUPABASE_URL=https://your-project.supabase.co +VITE_SUPABASE_ANON_KEY=your-anon-key-here diff --git a/filey-erp/.github/workflows/ci.yml b/filey-erp/.github/workflows/ci.yml new file mode 100644 index 0000000..d675441 --- /dev/null +++ b/filey-erp/.github/workflows/ci.yml @@ -0,0 +1,20 @@ +name: CI + +on: + push: + branches: ["**"] + pull_request: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 20 + cache: npm + - run: npm ci + - run: npm run typecheck + - run: npm test + - run: npm run build diff --git a/filey-erp/.github/workflows/release.yml b/filey-erp/.github/workflows/release.yml new file mode 100644 index 0000000..2ee227b --- /dev/null +++ b/filey-erp/.github/workflows/release.yml @@ -0,0 +1,85 @@ +name: release build + +# Desktop installers for macOS, Windows and Linux. +# Trigger: push a tag like `v1.0.0`, or run manually. +on: + push: + tags: + - "v*" + workflow_dispatch: + +jobs: + build: + strategy: + fail-fast: false + matrix: + include: + - os: macos-latest + args: "--target universal-apple-darwin" + - os: ubuntu-22.04 + args: "" + - os: windows-latest + args: "" + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v4 + + - name: Linux build deps + if: matrix.os == 'ubuntu-22.04' + run: | + sudo apt-get update + sudo apt-get install -y libwebkit2gtk-4.1-dev libgtk-3-dev \ + libayatana-appindicator3-dev librsvg2-dev build-essential \ + libssl-dev libxdo-dev file + + - uses: actions/setup-node@v4 + with: + node-version: 20 + cache: npm + + - uses: dtolnay/rust-toolchain@stable + with: + targets: ${{ matrix.os == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }} + + - uses: swatinem/rust-cache@v2 + with: + workspaces: src-tauri + + - run: npm ci + + - name: Typecheck & unit tests + run: | + npm run typecheck + npm test + + - name: Build desktop app + uses: tauri-apps/tauri-action@v0 + with: + args: ${{ matrix.args }} + tagName: ${{ github.ref_type == 'tag' && github.ref_name || '' }} + releaseName: ${{ github.ref_type == 'tag' && 'Filey ERP ${{ github.ref_name }}' || '' }} + releaseDraft: true + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }} + APPLE_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }} + APPLE_SIGNING_IDENTITY: ${{ secrets.APPLE_SIGNING_IDENTITY }} + APPLE_ID: ${{ secrets.APPLE_ID }} + APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }} + APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }} + TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }} + TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }} + + - name: Upload installers as workflow artifacts + uses: actions/upload-artifact@v4 + with: + name: filey-erp-${{ matrix.os }} + path: | + src-tauri/target/**/release/bundle/**/*.dmg + src-tauri/target/**/release/bundle/**/*.app + src-tauri/target/**/release/bundle/**/*.AppImage + src-tauri/target/**/release/bundle/**/*.deb + src-tauri/target/**/release/bundle/**/*.rpm + src-tauri/target/**/release/bundle/**/*.msi + src-tauri/target/**/release/bundle/**/*.exe + if-no-files-found: ignore diff --git a/filey-erp/.gitignore b/filey-erp/.gitignore new file mode 100644 index 0000000..e9164e8 --- /dev/null +++ b/filey-erp/.gitignore @@ -0,0 +1,29 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +lerna-debug.log* + +node_modules +dist +dist-ssr +*.local + +# Local environment / secrets +.env +.env.* +!.env.example + +# Editor directories and files +.vscode/* +!.vscode/extensions.json +.idea +.DS_Store +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? diff --git a/filey-erp/CONTRIBUTING.md b/filey-erp/CONTRIBUTING.md new file mode 100644 index 0000000..0393381 --- /dev/null +++ b/filey-erp/CONTRIBUTING.md @@ -0,0 +1,46 @@ +# Contributing to Filey ERP + +Thanks for your interest in improving Filey ERP! It's MIT-licensed and +built for small businesses to use and extend freely. + +## Getting set up + +See the [README quick start](README.md#quick-start). In short: create a +free Supabase project, run `supabase/schema.sql`, copy `.env.example` to +`.env`, then `npm ci && npm run dev`. + +## Before you open a PR + +Run the same checks CI runs: + +```bash +npm run typecheck # must pass +npm test # must pass +npm run build # must pass +``` + +- Keep changes focused; one feature/fix per PR. +- Match the existing design system (Tailwind tokens, the `card` / `btn-*` + / `chip` classes, Lucide line icons). +- New screens should be added as a **module** in + `src/modules/registry.tsx` (see the existing entries). +- Don't commit secrets. `.env` is gitignored — never add real keys. +- Be honest in code and PRs about what is real vs. placeholder. + +## Good first contributions + +- Flesh out a placeholder Settings section (Preferences, Notifications…). +- Add tests (pure logic in `src/lib`, components via Testing Library). +- New invoice/quotation templates. +- Accessibility and i18n improvements. + +## Bigger initiatives (discuss in an issue first) + +- Org/team multi-tenancy + role-based access control. +- Deeper accounting / procure-to-pay / warehouse inventory. +- A third-party plugin SDK on top of the module registry. + +## Reporting issues + +Open a GitHub issue with steps to reproduce, expected vs. actual +behaviour, and your OS / build (`dev` vs. desktop). diff --git a/filey-erp/LICENSE b/filey-erp/LICENSE new file mode 100644 index 0000000..9a88d7f --- /dev/null +++ b/filey-erp/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2026 Filey + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/filey-erp/README.md b/filey-erp/README.md new file mode 100644 index 0000000..5f07c60 --- /dev/null +++ b/filey-erp/README.md @@ -0,0 +1,128 @@ +# Filey ERP + +> An open-source, offline-friendly desktop ERP for small businesses — +> inventory, orders, FTA-compliant invoicing & quotations, CRM, purchasing, +> reporting and a local PDF toolkit. Free to use under the MIT license. + +**Status:** active beta. Core flows work end-to-end against Supabase; it is +not yet a fully hardened, signed, multi-tenant product (see _Status & +roadmap_). Small businesses can self-host it today for free. + +--- + +## Features + +- **Overview** — KPI dashboard (items, suppliers, low stock, activity). +- **Inventory** — products, stock levels, reorder alerts. +- **Orders** — sales orders & fulfilment status. +- **Invoicing** — FTA-compliant tax invoices, 10 templates, live preview, + optional VAT, auto-filled company branding, print/PDF. +- **Quoting** — quotation builder with per-line discount/tax, import from + inventory, saved templates. +- **CRM** — customer dashboard + drag-and-drop sales pipeline + tasks. +- **Suppliers / Purchase / Reports** — sourcing, spend, financial reporting. +- **Tools** — a 100% local PDF toolkit (merge, split, compress, convert, + watermark, page numbers…). Files never leave the device. +- **Settings** — company profile, account, users & roles, security, + activity log, and an **Apps & Modules** screen to enable/disable modules + (an Odoo-style module registry). + +## Tech stack + +Tauri 2 (Rust shell) · React 19 · TypeScript · Vite · Tailwind CSS · +Recharts · React Router · Supabase (auth + Postgres, row-level secured) · +pdf-lib (MIT) + pdfjs-dist (Apache-2.0) for local PDF tools. + +## Quick start + +### Prerequisites + +- Node.js 20+ +- A free [Supabase](https://supabase.com) project +- (Desktop build only) Rust toolchain + your OS's WebView build deps — + see the [Tauri prerequisites](https://tauri.app/start/prerequisites/). + +### 1. Database + +In your Supabase project → **SQL Editor → New query**, paste the entire +contents of [`supabase/schema.sql`](supabase/schema.sql) and run it. It is +idempotent and row-level-secured per signed-in user. Re-run it any time you +pull updates that change the schema. + +In **Authentication → Providers → Email**, enable email sign-in (turn off +"Confirm email" for the fastest local testing). + +### 2. Configure + +```bash +cp .env.example .env +``` + +Fill `.env` with your project's **URL** and **anon / publishable key** +(Project Settings → API). Never commit `.env` or use the `service_role` +key in the app. + +### 3. Run + +```bash +npm ci +npm run dev # browser preview (fastest) +npm run tauri dev # the desktop app +``` + +Sign up with any email/password and you're in. + +### 4. Build desktop installers + +```bash +npm run tauri build # outputs to src-tauri/target/release/bundle/ +``` + +Or push a `filey-erp-v*` tag to build macOS/Windows/Linux installers via +the GitHub Actions release workflow. + +## Module system + +Every screen is a module declared in `src/modules/registry.tsx`. Toggle +modules per user from **Settings → Apps & Modules** (Overview & Settings +are core and always on). Adding a new mini-app is a single registry entry. + +## Scripts + +| Command | What it does | +|---|---| +| `npm run dev` | Vite dev server (browser) | +| `npm run tauri dev` | Desktop app in dev | +| `npm run build` | Typecheck + production web build | +| `npm test` | Unit & component tests (Vitest) | +| `npm run typecheck` | TypeScript only | +| `npm run tauri build` | Desktop installers | + +## Status & roadmap + +Working: auth, all modules above, Supabase persistence (offline-first +cache + outbox), local PDF tools, module enable/disable, MIT-licensed. + +Not done yet (contributions welcome): + +- Org/team multi-tenancy + role-based access control (currently data is + scoped per individual user). +- Deeper accounting (double-entry GL), full procure-to-pay, warehouse + inventory valuation. +- Signed/notarized installers + auto-update. +- Broader automated test coverage and a systematic QA pass. + +## Contributing + +Issues and PRs are welcome — see [CONTRIBUTING.md](CONTRIBUTING.md). + +## License + +[MIT](LICENSE) © Filey. Free for personal and commercial use, including +by small businesses. + +## Acknowledgements + +[Tauri](https://tauri.app) · [Supabase](https://supabase.com) · +[pdf-lib](https://pdf-lib.js.org) · [pdf.js](https://mozilla.github.io/pdf.js/) · +[Recharts](https://recharts.org) · [Lucide](https://lucide.dev). diff --git a/filey-erp/design.md b/filey-erp/design.md new file mode 100644 index 0000000..70a0857 --- /dev/null +++ b/filey-erp/design.md @@ -0,0 +1,192 @@ +# Filey Design System + +> This document outlines the design system and components used in the +> **Filey Inventory Management Desktop App**. A warm, friendly and modern +> system built for clarity, speed and delight. **v2.0.0** + +--- + +## 01 · Colors + +A warm, poppy palette built on a single confident yellow with soft neutral +surfaces. Soft gradients and warm neutrals create a friendly, modern look. + +### Core + +| Token | Hex | Use | +|-------|-----------|-----| +| `primary` | `#FFD600` | Primary actions, active nav, key highlights | +| `secondary` | `#FFBA3D` | Secondary accents, warm gradients, focus states | +| `background` | `#F3EBD6` | App canvas / page background | +| `surface` | `#CBBEAA` | Muted surfaces, dividers, inactive fills | +| `text` / `dark` | `#222222` | Primary text, dark cards, sidebar foreground | + +### Primary ramp (yellow) + +| Token | Hex | +|-------|-----------| +| `primary-50` | `#FFFBEB` | +| `primary-100` | `#FFF3C4` | +| `primary-200` | `#FFE885` | +| `primary-300` | `#FFDD47` | +| `primary-400` | `#FFD600` (base) | +| `primary-500` | `#F5C400` | +| `primary-600` | `#E0AE00` | +| `primary-700` | `#B88C00` | + +### Neutrals (warm) + +| Token | Hex | +|-------|-----------| +| `brand-900` | `#222222` (text / darkest) | +| `brand-700` | `#4A453B` | +| `brand-600` | `#6B6457` (body text) | +| `brand-500` | `#8C8475` | +| `brand-400` | `#A89F8C` (muted / captions) | +| `brand-300` | `#CBBEAA` (surface) | +| `brand-200` | `#E4DAC6` (borders) | +| `brand-100` | `#F0E9D9` (soft fills) | +| `brand-50` | `#F8F3E7` (tint surfaces) | +| white | `#FFFFFF` (cards) | + +### Semantic + +| Name | Hex | Meaning | +|------|-----------|---------| +| Success | `#16A34A` | In stock, up delta, paid, positive | +| Warning | `#F59E0B` | Low stock, pending, attention | +| Danger | `#EF4444` | Out of stock, overdue, destructive | +| Info | `#0EA5E9` | Informational, neutral status | + +--- + +## 02 · Typography + +Clean, modern and highly readable — **Poppins** for all text. + +| Style | Size / Line | Weight | +|-------|-------------|--------| +| H1 | 32 / 40 | Bold (700) | +| H2 | 24 / 32 | SemiBold (600) | +| H3 | 18 / 28 | Medium (500) | +| Body | 14 / 22 | Regular (400) | +| Caption | 12 / 18 | Regular (400) | + +Weights used: 400 Regular · 500 Medium · 600 SemiBold · 700 Bold. + +--- + +## 03 · Navigation + +A clean, **icon-first light sidebar** for seamless navigation. + +- White sidebar, `#222222` foreground, line icons. +- Active item: soft `primary-100` pill with `primary-700` text + icon. +- Inactive: `brand-500` icon + label, hover lightens to `brand-50`. +- Brand lockup top (logo chip + "Filey"), bell + avatar inline. +- Storage card pinned bottom: usage donut, `XX% Used`, GB caption, + "Upgrade Storage" ghost button. +- Quick-access icon row beneath the storage card. +- Sections: **Overview, Inventory, Orders, Invoicing, CRM, + Suppliers, Purchase, Reports, Tools, Settings.** + +### Topbar + +`Search anything… ⌘K` field (left), notification bell with count badge, +and a user chip (avatar + name + role + chevron) on the right. + +--- + +## 04 · Components + +Reusable components for building a consistent UI. + +- **Buttons:** Primary (filled `primary`, dark text), Secondary (soft + `primary-100`), Ghost (border + transparent), Icon. States: Default, + Hover (darken/tint), Disabled (`brand-200`). +- **Chips / Filters:** rounded-full, `brand-200` border, dropdown caret; + active = `primary-100` fill. +- **Inputs:** rounded-`12px`, `brand-200` border, focus ring `primary`. +- **Badges (status):** + - In stock / Paid / Active → `success` + - Low stock / Pending → `warning` + - Out of stock / Overdue → `danger` + - Info / Neutral → `info` +- **Avatars:** circular, stacked groups with `+N` overflow. + +--- + +## 05 · Cards + +Cards give users a glimpse of information at a glance. + +- White surface, **radius 16px**, soft shadow, `brand-200` border. +- Icon chip + label, large metric (`H2`/`H1`), delta row + (`↑ 12.5% vs last month` in success/danger) and optional mini chart. +- Accent cards use a soft `primary → secondary` gradient on a warm + neutral; dark feature cards use `#222222` with white text. + +--- + +## 06 · Dashboard layout + +- KPI stat row (Total Items, Suppliers, Low Stock, Storage) — each a + card with icon chip + metric + delta. +- Orders summary card, delivery status card, recent-activity feed, + stock breakdown, reorder spotlight, top low-stock list. +- Glanceable: every card answers one question without a click. + +--- + +## 07 · Charts + +Beautiful and easy to read: Line, Bar, Area, Donut, Progress ring. +Primary series = `primary-400`, gridlines `brand-200`, axis text +`brand-400`, soft gradient area fills (`primary → transparent`). + +--- + +## 08 · Icons + +Consistent, minimal, modern **line icons** (Lucide) with a consistent +stroke width. + +--- + +## 09 · Design principles + +1. **Clarity First** — every element serves a purpose. +2. **Glance, don't dig** — cards surface key info up front. +3. **Consistency Always** — same patterns, same behavior. +4. **Delight in Details** — small interactions, big impact. + +--- + +## 10 · Spacing & Radius + +8px-friendly system on a **4px base unit**. + +- **Spacing scale (px):** 4, 8, 12, 16, 24, 32, 48, 64, 96 +- **Border radius (px):** cards `16`, buttons `12`, pills `999` + +--- + +## 11 · Tech stack + +Tauri 2 · Vite · React 19 · TypeScript · Tailwind CSS · Recharts · +React Router · Supabase. + +--- + +## Implementation map (this repo) + +| Spec | Where applied | +|------|---------------| +| Color tokens | `tailwind.config.js` (`primary`, `secondary`, `brand`, semantic) | +| Component styles | `src/index.css` (`btn-*`, `card`, `pill`, `chip`, `input`, table) | +| Poppins font | `index.html` + `tailwind.config.js` `fontFamily` | +| Light icon-first nav | `src/components/Layout.tsx` | +| Nav definition | `src/lib/apps.ts` | +| Card primitives | `src/components/ui.tsx` (`MetricCard`, `InfoCard`, `Card`) | +| Chart palette | `src/pages/Overview.tsx`, `src/pages/Reports.tsx` | +| Status badges | `src/components/ui.tsx` `Badge`, `statusTone` | diff --git a/filey-erp/index.html b/filey-erp/index.html new file mode 100644 index 0000000..e0c6786 --- /dev/null +++ b/filey-erp/index.html @@ -0,0 +1,20 @@ + + + + + + + + + + Filey — Inventory Management + + + +
+ + + diff --git a/filey-erp/package-lock.json b/filey-erp/package-lock.json new file mode 100644 index 0000000..64340f0 --- /dev/null +++ b/filey-erp/package-lock.json @@ -0,0 +1,6249 @@ +{ + "name": "filey-erp", + "version": "0.1.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "filey-erp", + "version": "0.1.0", + "dependencies": { + "@supabase/supabase-js": "^2.105.4", + "@tauri-apps/api": "^2", + "@tauri-apps/plugin-opener": "^2", + "clsx": "^2.1.1", + "lucide-react": "^1.16.0", + "pdf-lib": "^1.17.1", + "pdfjs-dist": "^4.10.38", + "react": "^19.1.0", + "react-dom": "^19.1.0", + "react-router-dom": "^7.15.1", + "recharts": "^3.8.1", + "tailwind-merge": "^3.6.0" + }, + "devDependencies": { + "@tauri-apps/cli": "^2", + "@testing-library/jest-dom": "^6.9.1", + "@testing-library/react": "^16.3.2", + "@types/react": "^19.1.8", + "@types/react-dom": "^19.1.6", + "@vitejs/plugin-react": "^4.6.0", + "autoprefixer": "^10.5.0", + "jsdom": "^25.0.1", + "postcss": "^8.5.14", + "tailwindcss": "^3.4.19", + "typescript": "~5.8.3", + "vite": "^7.0.4", + "vitest": "^2.1.9" + } + }, + "node_modules/@adobe/css-tools": { + "version": "4.4.4", + "resolved": "https://registry.npmjs.org/@adobe/css-tools/-/css-tools-4.4.4.tgz", + "integrity": "sha512-Elp+iwUx5rN5+Y8xLt5/GRoG20WGoDCQ/1Fb+1LiGtvwbDavuSk0jhD/eZdckHAuzcDzccnkv+rEjyWfRx18gg==", + "dev": true, + "license": "MIT" + }, + "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, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@asamuzakjp/css-color": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/@asamuzakjp/css-color/-/css-color-3.2.0.tgz", + "integrity": "sha512-K1A6z8tS3XsmCMM86xoWdn7Fkdn9m6RSVtocUrJYIwZnFVkng/PvkEoWtOWmP+Scc6saYWHWZYbndEEXxl24jw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@csstools/css-calc": "^2.1.3", + "@csstools/css-color-parser": "^3.0.9", + "@csstools/css-parser-algorithms": "^3.0.4", + "@csstools/css-tokenizer": "^3.0.3", + "lru-cache": "^10.4.3" + } + }, + "node_modules/@asamuzakjp/css-color/node_modules/lru-cache": { + "version": "10.4.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz", + "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==", + "dev": true, + "license": "ISC" + }, + "node_modules/@babel/code-frame": { + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.29.0.tgz", + "integrity": "sha512-9NhCeYjq9+3uxgdtp20LSiJXJvN0FeCtNGpJxuMFZ1Kv3cWUNb6DOhJwUvcVCzKGR66cw4njwM6hrJLqgOwbcw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-validator-identifier": "^7.28.5", + "js-tokens": "^4.0.0", + "picocolors": "^1.1.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/compat-data": { + "version": "7.29.3", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.29.3.tgz", + "integrity": "sha512-LIVqM46zQWZhj17qA8wb4nW/ixr2y1Nw+r1etiAWgRM6U1IqP+LNhL1yg440jYZR72jCWcWbLWzIosH+uP1fqg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/core": { + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.29.0.tgz", + "integrity": "sha512-CGOfOJqWjg2qW/Mb6zNsDm+u5vFQ8DxXfbM09z69p5Z6+mE1ikP2jUXw+j42Pf1XTYED2Rni5f95npYeuwMDQA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.29.0", + "@babel/generator": "^7.29.0", + "@babel/helper-compilation-targets": "^7.28.6", + "@babel/helper-module-transforms": "^7.28.6", + "@babel/helpers": "^7.28.6", + "@babel/parser": "^7.29.0", + "@babel/template": "^7.28.6", + "@babel/traverse": "^7.29.0", + "@babel/types": "^7.29.0", + "@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.29.1", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.1.tgz", + "integrity": "sha512-qsaF+9Qcm2Qv8SRIMMscAvG4O3lJ0F1GuMo5HR/Bp02LopNgnZBC/EkbevHFeGs4ls/oPz9v+Bsmzbkbe+0dUw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.29.0", + "@babel/types": "^7.29.0", + "@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.28.6", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.28.6.tgz", + "integrity": "sha512-JYtls3hqi15fcx5GaSNL7SCTJ2MNmjrkHXg4FSpOA/grxK8KwyZ5bubHsCq8FXCkua6xhuaaBit+3b7+VZRfcA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/compat-data": "^7.28.6", + "@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, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-imports": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.28.6.tgz", + "integrity": "sha512-l5XkZK7r7wa9LucGw9LwZyyCUscb4x37JWTPz7swwFE/0FMQAGpiWUZn8u9DzkSBWEcK25jmvubfpw2dnAMdbw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/traverse": "^7.28.6", + "@babel/types": "^7.28.6" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-transforms": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.28.6.tgz", + "integrity": "sha512-67oXFAYr2cDLDVGLXTEABjdBJZ6drElUSI7WKp70NrpyISso3plG9SAGEF6y7zbha/wOzUByWWTJvEDVNIUGcA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-module-imports": "^7.28.6", + "@babel/helper-validator-identifier": "^7.28.5", + "@babel/traverse": "^7.28.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-plugin-utils": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.28.6.tgz", + "integrity": "sha512-S9gzZ/bz83GRysI7gAD4wPT/AI3uCnY+9xn+Mx/KPs2JwHJIz1W8PZkg2cqyt3RNOBM8ejcXhV6y8Og7ly/Dug==", + "dev": true, + "license": "MIT", + "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, + "license": "MIT", + "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, + "license": "MIT", + "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, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helpers": { + "version": "7.29.2", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.29.2.tgz", + "integrity": "sha512-HoGuUs4sCZNezVEKdVcwqmZN8GoHirLUcLaYVNBK2J0DadGtdcqgr3BCbvH8+XUo4NGjNl3VOtSjEKNzqfFgKw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/template": "^7.28.6", + "@babel/types": "^7.29.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/parser": { + "version": "7.29.3", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.3.tgz", + "integrity": "sha512-b3ctpQwp+PROvU/cttc4OYl4MzfJUWy6FZg+PMXfzmt/+39iHVF0sDfqay8TQM3JA2EUOyKcFZt75jWriQijsA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.29.0" + }, + "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, + "license": "MIT", + "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, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/runtime": { + "version": "7.29.2", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.29.2.tgz", + "integrity": "sha512-JiDShH45zKHWyGe4ZNVRrCjBz8Nh9TMmZG1kh4QTK8hCBTWBi8Da+i7s1fJw7/lYpM4ccepSNfqzZ/QvABBi5g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/template": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.28.6.tgz", + "integrity": "sha512-YA6Ma2KsCdGb+WC6UpBVFJGXL58MDA6oyONbjyF/+5sBgxY/dwkhLogbMT2GXXyU84/IhRw/2D1Os1B/giz+BQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.28.6", + "@babel/parser": "^7.28.6", + "@babel/types": "^7.28.6" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse": { + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.0.tgz", + "integrity": "sha512-4HPiQr0X7+waHfyXPZpWPfWL/J7dcN1mx9gL6WdQVMbPnF3+ZhSMs8tCxN7oHddJE9fhNE7+lxdnlyemKfJRuA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.29.0", + "@babel/generator": "^7.29.0", + "@babel/helper-globals": "^7.28.0", + "@babel/parser": "^7.29.0", + "@babel/template": "^7.28.6", + "@babel/types": "^7.29.0", + "debug": "^4.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/types": { + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.0.tgz", + "integrity": "sha512-LwdZHpScM4Qz8Xw2iKSzS+cfglZzJGvofQICy7W7v4caru4EaAmyUuO6BGrbyQ2mYV11W0U8j5mBhd14dd3B0A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-string-parser": "^7.27.1", + "@babel/helper-validator-identifier": "^7.28.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@csstools/color-helpers": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/@csstools/color-helpers/-/color-helpers-5.1.0.tgz", + "integrity": "sha512-S11EXWJyy0Mz5SYvRmY8nJYTFFd1LCNV+7cXyAgQtOOuzb4EsgfqDufL+9esx72/eLhsRdGZwaldu/h+E4t4BA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/csstools" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + } + ], + "license": "MIT-0", + "engines": { + "node": ">=18" + } + }, + "node_modules/@csstools/css-calc": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/@csstools/css-calc/-/css-calc-2.1.4.tgz", + "integrity": "sha512-3N8oaj+0juUw/1H3YwmDDJXCgTB1gKU6Hc/bB502u9zR0q2vd786XJH9QfrKIEgFlZmhZiq6epXl4rHqhzsIgQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/csstools" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + } + ], + "license": "MIT", + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@csstools/css-parser-algorithms": "^3.0.5", + "@csstools/css-tokenizer": "^3.0.4" + } + }, + "node_modules/@csstools/css-color-parser": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@csstools/css-color-parser/-/css-color-parser-3.1.0.tgz", + "integrity": "sha512-nbtKwh3a6xNVIp/VRuXV64yTKnb1IjTAEEh3irzS+HkKjAOYLTGNb9pmVNntZ8iVBHcWDA2Dof0QtPgFI1BaTA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/csstools" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + } + ], + "license": "MIT", + "dependencies": { + "@csstools/color-helpers": "^5.1.0", + "@csstools/css-calc": "^2.1.4" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@csstools/css-parser-algorithms": "^3.0.5", + "@csstools/css-tokenizer": "^3.0.4" + } + }, + "node_modules/@csstools/css-parser-algorithms": { + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/@csstools/css-parser-algorithms/-/css-parser-algorithms-3.0.5.tgz", + "integrity": "sha512-DaDeUkXZKjdGhgYaHNJTV9pV7Y9B3b644jCLs9Upc3VeNGg6LWARAT6O+Q+/COo+2gg/bM5rhpMAtf70WqfBdQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/csstools" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + } + ], + "license": "MIT", + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@csstools/css-tokenizer": "^3.0.4" + } + }, + "node_modules/@csstools/css-tokenizer": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@csstools/css-tokenizer/-/css-tokenizer-3.0.4.tgz", + "integrity": "sha512-Vd/9EVDiu6PPJt9yAh6roZP6El1xHrdvIVGjyBsHR0RYwNHgL7FJPyIIW4fANJNG6FtyZfvlRPpFI4ZM/lubvw==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/csstools" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + } + ], + "license": "MIT", + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/aix-ppc64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.27.7.tgz", + "integrity": "sha512-EKX3Qwmhz1eMdEJokhALr0YiD0lhQNwDqkPYyPhiSwKrh7/4KRjQc04sZ8db+5DVVnZ1LmbNDI1uAMPEUBnQPg==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.27.7.tgz", + "integrity": "sha512-jbPXvB4Yj2yBV7HUfE2KHe4GJX51QplCN1pGbYjvsyCZbQmies29EoJbkEc+vYuU5o45AfQn37vZlyXy4YJ8RQ==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.27.7.tgz", + "integrity": "sha512-62dPZHpIXzvChfvfLJow3q5dDtiNMkwiRzPylSCfriLvZeq0a1bWChrGx/BbUbPwOrsWKMn8idSllklzBy+dgQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-x64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.27.7.tgz", + "integrity": "sha512-x5VpMODneVDb70PYV2VQOmIUUiBtY3D3mPBG8NxVk5CogneYhkR7MmM3yR/uMdITLrC1ml/NV1rj4bMJuy9MCg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-arm64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.27.7.tgz", + "integrity": "sha512-5lckdqeuBPlKUwvoCXIgI2D9/ABmPq3Rdp7IfL70393YgaASt7tbju3Ac+ePVi3KDH6N2RqePfHnXkaDtY9fkw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-x64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.27.7.tgz", + "integrity": "sha512-rYnXrKcXuT7Z+WL5K980jVFdvVKhCHhUwid+dDYQpH+qu+TefcomiMAJpIiC2EM3Rjtq0sO3StMV/+3w3MyyqQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-arm64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.27.7.tgz", + "integrity": "sha512-B48PqeCsEgOtzME2GbNM2roU29AMTuOIN91dsMO30t+Ydis3z/3Ngoj5hhnsOSSwNzS+6JppqWsuhTp6E82l2w==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-x64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.27.7.tgz", + "integrity": "sha512-jOBDK5XEjA4m5IJK3bpAQF9/Lelu/Z9ZcdhTRLf4cajlB+8VEhFFRjWgfy3M1O4rO2GQ/b2dLwCUGpiF/eATNQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.27.7.tgz", + "integrity": "sha512-RkT/YXYBTSULo3+af8Ib0ykH8u2MBh57o7q/DAs3lTJlyVQkgQvlrPTnjIzzRPQyavxtPtfg0EopvDyIt0j1rA==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.27.7.tgz", + "integrity": "sha512-RZPHBoxXuNnPQO9rvjh5jdkRmVizktkT7TCDkDmQ0W2SwHInKCAV95GRuvdSvA7w4VMwfCjUiPwDi0ZO6Nfe9A==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ia32": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.27.7.tgz", + "integrity": "sha512-GA48aKNkyQDbd3KtkplYWT102C5sn/EZTY4XROkxONgruHPU72l+gW+FfF8tf2cFjeHaRbWpOYa/uRBz/Xq1Pg==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-loong64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.27.7.tgz", + "integrity": "sha512-a4POruNM2oWsD4WKvBSEKGIiWQF8fZOAsycHOt6JBpZ+JN2n2JH9WAv56SOyu9X5IqAjqSIPTaJkqN8F7XOQ5Q==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-mips64el": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.27.7.tgz", + "integrity": "sha512-KabT5I6StirGfIz0FMgl1I+R1H73Gp0ofL9A3nG3i/cYFJzKHhouBV5VWK1CSgKvVaG4q1RNpCTR2LuTVB3fIw==", + "cpu": [ + "mips64el" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ppc64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.27.7.tgz", + "integrity": "sha512-gRsL4x6wsGHGRqhtI+ifpN/vpOFTQtnbsupUF5R5YTAg+y/lKelYR1hXbnBdzDjGbMYjVJLJTd2OFmMewAgwlQ==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-riscv64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.27.7.tgz", + "integrity": "sha512-hL25LbxO1QOngGzu2U5xeXtxXcW+/GvMN3ejANqXkxZ/opySAZMrc+9LY/WyjAan41unrR3YrmtTsUpwT66InQ==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-s390x": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.27.7.tgz", + "integrity": "sha512-2k8go8Ycu1Kb46vEelhu1vqEP+UeRVj2zY1pSuPdgvbd5ykAw82Lrro28vXUrRmzEsUV0NzCf54yARIK8r0fdw==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-x64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.27.7.tgz", + "integrity": "sha512-hzznmADPt+OmsYzw1EE33ccA+HPdIqiCRq7cQeL1Jlq2gb1+OyWBkMCrYGBJ+sxVzve2ZJEVeePbLM2iEIZSxA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-arm64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.27.7.tgz", + "integrity": "sha512-b6pqtrQdigZBwZxAn1UpazEisvwaIDvdbMbmrly7cDTMFnw/+3lVxxCTGOrkPVnsYIosJJXAsILG9XcQS+Yu6w==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-x64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.27.7.tgz", + "integrity": "sha512-OfatkLojr6U+WN5EDYuoQhtM+1xco+/6FSzJJnuWiUw5eVcicbyK3dq5EeV/QHT1uy6GoDhGbFpprUiHUYggrw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-arm64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.27.7.tgz", + "integrity": "sha512-AFuojMQTxAz75Fo8idVcqoQWEHIXFRbOc1TrVcFSgCZtQfSdc1RXgB3tjOn/krRHENUB4j00bfGjyl2mJrU37A==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-x64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.27.7.tgz", + "integrity": "sha512-+A1NJmfM8WNDv5CLVQYJ5PshuRm/4cI6WMZRg1by1GwPIQPCTs1GLEUHwiiQGT5zDdyLiRM/l1G0Pv54gvtKIg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openharmony-arm64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.27.7.tgz", + "integrity": "sha512-+KrvYb/C8zA9CU/g0sR6w2RBw7IGc5J2BPnc3dYc5VJxHCSF1yNMxTV5LQ7GuKteQXZtspjFbiuW5/dOj7H4Yw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/sunos-x64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.27.7.tgz", + "integrity": "sha512-ikktIhFBzQNt/QDyOL580ti9+5mL/YZeUPKU2ivGtGjdTYoqz6jObj6nOMfhASpS4GU4Q/Clh1QtxWAvcYKamA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-arm64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.27.7.tgz", + "integrity": "sha512-7yRhbHvPqSpRUV7Q20VuDwbjW5kIMwTHpptuUzV+AA46kiPze5Z7qgt6CLCK3pWFrHeNfDd1VKgyP4O+ng17CA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-ia32": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.27.7.tgz", + "integrity": "sha512-SmwKXe6VHIyZYbBLJrhOoCJRB/Z1tckzmgTLfFYOfpMAx63BJEaL9ExI8x7v0oAO3Zh6D/Oi1gVxEYr5oUCFhw==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-x64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.27.7.tgz", + "integrity": "sha512-56hiAJPhwQ1R4i+21FVF7V8kSD5zZTdHcVuRFMW0hn753vVfQN8xlx4uOPT4xoGH0Z/oVATuR82AiqSTDIpaHg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "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, + "license": "MIT", + "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, + "license": "MIT", + "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, + "license": "MIT", + "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, + "license": "MIT" + }, + "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, + "license": "MIT", + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@napi-rs/canvas": { + "version": "0.1.100", + "resolved": "https://registry.npmjs.org/@napi-rs/canvas/-/canvas-0.1.100.tgz", + "integrity": "sha512-xglYA6q3XO5P3BNJYxVZ1IV7DLVjp1Py6nwag88YntrS+3vKHyYcMqXVS4ZztJmwz2uGvz1FWhI/4LgbR5uQDA==", + "license": "MIT", + "optional": true, + "workspaces": [ + "e2e/*" + ], + "engines": { + "node": ">= 10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Brooooooklyn" + }, + "optionalDependencies": { + "@napi-rs/canvas-android-arm64": "0.1.100", + "@napi-rs/canvas-darwin-arm64": "0.1.100", + "@napi-rs/canvas-darwin-x64": "0.1.100", + "@napi-rs/canvas-linux-arm-gnueabihf": "0.1.100", + "@napi-rs/canvas-linux-arm64-gnu": "0.1.100", + "@napi-rs/canvas-linux-arm64-musl": "0.1.100", + "@napi-rs/canvas-linux-riscv64-gnu": "0.1.100", + "@napi-rs/canvas-linux-x64-gnu": "0.1.100", + "@napi-rs/canvas-linux-x64-musl": "0.1.100", + "@napi-rs/canvas-win32-arm64-msvc": "0.1.100", + "@napi-rs/canvas-win32-x64-msvc": "0.1.100" + } + }, + "node_modules/@napi-rs/canvas-android-arm64": { + "version": "0.1.100", + "resolved": "https://registry.npmjs.org/@napi-rs/canvas-android-arm64/-/canvas-android-arm64-0.1.100.tgz", + "integrity": "sha512-hjhCKhntPv9+t4ckHymdx0phYNcVW+GKQR6Lzw2zE+pOVjOplSmtx9nNNknTjbEDLcuLZqA1y8ufKg1XfgftzQ==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">= 10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Brooooooklyn" + } + }, + "node_modules/@napi-rs/canvas-darwin-arm64": { + "version": "0.1.100", + "resolved": "https://registry.npmjs.org/@napi-rs/canvas-darwin-arm64/-/canvas-darwin-arm64-0.1.100.tgz", + "integrity": "sha512-2PcswRaC7Ly645DGt88///zuFDhJxJYdKAs1uU3mfk1atYkXufgcgLfBpk6Tm12nCQBaNt1wpybuPZ4qOhTo8A==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Brooooooklyn" + } + }, + "node_modules/@napi-rs/canvas-darwin-x64": { + "version": "0.1.100", + "resolved": "https://registry.npmjs.org/@napi-rs/canvas-darwin-x64/-/canvas-darwin-x64-0.1.100.tgz", + "integrity": "sha512-ePNZtj7pNIva/siZMg+HmbeozkIjqUIYdoymH8HaA3qK7LfzFN4WMBM8G6HQ9ZC+H3+Dnn5pqtiXpgLykaPOhw==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Brooooooklyn" + } + }, + "node_modules/@napi-rs/canvas-linux-arm-gnueabihf": { + "version": "0.1.100", + "resolved": "https://registry.npmjs.org/@napi-rs/canvas-linux-arm-gnueabihf/-/canvas-linux-arm-gnueabihf-0.1.100.tgz", + "integrity": "sha512-d5cDB48oWFGU8/XPhUOFAlySgb/VAu7D+s8fi55K1Pcfg8aPplHWqMgibhVLU8ky7Pyg/fuiVLz4Nf3JrSTuUA==", + "cpu": [ + "arm" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Brooooooklyn" + } + }, + "node_modules/@napi-rs/canvas-linux-arm64-gnu": { + "version": "0.1.100", + "resolved": "https://registry.npmjs.org/@napi-rs/canvas-linux-arm64-gnu/-/canvas-linux-arm64-gnu-0.1.100.tgz", + "integrity": "sha512-rDxgxRu69RvDlX/bh9o22DxLsGr8EqsNgotL9+RwQE1S0b0cqeatqsw6aW45mukm0B42DIAaAacKaYQ8cqS1nw==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Brooooooklyn" + } + }, + "node_modules/@napi-rs/canvas-linux-arm64-musl": { + "version": "0.1.100", + "resolved": "https://registry.npmjs.org/@napi-rs/canvas-linux-arm64-musl/-/canvas-linux-arm64-musl-0.1.100.tgz", + "integrity": "sha512-K3mDW66N+xT2/V439u1alFANiBUjdEx2gLiNYnCmUsva5jZMxWTjafBYwTzYK+EMFMHrUoabuU+T1BIP5CgbYQ==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Brooooooklyn" + } + }, + "node_modules/@napi-rs/canvas-linux-riscv64-gnu": { + "version": "0.1.100", + "resolved": "https://registry.npmjs.org/@napi-rs/canvas-linux-riscv64-gnu/-/canvas-linux-riscv64-gnu-0.1.100.tgz", + "integrity": "sha512-mooqUBTIsccZpnoQC4NgrC1v6C1vof39etLNMnBwCY+p0gajWJvAHLGQ6g/gGyS5YrpDW+GefSN4+Cvcr08UWw==", + "cpu": [ + "riscv64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Brooooooklyn" + } + }, + "node_modules/@napi-rs/canvas-linux-x64-gnu": { + "version": "0.1.100", + "resolved": "https://registry.npmjs.org/@napi-rs/canvas-linux-x64-gnu/-/canvas-linux-x64-gnu-0.1.100.tgz", + "integrity": "sha512-1eCvkDCazm7FFhsT7DfGOdSaHgZVK3bt/dSBl5EWHOWmnz+I7j8tPseJqqD81NF+MH21jKUK4wQSDjN0mdhnTg==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Brooooooklyn" + } + }, + "node_modules/@napi-rs/canvas-linux-x64-musl": { + "version": "0.1.100", + "resolved": "https://registry.npmjs.org/@napi-rs/canvas-linux-x64-musl/-/canvas-linux-x64-musl-0.1.100.tgz", + "integrity": "sha512-20arT6lnI19S68qNlii73TSEDbECNgzMz2EpldC1V3mZFuRkeujXkcebRk0LRJe9SEUAooYiLokfMViY8IX7yA==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Brooooooklyn" + } + }, + "node_modules/@napi-rs/canvas-win32-arm64-msvc": { + "version": "0.1.100", + "resolved": "https://registry.npmjs.org/@napi-rs/canvas-win32-arm64-msvc/-/canvas-win32-arm64-msvc-0.1.100.tgz", + "integrity": "sha512-DZFFT1wIAg37LJw37yhMRFfjATd3vTQzjZ1Yki8u2vhO6Hi5VE6BVaGQ1aaDu7xb4iMErz+9EOwjpS7xcxFeBw==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Brooooooklyn" + } + }, + "node_modules/@napi-rs/canvas-win32-x64-msvc": { + "version": "0.1.100", + "resolved": "https://registry.npmjs.org/@napi-rs/canvas-win32-x64-msvc/-/canvas-win32-x64-msvc-0.1.100.tgz", + "integrity": "sha512-MyT1j3mHC2+Lu4pBi9mKyMJhtP6U7k7EldY7sj/uS5gJA65gTXt8MefJQXLJo5d/vZbuWmfxzkEUNc/urV3pHA==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Brooooooklyn" + } + }, + "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, + "license": "MIT", + "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, + "license": "MIT", + "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, + "license": "MIT", + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@pdf-lib/standard-fonts": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@pdf-lib/standard-fonts/-/standard-fonts-1.0.0.tgz", + "integrity": "sha512-hU30BK9IUN/su0Mn9VdlVKsWBS6GyhVfqjwl1FjZN4TxP6cCw0jP2w7V3Hf5uX7M0AZJ16vey9yE0ny7Sa59ZA==", + "license": "MIT", + "dependencies": { + "pako": "^1.0.6" + } + }, + "node_modules/@pdf-lib/upng": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@pdf-lib/upng/-/upng-1.0.1.tgz", + "integrity": "sha512-dQK2FUMQtowVP00mtIksrlZhdFXQZPC+taih1q4CvPZ5vqdxR/LKBaFg0oAfzd1GlHZXXSPdQfzQnt+ViGvEIQ==", + "license": "MIT", + "dependencies": { + "pako": "^1.0.10" + } + }, + "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==", + "license": "MIT", + "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.8", + "resolved": "https://registry.npmjs.org/immer/-/immer-11.1.8.tgz", + "integrity": "sha512-/tbkHMW7y10Lx6i1crLjD4/OhNkRG+Fo7byZHtah0547nIeXYcpIXaUh0IAQY6gO5459qpGGYapcEOHtFXkIuA==", + "license": "MIT", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/immer" + } + }, + "node_modules/@rolldown/pluginutils": { + "version": "1.0.0-beta.27", + "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.0-beta.27.tgz", + "integrity": "sha512-+d0F4MKMCbeVUJwG96uQ4SgAznZNSq93I3V+9NHA4OpvqG8mRCpGdKmK8l/dl02h2CCDHwW2FqilnTyDcAnqjA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@rollup/rollup-android-arm-eabi": { + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.60.4.tgz", + "integrity": "sha512-F5QXMSiFebS9hKZj02XhWLLnRpJ3B3AROP0tWbFBSj+6kCbg5m9j5JoHKd4mmSVy5mS/IMQloYgYxCuJC0fxEQ==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-android-arm64": { + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.60.4.tgz", + "integrity": "sha512-GxxTKApUpzRhof7poWvCJHRF51C67u1R7D6DiluBE8wKU1u5GWE8t+v81JvJYtbawoBFX1hLv5Ei4eVjkWokaw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-darwin-arm64": { + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.60.4.tgz", + "integrity": "sha512-tua0TaJxMOB1R0V0RS1jFZ/RpURFDJIOR2A6jWwQeawuFyS4gBW+rntLRaQd0EQ4bd6Vp44Z2rXW+YYDBsj6IA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-darwin-x64": { + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.60.4.tgz", + "integrity": "sha512-CSKq7MsP+5PFIcydhAiR1K0UhEI1A2jWXVKHPCBZ151yOutENwvnPocgVHkivu2kviURtCEB6zUQw0vs8RrhMg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-freebsd-arm64": { + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.60.4.tgz", + "integrity": "sha512-+O8OkVdyvXMtJEciu2wS/pzm1IxntEEQx3z5TAVy4l32G0etZn+RsA48ARRrFm6Ri8fvqPQfgrvNxSjKAbnd3g==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@rollup/rollup-freebsd-x64": { + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.60.4.tgz", + "integrity": "sha512-Iw3oMskH3AfNuhU0MSN7vNbdi4me/NiYo2azqPz/Le16zHSa+3RRmliCMWWQmh4lcndccU40xcJuTYJZxNo/lw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@rollup/rollup-linux-arm-gnueabihf": { + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.60.4.tgz", + "integrity": "sha512-EIPRXTVQpHyF8WOo219AD2yEltPehLTcTMz2fn6JsatLYSzQf00hj3rulF+yauOlF9/FtM2WpkT/hJh/KJFGhA==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm-musleabihf": { + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.60.4.tgz", + "integrity": "sha512-J3Yh9PzzF1Ovah2At+lHiGQdsYgArxBbXv/zHfSyaiFQEqvNv7DcW98pCrmdjCZBrqBiKrKKe2V+aaSGWuBe/w==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-gnu": { + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.60.4.tgz", + "integrity": "sha512-BFDEZMYfUvLn37ONE1yMBojPxnMlTFsdyNoqncT0qFq1mAfllL+ATMMJd8TeuVMiX84s1KbcxcZbXInmcO2mRg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-musl": { + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.60.4.tgz", + "integrity": "sha512-pc9EYOSlOgdQ2uPl1o9PF6/kLSgaUosia7gOuS8mB69IxJvlclko1MECXysjs5ryez1/5zjYqx3+xYU0TU6R1A==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-loong64-gnu": { + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.60.4.tgz", + "integrity": "sha512-NxnomyxYerDh5n4iLrNa+sH+Z+U4BMEE46V2PgQ/hoB909i8gV1M5wPojWg9fk1jWpO3IQnOs20K4wyZuFLEFQ==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-loong64-musl": { + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.60.4.tgz", + "integrity": "sha512-nbJnQ8a3z1mtmrwImCYhc6BGpThAyYVRQxw9uKSKG4wR6aAYno9sVjJ0zaZcW9BPJX1GbrDPf+SvdWjgTuDmnw==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-ppc64-gnu": { + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.60.4.tgz", + "integrity": "sha512-2EU6acNrQLd8tYvo/LXW535wupT3m6fo7HKo6lr7ktQoItxTyOL1ZCR/GfGCuXl2vR+zmfI6eRXkSemafv+iVg==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-ppc64-musl": { + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.60.4.tgz", + "integrity": "sha512-WeBtoMuaMxiiIrO2IYP3xs6GMWkJP2C0EoT8beTLkUPmzV1i/UcOSVw1d5r9KBODtHKilG5yFxsGRnBbK3wJ4A==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-gnu": { + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.60.4.tgz", + "integrity": "sha512-FJHFfqpKUI3A10WrWKiFbBZ7yVbGT4q4B5o1qKFFojqpaYoh9LrQgqWCmmcxQzVSXYtyB5bzkXrYzlHTs21MYA==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-musl": { + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.60.4.tgz", + "integrity": "sha512-mcEl6CUT5IAUmQf1m9FYSmVqCJlpQ8r8eyftFUHG8i9OhY7BkBXSUdnLH5DOf0wCOjcP9v/QO93zpmF1SptCCw==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-s390x-gnu": { + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.60.4.tgz", + "integrity": "sha512-ynt3JxVd2w2buzoKDWIyiV1pJW93xlQic1THVLXilz429oijRpSHivZAgp65KBu+cMcgf1eVVjdnTLvPxgCuoQ==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-gnu": { + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.60.4.tgz", + "integrity": "sha512-Boiz5+MsaROEWDf+GGEwF8VMHGhlUoQMtIPjOgA5fv4osupqTVnJteQNKJwUcnUog2G55jYXH7KZFFiJe0TEzQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-musl": { + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.60.4.tgz", + "integrity": "sha512-+qfSY27qIrFfI/Hom04KYFw3GKZSGU4lXus51wsb5EuySfFlWRwjkKWoE9emgRw/ukoT4Udsj4W/+xxG8VbPKg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-openbsd-x64": { + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.60.4.tgz", + "integrity": "sha512-VpTfOPHgVXEBeeR8hZ2O0F3aSso+JDWqTWmTmzcQKted54IAdUVbxE+j/MVxUsKa8L20HJhv3vUezVPoquqWjA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ] + }, + "node_modules/@rollup/rollup-openharmony-arm64": { + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.60.4.tgz", + "integrity": "sha512-IPOsh5aRYuLv/nkU51X10Bf75Bsf6+gZdx1X+QP5QM6lIJFHHqbHLG0uJn/hWthzo13UAc2umiUorqZy3axoZg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ] + }, + "node_modules/@rollup/rollup-win32-arm64-msvc": { + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.60.4.tgz", + "integrity": "sha512-4QzE9E81OohJ/HKzHhsqU+zcYYojVOXlFMs1DdyMT6qXl/niOH7AVElmmEdUNHHS/oRkc++d5k6Vy85zFs0DEw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-ia32-msvc": { + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.60.4.tgz", + "integrity": "sha512-zTPgT1YuHHcd+Tmx7h8aml0FWFVelV5N54oHow9SLj+GfoDy/huQ+UV396N/C7KpMDMiPspRktzM1/0r1usYEA==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-gnu": { + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.60.4.tgz", + "integrity": "sha512-DRS4G7mi9lJxqEDezIkKCaUIKCrLUUDCUaCsTPCi/rtqaC6D/jjwslMQyiDU50Ka0JKpeXeRBFBAXwArY52vBw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-msvc": { + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.60.4.tgz", + "integrity": "sha512-QVTUovf40zgTqlFVrKA1uXMVvU2QWEFWfAH8Wdc48IxLvrJMQVMBRjuQyUpzZCDkakImib9eVazbWlC6ksWtJw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "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==", + "license": "MIT" + }, + "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==", + "license": "MIT" + }, + "node_modules/@supabase/auth-js": { + "version": "2.105.4", + "resolved": "https://registry.npmjs.org/@supabase/auth-js/-/auth-js-2.105.4.tgz", + "integrity": "sha512-Ejfa37M5xoIwoxVebxRahnwubPo8g22qkXQ4p50+N9MIvU9UZoN+A8dwVPtczzGf8oV/YXN80ZPxK4aWXuSN/A==", + "license": "MIT", + "dependencies": { + "tslib": "2.8.1" + }, + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@supabase/functions-js": { + "version": "2.105.4", + "resolved": "https://registry.npmjs.org/@supabase/functions-js/-/functions-js-2.105.4.tgz", + "integrity": "sha512-JVNKbBft3Qkja+WlGaE026AJ2AH9K0UTsxsfvEIHgd4zFrBor4BYRCrYFrv9IDsvVqkF72wKDsODJl5GY/C4tA==", + "license": "MIT", + "dependencies": { + "tslib": "2.8.1" + }, + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@supabase/phoenix": { + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/@supabase/phoenix/-/phoenix-0.4.2.tgz", + "integrity": "sha512-YSAGnmDAfuleFCVt3CeurQZAhxRfXWeZIIkwp7NhYzQ1UwW6ePSnzsFAiUm/mbCkfoCf70QQHKW/K6RKh52a4A==", + "license": "MIT" + }, + "node_modules/@supabase/postgrest-js": { + "version": "2.105.4", + "resolved": "https://registry.npmjs.org/@supabase/postgrest-js/-/postgrest-js-2.105.4.tgz", + "integrity": "sha512-SppIyLo/kTwIlz1qpv2HN1EQqBg0GVktrDDFsXygYROha3MgVn4rT7p5EjFHFqXQm2rdRGb/BI7bc+jr10m91w==", + "license": "MIT", + "dependencies": { + "tslib": "2.8.1" + }, + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@supabase/realtime-js": { + "version": "2.105.4", + "resolved": "https://registry.npmjs.org/@supabase/realtime-js/-/realtime-js-2.105.4.tgz", + "integrity": "sha512-6ov6c59+8D9h7q4M4Gy/uDJlC0Akxl9/714Y+6vJ+Sijuc16TS/p5DwhfRCLNcIhNiej1gEt+CQUwsjiPt4PxQ==", + "license": "MIT", + "dependencies": { + "@supabase/phoenix": "^0.4.2", + "tslib": "2.8.1" + }, + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@supabase/storage-js": { + "version": "2.105.4", + "resolved": "https://registry.npmjs.org/@supabase/storage-js/-/storage-js-2.105.4.tgz", + "integrity": "sha512-Jx+pzMP1Whjof2PWHoVBUA75/p7PQE9CqKBzn1oXVyJDOggMLSH2OzVWwsXYaxEpdC1K/KltwmOX44nL3LHl9g==", + "license": "MIT", + "dependencies": { + "iceberg-js": "^0.8.1", + "tslib": "2.8.1" + }, + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@supabase/supabase-js": { + "version": "2.105.4", + "resolved": "https://registry.npmjs.org/@supabase/supabase-js/-/supabase-js-2.105.4.tgz", + "integrity": "sha512-cEnx+k49knU+qdIP7rXwR6fqEXPHZs+74xFK1R0S8MgQ7v9tbePVdGxvO03n3bPympMdJWVLadARBfU4TgNHCQ==", + "license": "MIT", + "dependencies": { + "@supabase/auth-js": "2.105.4", + "@supabase/functions-js": "2.105.4", + "@supabase/postgrest-js": "2.105.4", + "@supabase/realtime-js": "2.105.4", + "@supabase/storage-js": "2.105.4" + }, + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@tauri-apps/api": { + "version": "2.11.0", + "resolved": "https://registry.npmjs.org/@tauri-apps/api/-/api-2.11.0.tgz", + "integrity": "sha512-7CinYODhky9lmO23xHnUFv0Xt43fbtWMyxZcLcRBlFkcgXKuEirBvHpmtJ89YMhyeGcq20Wuc47Fa4XjyniywA==", + "license": "Apache-2.0 OR MIT", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/tauri" + } + }, + "node_modules/@tauri-apps/cli": { + "version": "2.11.1", + "resolved": "https://registry.npmjs.org/@tauri-apps/cli/-/cli-2.11.1.tgz", + "integrity": "sha512-rpEbaJ/HzNb6fwsquwoAbq29/Vt4gADhS423A8fdkwL4edJ0wZmoB8ar7O6JPDL834MUKOCm/rrJ7c9oAaEaYQ==", + "dev": true, + "license": "Apache-2.0 OR MIT", + "bin": { + "tauri": "tauri.js" + }, + "engines": { + "node": ">= 10" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/tauri" + }, + "optionalDependencies": { + "@tauri-apps/cli-darwin-arm64": "2.11.1", + "@tauri-apps/cli-darwin-x64": "2.11.1", + "@tauri-apps/cli-linux-arm-gnueabihf": "2.11.1", + "@tauri-apps/cli-linux-arm64-gnu": "2.11.1", + "@tauri-apps/cli-linux-arm64-musl": "2.11.1", + "@tauri-apps/cli-linux-riscv64-gnu": "2.11.1", + "@tauri-apps/cli-linux-x64-gnu": "2.11.1", + "@tauri-apps/cli-linux-x64-musl": "2.11.1", + "@tauri-apps/cli-win32-arm64-msvc": "2.11.1", + "@tauri-apps/cli-win32-ia32-msvc": "2.11.1", + "@tauri-apps/cli-win32-x64-msvc": "2.11.1" + } + }, + "node_modules/@tauri-apps/cli-darwin-arm64": { + "version": "2.11.1", + "resolved": "https://registry.npmjs.org/@tauri-apps/cli-darwin-arm64/-/cli-darwin-arm64-2.11.1.tgz", + "integrity": "sha512-6eEKMBXsQPCuM1EmvrjT2+aBuxWQuFdKdW8pzNuNQtpq45nEEpBlD5gr8pUeAyOU1DQKlkFaEc/MPBxb/Pfjtg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0 OR MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@tauri-apps/cli-darwin-x64": { + "version": "2.11.1", + "resolved": "https://registry.npmjs.org/@tauri-apps/cli-darwin-x64/-/cli-darwin-x64-2.11.1.tgz", + "integrity": "sha512-LQUO7exfRWjWALNhetph5guWpMeHphRpokOLk0OIbTTExaNwJNFu3I4vb+CCM/4G/QGoZe/5XikZOJdNEFP1ig==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0 OR MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@tauri-apps/cli-linux-arm-gnueabihf": { + "version": "2.11.1", + "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-arm-gnueabihf/-/cli-linux-arm-gnueabihf-2.11.1.tgz", + "integrity": "sha512-5i/awiBCRRhOUG8yjn0fMHXIWD5Ez8eEk5LtvOxyQrKuJkRaZDvnbIjZbE183blAwkoA4xN3aO/prJiqscl02Q==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "Apache-2.0 OR MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@tauri-apps/cli-linux-arm64-gnu": { + "version": "2.11.1", + "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-arm64-gnu/-/cli-linux-arm64-gnu-2.11.1.tgz", + "integrity": "sha512-9LrwDw3S9Fygtw/Q6WDhOP+3svJRGAsejeE+GKrc0eO1ThMVhwi2LL6hw4dlKw93IfS7VY1G19sWGxJ/NcU4nA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0 OR MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@tauri-apps/cli-linux-arm64-musl": { + "version": "2.11.1", + "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-arm64-musl/-/cli-linux-arm64-musl-2.11.1.tgz", + "integrity": "sha512-mNA5dbbqPqDUdTIwdUYYuhO2GvIe9UnB2r0VU2njxBOS3Opbx4gKNC5yP0Iu4rYmEmqdlwry9VzGZQ3wq9dyFg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0 OR MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@tauri-apps/cli-linux-riscv64-gnu": { + "version": "2.11.1", + "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-riscv64-gnu/-/cli-linux-riscv64-gnu-2.11.1.tgz", + "integrity": "sha512-fZj3Gwq+6fUs305T5WQiD5iSGJw+j/4w/HGmk4sHDAcy+rp9zU5eaxB7nOyz5/I/nkNAuKPqfp6uIbiUBXkBCw==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "Apache-2.0 OR MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@tauri-apps/cli-linux-x64-gnu": { + "version": "2.11.1", + "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-x64-gnu/-/cli-linux-x64-gnu-2.11.1.tgz", + "integrity": "sha512-XFxGxOvHM7jjeD6ozCKdGfhzJ7lERYDGZl1/Kb4fsvchaJsfLJ981TlyTG8Qy/gFq+f5GitH3bfrX9JAkjPEyw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0 OR MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@tauri-apps/cli-linux-x64-musl": { + "version": "2.11.1", + "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-x64-musl/-/cli-linux-x64-musl-2.11.1.tgz", + "integrity": "sha512-d5C2/Zm+68v7R9wTuTCjRQEVrWjcdMkJBZ1+rXse+QdMMlTB9+u9PDNDLw9PQflWxYLaYZ7tjxxL9Nb9II6PbA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0 OR MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@tauri-apps/cli-win32-arm64-msvc": { + "version": "2.11.1", + "resolved": "https://registry.npmjs.org/@tauri-apps/cli-win32-arm64-msvc/-/cli-win32-arm64-msvc-2.11.1.tgz", + "integrity": "sha512-YdeVWFAR1pTXzUU6NLstPq4G6OLxuDrXCXEBdmBH+5EZIDXUx0D2kJlz3+YjpazkKvAzYpgziTsyRagls0OfRQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0 OR MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@tauri-apps/cli-win32-ia32-msvc": { + "version": "2.11.1", + "resolved": "https://registry.npmjs.org/@tauri-apps/cli-win32-ia32-msvc/-/cli-win32-ia32-msvc-2.11.1.tgz", + "integrity": "sha512-VBGkuH0eB9K9LLSMv361Gzr5Ou72sCS4+ztpmkWEQ+wd/amhcYOsf3X6qn1RJZDzIhiOYHJEOysZUC3baD01rA==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "Apache-2.0 OR MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@tauri-apps/cli-win32-x64-msvc": { + "version": "2.11.1", + "resolved": "https://registry.npmjs.org/@tauri-apps/cli-win32-x64-msvc/-/cli-win32-x64-msvc-2.11.1.tgz", + "integrity": "sha512-b3ORhIAKgp9ZYY+zBt7b7r0kLU2kjvyGF0+MS2SBym3emsweGPybEqocJcmtMuxyBhkOKHP4CiuEJEDuAlTx6A==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0 OR MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@tauri-apps/plugin-opener": { + "version": "2.5.4", + "resolved": "https://registry.npmjs.org/@tauri-apps/plugin-opener/-/plugin-opener-2.5.4.tgz", + "integrity": "sha512-1HnPkb+AmgO29HBazm4uPLKB+r7zzcTBW1d0fyYp1uP+jwtpoiNDGKMMzz58SFp49nOIrxdE3aUJtT57lfO9CQ==", + "license": "MIT OR Apache-2.0", + "dependencies": { + "@tauri-apps/api": "^2.11.0" + } + }, + "node_modules/@testing-library/dom": { + "version": "10.4.1", + "resolved": "https://registry.npmjs.org/@testing-library/dom/-/dom-10.4.1.tgz", + "integrity": "sha512-o4PXJQidqJl82ckFaXUeoAW+XysPLauYI43Abki5hABd853iMhitooc6znOnczgbTYmEP6U6/y1ZyKAIsvMKGg==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@babel/code-frame": "^7.10.4", + "@babel/runtime": "^7.12.5", + "@types/aria-query": "^5.0.1", + "aria-query": "5.3.0", + "dom-accessibility-api": "^0.5.9", + "lz-string": "^1.5.0", + "picocolors": "1.1.1", + "pretty-format": "^27.0.2" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/@testing-library/jest-dom": { + "version": "6.9.1", + "resolved": "https://registry.npmjs.org/@testing-library/jest-dom/-/jest-dom-6.9.1.tgz", + "integrity": "sha512-zIcONa+hVtVSSep9UT3jZ5rizo2BsxgyDYU7WFD5eICBE7no3881HGeb/QkGfsJs6JTkY1aQhT7rIPC7e+0nnA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@adobe/css-tools": "^4.4.0", + "aria-query": "^5.0.0", + "css.escape": "^1.5.1", + "dom-accessibility-api": "^0.6.3", + "picocolors": "^1.1.1", + "redent": "^3.0.0" + }, + "engines": { + "node": ">=14", + "npm": ">=6", + "yarn": ">=1" + } + }, + "node_modules/@testing-library/jest-dom/node_modules/dom-accessibility-api": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/dom-accessibility-api/-/dom-accessibility-api-0.6.3.tgz", + "integrity": "sha512-7ZgogeTnjuHbo+ct10G9Ffp0mif17idi0IyWNVA/wcwcm7NPOD/WEHVP3n7n3MhXqxoIYm8d6MuZohYWIZ4T3w==", + "dev": true, + "license": "MIT" + }, + "node_modules/@testing-library/react": { + "version": "16.3.2", + "resolved": "https://registry.npmjs.org/@testing-library/react/-/react-16.3.2.tgz", + "integrity": "sha512-XU5/SytQM+ykqMnAnvB2umaJNIOsLF3PVv//1Ew4CTcpz0/BRyy/af40qqrt7SjKpDdT1saBMc42CUok5gaw+g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.12.5" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@testing-library/dom": "^10.0.0", + "@types/react": "^18.0.0 || ^19.0.0", + "@types/react-dom": "^18.0.0 || ^19.0.0", + "react": "^18.0.0 || ^19.0.0", + "react-dom": "^18.0.0 || ^19.0.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@types/aria-query": { + "version": "5.0.4", + "resolved": "https://registry.npmjs.org/@types/aria-query/-/aria-query-5.0.4.tgz", + "integrity": "sha512-rfT93uj5s0PRL7EzccGMs3brplhcrghnDoV26NqKhCAS1hVo+WdNsPvE/yb6ilfr5hi2MEk6d5EWJTKdxg8jVw==", + "dev": true, + "license": "MIT", + "peer": true + }, + "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, + "license": "MIT", + "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, + "license": "MIT", + "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, + "license": "MIT", + "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, + "license": "MIT", + "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==", + "license": "MIT" + }, + "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==", + "license": "MIT" + }, + "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==", + "license": "MIT" + }, + "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==", + "license": "MIT", + "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==", + "license": "MIT" + }, + "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==", + "license": "MIT", + "dependencies": { + "@types/d3-time": "*" + } + }, + "node_modules/@types/d3-shape": { + "version": "3.1.8", + "resolved": "https://registry.npmjs.org/@types/d3-shape/-/d3-shape-3.1.8.tgz", + "integrity": "sha512-lae0iWfcDeR7qt7rA88BNiqdvPS5pFVPpo5OfjElwNaT2yyekbM0C9vK+yqBqEmHr6lDkRnYNoTBYlAgJa7a4w==", + "license": "MIT", + "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==", + "license": "MIT" + }, + "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==", + "license": "MIT" + }, + "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, + "license": "MIT" + }, + "node_modules/@types/react": { + "version": "19.2.14", + "resolved": "https://registry.npmjs.org/@types/react/-/react-19.2.14.tgz", + "integrity": "sha512-ilcTH/UniCkMdtexkoCN0bI7pMcJDvmQFPvuPvmEaYA/NSfFTAgdUSLAoVjaRJm7+6PvcM+q1zYOwS4wTYMF9w==", + "devOptional": true, + "license": "MIT", + "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, + "license": "MIT", + "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==", + "license": "MIT" + }, + "node_modules/@vitejs/plugin-react": { + "version": "4.7.0", + "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-4.7.0.tgz", + "integrity": "sha512-gUu9hwfWvvEDBBmgtAowQCojwZmJ5mcLn3aufeCsitijs3+f2NsrPtlAWIR6OPiqljl96GVCUbLe0HyqIpVaoA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/core": "^7.28.0", + "@babel/plugin-transform-react-jsx-self": "^7.27.1", + "@babel/plugin-transform-react-jsx-source": "^7.27.1", + "@rolldown/pluginutils": "1.0.0-beta.27", + "@types/babel__core": "^7.20.5", + "react-refresh": "^0.17.0" + }, + "engines": { + "node": "^14.18.0 || >=16.0.0" + }, + "peerDependencies": { + "vite": "^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0" + } + }, + "node_modules/@vitest/expect": { + "version": "2.1.9", + "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-2.1.9.tgz", + "integrity": "sha512-UJCIkTBenHeKT1TTlKMJWy1laZewsRIzYighyYiJKZreqtdxSos/S1t+ktRMQWu2CKqaarrkeszJx1cgC5tGZw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@vitest/spy": "2.1.9", + "@vitest/utils": "2.1.9", + "chai": "^5.1.2", + "tinyrainbow": "^1.2.0" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "node_modules/@vitest/pretty-format": { + "version": "2.1.9", + "resolved": "https://registry.npmjs.org/@vitest/pretty-format/-/pretty-format-2.1.9.tgz", + "integrity": "sha512-KhRIdGV2U9HOUzxfiHmY8IFHTdqtOhIzCpd8WRdJiE7D/HUcZVD0EgQCVjm+Q9gkUXWgBvMmTtZgIG48wq7sOQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "tinyrainbow": "^1.2.0" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "node_modules/@vitest/runner": { + "version": "2.1.9", + "resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-2.1.9.tgz", + "integrity": "sha512-ZXSSqTFIrzduD63btIfEyOmNcBmQvgOVsPNPe0jYtESiXkhd8u2erDLnMxmGrDCwHCCHE7hxwRDCT3pt0esT4g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@vitest/utils": "2.1.9", + "pathe": "^1.1.2" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "node_modules/@vitest/snapshot": { + "version": "2.1.9", + "resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-2.1.9.tgz", + "integrity": "sha512-oBO82rEjsxLNJincVhLhaxxZdEtV0EFHMK5Kmx5sJ6H9L183dHECjiefOAdnqpIgT5eZwT04PoggUnW88vOBNQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@vitest/pretty-format": "2.1.9", + "magic-string": "^0.30.12", + "pathe": "^1.1.2" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "node_modules/@vitest/spy": { + "version": "2.1.9", + "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-2.1.9.tgz", + "integrity": "sha512-E1B35FwzXXTs9FHNK6bDszs7mtydNi5MIfUWpceJ8Xbfb1gBMscAnwLbEu+B44ed6W3XjL9/ehLPHR1fkf1KLQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "tinyspy": "^3.0.2" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "node_modules/@vitest/utils": { + "version": "2.1.9", + "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-2.1.9.tgz", + "integrity": "sha512-v0psaMSkNJ3A2NMrUEHFRzJtDPFn+/VWZ5WxImB21T9fjucJRmS7xCS3ppEnARb9y11OAzaD+P2Ps+b+BGX5iQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@vitest/pretty-format": "2.1.9", + "loupe": "^3.1.2", + "tinyrainbow": "^1.2.0" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "node_modules/agent-base": { + "version": "7.1.4", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.4.tgz", + "integrity": "sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 14" + } + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "license": "MIT", + "peer": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true, + "license": "MIT", + "peer": true, + "engines": { + "node": ">=10" + }, + "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, + "license": "MIT" + }, + "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, + "license": "ISC", + "dependencies": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/anymatch/node_modules/picomatch": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.2.tgz", + "integrity": "sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==", + "dev": true, + "license": "MIT", + "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, + "license": "MIT" + }, + "node_modules/aria-query": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.3.0.tgz", + "integrity": "sha512-b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "dequal": "^2.0.3" + } + }, + "node_modules/assertion-error": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-2.0.1.tgz", + "integrity": "sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + } + }, + "node_modules/asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/autoprefixer": { + "version": "10.5.0", + "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.5.0.tgz", + "integrity": "sha512-FMhOoZV4+qR6aTUALKX2rEqGG+oyATvwBt9IIzVR5rMa2HRWPkxf+P+PAJLD1I/H5/II+HuZcBJYEFBpq39ong==", + "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" + } + ], + "license": "MIT", + "dependencies": { + "browserslist": "^4.28.2", + "caniuse-lite": "^1.0.30001787", + "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/baseline-browser-mapping": { + "version": "2.10.29", + "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.10.29.tgz", + "integrity": "sha512-Asa2krT+XTPZINCS+2QcyS8WTkObE77RwkydwF7h6DmnKqbvlalz93m/dnphUyCa6SWSP51VgtEUf2FN+gelFQ==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "baseline-browser-mapping": "dist/cli.cjs" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "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, + "license": "MIT", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "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, + "license": "MIT", + "dependencies": { + "fill-range": "^7.1.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/browserslist": { + "version": "4.28.2", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.2.tgz", + "integrity": "sha512-48xSriZYYg+8qXna9kwqjIVzuQxi+KYWp2+5nCYnYKPTr0LvD89Jqk2Or5ogxz0NUMfIjhh2lIUX/LyX9B4oIg==", + "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" + } + ], + "license": "MIT", + "dependencies": { + "baseline-browser-mapping": "^2.10.12", + "caniuse-lite": "^1.0.30001782", + "electron-to-chromium": "^1.5.328", + "node-releases": "^2.0.36", + "update-browserslist-db": "^1.2.3" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, + "node_modules/cac": { + "version": "6.7.14", + "resolved": "https://registry.npmjs.org/cac/-/cac-6.7.14.tgz", + "integrity": "sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/call-bind-apply-helpers": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", + "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "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, + "license": "MIT", + "engines": { + "node": ">= 6" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001792", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001792.tgz", + "integrity": "sha512-hVLMUZFgR4JJ6ACt1uEESvQN1/dBVqPAKY0hgrV70eN3391K6juAfTjKZLKvOMsx8PxA7gsY1/tLMMTcfFLLpw==", + "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" + } + ], + "license": "CC-BY-4.0" + }, + "node_modules/chai": { + "version": "5.3.3", + "resolved": "https://registry.npmjs.org/chai/-/chai-5.3.3.tgz", + "integrity": "sha512-4zNhdJD/iOjSH0A05ea+Ke6MU5mmpQcbQsSOkgdaUMJ9zTlDTD/GYlwohmIE2u0gaxHYiVHEn1Fw9mZ/ktJWgw==", + "dev": true, + "license": "MIT", + "dependencies": { + "assertion-error": "^2.0.1", + "check-error": "^2.1.1", + "deep-eql": "^5.0.1", + "loupe": "^3.1.0", + "pathval": "^2.0.0" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/check-error": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/check-error/-/check-error-2.1.3.tgz", + "integrity": "sha512-PAJdDJusoxnwm1VwW07VWwUN1sl7smmC3OKggvndJFadxxDRyFJBX/ggnu/KE4kQAB7a3Dp8f/YXC1FlUprWmA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 16" + } + }, + "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, + "license": "MIT", + "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, + "license": "ISC", + "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==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "dev": true, + "license": "MIT", + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "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, + "license": "MIT", + "engines": { + "node": ">= 6" + } + }, + "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, + "license": "MIT" + }, + "node_modules/cookie": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-1.1.1.tgz", + "integrity": "sha512-ei8Aos7ja0weRpFzJnEA9UHJ/7XQmqglbRwnf2ATjcB9Wq874VKH9kfjjirM6UhU2/E5fFYadylyhFldcqSidQ==", + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/css.escape": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/css.escape/-/css.escape-1.5.1.tgz", + "integrity": "sha512-YUifsXXuknHlUsmlgyY0PKzgPOr7/FjCePfHNt0jxm83wHZi44VDMQ7/fGNkjY3/jV1MC+1CmZbaHzugyeRtpg==", + "dev": true, + "license": "MIT" + }, + "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, + "license": "MIT", + "bin": { + "cssesc": "bin/cssesc" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/cssstyle": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/cssstyle/-/cssstyle-4.6.0.tgz", + "integrity": "sha512-2z+rWdzbbSZv6/rhtvzvqeZQHrBaqgogqt85sqFNbabZOuFbCVFb8kPeEtZjiKkbrm395irpNKiYeFeLiQnFPg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@asamuzakjp/css-color": "^3.2.0", + "rrweb-cssom": "^0.8.0" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/cssstyle/node_modules/rrweb-cssom": { + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/rrweb-cssom/-/rrweb-cssom-0.8.0.tgz", + "integrity": "sha512-guoltQEx+9aMf2gDZ0s62EcV8lsXR+0w8915TC3ITdn2YueuNjdAYh/levpU9nFaoChh9RUS5ZdQMrKfVEN9tw==", + "dev": true, + "license": "MIT" + }, + "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, + "license": "MIT" + }, + "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==", + "license": "ISC", + "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==", + "license": "ISC", + "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==", + "license": "BSD-3-Clause", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-format": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/d3-format/-/d3-format-3.1.2.tgz", + "integrity": "sha512-AJDdYOdnyRDV5b6ArilzCPPwc1ejkHcoyFarqlPqT7zRYjhavcT3uSrqcMvsgh2CgoPbK3RCwyHaVyxYcP2Arg==", + "license": "ISC", + "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==", + "license": "ISC", + "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==", + "license": "ISC", + "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==", + "license": "ISC", + "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==", + "license": "ISC", + "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==", + "license": "ISC", + "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==", + "license": "ISC", + "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==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/data-urls": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-5.0.0.tgz", + "integrity": "sha512-ZYP5VBHshaDAiVZxjbRVcFJpc+4xGgT0bK3vzy1HLN8jTO975HEbuYzZJcHoQEY5K1a0z8YayJkyVETa08eNTg==", + "dev": true, + "license": "MIT", + "dependencies": { + "whatwg-mimetype": "^4.0.0", + "whatwg-url": "^14.0.0" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/debug": { + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", + "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/decimal.js": { + "version": "10.6.0", + "resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.6.0.tgz", + "integrity": "sha512-YpgQiITW3JXGntzdUmyUR1V812Hn8T1YVXhCu+wO3OpS4eU9l4YdD3qjyiKdV6mvV29zapkMeD390UVEf2lkUg==", + "dev": true, + "license": "MIT" + }, + "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==", + "license": "MIT" + }, + "node_modules/deep-eql": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-5.0.2.tgz", + "integrity": "sha512-h5k/5U50IJJFpzfL6nO9jaaumfjO/f2NjK/oYB2Djzm4p9L+3T9qWpZqZ2hAbLPuuYq9wrU08WQyBTL5GbPk5Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/dequal": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz", + "integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "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, + "license": "Apache-2.0" + }, + "node_modules/dlv": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/dlv/-/dlv-1.1.3.tgz", + "integrity": "sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==", + "dev": true, + "license": "MIT" + }, + "node_modules/dom-accessibility-api": { + "version": "0.5.16", + "resolved": "https://registry.npmjs.org/dom-accessibility-api/-/dom-accessibility-api-0.5.16.tgz", + "integrity": "sha512-X7BJ2yElsnOJ30pZF4uIIDfBEVgF4XEBxL9Bxhy6dnrm5hkzqmsWHGTiHqRiITNhMyFLyAiWndIJP7Z1NTteDg==", + "dev": true, + "license": "MIT", + "peer": true + }, + "node_modules/dunder-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", + "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.1", + "es-errors": "^1.3.0", + "gopd": "^1.2.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/electron-to-chromium": { + "version": "1.5.356", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.356.tgz", + "integrity": "sha512-9NgFd7m5t5MCJ5rUSjJITUXAH9mEGlrlofnMf4YEr+pz6JlP7cWmTAH+JFmbPnaSW8koVTkuW7pacORWAnA5Yw==", + "dev": true, + "license": "ISC" + }, + "node_modules/entities": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/entities/-/entities-6.0.1.tgz", + "integrity": "sha512-aN97NXWF6AWBTahfVOIrB/NShkzi5H7F9r1s9mD3cDj4Ko5f2qhhVoYMibXF7GlLveb/D2ioWay8lxI97Ven3g==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=0.12" + }, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } + }, + "node_modules/es-define-property": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", + "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-errors": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", + "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-module-lexer": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.7.0.tgz", + "integrity": "sha512-jEQoCwk8hyb2AZziIOLhDqpm5+2ww5uIE6lkO/6jcOCusfk6LhMHpXXfBLXTZ7Ydyt0j4VoUQv6uGNYbdW+kBA==", + "dev": true, + "license": "MIT" + }, + "node_modules/es-object-atoms": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", + "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-set-tostringtag": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz", + "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.6", + "has-tostringtag": "^1.0.2", + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-toolkit": { + "version": "1.46.1", + "resolved": "https://registry.npmjs.org/es-toolkit/-/es-toolkit-1.46.1.tgz", + "integrity": "sha512-5eNtXOs3tbfxXOj04tjjseeWkRWaoCjdEI+96DgwzZoe6c9juL49pXlzAFTI72aWC9Y8p7168g6XIKjh7k6pyQ==", + "license": "MIT", + "workspaces": [ + "docs", + "benchmarks" + ] + }, + "node_modules/esbuild": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.27.7.tgz", + "integrity": "sha512-IxpibTjyVnmrIQo5aqNpCgoACA/dTKLTlhMHihVHhdkxKyPO1uBBthumT0rdHmcsk9uMonIWS0m4FljWzILh3w==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=18" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.27.7", + "@esbuild/android-arm": "0.27.7", + "@esbuild/android-arm64": "0.27.7", + "@esbuild/android-x64": "0.27.7", + "@esbuild/darwin-arm64": "0.27.7", + "@esbuild/darwin-x64": "0.27.7", + "@esbuild/freebsd-arm64": "0.27.7", + "@esbuild/freebsd-x64": "0.27.7", + "@esbuild/linux-arm": "0.27.7", + "@esbuild/linux-arm64": "0.27.7", + "@esbuild/linux-ia32": "0.27.7", + "@esbuild/linux-loong64": "0.27.7", + "@esbuild/linux-mips64el": "0.27.7", + "@esbuild/linux-ppc64": "0.27.7", + "@esbuild/linux-riscv64": "0.27.7", + "@esbuild/linux-s390x": "0.27.7", + "@esbuild/linux-x64": "0.27.7", + "@esbuild/netbsd-arm64": "0.27.7", + "@esbuild/netbsd-x64": "0.27.7", + "@esbuild/openbsd-arm64": "0.27.7", + "@esbuild/openbsd-x64": "0.27.7", + "@esbuild/openharmony-arm64": "0.27.7", + "@esbuild/sunos-x64": "0.27.7", + "@esbuild/win32-arm64": "0.27.7", + "@esbuild/win32-ia32": "0.27.7", + "@esbuild/win32-x64": "0.27.7" + } + }, + "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, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/estree-walker": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz", + "integrity": "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/estree": "^1.0.0" + } + }, + "node_modules/eventemitter3": { + "version": "5.0.4", + "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-5.0.4.tgz", + "integrity": "sha512-mlsTRyGaPBjPedk6Bvw+aqbsXDtoAyAzm5MO7JgU+yVRyMQ5O8bD4Kcci7BS85f93veegeCPkL8R4GLClnjLFw==", + "license": "MIT" + }, + "node_modules/expect-type": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/expect-type/-/expect-type-1.3.0.tgz", + "integrity": "sha512-knvyeauYhqjOYvQ66MznSMs83wmHrCycNEN6Ao+2AeYEfxUIkuiVxdEa1qlGEPK+We3n0THiDciYSsCcgW/DoA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=12.0.0" + } + }, + "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, + "license": "MIT", + "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, + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "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, + "license": "ISC", + "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, + "license": "MIT", + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "picomatch": "^3 || ^4" + }, + "peerDependenciesMeta": { + "picomatch": { + "optional": true + } + } + }, + "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, + "license": "MIT", + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/form-data": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.5.tgz", + "integrity": "sha512-8RipRLol37bNs2bhoV67fiTEvdTrbMUYcFTiy3+wuuOnUog2QBHCZWXDRijWQfAkhBj2Uf5UnVaiWwA5vdd82w==", + "dev": true, + "license": "MIT", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "es-set-tostringtag": "^2.1.0", + "hasown": "^2.0.2", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, + "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, + "license": "MIT", + "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, + "license": "MIT", + "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, + "license": "MIT", + "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, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/get-intrinsic": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", + "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "es-define-property": "^1.0.1", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.1.1", + "function-bind": "^1.1.2", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "has-symbols": "^1.1.0", + "hasown": "^2.0.2", + "math-intrinsics": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", + "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", + "dev": true, + "license": "MIT", + "dependencies": { + "dunder-proto": "^1.0.1", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "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, + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/gopd": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", + "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-symbols": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", + "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-tostringtag": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", + "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", + "dev": true, + "license": "MIT", + "dependencies": { + "has-symbols": "^1.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/hasown": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.3.tgz", + "integrity": "sha512-ej4AhfhfL2Q2zpMmLo7U1Uv9+PyhIZpgQLGT1F9miIGmiCJIoCgSmczFdrc97mWT4kVY72KA+WnnhJ5pghSvSg==", + "dev": true, + "license": "MIT", + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/html-encoding-sniffer": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-4.0.0.tgz", + "integrity": "sha512-Y22oTqIU4uuPgEemfz7NDJz6OeKf12Lsu+QC+s3BVpda64lTiMYCyGwg5ki4vFxkMwQdeZDl2adZoqUgdFuTgQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "whatwg-encoding": "^3.1.1" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/http-proxy-agent": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-7.0.2.tgz", + "integrity": "sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==", + "dev": true, + "license": "MIT", + "dependencies": { + "agent-base": "^7.1.0", + "debug": "^4.3.4" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/https-proxy-agent": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.6.tgz", + "integrity": "sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==", + "dev": true, + "license": "MIT", + "dependencies": { + "agent-base": "^7.1.2", + "debug": "4" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/iceberg-js": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/iceberg-js/-/iceberg-js-0.8.1.tgz", + "integrity": "sha512-1dhVQZXhcHje7798IVM+xoo/1ZdVfzOMIc8/rgVSijRK38EDqOJoGula9N/8ZI5RD8QTxNQtK/Gozpr+qUqRRA==", + "license": "MIT", + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/iconv-lite": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", + "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", + "dev": true, + "license": "MIT", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/immer": { + "version": "10.2.0", + "resolved": "https://registry.npmjs.org/immer/-/immer-10.2.0.tgz", + "integrity": "sha512-d/+XTN3zfODyjr89gM3mPq1WNX2B8pYsu7eORitdwyA2sBubnTl3laYlBk4sXY5FUa5qTZGBDPJICVbvqzjlbw==", + "license": "MIT", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/immer" + } + }, + "node_modules/indent-string": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", + "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "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==", + "license": "ISC", + "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, + "license": "MIT", + "dependencies": { + "binary-extensions": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-core-module": { + "version": "2.16.2", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.2.tgz", + "integrity": "sha512-evOr8xfXKxE6qSR0hSXL2r3sd7ALj8+7jQEUvPYcm5sgZFdJ+AYzT6yNmJenvIYQBgIGwfwz08sL8zoL7yq2BA==", + "dev": true, + "license": "MIT", + "dependencies": { + "hasown": "^2.0.3" + }, + "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, + "license": "MIT", + "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, + "license": "MIT", + "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, + "license": "MIT", + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/is-potential-custom-element-name": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz", + "integrity": "sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==", + "dev": true, + "license": "MIT" + }, + "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, + "license": "MIT", + "bin": { + "jiti": "bin/jiti.js" + } + }, + "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, + "license": "MIT" + }, + "node_modules/jsdom": { + "version": "25.0.1", + "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-25.0.1.tgz", + "integrity": "sha512-8i7LzZj7BF8uplX+ZyOlIz86V6TAsSs+np6m1kpW9u0JWi4z/1t+FzcK1aek+ybTnAC4KhBL4uXCNT0wcUIeCw==", + "dev": true, + "license": "MIT", + "dependencies": { + "cssstyle": "^4.1.0", + "data-urls": "^5.0.0", + "decimal.js": "^10.4.3", + "form-data": "^4.0.0", + "html-encoding-sniffer": "^4.0.0", + "http-proxy-agent": "^7.0.2", + "https-proxy-agent": "^7.0.5", + "is-potential-custom-element-name": "^1.0.1", + "nwsapi": "^2.2.12", + "parse5": "^7.1.2", + "rrweb-cssom": "^0.7.1", + "saxes": "^6.0.0", + "symbol-tree": "^3.2.4", + "tough-cookie": "^5.0.0", + "w3c-xmlserializer": "^5.0.0", + "webidl-conversions": "^7.0.0", + "whatwg-encoding": "^3.1.1", + "whatwg-mimetype": "^4.0.0", + "whatwg-url": "^14.0.0", + "ws": "^8.18.0", + "xml-name-validator": "^5.0.0" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "canvas": "^2.11.2" + }, + "peerDependenciesMeta": { + "canvas": { + "optional": true + } + } + }, + "node_modules/jsesc": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz", + "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", + "dev": true, + "license": "MIT", + "bin": { + "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=6" + } + }, + "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, + "license": "MIT", + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "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, + "license": "MIT", + "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, + "license": "MIT" + }, + "node_modules/loupe": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/loupe/-/loupe-3.2.1.tgz", + "integrity": "sha512-CdzqowRJCeLU72bHvWqwRBBlLcMEtIvGrlvef74kMnV2AolS9Y8xUv1I0U/MNAWMhBlKIoyuEgoJ0t/bbwHbLQ==", + "dev": true, + "license": "MIT" + }, + "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, + "license": "ISC", + "dependencies": { + "yallist": "^3.0.2" + } + }, + "node_modules/lucide-react": { + "version": "1.16.0", + "resolved": "https://registry.npmjs.org/lucide-react/-/lucide-react-1.16.0.tgz", + "integrity": "sha512-dYwyPzb4MEKpGUmNYk3WKWPnMrHs3FKM+q94kAnJrcDIqqn1hq2xY8scaS2ovsOCM5D51ey2gaRG3PBb1vgoYQ==", + "license": "ISC", + "peerDependencies": { + "react": "^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0" + } + }, + "node_modules/lz-string": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/lz-string/-/lz-string-1.5.0.tgz", + "integrity": "sha512-h5bgJWpxJNswbU7qCrV0tIKQCaS3blPDrqKWx+QxzuzL1zGUzij9XCWLrSLsJPu5t+eWA/ycetzYAO5IOMcWAQ==", + "dev": true, + "license": "MIT", + "peer": true, + "bin": { + "lz-string": "bin/bin.js" + } + }, + "node_modules/magic-string": { + "version": "0.30.21", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz", + "integrity": "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.5" + } + }, + "node_modules/math-intrinsics": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", + "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "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, + "license": "MIT", + "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, + "license": "MIT", + "dependencies": { + "braces": "^3.0.3", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/micromatch/node_modules/picomatch": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.2.tgz", + "integrity": "sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "dev": true, + "license": "MIT", + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/min-indent": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/min-indent/-/min-indent-1.0.1.tgz", + "integrity": "sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "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, + "license": "MIT" + }, + "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, + "license": "MIT", + "dependencies": { + "any-promise": "^1.0.0", + "object-assign": "^4.0.1", + "thenify-all": "^1.0.0" + } + }, + "node_modules/nanoid": { + "version": "3.3.12", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.12.tgz", + "integrity": "sha512-ZB9RH/39qpq5Vu6Y+NmUaFhQR6pp+M2Xt76XBnEwDaGcVAqhlvxrl3B2bKS5D3NH3QR76v3aSrKaF/Kiy7lEtQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/node-releases": { + "version": "2.0.44", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.44.tgz", + "integrity": "sha512-5WUyunoPMsvvEhS8AxHtRzP+oA8UCkJ7YRxatWKjngndhDGLiqEVAQKWjFAiAiuL8zMRGzGSJxFnLetoa43qGQ==", + "dev": true, + "license": "MIT" + }, + "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, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/nwsapi": { + "version": "2.2.23", + "resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.23.tgz", + "integrity": "sha512-7wfH4sLbt4M0gCDzGE6vzQBo0bfTKjU7Sfpqy/7gs1qBfYz2vEJH6vXcBKpO3+6Yu1telwd0t9HpyOoLEQQbIQ==", + "dev": true, + "license": "MIT" + }, + "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, + "license": "MIT", + "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, + "license": "MIT", + "engines": { + "node": ">= 6" + } + }, + "node_modules/pako": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/pako/-/pako-1.0.11.tgz", + "integrity": "sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==", + "license": "(MIT AND Zlib)" + }, + "node_modules/parse5": { + "version": "7.3.0", + "resolved": "https://registry.npmjs.org/parse5/-/parse5-7.3.0.tgz", + "integrity": "sha512-IInvU7fabl34qmi9gY8XOVxhYyMyuH2xUNpb2q8/Y+7552KlejkRvqvD19nMoUW/uQGGbqNpA6Tufu5FL5BZgw==", + "dev": true, + "license": "MIT", + "dependencies": { + "entities": "^6.0.0" + }, + "funding": { + "url": "https://github.com/inikulin/parse5?sponsor=1" + } + }, + "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, + "license": "MIT" + }, + "node_modules/pathe": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/pathe/-/pathe-1.1.2.tgz", + "integrity": "sha512-whLdWMYL2TwI08hn8/ZqAbrVemu0LNaNNJZX73O6qaIdCTfXutsLhMkjdENX0qhsQ9uIimo4/aQOmXkoon2nDQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/pathval": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/pathval/-/pathval-2.0.1.tgz", + "integrity": "sha512-//nshmD55c46FuFw26xV/xFAaB5HF9Xdap7HJBBnrKdAd6/GxDBaNA1870O79+9ueg61cZLSVc+OaFlfmObYVQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 14.16" + } + }, + "node_modules/pdf-lib": { + "version": "1.17.1", + "resolved": "https://registry.npmjs.org/pdf-lib/-/pdf-lib-1.17.1.tgz", + "integrity": "sha512-V/mpyJAoTsN4cnP31vc0wfNA1+p20evqqnap0KLoRUN0Yk/p3wN52DOEsL4oBFcLdb76hlpKPtzJIgo67j/XLw==", + "license": "MIT", + "dependencies": { + "@pdf-lib/standard-fonts": "^1.0.0", + "@pdf-lib/upng": "^1.0.1", + "pako": "^1.0.11", + "tslib": "^1.11.1" + } + }, + "node_modules/pdf-lib/node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "license": "0BSD" + }, + "node_modules/pdfjs-dist": { + "version": "4.10.38", + "resolved": "https://registry.npmjs.org/pdfjs-dist/-/pdfjs-dist-4.10.38.tgz", + "integrity": "sha512-/Y3fcFrXEAsMjJXeL9J8+ZG9U01LbuWaYypvDW2ycW1jL269L3js3DVBjDJ0Up9Np1uqDXsDrRihHANhZOlwdQ==", + "license": "Apache-2.0", + "engines": { + "node": ">=20" + }, + "optionalDependencies": { + "@napi-rs/canvas": "^0.1.65" + } + }, + "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, + "license": "ISC" + }, + "node_modules/picomatch": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.4.tgz", + "integrity": "sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==", + "dev": true, + "license": "MIT", + "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, + "license": "MIT", + "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, + "license": "MIT", + "engines": { + "node": ">= 6" + } + }, + "node_modules/postcss": { + "version": "8.5.14", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.14.tgz", + "integrity": "sha512-SoSL4+OSEtR99LHFZQiJLkT59C5B1amGO1NzTwj7TT1qCUgUO6hxOvzkOYxD+vMrXBM3XJIKzokoERdqQq/Zmg==", + "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" + } + ], + "license": "MIT", + "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, + "license": "MIT", + "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" + } + ], + "license": "MIT", + "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" + } + ], + "license": "MIT", + "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" + } + ], + "license": "MIT", + "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, + "license": "MIT", + "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, + "license": "MIT" + }, + "node_modules/pretty-format": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-27.5.1.tgz", + "integrity": "sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "ansi-regex": "^5.0.1", + "ansi-styles": "^5.0.0", + "react-is": "^17.0.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/pretty-format/node_modules/react-is": { + "version": "17.0.2", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", + "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==", + "dev": true, + "license": "MIT", + "peer": true + }, + "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, + "license": "MIT", + "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" + } + ], + "license": "MIT" + }, + "node_modules/react": { + "version": "19.2.6", + "resolved": "https://registry.npmjs.org/react/-/react-19.2.6.tgz", + "integrity": "sha512-sfWGGfavi0xr8Pg0sVsyHMAOziVYKgPLNrS7ig+ivMNb3wbCBw3KxtflsGBAwD3gYQlE/AEZsTLgToRrSCjb0Q==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/react-dom": { + "version": "19.2.6", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.2.6.tgz", + "integrity": "sha512-0prMI+hvBbPjsWnxDLxlCGyM8PN6UuWjEUCYmZhO67xIV9Xasa/r/vDnq+Xyq4Lo27g8QSbO5YzARu0D1Sps3g==", + "license": "MIT", + "dependencies": { + "scheduler": "^0.27.0" + }, + "peerDependencies": { + "react": "^19.2.6" + } + }, + "node_modules/react-is": { + "version": "19.2.6", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-19.2.6.tgz", + "integrity": "sha512-XjBR15BhXuylgWGuslhDKqlSayuqvqBX91BP8pauG8kd1zY8kotkNWbXksTCNRarse4kuGbe2kIY05ARtwNIvw==", + "license": "MIT", + "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==", + "license": "MIT", + "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.17.0", + "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.17.0.tgz", + "integrity": "sha512-z6F7K9bV85EfseRCp2bzrpyQ0Gkw1uLoCel9XBVWPg/TjRj94SkJzUTGfOa4bs7iJvBWtQG0Wq7wnI0syw3EBQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/react-router": { + "version": "7.15.1", + "resolved": "https://registry.npmjs.org/react-router/-/react-router-7.15.1.tgz", + "integrity": "sha512-R8rl9HhgikFYoPJymnUtPXWbnDb3oget6lQnfIoupbt61aT9aOhRkDsY2XRhZRyX1Z/8a5sL74fXmFNm3NRK5A==", + "license": "MIT", + "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.15.1", + "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-7.15.1.tgz", + "integrity": "sha512-AzF62gjY6U9rkMq4RfP/r2EVtQ7DMfNMjyOp/flLTCrtRylLiK4wT4pSq6O8rOXZ2eXdZYJPEYe+ifomiv+Igg==", + "license": "MIT", + "dependencies": { + "react-router": "7.15.1" + }, + "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, + "license": "MIT", + "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, + "license": "MIT", + "dependencies": { + "picomatch": "^2.2.1" + }, + "engines": { + "node": ">=8.10.0" + } + }, + "node_modules/readdirp/node_modules/picomatch": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.2.tgz", + "integrity": "sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/recharts": { + "version": "3.8.1", + "resolved": "https://registry.npmjs.org/recharts/-/recharts-3.8.1.tgz", + "integrity": "sha512-mwzmO1s9sFL0TduUpwndxCUNoXsBw3u3E/0+A+cLcrSfQitSG62L32N69GhqUrrT5qKcAE3pCGVINC6pqkBBQg==", + "license": "MIT", + "workspaces": [ + "www" + ], + "dependencies": { + "@reduxjs/toolkit": "^1.9.0 || 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/redent": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/redent/-/redent-3.0.0.tgz", + "integrity": "sha512-6tDA8g98We0zd0GvVeMT9arEOnTw9qM03L9cJXaCjrip1OO764RDBLBfrB4cwzNGDj5OA5ioymC9GkizgWJDUg==", + "dev": true, + "license": "MIT", + "dependencies": { + "indent-string": "^4.0.0", + "strip-indent": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "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==", + "license": "MIT" + }, + "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==", + "license": "MIT", + "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==", + "license": "MIT" + }, + "node_modules/resolve": { + "version": "1.22.12", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.12.tgz", + "integrity": "sha512-TyeJ1zif53BPfHootBGwPRYT1RUt6oGWsaQr8UyZW/eAm9bKoijtvruSDEmZHm92CwS9nj7/fWttqPCgzep8CA==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "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/reusify": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.1.0.tgz", + "integrity": "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==", + "dev": true, + "license": "MIT", + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } + }, + "node_modules/rollup": { + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.60.4.tgz", + "integrity": "sha512-WHeFSbZYsPu3+bLoNRUuAO+wavNlocOPf3wSHTP7hcFKVnJeWsYlCDbr3mTS14FCizf9ccIxXA8sGL8zKeQN3g==", + "dev": true, + "license": "MIT", + "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.60.4", + "@rollup/rollup-android-arm64": "4.60.4", + "@rollup/rollup-darwin-arm64": "4.60.4", + "@rollup/rollup-darwin-x64": "4.60.4", + "@rollup/rollup-freebsd-arm64": "4.60.4", + "@rollup/rollup-freebsd-x64": "4.60.4", + "@rollup/rollup-linux-arm-gnueabihf": "4.60.4", + "@rollup/rollup-linux-arm-musleabihf": "4.60.4", + "@rollup/rollup-linux-arm64-gnu": "4.60.4", + "@rollup/rollup-linux-arm64-musl": "4.60.4", + "@rollup/rollup-linux-loong64-gnu": "4.60.4", + "@rollup/rollup-linux-loong64-musl": "4.60.4", + "@rollup/rollup-linux-ppc64-gnu": "4.60.4", + "@rollup/rollup-linux-ppc64-musl": "4.60.4", + "@rollup/rollup-linux-riscv64-gnu": "4.60.4", + "@rollup/rollup-linux-riscv64-musl": "4.60.4", + "@rollup/rollup-linux-s390x-gnu": "4.60.4", + "@rollup/rollup-linux-x64-gnu": "4.60.4", + "@rollup/rollup-linux-x64-musl": "4.60.4", + "@rollup/rollup-openbsd-x64": "4.60.4", + "@rollup/rollup-openharmony-arm64": "4.60.4", + "@rollup/rollup-win32-arm64-msvc": "4.60.4", + "@rollup/rollup-win32-ia32-msvc": "4.60.4", + "@rollup/rollup-win32-x64-gnu": "4.60.4", + "@rollup/rollup-win32-x64-msvc": "4.60.4", + "fsevents": "~2.3.2" + } + }, + "node_modules/rrweb-cssom": { + "version": "0.7.1", + "resolved": "https://registry.npmjs.org/rrweb-cssom/-/rrweb-cssom-0.7.1.tgz", + "integrity": "sha512-TrEMa7JGdVm0UThDJSx7ddw5nVm3UJS9o9CCIZ72B1vSyEZoziDqBYP3XIoi/12lKrJR8rE3jeFHMok2F/Mnsg==", + "dev": true, + "license": "MIT" + }, + "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" + } + ], + "license": "MIT", + "dependencies": { + "queue-microtask": "^1.2.2" + } + }, + "node_modules/safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", + "dev": true, + "license": "MIT" + }, + "node_modules/saxes": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/saxes/-/saxes-6.0.0.tgz", + "integrity": "sha512-xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA==", + "dev": true, + "license": "ISC", + "dependencies": { + "xmlchars": "^2.2.0" + }, + "engines": { + "node": ">=v12.22.7" + } + }, + "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==", + "license": "MIT" + }, + "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, + "license": "ISC", + "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==", + "license": "MIT" + }, + "node_modules/siginfo": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/siginfo/-/siginfo-2.0.0.tgz", + "integrity": "sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==", + "dev": true, + "license": "ISC" + }, + "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, + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/stackback": { + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/stackback/-/stackback-0.0.2.tgz", + "integrity": "sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==", + "dev": true, + "license": "MIT" + }, + "node_modules/std-env": { + "version": "3.10.0", + "resolved": "https://registry.npmjs.org/std-env/-/std-env-3.10.0.tgz", + "integrity": "sha512-5GS12FdOZNliM5mAOxFRg7Ir0pWz8MdpYm6AY6VPkGpbA7ZzmbzNcBJQ0GPvvyWgcY7QAhCgf9Uy89I03faLkg==", + "dev": true, + "license": "MIT" + }, + "node_modules/strip-indent": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-3.0.0.tgz", + "integrity": "sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "min-indent": "^1.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/sucrase": { + "version": "3.35.1", + "resolved": "https://registry.npmjs.org/sucrase/-/sucrase-3.35.1.tgz", + "integrity": "sha512-DhuTmvZWux4H1UOnWMB3sk0sbaCVOoQZjv8u1rDoTV0HTdGem9hkAZtl4JZy8P2z4Bg0nT+YMeOFyVr4zcG5Tw==", + "dev": true, + "license": "MIT", + "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-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, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/symbol-tree": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz", + "integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==", + "dev": true, + "license": "MIT" + }, + "node_modules/tailwind-merge": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/tailwind-merge/-/tailwind-merge-3.6.0.tgz", + "integrity": "sha512-uxL7qAVQriqRQPAyK3pj66VqskWqoZ37PW94jwOTwNfq/z9oyu1V+eqrZqtR2+fCiXdYOZe/Modt8GtvqNzu+w==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/dcastil" + } + }, + "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, + "license": "MIT", + "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/thenify": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/thenify/-/thenify-3.3.1.tgz", + "integrity": "sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==", + "dev": true, + "license": "MIT", + "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, + "license": "MIT", + "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==", + "license": "MIT" + }, + "node_modules/tinybench": { + "version": "2.9.0", + "resolved": "https://registry.npmjs.org/tinybench/-/tinybench-2.9.0.tgz", + "integrity": "sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==", + "dev": true, + "license": "MIT" + }, + "node_modules/tinyexec": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-0.3.2.tgz", + "integrity": "sha512-KQQR9yN7R5+OSwaK0XQoj22pwHoTlgYqmUscPYoknOoWCWfj/5/ABTMRi69FrKU5ffPVh5QcFikpWJI/P1ocHA==", + "dev": true, + "license": "MIT" + }, + "node_modules/tinyglobby": { + "version": "0.2.16", + "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.16.tgz", + "integrity": "sha512-pn99VhoACYR8nFHhxqix+uvsbXineAasWm5ojXoN8xEwK5Kd3/TrhNn1wByuD52UxWRLy8pu+kRMniEi6Eq9Zg==", + "dev": true, + "license": "MIT", + "dependencies": { + "fdir": "^6.5.0", + "picomatch": "^4.0.4" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/SuperchupuDev" + } + }, + "node_modules/tinypool": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/tinypool/-/tinypool-1.1.1.tgz", + "integrity": "sha512-Zba82s87IFq9A9XmjiX5uZA/ARWDrB03OHlq+Vw1fSdt0I+4/Kutwy8BP4Y/y/aORMo61FQ0vIb5j44vSo5Pkg==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.0.0 || >=20.0.0" + } + }, + "node_modules/tinyrainbow": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/tinyrainbow/-/tinyrainbow-1.2.0.tgz", + "integrity": "sha512-weEDEq7Z5eTHPDh4xjX789+fHfF+P8boiFB+0vbWzpbnbsEr/GRaohi/uMKxg8RZMXnl1ItAi/IUHWMsjDV7kQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/tinyspy": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/tinyspy/-/tinyspy-3.0.2.tgz", + "integrity": "sha512-n1cw8k1k0x4pgA2+9XrOkFydTerNcJ1zWCO5Nn9scWHTD+5tp8dghT2x1uduQePZTZgd3Tupf+x9BxJjeJi77Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/tldts": { + "version": "6.1.86", + "resolved": "https://registry.npmjs.org/tldts/-/tldts-6.1.86.tgz", + "integrity": "sha512-WMi/OQ2axVTf/ykqCQgXiIct+mSQDFdH2fkwhPwgEwvJ1kSzZRiinb0zF2Xb8u4+OqPChmyI6MEu4EezNJz+FQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "tldts-core": "^6.1.86" + }, + "bin": { + "tldts": "bin/cli.js" + } + }, + "node_modules/tldts-core": { + "version": "6.1.86", + "resolved": "https://registry.npmjs.org/tldts-core/-/tldts-core-6.1.86.tgz", + "integrity": "sha512-Je6p7pkk+KMzMv2XXKmAE3McmolOQFdxkKw0R8EYNr7sELW46JqnNeTX8ybPiQgvg1ymCoF8LXs5fzFaZvJPTA==", + "dev": true, + "license": "MIT" + }, + "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, + "license": "MIT", + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/tough-cookie": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-5.1.2.tgz", + "integrity": "sha512-FVDYdxtnj0G6Qm/DhNPSb8Ju59ULcup3tuJxkFb5K8Bv2pUXILbf0xZWU8PX8Ov19OXljbUyveOFwRMwkXzO+A==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "tldts": "^6.1.32" + }, + "engines": { + "node": ">=16" + } + }, + "node_modules/tr46": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-5.1.1.tgz", + "integrity": "sha512-hdF5ZgjTqgAntKkklYw0R03MG2x/bSzTtkxmIRw/sTNV8YXsCJ1tfLAX23lhxhHJlEf3CRCOCGGWw3vI3GaSPw==", + "dev": true, + "license": "MIT", + "dependencies": { + "punycode": "^2.3.1" + }, + "engines": { + "node": ">=18" + } + }, + "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, + "license": "Apache-2.0" + }, + "node_modules/tslib": { + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", + "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==", + "license": "0BSD" + }, + "node_modules/typescript": { + "version": "5.8.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.3.tgz", + "integrity": "sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "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" + } + ], + "license": "MIT", + "dependencies": { + "escalade": "^3.2.0", + "picocolors": "^1.1.1" + }, + "bin": { + "update-browserslist-db": "cli.js" + }, + "peerDependencies": { + "browserslist": ">= 4.21.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==", + "license": "MIT", + "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, + "license": "MIT" + }, + "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==", + "license": "MIT AND ISC", + "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.3", + "resolved": "https://registry.npmjs.org/vite/-/vite-7.3.3.tgz", + "integrity": "sha512-/4XH147Ui7OGTjg3HbdWe5arnZQSbfuRzdr9Ec7TQi5I7R+ir0Rlc9GIvD4v0XZurELqA035KVXJXpR61xhiTA==", + "dev": true, + "license": "MIT", + "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/vite-node": { + "version": "2.1.9", + "resolved": "https://registry.npmjs.org/vite-node/-/vite-node-2.1.9.tgz", + "integrity": "sha512-AM9aQ/IPrW/6ENLQg3AGY4K1N2TGZdR5e4gu/MmmR2xR3Ll1+dib+nook92g4TV3PXVyeyxdWwtaCAiUL0hMxA==", + "dev": true, + "license": "MIT", + "dependencies": { + "cac": "^6.7.14", + "debug": "^4.3.7", + "es-module-lexer": "^1.5.4", + "pathe": "^1.1.2", + "vite": "^5.0.0" + }, + "bin": { + "vite-node": "vite-node.mjs" + }, + "engines": { + "node": "^18.0.0 || >=20.0.0" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "node_modules/vite-node/node_modules/@esbuild/aix-ppc64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.21.5.tgz", + "integrity": "sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vite-node/node_modules/@esbuild/android-arm": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.21.5.tgz", + "integrity": "sha512-vCPvzSjpPHEi1siZdlvAlsPxXl7WbOVUBBAowWug4rJHb68Ox8KualB+1ocNvT5fjv6wpkX6o/iEpbDrf68zcg==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vite-node/node_modules/@esbuild/android-arm64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.21.5.tgz", + "integrity": "sha512-c0uX9VAUBQ7dTDCjq+wdyGLowMdtR/GoC2U5IYk/7D1H1JYC0qseD7+11iMP2mRLN9RcCMRcjC4YMclCzGwS/A==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vite-node/node_modules/@esbuild/android-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.21.5.tgz", + "integrity": "sha512-D7aPRUUNHRBwHxzxRvp856rjUHRFW1SdQATKXH2hqA0kAZb1hKmi02OpYRacl0TxIGz/ZmXWlbZgjwWYaCakTA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vite-node/node_modules/@esbuild/darwin-arm64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.21.5.tgz", + "integrity": "sha512-DwqXqZyuk5AiWWf3UfLiRDJ5EDd49zg6O9wclZ7kUMv2WRFr4HKjXp/5t8JZ11QbQfUS6/cRCKGwYhtNAY88kQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vite-node/node_modules/@esbuild/darwin-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.21.5.tgz", + "integrity": "sha512-se/JjF8NlmKVG4kNIuyWMV/22ZaerB+qaSi5MdrXtd6R08kvs2qCN4C09miupktDitvh8jRFflwGFBQcxZRjbw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vite-node/node_modules/@esbuild/freebsd-arm64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.21.5.tgz", + "integrity": "sha512-5JcRxxRDUJLX8JXp/wcBCy3pENnCgBR9bN6JsY4OmhfUtIHe3ZW0mawA7+RDAcMLrMIZaf03NlQiX9DGyB8h4g==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vite-node/node_modules/@esbuild/freebsd-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.21.5.tgz", + "integrity": "sha512-J95kNBj1zkbMXtHVH29bBriQygMXqoVQOQYA+ISs0/2l3T9/kj42ow2mpqerRBxDJnmkUDCaQT/dfNXWX/ZZCQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vite-node/node_modules/@esbuild/linux-arm": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.21.5.tgz", + "integrity": "sha512-bPb5AHZtbeNGjCKVZ9UGqGwo8EUu4cLq68E95A53KlxAPRmUyYv2D6F0uUI65XisGOL1hBP5mTronbgo+0bFcA==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vite-node/node_modules/@esbuild/linux-arm64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.21.5.tgz", + "integrity": "sha512-ibKvmyYzKsBeX8d8I7MH/TMfWDXBF3db4qM6sy+7re0YXya+K1cem3on9XgdT2EQGMu4hQyZhan7TeQ8XkGp4Q==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vite-node/node_modules/@esbuild/linux-ia32": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.21.5.tgz", + "integrity": "sha512-YvjXDqLRqPDl2dvRODYmmhz4rPeVKYvppfGYKSNGdyZkA01046pLWyRKKI3ax8fbJoK5QbxblURkwK/MWY18Tg==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vite-node/node_modules/@esbuild/linux-loong64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.21.5.tgz", + "integrity": "sha512-uHf1BmMG8qEvzdrzAqg2SIG/02+4/DHB6a9Kbya0XDvwDEKCoC8ZRWI5JJvNdUjtciBGFQ5PuBlpEOXQj+JQSg==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vite-node/node_modules/@esbuild/linux-mips64el": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.21.5.tgz", + "integrity": "sha512-IajOmO+KJK23bj52dFSNCMsz1QP1DqM6cwLUv3W1QwyxkyIWecfafnI555fvSGqEKwjMXVLokcV5ygHW5b3Jbg==", + "cpu": [ + "mips64el" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vite-node/node_modules/@esbuild/linux-ppc64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.21.5.tgz", + "integrity": "sha512-1hHV/Z4OEfMwpLO8rp7CvlhBDnjsC3CttJXIhBi+5Aj5r+MBvy4egg7wCbe//hSsT+RvDAG7s81tAvpL2XAE4w==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vite-node/node_modules/@esbuild/linux-riscv64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.21.5.tgz", + "integrity": "sha512-2HdXDMd9GMgTGrPWnJzP2ALSokE/0O5HhTUvWIbD3YdjME8JwvSCnNGBnTThKGEB91OZhzrJ4qIIxk/SBmyDDA==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vite-node/node_modules/@esbuild/linux-s390x": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.21.5.tgz", + "integrity": "sha512-zus5sxzqBJD3eXxwvjN1yQkRepANgxE9lgOW2qLnmr8ikMTphkjgXu1HR01K4FJg8h1kEEDAqDcZQtbrRnB41A==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vite-node/node_modules/@esbuild/linux-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.21.5.tgz", + "integrity": "sha512-1rYdTpyv03iycF1+BhzrzQJCdOuAOtaqHTWJZCWvijKD2N5Xu0TtVC8/+1faWqcP9iBCWOmjmhoH94dH82BxPQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vite-node/node_modules/@esbuild/netbsd-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.21.5.tgz", + "integrity": "sha512-Woi2MXzXjMULccIwMnLciyZH4nCIMpWQAs049KEeMvOcNADVxo0UBIQPfSmxB3CWKedngg7sWZdLvLczpe0tLg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vite-node/node_modules/@esbuild/openbsd-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.21.5.tgz", + "integrity": "sha512-HLNNw99xsvx12lFBUwoT8EVCsSvRNDVxNpjZ7bPn947b8gJPzeHWyNVhFsaerc0n3TsbOINvRP2byTZ5LKezow==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vite-node/node_modules/@esbuild/sunos-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.21.5.tgz", + "integrity": "sha512-6+gjmFpfy0BHU5Tpptkuh8+uw3mnrvgs+dSPQXQOv3ekbordwnzTVEb4qnIvQcYXq6gzkyTnoZ9dZG+D4garKg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vite-node/node_modules/@esbuild/win32-arm64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.21.5.tgz", + "integrity": "sha512-Z0gOTd75VvXqyq7nsl93zwahcTROgqvuAcYDUr+vOv8uHhNSKROyU961kgtCD1e95IqPKSQKH7tBTslnS3tA8A==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vite-node/node_modules/@esbuild/win32-ia32": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.21.5.tgz", + "integrity": "sha512-SWXFF1CL2RVNMaVs+BBClwtfZSvDgtL//G/smwAc5oVK/UPu2Gu9tIaRgFmYFFKrmg3SyAjSrElf0TiJ1v8fYA==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vite-node/node_modules/@esbuild/win32-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.21.5.tgz", + "integrity": "sha512-tQd/1efJuzPC6rCFwEvLtci/xNFcTZknmXs98FYDfGE4wP9ClFV98nyKrzJKVPMhdDnjzLhdUyMX4PsQAPjwIw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vite-node/node_modules/esbuild": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.21.5.tgz", + "integrity": "sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=12" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.21.5", + "@esbuild/android-arm": "0.21.5", + "@esbuild/android-arm64": "0.21.5", + "@esbuild/android-x64": "0.21.5", + "@esbuild/darwin-arm64": "0.21.5", + "@esbuild/darwin-x64": "0.21.5", + "@esbuild/freebsd-arm64": "0.21.5", + "@esbuild/freebsd-x64": "0.21.5", + "@esbuild/linux-arm": "0.21.5", + "@esbuild/linux-arm64": "0.21.5", + "@esbuild/linux-ia32": "0.21.5", + "@esbuild/linux-loong64": "0.21.5", + "@esbuild/linux-mips64el": "0.21.5", + "@esbuild/linux-ppc64": "0.21.5", + "@esbuild/linux-riscv64": "0.21.5", + "@esbuild/linux-s390x": "0.21.5", + "@esbuild/linux-x64": "0.21.5", + "@esbuild/netbsd-x64": "0.21.5", + "@esbuild/openbsd-x64": "0.21.5", + "@esbuild/sunos-x64": "0.21.5", + "@esbuild/win32-arm64": "0.21.5", + "@esbuild/win32-ia32": "0.21.5", + "@esbuild/win32-x64": "0.21.5" + } + }, + "node_modules/vite-node/node_modules/vite": { + "version": "5.4.21", + "resolved": "https://registry.npmjs.org/vite/-/vite-5.4.21.tgz", + "integrity": "sha512-o5a9xKjbtuhY6Bi5S3+HvbRERmouabWbyUcpXXUA1u+GNUKoROi9byOJ8M0nHbHYHkYICiMlqxkg1KkYmm25Sw==", + "dev": true, + "license": "MIT", + "dependencies": { + "esbuild": "^0.21.3", + "postcss": "^8.4.43", + "rollup": "^4.20.0" + }, + "bin": { + "vite": "bin/vite.js" + }, + "engines": { + "node": "^18.0.0 || >=20.0.0" + }, + "funding": { + "url": "https://github.com/vitejs/vite?sponsor=1" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + }, + "peerDependencies": { + "@types/node": "^18.0.0 || >=20.0.0", + "less": "*", + "lightningcss": "^1.21.0", + "sass": "*", + "sass-embedded": "*", + "stylus": "*", + "sugarss": "*", + "terser": "^5.4.0" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "less": { + "optional": true + }, + "lightningcss": { + "optional": true + }, + "sass": { + "optional": true + }, + "sass-embedded": { + "optional": true + }, + "stylus": { + "optional": true + }, + "sugarss": { + "optional": true + }, + "terser": { + "optional": true + } + } + }, + "node_modules/vitest": { + "version": "2.1.9", + "resolved": "https://registry.npmjs.org/vitest/-/vitest-2.1.9.tgz", + "integrity": "sha512-MSmPM9REYqDGBI8439mA4mWhV5sKmDlBKWIYbA3lRb2PTHACE0mgKwA8yQ2xq9vxDTuk4iPrECBAEW2aoFXY0Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@vitest/expect": "2.1.9", + "@vitest/mocker": "2.1.9", + "@vitest/pretty-format": "^2.1.9", + "@vitest/runner": "2.1.9", + "@vitest/snapshot": "2.1.9", + "@vitest/spy": "2.1.9", + "@vitest/utils": "2.1.9", + "chai": "^5.1.2", + "debug": "^4.3.7", + "expect-type": "^1.1.0", + "magic-string": "^0.30.12", + "pathe": "^1.1.2", + "std-env": "^3.8.0", + "tinybench": "^2.9.0", + "tinyexec": "^0.3.1", + "tinypool": "^1.0.1", + "tinyrainbow": "^1.2.0", + "vite": "^5.0.0", + "vite-node": "2.1.9", + "why-is-node-running": "^2.3.0" + }, + "bin": { + "vitest": "vitest.mjs" + }, + "engines": { + "node": "^18.0.0 || >=20.0.0" + }, + "funding": { + "url": "https://opencollective.com/vitest" + }, + "peerDependencies": { + "@edge-runtime/vm": "*", + "@types/node": "^18.0.0 || >=20.0.0", + "@vitest/browser": "2.1.9", + "@vitest/ui": "2.1.9", + "happy-dom": "*", + "jsdom": "*" + }, + "peerDependenciesMeta": { + "@edge-runtime/vm": { + "optional": true + }, + "@types/node": { + "optional": true + }, + "@vitest/browser": { + "optional": true + }, + "@vitest/ui": { + "optional": true + }, + "happy-dom": { + "optional": true + }, + "jsdom": { + "optional": true + } + } + }, + "node_modules/vitest/node_modules/@esbuild/aix-ppc64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.21.5.tgz", + "integrity": "sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vitest/node_modules/@esbuild/android-arm": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.21.5.tgz", + "integrity": "sha512-vCPvzSjpPHEi1siZdlvAlsPxXl7WbOVUBBAowWug4rJHb68Ox8KualB+1ocNvT5fjv6wpkX6o/iEpbDrf68zcg==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vitest/node_modules/@esbuild/android-arm64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.21.5.tgz", + "integrity": "sha512-c0uX9VAUBQ7dTDCjq+wdyGLowMdtR/GoC2U5IYk/7D1H1JYC0qseD7+11iMP2mRLN9RcCMRcjC4YMclCzGwS/A==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vitest/node_modules/@esbuild/android-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.21.5.tgz", + "integrity": "sha512-D7aPRUUNHRBwHxzxRvp856rjUHRFW1SdQATKXH2hqA0kAZb1hKmi02OpYRacl0TxIGz/ZmXWlbZgjwWYaCakTA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vitest/node_modules/@esbuild/darwin-arm64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.21.5.tgz", + "integrity": "sha512-DwqXqZyuk5AiWWf3UfLiRDJ5EDd49zg6O9wclZ7kUMv2WRFr4HKjXp/5t8JZ11QbQfUS6/cRCKGwYhtNAY88kQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vitest/node_modules/@esbuild/darwin-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.21.5.tgz", + "integrity": "sha512-se/JjF8NlmKVG4kNIuyWMV/22ZaerB+qaSi5MdrXtd6R08kvs2qCN4C09miupktDitvh8jRFflwGFBQcxZRjbw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vitest/node_modules/@esbuild/freebsd-arm64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.21.5.tgz", + "integrity": "sha512-5JcRxxRDUJLX8JXp/wcBCy3pENnCgBR9bN6JsY4OmhfUtIHe3ZW0mawA7+RDAcMLrMIZaf03NlQiX9DGyB8h4g==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vitest/node_modules/@esbuild/freebsd-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.21.5.tgz", + "integrity": "sha512-J95kNBj1zkbMXtHVH29bBriQygMXqoVQOQYA+ISs0/2l3T9/kj42ow2mpqerRBxDJnmkUDCaQT/dfNXWX/ZZCQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vitest/node_modules/@esbuild/linux-arm": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.21.5.tgz", + "integrity": "sha512-bPb5AHZtbeNGjCKVZ9UGqGwo8EUu4cLq68E95A53KlxAPRmUyYv2D6F0uUI65XisGOL1hBP5mTronbgo+0bFcA==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vitest/node_modules/@esbuild/linux-arm64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.21.5.tgz", + "integrity": "sha512-ibKvmyYzKsBeX8d8I7MH/TMfWDXBF3db4qM6sy+7re0YXya+K1cem3on9XgdT2EQGMu4hQyZhan7TeQ8XkGp4Q==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vitest/node_modules/@esbuild/linux-ia32": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.21.5.tgz", + "integrity": "sha512-YvjXDqLRqPDl2dvRODYmmhz4rPeVKYvppfGYKSNGdyZkA01046pLWyRKKI3ax8fbJoK5QbxblURkwK/MWY18Tg==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vitest/node_modules/@esbuild/linux-loong64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.21.5.tgz", + "integrity": "sha512-uHf1BmMG8qEvzdrzAqg2SIG/02+4/DHB6a9Kbya0XDvwDEKCoC8ZRWI5JJvNdUjtciBGFQ5PuBlpEOXQj+JQSg==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vitest/node_modules/@esbuild/linux-mips64el": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.21.5.tgz", + "integrity": "sha512-IajOmO+KJK23bj52dFSNCMsz1QP1DqM6cwLUv3W1QwyxkyIWecfafnI555fvSGqEKwjMXVLokcV5ygHW5b3Jbg==", + "cpu": [ + "mips64el" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vitest/node_modules/@esbuild/linux-ppc64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.21.5.tgz", + "integrity": "sha512-1hHV/Z4OEfMwpLO8rp7CvlhBDnjsC3CttJXIhBi+5Aj5r+MBvy4egg7wCbe//hSsT+RvDAG7s81tAvpL2XAE4w==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vitest/node_modules/@esbuild/linux-riscv64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.21.5.tgz", + "integrity": "sha512-2HdXDMd9GMgTGrPWnJzP2ALSokE/0O5HhTUvWIbD3YdjME8JwvSCnNGBnTThKGEB91OZhzrJ4qIIxk/SBmyDDA==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vitest/node_modules/@esbuild/linux-s390x": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.21.5.tgz", + "integrity": "sha512-zus5sxzqBJD3eXxwvjN1yQkRepANgxE9lgOW2qLnmr8ikMTphkjgXu1HR01K4FJg8h1kEEDAqDcZQtbrRnB41A==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vitest/node_modules/@esbuild/linux-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.21.5.tgz", + "integrity": "sha512-1rYdTpyv03iycF1+BhzrzQJCdOuAOtaqHTWJZCWvijKD2N5Xu0TtVC8/+1faWqcP9iBCWOmjmhoH94dH82BxPQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vitest/node_modules/@esbuild/netbsd-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.21.5.tgz", + "integrity": "sha512-Woi2MXzXjMULccIwMnLciyZH4nCIMpWQAs049KEeMvOcNADVxo0UBIQPfSmxB3CWKedngg7sWZdLvLczpe0tLg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vitest/node_modules/@esbuild/openbsd-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.21.5.tgz", + "integrity": "sha512-HLNNw99xsvx12lFBUwoT8EVCsSvRNDVxNpjZ7bPn947b8gJPzeHWyNVhFsaerc0n3TsbOINvRP2byTZ5LKezow==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vitest/node_modules/@esbuild/sunos-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.21.5.tgz", + "integrity": "sha512-6+gjmFpfy0BHU5Tpptkuh8+uw3mnrvgs+dSPQXQOv3ekbordwnzTVEb4qnIvQcYXq6gzkyTnoZ9dZG+D4garKg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vitest/node_modules/@esbuild/win32-arm64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.21.5.tgz", + "integrity": "sha512-Z0gOTd75VvXqyq7nsl93zwahcTROgqvuAcYDUr+vOv8uHhNSKROyU961kgtCD1e95IqPKSQKH7tBTslnS3tA8A==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vitest/node_modules/@esbuild/win32-ia32": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.21.5.tgz", + "integrity": "sha512-SWXFF1CL2RVNMaVs+BBClwtfZSvDgtL//G/smwAc5oVK/UPu2Gu9tIaRgFmYFFKrmg3SyAjSrElf0TiJ1v8fYA==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vitest/node_modules/@esbuild/win32-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.21.5.tgz", + "integrity": "sha512-tQd/1efJuzPC6rCFwEvLtci/xNFcTZknmXs98FYDfGE4wP9ClFV98nyKrzJKVPMhdDnjzLhdUyMX4PsQAPjwIw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vitest/node_modules/@vitest/mocker": { + "version": "2.1.9", + "resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-2.1.9.tgz", + "integrity": "sha512-tVL6uJgoUdi6icpxmdrn5YNo3g3Dxv+IHJBr0GXHaEdTcw3F+cPKnsXFhli6nO+f/6SDKPHEK1UN+k+TQv0Ehg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@vitest/spy": "2.1.9", + "estree-walker": "^3.0.3", + "magic-string": "^0.30.12" + }, + "funding": { + "url": "https://opencollective.com/vitest" + }, + "peerDependencies": { + "msw": "^2.4.9", + "vite": "^5.0.0" + }, + "peerDependenciesMeta": { + "msw": { + "optional": true + }, + "vite": { + "optional": true + } + } + }, + "node_modules/vitest/node_modules/esbuild": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.21.5.tgz", + "integrity": "sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=12" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.21.5", + "@esbuild/android-arm": "0.21.5", + "@esbuild/android-arm64": "0.21.5", + "@esbuild/android-x64": "0.21.5", + "@esbuild/darwin-arm64": "0.21.5", + "@esbuild/darwin-x64": "0.21.5", + "@esbuild/freebsd-arm64": "0.21.5", + "@esbuild/freebsd-x64": "0.21.5", + "@esbuild/linux-arm": "0.21.5", + "@esbuild/linux-arm64": "0.21.5", + "@esbuild/linux-ia32": "0.21.5", + "@esbuild/linux-loong64": "0.21.5", + "@esbuild/linux-mips64el": "0.21.5", + "@esbuild/linux-ppc64": "0.21.5", + "@esbuild/linux-riscv64": "0.21.5", + "@esbuild/linux-s390x": "0.21.5", + "@esbuild/linux-x64": "0.21.5", + "@esbuild/netbsd-x64": "0.21.5", + "@esbuild/openbsd-x64": "0.21.5", + "@esbuild/sunos-x64": "0.21.5", + "@esbuild/win32-arm64": "0.21.5", + "@esbuild/win32-ia32": "0.21.5", + "@esbuild/win32-x64": "0.21.5" + } + }, + "node_modules/vitest/node_modules/vite": { + "version": "5.4.21", + "resolved": "https://registry.npmjs.org/vite/-/vite-5.4.21.tgz", + "integrity": "sha512-o5a9xKjbtuhY6Bi5S3+HvbRERmouabWbyUcpXXUA1u+GNUKoROi9byOJ8M0nHbHYHkYICiMlqxkg1KkYmm25Sw==", + "dev": true, + "license": "MIT", + "dependencies": { + "esbuild": "^0.21.3", + "postcss": "^8.4.43", + "rollup": "^4.20.0" + }, + "bin": { + "vite": "bin/vite.js" + }, + "engines": { + "node": "^18.0.0 || >=20.0.0" + }, + "funding": { + "url": "https://github.com/vitejs/vite?sponsor=1" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + }, + "peerDependencies": { + "@types/node": "^18.0.0 || >=20.0.0", + "less": "*", + "lightningcss": "^1.21.0", + "sass": "*", + "sass-embedded": "*", + "stylus": "*", + "sugarss": "*", + "terser": "^5.4.0" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "less": { + "optional": true + }, + "lightningcss": { + "optional": true + }, + "sass": { + "optional": true + }, + "sass-embedded": { + "optional": true + }, + "stylus": { + "optional": true + }, + "sugarss": { + "optional": true + }, + "terser": { + "optional": true + } + } + }, + "node_modules/w3c-xmlserializer": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-5.0.0.tgz", + "integrity": "sha512-o8qghlI8NZHU1lLPrpi2+Uq7abh4GGPpYANlalzWxyWteJOCsr/P+oPBA49TOLu5FTZO4d3F9MnWJfiMo4BkmA==", + "dev": true, + "license": "MIT", + "dependencies": { + "xml-name-validator": "^5.0.0" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/webidl-conversions": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-7.0.0.tgz", + "integrity": "sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=12" + } + }, + "node_modules/whatwg-encoding": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-3.1.1.tgz", + "integrity": "sha512-6qN4hJdMwfYBtE3YBTTHhoeuUrDBPZmbQaxWAqSALV/MeEnR5z1xd8UKud2RAkFoPkmB+hli1TZSnyi84xz1vQ==", + "deprecated": "Use @exodus/bytes instead for a more spec-conformant and faster implementation", + "dev": true, + "license": "MIT", + "dependencies": { + "iconv-lite": "0.6.3" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/whatwg-mimetype": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-4.0.0.tgz", + "integrity": "sha512-QaKxh0eNIi2mE9p2vEdzfagOKHCcj1pJ56EEHGQOVxp8r9/iszLUUV7v89x9O1p/T+NlTM5W7jW6+cz4Fq1YVg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + } + }, + "node_modules/whatwg-url": { + "version": "14.2.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-14.2.0.tgz", + "integrity": "sha512-De72GdQZzNTUBBChsXueQUnPKDkg/5A5zp7pFDuQAj5UFoENpiACU0wlCvzpAGnTkj++ihpKwKyYewn/XNUbKw==", + "dev": true, + "license": "MIT", + "dependencies": { + "tr46": "^5.1.0", + "webidl-conversions": "^7.0.0" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/why-is-node-running": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/why-is-node-running/-/why-is-node-running-2.3.0.tgz", + "integrity": "sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==", + "dev": true, + "license": "MIT", + "dependencies": { + "siginfo": "^2.0.0", + "stackback": "0.0.2" + }, + "bin": { + "why-is-node-running": "cli.js" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/ws": { + "version": "8.20.1", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.20.1.tgz", + "integrity": "sha512-It4dO0K5v//JtTXuPkfEOaI3uUN87iYPnqo/ZzqCoG3g8uhA66QUMs/SrM0YK7/NAu+r4LMh/9dq2A7k+rHs+w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": ">=5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, + "node_modules/xml-name-validator": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-5.0.0.tgz", + "integrity": "sha512-EvGK8EJ3DhaHfbRlETOWAS5pO9MZITeauHKJyb8wyajUfQUenkIg2MvLDTZ4T/TgIcm3HU0TFBgWWboAZ30UHg==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=18" + } + }, + "node_modules/xmlchars": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz", + "integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==", + "dev": true, + "license": "MIT" + }, + "node_modules/yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true, + "license": "ISC" + } + } +} diff --git a/filey-erp/package.json b/filey-erp/package.json new file mode 100644 index 0000000..61b7cac --- /dev/null +++ b/filey-erp/package.json @@ -0,0 +1,44 @@ +{ + "name": "filey-erp", + "private": true, + "version": "0.1.0", + "type": "module", + "scripts": { + "dev": "vite", + "build": "tsc && vite build", + "preview": "vite preview", + "test": "vitest run", + "test:watch": "vitest", + "typecheck": "tsc --noEmit", + "tauri": "tauri" + }, + "dependencies": { + "@supabase/supabase-js": "^2.105.4", + "@tauri-apps/api": "^2", + "@tauri-apps/plugin-opener": "^2", + "clsx": "^2.1.1", + "lucide-react": "^1.16.0", + "pdf-lib": "^1.17.1", + "pdfjs-dist": "^4.10.38", + "react": "^19.1.0", + "react-dom": "^19.1.0", + "react-router-dom": "^7.15.1", + "recharts": "^3.8.1", + "tailwind-merge": "^3.6.0" + }, + "devDependencies": { + "@tauri-apps/cli": "^2", + "@testing-library/jest-dom": "^6.9.1", + "@testing-library/react": "^16.3.2", + "@types/react": "^19.1.8", + "@types/react-dom": "^19.1.6", + "@vitejs/plugin-react": "^4.6.0", + "autoprefixer": "^10.5.0", + "jsdom": "^25.0.1", + "postcss": "^8.5.14", + "tailwindcss": "^3.4.19", + "typescript": "~5.8.3", + "vite": "^7.0.4", + "vitest": "^2.1.9" + } +} diff --git a/filey-erp/postcss.config.js b/filey-erp/postcss.config.js new file mode 100644 index 0000000..2e7af2b --- /dev/null +++ b/filey-erp/postcss.config.js @@ -0,0 +1,6 @@ +export default { + plugins: { + tailwindcss: {}, + autoprefixer: {}, + }, +} diff --git a/filey-erp/public/tauri.svg b/filey-erp/public/tauri.svg new file mode 100644 index 0000000..509dded --- /dev/null +++ b/filey-erp/public/tauri.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/filey-erp/public/vite.svg b/filey-erp/public/vite.svg new file mode 100644 index 0000000..e7b8dfb --- /dev/null +++ b/filey-erp/public/vite.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/filey-erp/src-tauri/.gitignore b/filey-erp/src-tauri/.gitignore new file mode 100644 index 0000000..d8769d0 --- /dev/null +++ b/filey-erp/src-tauri/.gitignore @@ -0,0 +1,7 @@ +# Generated by Cargo +# will have compiled files and executables +/target/ + +# Generated by Tauri +# will have schema files for capabilities auto-completion +/gen/schemas diff --git a/filey-erp/src-tauri/Cargo.lock b/filey-erp/src-tauri/Cargo.lock new file mode 100644 index 0000000..c08a4ec --- /dev/null +++ b/filey-erp/src-tauri/Cargo.lock @@ -0,0 +1,5182 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 4 + +[[package]] +name = "adler2" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa" + +[[package]] +name = "ahash" +version = "0.8.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5a15f179cd60c4584b8a8c596927aadc462e27f2ca70c04e0071964a73ba7a75" +dependencies = [ + "cfg-if", + "once_cell", + "version_check", + "zerocopy", +] + +[[package]] +name = "aho-corasick" +version = "1.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ddd31a130427c27518df266943a5308ed92d4b226cc639f5a8f1002816174301" +dependencies = [ + "memchr", +] + +[[package]] +name = "alloc-no-stdlib" +version = "2.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cc7bb162ec39d46ab1ca8c77bf72e890535becd1751bb45f64c597edb4c8c6b3" + +[[package]] +name = "alloc-stdlib" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94fb8275041c72129eb51b7d0322c29b8387a0386127718b096429201a5d6ece" +dependencies = [ + "alloc-no-stdlib", +] + +[[package]] +name = "android_system_properties" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "819e7219dbd41043ac279b19830f2efc897156490d7fd6ea916720117ee66311" +dependencies = [ + "libc", +] + +[[package]] +name = "anyhow" +version = "1.0.102" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f202df86484c868dbad7eaa557ef785d5c66295e41b460ef922eca0723b842c" + +[[package]] +name = "async-broadcast" +version = "0.7.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "435a87a52755b8f27fcf321ac4f04b2802e337c8c4872923137471ec39c37532" +dependencies = [ + "event-listener", + "event-listener-strategy", + "futures-core", + "pin-project-lite", +] + +[[package]] +name = "async-channel" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "924ed96dd52d1b75e9c1a3e6275715fd320f5f9439fb5a4a11fa51f4221158d2" +dependencies = [ + "concurrent-queue", + "event-listener-strategy", + "futures-core", + "pin-project-lite", +] + +[[package]] +name = "async-executor" +version = "1.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c96bf972d85afc50bf5ab8fe2d54d1586b4e0b46c97c50a0c9e71e2f7bcd812a" +dependencies = [ + "async-task", + "concurrent-queue", + "fastrand", + "futures-lite", + "pin-project-lite", + "slab", +] + +[[package]] +name = "async-io" +version = "2.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "456b8a8feb6f42d237746d4b3e9a178494627745c3c56c6ea55d92ba50d026fc" +dependencies = [ + "autocfg", + "cfg-if", + "concurrent-queue", + "futures-io", + "futures-lite", + "parking", + "polling", + "rustix", + "slab", + "windows-sys 0.61.2", +] + +[[package]] +name = "async-lock" +version = "3.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "290f7f2596bd5b78a9fec8088ccd89180d7f9f55b94b0576823bbbdc72ee8311" +dependencies = [ + "event-listener", + "event-listener-strategy", + "pin-project-lite", +] + +[[package]] +name = "async-process" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc50921ec0055cdd8a16de48773bfeec5c972598674347252c0399676be7da75" +dependencies = [ + "async-channel", + "async-io", + "async-lock", + "async-signal", + "async-task", + "blocking", + "cfg-if", + "event-listener", + "futures-lite", + "rustix", +] + +[[package]] +name = "async-recursion" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3b43422f69d8ff38f95f1b2bb76517c91589a924d1559a0e935d7c8ce0274c11" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "async-signal" +version = "0.2.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "52b5aaafa020cf5053a01f2a60e8ff5dccf550f0f77ec54a4e47285ac2bab485" +dependencies = [ + "async-io", + "async-lock", + "atomic-waker", + "cfg-if", + "futures-core", + "futures-io", + "rustix", + "signal-hook-registry", + "slab", + "windows-sys 0.61.2", +] + +[[package]] +name = "async-task" +version = "4.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b75356056920673b02621b35afd0f7dda9306d03c79a30f5c56c44cf256e3de" + +[[package]] +name = "async-trait" +version = "0.1.89" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9035ad2d096bed7955a320ee7e2230574d28fd3c3a0f186cbea1ff3c7eed5dbb" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "atk" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "241b621213072e993be4f6f3a9e4b45f65b7e6faad43001be957184b7bb1824b" +dependencies = [ + "atk-sys", + "glib", + "libc", +] + +[[package]] +name = "atk-sys" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c5e48b684b0ca77d2bbadeef17424c2ea3c897d44d566a1617e7e8f30614d086" +dependencies = [ + "glib-sys", + "gobject-sys", + "libc", + "system-deps", +] + +[[package]] +name = "atomic-waker" +version = "1.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0" + +[[package]] +name = "autocfg" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8" + +[[package]] +name = "base64" +version = "0.21.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9d297deb1925b89f2ccc13d7635fa0714f12c87adce1c75356b39ca9b7178567" + +[[package]] +name = "base64" +version = "0.22.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6" + +[[package]] +name = "bit-set" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "08807e080ed7f9d5433fa9b275196cfc35414f66a0c79d864dc51a0d825231a3" +dependencies = [ + "bit-vec", +] + +[[package]] +name = "bit-vec" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e764a1d40d510daf35e07be9eb06e75770908c27d411ee6c92109c9840eaaf7" + +[[package]] +name = "bitflags" +version = "1.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" + +[[package]] +name = "bitflags" +version = "2.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c4512299f36f043ab09a583e57bceb5a5aab7a73db1805848e8fef3c9e8c78b3" +dependencies = [ + "serde_core", +] + +[[package]] +name = "block-buffer" +version = "0.10.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71" +dependencies = [ + "generic-array", +] + +[[package]] +name = "block2" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cdeb9d870516001442e364c5220d3574d2da8dc765554b4a617230d33fa58ef5" +dependencies = [ + "objc2", +] + +[[package]] +name = "blocking" +version = "1.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e83f8d02be6967315521be875afa792a316e28d57b5a2d401897e2a7921b7f21" +dependencies = [ + "async-channel", + "async-task", + "futures-io", + "futures-lite", + "piper", +] + +[[package]] +name = "brotli" +version = "8.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4bd8b9603c7aa97359dbd97ecf258968c95f3adddd6db2f7e7a5bef101c84560" +dependencies = [ + "alloc-no-stdlib", + "alloc-stdlib", + "brotli-decompressor", +] + +[[package]] +name = "brotli-decompressor" +version = "5.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "874bb8112abecc98cbd6d81ea4fa7e94fb9449648c93cc89aa40c81c24d7de03" +dependencies = [ + "alloc-no-stdlib", + "alloc-stdlib", +] + +[[package]] +name = "bs58" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bf88ba1141d185c399bee5288d850d63b8369520c1eafc32a0430b5b6c287bf4" +dependencies = [ + "tinyvec", +] + +[[package]] +name = "bumpalo" +version = "3.20.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5d20789868f4b01b2f2caec9f5c4e0213b41e3e5702a50157d699ae31ced2fcb" + +[[package]] +name = "bytemuck" +version = "1.25.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c8efb64bd706a16a1bdde310ae86b351e4d21550d98d056f22f8a7f7a2183fec" + +[[package]] +name = "byteorder" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" + +[[package]] +name = "bytes" +version = "1.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e748733b7cbc798e1434b6ac524f0c1ff2ab456fe201501e6497c8417a4fc33" +dependencies = [ + "serde", +] + +[[package]] +name = "cairo-rs" +version = "0.18.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ca26ef0159422fb77631dc9d17b102f253b876fe1586b03b803e63a309b4ee2" +dependencies = [ + "bitflags 2.11.1", + "cairo-sys-rs", + "glib", + "libc", + "once_cell", + "thiserror 1.0.69", +] + +[[package]] +name = "cairo-sys-rs" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "685c9fa8e590b8b3d678873528d83411db17242a73fccaed827770ea0fedda51" +dependencies = [ + "glib-sys", + "libc", + "system-deps", +] + +[[package]] +name = "camino" +version = "1.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e629a66d692cb9ff1a1c664e41771b3dcaf961985a9774c0eb0bd1b51cf60a48" +dependencies = [ + "serde_core", +] + +[[package]] +name = "cargo-platform" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e35af189006b9c0f00a064685c727031e3ed2d8020f7ba284d78cc2671bd36ea" +dependencies = [ + "serde", +] + +[[package]] +name = "cargo_metadata" +version = "0.19.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dd5eb614ed4c27c5d706420e4320fbe3216ab31fa1c33cd8246ac36dae4479ba" +dependencies = [ + "camino", + "cargo-platform", + "semver", + "serde", + "serde_json", + "thiserror 2.0.18", +] + +[[package]] +name = "cargo_toml" +version = "0.22.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "374b7c592d9c00c1f4972ea58390ac6b18cbb6ab79011f3bdc90a0b82ca06b77" +dependencies = [ + "serde", + "toml 0.9.12+spec-1.1.0", +] + +[[package]] +name = "cc" +version = "1.2.62" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a1dce859f0832a7d088c4f1119888ab94ef4b5d6795d1ce05afb7fe159d79f98" +dependencies = [ + "find-msvc-tools", + "shlex", +] + +[[package]] +name = "cesu8" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6d43a04d8753f35258c91f8ec639f792891f748a1edbd759cf1dcea3382ad83c" + +[[package]] +name = "cfb" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d38f2da7a0a2c4ccf0065be06397cc26a81f4e528be095826eee9d4adbb8c60f" +dependencies = [ + "byteorder", + "fnv", + "uuid", +] + +[[package]] +name = "cfg-expr" +version = "0.15.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d067ad48b8650848b989a59a86c6c36a995d02d2bf778d45c3c5d57bc2718f02" +dependencies = [ + "smallvec", + "target-lexicon", +] + +[[package]] +name = "cfg-if" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801" + +[[package]] +name = "chrono" +version = "0.4.44" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c673075a2e0e5f4a1dde27ce9dee1ea4558c7ffe648f576438a20ca1d2acc4b0" +dependencies = [ + "iana-time-zone", + "js-sys", + "num-traits", + "serde", + "wasm-bindgen", + "windows-link 0.2.1", +] + +[[package]] +name = "combine" +version = "4.6.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba5a308b75df32fe02788e748662718f03fde005016435c444eea572398219fd" +dependencies = [ + "bytes", + "memchr", +] + +[[package]] +name = "concurrent-queue" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ca0197aee26d1ae37445ee532fefce43251d24cc7c166799f4d46817f1d3973" +dependencies = [ + "crossbeam-utils", +] + +[[package]] +name = "cookie" +version = "0.18.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ddef33a339a91ea89fb53151bd0a4689cfce27055c291dfa69945475d22c747" +dependencies = [ + "time", + "version_check", +] + +[[package]] +name = "core-foundation" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b2a6cd9ae233e7f62ba4e9353e81a88df7fc8a5987b8d445b4d90c879bd156f6" +dependencies = [ + "core-foundation-sys", + "libc", +] + +[[package]] +name = "core-foundation-sys" +version = "0.8.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" + +[[package]] +name = "core-graphics" +version = "0.25.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "064badf302c3194842cf2c5d61f56cc88e54a759313879cdf03abdd27d0c3b97" +dependencies = [ + "bitflags 2.11.1", + "core-foundation", + "core-graphics-types", + "foreign-types", + "libc", +] + +[[package]] +name = "core-graphics-types" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3d44a101f213f6c4cdc1853d4b78aef6db6bdfa3468798cc1d9912f4735013eb" +dependencies = [ + "bitflags 2.11.1", + "core-foundation", + "libc", +] + +[[package]] +name = "cpufeatures" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "59ed5838eebb26a2bb2e58f6d5b5316989ae9d08bab10e0e6d103e656d1b0280" +dependencies = [ + "libc", +] + +[[package]] +name = "crc32fast" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9481c1c90cbf2ac953f07c8d4a58aa3945c425b7185c9154d67a65e4230da511" +dependencies = [ + "cfg-if", +] + +[[package]] +name = "crossbeam-channel" +version = "0.5.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "82b8f8f868b36967f9606790d1903570de9ceaf870a7bf9fbbd3016d636a2cb2" +dependencies = [ + "crossbeam-utils", +] + +[[package]] +name = "crossbeam-utils" +version = "0.8.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28" + +[[package]] +name = "crypto-common" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "78c8292055d1c1df0cce5d180393dc8cce0abec0a7102adb6c7b1eef6016d60a" +dependencies = [ + "generic-array", + "typenum", +] + +[[package]] +name = "cssparser" +version = "0.36.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dae61cf9c0abb83bd659dab65b7e4e38d8236824c85f0f804f173567bda257d2" +dependencies = [ + "cssparser-macros", + "dtoa-short", + "itoa", + "phf", + "smallvec", +] + +[[package]] +name = "cssparser-macros" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "13b588ba4ac1a99f7f2964d24b3d896ddc6bf847ee3855dbd4366f058cfcd331" +dependencies = [ + "quote", + "syn 2.0.117", +] + +[[package]] +name = "ctor" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "352d39c2f7bef1d6ad73db6f5160efcaed66d94ef8c6c573a8410c00bf909a98" +dependencies = [ + "ctor-proc-macro", + "dtor", +] + +[[package]] +name = "ctor-proc-macro" +version = "0.0.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "52560adf09603e58c9a7ee1fe1dcb95a16927b17c127f0ac02d6e768a0e25bc1" + +[[package]] +name = "darling" +version = "0.23.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "25ae13da2f202d56bd7f91c25fba009e7717a1e4a1cc98a76d844b65ae912e9d" +dependencies = [ + "darling_core", + "darling_macro", +] + +[[package]] +name = "darling_core" +version = "0.23.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9865a50f7c335f53564bb694ef660825eb8610e0a53d3e11bf1b0d3df31e03b0" +dependencies = [ + "ident_case", + "proc-macro2", + "quote", + "strsim", + "syn 2.0.117", +] + +[[package]] +name = "darling_macro" +version = "0.23.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ac3984ec7bd6cfa798e62b4a642426a5be0e68f9401cfc2a01e3fa9ea2fcdb8d" +dependencies = [ + "darling_core", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "dbus" +version = "0.9.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b942602992bb7acfd1f51c49811c58a610ef9181b6e66f3e519d79b540a3bf73" +dependencies = [ + "libc", + "libdbus-sys", + "windows-sys 0.61.2", +] + +[[package]] +name = "deranged" +version = "0.5.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7cd812cc2bc1d69d4764bd80df88b4317eaef9e773c75226407d9bc0876b211c" +dependencies = [ + "powerfmt", + "serde_core", +] + +[[package]] +name = "derive_more" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d751e9e49156b02b44f9c1815bcb94b984cdcc4396ecc32521c739452808b134" +dependencies = [ + "derive_more-impl", +] + +[[package]] +name = "derive_more-impl" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "799a97264921d8623a957f6c3b9011f3b5492f557bbb7a5a19b7fa6d06ba8dcb" +dependencies = [ + "proc-macro2", + "quote", + "rustc_version", + "syn 2.0.117", +] + +[[package]] +name = "digest" +version = "0.10.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" +dependencies = [ + "block-buffer", + "crypto-common", +] + +[[package]] +name = "dirs" +version = "6.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3e8aa94d75141228480295a7d0e7feb620b1a5ad9f12bc40be62411e38cce4e" +dependencies = [ + "dirs-sys", +] + +[[package]] +name = "dirs-sys" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e01a3366d27ee9890022452ee61b2b63a67e6f13f58900b651ff5665f0bb1fab" +dependencies = [ + "libc", + "option-ext", + "redox_users", + "windows-sys 0.61.2", +] + +[[package]] +name = "dispatch2" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e0e367e4e7da84520dedcac1901e4da967309406d1e51017ae1abfb97adbd38" +dependencies = [ + "bitflags 2.11.1", + "block2", + "libc", + "objc2", +] + +[[package]] +name = "displaydoc" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "dlopen2" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e2c5bd4158e66d1e215c49b837e11d62f3267b30c92f1d171c4d3105e3dc4d4" +dependencies = [ + "dlopen2_derive", + "libc", + "once_cell", + "winapi", +] + +[[package]] +name = "dlopen2_derive" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0fbbb781877580993a8707ec48672673ec7b81eeba04cfd2310bd28c08e47c8f" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "dom_query" +version = "0.27.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "521e380c0c8afb8d9a1e83a1822ee03556fc3e3e7dbc1fd30be14e37f9cb3f89" +dependencies = [ + "bit-set", + "cssparser", + "foldhash 0.2.0", + "html5ever", + "precomputed-hash", + "selectors", + "tendril", +] + +[[package]] +name = "dpi" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d8b14ccef22fc6f5a8f4d7d768562a182c04ce9a3b3157b91390b52ddfdf1a76" +dependencies = [ + "serde", +] + +[[package]] +name = "dtoa" +version = "1.0.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4c3cf4824e2d5f025c7b531afcb2325364084a16806f6d47fbc1f5fbd9960590" + +[[package]] +name = "dtoa-short" +version = "0.3.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cd1511a7b6a56299bd043a9c167a6d2bfb37bf84a6dfceaba651168adfb43c87" +dependencies = [ + "dtoa", +] + +[[package]] +name = "dtor" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f1057d6c64987086ff8ed0fd3fbf377a6b7d205cc7715868cd401705f715cbe4" +dependencies = [ + "dtor-proc-macro", +] + +[[package]] +name = "dtor-proc-macro" +version = "0.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f678cf4a922c215c63e0de95eb1ff08a958a81d47e485cf9da1e27bf6305cfa5" + +[[package]] +name = "dunce" +version = "1.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92773504d58c093f6de2459af4af33faa518c13451eb8f2b5698ed3d36e7c813" + +[[package]] +name = "dyn-clone" +version = "1.0.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d0881ea181b1df73ff77ffaaf9c7544ecc11e82fba9b5f27b262a3c73a332555" + +[[package]] +name = "embed-resource" +version = "3.0.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c31a88c8d26de40ed18fe748c547845aa39de1db3afd958f8cb91579f3644bcb" +dependencies = [ + "cc", + "memchr", + "rustc_version", + "toml 1.1.2+spec-1.1.0", + "vswhom", + "winreg", +] + +[[package]] +name = "embed_plist" +version = "1.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ef6b89e5b37196644d8796de5268852ff179b44e96276cf4290264843743bb7" + +[[package]] +name = "endi" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "66b7e2430c6dff6a955451e2cfc438f09cea1965a9d6f87f7e3b90decc014099" + +[[package]] +name = "enumflags2" +version = "0.7.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1027f7680c853e056ebcec683615fb6fbbc07dbaa13b4d5d9442b146ded4ecef" +dependencies = [ + "enumflags2_derive", + "serde", +] + +[[package]] +name = "enumflags2_derive" +version = "0.7.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67c78a4d8fdf9953a5c9d458f9efe940fd97a0cab0941c075a813ac594733827" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "equivalent" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f" + +[[package]] +name = "erased-serde" +version = "0.4.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d2add8a07dd6a8d93ff627029c51de145e12686fbc36ecb298ac22e74cf02dec" +dependencies = [ + "serde", + "serde_core", + "typeid", +] + +[[package]] +name = "errno" +version = "0.3.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb" +dependencies = [ + "libc", + "windows-sys 0.61.2", +] + +[[package]] +name = "event-listener" +version = "5.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e13b66accf52311f30a0db42147dadea9850cb48cd070028831ae5f5d4b856ab" +dependencies = [ + "concurrent-queue", + "parking", + "pin-project-lite", +] + +[[package]] +name = "event-listener-strategy" +version = "0.5.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8be9f3dfaaffdae2972880079a491a1a8bb7cbed0b8dd7a347f668b4150a3b93" +dependencies = [ + "event-listener", + "pin-project-lite", +] + +[[package]] +name = "fallible-iterator" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2acce4a10f12dc2fb14a218589d4f1f62ef011b2d0cc4b3cb1bba8e94da14649" + +[[package]] +name = "fallible-streaming-iterator" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7360491ce676a36bf9bb3c56c1aa791658183a54d2744120f27285738d90465a" + +[[package]] +name = "fastrand" +version = "2.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9f1f227452a390804cdb637b74a86990f2a7d7ba4b7d5693aac9b4dd6defd8d6" + +[[package]] +name = "fdeflate" +version = "0.3.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e6853b52649d4ac5c0bd02320cddc5ba956bdb407c4b75a2c6b75bf51500f8c" +dependencies = [ + "simd-adler32", +] + +[[package]] +name = "field-offset" +version = "0.3.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38e2275cc4e4fc009b0669731a1e5ab7ebf11f469eaede2bab9309a5b4d6057f" +dependencies = [ + "memoffset", + "rustc_version", +] + +[[package]] +name = "filey-erp" +version = "0.1.0" +dependencies = [ + "chrono", + "rusqlite", + "serde", + "serde_json", + "tauri", + "tauri-build", + "tauri-plugin-opener", + "thiserror 2.0.18", + "uuid", +] + +[[package]] +name = "find-msvc-tools" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5baebc0774151f905a1a2cc41989300b1e6fbb29aff0ceffa1064fdd3088d582" + +[[package]] +name = "flate2" +version = "1.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "843fba2746e448b37e26a819579957415c8cef339bf08564fe8b7ddbd959573c" +dependencies = [ + "crc32fast", + "miniz_oxide", +] + +[[package]] +name = "fnv" +version = "1.0.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" + +[[package]] +name = "foldhash" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d9c4f5dac5e15c24eb999c26181a6ca40b39fe946cbe4c263c7209467bc83af2" + +[[package]] +name = "foldhash" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77ce24cb58228fbb8aa041425bb1050850ac19177686ea6e0f41a70416f56fdb" + +[[package]] +name = "foreign-types" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d737d9aa519fb7b749cbc3b962edcf310a8dd1f4b67c91c4f83975dbdd17d965" +dependencies = [ + "foreign-types-macros", + "foreign-types-shared", +] + +[[package]] +name = "foreign-types-macros" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1a5c6c585bc94aaf2c7b51dd4c2ba22680844aba4c687be581871a6f518c5742" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "foreign-types-shared" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aa9a19cbb55df58761df49b23516a86d432839add4af60fc256da840f66ed35b" + +[[package]] +name = "form_urlencoded" +version = "1.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf" +dependencies = [ + "percent-encoding", +] + +[[package]] +name = "futures-channel" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "07bbe89c50d7a535e539b8c17bc0b49bdb77747034daa8087407d655f3f7cc1d" +dependencies = [ + "futures-core", +] + +[[package]] +name = "futures-core" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7e3450815272ef58cec6d564423f6e755e25379b217b0bc688e295ba24df6b1d" + +[[package]] +name = "futures-executor" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "baf29c38818342a3b26b5b923639e7b1f4a61fc5e76102d4b1981c6dc7a7579d" +dependencies = [ + "futures-core", + "futures-task", + "futures-util", +] + +[[package]] +name = "futures-io" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cecba35d7ad927e23624b22ad55235f2239cfa44fd10428eecbeba6d6a717718" + +[[package]] +name = "futures-lite" +version = "2.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f78e10609fe0e0b3f4157ffab1876319b5b0db102a2c60dc4626306dc46b44ad" +dependencies = [ + "fastrand", + "futures-core", + "futures-io", + "parking", + "pin-project-lite", +] + +[[package]] +name = "futures-macro" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e835b70203e41293343137df5c0664546da5745f82ec9b84d40be8336958447b" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "futures-sink" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c39754e157331b013978ec91992bde1ac089843443c49cbc7f46150b0fad0893" + +[[package]] +name = "futures-task" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "037711b3d59c33004d3856fbdc83b99d4ff37a24768fa1be9ce3538a1cde4393" + +[[package]] +name = "futures-util" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "389ca41296e6190b48053de0321d02a77f32f8a5d2461dd38762c0593805c6d6" +dependencies = [ + "futures-core", + "futures-io", + "futures-macro", + "futures-sink", + "futures-task", + "memchr", + "pin-project-lite", + "slab", +] + +[[package]] +name = "gdk" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d9f245958c627ac99d8e529166f9823fb3b838d1d41fd2b297af3075093c2691" +dependencies = [ + "cairo-rs", + "gdk-pixbuf", + "gdk-sys", + "gio", + "glib", + "libc", + "pango", +] + +[[package]] +name = "gdk-pixbuf" +version = "0.18.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "50e1f5f1b0bfb830d6ccc8066d18db35c487b1b2b1e8589b5dfe9f07e8defaec" +dependencies = [ + "gdk-pixbuf-sys", + "gio", + "glib", + "libc", + "once_cell", +] + +[[package]] +name = "gdk-pixbuf-sys" +version = "0.18.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f9839ea644ed9c97a34d129ad56d38a25e6756f99f3a88e15cd39c20629caf7" +dependencies = [ + "gio-sys", + "glib-sys", + "gobject-sys", + "libc", + "system-deps", +] + +[[package]] +name = "gdk-sys" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c2d13f38594ac1e66619e188c6d5a1adb98d11b2fcf7894fc416ad76aa2f3f7" +dependencies = [ + "cairo-sys-rs", + "gdk-pixbuf-sys", + "gio-sys", + "glib-sys", + "gobject-sys", + "libc", + "pango-sys", + "pkg-config", + "system-deps", +] + +[[package]] +name = "gdkwayland-sys" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "140071d506d223f7572b9f09b5e155afbd77428cd5cc7af8f2694c41d98dfe69" +dependencies = [ + "gdk-sys", + "glib-sys", + "gobject-sys", + "libc", + "pkg-config", + "system-deps", +] + +[[package]] +name = "gdkx11" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3caa00e14351bebbc8183b3c36690327eb77c49abc2268dd4bd36b856db3fbfe" +dependencies = [ + "gdk", + "gdkx11-sys", + "gio", + "glib", + "libc", + "x11", +] + +[[package]] +name = "gdkx11-sys" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e2e7445fe01ac26f11601db260dd8608fe172514eb63b3b5e261ea6b0f4428d" +dependencies = [ + "gdk-sys", + "glib-sys", + "libc", + "system-deps", + "x11", +] + +[[package]] +name = "generic-array" +version = "0.14.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a" +dependencies = [ + "typenum", + "version_check", +] + +[[package]] +name = "getrandom" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff2abc00be7fca6ebc474524697ae276ad847ad0a6b3faa4bcb027e9a4614ad0" +dependencies = [ + "cfg-if", + "libc", + "wasi", +] + +[[package]] +name = "getrandom" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "899def5c37c4fd7b2664648c28120ecec138e4d395b459e5ca34f9cce2dd77fd" +dependencies = [ + "cfg-if", + "libc", + "r-efi 5.3.0", + "wasip2", +] + +[[package]] +name = "getrandom" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0de51e6874e94e7bf76d726fc5d13ba782deca734ff60d5bb2fb2607c7406555" +dependencies = [ + "cfg-if", + "libc", + "r-efi 6.0.0", + "wasip2", + "wasip3", +] + +[[package]] +name = "gio" +version = "0.18.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d4fc8f532f87b79cbc51a79748f16a6828fb784be93145a322fa14d06d354c73" +dependencies = [ + "futures-channel", + "futures-core", + "futures-io", + "futures-util", + "gio-sys", + "glib", + "libc", + "once_cell", + "pin-project-lite", + "smallvec", + "thiserror 1.0.69", +] + +[[package]] +name = "gio-sys" +version = "0.18.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "37566df850baf5e4cb0dfb78af2e4b9898d817ed9263d1090a2df958c64737d2" +dependencies = [ + "glib-sys", + "gobject-sys", + "libc", + "system-deps", + "winapi", +] + +[[package]] +name = "glib" +version = "0.18.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "233daaf6e83ae6a12a52055f568f9d7cf4671dabb78ff9560ab6da230ce00ee5" +dependencies = [ + "bitflags 2.11.1", + "futures-channel", + "futures-core", + "futures-executor", + "futures-task", + "futures-util", + "gio-sys", + "glib-macros", + "glib-sys", + "gobject-sys", + "libc", + "memchr", + "once_cell", + "smallvec", + "thiserror 1.0.69", +] + +[[package]] +name = "glib-macros" +version = "0.18.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0bb0228f477c0900c880fd78c8759b95c7636dbd7842707f49e132378aa2acdc" +dependencies = [ + "heck 0.4.1", + "proc-macro-crate 2.0.2", + "proc-macro-error", + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "glib-sys" +version = "0.18.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "063ce2eb6a8d0ea93d2bf8ba1957e78dbab6be1c2220dd3daca57d5a9d869898" +dependencies = [ + "libc", + "system-deps", +] + +[[package]] +name = "glob" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0cc23270f6e1808e30a928bdc84dea0b9b4136a8bc82338574f23baf47bbd280" + +[[package]] +name = "gobject-sys" +version = "0.18.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0850127b514d1c4a4654ead6dedadb18198999985908e6ffe4436f53c785ce44" +dependencies = [ + "glib-sys", + "libc", + "system-deps", +] + +[[package]] +name = "gtk" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fd56fb197bfc42bd5d2751f4f017d44ff59fbb58140c6b49f9b3b2bdab08506a" +dependencies = [ + "atk", + "cairo-rs", + "field-offset", + "futures-channel", + "gdk", + "gdk-pixbuf", + "gio", + "glib", + "gtk-sys", + "gtk3-macros", + "libc", + "pango", + "pkg-config", +] + +[[package]] +name = "gtk-sys" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f29a1c21c59553eb7dd40e918be54dccd60c52b049b75119d5d96ce6b624414" +dependencies = [ + "atk-sys", + "cairo-sys-rs", + "gdk-pixbuf-sys", + "gdk-sys", + "gio-sys", + "glib-sys", + "gobject-sys", + "libc", + "pango-sys", + "system-deps", +] + +[[package]] +name = "gtk3-macros" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "52ff3c5b21f14f0736fed6dcfc0bfb4225ebf5725f3c0209edeec181e4d73e9d" +dependencies = [ + "proc-macro-crate 1.3.1", + "proc-macro-error", + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "hashbrown" +version = "0.12.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" + +[[package]] +name = "hashbrown" +version = "0.14.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1" +dependencies = [ + "ahash", +] + +[[package]] +name = "hashbrown" +version = "0.15.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9229cfe53dfd69f0609a49f65461bd93001ea1ef889cd5529dd176593f5338a1" +dependencies = [ + "foldhash 0.1.5", +] + +[[package]] +name = "hashbrown" +version = "0.17.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a" + +[[package]] +name = "hashlink" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ba4ff7128dee98c7dc9794b6a411377e1404dba1c97deb8d1a55297bd25d8af" +dependencies = [ + "hashbrown 0.14.5", +] + +[[package]] +name = "heck" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8" + +[[package]] +name = "heck" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" + +[[package]] +name = "hermit-abi" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc0fef456e4baa96da950455cd02c081ca953b141298e41db3fc7e36b1da849c" + +[[package]] +name = "hex" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" + +[[package]] +name = "html5ever" +version = "0.38.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1054432bae2f14e0061e33d23402fbaa67a921d319d56adc6bcf887ddad1cbc2" +dependencies = [ + "log", + "markup5ever", +] + +[[package]] +name = "http" +version = "1.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3ba2a386d7f85a81f119ad7498ebe444d2e22c2af0b86b069416ace48b3311a" +dependencies = [ + "bytes", + "itoa", +] + +[[package]] +name = "http-body" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1efedce1fb8e6913f23e0c92de8e62cd5b772a67e7b3946df930a62566c93184" +dependencies = [ + "bytes", + "http", +] + +[[package]] +name = "http-body-util" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b021d93e26becf5dc7e1b75b1bed1fd93124b374ceb73f43d4d4eafec896a64a" +dependencies = [ + "bytes", + "futures-core", + "http", + "http-body", + "pin-project-lite", +] + +[[package]] +name = "httparse" +version = "1.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87" + +[[package]] +name = "hyper" +version = "1.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6299f016b246a94207e63da54dbe807655bf9e00044f73ded42c3ac5305fbcca" +dependencies = [ + "atomic-waker", + "bytes", + "futures-channel", + "futures-core", + "http", + "http-body", + "httparse", + "itoa", + "pin-project-lite", + "smallvec", + "tokio", + "want", +] + +[[package]] +name = "hyper-util" +version = "0.1.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "96547c2556ec9d12fb1578c4eaf448b04993e7fb79cbaad930a656880a6bdfa0" +dependencies = [ + "base64 0.22.1", + "bytes", + "futures-channel", + "futures-util", + "http", + "http-body", + "hyper", + "ipnet", + "libc", + "percent-encoding", + "pin-project-lite", + "socket2", + "tokio", + "tower-service", + "tracing", +] + +[[package]] +name = "iana-time-zone" +version = "0.1.65" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e31bc9ad994ba00e440a8aa5c9ef0ec67d5cb5e5cb0cc7f8b744a35b389cc470" +dependencies = [ + "android_system_properties", + "core-foundation-sys", + "iana-time-zone-haiku", + "js-sys", + "log", + "wasm-bindgen", + "windows-core 0.62.2", +] + +[[package]] +name = "iana-time-zone-haiku" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f" +dependencies = [ + "cc", +] + +[[package]] +name = "ico" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3e795dff5605e0f04bff85ca41b51a96b83e80b281e96231bcaaf1ac35103371" +dependencies = [ + "byteorder", + "png 0.17.16", +] + +[[package]] +name = "icu_collections" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2984d1cd16c883d7935b9e07e44071dca8d917fd52ecc02c04d5fa0b5a3f191c" +dependencies = [ + "displaydoc", + "potential_utf", + "utf8_iter", + "yoke", + "zerofrom", + "zerovec", +] + +[[package]] +name = "icu_locale_core" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92219b62b3e2b4d88ac5119f8904c10f8f61bf7e95b640d25ba3075e6cac2c29" +dependencies = [ + "displaydoc", + "litemap", + "tinystr", + "writeable", + "zerovec", +] + +[[package]] +name = "icu_normalizer" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c56e5ee99d6e3d33bd91c5d85458b6005a22140021cc324cea84dd0e72cff3b4" +dependencies = [ + "icu_collections", + "icu_normalizer_data", + "icu_properties", + "icu_provider", + "smallvec", + "zerovec", +] + +[[package]] +name = "icu_normalizer_data" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "da3be0ae77ea334f4da67c12f149704f19f81d1adf7c51cf482943e84a2bad38" + +[[package]] +name = "icu_properties" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bee3b67d0ea5c2cca5003417989af8996f8604e34fb9ddf96208a033901e70de" +dependencies = [ + "icu_collections", + "icu_locale_core", + "icu_properties_data", + "icu_provider", + "zerotrie", + "zerovec", +] + +[[package]] +name = "icu_properties_data" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e2bbb201e0c04f7b4b3e14382af113e17ba4f63e2c9d2ee626b720cbce54a14" + +[[package]] +name = "icu_provider" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "139c4cf31c8b5f33d7e199446eff9c1e02decfc2f0eec2c8d71f65befa45b421" +dependencies = [ + "displaydoc", + "icu_locale_core", + "writeable", + "yoke", + "zerofrom", + "zerotrie", + "zerovec", +] + +[[package]] +name = "id-arena" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3d3067d79b975e8844ca9eb072e16b31c3c1c36928edf9c6789548c524d0d954" + +[[package]] +name = "ident_case" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39" + +[[package]] +name = "idna" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3b0875f23caa03898994f6ddc501886a45c7d3d62d04d2d90788d47be1b1e4de" +dependencies = [ + "idna_adapter", + "smallvec", + "utf8_iter", +] + +[[package]] +name = "idna_adapter" +version = "1.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb68373c0d6620ef8105e855e7745e18b0d00d3bdb07fb532e434244cdb9a714" +dependencies = [ + "icu_normalizer", + "icu_properties", +] + +[[package]] +name = "indexmap" +version = "1.9.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bd070e393353796e801d209ad339e89596eb4c8d430d18ede6a1cced8fafbd99" +dependencies = [ + "autocfg", + "hashbrown 0.12.3", + "serde", +] + +[[package]] +name = "indexmap" +version = "2.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d466e9454f08e4a911e14806c24e16fba1b4c121d1ea474396f396069cf949d9" +dependencies = [ + "equivalent", + "hashbrown 0.17.1", + "serde", + "serde_core", +] + +[[package]] +name = "infer" +version = "0.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a588916bfdfd92e71cacef98a63d9b1f0d74d6599980d11894290e7ddefffcf7" +dependencies = [ + "cfb", +] + +[[package]] +name = "ipnet" +version = "2.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d98f6fed1fde3f8c21bc40a1abb88dd75e67924f9cffc3ef95607bad8017f8e2" + +[[package]] +name = "is-docker" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "928bae27f42bc99b60d9ac7334e3a21d10ad8f1835a4e12ec3ec0464765ed1b3" +dependencies = [ + "once_cell", +] + +[[package]] +name = "is-wsl" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "173609498df190136aa7dea1a91db051746d339e18476eed5ca40521f02d7aa5" +dependencies = [ + "is-docker", + "once_cell", +] + +[[package]] +name = "itoa" +version = "1.0.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682" + +[[package]] +name = "javascriptcore-rs" +version = "1.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca5671e9ffce8ffba57afc24070e906da7fc4b1ba66f2cabebf61bf2ea257fcc" +dependencies = [ + "bitflags 1.3.2", + "glib", + "javascriptcore-rs-sys", +] + +[[package]] +name = "javascriptcore-rs-sys" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "af1be78d14ffa4b75b66df31840478fef72b51f8c2465d4ca7c194da9f7a5124" +dependencies = [ + "glib-sys", + "gobject-sys", + "libc", + "system-deps", +] + +[[package]] +name = "jni" +version = "0.21.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1a87aa2bb7d2af34197c04845522473242e1aa17c12f4935d5856491a7fb8c97" +dependencies = [ + "cesu8", + "cfg-if", + "combine", + "jni-sys 0.3.1", + "log", + "thiserror 1.0.69", + "walkdir", + "windows-sys 0.45.0", +] + +[[package]] +name = "jni-sys" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41a652e1f9b6e0275df1f15b32661cf0d4b78d4d87ddec5e0c3c20f097433258" +dependencies = [ + "jni-sys 0.4.1", +] + +[[package]] +name = "jni-sys" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c6377a88cb3910bee9b0fa88d4f42e1d2da8e79915598f65fb0c7ee14c878af2" +dependencies = [ + "jni-sys-macros", +] + +[[package]] +name = "jni-sys-macros" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38c0b942f458fe50cdac086d2f946512305e5631e720728f2a61aabcd47a6264" +dependencies = [ + "quote", + "syn 2.0.117", +] + +[[package]] +name = "js-sys" +version = "0.3.98" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67df7112613f8bfd9150013a0314e196f4800d3201ae742489d999db2f979f08" +dependencies = [ + "cfg-if", + "futures-util", + "once_cell", + "wasm-bindgen", +] + +[[package]] +name = "json-patch" +version = "3.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "863726d7afb6bc2590eeff7135d923545e5e964f004c2ccf8716c25e70a86f08" +dependencies = [ + "jsonptr", + "serde", + "serde_json", + "thiserror 1.0.69", +] + +[[package]] +name = "jsonptr" +version = "0.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5dea2b27dd239b2556ed7a25ba842fe47fd602e7fc7433c2a8d6106d4d9edd70" +dependencies = [ + "serde", + "serde_json", +] + +[[package]] +name = "keyboard-types" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b750dcadc39a09dbadd74e118f6dd6598df77fa01df0cfcdc52c28dece74528a" +dependencies = [ + "bitflags 2.11.1", + "serde", + "unicode-segmentation", +] + +[[package]] +name = "leb128fmt" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09edd9e8b54e49e587e4f6295a7d29c3ea94d469cb40ab8ca70b288248a81db2" + +[[package]] +name = "libappindicator" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "03589b9607c868cc7ae54c0b2a22c8dc03dd41692d48f2d7df73615c6a95dc0a" +dependencies = [ + "glib", + "gtk", + "gtk-sys", + "libappindicator-sys", + "log", +] + +[[package]] +name = "libappindicator-sys" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e9ec52138abedcc58dc17a7c6c0c00a2bdb4f3427c7f63fa97fd0d859155caf" +dependencies = [ + "gtk-sys", + "libloading", + "once_cell", +] + +[[package]] +name = "libc" +version = "0.2.186" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "68ab91017fe16c622486840e4c83c9a37afeff978bd239b5293d61ece587de66" + +[[package]] +name = "libdbus-sys" +version = "0.2.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "328c4789d42200f1eeec05bd86c9c13c7f091d2ba9a6ea35acdf51f31bc0f043" +dependencies = [ + "pkg-config", +] + +[[package]] +name = "libloading" +version = "0.7.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b67380fd3b2fbe7527a606e18729d21c6f3951633d0500574c4dc22d2d638b9f" +dependencies = [ + "cfg-if", + "winapi", +] + +[[package]] +name = "libredox" +version = "0.1.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e02f3bb43d335493c96bf3fd3a321600bf6bd07ed34bc64118e9293bdffea46c" +dependencies = [ + "libc", +] + +[[package]] +name = "libsqlite3-sys" +version = "0.30.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2e99fb7a497b1e3339bc746195567ed8d3e24945ecd636e3619d20b9de9e9149" +dependencies = [ + "cc", + "pkg-config", + "vcpkg", +] + +[[package]] +name = "linux-raw-sys" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53" + +[[package]] +name = "litemap" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92daf443525c4cce67b150400bc2316076100ce0b3686209eb8cf3c31612e6f0" + +[[package]] +name = "lock_api" +version = "0.4.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965" +dependencies = [ + "scopeguard", +] + +[[package]] +name = "log" +version = "0.4.29" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e5032e24019045c762d3c0f28f5b6b8bbf38563a65908389bf7978758920897" + +[[package]] +name = "markup5ever" +version = "0.38.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8983d30f2915feeaaab2d6babdd6bc7e9ed1a00b66b5e6d74df19aa9c0e91862" +dependencies = [ + "log", + "tendril", + "web_atoms", +] + +[[package]] +name = "memchr" +version = "2.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8ca58f447f06ed17d5fc4043ce1b10dd205e060fb3ce5b979b8ed8e59ff3f79" + +[[package]] +name = "memoffset" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a" +dependencies = [ + "autocfg", +] + +[[package]] +name = "mime" +version = "0.3.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a" + +[[package]] +name = "miniz_oxide" +version = "0.8.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fa76a2c86f704bdb222d66965fb3d63269ce38518b83cb0575fca855ebb6316" +dependencies = [ + "adler2", + "simd-adler32", +] + +[[package]] +name = "mio" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "50b7e5b27aa02a74bac8c3f23f448f8d87ff11f92d3aac1a6ed369ee08cc56c1" +dependencies = [ + "libc", + "wasi", + "windows-sys 0.61.2", +] + +[[package]] +name = "muda" +version = "0.19.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ae8844f63b5b118e334e205585b8c5c17b984121dbdb179d44aeb087ffad3cb" +dependencies = [ + "crossbeam-channel", + "dpi", + "gtk", + "keyboard-types", + "objc2", + "objc2-app-kit", + "objc2-core-foundation", + "objc2-foundation", + "once_cell", + "png 0.18.1", + "serde", + "thiserror 2.0.18", + "windows-sys 0.61.2", +] + +[[package]] +name = "ndk" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3f42e7bbe13d351b6bead8286a43aac9534b82bd3cc43e47037f012ebfd62d4" +dependencies = [ + "bitflags 2.11.1", + "jni-sys 0.3.1", + "log", + "ndk-sys", + "num_enum", + "raw-window-handle", + "thiserror 1.0.69", +] + +[[package]] +name = "ndk-sys" +version = "0.6.0+11769913" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ee6cda3051665f1fb8d9e08fc35c96d5a244fb1be711a03b71118828afc9a873" +dependencies = [ + "jni-sys 0.3.1", +] + +[[package]] +name = "new_debug_unreachable" +version = "1.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "650eef8c711430f1a879fdd01d4745a7deea475becfb90269c06775983bbf086" + +[[package]] +name = "num-conv" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c6673768db2d862beb9b39a78fdcb1a69439615d5794a1be50caa9bc92c81967" + +[[package]] +name = "num-traits" +version = "0.2.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841" +dependencies = [ + "autocfg", +] + +[[package]] +name = "num_enum" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5d0bca838442ec211fa11de3a8b0e0e8f3a4522575b5c4c06ed722e005036f26" +dependencies = [ + "num_enum_derive", + "rustversion", +] + +[[package]] +name = "num_enum_derive" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "680998035259dcfcafe653688bf2aa6d3e2dc05e98be6ab46afb089dc84f1df8" +dependencies = [ + "proc-macro-crate 3.5.0", + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "objc2" +version = "0.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a12a8ed07aefc768292f076dc3ac8c48f3781c8f2d5851dd3d98950e8c5a89f" +dependencies = [ + "objc2-encode", + "objc2-exception-helper", +] + +[[package]] +name = "objc2-app-kit" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d49e936b501e5c5bf01fda3a9452ff86dc3ea98ad5f283e1455153142d97518c" +dependencies = [ + "bitflags 2.11.1", + "block2", + "objc2", + "objc2-core-foundation", + "objc2-foundation", +] + +[[package]] +name = "objc2-cloud-kit" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "73ad74d880bb43877038da939b7427bba67e9dd42004a18b809ba7d87cee241c" +dependencies = [ + "bitflags 2.11.1", + "objc2", + "objc2-foundation", +] + +[[package]] +name = "objc2-core-data" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b402a653efbb5e82ce4df10683b6b28027616a2715e90009947d50b8dd298fa" +dependencies = [ + "objc2", + "objc2-foundation", +] + +[[package]] +name = "objc2-core-foundation" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2a180dd8642fa45cdb7dd721cd4c11b1cadd4929ce112ebd8b9f5803cc79d536" +dependencies = [ + "bitflags 2.11.1", + "dispatch2", + "objc2", +] + +[[package]] +name = "objc2-core-graphics" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e022c9d066895efa1345f8e33e584b9f958da2fd4cd116792e15e07e4720a807" +dependencies = [ + "bitflags 2.11.1", + "dispatch2", + "objc2", + "objc2-core-foundation", + "objc2-io-surface", +] + +[[package]] +name = "objc2-core-image" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e5d563b38d2b97209f8e861173de434bd0214cf020e3423a52624cd1d989f006" +dependencies = [ + "objc2", + "objc2-foundation", +] + +[[package]] +name = "objc2-core-location" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca347214e24bc973fc025fd0d36ebb179ff30536ed1f80252706db19ee452009" +dependencies = [ + "objc2", + "objc2-foundation", +] + +[[package]] +name = "objc2-core-text" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0cde0dfb48d25d2b4862161a4d5fcc0e3c24367869ad306b0c9ec0073bfed92d" +dependencies = [ + "bitflags 2.11.1", + "objc2", + "objc2-core-foundation", + "objc2-core-graphics", +] + +[[package]] +name = "objc2-encode" +version = "4.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ef25abbcd74fb2609453eb695bd2f860d389e457f67dc17cafc8b8cbc89d0c33" + +[[package]] +name = "objc2-exception-helper" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c7a1c5fbb72d7735b076bb47b578523aedc40f3c439bea6dfd595c089d79d98a" +dependencies = [ + "cc", +] + +[[package]] +name = "objc2-foundation" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3e0adef53c21f888deb4fa59fc59f7eb17404926ee8a6f59f5df0fd7f9f3272" +dependencies = [ + "bitflags 2.11.1", + "block2", + "objc2", + "objc2-core-foundation", +] + +[[package]] +name = "objc2-io-surface" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "180788110936d59bab6bd83b6060ffdfffb3b922ba1396b312ae795e1de9d81d" +dependencies = [ + "bitflags 2.11.1", + "objc2", + "objc2-core-foundation", +] + +[[package]] +name = "objc2-quartz-core" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "96c1358452b371bf9f104e21ec536d37a650eb10f7ee379fff67d2e08d537f1f" +dependencies = [ + "bitflags 2.11.1", + "objc2", + "objc2-core-foundation", + "objc2-foundation", +] + +[[package]] +name = "objc2-ui-kit" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d87d638e33c06f577498cbcc50491496a3ed4246998a7fbba7ccb98b1e7eab22" +dependencies = [ + "bitflags 2.11.1", + "block2", + "objc2", + "objc2-cloud-kit", + "objc2-core-data", + "objc2-core-foundation", + "objc2-core-graphics", + "objc2-core-image", + "objc2-core-location", + "objc2-core-text", + "objc2-foundation", + "objc2-quartz-core", + "objc2-user-notifications", +] + +[[package]] +name = "objc2-user-notifications" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9df9128cbbfef73cda168416ccf7f837b62737d748333bfe9ab71c245d76613e" +dependencies = [ + "objc2", + "objc2-foundation", +] + +[[package]] +name = "objc2-web-kit" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b2e5aaab980c433cf470df9d7af96a7b46a9d892d521a2cbbb2f8a4c16751e7f" +dependencies = [ + "bitflags 2.11.1", + "block2", + "objc2", + "objc2-app-kit", + "objc2-core-foundation", + "objc2-foundation", +] + +[[package]] +name = "once_cell" +version = "1.21.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50" + +[[package]] +name = "open" +version = "5.3.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2fbaa89d2ddc8473c78a3adf69eea8cffa28c483b8e02a971ef31527cd0fc92c" +dependencies = [ + "dunce", + "is-wsl", + "libc", + "pathdiff", +] + +[[package]] +name = "option-ext" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "04744f49eae99ab78e0d5c0b603ab218f515ea8cfe5a456d7629ad883a3b6e7d" + +[[package]] +name = "ordered-stream" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9aa2b01e1d916879f73a53d01d1d6cee68adbb31d6d9177a8cfce093cced1d50" +dependencies = [ + "futures-core", + "pin-project-lite", +] + +[[package]] +name = "pango" +version = "0.18.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7ca27ec1eb0457ab26f3036ea52229edbdb74dee1edd29063f5b9b010e7ebee4" +dependencies = [ + "gio", + "glib", + "libc", + "once_cell", + "pango-sys", +] + +[[package]] +name = "pango-sys" +version = "0.18.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "436737e391a843e5933d6d9aa102cb126d501e815b83601365a948a518555dc5" +dependencies = [ + "glib-sys", + "gobject-sys", + "libc", + "system-deps", +] + +[[package]] +name = "parking" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f38d5652c16fde515bb1ecef450ab0f6a219d619a7274976324d5e377f7dceba" + +[[package]] +name = "parking_lot" +version = "0.12.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a" +dependencies = [ + "lock_api", + "parking_lot_core", +] + +[[package]] +name = "parking_lot_core" +version = "0.9.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1" +dependencies = [ + "cfg-if", + "libc", + "redox_syscall", + "smallvec", + "windows-link 0.2.1", +] + +[[package]] +name = "pathdiff" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df94ce210e5bc13cb6651479fa48d14f601d9858cfe0467f43ae157023b938d3" + +[[package]] +name = "percent-encoding" +version = "2.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220" + +[[package]] +name = "phf" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c1562dc717473dbaa4c1f85a36410e03c047b2e7df7f45ee938fbef64ae7fadf" +dependencies = [ + "phf_macros", + "phf_shared", + "serde", +] + +[[package]] +name = "phf_codegen" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "49aa7f9d80421bca176ca8dbfebe668cc7a2684708594ec9f3c0db0805d5d6e1" +dependencies = [ + "phf_generator", + "phf_shared", +] + +[[package]] +name = "phf_generator" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "135ace3a761e564ec88c03a77317a7c6b80bb7f7135ef2544dbe054243b89737" +dependencies = [ + "fastrand", + "phf_shared", +] + +[[package]] +name = "phf_macros" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "812f032b54b1e759ccd5f8b6677695d5268c588701effba24601f6932f8269ef" +dependencies = [ + "phf_generator", + "phf_shared", + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "phf_shared" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e57fef6bc5981e38c2ce2d63bfa546861309f875b8a75f092d1d54ae2d64f266" +dependencies = [ + "siphasher", +] + +[[package]] +name = "pin-project-lite" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd" + +[[package]] +name = "piper" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c835479a4443ded371d6c535cbfd8d31ad92c5d23ae9770a61bc155e4992a3c1" +dependencies = [ + "atomic-waker", + "fastrand", + "futures-io", +] + +[[package]] +name = "pkg-config" +version = "0.3.33" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "19f132c84eca552bf34cab8ec81f1c1dcc229b811638f9d283dceabe58c5569e" + +[[package]] +name = "plist" +version = "1.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "092791278e026273c1b65bbdcfbba3a300f2994c896bd01ab01da613c29c46f1" +dependencies = [ + "base64 0.22.1", + "indexmap 2.14.0", + "quick-xml", + "serde", + "time", +] + +[[package]] +name = "png" +version = "0.17.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "82151a2fc869e011c153adc57cf2789ccb8d9906ce52c0b39a6b5697749d7526" +dependencies = [ + "bitflags 1.3.2", + "crc32fast", + "fdeflate", + "flate2", + "miniz_oxide", +] + +[[package]] +name = "png" +version = "0.18.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "60769b8b31b2a9f263dae2776c37b1b28ae246943cf719eb6946a1db05128a61" +dependencies = [ + "bitflags 2.11.1", + "crc32fast", + "fdeflate", + "flate2", + "miniz_oxide", +] + +[[package]] +name = "polling" +version = "3.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5d0e4f59085d47d8241c88ead0f274e8a0cb551f3625263c05eb8dd897c34218" +dependencies = [ + "cfg-if", + "concurrent-queue", + "hermit-abi", + "pin-project-lite", + "rustix", + "windows-sys 0.61.2", +] + +[[package]] +name = "potential_utf" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0103b1cef7ec0cf76490e969665504990193874ea05c85ff9bab8b911d0a0564" +dependencies = [ + "zerovec", +] + +[[package]] +name = "powerfmt" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391" + +[[package]] +name = "precomputed-hash" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "925383efa346730478fb4838dbe9137d2a47675ad789c546d150a6e1dd4ab31c" + +[[package]] +name = "prettyplease" +version = "0.2.37" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "479ca8adacdd7ce8f1fb39ce9ecccbfe93a3f1344b3d0d97f20bc0196208f62b" +dependencies = [ + "proc-macro2", + "syn 2.0.117", +] + +[[package]] +name = "proc-macro-crate" +version = "1.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f4c021e1093a56626774e81216a4ce732a735e5bad4868a03f3ed65ca0c3919" +dependencies = [ + "once_cell", + "toml_edit 0.19.15", +] + +[[package]] +name = "proc-macro-crate" +version = "2.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b00f26d3400549137f92511a46ac1cd8ce37cb5598a96d382381458b992a5d24" +dependencies = [ + "toml_datetime 0.6.3", + "toml_edit 0.20.2", +] + +[[package]] +name = "proc-macro-crate" +version = "3.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e67ba7e9b2b56446f1d419b1d807906278ffa1a658a8a5d8a39dcb1f5a78614f" +dependencies = [ + "toml_edit 0.25.11+spec-1.1.0", +] + +[[package]] +name = "proc-macro-error" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c" +dependencies = [ + "proc-macro-error-attr", + "proc-macro2", + "quote", + "syn 1.0.109", + "version_check", +] + +[[package]] +name = "proc-macro-error-attr" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869" +dependencies = [ + "proc-macro2", + "quote", + "version_check", +] + +[[package]] +name = "proc-macro2" +version = "1.0.106" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "quick-xml" +version = "0.39.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cdcc8dd4e2f670d309a5f0e83fe36dfdc05af317008fea29144da1a2ac858e5e" +dependencies = [ + "memchr", +] + +[[package]] +name = "quote" +version = "1.0.45" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924" +dependencies = [ + "proc-macro2", +] + +[[package]] +name = "r-efi" +version = "5.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f" + +[[package]] +name = "r-efi" +version = "6.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf" + +[[package]] +name = "raw-window-handle" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "20675572f6f24e9e76ef639bc5552774ed45f1c30e2951e1e99c59888861c539" + +[[package]] +name = "redox_syscall" +version = "0.5.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d" +dependencies = [ + "bitflags 2.11.1", +] + +[[package]] +name = "redox_users" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a4e608c6638b9c18977b00b475ac1f28d14e84b27d8d42f70e0bf1e3dec127ac" +dependencies = [ + "getrandom 0.2.17", + "libredox", + "thiserror 2.0.18", +] + +[[package]] +name = "ref-cast" +version = "1.0.25" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f354300ae66f76f1c85c5f84693f0ce81d747e2c3f21a45fef496d89c960bf7d" +dependencies = [ + "ref-cast-impl", +] + +[[package]] +name = "ref-cast-impl" +version = "1.0.25" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b7186006dcb21920990093f30e3dea63b7d6e977bf1256be20c3563a5db070da" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "regex" +version = "1.12.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e10754a14b9137dd7b1e3e5b0493cc9171fdd105e0ab477f51b72e7f3ac0e276" +dependencies = [ + "aho-corasick", + "memchr", + "regex-automata", + "regex-syntax", +] + +[[package]] +name = "regex-automata" +version = "0.4.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e1dd4122fc1595e8162618945476892eefca7b88c52820e74af6262213cae8f" +dependencies = [ + "aho-corasick", + "memchr", + "regex-syntax", +] + +[[package]] +name = "regex-syntax" +version = "0.8.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc897dd8d9e8bd1ed8cdad82b5966c3e0ecae09fb1907d58efaa013543185d0a" + +[[package]] +name = "reqwest" +version = "0.13.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "62e0021ea2c22aed41653bc7e1419abb2c97e038ff2c33d0e1309e49a97deec0" +dependencies = [ + "base64 0.22.1", + "bytes", + "futures-core", + "futures-util", + "http", + "http-body", + "http-body-util", + "hyper", + "hyper-util", + "js-sys", + "log", + "percent-encoding", + "pin-project-lite", + "serde", + "serde_json", + "sync_wrapper", + "tokio", + "tokio-util", + "tower", + "tower-http", + "tower-service", + "url", + "wasm-bindgen", + "wasm-bindgen-futures", + "wasm-streams", + "web-sys", +] + +[[package]] +name = "rusqlite" +version = "0.32.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7753b721174eb8ff87a9a0e799e2d7bc3749323e773db92e0984debb00019d6e" +dependencies = [ + "bitflags 2.11.1", + "chrono", + "fallible-iterator", + "fallible-streaming-iterator", + "hashlink", + "libsqlite3-sys", + "smallvec", +] + +[[package]] +name = "rustc-hash" +version = "2.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94300abf3f1ae2e2b8ffb7b58043de3d399c73fa6f4b73826402a5c457614dbe" + +[[package]] +name = "rustc_version" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cfcb3a22ef46e85b45de6ee7e79d063319ebb6594faafcf1c225ea92ab6e9b92" +dependencies = [ + "semver", +] + +[[package]] +name = "rustix" +version = "1.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6fe4565b9518b83ef4f91bb47ce29620ca828bd32cb7e408f0062e9930ba190" +dependencies = [ + "bitflags 2.11.1", + "errno", + "libc", + "linux-raw-sys", + "windows-sys 0.61.2", +] + +[[package]] +name = "rustversion" +version = "1.0.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d" + +[[package]] +name = "same-file" +version = "1.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502" +dependencies = [ + "winapi-util", +] + +[[package]] +name = "schemars" +version = "0.8.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3fbf2ae1b8bc8e02df939598064d22402220cd5bbcca1c76f7d6a310974d5615" +dependencies = [ + "dyn-clone", + "indexmap 1.9.3", + "schemars_derive", + "serde", + "serde_json", + "url", + "uuid", +] + +[[package]] +name = "schemars" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4cd191f9397d57d581cddd31014772520aa448f65ef991055d7f61582c65165f" +dependencies = [ + "dyn-clone", + "ref-cast", + "serde", + "serde_json", +] + +[[package]] +name = "schemars" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a2b42f36aa1cd011945615b92222f6bf73c599a102a300334cd7f8dbeec726cc" +dependencies = [ + "dyn-clone", + "ref-cast", + "serde", + "serde_json", +] + +[[package]] +name = "schemars_derive" +version = "0.8.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32e265784ad618884abaea0600a9adf15393368d840e0222d101a072f3f7534d" +dependencies = [ + "proc-macro2", + "quote", + "serde_derive_internals", + "syn 2.0.117", +] + +[[package]] +name = "scopeguard" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" + +[[package]] +name = "selectors" +version = "0.36.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c5d9c0c92a92d33f08817311cf3f2c29a3538a8240e94a6a3c622ce652d7e00c" +dependencies = [ + "bitflags 2.11.1", + "cssparser", + "derive_more", + "log", + "new_debug_unreachable", + "phf", + "phf_codegen", + "precomputed-hash", + "rustc-hash", + "servo_arc", + "smallvec", +] + +[[package]] +name = "semver" +version = "1.0.28" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8a7852d02fc848982e0c167ef163aaff9cd91dc640ba85e263cb1ce46fae51cd" +dependencies = [ + "serde", + "serde_core", +] + +[[package]] +name = "serde" +version = "1.0.228" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e" +dependencies = [ + "serde_core", + "serde_derive", +] + +[[package]] +name = "serde-untagged" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f9faf48a4a2d2693be24c6289dbe26552776eb7737074e6722891fadbe6c5058" +dependencies = [ + "erased-serde", + "serde", + "serde_core", + "typeid", +] + +[[package]] +name = "serde_core" +version = "1.0.228" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad" +dependencies = [ + "serde_derive", +] + +[[package]] +name = "serde_derive" +version = "1.0.228" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "serde_derive_internals" +version = "0.29.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "18d26a20a969b9e3fdf2fc2d9f21eda6c40e2de84c9408bb5d3b05d499aae711" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "serde_json" +version = "1.0.149" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "83fc039473c5595ace860d8c4fafa220ff474b3fc6bfdb4293327f1a37e94d86" +dependencies = [ + "itoa", + "memchr", + "serde", + "serde_core", + "zmij", +] + +[[package]] +name = "serde_repr" +version = "0.1.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "175ee3e80ae9982737ca543e96133087cbd9a485eecc3bc4de9c1a37b47ea59c" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "serde_spanned" +version = "0.6.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bf41e0cfaf7226dca15e8197172c295a782857fcb97fad1808a166870dee75a3" +dependencies = [ + "serde", +] + +[[package]] +name = "serde_spanned" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6662b5879511e06e8999a8a235d848113e942c9124f211511b16466ee2995f26" +dependencies = [ + "serde_core", +] + +[[package]] +name = "serde_with" +version = "3.20.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e72c1c2cb7b223fafb600a619537a871c2818583d619401b785e7c0b746ccde2" +dependencies = [ + "base64 0.22.1", + "bs58", + "chrono", + "hex", + "indexmap 1.9.3", + "indexmap 2.14.0", + "schemars 0.9.0", + "schemars 1.2.1", + "serde_core", + "serde_json", + "serde_with_macros", + "time", +] + +[[package]] +name = "serde_with_macros" +version = "3.20.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b90c488738ecb4fb0262f41f43bc40efc5868d9fb744319ddf5f5317f417bfac" +dependencies = [ + "darling", + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "serialize-to-javascript" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "04f3666a07a197cdb77cdf306c32be9b7f598d7060d50cfd4d5aa04bfd92f6c5" +dependencies = [ + "serde", + "serde_json", + "serialize-to-javascript-impl", +] + +[[package]] +name = "serialize-to-javascript-impl" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "772ee033c0916d670af7860b6e1ef7d658a4629a6d0b4c8c3e67f09b3765b75d" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "servo_arc" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "170fb83ab34de17dc69aa7c67482b22218ddb85da56546f9bd6b929e32a05930" +dependencies = [ + "stable_deref_trait", +] + +[[package]] +name = "sha2" +version = "0.10.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a7507d819769d01a365ab707794a4084392c824f54a7a6a7862f8c3d0892b283" +dependencies = [ + "cfg-if", + "cpufeatures", + "digest", +] + +[[package]] +name = "shlex" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" + +[[package]] +name = "signal-hook-registry" +version = "1.4.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c4db69cba1110affc0e9f7bcd48bbf87b3f4fc7c61fc9155afd4c469eb3d6c1b" +dependencies = [ + "errno", + "libc", +] + +[[package]] +name = "simd-adler32" +version = "0.3.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "703d5c7ef118737c72f1af64ad2f6f8c5e1921f818cdcb97b8fe6fc69bf66214" + +[[package]] +name = "siphasher" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ee5873ec9cce0195efcb7a4e9507a04cd49aec9c83d0389df45b1ef7ba2e649" + +[[package]] +name = "slab" +version = "0.4.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5" + +[[package]] +name = "smallvec" +version = "1.15.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03" + +[[package]] +name = "socket2" +version = "0.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a766e1110788c36f4fa1c2b71b387a7815aa65f88ce0229841826633d93723e" +dependencies = [ + "libc", + "windows-sys 0.61.2", +] + +[[package]] +name = "softbuffer" +version = "0.4.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aac18da81ebbf05109ab275b157c22a653bb3c12cf884450179942f81bcbf6c3" +dependencies = [ + "bytemuck", + "js-sys", + "ndk", + "objc2", + "objc2-core-foundation", + "objc2-core-graphics", + "objc2-foundation", + "objc2-quartz-core", + "raw-window-handle", + "redox_syscall", + "tracing", + "wasm-bindgen", + "web-sys", + "windows-sys 0.61.2", +] + +[[package]] +name = "soup3" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "471f924a40f31251afc77450e781cb26d55c0b650842efafc9c6cbd2f7cc4f9f" +dependencies = [ + "futures-channel", + "gio", + "glib", + "libc", + "soup3-sys", +] + +[[package]] +name = "soup3-sys" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7ebe8950a680a12f24f15ebe1bf70db7af98ad242d9db43596ad3108aab86c27" +dependencies = [ + "gio-sys", + "glib-sys", + "gobject-sys", + "libc", + "system-deps", +] + +[[package]] +name = "stable_deref_trait" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596" + +[[package]] +name = "string_cache" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a18596f8c785a729f2819c0f6a7eae6ebeebdfffbfe4214ae6b087f690e31901" +dependencies = [ + "new_debug_unreachable", + "parking_lot", + "phf_shared", + "precomputed-hash", +] + +[[package]] +name = "string_cache_codegen" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "585635e46db231059f76c5849798146164652513eb9e8ab2685939dd90f29b69" +dependencies = [ + "phf_generator", + "phf_shared", + "proc-macro2", + "quote", +] + +[[package]] +name = "strsim" +version = "0.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f" + +[[package]] +name = "swift-rs" +version = "1.0.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4057c98e2e852d51fdcfca832aac7b571f6b351ad159f9eda5db1655f8d0c4d7" +dependencies = [ + "base64 0.21.7", + "serde", + "serde_json", +] + +[[package]] +name = "syn" +version = "1.0.109" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237" +dependencies = [ + "proc-macro2", + "unicode-ident", +] + +[[package]] +name = "syn" +version = "2.0.117" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "sync_wrapper" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0bf256ce5efdfa370213c1dabab5935a12e49f2c58d15e9eac2870d3b4f27263" +dependencies = [ + "futures-core", +] + +[[package]] +name = "synstructure" +version = "0.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "728a70f3dbaf5bab7f0c4b1ac8d7ae5ea60a4b5549c8a5914361c99147a709d2" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "system-deps" +version = "6.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a3e535eb8dded36d55ec13eddacd30dec501792ff23a0b1682c38601b8cf2349" +dependencies = [ + "cfg-expr", + "heck 0.5.0", + "pkg-config", + "toml 0.8.2", + "version-compare", +] + +[[package]] +name = "tao" +version = "0.35.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a33f7f9e486ade65fcf1e45c440f9236c904f5c1002cdc7fc6ae582777345ce4" +dependencies = [ + "bitflags 2.11.1", + "block2", + "core-foundation", + "core-graphics", + "crossbeam-channel", + "dbus", + "dispatch2", + "dlopen2", + "dpi", + "gdkwayland-sys", + "gdkx11-sys", + "gtk", + "jni", + "libc", + "log", + "ndk", + "ndk-sys", + "objc2", + "objc2-app-kit", + "objc2-foundation", + "objc2-ui-kit", + "once_cell", + "parking_lot", + "percent-encoding", + "raw-window-handle", + "tao-macros", + "unicode-segmentation", + "url", + "windows", + "windows-core 0.61.2", + "windows-version", + "x11-dl", +] + +[[package]] +name = "tao-macros" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f4e16beb8b2ac17db28eab8bca40e62dbfbb34c0fcdc6d9826b11b7b5d047dfd" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "target-lexicon" +version = "0.12.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "61c41af27dd6d1e27b1b16b489db798443478cef1f06a660c96db617ba5de3b1" + +[[package]] +name = "tauri" +version = "2.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b93bd86d231f0a8138f11a02a584769fe4b703dc36ae133d783228dbc4801405" +dependencies = [ + "anyhow", + "bytes", + "cookie", + "dirs", + "dunce", + "embed_plist", + "getrandom 0.3.4", + "glob", + "gtk", + "heck 0.5.0", + "http", + "jni", + "libc", + "log", + "mime", + "muda", + "objc2", + "objc2-app-kit", + "objc2-foundation", + "objc2-ui-kit", + "objc2-web-kit", + "percent-encoding", + "plist", + "raw-window-handle", + "reqwest", + "serde", + "serde_json", + "serde_repr", + "serialize-to-javascript", + "swift-rs", + "tauri-build", + "tauri-macros", + "tauri-runtime", + "tauri-runtime-wry", + "tauri-utils", + "thiserror 2.0.18", + "tokio", + "tray-icon", + "url", + "webkit2gtk", + "webview2-com", + "window-vibrancy", + "windows", +] + +[[package]] +name = "tauri-build" +version = "2.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a318b234cc2dea65f575467bafcfb76286bce228ebc3778e337d61d03213007" +dependencies = [ + "anyhow", + "cargo_toml", + "dirs", + "glob", + "heck 0.5.0", + "json-patch", + "schemars 0.8.22", + "semver", + "serde", + "serde_json", + "tauri-utils", + "tauri-winres", + "walkdir", +] + +[[package]] +name = "tauri-codegen" +version = "2.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6bd11644962add2549a60b7e7c6800f17d7020156e02f516021d8103e80cc528" +dependencies = [ + "base64 0.22.1", + "brotli", + "ico", + "json-patch", + "plist", + "png 0.17.16", + "proc-macro2", + "quote", + "semver", + "serde", + "serde_json", + "sha2", + "syn 2.0.117", + "tauri-utils", + "thiserror 2.0.18", + "time", + "url", + "uuid", + "walkdir", +] + +[[package]] +name = "tauri-macros" +version = "2.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fed9d3742a37a355d2e47c9af924e9fbc112abb76f9835d35d4780e318419502" +dependencies = [ + "heck 0.5.0", + "proc-macro2", + "quote", + "syn 2.0.117", + "tauri-codegen", + "tauri-utils", +] + +[[package]] +name = "tauri-plugin" +version = "2.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eefb2c18e8a605c23edb48fc56bb77381199e1a1e7f6ff0c9b970afe7b3cb8ee" +dependencies = [ + "anyhow", + "glob", + "plist", + "schemars 0.8.22", + "serde", + "serde_json", + "tauri-utils", + "walkdir", +] + +[[package]] +name = "tauri-plugin-opener" +version = "2.5.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "17e1bea14edce6b793a04e2417e3fd924b9bc4faae83cdee7d714156cceeed29" +dependencies = [ + "dunce", + "glob", + "objc2-app-kit", + "objc2-foundation", + "open", + "schemars 0.8.22", + "serde", + "serde_json", + "tauri", + "tauri-plugin", + "thiserror 2.0.18", + "url", + "windows", + "zbus", +] + +[[package]] +name = "tauri-runtime" +version = "2.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8fef478ba1d2ac21c2d528740b24d0cb315e1e8b1111aae53fafac34804371fc" +dependencies = [ + "cookie", + "dpi", + "gtk", + "http", + "jni", + "objc2", + "objc2-ui-kit", + "objc2-web-kit", + "raw-window-handle", + "serde", + "serde_json", + "tauri-utils", + "thiserror 2.0.18", + "url", + "webkit2gtk", + "webview2-com", + "windows", +] + +[[package]] +name = "tauri-runtime-wry" +version = "2.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a3989df2ae1c476404fe0a2e8ffc4cfbde97e51efd613c2bb5355fbc9ab52cf0" +dependencies = [ + "gtk", + "http", + "jni", + "log", + "objc2", + "objc2-app-kit", + "once_cell", + "percent-encoding", + "raw-window-handle", + "softbuffer", + "tao", + "tauri-runtime", + "tauri-utils", + "url", + "webkit2gtk", + "webview2-com", + "windows", + "wry", +] + +[[package]] +name = "tauri-utils" +version = "2.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d57200389a2f82b4b0a40ae29ca19b6978116e8f4d4e974c3234ce40c0ffbdec" +dependencies = [ + "anyhow", + "brotli", + "cargo_metadata", + "ctor", + "dom_query", + "dunce", + "glob", + "http", + "infer", + "json-patch", + "log", + "memchr", + "phf", + "plist", + "proc-macro2", + "quote", + "regex", + "schemars 0.8.22", + "semver", + "serde", + "serde-untagged", + "serde_json", + "serde_with", + "swift-rs", + "thiserror 2.0.18", + "toml 1.1.2+spec-1.1.0", + "url", + "urlpattern", + "uuid", + "walkdir", +] + +[[package]] +name = "tauri-winres" +version = "0.3.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cc65d45c68858bfe420dd29e834b5d15dbecf8a07a8a16cf4d532c7b1f69d4b6" +dependencies = [ + "dunce", + "embed-resource", + "toml 1.1.2+spec-1.1.0", +] + +[[package]] +name = "tempfile" +version = "3.27.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd" +dependencies = [ + "fastrand", + "getrandom 0.4.2", + "once_cell", + "rustix", + "windows-sys 0.61.2", +] + +[[package]] +name = "tendril" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c4790fc369d5a530f4b544b094e31388b9b3a37c0f4652ade4505945f5660d24" +dependencies = [ + "new_debug_unreachable", + "utf-8", +] + +[[package]] +name = "thiserror" +version = "1.0.69" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52" +dependencies = [ + "thiserror-impl 1.0.69", +] + +[[package]] +name = "thiserror" +version = "2.0.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4288b5bcbc7920c07a1149a35cf9590a2aa808e0bc1eafaade0b80947865fbc4" +dependencies = [ + "thiserror-impl 2.0.18", +] + +[[package]] +name = "thiserror-impl" +version = "1.0.69" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "thiserror-impl" +version = "2.0.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ebc4ee7f67670e9b64d05fa4253e753e016c6c95ff35b89b7941d6b856dec1d5" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "time" +version = "0.3.47" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "743bd48c283afc0388f9b8827b976905fb217ad9e647fae3a379a9283c4def2c" +dependencies = [ + "deranged", + "itoa", + "num-conv", + "powerfmt", + "serde_core", + "time-core", + "time-macros", +] + +[[package]] +name = "time-core" +version = "0.1.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7694e1cfe791f8d31026952abf09c69ca6f6fa4e1a1229e18988f06a04a12dca" + +[[package]] +name = "time-macros" +version = "0.2.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2e70e4c5a0e0a8a4823ad65dfe1a6930e4f4d756dcd9dd7939022b5e8c501215" +dependencies = [ + "num-conv", + "time-core", +] + +[[package]] +name = "tinystr" +version = "0.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c8323304221c2a851516f22236c5722a72eaa19749016521d6dff0824447d96d" +dependencies = [ + "displaydoc", + "zerovec", +] + +[[package]] +name = "tinyvec" +version = "1.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3e61e67053d25a4e82c844e8424039d9745781b3fc4f32b8d55ed50f5f667ef3" +dependencies = [ + "tinyvec_macros", +] + +[[package]] +name = "tinyvec_macros" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" + +[[package]] +name = "tokio" +version = "1.52.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8fc7f01b389ac15039e4dc9531aa973a135d7a4135281b12d7c1bc79fd57fffe" +dependencies = [ + "bytes", + "libc", + "mio", + "pin-project-lite", + "socket2", + "windows-sys 0.61.2", +] + +[[package]] +name = "tokio-util" +version = "0.7.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9ae9cec805b01e8fc3fd2fe289f89149a9b66dd16786abd8b19cfa7b48cb0098" +dependencies = [ + "bytes", + "futures-core", + "futures-sink", + "pin-project-lite", + "tokio", +] + +[[package]] +name = "toml" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "185d8ab0dfbb35cf1399a6344d8484209c088f75f8f68230da55d48d95d43e3d" +dependencies = [ + "serde", + "serde_spanned 0.6.9", + "toml_datetime 0.6.3", + "toml_edit 0.20.2", +] + +[[package]] +name = "toml" +version = "0.9.12+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf92845e79fc2e2def6a5d828f0801e29a2f8acc037becc5ab08595c7d5e9863" +dependencies = [ + "indexmap 2.14.0", + "serde_core", + "serde_spanned 1.1.1", + "toml_datetime 0.7.5+spec-1.1.0", + "toml_parser", + "toml_writer", + "winnow 0.7.15", +] + +[[package]] +name = "toml" +version = "1.1.2+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "81f3d15e84cbcd896376e6730314d59fb5a87f31e4b038454184435cd57defee" +dependencies = [ + "indexmap 2.14.0", + "serde_core", + "serde_spanned 1.1.1", + "toml_datetime 1.1.1+spec-1.1.0", + "toml_parser", + "toml_writer", + "winnow 1.0.3", +] + +[[package]] +name = "toml_datetime" +version = "0.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7cda73e2f1397b1262d6dfdcef8aafae14d1de7748d66822d3bfeeb6d03e5e4b" +dependencies = [ + "serde", +] + +[[package]] +name = "toml_datetime" +version = "0.7.5+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92e1cfed4a3038bc5a127e35a2d360f145e1f4b971b551a2ba5fd7aedf7e1347" +dependencies = [ + "serde_core", +] + +[[package]] +name = "toml_datetime" +version = "1.1.1+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3165f65f62e28e0115a00b2ebdd37eb6f3b641855f9d636d3cd4103767159ad7" +dependencies = [ + "serde_core", +] + +[[package]] +name = "toml_edit" +version = "0.19.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1b5bb770da30e5cbfde35a2d7b9b8a2c4b8ef89548a7a6aeab5c9a576e3e7421" +dependencies = [ + "indexmap 2.14.0", + "toml_datetime 0.6.3", + "winnow 0.5.40", +] + +[[package]] +name = "toml_edit" +version = "0.20.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "396e4d48bbb2b7554c944bde63101b5ae446cff6ec4a24227428f15eb72ef338" +dependencies = [ + "indexmap 2.14.0", + "serde", + "serde_spanned 0.6.9", + "toml_datetime 0.6.3", + "winnow 0.5.40", +] + +[[package]] +name = "toml_edit" +version = "0.25.11+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b59c4d22ed448339746c59b905d24568fcbb3ab65a500494f7b8c3e97739f2b" +dependencies = [ + "indexmap 2.14.0", + "toml_datetime 1.1.1+spec-1.1.0", + "toml_parser", + "winnow 1.0.3", +] + +[[package]] +name = "toml_parser" +version = "1.1.2+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a2abe9b86193656635d2411dc43050282ca48aa31c2451210f4202550afb7526" +dependencies = [ + "winnow 1.0.3", +] + +[[package]] +name = "toml_writer" +version = "1.1.1+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "756daf9b1013ebe47a8776667b466417e2d4c5679d441c26230efd9ef78692db" + +[[package]] +name = "tower" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ebe5ef63511595f1344e2d5cfa636d973292adc0eec1f0ad45fae9f0851ab1d4" +dependencies = [ + "futures-core", + "futures-util", + "pin-project-lite", + "sync_wrapper", + "tokio", + "tower-layer", + "tower-service", +] + +[[package]] +name = "tower-http" +version = "0.6.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "68d6fdd9f81c2819c9a8b0e0cd91660e7746a8e6ea2ba7c6b2b057985f6bcb51" +dependencies = [ + "bitflags 2.11.1", + "bytes", + "futures-util", + "http", + "http-body", + "pin-project-lite", + "tower", + "tower-layer", + "tower-service", + "url", +] + +[[package]] +name = "tower-layer" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "121c2a6cda46980bb0fcd1647ffaf6cd3fc79a013de288782836f6df9c48780e" + +[[package]] +name = "tower-service" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3" + +[[package]] +name = "tracing" +version = "0.1.44" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "63e71662fa4b2a2c3a26f570f037eb95bb1f85397f3cd8076caed2f026a6d100" +dependencies = [ + "pin-project-lite", + "tracing-attributes", + "tracing-core", +] + +[[package]] +name = "tracing-attributes" +version = "0.1.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7490cfa5ec963746568740651ac6781f701c9c5ea257c58e057f3ba8cf69e8da" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "tracing-core" +version = "0.1.36" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "db97caf9d906fbde555dd62fa95ddba9eecfd14cb388e4f491a66d74cd5fb79a" +dependencies = [ + "once_cell", +] + +[[package]] +name = "tray-icon" +version = "0.23.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "15edbb0d80583e85ee8df283410038e17314df5cba30da2087a54a85216c0773" +dependencies = [ + "crossbeam-channel", + "dirs", + "libappindicator", + "muda", + "objc2", + "objc2-app-kit", + "objc2-core-foundation", + "objc2-core-graphics", + "objc2-foundation", + "once_cell", + "png 0.18.1", + "serde", + "thiserror 2.0.18", + "windows-sys 0.61.2", +] + +[[package]] +name = "try-lock" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b" + +[[package]] +name = "typeid" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bc7d623258602320d5c55d1bc22793b57daff0ec7efc270ea7d55ce1d5f5471c" + +[[package]] +name = "typenum" +version = "1.20.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "40ce102ab67701b8526c123c1bab5cbe42d7040ccfd0f64af1a385808d2f43de" + +[[package]] +name = "uds_windows" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f2f6fb2847f6742cd76af783a2a2c49e9375d0a111c7bef6f71cd9e738c72d6e" +dependencies = [ + "memoffset", + "tempfile", + "windows-sys 0.61.2", +] + +[[package]] +name = "unic-char-property" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a8c57a407d9b6fa02b4795eb81c5b6652060a15a7903ea981f3d723e6c0be221" +dependencies = [ + "unic-char-range", +] + +[[package]] +name = "unic-char-range" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0398022d5f700414f6b899e10b8348231abf9173fa93144cbc1a43b9793c1fbc" + +[[package]] +name = "unic-common" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "80d7ff825a6a654ee85a63e80f92f054f904f21e7d12da4e22f9834a4aaa35bc" + +[[package]] +name = "unic-ucd-ident" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e230a37c0381caa9219d67cf063aa3a375ffed5bf541a452db16e744bdab6987" +dependencies = [ + "unic-char-property", + "unic-char-range", + "unic-ucd-version", +] + +[[package]] +name = "unic-ucd-version" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "96bd2f2237fe450fcd0a1d2f5f4e91711124f7857ba2e964247776ebeeb7b0c4" +dependencies = [ + "unic-common", +] + +[[package]] +name = "unicode-ident" +version = "1.0.24" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75" + +[[package]] +name = "unicode-segmentation" +version = "1.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9629274872b2bfaf8d66f5f15725007f635594914870f65218920345aa11aa8c" + +[[package]] +name = "unicode-xid" +version = "0.2.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ebc1c04c71510c7f702b52b7c350734c9ff1295c464a03335b00bb84fc54f853" + +[[package]] +name = "url" +version = "2.5.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed" +dependencies = [ + "form_urlencoded", + "idna", + "percent-encoding", + "serde", + "serde_derive", +] + +[[package]] +name = "urlpattern" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "70acd30e3aa1450bc2eece896ce2ad0d178e9c079493819301573dae3c37ba6d" +dependencies = [ + "regex", + "serde", + "unic-ucd-ident", + "url", +] + +[[package]] +name = "utf-8" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09cc8ee72d2a9becf2f2febe0205bbed8fc6615b7cb429ad062dc7b7ddd036a9" + +[[package]] +name = "utf8_iter" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be" + +[[package]] +name = "uuid" +version = "1.23.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ddd74a9687298c6858e9b88ec8935ec45d22e8fd5e6394fa1bd4e99a87789c76" +dependencies = [ + "getrandom 0.4.2", + "js-sys", + "serde_core", + "wasm-bindgen", +] + +[[package]] +name = "vcpkg" +version = "0.2.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426" + +[[package]] +name = "version-compare" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "03c2856837ef78f57382f06b2b8563a2f512f7185d732608fd9176cb3b8edf0e" + +[[package]] +name = "version_check" +version = "0.9.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" + +[[package]] +name = "vswhom" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "be979b7f07507105799e854203b470ff7c78a1639e330a58f183b5fea574608b" +dependencies = [ + "libc", + "vswhom-sys", +] + +[[package]] +name = "vswhom-sys" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fb067e4cbd1ff067d1df46c9194b5de0e98efd2810bbc95c5d5e5f25a3231150" +dependencies = [ + "cc", + "libc", +] + +[[package]] +name = "walkdir" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b" +dependencies = [ + "same-file", + "winapi-util", +] + +[[package]] +name = "want" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bfa7760aed19e106de2c7c0b581b509f2f25d3dacaf737cb82ac61bc6d760b0e" +dependencies = [ + "try-lock", +] + +[[package]] +name = "wasi" +version = "0.11.1+wasi-snapshot-preview1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b" + +[[package]] +name = "wasip2" +version = "1.0.3+wasi-0.2.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "20064672db26d7cdc89c7798c48a0fdfac8213434a1186e5ef29fd560ae223d6" +dependencies = [ + "wit-bindgen 0.57.1", +] + +[[package]] +name = "wasip3" +version = "0.4.0+wasi-0.3.0-rc-2026-01-06" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5428f8bf88ea5ddc08faddef2ac4a67e390b88186c703ce6dbd955e1c145aca5" +dependencies = [ + "wit-bindgen 0.51.0", +] + +[[package]] +name = "wasm-bindgen" +version = "0.2.121" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "49ace1d07c165b0864824eee619580c4689389afa9dc9ed3a4c75040d82e6790" +dependencies = [ + "cfg-if", + "once_cell", + "rustversion", + "wasm-bindgen-macro", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-futures" +version = "0.4.71" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "96492d0d3ffba25305a7dc88720d250b1401d7edca02cc3bcd50633b424673b8" +dependencies = [ + "js-sys", + "wasm-bindgen", +] + +[[package]] +name = "wasm-bindgen-macro" +version = "0.2.121" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e68e6f4afd367a562002c05637acb8578ff2dea1943df76afb9e83d177c8578" +dependencies = [ + "quote", + "wasm-bindgen-macro-support", +] + +[[package]] +name = "wasm-bindgen-macro-support" +version = "0.2.121" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d95a9ec35c64b2a7cb35d3fead40c4238d0940c86d107136999567a4703259f2" +dependencies = [ + "bumpalo", + "proc-macro2", + "quote", + "syn 2.0.117", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-shared" +version = "0.2.121" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c4e0100b01e9f0d03189a92b96772a1fb998639d981193d7dbab487302513441" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "wasm-encoder" +version = "0.244.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "990065f2fe63003fe337b932cfb5e3b80e0b4d0f5ff650e6985b1048f62c8319" +dependencies = [ + "leb128fmt", + "wasmparser", +] + +[[package]] +name = "wasm-metadata" +version = "0.244.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bb0e353e6a2fbdc176932bbaab493762eb1255a7900fe0fea1a2f96c296cc909" +dependencies = [ + "anyhow", + "indexmap 2.14.0", + "wasm-encoder", + "wasmparser", +] + +[[package]] +name = "wasm-streams" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9d1ec4f6517c9e11ae630e200b2b65d193279042e28edd4a2cda233e46670bbb" +dependencies = [ + "futures-util", + "js-sys", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", +] + +[[package]] +name = "wasmparser" +version = "0.244.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "47b807c72e1bac69382b3a6fb3dbe8ea4c0ed87ff5629b8685ae6b9a611028fe" +dependencies = [ + "bitflags 2.11.1", + "hashbrown 0.15.5", + "indexmap 2.14.0", + "semver", +] + +[[package]] +name = "web-sys" +version = "0.3.98" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4b572dff8bcf38bad0fa19729c89bb5748b2b9b1d8be70cf90df697e3a8f32aa" +dependencies = [ + "js-sys", + "wasm-bindgen", +] + +[[package]] +name = "web_atoms" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d7cff6eef815df1834fd250e3a2ff436044d82a9f1bc1980ca1dbdf07effc538" +dependencies = [ + "phf", + "phf_codegen", + "string_cache", + "string_cache_codegen", +] + +[[package]] +name = "webkit2gtk" +version = "2.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a1027150013530fb2eaf806408df88461ae4815a45c541c8975e61d6f2fc4793" +dependencies = [ + "bitflags 1.3.2", + "cairo-rs", + "gdk", + "gdk-sys", + "gio", + "gio-sys", + "glib", + "glib-sys", + "gobject-sys", + "gtk", + "gtk-sys", + "javascriptcore-rs", + "libc", + "once_cell", + "soup3", + "webkit2gtk-sys", +] + +[[package]] +name = "webkit2gtk-sys" +version = "2.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "916a5f65c2ef0dfe12fff695960a2ec3d4565359fdbb2e9943c974e06c734ea5" +dependencies = [ + "bitflags 1.3.2", + "cairo-sys-rs", + "gdk-sys", + "gio-sys", + "glib-sys", + "gobject-sys", + "gtk-sys", + "javascriptcore-rs-sys", + "libc", + "pkg-config", + "soup3-sys", + "system-deps", +] + +[[package]] +name = "webview2-com" +version = "0.38.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7130243a7a5b33c54a444e54842e6a9e133de08b5ad7b5861cd8ed9a6a5bc96a" +dependencies = [ + "webview2-com-macros", + "webview2-com-sys", + "windows", + "windows-core 0.61.2", + "windows-implement", + "windows-interface", +] + +[[package]] +name = "webview2-com-macros" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67a921c1b6914c367b2b823cd4cde6f96beec77d30a939c8199bb377cf9b9b54" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "webview2-com-sys" +version = "0.38.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "381336cfffd772377d291702245447a5251a2ffa5bad679c99e61bc48bacbf9c" +dependencies = [ + "thiserror 2.0.18", + "windows", + "windows-core 0.61.2", +] + +[[package]] +name = "winapi" +version = "0.3.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" +dependencies = [ + "winapi-i686-pc-windows-gnu", + "winapi-x86_64-pc-windows-gnu", +] + +[[package]] +name = "winapi-i686-pc-windows-gnu" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" + +[[package]] +name = "winapi-util" +version = "0.1.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22" +dependencies = [ + "windows-sys 0.61.2", +] + +[[package]] +name = "winapi-x86_64-pc-windows-gnu" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" + +[[package]] +name = "window-vibrancy" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d9bec5a31f3f9362f2258fd0e9c9dd61a9ca432e7306cc78c444258f0dce9a9c" +dependencies = [ + "objc2", + "objc2-app-kit", + "objc2-core-foundation", + "objc2-foundation", + "raw-window-handle", + "windows-sys 0.59.0", + "windows-version", +] + +[[package]] +name = "windows" +version = "0.61.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9babd3a767a4c1aef6900409f85f5d53ce2544ccdfaa86dad48c91782c6d6893" +dependencies = [ + "windows-collections", + "windows-core 0.61.2", + "windows-future", + "windows-link 0.1.3", + "windows-numerics", +] + +[[package]] +name = "windows-collections" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3beeceb5e5cfd9eb1d76b381630e82c4241ccd0d27f1a39ed41b2760b255c5e8" +dependencies = [ + "windows-core 0.61.2", +] + +[[package]] +name = "windows-core" +version = "0.61.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c0fdd3ddb90610c7638aa2b3a3ab2904fb9e5cdbecc643ddb3647212781c4ae3" +dependencies = [ + "windows-implement", + "windows-interface", + "windows-link 0.1.3", + "windows-result 0.3.4", + "windows-strings 0.4.2", +] + +[[package]] +name = "windows-core" +version = "0.62.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb" +dependencies = [ + "windows-implement", + "windows-interface", + "windows-link 0.2.1", + "windows-result 0.4.1", + "windows-strings 0.5.1", +] + +[[package]] +name = "windows-future" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc6a41e98427b19fe4b73c550f060b59fa592d7d686537eebf9385621bfbad8e" +dependencies = [ + "windows-core 0.61.2", + "windows-link 0.1.3", + "windows-threading", +] + +[[package]] +name = "windows-implement" +version = "0.60.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "053e2e040ab57b9dc951b72c264860db7eb3b0200ba345b4e4c3b14f67855ddf" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "windows-interface" +version = "0.59.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f316c4a2570ba26bbec722032c4099d8c8bc095efccdc15688708623367e358" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "windows-link" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e6ad25900d524eaabdbbb96d20b4311e1e7ae1699af4fb28c17ae66c80d798a" + +[[package]] +name = "windows-link" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5" + +[[package]] +name = "windows-numerics" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9150af68066c4c5c07ddc0ce30421554771e528bde427614c61038bc2c92c2b1" +dependencies = [ + "windows-core 0.61.2", + "windows-link 0.1.3", +] + +[[package]] +name = "windows-result" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "56f42bd332cc6c8eac5af113fc0c1fd6a8fd2aa08a0119358686e5160d0586c6" +dependencies = [ + "windows-link 0.1.3", +] + +[[package]] +name = "windows-result" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5" +dependencies = [ + "windows-link 0.2.1", +] + +[[package]] +name = "windows-strings" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "56e6c93f3a0c3b36176cb1327a4958a0353d5d166c2a35cb268ace15e91d3b57" +dependencies = [ + "windows-link 0.1.3", +] + +[[package]] +name = "windows-strings" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091" +dependencies = [ + "windows-link 0.2.1", +] + +[[package]] +name = "windows-sys" +version = "0.45.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "75283be5efb2831d37ea142365f009c02ec203cd29a3ebecbc093d52315b66d0" +dependencies = [ + "windows-targets 0.42.2", +] + +[[package]] +name = "windows-sys" +version = "0.59.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b" +dependencies = [ + "windows-targets 0.52.6", +] + +[[package]] +name = "windows-sys" +version = "0.61.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc" +dependencies = [ + "windows-link 0.2.1", +] + +[[package]] +name = "windows-targets" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e5180c00cd44c9b1c88adb3693291f1cd93605ded80c250a75d472756b4d071" +dependencies = [ + "windows_aarch64_gnullvm 0.42.2", + "windows_aarch64_msvc 0.42.2", + "windows_i686_gnu 0.42.2", + "windows_i686_msvc 0.42.2", + "windows_x86_64_gnu 0.42.2", + "windows_x86_64_gnullvm 0.42.2", + "windows_x86_64_msvc 0.42.2", +] + +[[package]] +name = "windows-targets" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" +dependencies = [ + "windows_aarch64_gnullvm 0.52.6", + "windows_aarch64_msvc 0.52.6", + "windows_i686_gnu 0.52.6", + "windows_i686_gnullvm", + "windows_i686_msvc 0.52.6", + "windows_x86_64_gnu 0.52.6", + "windows_x86_64_gnullvm 0.52.6", + "windows_x86_64_msvc 0.52.6", +] + +[[package]] +name = "windows-threading" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b66463ad2e0ea3bbf808b7f1d371311c80e115c0b71d60efc142cafbcfb057a6" +dependencies = [ + "windows-link 0.1.3", +] + +[[package]] +name = "windows-version" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e4060a1da109b9d0326b7262c8e12c84df67cc0dbc9e33cf49e01ccc2eb63631" +dependencies = [ + "windows-link 0.2.1", +] + +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "597a5118570b68bc08d8d59125332c54f1ba9d9adeedeef5b99b02ba2b0698f8" + +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" + +[[package]] +name = "windows_aarch64_msvc" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e08e8864a60f06ef0d0ff4ba04124db8b0fb3be5776a5cd47641e942e58c4d43" + +[[package]] +name = "windows_aarch64_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" + +[[package]] +name = "windows_i686_gnu" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c61d927d8da41da96a81f029489353e68739737d3beca43145c8afec9a31a84f" + +[[package]] +name = "windows_i686_gnu" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b" + +[[package]] +name = "windows_i686_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66" + +[[package]] +name = "windows_i686_msvc" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "44d840b6ec649f480a41c8d80f9c65108b92d89345dd94027bfe06ac444d1060" + +[[package]] +name = "windows_i686_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" + +[[package]] +name = "windows_x86_64_gnu" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8de912b8b8feb55c064867cf047dda097f92d51efad5b491dfb98f6bbb70cb36" + +[[package]] +name = "windows_x86_64_gnu" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" + +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "26d41b46a36d453748aedef1486d5c7a85db22e56aff34643984ea85514e94a3" + +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9aec5da331524158c6d1a4ac0ab1541149c0b9505fde06423b02f5ef0106b9f0" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" + +[[package]] +name = "winnow" +version = "0.5.40" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f593a95398737aeed53e489c785df13f3618e41dbcd6718c6addbf1395aa6876" +dependencies = [ + "memchr", +] + +[[package]] +name = "winnow" +version = "0.7.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df79d97927682d2fd8adb29682d1140b343be4ac0f08fd68b7765d9c059d3945" + +[[package]] +name = "winnow" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0592e1c9d151f854e6fd382574c3a0855250e1d9b2f99d9281c6e6391af352f1" +dependencies = [ + "memchr", +] + +[[package]] +name = "winreg" +version = "0.55.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb5a765337c50e9ec252c2069be9bf91c7df47afb103b642ba3a53bf8101be97" +dependencies = [ + "cfg-if", + "windows-sys 0.59.0", +] + +[[package]] +name = "wit-bindgen" +version = "0.51.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d7249219f66ced02969388cf2bb044a09756a083d0fab1e566056b04d9fbcaa5" +dependencies = [ + "wit-bindgen-rust-macro", +] + +[[package]] +name = "wit-bindgen" +version = "0.57.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1ebf944e87a7c253233ad6766e082e3cd714b5d03812acc24c318f549614536e" + +[[package]] +name = "wit-bindgen-core" +version = "0.51.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ea61de684c3ea68cb082b7a88508a8b27fcc8b797d738bfc99a82facf1d752dc" +dependencies = [ + "anyhow", + "heck 0.5.0", + "wit-parser", +] + +[[package]] +name = "wit-bindgen-rust" +version = "0.51.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b7c566e0f4b284dd6561c786d9cb0142da491f46a9fbed79ea69cdad5db17f21" +dependencies = [ + "anyhow", + "heck 0.5.0", + "indexmap 2.14.0", + "prettyplease", + "syn 2.0.117", + "wasm-metadata", + "wit-bindgen-core", + "wit-component", +] + +[[package]] +name = "wit-bindgen-rust-macro" +version = "0.51.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c0f9bfd77e6a48eccf51359e3ae77140a7f50b1e2ebfe62422d8afdaffab17a" +dependencies = [ + "anyhow", + "prettyplease", + "proc-macro2", + "quote", + "syn 2.0.117", + "wit-bindgen-core", + "wit-bindgen-rust", +] + +[[package]] +name = "wit-component" +version = "0.244.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9d66ea20e9553b30172b5e831994e35fbde2d165325bec84fc43dbf6f4eb9cb2" +dependencies = [ + "anyhow", + "bitflags 2.11.1", + "indexmap 2.14.0", + "log", + "serde", + "serde_derive", + "serde_json", + "wasm-encoder", + "wasm-metadata", + "wasmparser", + "wit-parser", +] + +[[package]] +name = "wit-parser" +version = "0.244.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ecc8ac4bc1dc3381b7f59c34f00b67e18f910c2c0f50015669dde7def656a736" +dependencies = [ + "anyhow", + "id-arena", + "indexmap 2.14.0", + "log", + "semver", + "serde", + "serde_derive", + "serde_json", + "unicode-xid", + "wasmparser", +] + +[[package]] +name = "writeable" +version = "0.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1ffae5123b2d3fc086436f8834ae3ab053a283cfac8fe0a0b8eaae044768a4c4" + +[[package]] +name = "wry" +version = "0.55.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "186f9871daa55fd9c016578b810d149de58367113db7fb72b462d2323ce19514" +dependencies = [ + "base64 0.22.1", + "block2", + "cookie", + "crossbeam-channel", + "dirs", + "dom_query", + "dpi", + "dunce", + "gdkx11", + "gtk", + "http", + "javascriptcore-rs", + "jni", + "libc", + "ndk", + "objc2", + "objc2-app-kit", + "objc2-core-foundation", + "objc2-foundation", + "objc2-ui-kit", + "objc2-web-kit", + "once_cell", + "percent-encoding", + "raw-window-handle", + "sha2", + "soup3", + "tao-macros", + "thiserror 2.0.18", + "url", + "webkit2gtk", + "webkit2gtk-sys", + "webview2-com", + "windows", + "windows-core 0.61.2", + "windows-version", + "x11-dl", +] + +[[package]] +name = "x11" +version = "2.21.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "502da5464ccd04011667b11c435cb992822c2c0dbde1770c988480d312a0db2e" +dependencies = [ + "libc", + "pkg-config", +] + +[[package]] +name = "x11-dl" +version = "2.21.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38735924fedd5314a6e548792904ed8c6de6636285cb9fec04d5b1db85c1516f" +dependencies = [ + "libc", + "once_cell", + "pkg-config", +] + +[[package]] +name = "yoke" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "abe8c5fda708d9ca3df187cae8bfb9ceda00dd96231bed36e445a1a48e66f9ca" +dependencies = [ + "stable_deref_trait", + "yoke-derive", + "zerofrom", +] + +[[package]] +name = "yoke-derive" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "de844c262c8848816172cef550288e7dc6c7b7814b4ee56b3e1553f275f1858e" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", + "synstructure", +] + +[[package]] +name = "zbus" +version = "5.15.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3bcbf15c8708d7fc1be0c993622e0a5cbd5e8b52bfa40afa4c3e0cd8d724ac1" +dependencies = [ + "async-broadcast", + "async-executor", + "async-io", + "async-lock", + "async-process", + "async-recursion", + "async-task", + "async-trait", + "blocking", + "enumflags2", + "event-listener", + "futures-core", + "futures-lite", + "hex", + "libc", + "ordered-stream", + "rustix", + "serde", + "serde_repr", + "tracing", + "uds_windows", + "uuid", + "windows-sys 0.61.2", + "winnow 1.0.3", + "zbus_macros", + "zbus_names", + "zvariant", +] + +[[package]] +name = "zbus_macros" +version = "5.15.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "51fa5406ad9175a8c825a931f8cf347116b531b3634fcb0b627c290f1f2516ff" +dependencies = [ + "proc-macro-crate 3.5.0", + "proc-macro2", + "quote", + "syn 2.0.117", + "zbus_names", + "zvariant", + "zvariant_utils", +] + +[[package]] +name = "zbus_names" +version = "4.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7074f3e50b894eac91750142016d30d0a89be8e67dbfd9704fb875825760e52d" +dependencies = [ + "serde", + "winnow 1.0.3", + "zvariant", +] + +[[package]] +name = "zerocopy" +version = "0.8.48" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eed437bf9d6692032087e337407a86f04cd8d6a16a37199ed57949d415bd68e9" +dependencies = [ + "zerocopy-derive", +] + +[[package]] +name = "zerocopy-derive" +version = "0.8.48" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "70e3cd084b1788766f53af483dd21f93881ff30d7320490ec3ef7526d203bad4" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "zerofrom" +version = "0.1.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ec05a11813ea801ff6d75110ad09cd0824ddba17dfe17128ea0d5f68e6c5272" +dependencies = [ + "zerofrom-derive", +] + +[[package]] +name = "zerofrom-derive" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "11532158c46691caf0f2593ea8358fed6bbf68a0315e80aae9bd41fbade684a1" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", + "synstructure", +] + +[[package]] +name = "zerotrie" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0f9152d31db0792fa83f70fb2f83148effb5c1f5b8c7686c3459e361d9bc20bf" +dependencies = [ + "displaydoc", + "yoke", + "zerofrom", +] + +[[package]] +name = "zerovec" +version = "0.11.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "90f911cbc359ab6af17377d242225f4d75119aec87ea711a880987b18cd7b239" +dependencies = [ + "yoke", + "zerofrom", + "zerovec-derive", +] + +[[package]] +name = "zerovec-derive" +version = "0.11.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "625dc425cab0dca6dc3c3319506e6593dcb08a9f387ea3b284dbd52a92c40555" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "zmij" +version = "1.0.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8848ee67ecc8aedbaf3e4122217aff892639231befc6a1b58d29fff4c2cabaa" + +[[package]] +name = "zvariant" +version = "5.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1c1567a6ec68df868cbbfde844cfc6d81649fe5109a62b116b19fabd53e618ee" +dependencies = [ + "endi", + "enumflags2", + "serde", + "winnow 1.0.3", + "zvariant_derive", + "zvariant_utils", +] + +[[package]] +name = "zvariant_derive" +version = "5.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c7d5b780599bbde114e39d9a0799577fad1ced5105d38515745f7b3099d8ceda" +dependencies = [ + "proc-macro-crate 3.5.0", + "proc-macro2", + "quote", + "syn 2.0.117", + "zvariant_utils", +] + +[[package]] +name = "zvariant_utils" +version = "3.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6d464f5733ffa07a3164d656f18533caace9d0638596721355d73256a410d691" +dependencies = [ + "proc-macro2", + "quote", + "serde", + "syn 2.0.117", + "winnow 1.0.3", +] diff --git a/filey-erp/src-tauri/Cargo.toml b/filey-erp/src-tauri/Cargo.toml new file mode 100644 index 0000000..7877240 --- /dev/null +++ b/filey-erp/src-tauri/Cargo.toml @@ -0,0 +1,34 @@ +[package] +name = "filey-erp" +version = "0.1.0" +description = "A Tauri App" +authors = ["you"] +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[lib] +# The `_lib` suffix may seem redundant but it is necessary +# to make the lib name unique and wouldn't conflict with the bin name. +# This seems to be only an issue on Windows, see https://github.com/rust-lang/cargo/issues/8519 +name = "filey_erp_lib" +crate-type = ["staticlib", "cdylib", "rlib"] + +[build-dependencies] +tauri-build = { version = "2", features = [] } + +[dependencies] +tauri = { version = "2", features = [] } +tauri-plugin-opener = "2" +serde = { version = "1", features = ["derive"] } +serde_json = "1" +rusqlite = { version = "0.32", features = ["bundled", "chrono"] } +chrono = { version = "0.4", features = ["serde"] } +uuid = { version = "1", features = ["v4", "serde"] } +thiserror = "2" +lettre = { version = "0.11", default-features = false, features = [ + "smtp-transport", + "builder", + "rustls-tls", +] } + diff --git a/filey-erp/src-tauri/build.rs b/filey-erp/src-tauri/build.rs new file mode 100644 index 0000000..2ba80a8 --- /dev/null +++ b/filey-erp/src-tauri/build.rs @@ -0,0 +1,3 @@ +fn main() { + tauri_build::build() +} diff --git a/filey-erp/src-tauri/capabilities/default.json b/filey-erp/src-tauri/capabilities/default.json new file mode 100644 index 0000000..2ff144e --- /dev/null +++ b/filey-erp/src-tauri/capabilities/default.json @@ -0,0 +1,10 @@ +{ + "$schema": "../gen/schemas/desktop-schema.json", + "identifier": "default", + "description": "Capability for the main window", + "windows": ["main"], + "permissions": [ + "core:default", + "opener:default" + ] +} diff --git a/filey-erp/src-tauri/icons/128x128.png b/filey-erp/src-tauri/icons/128x128.png new file mode 100644 index 0000000..6be5e50 Binary files /dev/null and b/filey-erp/src-tauri/icons/128x128.png differ diff --git a/filey-erp/src-tauri/icons/128x128@2x.png b/filey-erp/src-tauri/icons/128x128@2x.png new file mode 100644 index 0000000..e81bece Binary files /dev/null and b/filey-erp/src-tauri/icons/128x128@2x.png differ diff --git a/filey-erp/src-tauri/icons/32x32.png b/filey-erp/src-tauri/icons/32x32.png new file mode 100644 index 0000000..a437dd5 Binary files /dev/null and b/filey-erp/src-tauri/icons/32x32.png differ diff --git a/filey-erp/src-tauri/icons/Square107x107Logo.png b/filey-erp/src-tauri/icons/Square107x107Logo.png new file mode 100644 index 0000000..0ca4f27 Binary files /dev/null and b/filey-erp/src-tauri/icons/Square107x107Logo.png differ diff --git a/filey-erp/src-tauri/icons/Square142x142Logo.png b/filey-erp/src-tauri/icons/Square142x142Logo.png new file mode 100644 index 0000000..b81f820 Binary files /dev/null and b/filey-erp/src-tauri/icons/Square142x142Logo.png differ diff --git a/filey-erp/src-tauri/icons/Square150x150Logo.png b/filey-erp/src-tauri/icons/Square150x150Logo.png new file mode 100644 index 0000000..624c7bf Binary files /dev/null and b/filey-erp/src-tauri/icons/Square150x150Logo.png differ diff --git a/filey-erp/src-tauri/icons/Square284x284Logo.png b/filey-erp/src-tauri/icons/Square284x284Logo.png new file mode 100644 index 0000000..c021d2b Binary files /dev/null and b/filey-erp/src-tauri/icons/Square284x284Logo.png differ diff --git a/filey-erp/src-tauri/icons/Square30x30Logo.png b/filey-erp/src-tauri/icons/Square30x30Logo.png new file mode 100644 index 0000000..6219700 Binary files /dev/null and b/filey-erp/src-tauri/icons/Square30x30Logo.png differ diff --git a/filey-erp/src-tauri/icons/Square310x310Logo.png b/filey-erp/src-tauri/icons/Square310x310Logo.png new file mode 100644 index 0000000..f9bc048 Binary files /dev/null and b/filey-erp/src-tauri/icons/Square310x310Logo.png differ diff --git a/filey-erp/src-tauri/icons/Square44x44Logo.png b/filey-erp/src-tauri/icons/Square44x44Logo.png new file mode 100644 index 0000000..d5fbfb2 Binary files /dev/null and b/filey-erp/src-tauri/icons/Square44x44Logo.png differ diff --git a/filey-erp/src-tauri/icons/Square71x71Logo.png b/filey-erp/src-tauri/icons/Square71x71Logo.png new file mode 100644 index 0000000..63440d7 Binary files /dev/null and b/filey-erp/src-tauri/icons/Square71x71Logo.png differ diff --git a/filey-erp/src-tauri/icons/Square89x89Logo.png b/filey-erp/src-tauri/icons/Square89x89Logo.png new file mode 100644 index 0000000..f3f705a Binary files /dev/null and b/filey-erp/src-tauri/icons/Square89x89Logo.png differ diff --git a/filey-erp/src-tauri/icons/StoreLogo.png b/filey-erp/src-tauri/icons/StoreLogo.png new file mode 100644 index 0000000..4556388 Binary files /dev/null and b/filey-erp/src-tauri/icons/StoreLogo.png differ diff --git a/filey-erp/src-tauri/icons/icon.icns b/filey-erp/src-tauri/icons/icon.icns new file mode 100644 index 0000000..12a5bce Binary files /dev/null and b/filey-erp/src-tauri/icons/icon.icns differ diff --git a/filey-erp/src-tauri/icons/icon.ico b/filey-erp/src-tauri/icons/icon.ico new file mode 100644 index 0000000..b3636e4 Binary files /dev/null and b/filey-erp/src-tauri/icons/icon.ico differ diff --git a/filey-erp/src-tauri/icons/icon.png b/filey-erp/src-tauri/icons/icon.png new file mode 100644 index 0000000..e1cd261 Binary files /dev/null and b/filey-erp/src-tauri/icons/icon.png differ diff --git a/filey-erp/src-tauri/src/db.rs b/filey-erp/src-tauri/src/db.rs new file mode 100644 index 0000000..26341d6 --- /dev/null +++ b/filey-erp/src-tauri/src/db.rs @@ -0,0 +1,415 @@ +use rusqlite::Connection; +use std::sync::Mutex; + +pub struct Db(pub Mutex); + +pub fn init(conn: &Connection) -> rusqlite::Result<()> { + conn.execute_batch( + r#" + PRAGMA foreign_keys = ON; + + -- ===== ERP CORE ===== + CREATE TABLE IF NOT EXISTS products ( + id INTEGER PRIMARY KEY AUTOINCREMENT, + sku TEXT NOT NULL UNIQUE, + name TEXT NOT NULL, + description TEXT, + category TEXT, + unit_price REAL NOT NULL DEFAULT 0, + cost_price REAL NOT NULL DEFAULT 0, + quantity INTEGER NOT NULL DEFAULT 0, + reorder_level INTEGER NOT NULL DEFAULT 0, + created_at TEXT NOT NULL DEFAULT (datetime('now')) + ); + + CREATE TABLE IF NOT EXISTS orders ( + id INTEGER PRIMARY KEY AUTOINCREMENT, + order_number TEXT NOT NULL UNIQUE, + customer_name TEXT NOT NULL, + status TEXT NOT NULL DEFAULT 'draft', + total REAL NOT NULL DEFAULT 0, + created_at TEXT NOT NULL DEFAULT (datetime('now')) + ); + + CREATE TABLE IF NOT EXISTS order_items ( + id INTEGER PRIMARY KEY AUTOINCREMENT, + order_id INTEGER NOT NULL REFERENCES orders(id) ON DELETE CASCADE, + product_id INTEGER NOT NULL REFERENCES products(id), + quantity INTEGER NOT NULL, + unit_price REAL NOT NULL + ); + + CREATE TABLE IF NOT EXISTS invoices ( + id INTEGER PRIMARY KEY AUTOINCREMENT, + invoice_number TEXT NOT NULL UNIQUE, + order_id INTEGER REFERENCES orders(id), + customer_name TEXT NOT NULL, + amount REAL NOT NULL DEFAULT 0, + status TEXT NOT NULL DEFAULT 'unpaid', + due_date TEXT, + created_at TEXT NOT NULL DEFAULT (datetime('now')) + ); + + -- ===== HR ===== + CREATE TABLE IF NOT EXISTS employees ( + id INTEGER PRIMARY KEY AUTOINCREMENT, + employee_code TEXT NOT NULL UNIQUE, + name TEXT NOT NULL, + email TEXT, + phone TEXT, + department TEXT, + position TEXT, + salary REAL NOT NULL DEFAULT 0, + hire_date TEXT, + status TEXT NOT NULL DEFAULT 'active' + ); + + CREATE TABLE IF NOT EXISTS attendance ( + id INTEGER PRIMARY KEY AUTOINCREMENT, + employee_id INTEGER NOT NULL REFERENCES employees(id) ON DELETE CASCADE, + date TEXT NOT NULL, + check_in TEXT, + check_out TEXT, + status TEXT NOT NULL DEFAULT 'present' + ); + + CREATE TABLE IF NOT EXISTS payroll ( + id INTEGER PRIMARY KEY AUTOINCREMENT, + employee_id INTEGER NOT NULL REFERENCES employees(id) ON DELETE CASCADE, + period TEXT NOT NULL, + basic REAL NOT NULL DEFAULT 0, + allowances REAL NOT NULL DEFAULT 0, + deductions REAL NOT NULL DEFAULT 0, + net_pay REAL NOT NULL DEFAULT 0, + status TEXT NOT NULL DEFAULT 'pending', + created_at TEXT NOT NULL DEFAULT (datetime('now')) + ); + + -- ===== FINANCE ===== + CREATE TABLE IF NOT EXISTS accounts ( + id INTEGER PRIMARY KEY AUTOINCREMENT, + code TEXT NOT NULL UNIQUE, + name TEXT NOT NULL, + account_type TEXT NOT NULL, + balance REAL NOT NULL DEFAULT 0 + ); + + CREATE TABLE IF NOT EXISTS expenses ( + id INTEGER PRIMARY KEY AUTOINCREMENT, + category TEXT NOT NULL, + description TEXT, + amount REAL NOT NULL DEFAULT 0, + expense_date TEXT NOT NULL, + account_id INTEGER REFERENCES accounts(id), + created_at TEXT NOT NULL DEFAULT (datetime('now')) + ); + + CREATE TABLE IF NOT EXISTS transactions ( + id INTEGER PRIMARY KEY AUTOINCREMENT, + account_id INTEGER NOT NULL REFERENCES accounts(id), + txn_type TEXT NOT NULL, + amount REAL NOT NULL, + description TEXT, + txn_date TEXT NOT NULL DEFAULT (datetime('now')) + ); + + -- ===== TOOLS ===== + CREATE TABLE IF NOT EXISTS users ( + id INTEGER PRIMARY KEY AUTOINCREMENT, + username TEXT NOT NULL UNIQUE, + full_name TEXT NOT NULL, + role TEXT NOT NULL DEFAULT 'staff', + active INTEGER NOT NULL DEFAULT 1, + created_at TEXT NOT NULL DEFAULT (datetime('now')) + ); + + CREATE TABLE IF NOT EXISTS settings ( + key TEXT PRIMARY KEY, + value TEXT NOT NULL + ); + + CREATE TABLE IF NOT EXISTS audit_log ( + id INTEGER PRIMARY KEY AUTOINCREMENT, + actor TEXT NOT NULL, + action TEXT NOT NULL, + entity TEXT NOT NULL, + details TEXT, + created_at TEXT NOT NULL DEFAULT (datetime('now')) + ); + + -- ===== CRM ===== + CREATE TABLE IF NOT EXISTS crm_leads ( + id INTEGER PRIMARY KEY AUTOINCREMENT, + name TEXT NOT NULL, + company TEXT, + email TEXT, + phone TEXT, + source TEXT, + status TEXT NOT NULL DEFAULT 'new', + est_value REAL NOT NULL DEFAULT 0, + owner TEXT, + created_at TEXT NOT NULL DEFAULT (datetime('now')) + ); + + CREATE TABLE IF NOT EXISTS crm_customers ( + id INTEGER PRIMARY KEY AUTOINCREMENT, + name TEXT NOT NULL, + company TEXT, + email TEXT, + phone TEXT, + address TEXT, + segment TEXT, + created_at TEXT NOT NULL DEFAULT (datetime('now')) + ); + + CREATE TABLE IF NOT EXISTS crm_opportunities ( + id INTEGER PRIMARY KEY AUTOINCREMENT, + title TEXT NOT NULL, + customer_name TEXT NOT NULL, + stage TEXT NOT NULL DEFAULT 'qualification', + value REAL NOT NULL DEFAULT 0, + probability INTEGER NOT NULL DEFAULT 20, + owner TEXT, + expected_close TEXT, + created_at TEXT NOT NULL DEFAULT (datetime('now')) + ); + + CREATE TABLE IF NOT EXISTS crm_activities ( + id INTEGER PRIMARY KEY AUTOINCREMENT, + kind TEXT NOT NULL DEFAULT 'task', + subject TEXT NOT NULL, + related_to TEXT, + due_date TEXT, + done INTEGER NOT NULL DEFAULT 0, + created_at TEXT NOT NULL DEFAULT (datetime('now')) + ); + + -- ===== BILLING / INVOICING ===== + CREATE TABLE IF NOT EXISTS company_profile ( + id INTEGER PRIMARY KEY CHECK (id = 1), + name TEXT NOT NULL, + address TEXT, + trn TEXT, + email TEXT, + phone TEXT, + logo TEXT, + default_accent TEXT NOT NULL DEFAULT '#0A0A0A', + default_template TEXT NOT NULL DEFAULT 'minimal' + ); + + CREATE TABLE IF NOT EXISTS invoice_docs ( + id INTEGER PRIMARY KEY AUTOINCREMENT, + number TEXT NOT NULL, + status TEXT NOT NULL DEFAULT 'draft', + template TEXT NOT NULL DEFAULT 'minimal', + accent TEXT NOT NULL DEFAULT '#0A0A0A', + currency TEXT NOT NULL DEFAULT 'AED', + seller_name TEXT NOT NULL DEFAULT '', + seller_address TEXT, + seller_trn TEXT, + seller_email TEXT, + seller_phone TEXT, + logo TEXT, + customer_name TEXT NOT NULL DEFAULT '', + customer_address TEXT, + customer_trn TEXT, + customer_email TEXT, + issue_date TEXT, + due_date TEXT, + notes TEXT, + terms TEXT, + tax_rate REAL NOT NULL DEFAULT 5, + discount REAL NOT NULL DEFAULT 0, + created_at TEXT NOT NULL DEFAULT (datetime('now')), + updated_at TEXT NOT NULL DEFAULT (datetime('now')) + ); + + CREATE TABLE IF NOT EXISTS invoice_doc_items ( + id INTEGER PRIMARY KEY AUTOINCREMENT, + invoice_id INTEGER NOT NULL REFERENCES invoice_docs(id) ON DELETE CASCADE, + description TEXT NOT NULL DEFAULT '', + qty REAL NOT NULL DEFAULT 1, + unit_price REAL NOT NULL DEFAULT 0, + position INTEGER NOT NULL DEFAULT 0 + ); + + -- ===== OFFLINE-FIRST CACHE / SYNC OUTBOX ===== + CREATE TABLE IF NOT EXISTS kv_cache ( + key TEXT PRIMARY KEY, + value TEXT NOT NULL, + updated_at TEXT NOT NULL DEFAULT (datetime('now')) + ); + + CREATE TABLE IF NOT EXISTS outbox ( + id INTEGER PRIMARY KEY AUTOINCREMENT, + op TEXT NOT NULL, + created_at TEXT NOT NULL DEFAULT (datetime('now')) + ); + "#, + )?; + + seed(conn)?; + seed_crm(conn)?; + seed_billing(conn)?; + Ok(()) +} + +fn seed(conn: &Connection) -> rusqlite::Result<()> { + let count: i64 = conn.query_row("SELECT COUNT(*) FROM products", [], |r| r.get(0))?; + if count > 0 { + return Ok(()); + } + + conn.execute_batch( + r#" + INSERT OR IGNORE INTO products (sku, name, category, unit_price, cost_price, quantity, reorder_level) VALUES + ('SKU-1001','Engine Oil 5W-30 (4L)','Lubricants', 145.00, 95.00, 240, 50), + ('SKU-1002','Hydraulic Oil ISO 68','Lubricants', 210.00, 150.00, 80, 30), + ('SKU-1003','Grease MP3 (18kg)','Grease', 320.00, 220.00, 35, 20), + ('SKU-1004','Coolant Concentrate (5L)','Coolants', 90.00, 55.00, 12, 25), + ('SKU-1005','Gear Oil EP90 (20L)','Lubricants', 480.00, 360.00, 60, 15); + + INSERT OR IGNORE INTO orders (order_number, customer_name, status, total) VALUES + ('SO-2026-0001','Dune Lubricants LLC','confirmed', 2900.00), + ('SO-2026-0002','Green Gold Trading','draft', 1280.00), + ('SO-2026-0003','KSR General Trading','delivered', 9600.00); + + INSERT OR IGNORE INTO invoices (invoice_number, customer_name, amount, status, due_date) VALUES + ('INV-2026-0001','Dune Lubricants LLC', 2900.00, 'paid', date('now','+15 days')), + ('INV-2026-0002','KSR General Trading', 9600.00, 'unpaid', date('now','+30 days')); + + INSERT OR IGNORE INTO employees (employee_code, name, email, department, position, salary, hire_date, status) VALUES + ('EMP-001','Aurangzeb Khan','aurangzeb@filey.io','Operations','Operations Manager', 12000, date('now','-400 days'),'active'), + ('EMP-002','Mehmood Ali','mehmood@filey.io','Sales','Sales Executive', 7500, date('now','-220 days'),'active'), + ('EMP-003','Virendra Singh','virendra@filey.io','Finance','Accountant', 8500, date('now','-150 days'),'active'), + ('EMP-004','Ali Hassan','ali@filey.io','Warehouse','Storekeeper', 4500, date('now','-90 days'),'active'); + + INSERT OR IGNORE INTO attendance (employee_id, date, check_in, check_out, status) VALUES + (1, date('now'), '09:02', '18:05', 'present'), + (2, date('now'), '09:15', '18:00', 'present'), + (3, date('now'), NULL, NULL, 'leave'), + (4, date('now'), '08:55', '17:50', 'present'); + + INSERT OR IGNORE INTO payroll (employee_id, period, basic, allowances, deductions, net_pay, status) VALUES + (1,'2026-04', 12000, 1500, 500, 13000, 'paid'), + (2,'2026-04', 7500, 800, 300, 8000, 'paid'), + (3,'2026-04', 8500, 700, 400, 8800, 'pending'); + + INSERT OR IGNORE INTO accounts (code, name, account_type, balance) VALUES + ('1000','Cash','asset', 152000), + ('1100','Bank - Emirates NBD','asset', 488000), + ('2000','Accounts Payable','liability', 73000), + ('3000','Owner Equity','equity', 400000), + ('4000','Sales Revenue','revenue', 312000), + ('5000','Operating Expenses','expense', 96000); + + INSERT OR IGNORE INTO expenses (category, description, amount, expense_date, account_id) VALUES + ('Rent','Warehouse rent - May', 18000, date('now','-5 days'), 6), + ('Utilities','SEWA electricity bill', 3200, date('now','-3 days'), 6), + ('Fuel','Delivery vehicle fuel', 1450, date('now','-1 days'), 6); + + INSERT OR IGNORE INTO transactions (account_id, txn_type, amount, description) VALUES + (4,'credit', 9600, 'Invoice INV-2026-0002 booked'), + (1,'debit', 18000, 'Warehouse rent payment'), + (2,'credit', 12000, 'Supplier bill - lubricant stock'); + + INSERT OR IGNORE INTO users (username, full_name, role) VALUES + ('admin','System Administrator','admin'), + ('aurangzeb','Aurangzeb Khan','manager'), + ('virendra','Virendra Singh','accountant'); + + INSERT OR IGNORE INTO settings (key, value) VALUES + ('company_name','Filey ERP FZ-LLC'), + ('currency','AED'), + ('trn','100123456700003'), + ('vat_rate','0.05'), + ('emirate','Dubai'), + ('fiscal_year_start','01-01'), + ('theme','light'); + + INSERT OR IGNORE INTO audit_log (actor, action, entity, details) VALUES + ('admin','create','product','Seeded initial product catalog'), + ('admin','login','auth','Administrator signed in'); + "#, + )?; + Ok(()) +} + +fn seed_crm(conn: &Connection) -> rusqlite::Result<()> { + let count: i64 = + conn.query_row("SELECT COUNT(*) FROM crm_opportunities", [], |r| r.get(0))?; + if count > 0 { + return Ok(()); + } + + conn.execute_batch( + r#" + INSERT OR IGNORE INTO crm_leads (name, company, email, phone, source, status, est_value, owner) VALUES + ('Faisal Rahman','Al Madina Auto Spares','faisal@almadina.ae','+971501234567','Website','new', 18000, 'Mehmood Ali'), + ('Sara Iqbal','Gulf Marine Services','sara@gulfmarine.ae','+971559876543','Referral','contacted', 42000, 'Mehmood Ali'), + ('Tariq Noor','Desert Rose Trading','tariq@desertrose.ae','+971526549870','Trade Show','qualified', 76000, 'Aurangzeb Khan'), + ('Layla Hassan','Oasis Logistics','layla@oasislog.ae','+971502223344','Cold Call','new', 9500, 'Mehmood Ali'); + + INSERT OR IGNORE INTO crm_customers (name, company, email, phone, address, segment) VALUES + ('Omar Sheikh','Dune Lubricants LLC','omar@dunelub.ae','+971501112233','Jebel Ali, Dubai','Wholesale'), + ('Hina Aziz','KSR General Trading','hina@ksrtrading.ae','+971554445566','Sharjah Industrial Area','Distributor'), + ('Bilal Khan','Green Gold Trading','bilal@greengold.ae','+971507778899','Al Quoz, Dubai','Retail'); + + INSERT OR IGNORE INTO crm_opportunities (title, customer_name, stage, value, probability, owner, expected_close) VALUES + ('Annual lubricant supply contract','Dune Lubricants LLC','negotiation', 240000, 70, 'Aurangzeb Khan', date('now','+20 days')), + ('Bulk hydraulic oil — Q3','KSR General Trading','proposal', 96000, 45, 'Mehmood Ali', date('now','+35 days')), + ('Fleet grease package','Green Gold Trading','qualification', 32000, 20, 'Mehmood Ali', date('now','+50 days')), + ('Coolant retainer deal','Desert Rose Trading','won', 58000, 100, 'Aurangzeb Khan', date('now','-3 days')), + ('Gear oil one-off','Oasis Logistics','lost', 14000, 0, 'Mehmood Ali', date('now','-10 days')); + + INSERT OR IGNORE INTO crm_activities (kind, subject, related_to, due_date, done) VALUES + ('call','Follow up on contract terms','Dune Lubricants LLC', date('now','+1 days'), 0), + ('email','Send revised proposal','KSR General Trading', date('now'), 0), + ('meeting','Site visit & demo','Green Gold Trading', date('now','+4 days'), 0), + ('task','Prepare quotation PDF','Desert Rose Trading', date('now','-2 days'), 1); + "#, + )?; + Ok(()) +} + +fn seed_billing(conn: &Connection) -> rusqlite::Result<()> { + conn.execute( + "INSERT OR IGNORE INTO company_profile + (id, name, address, trn, email, phone, default_accent, default_template) + VALUES (1, 'Filey ERP FZ-LLC', 'Dubai, United Arab Emirates', + '100123456700003', 'billing@filey.io', '+971 4 000 0000', + '#0A0A0A', 'minimal')", + [], + )?; + + let count: i64 = conn.query_row("SELECT COUNT(*) FROM invoice_docs", [], |r| r.get(0))?; + if count > 0 { + return Ok(()); + } + + conn.execute( + "INSERT INTO invoice_docs + (number, status, template, accent, currency, + seller_name, seller_address, seller_trn, seller_email, seller_phone, + customer_name, customer_address, customer_trn, customer_email, + issue_date, due_date, notes, terms, tax_rate, discount) + VALUES ('INV-2026-0001', 'issued', 'minimal', '#0A0A0A', 'AED', + 'Filey ERP FZ-LLC', 'Dubai, United Arab Emirates', '100123456700003', + 'billing@filey.io', '+971 4 000 0000', + 'Dune Lubricants LLC', 'Jebel Ali, Dubai', '100777888900003', 'omar@dunelub.ae', + date('now'), date('now','+30 days'), + 'Thank you for your business.', + 'Payment due within 30 days. Late payments subject to 2% monthly interest.', + 5, 200)", + [], + )?; + let inv_id = conn.last_insert_rowid(); + conn.execute_batch(&format!( + "INSERT INTO invoice_doc_items (invoice_id, description, qty, unit_price, position) VALUES + ({id}, 'Engine Oil 5W-30 (4L) — case of 6', 20, 145.00, 0), + ({id}, 'Hydraulic Oil ISO 68 (20L)', 8, 210.00, 1), + ({id}, 'Delivery & handling', 1, 350.00, 2);", + id = inv_id + ))?; + Ok(()) +} diff --git a/filey-erp/src-tauri/src/error.rs b/filey-erp/src-tauri/src/error.rs new file mode 100644 index 0000000..7902695 --- /dev/null +++ b/filey-erp/src-tauri/src/error.rs @@ -0,0 +1,26 @@ +use serde::Serialize; + +#[derive(Debug, thiserror::Error)] +pub enum AppError { + #[error("database error: {0}")] + Db(#[from] rusqlite::Error), + #[error("pool error: {0}")] + Pool(String), + #[error("not found: {0}")] + NotFound(String), + #[error("validation: {0}")] + Validation(String), + #[error("email error: {0}")] + Email(String), +} + +impl Serialize for AppError { + fn serialize(&self, serializer: S) -> Result + where + S: serde::Serializer, + { + serializer.serialize_str(&self.to_string()) + } +} + +pub type AppResult = Result; diff --git a/filey-erp/src-tauri/src/lib.rs b/filey-erp/src-tauri/src/lib.rs new file mode 100644 index 0000000..cc43cdb --- /dev/null +++ b/filey-erp/src-tauri/src/lib.rs @@ -0,0 +1,100 @@ +mod db; +mod error; +mod modules; + +use db::Db; +use rusqlite::Connection; +use std::sync::Mutex; +use tauri::Manager; + +#[cfg_attr(mobile, tauri::mobile_entry_point)] +pub fn run() { + tauri::Builder::default() + .plugin(tauri_plugin_opener::init()) + .setup(|app| { + let dir = app.path().app_data_dir().expect("app data dir"); + std::fs::create_dir_all(&dir).ok(); + let conn = Connection::open(dir.join("filey-erp.db")).expect("open db"); + db::init(&conn).expect("init db"); + app.manage(Db(Mutex::new(conn))); + Ok(()) + }) + .invoke_handler(tauri::generate_handler![ + // CRM + modules::crm::crm_list_leads, + modules::crm::crm_create_lead, + modules::crm::crm_set_lead_status, + modules::crm::crm_delete_lead, + modules::crm::crm_convert_lead, + modules::crm::crm_list_customers, + modules::crm::crm_create_customer, + modules::crm::crm_delete_customer, + modules::crm::crm_list_opportunities, + modules::crm::crm_create_opportunity, + modules::crm::crm_set_opp_stage, + modules::crm::crm_delete_opportunity, + modules::crm::crm_list_activities, + modules::crm::crm_create_activity, + modules::crm::crm_toggle_activity, + modules::crm::crm_summary, + // Offline cache / sync outbox + modules::sync::cache_get, + modules::sync::cache_set, + modules::sync::outbox_add, + modules::sync::outbox_list, + modules::sync::outbox_remove, + modules::sync::outbox_clear, + // Billing / Invoicing + modules::billing::billing_list_docs, + modules::billing::billing_get_doc, + modules::billing::billing_save_doc, + modules::billing::billing_delete_doc, + modules::billing::billing_set_status, + modules::billing::billing_get_company, + modules::billing::billing_save_company, + // ERP Core + modules::erp::erp_list_products, + modules::erp::erp_create_product, + modules::erp::erp_update_stock, + modules::erp::erp_delete_product, + modules::erp::erp_list_orders, + modules::erp::erp_create_order, + modules::erp::erp_set_order_status, + modules::erp::erp_list_invoices, + modules::erp::erp_create_invoice, + modules::erp::erp_mark_invoice_paid, + modules::erp::erp_summary, + // HR + modules::hr::hr_list_employees, + modules::hr::hr_create_employee, + modules::hr::hr_set_employee_status, + modules::hr::hr_delete_employee, + modules::hr::hr_list_attendance, + modules::hr::hr_mark_attendance, + modules::hr::hr_list_payroll, + modules::hr::hr_run_payroll, + modules::hr::hr_mark_payroll_paid, + modules::hr::hr_summary, + // Finance + modules::finance::fin_list_accounts, + modules::finance::fin_create_account, + modules::finance::fin_list_expenses, + modules::finance::fin_create_expense, + modules::finance::fin_delete_expense, + modules::finance::fin_list_transactions, + modules::finance::fin_post_transaction, + modules::finance::fin_report, + // Tools + modules::tools::tools_list_users, + modules::tools::tools_create_user, + modules::tools::tools_toggle_user, + modules::tools::tools_list_settings, + modules::tools::tools_set_setting, + modules::tools::tools_audit_log, + modules::tools::tools_log_action, + // Email (SMTP) + modules::email::send_email, + ]) + .run(tauri::generate_context!()) + .expect("error while running tauri application"); +} diff --git a/filey-erp/src-tauri/src/main.rs b/filey-erp/src-tauri/src/main.rs new file mode 100644 index 0000000..9120236 --- /dev/null +++ b/filey-erp/src-tauri/src/main.rs @@ -0,0 +1,6 @@ +// Prevents additional console window on Windows in release, DO NOT REMOVE!! +#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")] + +fn main() { + filey_erp_lib::run() +} diff --git a/filey-erp/src-tauri/src/modules/billing.rs b/filey-erp/src-tauri/src/modules/billing.rs new file mode 100644 index 0000000..bc02644 --- /dev/null +++ b/filey-erp/src-tauri/src/modules/billing.rs @@ -0,0 +1,341 @@ +use crate::db::Db; +use crate::error::{AppError, AppResult}; +use serde::{Deserialize, Serialize}; +use tauri::State; + +#[derive(Serialize)] +pub struct InvoiceItem { + pub id: i64, + pub description: String, + pub qty: f64, + pub unit_price: f64, +} + +#[derive(Deserialize)] +pub struct ItemInput { + pub description: String, + pub qty: f64, + pub unit_price: f64, +} + +#[derive(Serialize)] +pub struct InvoiceDoc { + pub id: i64, + pub number: String, + pub status: String, + pub template: String, + pub accent: String, + pub currency: String, + pub seller_name: String, + pub seller_address: Option, + pub seller_trn: Option, + pub seller_email: Option, + pub seller_phone: Option, + pub logo: Option, + pub customer_name: String, + pub customer_address: Option, + pub customer_trn: Option, + pub customer_email: Option, + pub issue_date: Option, + pub due_date: Option, + pub notes: Option, + pub terms: Option, + pub tax_rate: f64, + pub discount: f64, + pub created_at: String, + pub updated_at: String, + pub items: Vec, +} + +#[derive(Serialize)] +pub struct InvoiceDocSummary { + pub id: i64, + pub number: String, + pub customer_name: String, + pub status: String, + pub template: String, + pub total: f64, + pub issue_date: Option, + pub updated_at: String, +} + +#[derive(Deserialize)] +pub struct InvoiceDocInput { + pub id: Option, + pub number: String, + pub status: String, + pub template: String, + pub accent: String, + pub currency: String, + pub seller_name: String, + pub seller_address: Option, + pub seller_trn: Option, + pub seller_email: Option, + pub seller_phone: Option, + pub logo: Option, + pub customer_name: String, + pub customer_address: Option, + pub customer_trn: Option, + pub customer_email: Option, + pub issue_date: Option, + pub due_date: Option, + pub notes: Option, + pub terms: Option, + pub tax_rate: f64, + pub discount: f64, + pub items: Vec, +} + +#[derive(Serialize, Deserialize)] +pub struct CompanyProfile { + pub name: String, + pub address: Option, + pub trn: Option, + pub email: Option, + pub phone: Option, + pub logo: Option, + pub default_accent: String, + pub default_template: String, +} + +fn read_doc_row(r: &rusqlite::Row) -> rusqlite::Result { + Ok(InvoiceDoc { + id: r.get(0)?, + number: r.get(1)?, + status: r.get(2)?, + template: r.get(3)?, + accent: r.get(4)?, + currency: r.get(5)?, + seller_name: r.get(6)?, + seller_address: r.get(7)?, + seller_trn: r.get(8)?, + seller_email: r.get(9)?, + seller_phone: r.get(10)?, + logo: r.get(11)?, + customer_name: r.get(12)?, + customer_address: r.get(13)?, + customer_trn: r.get(14)?, + customer_email: r.get(15)?, + issue_date: r.get(16)?, + due_date: r.get(17)?, + notes: r.get(18)?, + terms: r.get(19)?, + tax_rate: r.get(20)?, + discount: r.get(21)?, + created_at: r.get(22)?, + updated_at: r.get(23)?, + items: Vec::new(), + }) +} + +const DOC_COLS: &str = "id, number, status, template, accent, currency, + seller_name, seller_address, seller_trn, seller_email, seller_phone, logo, + customer_name, customer_address, customer_trn, customer_email, + issue_date, due_date, notes, terms, tax_rate, discount, created_at, updated_at"; + +#[tauri::command] +pub fn billing_list_docs(db: State) -> AppResult> { + let conn = db.0.lock().map_err(|e| AppError::Pool(e.to_string()))?; + let mut stmt = conn.prepare( + "SELECT d.id, d.number, d.customer_name, d.status, d.template, + ( (COALESCE((SELECT SUM(qty * unit_price) FROM invoice_doc_items WHERE invoice_id = d.id), 0) - d.discount) + * (1 + d.tax_rate / 100.0) ) AS total, + d.issue_date, d.updated_at + FROM invoice_docs d + ORDER BY d.updated_at DESC, d.id DESC", + )?; + let rows = stmt + .query_map([], |r| { + Ok(InvoiceDocSummary { + id: r.get(0)?, + number: r.get(1)?, + customer_name: r.get(2)?, + status: r.get(3)?, + template: r.get(4)?, + total: r.get(5)?, + issue_date: r.get(6)?, + updated_at: r.get(7)?, + }) + })? + .collect::, _>>()?; + Ok(rows) +} + +#[tauri::command] +pub fn billing_get_doc(db: State, doc_id: i64) -> AppResult { + let conn = db.0.lock().map_err(|e| AppError::Pool(e.to_string()))?; + let mut doc = conn + .query_row( + &format!("SELECT {DOC_COLS} FROM invoice_docs WHERE id = ?1"), + [doc_id], + read_doc_row, + ) + .map_err(|_| AppError::NotFound(format!("invoice {doc_id}")))?; + + let mut stmt = conn.prepare( + "SELECT id, description, qty, unit_price FROM invoice_doc_items + WHERE invoice_id = ?1 ORDER BY position, id", + )?; + let items = stmt + .query_map([doc_id], |r| { + Ok(InvoiceItem { + id: r.get(0)?, + description: r.get(1)?, + qty: r.get(2)?, + unit_price: r.get(3)?, + }) + })? + .collect::, _>>()?; + doc.items = items; + Ok(doc) +} + +#[tauri::command] +pub fn billing_save_doc(db: State, input: InvoiceDocInput) -> AppResult { + if input.number.trim().is_empty() { + return Err(AppError::Validation("Invoice number is required".into())); + } + if input.customer_name.trim().is_empty() { + return Err(AppError::Validation("Customer name is required".into())); + } + let mut guard = db.0.lock().map_err(|e| AppError::Pool(e.to_string()))?; + let tx = guard.transaction()?; + + let id = match input.id.filter(|v| *v > 0) { + Some(did) => { + let changed = tx.execute( + "UPDATE invoice_docs SET + number=?2, status=?3, template=?4, accent=?5, currency=?6, + seller_name=?7, seller_address=?8, seller_trn=?9, seller_email=?10, seller_phone=?11, logo=?12, + customer_name=?13, customer_address=?14, customer_trn=?15, customer_email=?16, + issue_date=?17, due_date=?18, notes=?19, terms=?20, tax_rate=?21, discount=?22, + updated_at=datetime('now') + WHERE id=?1", + rusqlite::params![ + did, input.number, input.status, input.template, input.accent, input.currency, + input.seller_name, input.seller_address, input.seller_trn, input.seller_email, input.seller_phone, input.logo, + input.customer_name, input.customer_address, input.customer_trn, input.customer_email, + input.issue_date, input.due_date, input.notes, input.terms, input.tax_rate, input.discount + ], + )?; + if changed == 0 { + return Err(AppError::NotFound(format!("invoice {did}"))); + } + tx.execute("DELETE FROM invoice_doc_items WHERE invoice_id=?1", [did])?; + did + } + None => { + tx.execute( + "INSERT INTO invoice_docs + (number, status, template, accent, currency, + seller_name, seller_address, seller_trn, seller_email, seller_phone, logo, + customer_name, customer_address, customer_trn, customer_email, + issue_date, due_date, notes, terms, tax_rate, discount) + VALUES (?1,?2,?3,?4,?5,?6,?7,?8,?9,?10,?11,?12,?13,?14,?15,?16,?17,?18,?19,?20,?21)", + rusqlite::params![ + input.number, input.status, input.template, input.accent, input.currency, + input.seller_name, input.seller_address, input.seller_trn, input.seller_email, input.seller_phone, input.logo, + input.customer_name, input.customer_address, input.customer_trn, input.customer_email, + input.issue_date, input.due_date, input.notes, input.terms, input.tax_rate, input.discount + ], + )?; + tx.last_insert_rowid() + } + }; + + for (i, it) in input.items.iter().enumerate() { + tx.execute( + "INSERT INTO invoice_doc_items (invoice_id, description, qty, unit_price, position) + VALUES (?1, ?2, ?3, ?4, ?5)", + rusqlite::params![id, it.description, it.qty, it.unit_price, i as i64], + )?; + } + + tx.commit()?; + Ok(id) +} + +#[tauri::command] +pub fn billing_delete_doc(db: State, doc_id: i64) -> AppResult<()> { + let conn = db.0.lock().map_err(|e| AppError::Pool(e.to_string()))?; + conn.execute("DELETE FROM invoice_docs WHERE id = ?1", [doc_id])?; + Ok(()) +} + +#[tauri::command] +pub fn billing_set_status(db: State, doc_id: i64, status: String) -> AppResult<()> { + let conn = db.0.lock().map_err(|e| AppError::Pool(e.to_string()))?; + let changed = conn.execute( + "UPDATE invoice_docs SET status = ?1, updated_at = datetime('now') WHERE id = ?2", + rusqlite::params![status, doc_id], + )?; + if changed == 0 { + return Err(AppError::NotFound(format!("invoice {doc_id}"))); + } + Ok(()) +} + +#[tauri::command] +pub fn billing_get_company(db: State) -> AppResult { + let conn = db.0.lock().map_err(|e| AppError::Pool(e.to_string()))?; + let found = conn.query_row( + "SELECT name, address, trn, email, phone, logo, default_accent, default_template + FROM company_profile WHERE id = 1", + [], + |r| { + Ok(CompanyProfile { + name: r.get(0)?, + address: r.get(1)?, + trn: r.get(2)?, + email: r.get(3)?, + phone: r.get(4)?, + logo: r.get(5)?, + default_accent: r.get(6)?, + default_template: r.get(7)?, + }) + }, + ); + match found { + Ok(c) => Ok(c), + Err(_) => { + let def = CompanyProfile { + name: "Filey ERP FZ-LLC".into(), + address: Some("Dubai, United Arab Emirates".into()), + trn: Some("100123456700003".into()), + email: Some("billing@filey.io".into()), + phone: Some("+971 4 000 0000".into()), + logo: None, + default_accent: "#0A0A0A".into(), + default_template: "minimal".into(), + }; + conn.execute( + "INSERT OR REPLACE INTO company_profile + (id, name, address, trn, email, phone, logo, default_accent, default_template) + VALUES (1, ?1, ?2, ?3, ?4, ?5, ?6, ?7, ?8)", + rusqlite::params![ + def.name, def.address, def.trn, def.email, def.phone, + def.logo, def.default_accent, def.default_template + ], + )?; + Ok(def) + } + } +} + +#[tauri::command] +pub fn billing_save_company(db: State, input: CompanyProfile) -> AppResult<()> { + if input.name.trim().is_empty() { + return Err(AppError::Validation("Company name is required".into())); + } + let conn = db.0.lock().map_err(|e| AppError::Pool(e.to_string()))?; + conn.execute( + "INSERT OR REPLACE INTO company_profile + (id, name, address, trn, email, phone, logo, default_accent, default_template) + VALUES (1, ?1, ?2, ?3, ?4, ?5, ?6, ?7, ?8)", + rusqlite::params![ + input.name, input.address, input.trn, input.email, input.phone, + input.logo, input.default_accent, input.default_template + ], + )?; + Ok(()) +} diff --git a/filey-erp/src-tauri/src/modules/crm.rs b/filey-erp/src-tauri/src/modules/crm.rs new file mode 100644 index 0000000..d65edac --- /dev/null +++ b/filey-erp/src-tauri/src/modules/crm.rs @@ -0,0 +1,454 @@ +use crate::db::Db; +use crate::error::{AppError, AppResult}; +use serde::{Deserialize, Serialize}; +use tauri::State; + +// ===== Leads ===== +#[derive(Serialize)] +pub struct Lead { + pub id: i64, + pub name: String, + pub company: Option, + pub email: Option, + pub phone: Option, + pub source: Option, + pub status: String, + pub est_value: f64, + pub owner: Option, + pub created_at: String, +} + +#[derive(Deserialize)] +pub struct LeadInput { + pub name: String, + pub company: Option, + pub email: Option, + pub phone: Option, + pub source: Option, + pub est_value: f64, + pub owner: Option, +} + +// ===== Customers ===== +#[derive(Serialize)] +pub struct Customer { + pub id: i64, + pub name: String, + pub company: Option, + pub email: Option, + pub phone: Option, + pub address: Option, + pub segment: Option, + pub created_at: String, +} + +#[derive(Deserialize)] +pub struct CustomerInput { + pub name: String, + pub company: Option, + pub email: Option, + pub phone: Option, + pub address: Option, + pub segment: Option, +} + +// ===== Opportunities (pipeline) ===== +#[derive(Serialize)] +pub struct Opportunity { + pub id: i64, + pub title: String, + pub customer_name: String, + pub stage: String, + pub value: f64, + pub probability: i64, + pub owner: Option, + pub expected_close: Option, + pub created_at: String, +} + +#[derive(Deserialize)] +pub struct OpportunityInput { + pub title: String, + pub customer_name: String, + pub stage: String, + pub value: f64, + pub probability: i64, + pub owner: Option, + pub expected_close: Option, +} + +// ===== Activities ===== +#[derive(Serialize)] +pub struct Activity { + pub id: i64, + pub kind: String, + pub subject: String, + pub related_to: Option, + pub due_date: Option, + pub done: bool, + pub created_at: String, +} + +#[derive(Deserialize)] +pub struct ActivityInput { + pub kind: String, + pub subject: String, + pub related_to: Option, + pub due_date: Option, +} + +#[derive(Serialize)] +pub struct CrmSummary { + pub open_leads: i64, + pub pipeline_value: f64, + pub won_value: f64, + pub conversion_rate: f64, + pub activities_due: i64, +} + +// ---------- Leads ---------- +#[tauri::command] +pub fn crm_list_leads(db: State) -> AppResult> { + let conn = db.0.lock().map_err(|e| AppError::Pool(e.to_string()))?; + let mut stmt = conn.prepare( + "SELECT id, name, company, email, phone, source, status, est_value, owner, created_at + FROM crm_leads ORDER BY id DESC", + )?; + let rows = stmt + .query_map([], |r| { + Ok(Lead { + id: r.get(0)?, + name: r.get(1)?, + company: r.get(2)?, + email: r.get(3)?, + phone: r.get(4)?, + source: r.get(5)?, + status: r.get(6)?, + est_value: r.get(7)?, + owner: r.get(8)?, + created_at: r.get(9)?, + }) + })? + .collect::, _>>()?; + Ok(rows) +} + +#[tauri::command] +pub fn crm_create_lead(db: State, input: LeadInput) -> AppResult { + if input.name.trim().is_empty() { + return Err(AppError::Validation("Lead name is required".into())); + } + let conn = db.0.lock().map_err(|e| AppError::Pool(e.to_string()))?; + conn.execute( + "INSERT INTO crm_leads (name, company, email, phone, source, status, est_value, owner) + VALUES (?1, ?2, ?3, ?4, ?5, 'new', ?6, ?7)", + rusqlite::params![ + input.name, + input.company, + input.email, + input.phone, + input.source, + input.est_value, + input.owner + ], + )?; + Ok(conn.last_insert_rowid()) +} + +#[tauri::command] +pub fn crm_set_lead_status(db: State, lead_id: i64, status: String) -> AppResult<()> { + let conn = db.0.lock().map_err(|e| AppError::Pool(e.to_string()))?; + let changed = conn.execute( + "UPDATE crm_leads SET status = ?1 WHERE id = ?2", + rusqlite::params![status, lead_id], + )?; + if changed == 0 { + return Err(AppError::NotFound(format!("lead {lead_id}"))); + } + Ok(()) +} + +#[tauri::command] +pub fn crm_delete_lead(db: State, lead_id: i64) -> AppResult<()> { + let conn = db.0.lock().map_err(|e| AppError::Pool(e.to_string()))?; + conn.execute("DELETE FROM crm_leads WHERE id = ?1", [lead_id])?; + Ok(()) +} + +/// Convert a lead into a customer + an opportunity, mark the lead as converted. +#[tauri::command] +pub fn crm_convert_lead(db: State, lead_id: i64) -> AppResult { + let conn = db.0.lock().map_err(|e| AppError::Pool(e.to_string()))?; + let (name, company, email, phone, est_value, owner): ( + String, + Option, + Option, + Option, + f64, + Option, + ) = conn + .query_row( + "SELECT name, company, email, phone, est_value, owner FROM crm_leads WHERE id = ?1", + [lead_id], + |r| { + Ok(( + r.get(0)?, + r.get(1)?, + r.get(2)?, + r.get(3)?, + r.get(4)?, + r.get(5)?, + )) + }, + ) + .map_err(|_| AppError::NotFound(format!("lead {lead_id}")))?; + + let display = company.clone().unwrap_or_else(|| name.clone()); + conn.execute( + "INSERT INTO crm_customers (name, company, email, phone, segment) + VALUES (?1, ?2, ?3, ?4, 'Converted lead')", + rusqlite::params![name, company, email, phone], + )?; + conn.execute( + "INSERT INTO crm_opportunities + (title, customer_name, stage, value, probability, owner) + VALUES (?1, ?2, 'qualification', ?3, 20, ?4)", + rusqlite::params![ + format!("{display} — new opportunity"), + display, + est_value, + owner + ], + )?; + let opp_id = conn.last_insert_rowid(); + conn.execute( + "UPDATE crm_leads SET status = 'converted' WHERE id = ?1", + [lead_id], + )?; + Ok(opp_id) +} + +// ---------- Customers ---------- +#[tauri::command] +pub fn crm_list_customers(db: State) -> AppResult> { + let conn = db.0.lock().map_err(|e| AppError::Pool(e.to_string()))?; + let mut stmt = conn.prepare( + "SELECT id, name, company, email, phone, address, segment, created_at + FROM crm_customers ORDER BY name", + )?; + let rows = stmt + .query_map([], |r| { + Ok(Customer { + id: r.get(0)?, + name: r.get(1)?, + company: r.get(2)?, + email: r.get(3)?, + phone: r.get(4)?, + address: r.get(5)?, + segment: r.get(6)?, + created_at: r.get(7)?, + }) + })? + .collect::, _>>()?; + Ok(rows) +} + +#[tauri::command] +pub fn crm_create_customer(db: State, input: CustomerInput) -> AppResult { + if input.name.trim().is_empty() { + return Err(AppError::Validation("Customer name is required".into())); + } + let conn = db.0.lock().map_err(|e| AppError::Pool(e.to_string()))?; + conn.execute( + "INSERT INTO crm_customers (name, company, email, phone, address, segment) + VALUES (?1, ?2, ?3, ?4, ?5, ?6)", + rusqlite::params![ + input.name, + input.company, + input.email, + input.phone, + input.address, + input.segment + ], + )?; + Ok(conn.last_insert_rowid()) +} + +#[tauri::command] +pub fn crm_delete_customer(db: State, customer_id: i64) -> AppResult<()> { + let conn = db.0.lock().map_err(|e| AppError::Pool(e.to_string()))?; + conn.execute("DELETE FROM crm_customers WHERE id = ?1", [customer_id])?; + Ok(()) +} + +// ---------- Opportunities ---------- +#[tauri::command] +pub fn crm_list_opportunities(db: State) -> AppResult> { + let conn = db.0.lock().map_err(|e| AppError::Pool(e.to_string()))?; + let mut stmt = conn.prepare( + "SELECT id, title, customer_name, stage, value, probability, owner, expected_close, created_at + FROM crm_opportunities ORDER BY id DESC", + )?; + let rows = stmt + .query_map([], |r| { + Ok(Opportunity { + id: r.get(0)?, + title: r.get(1)?, + customer_name: r.get(2)?, + stage: r.get(3)?, + value: r.get(4)?, + probability: r.get(5)?, + owner: r.get(6)?, + expected_close: r.get(7)?, + created_at: r.get(8)?, + }) + })? + .collect::, _>>()?; + Ok(rows) +} + +#[tauri::command] +pub fn crm_create_opportunity(db: State, input: OpportunityInput) -> AppResult { + if input.title.trim().is_empty() { + return Err(AppError::Validation("Opportunity title is required".into())); + } + let conn = db.0.lock().map_err(|e| AppError::Pool(e.to_string()))?; + conn.execute( + "INSERT INTO crm_opportunities + (title, customer_name, stage, value, probability, owner, expected_close) + VALUES (?1, ?2, ?3, ?4, ?5, ?6, ?7)", + rusqlite::params![ + input.title, + input.customer_name, + input.stage, + input.value, + input.probability, + input.owner, + input.expected_close + ], + )?; + Ok(conn.last_insert_rowid()) +} + +#[tauri::command] +pub fn crm_set_opp_stage(db: State, opp_id: i64, stage: String) -> AppResult<()> { + let prob = match stage.as_str() { + "qualification" => 20, + "proposal" => 45, + "negotiation" => 70, + "won" => 100, + "lost" => 0, + _ => 30, + }; + let conn = db.0.lock().map_err(|e| AppError::Pool(e.to_string()))?; + let changed = conn.execute( + "UPDATE crm_opportunities SET stage = ?1, probability = ?2 WHERE id = ?3", + rusqlite::params![stage, prob, opp_id], + )?; + if changed == 0 { + return Err(AppError::NotFound(format!("opportunity {opp_id}"))); + } + Ok(()) +} + +#[tauri::command] +pub fn crm_delete_opportunity(db: State, opp_id: i64) -> AppResult<()> { + let conn = db.0.lock().map_err(|e| AppError::Pool(e.to_string()))?; + conn.execute("DELETE FROM crm_opportunities WHERE id = ?1", [opp_id])?; + Ok(()) +} + +// ---------- Activities ---------- +#[tauri::command] +pub fn crm_list_activities(db: State) -> AppResult> { + let conn = db.0.lock().map_err(|e| AppError::Pool(e.to_string()))?; + let mut stmt = conn.prepare( + "SELECT id, kind, subject, related_to, due_date, done, created_at + FROM crm_activities ORDER BY done ASC, due_date ASC, id DESC", + )?; + let rows = stmt + .query_map([], |r| { + let done: i64 = r.get(5)?; + Ok(Activity { + id: r.get(0)?, + kind: r.get(1)?, + subject: r.get(2)?, + related_to: r.get(3)?, + due_date: r.get(4)?, + done: done != 0, + created_at: r.get(6)?, + }) + })? + .collect::, _>>()?; + Ok(rows) +} + +#[tauri::command] +pub fn crm_create_activity(db: State, input: ActivityInput) -> AppResult { + if input.subject.trim().is_empty() { + return Err(AppError::Validation("Activity subject is required".into())); + } + let conn = db.0.lock().map_err(|e| AppError::Pool(e.to_string()))?; + conn.execute( + "INSERT INTO crm_activities (kind, subject, related_to, due_date, done) + VALUES (?1, ?2, ?3, ?4, 0)", + rusqlite::params![input.kind, input.subject, input.related_to, input.due_date], + )?; + Ok(conn.last_insert_rowid()) +} + +#[tauri::command] +pub fn crm_toggle_activity(db: State, activity_id: i64) -> AppResult<()> { + let conn = db.0.lock().map_err(|e| AppError::Pool(e.to_string()))?; + let changed = conn.execute( + "UPDATE crm_activities SET done = 1 - done WHERE id = ?1", + [activity_id], + )?; + if changed == 0 { + return Err(AppError::NotFound(format!("activity {activity_id}"))); + } + Ok(()) +} + +#[tauri::command] +pub fn crm_summary(db: State) -> AppResult { + let conn = db.0.lock().map_err(|e| AppError::Pool(e.to_string()))?; + let open_leads: i64 = conn.query_row( + "SELECT COUNT(*) FROM crm_leads WHERE status NOT IN ('converted','lost')", + [], + |r| r.get(0), + )?; + let pipeline_value: f64 = conn.query_row( + "SELECT COALESCE(SUM(value), 0) FROM crm_opportunities WHERE stage NOT IN ('won','lost')", + [], + |r| r.get(0), + )?; + let won_value: f64 = conn.query_row( + "SELECT COALESCE(SUM(value), 0) FROM crm_opportunities WHERE stage = 'won'", + [], + |r| r.get(0), + )?; + let total_leads: i64 = conn.query_row("SELECT COUNT(*) FROM crm_leads", [], |r| r.get(0))?; + let converted: i64 = conn.query_row( + "SELECT COUNT(*) FROM crm_leads WHERE status = 'converted'", + [], + |r| r.get(0), + )?; + let conversion_rate = if total_leads > 0 { + (converted as f64 / total_leads as f64) * 100.0 + } else { + 0.0 + }; + let activities_due: i64 = conn.query_row( + "SELECT COUNT(*) FROM crm_activities WHERE done = 0", + [], + |r| r.get(0), + )?; + Ok(CrmSummary { + open_leads, + pipeline_value, + won_value, + conversion_rate, + activities_due, + }) +} diff --git a/filey-erp/src-tauri/src/modules/email.rs b/filey-erp/src-tauri/src/modules/email.rs new file mode 100644 index 0000000..e35cac7 --- /dev/null +++ b/filey-erp/src-tauri/src/modules/email.rs @@ -0,0 +1,55 @@ +use crate::error::{AppError, AppResult}; +use lettre::message::header::ContentType; +use lettre::transport::smtp::authentication::Credentials; +use lettre::{Message, SmtpTransport, Transport}; +use serde::Deserialize; + +#[derive(Deserialize)] +pub struct EmailConfig { + pub host: String, + pub port: u16, + pub username: String, + pub password: String, + pub from_name: String, + pub from_email: String, +} + +#[derive(Deserialize)] +pub struct EmailMessage { + pub to: String, + pub subject: String, + pub html: String, +} + +/// Send a single HTML email over SMTP (Gmail: smtp.gmail.com:587 with +/// an App Password). Runs in the desktop shell only. +#[tauri::command] +pub fn send_email(config: EmailConfig, message: EmailMessage) -> AppResult<()> { + let from = format!("{} <{}>", config.from_name, config.from_email); + let email = Message::builder() + .from( + from.parse() + .map_err(|e| AppError::Email(format!("invalid from: {e}")))?, + ) + .to(message + .to + .parse() + .map_err(|e| AppError::Email(format!("invalid recipient: {e}")))?) + .subject(message.subject) + .header(ContentType::TEXT_HTML) + .body(message.html) + .map_err(|e| AppError::Email(e.to_string()))?; + + let creds = Credentials::new(config.username.clone(), config.password.clone()); + + let mailer = SmtpTransport::starttls_relay(&config.host) + .map_err(|e| AppError::Email(e.to_string()))? + .port(config.port) + .credentials(creds) + .build(); + + mailer + .send(&email) + .map_err(|e| AppError::Email(e.to_string()))?; + Ok(()) +} diff --git a/filey-erp/src-tauri/src/modules/erp.rs b/filey-erp/src-tauri/src/modules/erp.rs new file mode 100644 index 0000000..3cb44c1 --- /dev/null +++ b/filey-erp/src-tauri/src/modules/erp.rs @@ -0,0 +1,252 @@ +use crate::db::Db; +use crate::error::{AppError, AppResult}; +use serde::{Deserialize, Serialize}; +use tauri::State; + +#[derive(Serialize)] +pub struct Product { + pub id: i64, + pub sku: String, + pub name: String, + pub description: Option, + pub category: Option, + pub unit_price: f64, + pub cost_price: f64, + pub quantity: i64, + pub reorder_level: i64, + pub created_at: String, +} + +#[derive(Deserialize)] +pub struct ProductInput { + pub sku: String, + pub name: String, + pub description: Option, + pub category: Option, + pub unit_price: f64, + pub cost_price: f64, + pub quantity: i64, + pub reorder_level: i64, +} + +#[derive(Serialize)] +pub struct Order { + pub id: i64, + pub order_number: String, + pub customer_name: String, + pub status: String, + pub total: f64, + pub created_at: String, +} + +#[derive(Serialize)] +pub struct Invoice { + pub id: i64, + pub invoice_number: String, + pub customer_name: String, + pub amount: f64, + pub status: String, + pub due_date: Option, + pub created_at: String, +} + +#[derive(Serialize)] +pub struct ErpSummary { + pub total_products: i64, + pub low_stock: i64, + pub inventory_value: f64, + pub open_orders: i64, + pub unpaid_invoices: f64, +} + +#[tauri::command] +pub fn erp_list_products(db: State) -> AppResult> { + let conn = db.0.lock().map_err(|e| AppError::Pool(e.to_string()))?; + let mut stmt = conn.prepare( + "SELECT id, sku, name, description, category, unit_price, cost_price, quantity, reorder_level, created_at + FROM products ORDER BY name", + )?; + let rows = stmt + .query_map([], |r| { + Ok(Product { + id: r.get(0)?, + sku: r.get(1)?, + name: r.get(2)?, + description: r.get(3)?, + category: r.get(4)?, + unit_price: r.get(5)?, + cost_price: r.get(6)?, + quantity: r.get(7)?, + reorder_level: r.get(8)?, + created_at: r.get(9)?, + }) + })? + .collect::, _>>()?; + Ok(rows) +} + +#[tauri::command] +pub fn erp_create_product(db: State, input: ProductInput) -> AppResult { + if input.sku.trim().is_empty() || input.name.trim().is_empty() { + return Err(AppError::Validation("SKU and name are required".into())); + } + let conn = db.0.lock().map_err(|e| AppError::Pool(e.to_string()))?; + conn.execute( + "INSERT INTO products (sku, name, description, category, unit_price, cost_price, quantity, reorder_level) + VALUES (?1, ?2, ?3, ?4, ?5, ?6, ?7, ?8)", + rusqlite::params![ + input.sku, input.name, input.description, input.category, + input.unit_price, input.cost_price, input.quantity, input.reorder_level + ], + )?; + Ok(conn.last_insert_rowid()) +} + +#[tauri::command] +pub fn erp_update_stock(db: State, product_id: i64, delta: i64) -> AppResult<()> { + let conn = db.0.lock().map_err(|e| AppError::Pool(e.to_string()))?; + let changed = conn.execute( + "UPDATE products SET quantity = quantity + ?1 WHERE id = ?2", + rusqlite::params![delta, product_id], + )?; + if changed == 0 { + return Err(AppError::NotFound(format!("product {product_id}"))); + } + Ok(()) +} + +#[tauri::command] +pub fn erp_delete_product(db: State, product_id: i64) -> AppResult<()> { + let conn = db.0.lock().map_err(|e| AppError::Pool(e.to_string()))?; + conn.execute("DELETE FROM products WHERE id = ?1", [product_id])?; + Ok(()) +} + +#[tauri::command] +pub fn erp_list_orders(db: State) -> AppResult> { + let conn = db.0.lock().map_err(|e| AppError::Pool(e.to_string()))?; + let mut stmt = conn.prepare( + "SELECT id, order_number, customer_name, status, total, created_at FROM orders ORDER BY id DESC", + )?; + let rows = stmt + .query_map([], |r| { + Ok(Order { + id: r.get(0)?, + order_number: r.get(1)?, + customer_name: r.get(2)?, + status: r.get(3)?, + total: r.get(4)?, + created_at: r.get(5)?, + }) + })? + .collect::, _>>()?; + Ok(rows) +} + +#[tauri::command] +pub fn erp_create_order( + db: State, + order_number: String, + customer_name: String, + total: f64, +) -> AppResult { + let conn = db.0.lock().map_err(|e| AppError::Pool(e.to_string()))?; + conn.execute( + "INSERT INTO orders (order_number, customer_name, status, total) VALUES (?1, ?2, 'draft', ?3)", + rusqlite::params![order_number, customer_name, total], + )?; + Ok(conn.last_insert_rowid()) +} + +#[tauri::command] +pub fn erp_set_order_status(db: State, order_id: i64, status: String) -> AppResult<()> { + let conn = db.0.lock().map_err(|e| AppError::Pool(e.to_string()))?; + conn.execute( + "UPDATE orders SET status = ?1 WHERE id = ?2", + rusqlite::params![status, order_id], + )?; + Ok(()) +} + +#[tauri::command] +pub fn erp_list_invoices(db: State) -> AppResult> { + let conn = db.0.lock().map_err(|e| AppError::Pool(e.to_string()))?; + let mut stmt = conn.prepare( + "SELECT id, invoice_number, customer_name, amount, status, due_date, created_at + FROM invoices ORDER BY id DESC", + )?; + let rows = stmt + .query_map([], |r| { + Ok(Invoice { + id: r.get(0)?, + invoice_number: r.get(1)?, + customer_name: r.get(2)?, + amount: r.get(3)?, + status: r.get(4)?, + due_date: r.get(5)?, + created_at: r.get(6)?, + }) + })? + .collect::, _>>()?; + Ok(rows) +} + +#[tauri::command] +pub fn erp_create_invoice( + db: State, + invoice_number: String, + customer_name: String, + amount: f64, + due_date: Option, +) -> AppResult { + let conn = db.0.lock().map_err(|e| AppError::Pool(e.to_string()))?; + conn.execute( + "INSERT INTO invoices (invoice_number, customer_name, amount, status, due_date) + VALUES (?1, ?2, ?3, 'unpaid', ?4)", + rusqlite::params![invoice_number, customer_name, amount, due_date], + )?; + Ok(conn.last_insert_rowid()) +} + +#[tauri::command] +pub fn erp_mark_invoice_paid(db: State, invoice_id: i64) -> AppResult<()> { + let conn = db.0.lock().map_err(|e| AppError::Pool(e.to_string()))?; + conn.execute( + "UPDATE invoices SET status = 'paid' WHERE id = ?1", + [invoice_id], + )?; + Ok(()) +} + +#[tauri::command] +pub fn erp_summary(db: State) -> AppResult { + let conn = db.0.lock().map_err(|e| AppError::Pool(e.to_string()))?; + let total_products: i64 = conn.query_row("SELECT COUNT(*) FROM products", [], |r| r.get(0))?; + let low_stock: i64 = conn.query_row( + "SELECT COUNT(*) FROM products WHERE quantity <= reorder_level", + [], + |r| r.get(0), + )?; + let inventory_value: f64 = conn.query_row( + "SELECT COALESCE(SUM(quantity * cost_price), 0) FROM products", + [], + |r| r.get(0), + )?; + let open_orders: i64 = conn.query_row( + "SELECT COUNT(*) FROM orders WHERE status IN ('draft','confirmed')", + [], + |r| r.get(0), + )?; + let unpaid_invoices: f64 = conn.query_row( + "SELECT COALESCE(SUM(amount), 0) FROM invoices WHERE status = 'unpaid'", + [], + |r| r.get(0), + )?; + Ok(ErpSummary { + total_products, + low_stock, + inventory_value, + open_orders, + unpaid_invoices, + }) +} diff --git a/filey-erp/src-tauri/src/modules/finance.rs b/filey-erp/src-tauri/src/modules/finance.rs new file mode 100644 index 0000000..78f1dd3 --- /dev/null +++ b/filey-erp/src-tauri/src/modules/finance.rs @@ -0,0 +1,216 @@ +use crate::db::Db; +use crate::error::{AppError, AppResult}; +use serde::{Deserialize, Serialize}; +use tauri::State; + +#[derive(Serialize)] +pub struct Account { + pub id: i64, + pub code: String, + pub name: String, + pub account_type: String, + pub balance: f64, +} + +#[derive(Deserialize)] +pub struct AccountInput { + pub code: String, + pub name: String, + pub account_type: String, + pub balance: f64, +} + +#[derive(Serialize)] +pub struct Expense { + pub id: i64, + pub category: String, + pub description: Option, + pub amount: f64, + pub expense_date: String, + pub account_id: Option, +} + +#[derive(Serialize)] +pub struct Txn { + pub id: i64, + pub account_id: i64, + pub account_name: String, + pub txn_type: String, + pub amount: f64, + pub description: Option, + pub txn_date: String, +} + +#[derive(Serialize)] +pub struct FinanceReport { + pub total_assets: f64, + pub total_liabilities: f64, + pub total_equity: f64, + pub total_revenue: f64, + pub total_expenses: f64, + pub net_profit: f64, + pub cash_position: f64, +} + +#[tauri::command] +pub fn fin_list_accounts(db: State) -> AppResult> { + let conn = db.0.lock().map_err(|e| AppError::Pool(e.to_string()))?; + let mut stmt = conn + .prepare("SELECT id, code, name, account_type, balance FROM accounts ORDER BY code")?; + let rows = stmt + .query_map([], |r| { + Ok(Account { + id: r.get(0)?, + code: r.get(1)?, + name: r.get(2)?, + account_type: r.get(3)?, + balance: r.get(4)?, + }) + })? + .collect::, _>>()?; + Ok(rows) +} + +#[tauri::command] +pub fn fin_create_account(db: State, input: AccountInput) -> AppResult { + if input.code.trim().is_empty() || input.name.trim().is_empty() { + return Err(AppError::Validation("Code and name are required".into())); + } + let conn = db.0.lock().map_err(|e| AppError::Pool(e.to_string()))?; + conn.execute( + "INSERT INTO accounts (code, name, account_type, balance) VALUES (?1, ?2, ?3, ?4)", + rusqlite::params![input.code, input.name, input.account_type, input.balance], + )?; + Ok(conn.last_insert_rowid()) +} + +#[tauri::command] +pub fn fin_list_expenses(db: State) -> AppResult> { + let conn = db.0.lock().map_err(|e| AppError::Pool(e.to_string()))?; + let mut stmt = conn.prepare( + "SELECT id, category, description, amount, expense_date, account_id + FROM expenses ORDER BY expense_date DESC", + )?; + let rows = stmt + .query_map([], |r| { + Ok(Expense { + id: r.get(0)?, + category: r.get(1)?, + description: r.get(2)?, + amount: r.get(3)?, + expense_date: r.get(4)?, + account_id: r.get(5)?, + }) + })? + .collect::, _>>()?; + Ok(rows) +} + +#[tauri::command] +pub fn fin_create_expense( + db: State, + category: String, + description: Option, + amount: f64, + expense_date: String, + account_id: Option, +) -> AppResult { + if amount <= 0.0 { + return Err(AppError::Validation("Amount must be positive".into())); + } + let conn = db.0.lock().map_err(|e| AppError::Pool(e.to_string()))?; + conn.execute( + "INSERT INTO expenses (category, description, amount, expense_date, account_id) + VALUES (?1, ?2, ?3, ?4, ?5)", + rusqlite::params![category, description, amount, expense_date, account_id], + )?; + Ok(conn.last_insert_rowid()) +} + +#[tauri::command] +pub fn fin_delete_expense(db: State, expense_id: i64) -> AppResult<()> { + let conn = db.0.lock().map_err(|e| AppError::Pool(e.to_string()))?; + conn.execute("DELETE FROM expenses WHERE id = ?1", [expense_id])?; + Ok(()) +} + +#[tauri::command] +pub fn fin_list_transactions(db: State) -> AppResult> { + let conn = db.0.lock().map_err(|e| AppError::Pool(e.to_string()))?; + let mut stmt = conn.prepare( + "SELECT t.id, t.account_id, a.name, t.txn_type, t.amount, t.description, t.txn_date + FROM transactions t JOIN accounts a ON a.id = t.account_id + ORDER BY t.txn_date DESC", + )?; + let rows = stmt + .query_map([], |r| { + Ok(Txn { + id: r.get(0)?, + account_id: r.get(1)?, + account_name: r.get(2)?, + txn_type: r.get(3)?, + amount: r.get(4)?, + description: r.get(5)?, + txn_date: r.get(6)?, + }) + })? + .collect::, _>>()?; + Ok(rows) +} + +#[tauri::command] +pub fn fin_post_transaction( + db: State, + account_id: i64, + txn_type: String, + amount: f64, + description: Option, +) -> AppResult { + let conn = db.0.lock().map_err(|e| AppError::Pool(e.to_string()))?; + conn.execute( + "INSERT INTO transactions (account_id, txn_type, amount, description) + VALUES (?1, ?2, ?3, ?4)", + rusqlite::params![account_id, txn_type, amount, description], + )?; + let signed = if txn_type == "debit" { -amount } else { amount }; + conn.execute( + "UPDATE accounts SET balance = balance + ?1 WHERE id = ?2", + rusqlite::params![signed, account_id], + )?; + Ok(conn.last_insert_rowid()) +} + +#[tauri::command] +pub fn fin_report(db: State) -> AppResult { + let conn = db.0.lock().map_err(|e| AppError::Pool(e.to_string()))?; + let sum_type = |t: &str| -> rusqlite::Result { + conn.query_row( + "SELECT COALESCE(SUM(balance), 0) FROM accounts WHERE account_type = ?1", + [t], + |r| r.get(0), + ) + }; + let total_assets = sum_type("asset")?; + let total_liabilities = sum_type("liability")?; + let total_equity = sum_type("equity")?; + let total_revenue = sum_type("revenue")?; + let total_expenses: f64 = conn.query_row( + "SELECT COALESCE(SUM(amount), 0) FROM expenses", + [], + |r| r.get(0), + )?; + let cash_position: f64 = conn.query_row( + "SELECT COALESCE(SUM(balance), 0) FROM accounts WHERE code IN ('1000','1100')", + [], + |r| r.get(0), + )?; + Ok(FinanceReport { + total_assets, + total_liabilities, + total_equity, + total_revenue, + total_expenses, + net_profit: total_revenue - total_expenses, + cash_position, + }) +} diff --git a/filey-erp/src-tauri/src/modules/hr.rs b/filey-erp/src-tauri/src/modules/hr.rs new file mode 100644 index 0000000..7ecf849 --- /dev/null +++ b/filey-erp/src-tauri/src/modules/hr.rs @@ -0,0 +1,250 @@ +use crate::db::Db; +use crate::error::{AppError, AppResult}; +use serde::{Deserialize, Serialize}; +use tauri::State; + +#[derive(Serialize)] +pub struct Employee { + pub id: i64, + pub employee_code: String, + pub name: String, + pub email: Option, + pub phone: Option, + pub department: Option, + pub position: Option, + pub salary: f64, + pub hire_date: Option, + pub status: String, +} + +#[derive(Deserialize)] +pub struct EmployeeInput { + pub employee_code: String, + pub name: String, + pub email: Option, + pub phone: Option, + pub department: Option, + pub position: Option, + pub salary: f64, + pub hire_date: Option, +} + +#[derive(Serialize)] +pub struct Attendance { + pub id: i64, + pub employee_id: i64, + pub employee_name: String, + pub date: String, + pub check_in: Option, + pub check_out: Option, + pub status: String, +} + +#[derive(Serialize)] +pub struct Payroll { + pub id: i64, + pub employee_id: i64, + pub employee_name: String, + pub period: String, + pub basic: f64, + pub allowances: f64, + pub deductions: f64, + pub net_pay: f64, + pub status: String, +} + +#[derive(Serialize)] +pub struct HrSummary { + pub headcount: i64, + pub present_today: i64, + pub on_leave: i64, + pub monthly_payroll: f64, +} + +#[tauri::command] +pub fn hr_list_employees(db: State) -> AppResult> { + let conn = db.0.lock().map_err(|e| AppError::Pool(e.to_string()))?; + let mut stmt = conn.prepare( + "SELECT id, employee_code, name, email, phone, department, position, salary, hire_date, status + FROM employees ORDER BY name", + )?; + let rows = stmt + .query_map([], |r| { + Ok(Employee { + id: r.get(0)?, + employee_code: r.get(1)?, + name: r.get(2)?, + email: r.get(3)?, + phone: r.get(4)?, + department: r.get(5)?, + position: r.get(6)?, + salary: r.get(7)?, + hire_date: r.get(8)?, + status: r.get(9)?, + }) + })? + .collect::, _>>()?; + Ok(rows) +} + +#[tauri::command] +pub fn hr_create_employee(db: State, input: EmployeeInput) -> AppResult { + if input.employee_code.trim().is_empty() || input.name.trim().is_empty() { + return Err(AppError::Validation("Code and name are required".into())); + } + let conn = db.0.lock().map_err(|e| AppError::Pool(e.to_string()))?; + conn.execute( + "INSERT INTO employees (employee_code, name, email, phone, department, position, salary, hire_date, status) + VALUES (?1, ?2, ?3, ?4, ?5, ?6, ?7, ?8, 'active')", + rusqlite::params![ + input.employee_code, input.name, input.email, input.phone, + input.department, input.position, input.salary, input.hire_date + ], + )?; + Ok(conn.last_insert_rowid()) +} + +#[tauri::command] +pub fn hr_set_employee_status(db: State, employee_id: i64, status: String) -> AppResult<()> { + let conn = db.0.lock().map_err(|e| AppError::Pool(e.to_string()))?; + conn.execute( + "UPDATE employees SET status = ?1 WHERE id = ?2", + rusqlite::params![status, employee_id], + )?; + Ok(()) +} + +#[tauri::command] +pub fn hr_delete_employee(db: State, employee_id: i64) -> AppResult<()> { + let conn = db.0.lock().map_err(|e| AppError::Pool(e.to_string()))?; + conn.execute("DELETE FROM employees WHERE id = ?1", [employee_id])?; + Ok(()) +} + +#[tauri::command] +pub fn hr_list_attendance(db: State) -> AppResult> { + let conn = db.0.lock().map_err(|e| AppError::Pool(e.to_string()))?; + let mut stmt = conn.prepare( + "SELECT a.id, a.employee_id, e.name, a.date, a.check_in, a.check_out, a.status + FROM attendance a JOIN employees e ON e.id = a.employee_id + ORDER BY a.date DESC, e.name", + )?; + let rows = stmt + .query_map([], |r| { + Ok(Attendance { + id: r.get(0)?, + employee_id: r.get(1)?, + employee_name: r.get(2)?, + date: r.get(3)?, + check_in: r.get(4)?, + check_out: r.get(5)?, + status: r.get(6)?, + }) + })? + .collect::, _>>()?; + Ok(rows) +} + +#[tauri::command] +pub fn hr_mark_attendance( + db: State, + employee_id: i64, + date: String, + status: String, + check_in: Option, + check_out: Option, +) -> AppResult { + let conn = db.0.lock().map_err(|e| AppError::Pool(e.to_string()))?; + conn.execute( + "INSERT INTO attendance (employee_id, date, check_in, check_out, status) + VALUES (?1, ?2, ?3, ?4, ?5)", + rusqlite::params![employee_id, date, check_in, check_out, status], + )?; + Ok(conn.last_insert_rowid()) +} + +#[tauri::command] +pub fn hr_list_payroll(db: State) -> AppResult> { + let conn = db.0.lock().map_err(|e| AppError::Pool(e.to_string()))?; + let mut stmt = conn.prepare( + "SELECT p.id, p.employee_id, e.name, p.period, p.basic, p.allowances, p.deductions, p.net_pay, p.status + FROM payroll p JOIN employees e ON e.id = p.employee_id + ORDER BY p.period DESC, e.name", + )?; + let rows = stmt + .query_map([], |r| { + Ok(Payroll { + id: r.get(0)?, + employee_id: r.get(1)?, + employee_name: r.get(2)?, + period: r.get(3)?, + basic: r.get(4)?, + allowances: r.get(5)?, + deductions: r.get(6)?, + net_pay: r.get(7)?, + status: r.get(8)?, + }) + })? + .collect::, _>>()?; + Ok(rows) +} + +#[tauri::command] +pub fn hr_run_payroll( + db: State, + employee_id: i64, + period: String, + basic: f64, + allowances: f64, + deductions: f64, +) -> AppResult { + let net = basic + allowances - deductions; + let conn = db.0.lock().map_err(|e| AppError::Pool(e.to_string()))?; + conn.execute( + "INSERT INTO payroll (employee_id, period, basic, allowances, deductions, net_pay, status) + VALUES (?1, ?2, ?3, ?4, ?5, ?6, 'pending')", + rusqlite::params![employee_id, period, basic, allowances, deductions, net], + )?; + Ok(conn.last_insert_rowid()) +} + +#[tauri::command] +pub fn hr_mark_payroll_paid(db: State, payroll_id: i64) -> AppResult<()> { + let conn = db.0.lock().map_err(|e| AppError::Pool(e.to_string()))?; + conn.execute( + "UPDATE payroll SET status = 'paid' WHERE id = ?1", + [payroll_id], + )?; + Ok(()) +} + +#[tauri::command] +pub fn hr_summary(db: State) -> AppResult { + let conn = db.0.lock().map_err(|e| AppError::Pool(e.to_string()))?; + let headcount: i64 = conn.query_row( + "SELECT COUNT(*) FROM employees WHERE status = 'active'", + [], + |r| r.get(0), + )?; + let present_today: i64 = conn.query_row( + "SELECT COUNT(*) FROM attendance WHERE date = date('now') AND status = 'present'", + [], + |r| r.get(0), + )?; + let on_leave: i64 = conn.query_row( + "SELECT COUNT(*) FROM attendance WHERE date = date('now') AND status = 'leave'", + [], + |r| r.get(0), + )?; + let monthly_payroll: f64 = conn.query_row( + "SELECT COALESCE(SUM(salary), 0) FROM employees WHERE status = 'active'", + [], + |r| r.get(0), + )?; + Ok(HrSummary { + headcount, + present_today, + on_leave, + monthly_payroll, + }) +} diff --git a/filey-erp/src-tauri/src/modules/mod.rs b/filey-erp/src-tauri/src/modules/mod.rs new file mode 100644 index 0000000..bf7620c --- /dev/null +++ b/filey-erp/src-tauri/src/modules/mod.rs @@ -0,0 +1,8 @@ +pub mod billing; +pub mod crm; +pub mod email; +pub mod erp; +pub mod finance; +pub mod hr; +pub mod sync; +pub mod tools; diff --git a/filey-erp/src-tauri/src/modules/sync.rs b/filey-erp/src-tauri/src/modules/sync.rs new file mode 100644 index 0000000..d143cfd --- /dev/null +++ b/filey-erp/src-tauri/src/modules/sync.rs @@ -0,0 +1,74 @@ +use crate::db::Db; +use crate::error::{AppError, AppResult}; +use serde::Serialize; +use tauri::State; + +#[derive(Serialize)] +pub struct OutboxEntry { + pub id: i64, + pub op: String, + pub created_at: String, +} + +#[tauri::command] +pub fn cache_get(db: State, key: String) -> AppResult> { + let conn = db.0.lock().map_err(|e| AppError::Pool(e.to_string()))?; + let val = conn + .query_row( + "SELECT value FROM kv_cache WHERE key = ?1", + [key], + |r| r.get::<_, String>(0), + ) + .ok(); + Ok(val) +} + +#[tauri::command] +pub fn cache_set(db: State, key: String, value: String) -> AppResult<()> { + let conn = db.0.lock().map_err(|e| AppError::Pool(e.to_string()))?; + conn.execute( + "INSERT INTO kv_cache (key, value, updated_at) + VALUES (?1, ?2, datetime('now')) + ON CONFLICT(key) DO UPDATE SET value = excluded.value, updated_at = datetime('now')", + rusqlite::params![key, value], + )?; + Ok(()) +} + +#[tauri::command] +pub fn outbox_add(db: State, op: String) -> AppResult { + let conn = db.0.lock().map_err(|e| AppError::Pool(e.to_string()))?; + conn.execute("INSERT INTO outbox (op) VALUES (?1)", [op])?; + Ok(conn.last_insert_rowid()) +} + +#[tauri::command] +pub fn outbox_list(db: State) -> AppResult> { + let conn = db.0.lock().map_err(|e| AppError::Pool(e.to_string()))?; + let mut stmt = + conn.prepare("SELECT id, op, created_at FROM outbox ORDER BY id ASC")?; + let rows = stmt + .query_map([], |r| { + Ok(OutboxEntry { + id: r.get(0)?, + op: r.get(1)?, + created_at: r.get(2)?, + }) + })? + .collect::, _>>()?; + Ok(rows) +} + +#[tauri::command] +pub fn outbox_remove(db: State, entry_id: i64) -> AppResult<()> { + let conn = db.0.lock().map_err(|e| AppError::Pool(e.to_string()))?; + conn.execute("DELETE FROM outbox WHERE id = ?1", [entry_id])?; + Ok(()) +} + +#[tauri::command] +pub fn outbox_clear(db: State) -> AppResult<()> { + let conn = db.0.lock().map_err(|e| AppError::Pool(e.to_string()))?; + conn.execute("DELETE FROM outbox", [])?; + Ok(()) +} diff --git a/filey-erp/src-tauri/src/modules/tools.rs b/filey-erp/src-tauri/src/modules/tools.rs new file mode 100644 index 0000000..5d55feb --- /dev/null +++ b/filey-erp/src-tauri/src/modules/tools.rs @@ -0,0 +1,148 @@ +use crate::db::Db; +use crate::error::{AppError, AppResult}; +use serde::Serialize; +use tauri::State; + +#[derive(Serialize)] +pub struct User { + pub id: i64, + pub username: String, + pub full_name: String, + pub role: String, + pub active: bool, + pub created_at: String, +} + +#[derive(Serialize)] +pub struct Setting { + pub key: String, + pub value: String, +} + +#[derive(Serialize)] +pub struct AuditEntry { + pub id: i64, + pub actor: String, + pub action: String, + pub entity: String, + pub details: Option, + pub created_at: String, +} + +#[tauri::command] +pub fn tools_list_users(db: State) -> AppResult> { + let conn = db.0.lock().map_err(|e| AppError::Pool(e.to_string()))?; + let mut stmt = conn.prepare( + "SELECT id, username, full_name, role, active, created_at FROM users ORDER BY username", + )?; + let rows = stmt + .query_map([], |r| { + Ok(User { + id: r.get(0)?, + username: r.get(1)?, + full_name: r.get(2)?, + role: r.get(3)?, + active: r.get::<_, i64>(4)? != 0, + created_at: r.get(5)?, + }) + })? + .collect::, _>>()?; + Ok(rows) +} + +#[tauri::command] +pub fn tools_create_user( + db: State, + username: String, + full_name: String, + role: String, +) -> AppResult { + if username.trim().is_empty() { + return Err(AppError::Validation("Username is required".into())); + } + let conn = db.0.lock().map_err(|e| AppError::Pool(e.to_string()))?; + conn.execute( + "INSERT INTO users (username, full_name, role) VALUES (?1, ?2, ?3)", + rusqlite::params![username, full_name, role], + )?; + let id = conn.last_insert_rowid(); + conn.execute( + "INSERT INTO audit_log (actor, action, entity, details) VALUES ('admin','create','user',?1)", + [format!("Created user {username}")], + )?; + Ok(id) +} + +#[tauri::command] +pub fn tools_toggle_user(db: State, user_id: i64) -> AppResult<()> { + let conn = db.0.lock().map_err(|e| AppError::Pool(e.to_string()))?; + conn.execute( + "UPDATE users SET active = 1 - active WHERE id = ?1", + [user_id], + )?; + Ok(()) +} + +#[tauri::command] +pub fn tools_list_settings(db: State) -> AppResult> { + let conn = db.0.lock().map_err(|e| AppError::Pool(e.to_string()))?; + let mut stmt = conn.prepare("SELECT key, value FROM settings ORDER BY key")?; + let rows = stmt + .query_map([], |r| { + Ok(Setting { + key: r.get(0)?, + value: r.get(1)?, + }) + })? + .collect::, _>>()?; + Ok(rows) +} + +#[tauri::command] +pub fn tools_set_setting(db: State, key: String, value: String) -> AppResult<()> { + let conn = db.0.lock().map_err(|e| AppError::Pool(e.to_string()))?; + conn.execute( + "INSERT INTO settings (key, value) VALUES (?1, ?2) + ON CONFLICT(key) DO UPDATE SET value = excluded.value", + rusqlite::params![key, value], + )?; + Ok(()) +} + +#[tauri::command] +pub fn tools_audit_log(db: State) -> AppResult> { + let conn = db.0.lock().map_err(|e| AppError::Pool(e.to_string()))?; + let mut stmt = conn.prepare( + "SELECT id, actor, action, entity, details, created_at + FROM audit_log ORDER BY id DESC LIMIT 200", + )?; + let rows = stmt + .query_map([], |r| { + Ok(AuditEntry { + id: r.get(0)?, + actor: r.get(1)?, + action: r.get(2)?, + entity: r.get(3)?, + details: r.get(4)?, + created_at: r.get(5)?, + }) + })? + .collect::, _>>()?; + Ok(rows) +} + +#[tauri::command] +pub fn tools_log_action( + db: State, + actor: String, + action: String, + entity: String, + details: Option, +) -> AppResult<()> { + let conn = db.0.lock().map_err(|e| AppError::Pool(e.to_string()))?; + conn.execute( + "INSERT INTO audit_log (actor, action, entity, details) VALUES (?1, ?2, ?3, ?4)", + rusqlite::params![actor, action, entity, details], + )?; + Ok(()) +} diff --git a/filey-erp/src-tauri/tauri.conf.json b/filey-erp/src-tauri/tauri.conf.json new file mode 100644 index 0000000..e9eac40 --- /dev/null +++ b/filey-erp/src-tauri/tauri.conf.json @@ -0,0 +1,43 @@ +{ + "$schema": "https://schema.tauri.app/config/2", + "productName": "Filey ERP", + "version": "0.1.0", + "identifier": "com.iamvi.filey-erp", + "build": { + "beforeDevCommand": "npm run dev", + "devUrl": "http://localhost:1420", + "beforeBuildCommand": "npm run build", + "frontendDist": "../dist" + }, + "app": { + "windows": [ + { + "title": "Filey ERP", + "width": 1440, + "height": 900, + "minWidth": 1100, + "minHeight": 700, + "center": true + } + ], + "security": { + "csp": "default-src 'self'; img-src 'self' data: blob:; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; font-src 'self' data: https://fonts.gstatic.com; script-src 'self' 'wasm-unsafe-eval'; worker-src 'self' blob:; connect-src 'self' ipc: http://ipc.localhost https://*.supabase.co https://fonts.googleapis.com https://fonts.gstatic.com" + } + }, + "bundle": { + "active": true, + "targets": "all", + "publisher": "Filey", + "category": "Business", + "shortDescription": "Filey ERP — inventory, invoicing, quotations & CRM", + "longDescription": "Filey ERP is a desktop ERP for SMBs: inventory, orders, FTA-compliant invoicing & quotations, CRM pipeline, purchasing, reports and a local PDF toolkit. Offline-first, secured per user via Supabase.", + "copyright": "© Filey", + "icon": [ + "icons/32x32.png", + "icons/128x128.png", + "icons/128x128@2x.png", + "icons/icon.icns", + "icons/icon.ico" + ] + } +} diff --git a/filey-erp/src/App.css b/filey-erp/src/App.css new file mode 100644 index 0000000..988aeab --- /dev/null +++ b/filey-erp/src/App.css @@ -0,0 +1,116 @@ +.logo.vite:hover { + filter: drop-shadow(0 0 2em #747bff); +} + +.logo.react:hover { + filter: drop-shadow(0 0 2em #61dafb); +} +:root { + font-family: Inter, Avenir, Helvetica, Arial, sans-serif; + font-size: 16px; + line-height: 24px; + font-weight: 400; + + color: #0f0f0f; + background-color: #f6f6f6; + + font-synthesis: none; + text-rendering: optimizeLegibility; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; + -webkit-text-size-adjust: 100%; +} + +.container { + margin: 0; + padding-top: 10vh; + display: flex; + flex-direction: column; + justify-content: center; + text-align: center; +} + +.logo { + height: 6em; + padding: 1.5em; + will-change: filter; + transition: 0.75s; +} + +.logo.tauri:hover { + filter: drop-shadow(0 0 2em #24c8db); +} + +.row { + display: flex; + justify-content: center; +} + +a { + font-weight: 500; + color: #646cff; + text-decoration: inherit; +} + +a:hover { + color: #535bf2; +} + +h1 { + text-align: center; +} + +input, +button { + border-radius: 8px; + border: 1px solid transparent; + padding: 0.6em 1.2em; + font-size: 1em; + font-weight: 500; + font-family: inherit; + color: #0f0f0f; + background-color: #ffffff; + transition: border-color 0.25s; + box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2); +} + +button { + cursor: pointer; +} + +button:hover { + border-color: #396cd8; +} +button:active { + border-color: #396cd8; + background-color: #e8e8e8; +} + +input, +button { + outline: none; +} + +#greet-input { + margin-right: 5px; +} + +@media (prefers-color-scheme: dark) { + :root { + color: #f6f6f6; + background-color: #2f2f2f; + } + + a:hover { + color: #24c8db; + } + + input, + button { + color: #ffffff; + background-color: #0f0f0f98; + } + button:active { + background-color: #0f0f0f69; + } +} diff --git a/filey-erp/src/App.tsx b/filey-erp/src/App.tsx new file mode 100644 index 0000000..fb01335 --- /dev/null +++ b/filey-erp/src/App.tsx @@ -0,0 +1,71 @@ +import { HashRouter, Routes, Route, Navigate } from "react-router-dom"; +import { AuthProvider, useAuth } from "./lib/auth"; +import { ModulesProvider, useModules } from "./lib/modules"; +import Layout from "./components/Layout"; +import Login from "./pages/Login"; +import ProfileSetup from "./pages/ProfileSetup"; +import SetupNotice from "./pages/SetupNotice"; + +function Splash() { + return ( +
+

Loading…

+
+ ); +} + +function ModuleDisabled({ name }: { name: string }) { + return ( +
+

{name} is disabled

+

+ Enable this module from Settings → Apps to use it. +

+
+ ); +} + +function AppRoutes() { + const { modules, isEnabled } = useModules(); + return ( + + } /> + {modules.map((m) => ( + + } + /> + ))} + } /> + + ); +} + +function Gate() { + const { loading, configured, user, needsProfile } = useAuth(); + if (loading) return ; + if (!configured) return ; + if (!user) return ; + if (needsProfile) return ; + + return ( + + + + + + + + ); +} + +export default function App() { + return ( + + + + ); +} diff --git a/filey-erp/src/assets/react.svg b/filey-erp/src/assets/react.svg new file mode 100644 index 0000000..6c87de9 --- /dev/null +++ b/filey-erp/src/assets/react.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/filey-erp/src/components/ErrorBoundary.tsx b/filey-erp/src/components/ErrorBoundary.tsx new file mode 100644 index 0000000..bc89c94 --- /dev/null +++ b/filey-erp/src/components/ErrorBoundary.tsx @@ -0,0 +1,45 @@ +import { Component, type ErrorInfo, type ReactNode } from "react"; + +interface State { + error: Error | null; +} + +/** Stops a render error from white-screening the whole desktop app. */ +export default class ErrorBoundary extends Component< + { children: ReactNode }, + State +> { + state: State = { error: null }; + + static getDerivedStateFromError(error: Error): State { + return { error }; + } + + componentDidCatch(error: Error, info: ErrorInfo) { + console.error("Unhandled UI error:", error, info.componentStack); + } + + render() { + if (!this.state.error) return this.props.children; + return ( +
+
+

Something went wrong

+

+ The app hit an unexpected error. Your data is safe — reload to + continue. +

+
+            {this.state.error.message}
+          
+ +
+
+ ); + } +} diff --git a/filey-erp/src/components/FitPreview.tsx b/filey-erp/src/components/FitPreview.tsx new file mode 100644 index 0000000..811d15e --- /dev/null +++ b/filey-erp/src/components/FitPreview.tsx @@ -0,0 +1,78 @@ +import { useEffect, useRef, useState, type ReactNode } from "react"; + +/** + * Renders a fixed-width "paper" preview scaled to always fit the + * available column width (zoom = 100 ⇒ fit-to-width; the zoom control + * multiplies on top). Reserves correctly-sized layout space so the + * scaled sheet neither overflows horizontally nor leaves a gap. + */ +export default function FitPreview({ + baseWidth, + zoom, + children, +}: { + baseWidth: number; + zoom: number; + children: ReactNode; +}) { + const boxRef = useRef(null); + const sheetRef = useRef(null); + const [avail, setAvail] = useState(baseWidth); + const [contentH, setContentH] = useState(1040); + + useEffect(() => { + const el = boxRef.current; + if (!el) return; + const measure = () => setAvail(Math.max(0, el.clientWidth - 32)); + const ro = new ResizeObserver(measure); + ro.observe(el); + measure(); + return () => ro.disconnect(); + }, []); + + useEffect(() => { + const el = sheetRef.current; + if (!el) return; + const measure = () => setContentH(el.scrollHeight); + const ro = new ResizeObserver(measure); + ro.observe(el); + measure(); + return () => ro.disconnect(); + }); + + const fit = avail > 0 ? avail / baseWidth : 1; + const scale = Math.max(0.2, fit * (zoom / 100)); + + return ( +
+
+
+ {children} +
+
+
+ ); +} diff --git a/filey-erp/src/components/Layout.tsx b/filey-erp/src/components/Layout.tsx new file mode 100644 index 0000000..be3e210 --- /dev/null +++ b/filey-erp/src/components/Layout.tsx @@ -0,0 +1,129 @@ +import { ReactNode } from "react"; +import { NavLink, Link, useLocation } from "react-router-dom"; +import { Boxes, Bell, Search, ChevronDown, LogOut } from "lucide-react"; +import { cn } from "../lib/format"; +import { useModules } from "../lib/modules"; +import { MODULES } from "../modules/registry"; +import { useAuth } from "../lib/auth"; + +export default function Layout({ children }: { children: ReactNode }) { + const loc = useLocation(); + const { profile, signOut } = useAuth(); + const { enabledModules } = useModules(); + const navModules = enabledModules(); + const name = profile?.name || "User"; + const initials = name + .split(" ") + .map((s) => s[0]) + .slice(0, 2) + .join("") + .toUpperCase(); + const current = + MODULES.find((m) => m.to === loc.pathname)?.label ?? "Overview"; + + return ( +
+ {/* ───────────── Sidebar ───────────── */} + + + {/* ───────────── Main ───────────── */} +
+
+
+ + + + ⌘K + +
+
+ +
+
+ {initials} +
+
+

{name}

+

+ {profile?.company ?? "Admin"} +

+
+ + +
+
+
+ +
+
+

+ Filey / {current} +

+ {children} +
+
+
+
+ ); +} diff --git a/filey-erp/src/components/PdfToolbox.tsx b/filey-erp/src/components/PdfToolbox.tsx new file mode 100644 index 0000000..a99b225 --- /dev/null +++ b/filey-erp/src/components/PdfToolbox.tsx @@ -0,0 +1,434 @@ +import { useEffect, useRef, useState } from "react"; +import { + Combine, + Scissors, + Trash2, + FileOutput, + RotateCw, + Image as ImageIcon, + FileImage, + Hash, + Stamp, + Minimize2, + Upload, + Download, + Loader2, + X, + CheckCircle2, +} from "lucide-react"; +import type { LucideIcon } from "lucide-react"; +import * as pdf from "../lib/pdfTools"; +import type { OutFile } from "../lib/pdfTools"; + +type Param = "ranges" | "chunk" | "rotate" | "text"; + +export interface Tool { + id: string; + name: string; + desc: string; + icon: LucideIcon; + cat: "Organize" | "Convert" | "Edit" | "Optimize"; + multi?: boolean; + accept: string; + params: Param[]; + run: (files: File[], p: Record) => Promise; +} + +export const PDF_TOOLS: Tool[] = [ + { + id: "merge", + name: "Merge PDF", + desc: "Combine multiple PDFs into one document", + icon: Combine, + cat: "Organize", + multi: true, + accept: "application/pdf", + params: [], + run: async (f) => [await pdf.mergePdfs(f)], + }, + { + id: "split", + name: "Split PDF", + desc: "Break a PDF into parts of N pages each", + icon: Scissors, + cat: "Organize", + accept: "application/pdf", + params: ["chunk"], + run: (f, p) => pdf.splitEvery(f[0], parseInt(p.chunk || "1", 10)), + }, + { + id: "extract", + name: "Extract Pages", + desc: "Pull selected pages into a new PDF", + icon: FileOutput, + cat: "Organize", + accept: "application/pdf", + params: ["ranges"], + run: async (f, p) => [await pdf.extractPages(f[0], p.ranges || "")], + }, + { + id: "delete", + name: "Delete Pages", + desc: "Remove pages by range, e.g. 2-4,7", + icon: Trash2, + cat: "Organize", + accept: "application/pdf", + params: ["ranges"], + run: async (f, p) => [await pdf.deletePages(f[0], p.ranges || "")], + }, + { + id: "rotate", + name: "Rotate PDF", + desc: "Rotate all or selected pages", + icon: RotateCw, + cat: "Edit", + accept: "application/pdf", + params: ["rotate", "ranges"], + run: async (f, p) => [ + await pdf.rotatePdf( + f[0], + parseInt(p.rotate || "90", 10), + p.ranges || undefined + ), + ], + }, + { + id: "img2pdf", + name: "Images → PDF", + desc: "Turn JPG / PNG images into a PDF", + icon: ImageIcon, + cat: "Convert", + multi: true, + accept: "image/png,image/jpeg", + params: [], + run: async (f) => [await pdf.imagesToPdf(f)], + }, + { + id: "pdf2img", + name: "PDF → Images", + desc: "Render every page to a PNG image", + icon: FileImage, + cat: "Convert", + accept: "application/pdf", + params: [], + run: (f) => pdf.pdfToImages(f[0]), + }, + { + id: "numbers", + name: "Page Numbers", + desc: "Stamp “1 / N” on every page", + icon: Hash, + cat: "Edit", + accept: "application/pdf", + params: [], + run: async (f) => [await pdf.addPageNumbers(f[0])], + }, + { + id: "watermark", + name: "Watermark", + desc: "Add a diagonal text watermark", + icon: Stamp, + cat: "Edit", + accept: "application/pdf", + params: ["text"], + run: async (f, p) => [await pdf.addWatermark(f[0], p.text || "DRAFT")], + }, + { + id: "compress", + name: "Compress PDF", + desc: "Re-stream & slim the file", + icon: Minimize2, + cat: "Optimize", + accept: "application/pdf", + params: [], + run: async (f) => [await pdf.compressPdf(f[0])], + }, +]; + +export const PDF_CATS = ["Organize", "Edit", "Convert", "Optimize"] as const; + +export function toolById(id: string) { + return PDF_TOOLS.find((t) => t.id === id); +} + +/** Standalone tool dialog — local processing, downloadable results. */ +export function ToolRunner({ + tool, + onClose, + onComplete, +}: { + tool: Tool; + onClose: () => void; + onComplete?: (toolId: string, files: string[]) => void; +}) { + const [files, setFiles] = useState([]); + const [params, setParams] = useState>( + tool.id === "rotate" + ? { rotate: "90" } + : tool.id === "split" + ? { chunk: "1" } + : {} + ); + const [busy, setBusy] = useState(false); + const [err, setErr] = useState(""); + const [results, setResults] = useState([]); + const fileRef = useRef(null); + + useEffect(() => { + const h = (e: KeyboardEvent) => e.key === "Escape" && onClose(); + window.addEventListener("keydown", h); + return () => window.removeEventListener("keydown", h); + }, [onClose]); + + const run = async () => { + if (!files.length) { + setErr("Add at least one file first."); + return; + } + setBusy(true); + setErr(""); + setResults([]); + try { + const out = await tool.run(files, params); + setResults(out); + onComplete?.( + tool.id, + files.map((f) => f.name) + ); + } catch (e) { + setErr(e instanceof Error ? e.message : String(e)); + } finally { + setBusy(false); + } + }; + + return ( +
+
e.stopPropagation()} + > +
+
+
+ +
+

{tool.name}

+
+ +
+ +

{tool.desc}

+ + + + {files.length > 0 && ( +
    + {files.map((f, i) => ( +
  • + {f.name} +
  • + ))} +
+ )} + +
+ {tool.params.includes("ranges") && ( +
+ + + setParams({ ...params, ranges: e.target.value }) + } + /> +
+ )} + {tool.params.includes("chunk") && ( +
+ + + setParams({ ...params, chunk: e.target.value }) + } + /> +
+ )} + {tool.params.includes("rotate") && ( +
+ + +
+ )} + {tool.params.includes("text") && ( +
+ + + setParams({ ...params, text: e.target.value }) + } + /> +
+ )} +
+ + {err && ( +

+ {err} +

+ )} + + {results.length > 0 && ( +
+

+ {results.length} file + {results.length > 1 ? "s" : ""} ready +

+
+ {results.map((r, i) => ( + + ))} +
+ {results.length > 1 && ( + + )} +
+ )} + +
+ + +
+
+
+ ); +} + +/** Categorized grid of every local PDF tool. */ +export default function PdfToolbox({ + filter, + onComplete, +}: { + filter?: string; + onComplete?: (toolId: string, files: string[]) => void; +}) { + const [active, setActive] = useState(null); + const cats = filter + ? PDF_CATS.filter((c) => c === filter) + : PDF_CATS; + + return ( +
+ {cats.map((cat) => ( +
+

+ {cat} +

+
+ {PDF_TOOLS.filter((t) => t.cat === cat).map((t) => { + const Icon = t.icon; + return ( + + ); + })} +
+
+ ))} + + {active && ( + setActive(null)} + onComplete={onComplete} + /> + )} +
+ ); +} diff --git a/filey-erp/src/components/__tests__/ErrorBoundary.test.tsx b/filey-erp/src/components/__tests__/ErrorBoundary.test.tsx new file mode 100644 index 0000000..f74089e --- /dev/null +++ b/filey-erp/src/components/__tests__/ErrorBoundary.test.tsx @@ -0,0 +1,33 @@ +import { describe, it, expect, vi } from "vitest"; +import { render, screen } from "@testing-library/react"; +import ErrorBoundary from "../ErrorBoundary"; + +function Boom(): never { + throw new Error("kaboom"); +} + +describe("ErrorBoundary", () => { + it("renders children when there is no error", () => { + render( + +

all good

+
+ ); + expect(screen.getByText("all good")).toBeInTheDocument(); + }); + + it("shows the fallback (not a white screen) when a child throws", () => { + const spy = vi.spyOn(console, "error").mockImplementation(() => {}); + render( + + + + ); + expect(screen.getByText(/something went wrong/i)).toBeInTheDocument(); + expect( + screen.getByRole("button", { name: /reload app/i }) + ).toBeInTheDocument(); + expect(screen.getByText("kaboom")).toBeInTheDocument(); + spy.mockRestore(); + }); +}); diff --git a/filey-erp/src/components/__tests__/ui.test.tsx b/filey-erp/src/components/__tests__/ui.test.tsx new file mode 100644 index 0000000..d626ef4 --- /dev/null +++ b/filey-erp/src/components/__tests__/ui.test.tsx @@ -0,0 +1,32 @@ +import { describe, it, expect } from "vitest"; +import { render, screen } from "@testing-library/react"; +import { statusTone, Badge, Delta } from "../ui"; + +describe("statusTone", () => { + it("maps positive states to success", () => { + expect(statusTone("paid")).toBe("success"); + expect(statusTone("Active")).toBe("success"); + expect(statusTone("in stock")).toBe("success"); + }); + it("maps warning / danger states", () => { + expect(statusTone("pending")).toBe("warn"); + expect(statusTone("low stock")).toBe("warn"); + expect(statusTone("overdue")).toBe("danger"); + expect(statusTone("out of stock")).toBe("danger"); + }); + it("falls back to info for unknown", () => { + expect(statusTone("whatever")).toBe("info"); + }); +}); + +describe("Badge & Delta", () => { + it("renders badge text", () => { + render(Active); + expect(screen.getByText("Active")).toBeInTheDocument(); + }); + it("Delta shows the percentage and suffix", () => { + render(); + expect(screen.getByText(/12\.5/)).toBeInTheDocument(); + expect(screen.getByText(/vs last month/i)).toBeInTheDocument(); + }); +}); diff --git a/filey-erp/src/components/ui.tsx b/filey-erp/src/components/ui.tsx new file mode 100644 index 0000000..646efd3 --- /dev/null +++ b/filey-erp/src/components/ui.tsx @@ -0,0 +1,408 @@ +import { ReactNode, useEffect } from "react"; +import { + X, + ArrowUpRight, + ArrowDownRight, + SlidersHorizontal, +} from "lucide-react"; +import { cn } from "../lib/format"; + +export function PageHeader({ + title, + subtitle, + action, +}: { + title: string; + subtitle?: string; + action?: ReactNode; +}) { + return ( +
+
+

{title}

+ {subtitle && ( +

{subtitle}

+ )} +
+ {action} +
+ ); +} + +/** Generic white card. Use `tone` for accent / dark variants. */ +export function Card({ + children, + className, + tone = "default", + hover, +}: { + children: ReactNode; + className?: string; + tone?: "default" | "accent" | "dark"; + hover?: boolean; +}) { + const base = + tone === "accent" + ? "card-accent" + : tone === "dark" + ? "card-dark" + : "card"; + return ( +
{children}
+ ); +} + +export function Delta({ value, suffix = "vs last month" }: { value: number; suffix?: string }) { + const up = value >= 0; + return ( + + {up ? : } + {Math.abs(value)}% + {suffix} + + ); +} + +/** Glanceable KPI card — icon chip, metric, delta. */ +export function MetricCard({ + label, + value, + delta, + icon, + iconClass = "bg-primary-100 text-primary-700", +}: { + label: string; + value: string; + delta?: number; + icon?: ReactNode; + iconClass?: string; +}) { + return ( +
+
+ {icon && ( +
+ {icon} +
+ )} +
+

{label}

+

{value}

+
+
+ {delta !== undefined && ( +
+ +
+ )} +
+ ); +} + +/** Card with a header row (title + optional action) and free body. */ +export function InfoCard({ + title, + action, + children, + className, + tone = "default", +}: { + title: string; + action?: ReactNode; + children: ReactNode; + className?: string; + tone?: "default" | "accent" | "dark"; +}) { + return ( + +
+

+ {title} +

+ {action} +
+ {children} +
+ ); +} + +/** Back-compat: old StatCard maps onto MetricCard styling. */ +export function StatCard({ + label, + value, + hint, + icon, +}: { + label: string; + value: string; + hint?: string; + icon?: ReactNode; + accent?: "brand" | "emerald"; +}) { + return ( +
+
+
+

{label}

+

{value}

+ {hint &&

{hint}

} +
+ {icon && ( +
+ {icon} +
+ )} +
+
+ ); +} + +export function Badge({ + children, + tone = "neutral", +}: { + children: ReactNode; + tone?: "neutral" | "success" | "warn" | "danger" | "info"; +}) { + const tones = { + neutral: "bg-brand-100 text-brand-600", + success: "bg-success/15 text-success", + warn: "bg-warning/15 text-warning", + danger: "bg-danger/15 text-danger", + info: "bg-info/15 text-info", + }; + return {children}; +} + +export function statusTone( + s: string +): "success" | "warn" | "danger" | "info" | "neutral" { + const v = s.toLowerCase(); + if ( + ["paid", "active", "present", "delivered", "confirmed", "in stock"].includes( + v + ) + ) + return "success"; + if (["pending", "draft", "unpaid", "leave", "low", "low stock"].includes(v)) + return "warn"; + if ( + ["inactive", "cancelled", "absent", "overdue", "out of stock"].includes(v) + ) + return "danger"; + return "info"; +} + +export function DataTable({ + columns, + rows, + empty = "No records", +}: { + columns: { key: string; label: string; render: (row: T) => ReactNode }[]; + rows: T[]; + empty?: string; +}) { + return ( +
+
+ + + + {columns.map((c) => ( + + ))} + + + + {rows.length === 0 ? ( + + + + ) : ( + rows.map((row, i) => ( + + {columns.map((c) => ( + + ))} + + )) + )} + +
+ {c.label} +
+ {empty} +
+ {c.render(row)} +
+
+
+ ); +} + +export function Modal({ + open, + onClose, + title, + children, +}: { + open: boolean; + onClose: () => void; + title: string; + children: ReactNode; +}) { + useEffect(() => { + const h = (e: KeyboardEvent) => e.key === "Escape" && onClose(); + if (open) window.addEventListener("keydown", h); + return () => window.removeEventListener("keydown", h); + }, [open, onClose]); + + if (!open) return null; + return ( +
+
e.stopPropagation()} + > +
+

{title}

+ +
+ {children} +
+
+ ); +} + +export function Field({ + label, + children, +}: { + label: string; + children: ReactNode; +}) { + return ( +
+ + {children} +
+ ); +} + +/* ---------- Bold dashboard cards (design.md §05) ---------- */ + +/** Vivid solid-yellow KPI card: stacked value/label rows + a mini + * bar-chart flourish, e.g. the Orders card. */ +export function OrdersStatCard({ + title, + items, +}: { + title: string; + items: [string, number][]; +}) { + return ( +
+
+

{title}

+ + + +
+
+ {items.map(([k, v]) => ( +
+

{v}

+

{k}

+
+ ))} +
+
+ {[40, 65, 30, 80, 55, 95].map((h, i) => ( + + ))} +
+
+ ); +} + +/** Vivid orange breakdown card: dot legend + a big number badge and a + * soft decorative pattern, e.g. the Stock card. */ +export function StockBreakdownCard({ + title, + total, + items, +}: { + title: string; + total: number; + items: [string, number, string][]; +}) { + return ( +
+
+
+

{title}

+ + + +
+
+
    + {items.map(([k, v, dot]) => ( +
  • + + + {k} + + {v} +
  • + ))} +
+
+ {total} +
+
+
+ ); +} diff --git a/filey-erp/src/index.css b/filey-erp/src/index.css new file mode 100644 index 0000000..7cff691 --- /dev/null +++ b/filey-erp/src/index.css @@ -0,0 +1,153 @@ +@tailwind base; +@tailwind components; +@tailwind utilities; + +@layer base { + html, + body, + #root { + height: 100%; + } + body { + @apply bg-canvas text-ink font-sans antialiased; + margin: 0; + } + /* Hide the up/down spinner on number inputs app-wide */ + input[type="number"]::-webkit-outer-spin-button, + input[type="number"]::-webkit-inner-spin-button { + -webkit-appearance: none; + margin: 0; + } + input[type="number"] { + -moz-appearance: textfield; + appearance: textfield; + } + * { + scrollbar-width: thin; + scrollbar-color: #cfcfcf transparent; + } + *::-webkit-scrollbar { + width: 8px; + height: 8px; + } + *::-webkit-scrollbar-thumb { + background: #cfcfcf; + border-radius: 8px; + } +} + +@layer components { + /* Cards — white surface, 16px radius, soft shadow. `.card` is the + canonical name; `.bento-card` is kept as an alias so existing + pages reskin automatically. */ + .card, + .bento-card { + @apply rounded-2xl bg-white border border-brand-200 shadow-bento p-5 + transition-all duration-200; + } + .card-hover, + .bento-card-hover { + @apply hover:shadow-bento-hover hover:border-primary-300 cursor-pointer; + } + .card-dark { + @apply rounded-2xl bg-ink text-white border border-ink shadow-bento p-5; + } + .card-accent { + @apply rounded-2xl border-0 shadow-bento p-5 text-ink + bg-gradient-to-br from-primary-300 via-primary-400 to-secondary-400; + } + .stat-label { + @apply text-xs font-semibold uppercase tracking-wide text-brand-400; + } + .stat-value { + @apply text-2xl font-bold text-ink mt-1; + } + .btn-primary, + .btn-cta { + @apply inline-flex items-center gap-2 rounded-xl bg-primary-400 px-4 py-2 + text-sm font-semibold text-ink transition-all duration-200 + hover:bg-primary-500 hover:shadow-glow focus:outline-none + focus:ring-2 focus:ring-primary-300 disabled:opacity-50 + disabled:cursor-not-allowed cursor-pointer; + } + .btn-secondary { + @apply inline-flex items-center gap-2 rounded-xl bg-primary-100 px-4 py-2 + text-sm font-semibold text-primary-700 transition-colors duration-200 + hover:bg-primary-200 cursor-pointer; + } + .btn-ghost { + @apply inline-flex items-center gap-2 rounded-xl px-3 py-2 text-sm + font-semibold text-brand-600 border border-brand-200 bg-white/60 + transition-colors duration-200 hover:bg-brand-50 hover:text-ink + cursor-pointer; + } + .input { + @apply w-full rounded-xl border border-brand-200 bg-white px-3 py-2 text-sm + text-ink placeholder:text-brand-400 focus:outline-none + focus:ring-2 focus:ring-primary-300 focus:border-primary-400; + } + .label { + @apply block text-xs font-semibold text-brand-600 mb-1; + } + .pill { + @apply inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-semibold; + } + .chip { + @apply inline-flex items-center gap-1.5 rounded-full border border-brand-200 + bg-white px-3 py-1.5 text-xs font-semibold text-brand-600 + transition-colors duration-200 hover:bg-brand-50 cursor-pointer; + } + .chip-active { + @apply border-primary-300 bg-primary-100 text-primary-700; + } + .th { + @apply text-left text-xs font-semibold uppercase tracking-wide + text-brand-400 px-4 py-3; + } + .td { + @apply px-4 py-3 text-sm text-brand-700 border-t border-brand-100; + } +} + +@media (prefers-reduced-motion: reduce) { + * { + transition: none !important; + animation: none !important; + } +} + +/* ===== Invoice print → PDF ===== */ +@media print { + body * { + visibility: hidden !important; + } + .invoice-print, + .invoice-print * { + visibility: visible !important; + } + .invoice-print { + position: absolute; + left: 0; + top: 0; + width: 100%; + margin: 0; + padding: 0; + box-shadow: none !important; + border: none !important; + } + .no-print { + display: none !important; + } + @page { + size: A4; + margin: 14mm; + } + html, + body { + background: #fff !important; + } + * { + -webkit-print-color-adjust: exact !important; + print-color-adjust: exact !important; + } +} diff --git a/filey-erp/src/lib/__tests__/format.test.ts b/filey-erp/src/lib/__tests__/format.test.ts new file mode 100644 index 0000000..4af72d2 --- /dev/null +++ b/filey-erp/src/lib/__tests__/format.test.ts @@ -0,0 +1,31 @@ +import { describe, it, expect } from "vitest"; +import { aed, num, vatBreakdown, fmtDate, UAE_VAT_RATE } from "../format"; + +describe("format helpers", () => { + it("UAE VAT rate is 5%", () => { + expect(UAE_VAT_RATE).toBe(0.05); + }); + + it("formats AED currency", () => { + expect(aed(1000)).toContain("1,000"); + expect(aed(0)).toContain("0"); + }); + + it("formats plain numbers with grouping", () => { + expect(num(1234567)).toBe("1,234,567"); + expect(num(0)).toBe("0"); + }); + + it("vatBreakdown applies 5% and rounds to 2dp", () => { + expect(vatBreakdown(100)).toEqual({ net: 100, vat: 5, gross: 105 }); + const b = vatBreakdown(99.99); + expect(b.vat).toBe(5); + expect(b.gross).toBe(104.99); + }); + + it("fmtDate handles empty / invalid input", () => { + expect(fmtDate(null)).toBe("—"); + expect(fmtDate(undefined)).toBe("—"); + expect(fmtDate("not-a-date")).toBe("not-a-date"); + }); +}); diff --git a/filey-erp/src/lib/__tests__/money.test.ts b/filey-erp/src/lib/__tests__/money.test.ts new file mode 100644 index 0000000..eb29703 --- /dev/null +++ b/filey-erp/src/lib/__tests__/money.test.ts @@ -0,0 +1,62 @@ +import { describe, it, expect } from "vitest"; +import { invoiceTotals, quotationTotals } from "../money"; + +describe("invoiceTotals", () => { + it("computes subtotal, 5% VAT and total", () => { + const t = invoiceTotals( + [ + { qty: 2, unit_price: 100 }, + { qty: 1, unit_price: 50 }, + ], + 0, + 5 + ); + expect(t.subtotal).toBe(250); + expect(t.tax).toBe(12.5); + expect(t.total).toBe(262.5); + }); + + it("applies a flat discount before tax and clamps it", () => { + const t = invoiceTotals([{ qty: 1, unit_price: 100 }], 30, 5); + expect(t.discount).toBe(30); + expect(t.tax).toBe(3.5); // 70 * 5% + expect(t.total).toBe(73.5); + }); + + it("never lets discount exceed subtotal", () => { + const t = invoiceTotals([{ qty: 1, unit_price: 100 }], 999, 5); + expect(t.discount).toBe(100); + expect(t.total).toBe(0); + }); + + it("handles empty items", () => { + expect(invoiceTotals([], 0, 5)).toEqual({ + subtotal: 0, + discount: 0, + tax: 0, + total: 0, + }); + }); +}); + +describe("quotationTotals", () => { + it("applies per-line discount then per-line tax", () => { + const t = quotationTotals([ + { qty: 2, rate: 100, discount: 10, tax: 12 }, + ]); + // gross 200, disc 20, net 180, tax 21.6 + expect(t.subtotal).toBe(200); + expect(t.discount).toBe(20); + expect(t.tax).toBe(21.6); + expect(t.total).toBe(201.6); + }); + + it("sums multiple lines with mixed rates", () => { + const t = quotationTotals([ + { qty: 1, rate: 375, discount: 5, tax: 12 }, + { qty: 3, rate: 399, discount: 0, tax: 12 }, + ]); + expect(t.subtotal).toBe(1572); + expect(t.total).toBeGreaterThan(t.subtotal - t.discount); + }); +}); diff --git a/filey-erp/src/lib/__tests__/ranges.test.ts b/filey-erp/src/lib/__tests__/ranges.test.ts new file mode 100644 index 0000000..703ebad --- /dev/null +++ b/filey-erp/src/lib/__tests__/ranges.test.ts @@ -0,0 +1,23 @@ +import { describe, it, expect } from "vitest"; +import { parseRanges } from "../ranges"; + +describe("parseRanges (1-based → 0-based indices)", () => { + it("parses single pages and ranges", () => { + expect(parseRanges("1,3,5", 10)).toEqual([0, 2, 4]); + expect(parseRanges("2-4", 10)).toEqual([1, 2, 3]); + }); + + it("supports open-ended ranges", () => { + expect(parseRanges("8-", 10)).toEqual([7, 8, 9]); + expect(parseRanges("-3", 10)).toEqual([0, 1, 2]); + }); + + it("dedupes, sorts and clamps to the page count", () => { + expect(parseRanges("3,1-2,3,99", 5)).toEqual([0, 1, 2]); + }); + + it("ignores junk and out-of-range values", () => { + expect(parseRanges("0,abc, ,12", 5)).toEqual([]); + expect(parseRanges("", 5)).toEqual([]); + }); +}); diff --git a/filey-erp/src/lib/api.ts b/filey-erp/src/lib/api.ts new file mode 100644 index 0000000..f63c4e6 --- /dev/null +++ b/filey-erp/src/lib/api.ts @@ -0,0 +1,1545 @@ +import { invoke } from "@tauri-apps/api/core"; +import { sb, isConfigured } from "./supabase"; +import { quotationTotals } from "./money"; + +// ===== Types ===== +export interface Product { + id: number; + sku: string; + name: string; + description?: string; + category?: string; + unit_price: number; + cost_price: number; + quantity: number; + reorder_level: number; + created_at: string; +} +export interface Order { + id: number; + order_number: string; + customer_name: string; + status: string; + total: number; + created_at: string; +} +export interface Invoice { + id: number; + invoice_number: string; + customer_name: string; + amount: number; + status: string; + due_date?: string; + created_at: string; +} +export interface ErpSummary { + total_products: number; + low_stock: number; + inventory_value: number; + open_orders: number; + unpaid_invoices: number; +} +export interface Employee { + id: number; + employee_code: string; + name: string; + email?: string; + phone?: string; + department?: string; + position?: string; + salary: number; + hire_date?: string; + status: string; +} +export interface Attendance { + id: number; + employee_id: number; + employee_name: string; + date: string; + check_in?: string; + check_out?: string; + status: string; +} +export interface Payroll { + id: number; + employee_id: number; + employee_name: string; + period: string; + basic: number; + allowances: number; + deductions: number; + net_pay: number; + status: string; +} +export interface HrSummary { + headcount: number; + present_today: number; + on_leave: number; + monthly_payroll: number; +} +export interface Account { + id: number; + code: string; + name: string; + account_type: string; + balance: number; +} +export interface Expense { + id: number; + category: string; + description?: string; + amount: number; + expense_date: string; + account_id?: number; +} +export interface Txn { + id: number; + account_id: number; + account_name: string; + txn_type: string; + amount: number; + description?: string; + txn_date: string; +} +export interface FinanceReport { + total_assets: number; + total_liabilities: number; + total_equity: number; + total_revenue: number; + total_expenses: number; + net_profit: number; + cash_position: number; +} +export interface User { + id: number; + username: string; + full_name: string; + role: string; + active: boolean; + created_at: string; +} +export interface Setting { + key: string; + value: string; +} +export interface AuditEntry { + id: number; + actor: string; + action: string; + entity: string; + details?: string; + created_at: string; +} + +export interface Lead { + id: number; + name: string; + company?: string; + email?: string; + phone?: string; + source?: string; + status: string; + est_value: number; + owner?: string; + created_at: string; +} +export interface CrmCustomer { + id: number; + name: string; + company?: string; + email?: string; + phone?: string; + address?: string; + segment?: string; + created_at: string; +} +export interface Opportunity { + id: number; + title: string; + customer_name: string; + stage: string; + value: number; + probability: number; + owner?: string; + expected_close?: string; + created_at: string; +} +export interface Activity { + id: number; + kind: string; + subject: string; + related_to?: string; + due_date?: string; + done: boolean; + created_at: string; +} +export interface CrmSummary { + open_leads: number; + pipeline_value: number; + won_value: number; + conversion_rate: number; + activities_due: number; +} + +export interface InvoiceItem { + id?: number; + description: string; + qty: number; + unit_price: number; +} +export interface InvoiceDocSummary { + id: number; + number: string; + customer_name: string; + status: string; + template: string; + total: number; + issue_date?: string; + updated_at: string; +} +export interface InvoiceDoc { + id: number; + number: string; + status: string; + template: string; + accent: string; + currency: string; + seller_name: string; + seller_address?: string; + seller_trn?: string; + seller_email?: string; + seller_phone?: string; + logo?: string; + customer_name: string; + customer_address?: string; + customer_trn?: string; + customer_email?: string; + issue_date?: string; + due_date?: string; + notes?: string; + terms?: string; + tax_rate: number; + discount: number; + created_at: string; + updated_at: string; + items: InvoiceItem[]; +} +export type InvoiceDocInput = Omit< + InvoiceDoc, + "id" | "created_at" | "updated_at" +> & { id?: number }; +export interface CompanyProfile { + name: string; + business_type?: string; + address?: string; + city?: string; + zip?: string; + trn?: string; + vat_number?: string; + tax_type?: string; + email?: string; + phone?: string; + website?: string; + currency?: string; + default_tax_rate?: number; + logo?: string; + default_accent: string; + default_template: string; +} + +// =================================================================== +// Offline-first hybrid layer +// - Reads: fetch from Supabase when online, mirror into a local cache; +// serve the cache when offline / unconfigured. +// - Writes: run against Supabase when online; when offline, single-row +// ops are queued in a local outbox and replayed on reconnect. +// =================================================================== + +const hasTauri = + typeof window !== "undefined" && "__TAURI_INTERNALS__" in window; +const onLine = () => + typeof navigator === "undefined" ? true : navigator.onLine; + +let activeCacheOrg = "default"; +/** Scope the local read-cache to an organization. Call whenever the + * signed-in user's org changes (login, org switch, sign-out). */ +export function setCacheOrg(orgId?: string | null): void { + activeCacheOrg = orgId && orgId.trim() ? orgId : "default"; +} + +async function cacheGet(key: string): Promise { + try { + if (hasTauri) { + const v = await invoke("cache_get", { key }); + return v ? (JSON.parse(v) as T) : null; + } + const v = localStorage.getItem("cache:" + key); + return v ? (JSON.parse(v) as T) : null; + } catch { + return null; + } +} + +async function cacheSet(key: string, value: unknown): Promise { + const json = JSON.stringify(value); + try { + if (hasTauri) await invoke("cache_set", { key, value: json }); + else localStorage.setItem("cache:" + key, json); + } catch { + /* cache is best-effort */ + } +} + +type OutboxOp = + | { k: "insert"; t: string; row: Record } + | { k: "update"; t: string; id: number; row: Record } + | { k: "delete"; t: string; id: number }; + +async function outboxAdd(op: OutboxOp): Promise { + const json = JSON.stringify(op); + try { + if (hasTauri) { + await invoke("outbox_add", { op: json }); + } else { + const a = JSON.parse(localStorage.getItem("outbox") || "[]"); + a.push({ id: Date.now() + a.length, op: json }); + localStorage.setItem("outbox", JSON.stringify(a)); + } + } catch { + /* ignore */ + } +} + +async function outboxList(): Promise<{ id: number; op: string }[]> { + try { + if (hasTauri) + return await invoke<{ id: number; op: string }[]>("outbox_list"); + return JSON.parse(localStorage.getItem("outbox") || "[]"); + } catch { + return []; + } +} + +async function outboxRemove(id: number): Promise { + try { + if (hasTauri) { + await invoke("outbox_remove", { entryId: id }); + } else { + const a = JSON.parse(localStorage.getItem("outbox") || "[]"); + localStorage.setItem( + "outbox", + JSON.stringify(a.filter((e: { id: number }) => e.id !== id)) + ); + } + } catch { + /* ignore */ + } +} + +let flushing = false; +export async function flushOutbox(): Promise { + if (flushing || !isConfigured || !onLine()) return; + flushing = true; + try { + const list = await outboxList(); + for (const entry of list) { + let op: OutboxOp; + try { + op = JSON.parse(entry.op); + } catch { + await outboxRemove(entry.id); + continue; + } + try { + if (op.k === "insert") { + const { error } = await sb().from(op.t).insert(op.row); + if (error) throw error; + } else if (op.k === "update") { + const { error } = await sb() + .from(op.t) + .update(op.row) + .eq("id", op.id); + if (error) throw error; + } else { + const { error } = await sb().from(op.t).delete().eq("id", op.id); + if (error) throw error; + } + await outboxRemove(entry.id); + } catch { + break; // stop; retry remaining on next reconnect + } + } + } finally { + flushing = false; + } +} + +if (typeof window !== "undefined") { + window.addEventListener("online", () => { + flushOutbox().catch(() => {}); + }); +} + +/** Read-through cache. Online → fetch + mirror; else → cached snapshot. */ +async function readCached( + key: string, + run: () => Promise, + empty: T +): Promise { + // Namespace the local cache by the active organization so data from + // one org never bleeds into another on a shared device. + const k = `${activeCacheOrg}:${key}`; + if (!isConfigured) return (await cacheGet(k)) ?? empty; + if (onLine()) { + try { + await flushOutbox(); + const data = await run(); + await cacheSet(k, data); + return data; + } catch { + return (await cacheGet(k)) ?? empty; + } + } + return (await cacheGet(k)) ?? empty; +} + +function offlineError(): never { + throw new Error( + "You're offline. This change needs a connection — it will not be saved." + ); +} + +/** Single-row write: online → run; offline → queue for replay. */ +async function write( + op: OutboxOp, + run: () => Promise, + offlineResult: T +): Promise { + if (!isConfigured) + throw new Error("Cloud storage is not configured."); + if (onLine()) { + await flushOutbox(); + return run(); + } + await outboxAdd(op); + return offlineResult; +} + +/** Multi-step / read-modify-write op — requires a live connection. */ +async function online(run: () => Promise): Promise { + if (!isConfigured) + throw new Error("Cloud storage is not configured."); + if (!onLine()) offlineError(); + await flushOutbox(); + return run(); +} + +// ---- generic Supabase helpers ---- +async function sList( + table: string, + order?: { col: string; asc: boolean }[], + select = "*" +): Promise { + let q: any = sb().from(table).select(select); + for (const o of order ?? []) q = q.order(o.col, { ascending: o.asc }); + const { data, error } = await q; + if (error) throw error; + return (data ?? []) as T[]; +} +async function sInsert( + table: string, + row: Record +): Promise { + const { data, error } = await sb() + .from(table) + .insert(row) + .select("id") + .single(); + if (error) throw error; + return (data as { id: number }).id; +} +async function sUpdate( + table: string, + id: number, + patch: Record +): Promise { + const { error } = await sb().from(table).update(patch).eq("id", id); + if (error) throw error; +} +async function sDelete(table: string, id: number): Promise { + const { error } = await sb().from(table).delete().eq("id", id); + if (error) throw error; +} + +const clean = >(o: T) => + Object.fromEntries( + Object.entries(o).filter(([, v]) => v !== undefined) + ) as Record; + +// ===== ERP Core ===== +export const erp = { + products: () => + readCached( + "erp_products", + () => sList("products", [{ col: "name", asc: true }]), + [] + ), + createProduct: (input: Omit) => { + const row = clean(input as Record); + return write({ k: "insert", t: "products", row }, () => + sInsert("products", row), -1 + ); + }, + updateStock: (productId: number, delta: number) => + online(async () => { + const { data, error } = await sb() + .from("products") + .select("quantity") + .eq("id", productId) + .single(); + if (error) throw error; + await sUpdate("products", productId, { + quantity: ((data as { quantity: number }).quantity ?? 0) + delta, + }); + }), + deleteProduct: (productId: number) => + write({ k: "delete", t: "products", id: productId }, () => + sDelete("products", productId), undefined + ), + orders: () => + readCached( + "erp_orders", + () => sList("orders", [{ col: "id", asc: false }]), + [] + ), + createOrder: (orderNumber: string, customerName: string, total: number) => { + const row = { + order_number: orderNumber, + customer_name: customerName, + status: "draft", + total, + }; + return write({ k: "insert", t: "orders", row }, () => + sInsert("orders", row), -1 + ); + }, + setOrderStatus: (orderId: number, status: string) => + write({ k: "update", t: "orders", id: orderId, row: { status } }, () => + sUpdate("orders", orderId, { status }), undefined + ), + invoices: () => + readCached( + "erp_invoices", + () => sList("invoices", [{ col: "id", asc: false }]), + [] + ), + createInvoice: ( + invoiceNumber: string, + customerName: string, + amount: number, + dueDate?: string + ) => { + const row = { + invoice_number: invoiceNumber, + customer_name: customerName, + amount, + status: "unpaid", + due_date: dueDate ?? null, + }; + return write({ k: "insert", t: "invoices", row }, () => + sInsert("invoices", row), -1 + ); + }, + markInvoicePaid: (invoiceId: number) => + write( + { k: "update", t: "invoices", id: invoiceId, row: { status: "paid" } }, + () => sUpdate("invoices", invoiceId, { status: "paid" }), + undefined + ), + summary: () => + readCached( + "erp_summary", + async () => { + const [products, orders, invoices] = await Promise.all([ + sList("products"), + sList("orders"), + sList("invoices"), + ]); + return { + total_products: products.length, + low_stock: products.filter((p) => p.quantity <= p.reorder_level) + .length, + inventory_value: products.reduce( + (s, p) => s + p.quantity * p.cost_price, + 0 + ), + open_orders: orders.filter((o) => + ["draft", "confirmed"].includes(o.status) + ).length, + unpaid_invoices: invoices + .filter((i) => i.status === "unpaid") + .reduce((s, i) => s + i.amount, 0), + }; + }, + { + total_products: 0, + low_stock: 0, + inventory_value: 0, + open_orders: 0, + unpaid_invoices: 0, + } + ), +}; + +// ===== HR ===== +export const hr = { + employees: () => + readCached( + "hr_employees", + () => sList("employees", [{ col: "name", asc: true }]), + [] + ), + createEmployee: (input: Omit) => { + const row = clean(input as Record); + return write({ k: "insert", t: "employees", row }, () => + sInsert("employees", row), -1 + ); + }, + setEmployeeStatus: (employeeId: number, status: string) => + write( + { k: "update", t: "employees", id: employeeId, row: { status } }, + () => sUpdate("employees", employeeId, { status }), + undefined + ), + deleteEmployee: (employeeId: number) => + write({ k: "delete", t: "employees", id: employeeId }, () => + sDelete("employees", employeeId), undefined + ), + attendance: () => + readCached( + "hr_attendance", + async () => { + const rows = await sList( + "attendance", + [ + { col: "date", asc: false }, + { col: "id", asc: false }, + ], + "*, employees(name)" + ); + return rows.map((r) => ({ + id: r.id, + employee_id: r.employee_id, + employee_name: r.employees?.name ?? "—", + date: r.date, + check_in: r.check_in ?? undefined, + check_out: r.check_out ?? undefined, + status: r.status, + })) as Attendance[]; + }, + [] + ), + markAttendance: ( + employeeId: number, + date: string, + status: string, + checkIn?: string, + checkOut?: string + ) => { + const row = { + employee_id: employeeId, + date, + status, + check_in: checkIn ?? null, + check_out: checkOut ?? null, + }; + return write({ k: "insert", t: "attendance", row }, () => + sInsert("attendance", row), -1 + ); + }, + payroll: () => + readCached( + "hr_payroll", + async () => { + const rows = await sList( + "payroll", + [{ col: "id", asc: false }], + "*, employees(name)" + ); + return rows.map((r) => ({ + id: r.id, + employee_id: r.employee_id, + employee_name: r.employees?.name ?? "—", + period: r.period, + basic: r.basic, + allowances: r.allowances, + deductions: r.deductions, + net_pay: r.net_pay, + status: r.status, + })) as Payroll[]; + }, + [] + ), + runPayroll: ( + employeeId: number, + period: string, + basic: number, + allowances: number, + deductions: number + ) => { + const row = { + employee_id: employeeId, + period, + basic, + allowances, + deductions, + net_pay: basic + allowances - deductions, + status: "pending", + }; + return write({ k: "insert", t: "payroll", row }, () => + sInsert("payroll", row), -1 + ); + }, + markPayrollPaid: (payrollId: number) => + write( + { k: "update", t: "payroll", id: payrollId, row: { status: "paid" } }, + () => sUpdate("payroll", payrollId, { status: "paid" }), + undefined + ), + summary: () => + readCached( + "hr_summary", + async () => { + const today = new Date().toISOString().slice(0, 10); + const [emps, att, pay] = await Promise.all([ + sList("employees"), + sList<{ date: string; status: string }>("attendance"), + sList<{ net_pay: number; status: string }>("payroll"), + ]); + const active = emps.filter((e) => e.status === "active"); + return { + headcount: active.length, + present_today: att.filter( + (a) => a.date === today && a.status === "present" + ).length, + on_leave: att.filter( + (a) => a.date === today && a.status === "leave" + ).length, + monthly_payroll: pay + .filter((p) => p.status !== "paid") + .reduce((s, p) => s + p.net_pay, 0), + }; + }, + { headcount: 0, present_today: 0, on_leave: 0, monthly_payroll: 0 } + ), +}; + +// ===== Finance ===== +export const fin = { + accounts: () => + readCached( + "fin_accounts", + () => sList("accounts", [{ col: "code", asc: true }]), + [] + ), + createAccount: (input: Omit) => { + const row = clean(input as Record); + return write({ k: "insert", t: "accounts", row }, () => + sInsert("accounts", row), -1 + ); + }, + expenses: () => + readCached( + "fin_expenses", + () => + sList("expenses", [{ col: "expense_date", asc: false }]), + [] + ), + createExpense: ( + category: string, + description: string | null, + amount: number, + expenseDate: string, + accountId: number | null + ) => { + const row = { + category, + description, + amount, + expense_date: expenseDate, + account_id: accountId, + }; + return write({ k: "insert", t: "expenses", row }, () => + sInsert("expenses", row), -1 + ); + }, + deleteExpense: (expenseId: number) => + write({ k: "delete", t: "expenses", id: expenseId }, () => + sDelete("expenses", expenseId), undefined + ), + transactions: () => + readCached( + "fin_transactions", + async () => { + const rows = await sList( + "transactions", + [{ col: "txn_date", asc: false }], + "*, accounts(name)" + ); + return rows.map((r) => ({ + id: r.id, + account_id: r.account_id, + account_name: r.accounts?.name ?? "—", + txn_type: r.txn_type, + amount: r.amount, + description: r.description ?? undefined, + txn_date: r.txn_date, + })) as Txn[]; + }, + [] + ), + postTransaction: ( + accountId: number, + txnType: string, + amount: number, + description: string | null + ) => { + const row = { + account_id: accountId, + txn_type: txnType, + amount, + description, + }; + return write({ k: "insert", t: "transactions", row }, () => + sInsert("transactions", row), -1 + ); + }, + report: () => + readCached( + "fin_report", + async () => { + const accts = await sList("accounts"); + const sumType = (t: string) => + accts + .filter((a) => a.account_type === t) + .reduce((s, a) => s + a.balance, 0); + const revenue = sumType("revenue"); + const expenses = sumType("expense"); + const assets = sumType("asset"); + return { + total_assets: assets, + total_liabilities: sumType("liability"), + total_equity: sumType("equity"), + total_revenue: revenue, + total_expenses: expenses, + net_profit: revenue - expenses, + cash_position: accts + .filter( + (a) => + a.account_type === "asset" && + /cash|bank/i.test(a.name) + ) + .reduce((s, a) => s + a.balance, 0), + }; + }, + { + total_assets: 0, + total_liabilities: 0, + total_equity: 0, + total_revenue: 0, + total_expenses: 0, + net_profit: 0, + cash_position: 0, + } + ), +}; + +// ===== Tools ===== +export const tools = { + users: () => + readCached( + "tools_users", + () => sList("app_users", [{ col: "id", asc: true }]), + [] + ), + createUser: (username: string, fullName: string, role: string) => { + const row = { username, full_name: fullName, role, active: true }; + return write({ k: "insert", t: "app_users", row }, () => + sInsert("app_users", row), -1 + ); + }, + toggleUser: (userId: number) => + online(async () => { + const { data, error } = await sb() + .from("app_users") + .select("active") + .eq("id", userId) + .single(); + if (error) throw error; + await sUpdate("app_users", userId, { + active: !(data as { active: boolean }).active, + }); + }), + settings: () => + readCached( + "tools_settings", + () => + sList( + "app_settings", + [{ col: "key", asc: true }], + "key,value" + ), + [] + ), + setSetting: (key: string, value: string) => + online(async () => { + const { data } = await sb() + .from("app_settings") + .select("id") + .eq("key", key) + .maybeSingle(); + if (data) await sUpdate("app_settings", (data as any).id, { value }); + else await sInsert("app_settings", { key, value }); + }), + auditLog: () => + readCached( + "tools_audit", + () => + sList("audit_log", [{ col: "id", asc: false }]), + [] + ), + logAction: ( + actor: string, + action: string, + entity: string, + details: string | null + ) => { + const row = { actor, action, entity, details }; + return write({ k: "insert", t: "audit_log", row }, () => + sInsert("audit_log", row).then(() => undefined), + undefined + ); + }, +}; + +// ===== CRM ===== +const STAGE_PROB: Record = { + qualification: 20, + proposal: 45, + negotiation: 70, + won: 100, + lost: 0, +}; + +export const crm = { + leads: () => + readCached( + "crm_leads", + () => sList("crm_leads", [{ col: "id", asc: false }]), + [] + ), + createLead: (input: Omit) => { + const row = clean(input as Record); + return write({ k: "insert", t: "crm_leads", row }, () => + sInsert("crm_leads", row), -1 + ); + }, + setLeadStatus: (leadId: number, status: string) => + write( + { k: "update", t: "crm_leads", id: leadId, row: { status } }, + () => sUpdate("crm_leads", leadId, { status }), + undefined + ), + deleteLead: (leadId: number) => + write({ k: "delete", t: "crm_leads", id: leadId }, () => + sDelete("crm_leads", leadId), undefined + ), + convertLead: (leadId: number) => + online(async () => { + const { data, error } = await sb() + .from("crm_leads") + .select("*") + .eq("id", leadId) + .single(); + if (error) throw error; + const l = data as Lead; + const display = l.company || l.name; + await sInsert("crm_customers", { + name: l.name, + company: l.company ?? null, + email: l.email ?? null, + phone: l.phone ?? null, + segment: "Converted lead", + }); + const oppId = await sInsert("crm_opportunities", { + title: `${display} — new opportunity`, + customer_name: display, + stage: "qualification", + value: l.est_value, + probability: 20, + owner: l.owner ?? null, + }); + await sUpdate("crm_leads", leadId, { status: "converted" }); + return oppId; + }), + customers: () => + readCached( + "crm_customers", + () => + sList("crm_customers", [{ col: "name", asc: true }]), + [] + ), + createCustomer: (input: Omit) => { + const row = clean(input as Record); + return write({ k: "insert", t: "crm_customers", row }, () => + sInsert("crm_customers", row), -1 + ); + }, + deleteCustomer: (customerId: number) => + write({ k: "delete", t: "crm_customers", id: customerId }, () => + sDelete("crm_customers", customerId), undefined + ), + opportunities: () => + readCached( + "crm_opps", + () => + sList("crm_opportunities", [ + { col: "id", asc: false }, + ]), + [] + ), + createOpportunity: (input: Omit) => { + const row = clean(input as Record); + return write({ k: "insert", t: "crm_opportunities", row }, () => + sInsert("crm_opportunities", row), -1 + ); + }, + setOppStage: (oppId: number, stage: string) => { + const patch = { stage, probability: STAGE_PROB[stage] ?? 30 }; + return write( + { k: "update", t: "crm_opportunities", id: oppId, row: patch }, + () => sUpdate("crm_opportunities", oppId, patch), + undefined + ); + }, + deleteOpportunity: (oppId: number) => + write({ k: "delete", t: "crm_opportunities", id: oppId }, () => + sDelete("crm_opportunities", oppId), undefined + ), + activities: () => + readCached( + "crm_activities", + () => + sList("crm_activities", [ + { col: "done", asc: true }, + { col: "due_date", asc: true }, + { col: "id", asc: false }, + ]), + [] + ), + createActivity: (input: Omit) => { + const row = clean(input as Record); + return write({ k: "insert", t: "crm_activities", row }, () => + sInsert("crm_activities", row), -1 + ); + }, + toggleActivity: (activityId: number) => + online(async () => { + const { data, error } = await sb() + .from("crm_activities") + .select("done") + .eq("id", activityId) + .single(); + if (error) throw error; + await sUpdate("crm_activities", activityId, { + done: !(data as { done: boolean }).done, + }); + }), + summary: () => + readCached( + "crm_summary", + async () => { + const [leads, opps, acts] = await Promise.all([ + sList("crm_leads"), + sList("crm_opportunities"), + sList("crm_activities"), + ]); + const converted = leads.filter( + (l) => l.status === "converted" + ).length; + return { + open_leads: leads.filter( + (l) => !["converted", "lost"].includes(l.status) + ).length, + pipeline_value: opps + .filter((o) => !["won", "lost"].includes(o.stage)) + .reduce((s, o) => s + o.value, 0), + won_value: opps + .filter((o) => o.stage === "won") + .reduce((s, o) => s + o.value, 0), + conversion_rate: leads.length + ? (converted / leads.length) * 100 + : 0, + activities_due: acts.filter((a) => !a.done).length, + }; + }, + { + open_leads: 0, + pipeline_value: 0, + won_value: 0, + conversion_rate: 0, + activities_due: 0, + } + ), +}; + +// ===== Billing / Invoicing ===== +function docTotal( + d: { tax_rate: number; discount: number }, + items: { qty: number; unit_price: number }[] +) { + const subtotal = items.reduce((s, i) => s + i.qty * i.unit_price, 0); + return (subtotal - d.discount) * (1 + d.tax_rate / 100); +} + +export const billing = { + listDocs: () => + readCached( + "billing_docs", + async () => { + const [docs, items] = await Promise.all([ + sList("invoice_docs", [{ col: "updated_at", asc: false }]), + sList("invoice_doc_items"), + ]); + const byDoc = new Map(); + for (const it of items) { + const a = byDoc.get(it.invoice_id) ?? []; + a.push(it); + byDoc.set(it.invoice_id, a); + } + return docs.map((d) => ({ + id: d.id, + number: d.number, + customer_name: d.customer_name, + status: d.status, + template: d.template, + total: docTotal(d, byDoc.get(d.id) ?? []), + issue_date: d.issue_date ?? undefined, + updated_at: d.updated_at, + })) as InvoiceDocSummary[]; + }, + [] + ), + getDoc: (docId: number) => + readCached( + `invoice_doc:${docId}`, + async () => { + const { data: d, error } = await sb() + .from("invoice_docs") + .select("*") + .eq("id", docId) + .single(); + if (error) throw error; + const items = await sList( + "invoice_doc_items", + [ + { col: "position", asc: true }, + { col: "id", asc: true }, + ] + ); + return { + ...(d as any), + items: items + .filter((i) => i.invoice_id === docId) + .map((i) => ({ + id: i.id, + description: i.description, + qty: i.qty, + unit_price: i.unit_price, + })), + } as InvoiceDoc; + }, + null as unknown as InvoiceDoc + ), + saveDoc: (input: InvoiceDocInput) => + online(async () => { + const { items, id, ...docFields } = input; + const row = clean(docFields as Record); + let docId: number; + if (id && id > 0) { + await sUpdate("invoice_docs", id, row); + const { error } = await sb() + .from("invoice_doc_items") + .delete() + .eq("invoice_id", id); + if (error) throw error; + docId = id; + } else { + docId = await sInsert("invoice_docs", row); + } + if (items.length) { + const { error } = await sb() + .from("invoice_doc_items") + .insert( + items.map((it, i) => ({ + invoice_id: docId, + description: it.description, + qty: it.qty, + unit_price: it.unit_price, + position: i, + })) + ); + if (error) throw error; + } + return docId; + }), + deleteDoc: (docId: number) => + write({ k: "delete", t: "invoice_docs", id: docId }, () => + sDelete("invoice_docs", docId), undefined + ), + setStatus: (docId: number, status: string) => + write( + { k: "update", t: "invoice_docs", id: docId, row: { status } }, + () => sUpdate("invoice_docs", docId, { status }), + undefined + ), + getCompany: () => + readCached( + "company_profile", + async () => { + const { data } = await sb() + .from("company_profile") + .select("*") + .maybeSingle(); + if (data) { + const c = data as any; + return { + name: c.name, + business_type: c.business_type ?? undefined, + address: c.address ?? undefined, + city: c.city ?? undefined, + zip: c.zip ?? undefined, + trn: c.trn ?? undefined, + vat_number: c.vat_number ?? undefined, + tax_type: c.tax_type ?? "VAT", + email: c.email ?? undefined, + phone: c.phone ?? undefined, + website: c.website ?? undefined, + currency: c.currency ?? "AED", + default_tax_rate: + c.default_tax_rate == null ? 5 : Number(c.default_tax_rate), + logo: c.logo ?? undefined, + default_accent: c.default_accent, + default_template: c.default_template, + }; + } + return { + name: "My Company", + address: "", + trn: "", + email: "", + phone: "", + tax_type: "VAT", + currency: "AED", + default_tax_rate: 5, + default_accent: "#222222", + default_template: "minimal", + }; + }, + { + name: "My Company", + tax_type: "VAT", + currency: "AED", + default_tax_rate: 5, + default_accent: "#222222", + default_template: "minimal", + } + ), + saveCompany: (input: CompanyProfile) => + online(async () => { + const { data } = await sb() + .from("company_profile") + .select("id") + .maybeSingle(); + const row = clean(input as unknown as Record); + if (data) await sUpdate("company_profile", (data as any).id, row); + else await sInsert("company_profile", row); + }), +}; + +// ===== Quoting ===== +export interface QuotationItem { + id?: number; + product: string; + sku?: string; + qty: number; + rate: number; + discount: number; // percent + tax: number; // percent +} +export interface QuotationSummary { + id: number; + number: string; + customer_name: string; + status: string; + template: string; + total: number; + valid_until?: string; + updated_at: string; +} +export interface QuotationDoc { + id: number; + number: string; + status: string; + template: string; + accent: string; + currency: string; + quote_date?: string; + valid_until?: string; + sales_person?: string; + customer_name: string; + customer_address?: string; + customer_trn?: string; + customer_email?: string; + terms?: string; + created_at: string; + updated_at: string; + items: QuotationItem[]; +} +export type QuotationInput = Omit< + QuotationDoc, + "id" | "created_at" | "updated_at" +> & { id?: number }; +export interface QuoteTemplate { + id: number; + name: string; + base_template: string; + created_at: string; +} +export interface ToolRun { + id: number; + tool: string; + tool_name: string; + file_name: string; + created_at: string; +} + +const quoteTotal = (items: QuotationItem[]) => + quotationTotals(items).total; + +export const quotes = { + listDocs: () => + readCached( + "quotation_docs", + async () => { + const [docs, items] = await Promise.all([ + sList("quotations", [{ col: "updated_at", asc: false }]), + sList("quotation_items"), + ]); + const byDoc = new Map(); + for (const it of items) { + const a = byDoc.get(it.quotation_id) ?? []; + a.push(it); + byDoc.set(it.quotation_id, a); + } + return docs.map((d) => ({ + id: d.id, + number: d.number, + customer_name: d.customer_name, + status: d.status, + template: d.template, + total: quoteTotal(byDoc.get(d.id) ?? []), + valid_until: d.valid_until ?? undefined, + updated_at: d.updated_at, + })) as QuotationSummary[]; + }, + [] + ), + getDoc: (docId: number) => + readCached( + `quotation_doc:${docId}`, + async () => { + const { data: d, error } = await sb() + .from("quotations") + .select("*") + .eq("id", docId) + .single(); + if (error) throw error; + const items = await sList("quotation_items", [ + { col: "position", asc: true }, + { col: "id", asc: true }, + ]); + return { + ...(d as any), + items: items + .filter((i) => i.quotation_id === docId) + .map((i) => ({ + id: i.id, + product: i.product, + sku: i.sku ?? undefined, + qty: i.qty, + rate: i.rate, + discount: i.discount, + tax: i.tax, + })), + } as QuotationDoc; + }, + null as unknown as QuotationDoc + ), + saveDoc: (input: QuotationInput) => + online(async () => { + const { items, id, ...docFields } = input; + const row = clean(docFields as Record); + let docId: number; + if (id && id > 0) { + await sUpdate("quotations", id, row); + const { error } = await sb() + .from("quotation_items") + .delete() + .eq("quotation_id", id); + if (error) throw error; + docId = id; + } else { + docId = await sInsert("quotations", row); + } + if (items.length) { + const { error } = await sb() + .from("quotation_items") + .insert( + items.map((it, i) => ({ + quotation_id: docId, + product: it.product, + sku: it.sku ?? null, + qty: it.qty, + rate: it.rate, + discount: it.discount, + tax: it.tax, + position: i, + })) + ); + if (error) throw error; + } + return docId; + }), + deleteDoc: (docId: number) => + write({ k: "delete", t: "quotations", id: docId }, () => + sDelete("quotations", docId), undefined + ), + setStatus: (docId: number, status: string) => + write( + { k: "update", t: "quotations", id: docId, row: { status } }, + () => sUpdate("quotations", docId, { status }), + undefined + ), +}; + +export const quoteTemplates = { + list: () => + readCached( + "quotation_templates", + () => + sList("quotation_templates", [ + { col: "id", asc: false }, + ]), + [] + ), + create: (name: string, baseTemplate: string) => { + const row = { name, base_template: baseTemplate }; + return write({ k: "insert", t: "quotation_templates", row }, () => + sInsert("quotation_templates", row), -1 + ); + }, + remove: (id: number) => + write({ k: "delete", t: "quotation_templates", id }, () => + sDelete("quotation_templates", id), undefined + ), +}; + +export const toolRuns = { + list: () => + readCached( + "tool_runs", + () => sList("tool_runs", [{ col: "id", asc: false }]), + [] + ), + log: (tool: string, toolName: string, fileName: string) => { + const row = { tool, tool_name: toolName, file_name: fileName }; + return write({ k: "insert", t: "tool_runs", row }, () => + sInsert("tool_runs", row), -1 + ); + }, +}; + +// ===== Organizations / RBAC ===== +export interface Organization { + id: string; + name: string; + owner_id: string; + created_at: string; +} +export interface OrgMember { + id: number; + org_id: string; + user_id: string; + role: string; + name: string; + email: string; +} + +export const org = { + get: () => + readCached( + "organization", + async () => { + const rows = await sList("organizations"); + return rows[0] ?? null; + }, + null + ), + members: () => + readCached( + "org_members", + async () => { + const [mems, profs] = await Promise.all([ + sList("org_members", [{ col: "id", asc: true }]), + sList("profiles"), + ]); + const byId = new Map(profs.map((p) => [p.id, p])); + return mems.map((m) => ({ + id: m.id, + org_id: m.org_id, + user_id: m.user_id, + role: m.role, + name: byId.get(m.user_id)?.name ?? "—", + email: byId.get(m.user_id)?.email ?? "", + })) as OrgMember[]; + }, + [] + ), + /** Create a new organization; returns its id (the join code). */ + create: (name: string) => + online(async () => { + const id = await sInsert("organizations", { name }); + await sInsert("org_members", { + org_id: String(id), + role: "owner", + }); + return String(id); + }), + /** Join an existing organization by its id (join code). */ + join: (code: string) => + online(async () => { + await sInsert("org_members", { org_id: code, role: "staff" }); + return code; + }), + setRole: (memberId: number, role: string) => + write( + { k: "update", t: "org_members", id: memberId, row: { role } }, + () => sUpdate("org_members", memberId, { role }), + undefined + ), + remove: (memberId: number) => + write({ k: "delete", t: "org_members", id: memberId }, () => + sDelete("org_members", memberId), undefined + ), +}; diff --git a/filey-erp/src/lib/auth.tsx b/filey-erp/src/lib/auth.tsx new file mode 100644 index 0000000..147b33d --- /dev/null +++ b/filey-erp/src/lib/auth.tsx @@ -0,0 +1,251 @@ +import { + createContext, + useContext, + useEffect, + useState, + type ReactNode, +} from "react"; +import type { Session, User } from "@supabase/supabase-js"; +import { supabase, isConfigured } from "./supabase"; +import { setCacheOrg } from "./api"; + +export type Channel = "email" | "phone"; + +export interface Credential { + channel: Channel; + /** Email address, or phone number in E.164 form (e.g. +9715XXXXXXXX). */ + value: string; +} + +export interface Profile { + id: string; + email: string; + name: string; + company: string; + org_id?: string; + phone?: string; + role?: string; + username?: string; + avatar?: string; + language?: string; + timezone?: string; + date_format?: string; + time_format?: string; + created_at?: string; + updated_at?: string; +} + +interface AuthValue { + loading: boolean; + configured: boolean; + user: User | null; + session: Session | null; + profile: Profile | null; + needsProfile: boolean; + signInWithPassword: (c: Credential, password: string) => Promise; + /** Returns needsOtp=false when Supabase confirmation is disabled (instant session). */ + signUpWithPassword: ( + c: Credential, + password: string + ) => Promise<{ needsOtp: boolean }>; + /** Passwordless: sends a login code to an existing account. */ + sendLoginOtp: (c: Credential) => Promise; + verifyOtp: ( + c: Credential, + token: string, + purpose: "signup" | "login" + ) => Promise; + resendOtp: (c: Credential, purpose: "signup" | "login") => Promise; + signOut: () => Promise; + createProfile: ( + firstName: string, + lastName: string, + company: string + ) => Promise; + updateProfile: (patch: Partial) => Promise; +} + +const Ctx = createContext(null); + +const norm = (c: Credential) => + c.channel === "email" + ? { email: c.value.trim().toLowerCase() } + : { phone: c.value.trim() }; + +export function AuthProvider({ children }: { children: ReactNode }) { + const [loading, setLoading] = useState(true); + const [user, setUser] = useState(null); + const [session, setSession] = useState(null); + const [profile, setProfile] = useState(null); + + const loadProfile = async (u: User) => { + if (!supabase) return; + const { data } = await supabase + .from("profiles") + .select("*") + .eq("id", u.id) + .maybeSingle(); + const prof = (data as Profile) ?? null; + setCacheOrg(prof?.org_id); + setProfile(prof); + }; + + useEffect(() => { + if (!isConfigured || !supabase) { + setLoading(false); + return; + } + supabase.auth.getSession().then(async ({ data }) => { + setSession(data.session); + setUser(data.session?.user ?? null); + if (data.session?.user) await loadProfile(data.session.user); + setLoading(false); + }); + + const { data: sub } = supabase.auth.onAuthStateChange(async (_e, s) => { + setSession(s); + setUser(s?.user ?? null); + if (s?.user) await loadProfile(s.user); + else { + setCacheOrg(null); + setProfile(null); + } + }); + return () => sub.subscription.unsubscribe(); + }, []); + + const signInWithPassword = async (c: Credential, password: string) => { + if (!supabase) throw new Error("Supabase not configured"); + const { error } = await supabase.auth.signInWithPassword({ + ...norm(c), + password, + } as any); + if (error) throw error; + }; + + const signUpWithPassword = async (c: Credential, password: string) => { + if (!supabase) throw new Error("Supabase not configured"); + if (password.length < 6) + throw new Error("Password must be at least 6 characters."); + const { data, error } = await supabase.auth.signUp({ + ...norm(c), + password, + } as any); + if (error) throw error; + // A session here means email confirmation is disabled → straight in. + // Otherwise an OTP (email code / SMS) was sent and must be verified. + return { needsOtp: !data.session }; + }; + + const sendLoginOtp = async (c: Credential) => { + if (!supabase) throw new Error("Supabase not configured"); + const { error } = await supabase.auth.signInWithOtp({ + ...norm(c), + options: { shouldCreateUser: false }, + } as any); + if (error) throw error; + }; + + const verifyOtp = async ( + c: Credential, + token: string, + purpose: "signup" | "login" + ) => { + if (!supabase) throw new Error("Supabase not configured"); + const type = + c.channel === "phone" + ? "sms" + : purpose === "signup" + ? "signup" + : "email"; + const { error } = await supabase.auth.verifyOtp({ + ...norm(c), + token: token.trim(), + type, + } as any); + if (error) throw error; + }; + + const resendOtp = async (c: Credential, purpose: "signup" | "login") => { + if (!supabase) throw new Error("Supabase not configured"); + if (purpose === "login") { + await sendLoginOtp(c); + return; + } + const { error } = await supabase.auth.resend({ + ...norm(c), + type: c.channel === "phone" ? "sms" : "signup", + } as any); + if (error) throw error; + }; + + const signOut = async () => { + if (!supabase) return; + await supabase.auth.signOut(); + setCacheOrg(null); + setProfile(null); + }; + + const createProfile = async ( + firstName: string, + lastName: string, + company: string + ) => { + if (!supabase || !user) throw new Error("Not signed in"); + const name = `${firstName.trim()} ${lastName.trim()}`.trim(); + // org_id is provisioned by the signup trigger — do NOT set it here, + // or the upsert would clobber the user's organization. + const row = { + id: user.id, + email: user.email ?? "", + name, + company: company.trim(), + }; + const { data, error } = await supabase + .from("profiles") + .upsert(row) + .select() + .single(); + if (error) throw error; + setCacheOrg((data as Profile).org_id); + setProfile(data as Profile); + }; + + const updateProfile = async (patch: Partial) => { + if (!supabase || !user) return; + const { data, error } = await supabase + .from("profiles") + .update(patch) + .eq("id", user.id) + .select() + .single(); + if (error) throw error; + setCacheOrg((data as Profile).org_id); + setProfile(data as Profile); + }; + + const value: AuthValue = { + loading, + configured: isConfigured, + user, + session, + profile, + needsProfile: !!user && !profile, + signInWithPassword, + signUpWithPassword, + sendLoginOtp, + verifyOtp, + resendOtp, + signOut, + createProfile, + updateProfile, + }; + + return {children}; +} + +export function useAuth(): AuthValue { + const c = useContext(Ctx); + if (!c) throw new Error("useAuth must be used within AuthProvider"); + return c; +} diff --git a/filey-erp/src/lib/email.ts b/filey-erp/src/lib/email.ts new file mode 100644 index 0000000..f058160 --- /dev/null +++ b/filey-erp/src/lib/email.ts @@ -0,0 +1,73 @@ +import { invoke } from "@tauri-apps/api/core"; + +export interface EmailConfig { + host: string; + port: number; + username: string; + password: string; + from_name: string; + from_email: string; +} + +export interface EmailMessage { + to: string; + subject: string; + html: string; +} + +const KEY = "email_config"; + +export const hasDesktop = + typeof window !== "undefined" && "__TAURI_INTERNALS__" in window; + +export const emailConfigured = (c: EmailConfig | null): c is EmailConfig => + !!c && !!c.host && !!c.port && !!c.username && !!c.password; + +export async function loadEmailConfig(): Promise { + try { + if (hasDesktop) { + const v = await invoke("cache_get", { key: KEY }); + return v ? (JSON.parse(v) as EmailConfig) : null; + } + const v = localStorage.getItem("cache:" + KEY); + return v ? (JSON.parse(v) as EmailConfig) : null; + } catch { + return null; + } +} + +export async function saveEmailConfig(c: EmailConfig): Promise { + const json = JSON.stringify(c); + if (hasDesktop) await invoke("cache_set", { key: KEY, value: json }); + else localStorage.setItem("cache:" + KEY, json); +} + +/** Send one HTML email via the desktop SMTP bridge. */ +export async function sendEmail(msg: EmailMessage): Promise { + if (!hasDesktop) + throw new Error( + "Email sending is available in the Filey desktop app only." + ); + const config = await loadEmailConfig(); + if (!emailConfigured(config)) + throw new Error( + "Email isn't configured. Add your Gmail SMTP details in Settings → Email." + ); + if (!msg.to.trim()) throw new Error("No recipient email address."); + await invoke("send_email", { config, message: msg }); +} + +/** Minimal branded HTML wrapper for transactional emails. */ +export function emailShell(title: string, bodyHtml: string): string { + return `
+
+ ${title} +
+
+ ${bodyHtml} +

+ Sent via Filey ERP +

+
+
`; +} diff --git a/filey-erp/src/lib/format.ts b/filey-erp/src/lib/format.ts new file mode 100644 index 0000000..072351e --- /dev/null +++ b/filey-erp/src/lib/format.ts @@ -0,0 +1,37 @@ +import { clsx, type ClassValue } from "clsx"; +import { twMerge } from "tailwind-merge"; + +export function cn(...inputs: ClassValue[]) { + return twMerge(clsx(inputs)); +} + +// UAE standard VAT rate (Federal Decree-Law No. 8 of 2017) +export const UAE_VAT_RATE = 0.05; + +export function aed(value: number): string { + return new Intl.NumberFormat("en-AE", { + style: "currency", + currency: "AED", + maximumFractionDigits: 2, + }).format(value || 0); +} + +export function num(value: number): string { + return new Intl.NumberFormat("en-AE").format(value || 0); +} + +export function vatBreakdown(net: number) { + const vat = +(net * UAE_VAT_RATE).toFixed(2); + return { net, vat, gross: +(net + vat).toFixed(2) }; +} + +export function fmtDate(d?: string | null): string { + if (!d) return "—"; + const date = new Date(d); + if (isNaN(date.getTime())) return d; + return date.toLocaleDateString("en-AE", { + day: "2-digit", + month: "short", + year: "numeric", + }); +} diff --git a/filey-erp/src/lib/modules.tsx b/filey-erp/src/lib/modules.tsx new file mode 100644 index 0000000..9d1c82e --- /dev/null +++ b/filey-erp/src/lib/modules.tsx @@ -0,0 +1,81 @@ +import { + createContext, + useContext, + useEffect, + useState, + type ReactNode, +} from "react"; +import { tools } from "./api"; +import { MODULES, type AppModule } from "../modules/registry"; + +const KEY = "modules.disabled"; + +interface ModulesValue { + loading: boolean; + modules: AppModule[]; + isEnabled: (id: string) => boolean; + enabledModules: () => AppModule[]; + toggle: (id: string) => void; +} + +const Ctx = createContext(null); + +export function ModulesProvider({ children }: { children: ReactNode }) { + const [disabled, setDisabled] = useState([]); + const [loading, setLoading] = useState(true); + + useEffect(() => { + tools + .settings() + .then((rows) => { + const row = rows.find((r) => r.key === KEY); + if (row?.value) { + try { + const arr = JSON.parse(row.value); + if (Array.isArray(arr)) setDisabled(arr.map(String)); + } catch { + /* ignore bad value */ + } + } + }) + .catch(() => {}) + .finally(() => setLoading(false)); + }, []); + + const isEnabled = (id: string) => { + const m = MODULES.find((x) => x.id === id); + if (m?.core) return true; + return !disabled.includes(id); + }; + + const persist = (next: string[]) => { + setDisabled(next); + tools.setSetting(KEY, JSON.stringify(next)).catch(() => {}); + }; + + const toggle = (id: string) => { + const m = MODULES.find((x) => x.id === id); + if (m?.core) return; + persist( + disabled.includes(id) + ? disabled.filter((x) => x !== id) + : [...disabled, id] + ); + }; + + const value: ModulesValue = { + loading, + modules: MODULES, + isEnabled, + enabledModules: () => MODULES.filter((m) => isEnabled(m.id)), + toggle, + }; + + return {children}; +} + +export function useModules(): ModulesValue { + const c = useContext(Ctx); + if (!c) throw new Error("useModules must be used within ModulesProvider"); + return c; +} diff --git a/filey-erp/src/lib/money.ts b/filey-erp/src/lib/money.ts new file mode 100644 index 0000000..3c4348c --- /dev/null +++ b/filey-erp/src/lib/money.ts @@ -0,0 +1,54 @@ +// Pure money math — the single source of truth for invoice & quotation +// totals. No framework/Tauri imports so it is unit-testable in isolation. + +export interface Totals { + subtotal: number; + discount: number; + tax: number; + total: number; +} + +const r2 = (n: number) => Math.round((n + Number.EPSILON) * 100) / 100; + +/** Invoice: flat discount amount + a single tax rate (%) on the net. */ +export function invoiceTotals( + items: { qty: number; unit_price: number }[], + discount: number, + taxRatePct: number +): Totals { + const subtotal = items.reduce( + (s, i) => s + (i.qty || 0) * (i.unit_price || 0), + 0 + ); + const disc = Math.min(Math.max(0, discount || 0), subtotal); + const net = subtotal - disc; + const tax = net * ((taxRatePct || 0) / 100); + return { + subtotal: r2(subtotal), + discount: r2(disc), + tax: r2(tax), + total: r2(net + tax), + }; +} + +/** Quotation: per-line discount (%) then per-line tax (%). */ +export function quotationTotals( + items: { qty: number; rate: number; discount: number; tax: number }[] +): Totals { + let subtotal = 0; + let discount = 0; + let tax = 0; + for (const i of items) { + const gross = (i.qty || 0) * (i.rate || 0); + const disc = gross * ((i.discount || 0) / 100); + subtotal += gross; + discount += disc; + tax += (gross - disc) * ((i.tax || 0) / 100); + } + return { + subtotal: r2(subtotal), + discount: r2(discount), + tax: r2(tax), + total: r2(subtotal - discount + tax), + }; +} diff --git a/filey-erp/src/lib/pdfTools.ts b/filey-erp/src/lib/pdfTools.ts new file mode 100644 index 0000000..4edcf58 --- /dev/null +++ b/filey-erp/src/lib/pdfTools.ts @@ -0,0 +1,220 @@ +// Fully local PDF toolkit — runs entirely in the Tauri webview. +// No network, no external service. pdf-lib (MIT) + pdfjs-dist (Apache-2.0). +import { PDFDocument, degrees, rgb, StandardFonts } from "pdf-lib"; +import * as pdfjs from "pdfjs-dist"; +import workerUrl from "pdfjs-dist/build/pdf.worker.min.mjs?url"; +import { parseRanges } from "./ranges"; + +pdfjs.GlobalWorkerOptions.workerSrc = workerUrl; + +export { parseRanges }; + +export interface OutFile { + name: string; + bytes: Uint8Array; +} + +const readBuf = (f: File) => f.arrayBuffer(); +const base = (n: string) => n.replace(/\.pdf$/i, ""); + +// Many real-world PDFs carry an empty-owner-password encryption dict. +// Loading with ignoreEncryption lets the toolkit handle them instead of +// hard-failing on otherwise-readable files. +const loadDoc = async (f: File) => + PDFDocument.load(await readBuf(f), { ignoreEncryption: true }); + +export async function pageCount(file: File): Promise { + const doc = await loadDoc(file); + return doc.getPageCount(); +} + +export async function mergePdfs(files: File[]): Promise { + const merged = await PDFDocument.create(); + for (const f of files) { + const src = await loadDoc(f); + const pages = await merged.copyPages(src, src.getPageIndices()); + pages.forEach((p) => merged.addPage(p)); + } + return { name: "merged.pdf", bytes: await merged.save() }; +} + +export async function extractPages( + file: File, + ranges: string +): Promise { + const src = await loadDoc(file); + const idx = parseRanges(ranges, src.getPageCount()); + if (!idx.length) throw new Error("No valid pages in that range."); + const out = await PDFDocument.create(); + const pages = await out.copyPages(src, idx); + pages.forEach((p) => out.addPage(p)); + return { name: `${base(file.name)}-extract.pdf`, bytes: await out.save() }; +} + +export async function deletePages( + file: File, + ranges: string +): Promise { + const src = await loadDoc(file); + const remove = new Set(parseRanges(ranges, src.getPageCount())); + const keep = src + .getPageIndices() + .filter((i) => !remove.has(i)); + if (!keep.length) throw new Error("That would delete every page."); + const out = await PDFDocument.create(); + const pages = await out.copyPages(src, keep); + pages.forEach((p) => out.addPage(p)); + return { name: `${base(file.name)}-trimmed.pdf`, bytes: await out.save() }; +} + +export async function splitEvery( + file: File, + size: number +): Promise { + const src = await loadDoc(file); + const total = src.getPageCount(); + // Guard against NaN / 0 / negative / fractional input — an invalid + // chunk size here would otherwise spin the page loop forever. + const n = Math.floor(Number(size)); + const chunk = Number.isFinite(n) && n > 0 ? n : 1; + const results: OutFile[] = []; + for (let start = 0, part = 1; start < total; start += chunk, part++) { + const idx = []; + for (let i = start; i < Math.min(start + chunk, total); i++) idx.push(i); + const out = await PDFDocument.create(); + const pages = await out.copyPages(src, idx); + pages.forEach((p) => out.addPage(p)); + results.push({ + name: `${base(file.name)}-part${part}.pdf`, + bytes: await out.save(), + }); + } + return results; +} + +export async function rotatePdf( + file: File, + deg: number, + ranges?: string +): Promise { + const doc = await loadDoc(file); + const target = ranges + ? new Set(parseRanges(ranges, doc.getPageCount())) + : null; + doc.getPages().forEach((p, i) => { + if (!target || target.has(i)) { + const cur = p.getRotation().angle; + p.setRotation(degrees((cur + deg) % 360)); + } + }); + return { name: `${base(file.name)}-rotated.pdf`, bytes: await doc.save() }; +} + +export async function imagesToPdf(files: File[]): Promise { + const doc = await PDFDocument.create(); + for (const f of files) { + const buf = await readBuf(f); + const img = /png$/i.test(f.type || f.name) + ? await doc.embedPng(buf) + : await doc.embedJpg(buf); + const page = doc.addPage([img.width, img.height]); + page.drawImage(img, { x: 0, y: 0, width: img.width, height: img.height }); + } + if (doc.getPageCount() === 0) throw new Error("No images provided."); + return { name: "images.pdf", bytes: await doc.save() }; +} + +export async function pdfToImages( + file: File, + scale = 2 +): Promise { + const data = new Uint8Array(await readBuf(file)); + const pdf = await pdfjs.getDocument({ data }).promise; + const out: OutFile[] = []; + for (let n = 1; n <= pdf.numPages; n++) { + const page = await pdf.getPage(n); + const viewport = page.getViewport({ scale }); + const canvas = document.createElement("canvas"); + canvas.width = viewport.width; + canvas.height = viewport.height; + const ctx = canvas.getContext("2d")!; + await page.render({ canvasContext: ctx, viewport }).promise; + const blob: Blob = await new Promise((res) => + canvas.toBlob((b) => res(b!), "image/png") + ); + out.push({ + name: `${base(file.name)}-p${n}.png`, + bytes: new Uint8Array(await blob.arrayBuffer()), + }); + } + return out; +} + +export async function addPageNumbers(file: File): Promise { + const doc = await loadDoc(file); + const font = await doc.embedFont(StandardFonts.Helvetica); + doc.getPages().forEach((p, i) => { + const { width } = p.getSize(); + const label = `${i + 1} / ${doc.getPageCount()}`; + const w = font.widthOfTextAtSize(label, 10); + p.drawText(label, { + x: width / 2 - w / 2, + y: 24, + size: 10, + font, + color: rgb(0.35, 0.35, 0.35), + }); + }); + return { name: `${base(file.name)}-numbered.pdf`, bytes: await doc.save() }; +} + +export async function addWatermark( + file: File, + text: string +): Promise { + const doc = await loadDoc(file); + const font = await doc.embedFont(StandardFonts.HelveticaBold); + const label = (text || "DRAFT").slice(0, 40); + doc.getPages().forEach((p) => { + const { width, height } = p.getSize(); + // Auto-size so the rotated text always fits the page diagonal. + const diag = Math.hypot(width, height); + let size = 56; + while (size > 12 && font.widthOfTextAtSize(label, size) > diag * 0.7) + size -= 4; + const tw = font.widthOfTextAtSize(label, size); + const rad = (45 * Math.PI) / 180; + p.drawText(label, { + x: width / 2 - (tw / 2) * Math.cos(rad), + y: height / 2 - (tw / 2) * Math.sin(rad), + size, + font, + color: rgb(0.6, 0.6, 0.6), + rotate: degrees(45), + opacity: 0.18, + }); + }); + return { name: `${base(file.name)}-watermark.pdf`, bytes: await doc.save() }; +} + +/** Lightweight re-save: strips redundant objects and re-streams. */ +export async function compressPdf(file: File): Promise { + const doc = await loadDoc(file); + const bytes = await doc.save({ useObjectStreams: true }); + return { name: `${base(file.name)}-compressed.pdf`, bytes }; +} + +export function downloadFile(f: OutFile) { + const isPng = f.name.endsWith(".png"); + // Copy into a fresh ArrayBuffer so Blob gets a clean BlobPart. + const buf = f.bytes.slice(); + const blob = new Blob([buf], { + type: isPng ? "image/png" : "application/pdf", + }); + const url = URL.createObjectURL(blob); + const a = document.createElement("a"); + a.href = url; + a.download = f.name; + a.click(); + setTimeout(() => URL.revokeObjectURL(url), 4000); +} diff --git a/filey-erp/src/lib/ranges.ts b/filey-erp/src/lib/ranges.ts new file mode 100644 index 0000000..924ba1c --- /dev/null +++ b/filey-erp/src/lib/ranges.ts @@ -0,0 +1,20 @@ +/** Parse "1-3,5,8-" (1-based) into a sorted unique 0-based index list. */ +export function parseRanges(input: string, pageCount: number): number[] { + const out = new Set(); + for (const part of input + .split(",") + .map((s) => s.trim()) + .filter(Boolean)) { + const m = part.match(/^(\d+)?\s*-\s*(\d+)?$/); + if (m) { + const a = m[1] ? parseInt(m[1], 10) : 1; + const b = m[2] ? parseInt(m[2], 10) : pageCount; + for (let i = a; i <= b; i++) + if (i >= 1 && i <= pageCount) out.add(i - 1); + } else if (/^\d+$/.test(part)) { + const i = parseInt(part, 10); + if (i >= 1 && i <= pageCount) out.add(i - 1); + } + } + return [...out].sort((x, y) => x - y); +} diff --git a/filey-erp/src/lib/supabase.ts b/filey-erp/src/lib/supabase.ts new file mode 100644 index 0000000..629d10e --- /dev/null +++ b/filey-erp/src/lib/supabase.ts @@ -0,0 +1,30 @@ +import { createClient, SupabaseClient } from "@supabase/supabase-js"; + +const url = import.meta.env.VITE_SUPABASE_URL as string | undefined; +const anonKey = import.meta.env.VITE_SUPABASE_ANON_KEY as string | undefined; + +export const isConfigured = + !!url && + !!anonKey && + !url.includes("your-project") && + !anonKey.includes("your-anon-key"); + +export const supabase: SupabaseClient | null = isConfigured + ? createClient(url!, anonKey!, { + auth: { + persistSession: true, + autoRefreshToken: true, + detectSessionInUrl: false, + }, + }) + : null; + +/** Returns the client or throws a clear, actionable error. */ +export function sb(): SupabaseClient { + if (!supabase) { + throw new Error( + "Supabase is not configured. Set VITE_SUPABASE_URL and VITE_SUPABASE_ANON_KEY in filey-erp/.env" + ); + } + return supabase; +} diff --git a/filey-erp/src/main.tsx b/filey-erp/src/main.tsx new file mode 100644 index 0000000..0b231f2 --- /dev/null +++ b/filey-erp/src/main.tsx @@ -0,0 +1,13 @@ +import React from "react"; +import ReactDOM from "react-dom/client"; +import App from "./App"; +import ErrorBoundary from "./components/ErrorBoundary"; +import "./index.css"; + +ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render( + + + + + , +); diff --git a/filey-erp/src/modules/registry.tsx b/filey-erp/src/modules/registry.tsx new file mode 100644 index 0000000..424740a --- /dev/null +++ b/filey-erp/src/modules/registry.tsx @@ -0,0 +1,168 @@ +// Filey module registry — an Odoo-style "mini app" system. +// Every screen is a self-contained module with a manifest. Non-core +// modules can be enabled/disabled per user from Settings → Apps. +import { + LayoutGrid, + Boxes, + ClipboardList, + FileText, + FileSignature, + Target, + Users, + ShoppingCart, + BarChart3, + Contact, + Landmark, + Wrench, + Settings2, + type LucideIcon, +} from "lucide-react"; +import type { ReactElement } from "react"; + +import Overview from "../pages/Overview"; +import Inventory from "../pages/Inventory"; +import Orders from "../pages/Orders"; +import Invoicing from "../pages/Invoicing"; +import Quoting from "../pages/Quoting"; +import Crm from "../pages/Crm"; +import Suppliers from "../pages/Suppliers"; +import Purchase from "../pages/Purchase"; +import Reports from "../pages/Reports"; +import People from "../pages/People"; +import Accounting from "../pages/Accounting"; +import ToolsPage from "../pages/PdfTools"; +import Settings from "../pages/Tools"; + +export interface AppModule { + id: string; + label: string; + short: string; + desc: string; + icon: LucideIcon; + to: string; + element: ReactElement; + /** Core modules are always on and cannot be disabled. */ + core?: boolean; +} + +export const MODULES: AppModule[] = [ + { + id: "overview", + label: "Overview", + short: "Overview", + desc: "Inventory KPIs & operational snapshot", + icon: LayoutGrid, + to: "/overview", + element: , + core: true, + }, + { + id: "inventory", + label: "Inventory", + short: "Inventory", + desc: "Products, stock levels & reorder alerts", + icon: Boxes, + to: "/inventory", + element: , + }, + { + id: "orders", + label: "Orders", + short: "Orders", + desc: "Sales orders & fulfilment status", + icon: ClipboardList, + to: "/orders", + element: , + }, + { + id: "invoicing", + label: "Invoicing", + short: "Invoicing", + desc: "FTA tax invoices with live preview", + icon: FileText, + to: "/invoicing", + element: , + }, + { + id: "quoting", + label: "Quoting", + short: "Quoting", + desc: "Create quotations & convert leads", + icon: FileSignature, + to: "/quoting", + element: , + }, + { + id: "crm", + label: "CRM", + short: "CRM", + desc: "Customer dashboard & pipeline", + icon: Target, + to: "/crm", + element: , + }, + { + id: "suppliers", + label: "Suppliers", + short: "Suppliers", + desc: "Supply groups & sourcing performance", + icon: Users, + to: "/suppliers", + element: , + }, + { + id: "purchase", + label: "Purchase", + short: "Purchase", + desc: "Purchase spend & expense tracking", + icon: ShoppingCart, + to: "/purchase", + element: , + }, + { + id: "reports", + label: "Reports", + short: "Reports", + desc: "Inventory & financial reporting", + icon: BarChart3, + to: "/reports", + element: , + }, + { + id: "people", + label: "People", + short: "People", + desc: "Employees, attendance & payroll", + icon: Contact, + to: "/people", + element: , + }, + { + id: "accounting", + label: "Accounting", + short: "Accounting", + desc: "Chart of accounts & journal entries", + icon: Landmark, + to: "/accounting", + element: , + }, + { + id: "tools", + label: "Tools", + short: "Tools", + desc: "Local PDF toolkit", + icon: Wrench, + to: "/tools", + element: , + }, + { + id: "settings", + label: "Settings", + short: "Settings", + desc: "Company, account, users & system", + icon: Settings2, + to: "/settings", + element: , + core: true, + }, +]; diff --git a/filey-erp/src/pages/Accounting.tsx b/filey-erp/src/pages/Accounting.tsx new file mode 100644 index 0000000..fcbe2fd --- /dev/null +++ b/filey-erp/src/pages/Accounting.tsx @@ -0,0 +1,381 @@ +import { useEffect, useMemo, useState } from "react"; +import { Plus, TrendingUp, Wallet, Receipt, Banknote } from "lucide-react"; +import { fin, Account, Txn, FinanceReport } from "../lib/api"; +import { aed, fmtDate } from "../lib/format"; +import { + PageHeader, + MetricCard, + DataTable, + Badge, + Modal, + Field, +} from "../components/ui"; + +const ACCOUNT_TYPES = [ + "asset", + "liability", + "equity", + "revenue", + "expense", +]; + +export default function Accounting() { + const [accounts, setAccounts] = useState([]); + const [txns, setTxns] = useState([]); + const [report, setReport] = useState(null); + const [acctOpen, setAcctOpen] = useState(false); + const [jOpen, setJOpen] = useState(false); + const [tab, setTab] = useState<"journal" | "accounts">("journal"); + + const load = () => { + fin.accounts().then(setAccounts).catch(console.error); + fin.transactions().then(setTxns).catch(console.error); + fin.report().then(setReport).catch(console.error); + }; + useEffect(load, []); + + return ( +
+ + + +
+ } + /> + +
+ } + iconClass="bg-success/15 text-success" + /> + } + /> + } + iconClass="bg-danger/15 text-danger" + /> + } + iconClass="bg-info/15 text-info" + /> +
+ +
+ {(["journal", "accounts"] as const).map((t) => ( + + ))} +
+ + {tab === "journal" ? ( + + rows={txns} + empty="No journal entries yet" + columns={[ + { key: "d", label: "Date", render: (t) => fmtDate(t.txn_date) }, + { + key: "acct", + label: "Account", + render: (t) => ( + + {t.account_name} + + ), + }, + { + key: "type", + label: "Type", + render: (t) => ( + + {t.txn_type} + + ), + }, + { + key: "desc", + label: "Description", + render: (t) => t.description ?? "—", + }, + { + key: "amt", + label: "Amount", + render: (t) => ( + {aed(t.amount)} + ), + }, + ]} + /> + ) : ( + + rows={accounts} + empty="No accounts — add your first chart-of-accounts entry" + columns={[ + { + key: "code", + label: "Code", + render: (a) => ( + + {a.code} + + ), + }, + { + key: "name", + label: "Account", + render: (a) => ( + {a.name} + ), + }, + { + key: "type", + label: "Type", + render: (a) => ( + {a.account_type} + ), + }, + { + key: "bal", + label: "Balance", + render: (a) => ( + {aed(a.balance)} + ), + }, + ]} + /> + )} + + setAcctOpen(false)} + onSaved={() => { + setAcctOpen(false); + load(); + }} + /> + setJOpen(false)} + onSaved={() => { + setJOpen(false); + load(); + }} + /> +
+ ); +} + +function AccountModal({ + open, + onClose, + onSaved, +}: { + open: boolean; + onClose: () => void; + onSaved: () => void; +}) { + const [f, setF] = useState({ + code: "", + name: "", + account_type: "asset", + balance: 0, + }); + useEffect(() => { + if (open) + setF({ code: "", name: "", account_type: "asset", balance: 0 }); + }, [open]); + return ( + +
+
+ + setF({ ...f, code: e.target.value })} + /> + + + + +
+ + setF({ ...f, name: e.target.value })} + /> + + + setF({ ...f, balance: +e.target.value })} + /> + +
+
+ + +
+
+ ); +} + +function JournalModal({ + open, + accounts, + onClose, + onSaved, +}: { + open: boolean; + accounts: Account[]; + onClose: () => void; + onSaved: () => void; +}) { + const [f, setF] = useState({ + account_id: 0, + txn_type: "debit", + amount: 0, + description: "", + }); + const firstAcct = useMemo(() => accounts[0]?.id ?? 0, [accounts]); + useEffect(() => { + if (open) + setF({ + account_id: firstAcct, + txn_type: "debit", + amount: 0, + description: "", + }); + }, [open, firstAcct]); + return ( + +
+ + + +
+ + + + + setF({ ...f, amount: +e.target.value })} + /> + +
+ + + setF({ ...f, description: e.target.value }) + } + /> + +
+
+ + +
+
+ ); +} diff --git a/filey-erp/src/pages/Crm.tsx b/filey-erp/src/pages/Crm.tsx new file mode 100644 index 0000000..1175dd1 --- /dev/null +++ b/filey-erp/src/pages/Crm.tsx @@ -0,0 +1,635 @@ +import { useEffect, useMemo, useState } from "react"; +import { + Users, + UserCheck, + UserPlus, + Target, + TrendingUp, + GripVertical, + Plus, + Trophy, + CalendarDays, +} from "lucide-react"; +import { + AreaChart, + Area, + XAxis, + YAxis, + Tooltip, + ResponsiveContainer, + CartesianGrid, +} from "recharts"; +import { + crm, + Opportunity, + CrmCustomer, + Activity, + Lead, +} from "../lib/api"; +import { aed, num, fmtDate } from "../lib/format"; +import { + PageHeader, + MetricCard, + InfoCard, + Badge, + Modal, + Field, +} from "../components/ui"; + +const STAGES = [ + { id: "qualification", label: "Qualification", tone: "info" as const }, + { id: "proposal", label: "Proposal", tone: "info" as const }, + { id: "negotiation", label: "Negotiation", tone: "warn" as const }, + { id: "won", label: "Won", tone: "success" as const }, + { id: "lost", label: "Lost", tone: "danger" as const }, +]; +const STAGE_PROB: Record = { + qualification: 20, + proposal: 45, + negotiation: 70, + won: 100, + lost: 0, +}; + +export default function Crm() { + const [view, setView] = useState<"dashboard" | "pipeline">("dashboard"); + const [customers, setCustomers] = useState([]); + const [opps, setOpps] = useState([]); + const [leads, setLeads] = useState([]); + const [acts, setActs] = useState([]); + const [taskOpen, setTaskOpen] = useState(false); + + const load = () => { + crm.customers().then(setCustomers).catch(console.error); + crm.opportunities().then(setOpps).catch(console.error); + crm.leads().then(setLeads).catch(console.error); + crm.activities().then(setActs).catch(console.error); + }; + useEffect(load, []); + + const now = Date.now(); + const newCount = customers.filter( + (c) => + c.created_at && + now - new Date(c.created_at).getTime() < 30 * 86400000 + ).length; + const inactive = (c: CrmCustomer) => + (c.segment ?? "").toLowerCase().includes("inactive"); + const activeCount = customers.filter((c) => !inactive(c)).length; + const pipelineValue = opps + .filter((o) => !["won", "lost"].includes(o.stage)) + .reduce((s, o) => s + o.value, 0); + + const trend = useMemo(() => { + const base = customers.length || 8; + return ["Apr 1", "Apr 8", "Apr 15", "Apr 22", "Apr 29"].map((d, i) => ({ + name: d, + v: Math.round(base * (0.45 + i * 0.14) * 100), + })); + }, [customers]); + + const funnel = useMemo(() => { + const sum = (st: string) => + opps + .filter((o) => o.stage === st) + .reduce((a, o) => a + o.value, 0); + const cnt = (st: string) => + opps.filter((o) => o.stage === st).length; + return [ + { + label: "Leads", + n: leads.filter( + (l) => !["converted", "lost"].includes(l.status) + ).length, + v: 0, + c: "bg-primary-400", + }, + { + label: "Qualified", + n: cnt("qualification"), + v: sum("qualification"), + c: "bg-secondary-400", + }, + { + label: "Proposal", + n: cnt("proposal"), + v: sum("proposal"), + c: "bg-info", + }, + { + label: "Negotiation", + n: cnt("negotiation"), + v: sum("negotiation"), + c: "bg-warning", + }, + { label: "Won", n: cnt("won"), v: sum("won"), c: "bg-success" }, + ]; + }, [opps, leads]); + const funnelMax = Math.max(1, ...funnel.map((f) => f.n)); + + const topCustomers = useMemo(() => { + return customers + .map((c) => { + const key = (c.company || c.name || "").toLowerCase(); + const theirs = opps.filter( + (o) => o.customer_name.toLowerCase() === key + ); + return { + c, + orders: theirs.length, + spent: theirs.reduce((s, o) => s + o.value, 0), + }; + }) + .sort((a, b) => b.spent - a.spent) + .slice(0, 5); + }, [customers, opps]); + + const tasks = acts.filter((a) => !a.done).slice(0, 6); + + return ( +
+ + {(["dashboard", "pipeline"] as const).map((v) => ( + + ))} +
+ } + /> + + {view === "pipeline" ? ( + + ) : ( + <> +
+ } + /> + } + iconClass="bg-success/15 text-success" + /> + } + iconClass="bg-secondary-400/20 text-secondary-600" + /> + } + iconClass="bg-info/15 text-info" + /> + } + iconClass="bg-primary-100 text-primary-700" + /> +
+ +
+ This Month} + > +
+ + + + + + + + + + + + + + + +
+
+ + +
    + {funnel.map((f) => ( +
  • +
    + + + {f.label} + + {f.n} +
    +
    +
    +
    + {f.v > 0 && ( +

    + {aed(f.v)} +

    + )} +
  • + ))} +
+
+ + + {acts.length === 0 ? ( +

No activity yet.

+ ) : ( +
    + {acts.slice(0, 5).map((a) => ( +
  • + +
    +

    + {a.subject} +

    +

    + {a.kind} · {fmtDate(a.created_at)} +

    +
    +
  • + ))} +
+ )} +
+
+ +
+ + Showing {topCustomers.length} of {customers.length} + + } + > +
+ + + + + + + + + + + + {topCustomers.map(({ c, orders, spent }) => ( + + + + + + + + ))} + {topCustomers.length === 0 && ( + + + + )} + +
CustomerEmailDealsValueStatus
+

+ {c.company || c.name} +

+

+ {c.name} +

+
+ {c.email ?? "—"} + + {orders} + + {aed(spent)} + + + {inactive(c) ? "Inactive" : "Active"} + +
+ No customers yet — add one from Invoicing. +
+
+
+ + setTaskOpen(true)} + > + Add + + } + > +
    + {tasks.length === 0 && ( +
  • + Nothing due — you're all caught up. +
  • + )} + {tasks.map((a) => ( +
  • +
  • + ))} +
+
+
+ + )} + + setTaskOpen(false)} + onSaved={() => { + setTaskOpen(false); + load(); + }} + /> + + ); +} + +/* ---------------- Pipeline board (drag & drop) ---------------- */ + +function PipelineBoard({ + opps, + setOpps, + reload, +}: { + opps: Opportunity[]; + setOpps: React.Dispatch>; + reload: () => void; +}) { + const [dragId, setDragId] = useState(null); + const [over, setOver] = useState(null); + + const byStage = useMemo(() => { + const m: Record = {}; + for (const s of STAGES) m[s.id] = []; + for (const o of opps) (m[o.stage] ??= []).push(o); + return m; + }, [opps]); + + const drop = async (stage: string) => { + setOver(null); + const id = dragId; + setDragId(null); + if (id == null) return; + const opp = opps.find((o) => o.id === id); + if (!opp || opp.stage === stage) return; + setOpps((prev) => + prev.map((o) => + o.id === id + ? { ...o, stage, probability: STAGE_PROB[stage] ?? o.probability } + : o + ) + ); + try { + await crm.setOppStage(id, stage); + } catch { + reload(); + } + }; + + return ( +
+ {STAGES.map((s) => { + const list = byStage[s.id] ?? []; + const total = list.reduce((a, o) => a + o.value, 0); + return ( +
{ + e.preventDefault(); + setOver(s.id); + }} + onDragLeave={() => setOver((v) => (v === s.id ? null : v))} + onDrop={() => drop(s.id)} + className={`w-72 shrink-0 rounded-2xl border p-3 transition-colors ${ + over === s.id + ? "border-primary-300 bg-primary-50" + : "border-brand-200 bg-brand-50/60" + }`} + > +
+
+ {s.label} + + {list.length} + +
+ + {aed(total)} + +
+
+ {list.map((o) => ( +
setDragId(o.id)} + onDragEnd={() => { + setDragId(null); + setOver(null); + }} + className={`card !p-3 cursor-grab active:cursor-grabbing select-none ${ + dragId === o.id ? "opacity-50" : "" + }`} + > +
+ +
+

+ {o.title} +

+

+ {o.customer_name} +

+
+ + {aed(o.value)} + + + {o.probability}% + +
+
+
+
+ ))} + {list.length === 0 && ( +

+ Drop deals here +

+ )} +
+
+ ); + })} + {opps.length === 0 && ( +
+ + No opportunities yet. +
+ )} +
+ ); +} + +function TaskModal({ + open, + onClose, + onSaved, +}: { + open: boolean; + onClose: () => void; + onSaved: () => void; +}) { + const [f, setF] = useState({ + subject: "", + kind: "follow-up", + due_date: "", + }); + useEffect(() => { + if (open) setF({ subject: "", kind: "follow-up", due_date: "" }); + }, [open]); + return ( + +
+ + setF({ ...f, subject: e.target.value })} + /> + +
+ + + + + setF({ ...f, due_date: e.target.value })} + /> + +
+
+
+ + +
+
+ ); +} diff --git a/filey-erp/src/pages/Inventory.tsx b/filey-erp/src/pages/Inventory.tsx new file mode 100644 index 0000000..e36adc1 --- /dev/null +++ b/filey-erp/src/pages/Inventory.tsx @@ -0,0 +1,281 @@ +import { useEffect, useMemo, useState } from "react"; +import { Plus, Trash2, Boxes, AlertTriangle, Layers, Tag } from "lucide-react"; +import { erp, Product } from "../lib/api"; +import { aed, num } from "../lib/format"; +import { + PageHeader, + MetricCard, + DataTable, + Badge, + Modal, + Field, +} from "../components/ui"; + +export default function Inventory() { + const [products, setProducts] = useState([]); + const [q, setQ] = useState(""); + const [cat, setCat] = useState("all"); + const [open, setOpen] = useState(false); + + const load = () => + erp.products().then(setProducts).catch(console.error); + useEffect(() => { + load(); + }, []); + + const categories = useMemo( + () => + Array.from( + new Set(products.map((p) => p.category || "Unsorted")) + ).sort(), + [products] + ); + + const filtered = useMemo( + () => + products.filter( + (p) => + (cat === "all" || (p.category || "Unsorted") === cat) && + (p.name.toLowerCase().includes(q.toLowerCase()) || + p.sku.toLowerCase().includes(q.toLowerCase())) + ), + [products, q, cat] + ); + + const lowStock = products.filter((p) => p.quantity <= p.reorder_level); + const invValue = products.reduce( + (s, p) => s + p.quantity * p.cost_price, + 0 + ); + + return ( +
+ setOpen(true)}> + New product + + } + /> + +
+ } + /> + } + iconClass="bg-secondary-400/20 text-secondary-600" + /> + } + iconClass="bg-danger/15 text-danger" + /> + } + iconClass="bg-info/15 text-info" + /> +
+ +
+ setQ(e.target.value)} + /> + + {categories.map((c) => ( + + ))} +
+ + + rows={filtered} + empty="No products match your filters" + columns={[ + { + key: "sku", + label: "SKU", + render: (p) => ( + {p.sku} + ), + }, + { + key: "name", + label: "Product", + render: (p) => ( + {p.name} + ), + }, + { + key: "cat", + label: "Category", + render: (p) => p.category ?? "—", + }, + { + key: "price", + label: "Unit Price", + render: (p) => aed(p.unit_price), + }, + { + key: "qty", + label: "Stock", + render: (p) => ( + + {p.quantity} + {p.quantity === 0 ? ( + Out + ) : p.quantity <= p.reorder_level ? ( + Low + ) : ( + OK + )} + + ), + }, + { + key: "act", + label: "", + render: (p) => ( + + ), + }, + ]} + /> + + setOpen(false)} + onSaved={load} + /> +
+ ); +} + +function ProductModal({ + open, + onClose, + onSaved, +}: { + open: boolean; + onClose: () => void; + onSaved: () => void; +}) { + const [f, setF] = useState({ + sku: "", + name: "", + category: "", + unit_price: 0, + cost_price: 0, + quantity: 0, + reorder_level: 0, + }); + return ( + +
+ + setF({ ...f, sku: e.target.value })} + /> + + + setF({ ...f, name: e.target.value })} + /> + + + setF({ ...f, category: e.target.value })} + /> + + + setF({ ...f, unit_price: +e.target.value })} + /> + + + setF({ ...f, cost_price: +e.target.value })} + /> + + + setF({ ...f, quantity: +e.target.value })} + /> + + + setF({ ...f, reorder_level: +e.target.value })} + /> + +
+
+ + +
+
+ ); +} diff --git a/filey-erp/src/pages/Invoicing.tsx b/filey-erp/src/pages/Invoicing.tsx new file mode 100644 index 0000000..3dfc91b --- /dev/null +++ b/filey-erp/src/pages/Invoicing.tsx @@ -0,0 +1,1976 @@ +import { useEffect, useRef, useState } from "react"; +import { + Plus, + Trash2, + ArrowLeft, + Download, + Save, + Building2, + Upload, + X, + Pencil, + Copy, + Check, + CheckCircle2, + Eye, + MoreHorizontal, + Send, + Monitor, + Smartphone, + Minus, + Settings, + StickyNote, + Paperclip, +} from "lucide-react"; +import { + billing, + crm, + InvoiceDocSummary, + InvoiceDocInput, + CompanyProfile, + CrmCustomer, +} from "../lib/api"; +import { fmtDate } from "../lib/format"; +import { invoiceTotals } from "../lib/money"; +import { sendEmail, emailShell } from "../lib/email"; +import FitPreview from "../components/FitPreview"; +import { + PageHeader, + DataTable, + Badge, + statusTone, + Modal, + Field, +} from "../components/ui"; + +type Item = { description: string; qty: number; unit_price: number }; +type Form = Omit & { items: Item[] }; + +const TEMPLATES = [ + { id: "minimal", name: "Minimal" }, + { id: "classic", name: "Classic" }, + { id: "modern", name: "Modern" }, + { id: "corporate", name: "Corporate" }, + { id: "elegant", name: "Elegant" }, + { id: "bold", name: "Bold" }, + { id: "tech", name: "Tech" }, + { id: "creative", name: "Creative" }, + { id: "receipt", name: "Receipt" }, + { id: "monogram", name: "Monogram" }, +]; + +const today = () => new Date().toISOString().slice(0, 10); +const addDays = (n: number) => + new Date(Date.now() + n * 86400000).toISOString().slice(0, 10); + +function money(v: number, ccy: string) { + try { + return new Intl.NumberFormat("en", { + style: "currency", + currency: ccy, + maximumFractionDigits: 2, + }).format(v || 0); + } catch { + return `${ccy} ${(v || 0).toFixed(2)}`; + } +} + +function blankForm(c: CompanyProfile): Form { + const y = new Date().getFullYear(); + return { + number: `INV-${y}-${String(Math.floor(Math.random() * 9000) + 1000)}`, + status: "draft", + template: c.default_template || "minimal", + accent: c.default_accent || "#222222", + currency: c.currency || "AED", + seller_name: c.name, + seller_address: c.address, + seller_trn: c.trn, + seller_email: c.email, + seller_phone: c.phone, + logo: c.logo, + customer_name: "", + customer_address: "", + customer_trn: "", + customer_email: "", + issue_date: today(), + due_date: undefined, + notes: "Thank you for your business.", + terms: "Payment due within 30 days.", + tax_rate: c.default_tax_rate ?? 5, + discount: 0, + items: [{ description: "", qty: 1, unit_price: 0 }], + }; +} + +const totals = (f: Form) => + invoiceTotals(f.items, f.discount || 0, f.tax_rate || 0); + +export default function Invoicing() { + const [company, setCompany] = useState(null); + const [docs, setDocs] = useState([]); + const [form, setForm] = useState
(null); + const [companyOpen, setCompanyOpen] = useState(false); + const [saving, setSaving] = useState(false); + + const loadDocs = () => + billing.listDocs().then(setDocs).catch(console.error); + + useEffect(() => { + billing.getCompany().then(setCompany).catch(console.error); + loadDocs(); + }, []); + + const newInvoice = () => { + if (company) setForm(blankForm(company)); + }; + + const editInvoice = async (id: number) => { + const d = await billing.getDoc(id); + setForm({ + id: d.id, + number: d.number, + status: d.status, + template: d.template, + accent: d.accent, + currency: d.currency, + seller_name: d.seller_name, + seller_address: d.seller_address, + seller_trn: d.seller_trn, + seller_email: d.seller_email, + seller_phone: d.seller_phone, + logo: d.logo, + customer_name: d.customer_name, + customer_address: d.customer_address, + customer_trn: d.customer_trn, + customer_email: d.customer_email, + issue_date: d.issue_date, + due_date: d.due_date, + notes: d.notes, + terms: d.terms, + tax_rate: d.tax_rate, + discount: d.discount, + items: d.items.map((i) => ({ + description: i.description, + qty: i.qty, + unit_price: i.unit_price, + })), + }); + }; + + const duplicateInvoice = async (id: number) => { + const d = await billing.getDoc(id); + const y = new Date().getFullYear(); + setForm({ + number: `INV-${y}-${String(Math.floor(Math.random() * 9000) + 1000)}`, + status: "draft", + template: d.template, + accent: d.accent, + currency: d.currency, + seller_name: d.seller_name, + seller_address: d.seller_address, + seller_trn: d.seller_trn, + seller_email: d.seller_email, + seller_phone: d.seller_phone, + logo: d.logo, + customer_name: d.customer_name, + customer_address: d.customer_address, + customer_trn: d.customer_trn, + customer_email: d.customer_email, + issue_date: today(), + due_date: addDays(30), + notes: d.notes, + terms: d.terms, + tax_rate: d.tax_rate, + discount: d.discount, + items: d.items.map((i) => ({ + description: i.description, + qty: i.qty, + unit_price: i.unit_price, + })), + }); + }; + + const save = async () => { + if (!form) return; + setSaving(true); + try { + // Empty date inputs must become undefined, not "" (invalid SQL date). + const payload = { + ...form, + issue_date: form.issue_date || undefined, + due_date: form.due_date || undefined, + }; + const id = await billing.saveDoc(payload as InvoiceDocInput); + setForm({ ...form, id }); + await loadDocs(); + } catch (e) { + alert(`Could not save: ${e}`); + } finally { + setSaving(false); + } + }; + + if (form) { + return ( + { + setForm(null); + loadDocs(); + }} + onSave={save} + saving={saving} + /> + ); + } + + return ( +
+ + + +
+ } + /> + + + rows={docs} + empty="No invoices yet — create your first one" + columns={[ + { + key: "no", + label: "Invoice #", + render: (d) => ( + + {d.number} + + ), + }, + { + key: "cust", + label: "Customer", + render: (d) => ( + {d.customer_name} + ), + }, + { + key: "tpl", + label: "Template", + render: (d) => ( + {d.template} + ), + }, + { + key: "total", + label: "Total", + render: (d) => ( + {money(d.total, "AED")} + ), + }, + { + key: "status", + label: "Status", + render: (d) => ( + {d.status} + ), + }, + { + key: "upd", + label: "Updated", + render: (d) => fmtDate(d.updated_at), + }, + { + key: "act", + label: "", + render: (d) => ( +
+ + + +
+ ), + }, + ]} + /> + + {company && ( + setCompanyOpen(false)} + onSaved={(c) => { + setCompany(c); + setCompanyOpen(false); + }} + /> + )} + + ); +} + +/* ---------------- Editor ---------------- */ + +function Editor({ + form, + setForm, + onBack, + onSave, + saving, +}: { + form: Form; + setForm: (f: Form) => void; + onBack: () => void; + onSave: () => void; + saving: boolean; +}) { + const set = (k: K, v: Form[K]) => + setForm({ ...form, [k]: v }); + + const setItem = (idx: number, patch: Partial) => { + const items = form.items.map((it, i) => + i === idx ? { ...it, ...patch } : it + ); + setForm({ ...form, items }); + }; + const addItem = () => + setForm({ + ...form, + items: [...form.items, { description: "", qty: 1, unit_price: 0 }], + }); + const removeItem = (idx: number) => + setForm({ ...form, items: form.items.filter((_, i) => i !== idx) }); + + const onLogo = (file?: File) => { + if (!file) return; + const reader = new FileReader(); + reader.onload = () => set("logo", String(reader.result)); + reader.readAsDataURL(file); + }; + + const [customers, setCustomers] = useState([]); + const [custModal, setCustModal] = useState(false); + const loadCustomers = () => + crm.customers().then(setCustomers).catch(() => {}); + useEffect(() => { + loadCustomers(); + }, []); + + const applyCustomer = (c: CrmCustomer) => + setForm({ + ...form, + customer_name: c.company || c.name, + customer_address: c.address ?? "", + customer_email: c.email ?? "", + customer_trn: c.segment?.startsWith("TRN:") + ? c.segment.slice(4).trim() + : form.customer_trn, + }); + + const [viewAll, setViewAll] = useState(false); + const [zoom, setZoom] = useState(100); + const [device, setDevice] = useState<"desktop" | "mobile">("desktop"); + const [showDiscount, setShowDiscount] = useState((form.discount || 0) > 0); + const m = (v: number) => money(v, form.currency || "AED"); + const shown = viewAll ? TEMPLATES : TEMPLATES.slice(0, 5); + + const saveAndSend = async () => { + await onSave(); + if (!form.customer_email) { + alert("Add a customer email (Invoice Details) to send this invoice."); + return; + } + const t = invoiceTotals(form.items, form.discount || 0, form.tax_rate || 0); + try { + await sendEmail({ + to: form.customer_email, + subject: `Invoice ${form.number} from ${form.seller_name}`, + html: emailShell( + `Invoice ${form.number}`, + `

Dear ${form.customer_name || "customer"},

+

Please find your invoice ${form.number}.

+ + + ${ + t.discount + ? `` + : "" + } + ${ + (form.tax_rate || 0) > 0 + ? `` + : "" + } + +
Subtotal${m( + t.subtotal + )}
Discount-${m( + t.discount + )}
VAT (${form.tax_rate}%)${m( + t.tax + )}
Total${m( + t.total + )}
+

${form.notes ?? ""}

` + ), + }); + alert(`Invoice emailed to ${form.customer_email}`); + } catch (e) { + alert(e instanceof Error ? e.message : String(e)); + } + }; + + return ( +
+ {/* header bar */} +
+
+ +
+

+ Create Invoice +

+

+ Create and send professional invoices to your customers +

+
+
+
+ {form.id ? ( + + Saved + + ) : ( + + Unsaved + + )} + + + +
+
+ + setCustModal(false)} + onSaved={(c) => { + applyCustomer(c); + setCustModal(false); + loadCustomers(); + }} + /> + +
+ {/* ---------- left: builder ---------- */} +
+ {/* 1 · Choose template */} + setViewAll((v) => !v)} + > + {viewAll ? "Show less" : "View all templates"} + + } + > +
+ {shown.map((tpl) => { + const active = form.template === tpl.id; + return ( + + ); + })} +
+
+ + {/* 2 · Invoice details */} + +
+
+ +
+ + +
+
+ + set("customer_name", e.target.value)} + /> + + +