diff --git a/.github/workflows/admin.yml b/.github/workflows/admin.yml deleted file mode 100644 index fe6b06f..0000000 --- a/.github/workflows/admin.yml +++ /dev/null @@ -1,51 +0,0 @@ -name: Frontend admin - -on: - push: - branches: [master] - paths: - - 'apps/admin/**' - - '.github/workflows/admin.yml' - pull_request: - paths: - - 'apps/admin/**' - - '.github/workflows/admin.yml' - -# El token de GitHub de estos jobs solo necesita leer el código. -permissions: - contents: read - -defaults: - run: - working-directory: apps/admin - -jobs: - verificar: - name: Auditar, analizar y compilar - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - - uses: actions/setup-node@v4 - with: - node-version: '22' - cache: npm - cache-dependency-path: apps/admin/package-lock.json - - # Sin scripts de instalación: ninguno hace falta para compilar, y son la - # vía habitual de los paquetes npm comprometidos. - - name: Instalar dependencias - run: npm ci --ignore-scripts - - # Falla con vulnerabilidades altas o críticas, como las tres de Next.js - # corregidas el 2026-10-30 (16.4.0 -> 16.4.3). - - name: Auditar dependencias - run: npm audit --audit-level=high - - - name: Analisis estatico - run: npm run lint - - - name: Compilar - run: npm run build - env: - NEXT_TELEMETRY_DISABLED: '1' diff --git a/.github/workflows/admin_flutter.yml b/.github/workflows/admin_flutter.yml new file mode 100644 index 0000000..b31680b --- /dev/null +++ b/.github/workflows/admin_flutter.yml @@ -0,0 +1,53 @@ +name: Panel admin (Flutter) + +# Panel de administración en Flutter web (apps/admin_flutter). Se compila con +# la versión de Flutter más vieja que usa el equipo (Dart 3.11), para que un +# paquete que exija algo más nuevo falle aquí y no en el computador de alguien. +on: + push: + branches: [master] + paths: + - 'apps/admin_flutter/**' + - '.github/workflows/admin_flutter.yml' + pull_request: + paths: + - 'apps/admin_flutter/**' + - '.github/workflows/admin_flutter.yml' + +# El token de GitHub de estos jobs solo necesita leer el código. +permissions: + contents: read + +defaults: + run: + working-directory: apps/admin_flutter + +jobs: + verificar: + name: Analizar y compilar + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: subosito/flutter-action@1a449444c387b1966244ae4d4f8c696479add0b2 # v2.23.0 + with: + channel: stable + flutter-version: 3.41.x + cache: true + + - name: Resolver dependencias + run: flutter pub get + + # Falla con errores y warnings. Las sugerencias de estilo (info) se + # muestran pero no bloquean. + - name: Analisis estatico + run: flutter analyze --no-fatal-infos + + # Pruebas sin red: usan repositorios en memoria. + - name: Pruebas + run: flutter test + + # Compila en modo maqueta (sin claves): solo verifica que el panel + # compila para web. + - name: Compilar para web + run: flutter build web --release \ No newline at end of file diff --git a/README.md b/README.md index 2aec83c..d3bc557 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ El tour está diseñado como **un módulo de la app oficial UTB APP**, con su mi | **Backend** | [`services/api/`](services/api) | ASP.NET Core (.NET 10), EF Core, PostgreSQL y Storage de Supabase | API de contenido para la app y API de administración para el panel. | | **Frontend móvil** | [`packages/tour_virtual/`](packages/tour_virtual) | Flutter, Riverpod, go_router | **El módulo**: todo el tour, listo para incrustarse en la UTB APP. | | | [`apps/mobile/`](apps/mobile) | Flutter | App de demostración que abre el módulo, genera el APK y corre las pruebas. | -| **Frontend admin** | [`apps/admin/`](apps/admin) | Next.js 16, React 19 | Panel para editar lugares, escenas y medios. Hoy lista los POI. | +| **Frontend admin** | [`apps/admin_flutter/`](apps/admin_flutter) | Flutter web, Supabase Auth | Panel para administrar lugares, ubicación, multimedia (360°, fotos, video, audio con idioma y subtítulos), métricas y administradores. | Además: @@ -110,14 +110,16 @@ Las tareas pendientes del backend están en [`docs/tareas-backend.md`](docs/tare ### Frontend admin -Con la API corriendo en `http://localhost:5209`, que el panel alcanza mediante el proxy de `next.config.ts`: +Con la API corriendo en `http://localhost:5209`: ```bash -cd apps/admin -npm install -npm run dev # http://localhost:3000 +cd apps/admin_flutter +flutter pub get +flutter run -d chrome --dart-define=USE_MOCK=false --dart-define=SUPABASE_ANON_KEY= ``` +Sin `--dart-define` corre en modo maqueta, sin API. Parámetros y modos en [`apps/admin_flutter/README.md`](apps/admin_flutter/README.md). + ## Ramas - **`master`** contiene la última versión integrada de las tres partes. @@ -129,7 +131,7 @@ CI (GitHub Actions) verifica en cada pull request: - el módulo: formato, código generado y análisis; - la app de demostración: pruebas y APK de depuración; - la API: compilación y dependencias vulnerables; -- el panel admin: dependencias vulnerables, análisis y compilación; +- el panel admin: análisis y compilación para web; - el contrato OpenAPI. ## Documentación @@ -154,6 +156,6 @@ El SRS (`SRSIEEE830TourVirtualUTBv3.1.pdf`) es la autoridad sobre los requisitos - Panorámicas, audios, el mapa ilustrado y los documentos fuente son material de la universidad. Viven fuera del repositorio (`assets/`, ignorado). - Toda panorámica pasa por el difuminado de caras y la eliminación de EXIF antes de publicarse (Ley 1581; ver `docs/arquitectura.md`, sección 7). - Las capturas de la UTB APP muestran datos personales y no se suben. -- El panel admin **nunca** envía `X-Admin-Key` desde el navegador. Cuando escriba contenido, debe hacerlo desde el servidor de Next.js (route handlers o server actions), con la clave en una variable de entorno sin el prefijo `NEXT_PUBLIC_`. Además, el panel necesita su propio inicio de sesión antes de publicarse. +- El panel admin **nunca** envía `X-Admin-Key` desde el navegador: inicia sesión con Supabase Auth y manda el token de la sesión, y la API exige el rol `admin` en `perfiles`. La publishable key de Supabase se pasa al compilar (`--dart-define`) y no se versiona. - La API solo acepta imágenes que puede volver a codificar (JPEG, PNG, WebP; nunca SVG) y de hasta 64 megapíxeles. -- El CI falla si una dependencia tiene una vulnerabilidad conocida: `npm audit` en el panel y `dotnet list package --vulnerable` en la API. Las acciones de terceros van fijadas por commit, y los workflows solo tienen permiso de lectura. +- El CI falla si una dependencia de la API tiene una vulnerabilidad conocida (`dotnet list package --vulnerable`). Las acciones de terceros van fijadas por commit, y los workflows solo tienen permiso de lectura. diff --git a/apps/admin/.gitignore b/apps/admin/.gitignore deleted file mode 100644 index 5ef6a52..0000000 --- a/apps/admin/.gitignore +++ /dev/null @@ -1,41 +0,0 @@ -# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. - -# dependencies -/node_modules -/.pnp -.pnp.* -.yarn/* -!.yarn/patches -!.yarn/plugins -!.yarn/releases -!.yarn/versions - -# testing -/coverage - -# next.js -/.next/ -/out/ - -# production -/build - -# misc -.DS_Store -*.pem - -# debug -npm-debug.log* -yarn-debug.log* -yarn-error.log* -.pnpm-debug.log* - -# env files (can opt-in for committing if needed) -.env* - -# vercel -.vercel - -# typescript -*.tsbuildinfo -next-env.d.ts diff --git a/apps/admin/AGENTS.md b/apps/admin/AGENTS.md deleted file mode 100644 index af3b7c8..0000000 --- a/apps/admin/AGENTS.md +++ /dev/null @@ -1,9 +0,0 @@ - - -## This is NOT the Next.js you know - -This version has breaking changes — APIs, conventions, and file structure may all differ from your training data. Read the relevant guide in `node_modules/next/dist/docs/` (resolved from this file's directory; in monorepos the `next` package may not be visible from the repo root) before writing any code. Heed deprecation notices. - -This block is written and re-added by `next dev` — verify at `node_modules/next/dist/server/lib/generate-agent-files.js`. Removing it from a diff only re-creates the uncommitted change; committing it with your work keeps the tree clean. - - diff --git a/apps/admin/README.md b/apps/admin/README.md deleted file mode 100644 index e215bc4..0000000 --- a/apps/admin/README.md +++ /dev/null @@ -1,36 +0,0 @@ -This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app). - -## Getting Started - -First, run the development server: - -```bash -npm run dev -# or -yarn dev -# or -pnpm dev -# or -bun dev -``` - -Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. - -You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file. - -This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel. - -## Learn More - -To learn more about Next.js, take a look at the following resources: - -- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. -- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial. - -You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome! - -## Deploy on Vercel - -The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js. - -Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details. diff --git a/apps/admin/app/(panel)/layout.tsx b/apps/admin/app/(panel)/layout.tsx deleted file mode 100644 index 3e3d8e0..0000000 --- a/apps/admin/app/(panel)/layout.tsx +++ /dev/null @@ -1,14 +0,0 @@ -import { Sidebar } from "@/components/Sidebar"; - -export default function PanelLayout({ - children, -}: { - children: React.ReactNode; -}) { - return ( -
- -
{children}
-
- ); -} \ No newline at end of file diff --git a/apps/admin/app/(panel)/pois/page.tsx b/apps/admin/app/(panel)/pois/page.tsx deleted file mode 100644 index 3bac572..0000000 --- a/apps/admin/app/(panel)/pois/page.tsx +++ /dev/null @@ -1,46 +0,0 @@ -"use client"; - -import { useEffect, useState } from "react"; -import { api, type Poi } from "@/lib/api"; - -export default function PoisPage() { - const [pois, setPois] = useState(null); - const [error, setError] = useState(null); - - useEffect(() => { - api("/api/lugares/1/pois") - .then(setPois) - .catch((e: Error) => setError(e.message)); - }, []); - - if (error) return

Error: {error}

; - if (!pois) return

Cargando…

; - - return ( -
-

POIs

- - - - - - - - - - - - {pois.map((p) => ( - - - - - - - - ))} - -
IDNombreCategoríaAudienciasActivo
{p.id}{p.nombre}{p.categoria}{p.audiencias?.join(", ")}{p.activo ? "Sí" : "No"}
-
- ); -} \ No newline at end of file diff --git a/apps/admin/app/favicon.ico b/apps/admin/app/favicon.ico deleted file mode 100644 index af98450..0000000 Binary files a/apps/admin/app/favicon.ico and /dev/null differ diff --git a/apps/admin/app/globals.css b/apps/admin/app/globals.css deleted file mode 100644 index a2dc41e..0000000 --- a/apps/admin/app/globals.css +++ /dev/null @@ -1,26 +0,0 @@ -@import "tailwindcss"; - -:root { - --background: #ffffff; - --foreground: #171717; -} - -@theme inline { - --color-background: var(--background); - --color-foreground: var(--foreground); - --font-sans: var(--font-geist-sans); - --font-mono: var(--font-geist-mono); -} - -@media (prefers-color-scheme: dark) { - :root { - --background: #0a0a0a; - --foreground: #ededed; - } -} - -body { - background: var(--background); - color: var(--foreground); - font-family: Arial, Helvetica, sans-serif; -} diff --git a/apps/admin/app/layout.tsx b/apps/admin/app/layout.tsx deleted file mode 100644 index 9852c15..0000000 --- a/apps/admin/app/layout.tsx +++ /dev/null @@ -1,29 +0,0 @@ -import type { Metadata } from "next"; -import { Geist, Geist_Mono } from "next/font/google"; -import "./globals.css"; - -const geistSans = Geist({ - variable: "--font-geist-sans", - subsets: ["latin"], -}); - -const geistMono = Geist_Mono({ - variable: "--font-geist-mono", - subsets: ["latin"], -}); - -export const metadata: Metadata = { - title: "Create Next App", - description: "Generated by create next app", -}; - -export default function RootLayout({ children }: LayoutProps<"/">) { - return ( - - {children} - - ); -} diff --git a/apps/admin/app/page.tsx b/apps/admin/app/page.tsx deleted file mode 100644 index 56e41ba..0000000 --- a/apps/admin/app/page.tsx +++ /dev/null @@ -1,5 +0,0 @@ -import { redirect } from "next/navigation"; - -export default function Home() { - redirect("/pois"); -} \ No newline at end of file diff --git a/apps/admin/eslint.config.mjs b/apps/admin/eslint.config.mjs deleted file mode 100644 index 05e726d..0000000 --- a/apps/admin/eslint.config.mjs +++ /dev/null @@ -1,18 +0,0 @@ -import { defineConfig, globalIgnores } from "eslint/config"; -import nextVitals from "eslint-config-next/core-web-vitals"; -import nextTs from "eslint-config-next/typescript"; - -const eslintConfig = defineConfig([ - ...nextVitals, - ...nextTs, - // Override default ignores of eslint-config-next. - globalIgnores([ - // Default ignores of eslint-config-next: - ".next/**", - "out/**", - "build/**", - "next-env.d.ts", - ]), -]); - -export default eslintConfig; diff --git a/apps/admin/next.config.ts b/apps/admin/next.config.ts deleted file mode 100644 index 6b0e512..0000000 --- a/apps/admin/next.config.ts +++ /dev/null @@ -1,25 +0,0 @@ -import type { NextConfig } from "next"; - -const nextConfig: NextConfig = { - /* config options here */ - cacheComponents: true, - partialPrefetching: true, - turbopack: { - rules: { - "*.css": { - loaders: ["@tailwindcss/turbopack"], - as: "*.css", - }, - }, - }, - async rewrites() { - return [ - { - source: "/api/:path*", - destination: "http://localhost:5209/api/:path*", - }, - ]; - }, -}; - -export default nextConfig; \ No newline at end of file diff --git a/apps/admin/package-lock.json b/apps/admin/package-lock.json deleted file mode 100644 index 84c3a27..0000000 --- a/apps/admin/package-lock.json +++ /dev/null @@ -1,7122 +0,0 @@ -{ - "name": "admin", - "version": "0.1.0", - "lockfileVersion": 3, - "requires": true, - "packages": { - "": { - "name": "admin", - "version": "0.1.0", - "dependencies": { - "next": "16.4.3", - "react": "19.3.0", - "react-dom": "19.3.0" - }, - "devDependencies": { - "@tailwindcss/turbopack": "^4", - "@types/node": "^20", - "@types/react": "^19", - "@types/react-dom": "^19", - "eslint": "^9", - "eslint-config-next": "16.4.3", - "openapi-typescript": "^7.13.0", - "tailwindcss": "^4", - "typescript": "^5" - } - }, - "node_modules/@alloc/quick-lru": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/@alloc/quick-lru/-/quick-lru-5.3.0.tgz", - "integrity": "sha512-U4+70Pc5ZS9osnCBCE5Jha/ciHM+Yp+CNMNC/7HvYbNRk1Ldd+f7qO65W5qfhu/TCv+/ozljlXXe9Nj8419DMA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@babel/code-frame": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.29.7.tgz", - "integrity": "sha512-Aup7aUOfpbAUg2ROOJN6Iw5f9DMBlzu0mIkm/malLQFN/YQgO48wCj0Kxa3sEHJvPVFg7siR+qRInwXd2qhQKw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-validator-identifier": "^7.29.7", - "js-tokens": "^4.0.0", - "picocolors": "^1.1.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/compat-data": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.29.7.tgz", - "integrity": "sha512-locTkQyKvwIEgBzVrn8693ebc97F2U8ZHjbXwDXJ5Fn2TCpNwTlKcaKLkdHop5c/icOFE7qt7Q9JC5hnKNa6Gg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/core": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.29.7.tgz", - "integrity": "sha512-RgHBCvtjbOK2gXSNBNIkNoEc9qoVEtau3hj8gEqKQuL3HZAibKarWFEI3Lfm6EYKkLalOh8eSrj9b+ch9H/VBA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/code-frame": "^7.29.7", - "@babel/generator": "^7.29.7", - "@babel/helper-compilation-targets": "^7.29.7", - "@babel/helper-module-transforms": "^7.29.7", - "@babel/helpers": "^7.29.7", - "@babel/parser": "^7.29.7", - "@babel/template": "^7.29.7", - "@babel/traverse": "^7.29.7", - "@babel/types": "^7.29.7", - "@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.8", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.8.tgz", - "integrity": "sha512-gZbepsdh3WDtgZKWL+vTPh71LSBrm/Y4/QDZBVCcYfmeTEEuoOYwlSy+G1StfJg+/Zy550u/3TATbm7qDbbMtg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/parser": "^7.29.8", - "@babel/types": "^7.29.8", - "@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.29.7", - "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.29.7.tgz", - "integrity": "sha512-wem6WaBj4NaVYVdNhLPPVacES6ZJ+KBBfSkTMD3YZxbP3rm3Di85tJU5ljaUNhaOynt+Aj0xruhYuzQBt8n71g==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/compat-data": "^7.29.7", - "@babel/helper-validator-option": "^7.29.7", - "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.29.7", - "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.29.7.tgz", - "integrity": "sha512-3nQVUAtvkKH9zahfWgw96Jc/uFOmjACE1kQz82E2lqWmHBgjzbNlsC22nuQTfahmWeQtTq5nQ/4Nnd2A1wj4zA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-module-imports": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.29.7.tgz", - "integrity": "sha512-ejHwrQQYcm9xnTivShn2IDOlIzInN34AXskvq9QicvCtEzq1Vzclu/tKF8Jq1Cg8JG2GL6/EmjgsCT7lXepE3g==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/traverse": "^7.29.7", - "@babel/types": "^7.29.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-module-transforms": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.29.7.tgz", - "integrity": "sha512-UPUVSyXbOh627KiCIGQSgwWzGeBKLkaJ9PJEdrngIwMSzxLR4jS4+f1f1jb7VzBbg8nFLaYotvVPFCTqdrmTAg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-module-imports": "^7.29.7", - "@babel/helper-validator-identifier": "^7.29.7", - "@babel/traverse": "^7.29.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/helper-string-parser": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.29.7.tgz", - "integrity": "sha512-Pb5ijPrZ89GDH8223L4UP8i6QApWxs04RbPQJTeWDV0/keR2E36MeKnyr6LYmUUvqRRI+Iv87SuF1W6ErINzYw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-validator-identifier": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.29.7.tgz", - "integrity": "sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-validator-option": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.29.7.tgz", - "integrity": "sha512-N9ZErrD+yW5geCDtBqnOoxmR8+tNKiGuxKlDpuJxfsqpa2dFcexaziGAE/qoHLiDDreVNMupxGmSoNlyvsA3gw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helpers": { - "version": "7.29.10", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.29.10.tgz", - "integrity": "sha512-EMCx3AGZ3WfAl6ht7AyQoPm2Lh+BGYEMdc4Q6Hf7uSCDOZFuLq44qNwL+iaim8VlyYhRAo4X43+weadK8ZB4Yg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/template": "^7.29.7", - "@babel/types": "^7.29.8" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/parser": { - "version": "7.29.9", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.9.tgz", - "integrity": "sha512-CjXrNHTnvqBVqHgdBysY3vk2T8tpJHb5/RMeHJBTyVa9xgugCB0CJTx/3oO8RV2QRQP391RWpB7D6hLjm8V9uA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/types": "^7.29.8" - }, - "bin": { - "parser": "bin/babel-parser.js" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@babel/template": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.29.7.tgz", - "integrity": "sha512-puq+Gf35oI24FeN11LkoUQFqv9uwNeWpxXZi/Ji3rRIoKAzKnxRaZ+Gkj0vKS9ZCiTESfng1N9LyOyXvo+m+Gg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/code-frame": "^7.29.7", - "@babel/parser": "^7.29.7", - "@babel/types": "^7.29.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/traverse": { - "version": "7.29.10", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.10.tgz", - "integrity": "sha512-B3lYAs2nkKskbgQ1nfy8Ma9ao9Q1rntTAQHrzzyDuj+TSO+X3le6PfWwqDvodsb+OumE10eMFfuMCTQSQ5iuIQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/code-frame": "^7.29.7", - "@babel/generator": "^7.29.8", - "@babel/helper-globals": "^7.29.7", - "@babel/parser": "^7.29.9", - "@babel/template": "^7.29.7", - "@babel/types": "^7.29.8", - "debug": "^4.3.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/types": { - "version": "7.29.8", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.8.tgz", - "integrity": "sha512-Vj1jF3cPfxg7OAfoI7QnVKLoILlm2JF9pnVHrX8qx7AHMiYWT+NDAA7jChlNgRS4WTLc/fD1lXLmPixluj+3Gg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-string-parser": "^7.29.7", - "@babel/helper-validator-identifier": "^7.29.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@emnapi/core": { - "version": "1.10.0", - "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.10.0.tgz", - "integrity": "sha512-yq6OkJ4p82CAfPl0u9mQebQHKPJkY7WrIuk205cTYnYe+k2Z8YBh11FrbRG/H6ihirqcacOgl2BIO8oyMQLeXw==", - "dev": true, - "license": "MIT", - "optional": true, - "dependencies": { - "@emnapi/wasi-threads": "1.2.1", - "tslib": "^2.4.0" - } - }, - "node_modules/@emnapi/runtime": { - "version": "1.11.3", - "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.11.3.tgz", - "integrity": "sha512-Xz4Tpyki7XyrpbUK1jR1AhdAdaXyhhY4lZ3neLodmhpuWfy2PAQN5B46sAiU4liOXGLkHypn/qU+jvfWSCYYLA==", - "license": "MIT", - "optional": true, - "dependencies": { - "tslib": "^2.4.0" - } - }, - "node_modules/@emnapi/wasi-threads": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-1.2.1.tgz", - "integrity": "sha512-uTII7OYF+/Mes/MrcIOYp5yOtSMLBWSIoLPpcgwipoiKbli6k322tcoFsxoIIxPDqW01SQGAgko4EzZi2BNv2w==", - "dev": true, - "license": "MIT", - "optional": true, - "dependencies": { - "tslib": "^2.4.0" - } - }, - "node_modules/@eslint-community/eslint-utils": { - "version": "4.10.1", - "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.10.1.tgz", - "integrity": "sha512-cuadcxVFE8sDK6iWJbs8Sn0av2Nrh2QSGQhVlBW9AaAHqHwjWsZHT8LJ4hFGPh7ASBV2deFdM7H/DPjulmh8rg==", - "dev": true, - "license": "MIT", - "dependencies": { - "eslint-visitor-keys": "^3.4.3" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - }, - "peerDependencies": { - "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" - } - }, - "node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys": { - "version": "3.4.3", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", - "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/@eslint-community/regexpp": { - "version": "4.12.2", - "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.2.tgz", - "integrity": "sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==", - "dev": true, - "license": "MIT", - "engines": { - "node": "^12.0.0 || ^14.0.0 || >=16.0.0" - } - }, - "node_modules/@eslint/config-array": { - "version": "0.21.2", - "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.21.2.tgz", - "integrity": "sha512-nJl2KGTlrf9GjLimgIru+V/mzgSK0ABCDQRvxw5BjURL7WfH5uoWmizbH7QB6MmnMBd8cIC9uceWnezL1VZWWw==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@eslint/object-schema": "^2.1.7", - "debug": "^4.3.1", - "minimatch": "^3.1.5" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@eslint/config-helpers": { - "version": "0.4.2", - "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.4.2.tgz", - "integrity": "sha512-gBrxN88gOIf3R7ja5K9slwNayVcZgK6SOUORm2uBzTeIEfeVaIhOpCtTox3P6R7o2jLFwLFTLnC7kU/RGcYEgw==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@eslint/core": "^0.17.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@eslint/core": { - "version": "0.17.0", - "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.17.0.tgz", - "integrity": "sha512-yL/sLrpmtDaFEiUj1osRP4TI2MDz1AddJL+jZ7KSqvBuliN4xqYY54IfdN8qD8Toa6g1iloph1fxQNkjOxrrpQ==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@types/json-schema": "^7.0.15" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@eslint/eslintrc": { - "version": "3.3.7", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.7.tgz", - "integrity": "sha512-F42g89Qd5oAWtp0k0nnSrjziAKza7w8SVT4mStc18LZMaRb4J1HQAHLCalEtDCxrTuksx7NU9qsmeLwpOfPqWw==", - "dev": true, - "license": "MIT", - "dependencies": { - "ajv": "^6.14.0", - "debug": "^4.3.2", - "espree": "^10.0.1", - "globals": "^14.0.0", - "ignore": "^5.2.0", - "import-fresh": "^3.2.1", - "js-yaml": "^4.3.2", - "minimatch": "^3.1.5", - "strip-json-comments": "^3.1.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/@eslint/js": { - "version": "9.39.5", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.39.5.tgz", - "integrity": "sha512-QywQuszQh77pIXCsq998c8hbhSTI/azTty1Z6N53dmAudKHhy573j3yvRLsX2BSp8YpLtoCEG8E9DJe+8zUh4A==", - "dev": true, - "license": "MIT", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://eslint.org/donate" - } - }, - "node_modules/@eslint/object-schema": { - "version": "2.1.7", - "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-2.1.7.tgz", - "integrity": "sha512-VtAOaymWVfZcmZbp6E2mympDIHvyjXs/12LqWYjVw6qjrfF+VK+fyG33kChz3nnK+SU5/NeHOqrTEHS8sXO3OA==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@eslint/plugin-kit": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.4.1.tgz", - "integrity": "sha512-43/qtrDUokr7LJqoF2c3+RInu/t4zfrpYdoSDfYyhg52rwLV6TnOvdG4fXm7IkSB3wErkcmJS9iEhjVtOSEjjA==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@eslint/core": "^0.17.0", - "levn": "^0.4.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@humanfs/core": { - "version": "0.19.2", - "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.2.tgz", - "integrity": "sha512-UhXNm+CFMWcbChXywFwkmhqjs3PRCmcSa/hfBgLIb7oQ5HNb1wS0icWsGtSAUNgefHeI+eBrA8I1fxmbHsGdvA==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@humanfs/types": "^0.15.0" - }, - "engines": { - "node": ">=18.18.0" - } - }, - "node_modules/@humanfs/node": { - "version": "0.16.8", - "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.8.tgz", - "integrity": "sha512-gE1eQNZ3R++kTzFUpdGlpmy8kDZD/MLyHqDwqjkVQI0JMdI1D51sy1H958PNXYkM2rAac7e5/CnIKZrHtPh3BQ==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@humanfs/core": "^0.19.2", - "@humanfs/types": "^0.15.0", - "@humanwhocodes/retry": "^0.4.0" - }, - "engines": { - "node": ">=18.18.0" - } - }, - "node_modules/@humanfs/types": { - "version": "0.15.0", - "resolved": "https://registry.npmjs.org/@humanfs/types/-/types-0.15.0.tgz", - "integrity": "sha512-ZZ1w0aoQkwuUuC7Yf+7sdeaNfqQiiLcSRbfI08oAxqLtpXQr9AIVX7Ay7HLDuiLYAaFPu8oBYNq/QIi9URHJ3Q==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">=18.18.0" - } - }, - "node_modules/@humanwhocodes/module-importer": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", - "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">=12.22" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/nzakas" - } - }, - "node_modules/@humanwhocodes/retry": { - "version": "0.4.3", - "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.3.tgz", - "integrity": "sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">=18.18" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/nzakas" - } - }, - "node_modules/@img/colour": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@img/colour/-/colour-1.1.0.tgz", - "integrity": "sha512-Td76q7j57o/tLVdgS746cYARfSyxk8iEfRxewL9h4OMzYhbW4TAcppl0mT4eyqXddh6L/jwoM75mo7ixa/pCeQ==", - "license": "MIT", - "optional": true, - "engines": { - "node": ">=18" - } - }, - "node_modules/@img/sharp-darwin-arm64": { - "version": "0.35.5", - "resolved": "https://registry.npmjs.org/@img/sharp-darwin-arm64/-/sharp-darwin-arm64-0.35.5.tgz", - "integrity": "sha512-QRUlFQ0WxvdWyqqG/WtI3iupfD5rBzmCHXSdPsY91sAtVtTo7Q4cb6zOccZ3gqEqkr0f1As1ehLqmEpDsRf+lg==", - "cpu": [ - "arm64" - ], - "license": "Apache-2.0", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=20.9.0" - }, - "funding": { - "url": "https://opencollective.com/libvips" - }, - "optionalDependencies": { - "@img/sharp-libvips-darwin-arm64": "1.3.4" - } - }, - "node_modules/@img/sharp-darwin-x64": { - "version": "0.35.5", - "resolved": "https://registry.npmjs.org/@img/sharp-darwin-x64/-/sharp-darwin-x64-0.35.5.tgz", - "integrity": "sha512-+BR255RhDlpygUpOc/Jdt1nT6DQ3XG/ERo5wbcdOf5Q320dKtPCKPLR1LJs9VGXRaMa8l1uUa0tkCNOXiAxZUw==", - "cpu": [ - "x64" - ], - "license": "Apache-2.0", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=20.9.0" - }, - "funding": { - "url": "https://opencollective.com/libvips" - }, - "optionalDependencies": { - "@img/sharp-libvips-darwin-x64": "1.3.4" - } - }, - "node_modules/@img/sharp-freebsd-wasm32": { - "version": "0.35.5", - "resolved": "https://registry.npmjs.org/@img/sharp-freebsd-wasm32/-/sharp-freebsd-wasm32-0.35.5.tgz", - "integrity": "sha512-Y/z91nEZ4uIBX5X3nfTovjU9lHNKFYbL2lpHCLVNmXQK03VIZvXBBt0KxbPGp2SdGSF+2mQU4e+hQaWOt86iAw==", - "license": "Apache-2.0", - "optional": true, - "os": [ - "freebsd" - ], - "dependencies": { - "@img/sharp-wasm32": "0.35.5" - }, - "engines": { - "node": ">=20.9.0" - }, - "funding": { - "url": "https://opencollective.com/libvips" - } - }, - "node_modules/@img/sharp-libvips-darwin-arm64": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-arm64/-/sharp-libvips-darwin-arm64-1.3.4.tgz", - "integrity": "sha512-5R89nBYiRdUlSWJxPhO+GVtaXzXSxKnRu/xqMn3KTA3L9EB9Oy/P+Nn2f2vlhPuUdy/Zusb2DarbyTpGCfEDuw==", - "cpu": [ - "arm64" - ], - "license": "LGPL-3.0-or-later", - "optional": true, - "os": [ - "darwin" - ], - "funding": { - "url": "https://opencollective.com/libvips" - } - }, - "node_modules/@img/sharp-libvips-darwin-x64": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-x64/-/sharp-libvips-darwin-x64-1.3.4.tgz", - "integrity": "sha512-iR2OKH80yi0U+dUplyh3/xdpFvps6YkCwsXenIJxqxR1v9o+xtKTGbS9H7cps+2Vxjc8B1j96p75NmTGjIhtpQ==", - "cpu": [ - "x64" - ], - "license": "LGPL-3.0-or-later", - "optional": true, - "os": [ - "darwin" - ], - "funding": { - "url": "https://opencollective.com/libvips" - } - }, - "node_modules/@img/sharp-libvips-linux-arm": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm/-/sharp-libvips-linux-arm-1.3.4.tgz", - "integrity": "sha512-LmRtTsOHuvM2+wlO2Db37dx5MiZhB0FvSunciw48YjdOkZz9KAiRbm8ujeMOA1INqmei5NapFxYEK1D1ZSidmw==", - "cpu": [ - "arm" - ], - "libc": [ - "glibc" - ], - "license": "LGPL-3.0-or-later", - "optional": true, - "os": [ - "linux" - ], - "funding": { - "url": "https://opencollective.com/libvips" - } - }, - "node_modules/@img/sharp-libvips-linux-arm64": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm64/-/sharp-libvips-linux-arm64-1.3.4.tgz", - "integrity": "sha512-Y3dgX/6lE2QhQb+Gxy0WZxfg9MEm/JBjamZpS2IklP7xIQoKN4hzAm7KcMVGtaVDt3neE9OKBC7vAfonA/Lr1A==", - "cpu": [ - "arm64" - ], - "libc": [ - "glibc" - ], - "license": "LGPL-3.0-or-later", - "optional": true, - "os": [ - "linux" - ], - "funding": { - "url": "https://opencollective.com/libvips" - } - }, - "node_modules/@img/sharp-libvips-linux-ppc64": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-ppc64/-/sharp-libvips-linux-ppc64-1.3.4.tgz", - "integrity": "sha512-Le6boB8Tai0Nis+gIxIpKx68UDVVIqdR8Tin5Yf1z2LJJQLDJvCDRqRu+jC2qCoD+eIomonmOwB4smBRxfVpYQ==", - "cpu": [ - "ppc64" - ], - "libc": [ - "glibc" - ], - "license": "LGPL-3.0-or-later", - "optional": true, - "os": [ - "linux" - ], - "funding": { - "url": "https://opencollective.com/libvips" - } - }, - "node_modules/@img/sharp-libvips-linux-riscv64": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-riscv64/-/sharp-libvips-linux-riscv64-1.3.4.tgz", - "integrity": "sha512-aHkkIEHPRdQEegJN20MLmGtxYD9R2wQr3Cwpddnu5+YKMt6Uzax7S9h5gpZTo8wyrGuZSlfQ63OevL5mTyOC7Q==", - "cpu": [ - "riscv64" - ], - "libc": [ - "glibc" - ], - "license": "LGPL-3.0-or-later", - "optional": true, - "os": [ - "linux" - ], - "funding": { - "url": "https://opencollective.com/libvips" - } - }, - "node_modules/@img/sharp-libvips-linux-s390x": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-s390x/-/sharp-libvips-linux-s390x-1.3.4.tgz", - "integrity": "sha512-ra/mB6MikESDUO7Yg+Mi95bFBb9GsObURuhnOv3OqknjGe9sZrG8tCe9q0xSIGrtLgvgw0gKnFWcK4blSgQOuQ==", - "cpu": [ - "s390x" - ], - "libc": [ - "glibc" - ], - "license": "LGPL-3.0-or-later", - "optional": true, - "os": [ - "linux" - ], - "funding": { - "url": "https://opencollective.com/libvips" - } - }, - "node_modules/@img/sharp-libvips-linux-x64": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-x64/-/sharp-libvips-linux-x64-1.3.4.tgz", - "integrity": "sha512-GJ//SSXbnwSDes02umB3nDJLFcQzw8a18V8fyhqr6tV515tOEMdImjjxj1AoafMRz56F3PHgftnj1QEKSU1zkw==", - "cpu": [ - "x64" - ], - "libc": [ - "glibc" - ], - "license": "LGPL-3.0-or-later", - "optional": true, - "os": [ - "linux" - ], - "funding": { - "url": "https://opencollective.com/libvips" - } - }, - "node_modules/@img/sharp-libvips-linuxmusl-arm64": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-arm64/-/sharp-libvips-linuxmusl-arm64-1.3.4.tgz", - "integrity": "sha512-hvulFwtjUcagsis6BBxHwGFwWoNZjgYmULGVrZcyfNbjA8hKILbRxGg15/7w5HDyXHXUos/j6baAWqnCyQ2DWA==", - "cpu": [ - "arm64" - ], - "libc": [ - "musl" - ], - "license": "LGPL-3.0-or-later", - "optional": true, - "os": [ - "linux" - ], - "funding": { - "url": "https://opencollective.com/libvips" - } - }, - "node_modules/@img/sharp-libvips-linuxmusl-x64": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-x64/-/sharp-libvips-linuxmusl-x64-1.3.4.tgz", - "integrity": "sha512-6zXKeE/p39I1AmA3cJG35eyBGNqNddLnUXjhwBnsGjFPWqf5VKkDBEqaEkPDoTEtkxwi2vv8Tcr2mDyP4So7Fg==", - "cpu": [ - "x64" - ], - "libc": [ - "musl" - ], - "license": "LGPL-3.0-or-later", - "optional": true, - "os": [ - "linux" - ], - "funding": { - "url": "https://opencollective.com/libvips" - } - }, - "node_modules/@img/sharp-linux-arm": { - "version": "0.35.5", - "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm/-/sharp-linux-arm-0.35.5.tgz", - "integrity": "sha512-LEaXK2WdXVK5ykcw0buWyPMsmLLL2vpHLD6yrNSW+JGEL3BZPA4tpKN6iaMc4AxTTAoaX/sU1rOL51lcIz48ZQ==", - "cpu": [ - "arm" - ], - "libc": [ - "glibc" - ], - "license": "Apache-2.0", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=20.9.0" - }, - "funding": { - "url": "https://opencollective.com/libvips" - }, - "optionalDependencies": { - "@img/sharp-libvips-linux-arm": "1.3.4" - } - }, - "node_modules/@img/sharp-linux-arm64": { - "version": "0.35.5", - "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm64/-/sharp-linux-arm64-0.35.5.tgz", - "integrity": "sha512-LYVx5JTsOM2CBzmxreh+nl64/3H6Xb09iSLknqH47z2T2DFFxDeFLP5y4dJwe6H7uGQlHPyEEtIqyo3DYsRwdQ==", - "cpu": [ - "arm64" - ], - "libc": [ - "glibc" - ], - "license": "Apache-2.0", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=20.9.0" - }, - "funding": { - "url": "https://opencollective.com/libvips" - }, - "optionalDependencies": { - "@img/sharp-libvips-linux-arm64": "1.3.4" - } - }, - "node_modules/@img/sharp-linux-ppc64": { - "version": "0.35.5", - "resolved": "https://registry.npmjs.org/@img/sharp-linux-ppc64/-/sharp-linux-ppc64-0.35.5.tgz", - "integrity": "sha512-QVxAAq8evVRI9ia2vqgwrmWucn5Dfv+JdWzj75pD8omHLPSP7f8p20O8jxzjCcuCEQEOtYOZUmX1hkiZ0kdevA==", - "cpu": [ - "ppc64" - ], - "libc": [ - "glibc" - ], - "license": "Apache-2.0", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=20.9.0" - }, - "funding": { - "url": "https://opencollective.com/libvips" - }, - "optionalDependencies": { - "@img/sharp-libvips-linux-ppc64": "1.3.4" - } - }, - "node_modules/@img/sharp-linux-riscv64": { - "version": "0.35.5", - "resolved": "https://registry.npmjs.org/@img/sharp-linux-riscv64/-/sharp-linux-riscv64-0.35.5.tgz", - "integrity": "sha512-LtdreXguaavKODPIfzJ4kffx7UNt1omwtK0rch4EBbbSTXPnxWmYSayXdLJw0fJzQ97kHt1gL/yh4tvU+nCyRQ==", - "cpu": [ - "riscv64" - ], - "libc": [ - "glibc" - ], - "license": "Apache-2.0", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=20.9.0" - }, - "funding": { - "url": "https://opencollective.com/libvips" - }, - "optionalDependencies": { - "@img/sharp-libvips-linux-riscv64": "1.3.4" - } - }, - "node_modules/@img/sharp-linux-s390x": { - "version": "0.35.5", - "resolved": "https://registry.npmjs.org/@img/sharp-linux-s390x/-/sharp-linux-s390x-0.35.5.tgz", - "integrity": "sha512-UZasTOFiYzotTsGOCu42BfUzP6Tu6Do/947iRm1RsLKvlllxwGcn4RN27LibGWceix4Y+Pmw3jsnTcCQIgWjqA==", - "cpu": [ - "s390x" - ], - "libc": [ - "glibc" - ], - "license": "Apache-2.0", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=20.9.0" - }, - "funding": { - "url": "https://opencollective.com/libvips" - }, - "optionalDependencies": { - "@img/sharp-libvips-linux-s390x": "1.3.4" - } - }, - "node_modules/@img/sharp-linux-x64": { - "version": "0.35.5", - "resolved": "https://registry.npmjs.org/@img/sharp-linux-x64/-/sharp-linux-x64-0.35.5.tgz", - "integrity": "sha512-SxFtLTeJInhAA9Q836kux2vZNeOBQEx658qvbboZScr0wIARym3IcGmW7KpVD5sbVg0Ojy+udFQdayYIZyoNog==", - "cpu": [ - "x64" - ], - "libc": [ - "glibc" - ], - "license": "Apache-2.0", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=20.9.0" - }, - "funding": { - "url": "https://opencollective.com/libvips" - }, - "optionalDependencies": { - "@img/sharp-libvips-linux-x64": "1.3.4" - } - }, - "node_modules/@img/sharp-linuxmusl-arm64": { - "version": "0.35.5", - "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-arm64/-/sharp-linuxmusl-arm64-0.35.5.tgz", - "integrity": "sha512-9HbMclmI1zlNkFRs3z9/eBtDjfD0sGlrX1z6b1qwmiFY5ElDLh4BC0LPBdVp7z1DXFiKlIcznf+ZlsuZzLxQqg==", - "cpu": [ - "arm64" - ], - "libc": [ - "musl" - ], - "license": "Apache-2.0", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=20.9.0" - }, - "funding": { - "url": "https://opencollective.com/libvips" - }, - "optionalDependencies": { - "@img/sharp-libvips-linuxmusl-arm64": "1.3.4" - } - }, - "node_modules/@img/sharp-linuxmusl-x64": { - "version": "0.35.5", - "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-x64/-/sharp-linuxmusl-x64-0.35.5.tgz", - "integrity": "sha512-4KOphqB035HrVdqLZfCgMzzERrQkkzOwRhl4OAkRO1YCldbaFjySXMaK534Mo0V+LndnlJk+sbUyLeU0ULyD1A==", - "cpu": [ - "x64" - ], - "libc": [ - "musl" - ], - "license": "Apache-2.0", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=20.9.0" - }, - "funding": { - "url": "https://opencollective.com/libvips" - }, - "optionalDependencies": { - "@img/sharp-libvips-linuxmusl-x64": "1.3.4" - } - }, - "node_modules/@img/sharp-wasm32": { - "version": "0.35.5", - "resolved": "https://registry.npmjs.org/@img/sharp-wasm32/-/sharp-wasm32-0.35.5.tgz", - "integrity": "sha512-Ptsga1su4tQx+LLF1ECS9U6nz5kmrXKo6XVbtR48Ke3ZRxxgaWBu7IDtEe1quo8hiupwm6WFqxVlXaSf7IINGQ==", - "license": "Apache-2.0 AND LGPL-3.0-or-later AND MIT", - "optional": true, - "dependencies": { - "@emnapi/runtime": "^1.11.3" - }, - "engines": { - "node": ">=20.9.0" - }, - "funding": { - "url": "https://opencollective.com/libvips" - } - }, - "node_modules/@img/sharp-webcontainers-wasm32": { - "version": "0.35.5", - "resolved": "https://registry.npmjs.org/@img/sharp-webcontainers-wasm32/-/sharp-webcontainers-wasm32-0.35.5.tgz", - "integrity": "sha512-hfhF/FmoQyTUkA0bIKFOtw536BQSeBMe6BF6QyWlrPxT754+TFLaZ7sKKTfvvM0yJgKgaYTwnFCIZ/GuDw5SUA==", - "cpu": [ - "wasm32" - ], - "license": "Apache-2.0", - "optional": true, - "dependencies": { - "@img/sharp-wasm32": "0.35.5" - }, - "engines": { - "node": ">=20.9.0" - }, - "funding": { - "url": "https://opencollective.com/libvips" - } - }, - "node_modules/@img/sharp-win32-arm64": { - "version": "0.35.5", - "resolved": "https://registry.npmjs.org/@img/sharp-win32-arm64/-/sharp-win32-arm64-0.35.5.tgz", - "integrity": "sha512-X4t7g+7ZA5DKblCBEXGjUqqemj4vczING/5viFwAL8h4N3qYeyjwdCvRLHi4EdOUI+2Z7UFlp1VM+p/AuEtm6Q==", - "cpu": [ - "arm64" - ], - "license": "Apache-2.0 AND LGPL-3.0-or-later", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=20.9.0" - }, - "funding": { - "url": "https://opencollective.com/libvips" - } - }, - "node_modules/@img/sharp-win32-ia32": { - "version": "0.35.5", - "resolved": "https://registry.npmjs.org/@img/sharp-win32-ia32/-/sharp-win32-ia32-0.35.5.tgz", - "integrity": "sha512-5Zm82LoBc43nhwNybZlG7Y1KO//Zhsn306fQl29ZOuStHLGTo3BWL83q3cznX0poxSAMuYL1On/BHBxkBeKr6A==", - "cpu": [ - "ia32" - ], - "license": "Apache-2.0 AND LGPL-3.0-or-later", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": "^20.9.0" - }, - "funding": { - "url": "https://opencollective.com/libvips" - } - }, - "node_modules/@img/sharp-win32-x64": { - "version": "0.35.5", - "resolved": "https://registry.npmjs.org/@img/sharp-win32-x64/-/sharp-win32-x64-0.35.5.tgz", - "integrity": "sha512-x76eH0vEiHlcMQu8Y8IenntaACtddpT6W0wmXtWrnKcnKI7ME5DdgqhAD6SEWOEl1v2zDvkZDhFA9KnURwpfqg==", - "cpu": [ - "x64" - ], - "license": "Apache-2.0 AND LGPL-3.0-or-later", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=20.9.0" - }, - "funding": { - "url": "https://opencollective.com/libvips" - } - }, - "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.6.0", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.6.0.tgz", - "integrity": "sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==", - "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/wasm-runtime": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-1.2.5.tgz", - "integrity": "sha512-HshSvXzmBxNzqejd3k/KemgQ3hdREUYFRRrgxOZ+gPljDIsO2SDZrVZMd4Z/HsxudQbE62OVyVFE8z9BCurfjA==", - "dev": true, - "license": "MIT", - "optional": true, - "dependencies": { - "@tybys/wasm-util": "^0.10.3" - }, - "engines": { - "node": "^20.19.0 || ^22.13.0 || >=23.5.0" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/Brooooooklyn" - }, - "peerDependencies": { - "@emnapi/core": "^1.7.1 || ^2.0.0-alpha.4", - "@emnapi/runtime": "^1.7.1 || ^2.0.0-alpha.4" - } - }, - "node_modules/@next/env": { - "version": "16.4.3", - "resolved": "https://registry.npmjs.org/@next/env/-/env-16.4.3.tgz", - "integrity": "sha512-a7tz1QCcWWkwC/rPJcPMJk/UNRu9CFhDd3OHYE5hddbJrs8BqRTalxI6GlKCWEGzRLHN+S/B7a4PAHCtm25aBQ==", - "license": "MIT" - }, - "node_modules/@next/eslint-plugin-next": { - "version": "16.4.3", - "resolved": "https://registry.npmjs.org/@next/eslint-plugin-next/-/eslint-plugin-next-16.4.3.tgz", - "integrity": "sha512-oxuC06wt/71h6ACYCV9GbKOfnf5a7VlRe/p80YHTut15TNgDEmynDnaq8t/xhy5rlvk7dhItIPs6H3rvIM4kyw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@eslint-community/eslint-utils": "4.9.1", - "fast-glob": "3.3.1" - } - }, - "node_modules/@next/eslint-plugin-next/node_modules/@eslint-community/eslint-utils": { - "version": "4.9.1", - "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.9.1.tgz", - "integrity": "sha512-phrYmNiYppR7znFEdqgfWHXR6NCkZEK7hwWDHZUjit/2/U0r6XvkDl0SYnoM51Hq7FhCGdLDT6zxCCOY1hexsQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "eslint-visitor-keys": "^3.4.3" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - }, - "peerDependencies": { - "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" - } - }, - "node_modules/@next/eslint-plugin-next/node_modules/eslint-visitor-keys": { - "version": "3.4.3", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", - "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/@next/swc-darwin-arm64": { - "version": "16.4.3", - "resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-16.4.3.tgz", - "integrity": "sha512-4yq5EXBt+VDtAZwTyfijaFp5D2C5oz3Ikw5a2kiX2K9nw72vrZX2q5UuAlkPtUMO1tQz6JTKpaKWjS7OOefTDQ==", - "cpu": [ - "arm64" - ], - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@next/swc-darwin-x64": { - "version": "16.4.3", - "resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-16.4.3.tgz", - "integrity": "sha512-1Rvkn/LUhnEF8WxnRkOrqGhbwXui1bkWFxONKIbN+r7C+9KHDSZ+iUoj4CzymVMWUyZIyx9szcb9+kbKhD500A==", - "cpu": [ - "x64" - ], - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@next/swc-linux-arm64-gnu": { - "version": "16.4.3", - "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-16.4.3.tgz", - "integrity": "sha512-dCKpXErGg3abUM6t5JTJV/ottVBTStJB5lRJTbgdUdQaQ+jNHiK56Hsc0YAEg/rinSh42hYG3HWiYmEMdilnxg==", - "cpu": [ - "arm64" - ], - "libc": [ - "glibc" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@next/swc-linux-arm64-musl": { - "version": "16.4.3", - "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-16.4.3.tgz", - "integrity": "sha512-WwYbhWkhYBvBtib1K4W0kL8MW2snBD2A5b3SN4vPpqalZbZs5+bQ1yzAdepVoOqrFfEW3dmREy4Zs1MrWcrFbw==", - "cpu": [ - "arm64" - ], - "libc": [ - "musl" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@next/swc-linux-x64-gnu": { - "version": "16.4.3", - "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-16.4.3.tgz", - "integrity": "sha512-QymWvfUwDEC5/lpJOsxX5VAbyoR2D13+2Jsjz4be7gT4LPqEgdpkeLIR/HFfCLgKzoMhpJbp6I/JnogyNZHcaA==", - "cpu": [ - "x64" - ], - "libc": [ - "glibc" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@next/swc-linux-x64-musl": { - "version": "16.4.3", - "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-16.4.3.tgz", - "integrity": "sha512-Vmjd9D7DpA4Vv3cUlr82QWgJD/BQZmns801vtC5VWHg6jCIA4a5vMKpQnfrM2pyCrp2eV0ENdUg4PlN3bAc2Yw==", - "cpu": [ - "x64" - ], - "libc": [ - "musl" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@next/swc-win32-arm64-msvc": { - "version": "16.4.3", - "resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-16.4.3.tgz", - "integrity": "sha512-lG1pPdPLk7gTyGb00n5JIMLdBJgjb+UEhSdZvFbhUMg0DyC6z4B7RnpSKF9VCd4imkLObVbXOFA0kFCpw7yFow==", - "cpu": [ - "arm64" - ], - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@next/swc-win32-x64-msvc": { - "version": "16.4.3", - "resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-16.4.3.tgz", - "integrity": "sha512-NmQC9RkJdnPXRaMxtkCzobB3teVjqF33oSOnwDfi+XYGWWYpt+xlGK3mtktSKLbdjwaWbJu2OkkMiRFGUUncKg==", - "cpu": [ - "x64" - ], - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">= 10" - } - }, - "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/@nolyfill/is-core-module": { - "version": "1.0.39", - "resolved": "https://registry.npmjs.org/@nolyfill/is-core-module/-/is-core-module-1.0.39.tgz", - "integrity": "sha512-nn5ozdjYQpUCZlWGuxcJY/KpxkWQs4DcbMCmKojjyrYDEAGy4Ce19NN4v5MduafTwJlbKc99UA8YhSVqq9yPZA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12.4.0" - } - }, - "node_modules/@redocly/ajv": { - "version": "8.11.2", - "resolved": "https://registry.npmjs.org/@redocly/ajv/-/ajv-8.11.2.tgz", - "integrity": "sha512-io1JpnwtIcvojV7QKDUSIuMN/ikdOUd1ReEnUnMKGfDVridQZ31J0MmIuqwuRjWDZfmvr+Q0MqCcfHM2gTivOg==", - "dev": true, - "license": "MIT", - "dependencies": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js-replace": "^1.0.1" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/@redocly/ajv/node_modules/json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", - "dev": true, - "license": "MIT" - }, - "node_modules/@redocly/config": { - "version": "0.22.0", - "resolved": "https://registry.npmjs.org/@redocly/config/-/config-0.22.0.tgz", - "integrity": "sha512-gAy93Ddo01Z3bHuVdPWfCwzgfaYgMdaZPcfL7JZ7hWJoK9V0lXDbigTWkhiPFAaLWzbOJ+kbUQG1+XwIm0KRGQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/@redocly/openapi-core": { - "version": "1.34.20", - "resolved": "https://registry.npmjs.org/@redocly/openapi-core/-/openapi-core-1.34.20.tgz", - "integrity": "sha512-ypeBZ/6BKXR9+7/TtbKhbl4UgD7raHhPS12oknlKno2A8+lnFkxIwiE/Aklu6L2cd/ioH+fCWuMxi9/p3EyAPw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@redocly/ajv": "8.11.2", - "@redocly/config": "0.22.0", - "colorette": "1.4.0", - "https-proxy-agent": "7.0.6", - "js-levenshtein": "1.1.6", - "js-yaml": "4.3.2", - "minimatch": "5.1.9", - "pluralize": "8.0.0", - "yaml-ast-parser": "0.0.43" - }, - "engines": { - "node": ">=18.17.0", - "npm": ">=9.5.0" - } - }, - "node_modules/@redocly/openapi-core/node_modules/brace-expansion": { - "version": "2.1.7", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.1.7.tgz", - "integrity": "sha512-uZbew1NqdmPDTMJ8ah1y+b+9QEJrfkXFk3RcTQw3X0jW/xRUvFKsg1CfQdSYGdTbXZWExtU3J3ccxtnfw1Fi0g==", - "dev": true, - "license": "MIT", - "dependencies": { - "balanced-match": "^1.0.0" - } - }, - "node_modules/@redocly/openapi-core/node_modules/minimatch": { - "version": "5.1.9", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.9.tgz", - "integrity": "sha512-7o1wEA2RyMP7Iu7GNba9vc0RWWGACJOCZBJX2GJWip0ikV+wcOsgVuY9uE8CPiyQhkGFSlhuSkZPavN7u1c2Fw==", - "dev": true, - "license": "ISC", - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@rtsao/scc": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@rtsao/scc/-/scc-1.1.0.tgz", - "integrity": "sha512-zt6OdqaDoOnJ1ZYsCYGt9YmWzDXl4vQdKTyJev62gFhRGKdx7mcT54V9KIjg+d2wi9EXsPvAPKe7i7WjfVWB8g==", - "dev": true, - "license": "MIT" - }, - "node_modules/@swc/helpers": { - "version": "0.5.23", - "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.23.tgz", - "integrity": "sha512-5lSsMOTXURePglDfvuAQUqkGek9Hg2kksOYay2m0+XR++b2NWYL/4sWyuvVBIs8oKnJaxkdi9whaL/sqN13afw==", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.8.0" - } - }, - "node_modules/@tailwindcss/node": { - "version": "4.3.3", - "resolved": "https://registry.npmjs.org/@tailwindcss/node/-/node-4.3.3.tgz", - "integrity": "sha512-/T8IKEsf9VTU6tLjgC7+sv2mOPtQxzE2jMw7u4Tt40Tx+QSZxpzh95/H6cMKoja9XuW7iMdLJYBB0o9G1CaAgg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jridgewell/remapping": "^2.3.5", - "enhanced-resolve": "^5.24.1", - "jiti": "^2.7.0", - "lightningcss": "1.32.0", - "magic-string": "^0.30.21", - "source-map-js": "^1.2.1", - "tailwindcss": "4.3.3" - } - }, - "node_modules/@tailwindcss/oxide": { - "version": "4.3.3", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide/-/oxide-4.3.3.tgz", - "integrity": "sha512-krXjAikiaFSPaK/FkAQT5UTx3VormQaiZ5hBFlJZ9UFQGB/rwg1MZIhHAG9smMQRTdyJxP6Qt5MwMtdyU5FWrA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 20" - }, - "optionalDependencies": { - "@tailwindcss/oxide-android-arm64": "4.3.3", - "@tailwindcss/oxide-darwin-arm64": "4.3.3", - "@tailwindcss/oxide-darwin-x64": "4.3.3", - "@tailwindcss/oxide-freebsd-x64": "4.3.3", - "@tailwindcss/oxide-linux-arm-gnueabihf": "4.3.3", - "@tailwindcss/oxide-linux-arm64-gnu": "4.3.3", - "@tailwindcss/oxide-linux-arm64-musl": "4.3.3", - "@tailwindcss/oxide-linux-x64-gnu": "4.3.3", - "@tailwindcss/oxide-linux-x64-musl": "4.3.3", - "@tailwindcss/oxide-wasm32-wasi": "4.3.3", - "@tailwindcss/oxide-win32-arm64-msvc": "4.3.3", - "@tailwindcss/oxide-win32-x64-msvc": "4.3.3" - } - }, - "node_modules/@tailwindcss/oxide-android-arm64": { - "version": "4.3.3", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-android-arm64/-/oxide-android-arm64-4.3.3.tgz", - "integrity": "sha512-Y85A2gmPSkl5Ve5qR86GL4HT509cFqQh1aes9p3sSkyTPwt0Pppf3GkwGe4JPACcRYjgJIEhQgM6dBClnr0NYw==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">= 20" - } - }, - "node_modules/@tailwindcss/oxide-darwin-arm64": { - "version": "4.3.3", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-arm64/-/oxide-darwin-arm64-4.3.3.tgz", - "integrity": "sha512-BiaWatpBcERQFDlOjRDpIVXuFK5PJez5SA4JMg6VYZdBYU+qKfV/vqjcIs+IYmtitf1xYQZTwXvU/8y4lfZUGw==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">= 20" - } - }, - "node_modules/@tailwindcss/oxide-darwin-x64": { - "version": "4.3.3", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-x64/-/oxide-darwin-x64-4.3.3.tgz", - "integrity": "sha512-fAeUqfV5ndhxRwai8cXGzdLvul9utWOmeTkv69unv4ZXixjn61Z+p9lCWdwOwA3TYboG3BwdVuN/RDjhBRl0mw==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">= 20" - } - }, - "node_modules/@tailwindcss/oxide-freebsd-x64": { - "version": "4.3.3", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-freebsd-x64/-/oxide-freebsd-x64-4.3.3.tgz", - "integrity": "sha512-iyf5bV6+wnAlflVeEy7R25dupxTNECZN5QMI0qNT6eT+EgaGdZcKhGkr5SdoaWiLJ3spLqIY9VCeSGrwmtg4kw==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">= 20" - } - }, - "node_modules/@tailwindcss/oxide-linux-arm-gnueabihf": { - "version": "4.3.3", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm-gnueabihf/-/oxide-linux-arm-gnueabihf-4.3.3.tgz", - "integrity": "sha512-aAYUprJAJQWWbRrPvtjdroZ56Md+JM8pMiopS6xGEwDfLhqj+2ver2p4nU4Mb3CRqcMmNBjo8KkUgcxhkzVQGQ==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 20" - } - }, - "node_modules/@tailwindcss/oxide-linux-arm64-gnu": { - "version": "4.3.3", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-gnu/-/oxide-linux-arm64-gnu-4.3.3.tgz", - "integrity": "sha512-nDxldcEENOxZRzC2uu9jrutZdAAQtb+8WWDCSnWL1zvBk1+FN+x6MtDViPB5AJMfttVCUhehGWus3XBPgatM/w==", - "cpu": [ - "arm64" - ], - "dev": true, - "libc": [ - "glibc" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 20" - } - }, - "node_modules/@tailwindcss/oxide-linux-arm64-musl": { - "version": "4.3.3", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-musl/-/oxide-linux-arm64-musl-4.3.3.tgz", - "integrity": "sha512-Md44bD6veX/PC5iyF8cDVnw4HBIANZepRZZ7a8DQOvkfo5WUBwcp6iAuCUz23u+4SUkhJlD3eL7hNdW8ezd/kA==", - "cpu": [ - "arm64" - ], - "dev": true, - "libc": [ - "musl" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 20" - } - }, - "node_modules/@tailwindcss/oxide-linux-x64-gnu": { - "version": "4.3.3", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-gnu/-/oxide-linux-x64-gnu-4.3.3.tgz", - "integrity": "sha512-tx7us1muwOKAKWao2v/GaafFeQboE6aj88vC6ziN2NCGcRm8gWUhwjzg+YdVB1e4boAtdtma4L43onunI6NS4w==", - "cpu": [ - "x64" - ], - "dev": true, - "libc": [ - "glibc" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 20" - } - }, - "node_modules/@tailwindcss/oxide-linux-x64-musl": { - "version": "4.3.3", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-musl/-/oxide-linux-x64-musl-4.3.3.tgz", - "integrity": "sha512-SJxX60smvHgasZoBy11dX6YRjXJFovwWBoedhbQPOBzgFWBHGB+TVPWB9BxzR7TTxU8FQZAI2AyiNCMzFm8Img==", - "cpu": [ - "x64" - ], - "dev": true, - "libc": [ - "musl" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 20" - } - }, - "node_modules/@tailwindcss/oxide-wasm32-wasi": { - "version": "4.3.3", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-wasm32-wasi/-/oxide-wasm32-wasi-4.3.3.tgz", - "integrity": "sha512-jx1+rPhY/5Ympkktd656HBWEBLxP7dH06losBLjjf5vgCODXvi9KhtftWcMIwTFIDqBr7cRnQkdLnAG+IOlGvQ==", - "bundleDependencies": [ - "@napi-rs/wasm-runtime", - "@emnapi/core", - "@emnapi/runtime", - "@tybys/wasm-util", - "@emnapi/wasi-threads", - "tslib" - ], - "cpu": [ - "wasm32" - ], - "dev": true, - "license": "MIT", - "optional": true, - "dependencies": { - "@emnapi/core": "^1.11.1", - "@emnapi/runtime": "^1.11.1", - "@emnapi/wasi-threads": "^1.2.2", - "@napi-rs/wasm-runtime": "^1.1.4", - "@tybys/wasm-util": "^0.10.2", - "tslib": "^2.8.1" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@tailwindcss/oxide-win32-arm64-msvc": { - "version": "4.3.3", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-arm64-msvc/-/oxide-win32-arm64-msvc-4.3.3.tgz", - "integrity": "sha512-3rc292Ca2ceK6Ulcc/bAVnTs/3nDtoPhyEKlgPv+yQJQi/JS/AMJlqzxvlDacL1nekbrcf6bTqp/jV4qgnPxNQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">= 20" - } - }, - "node_modules/@tailwindcss/oxide-win32-x64-msvc": { - "version": "4.3.3", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-x64-msvc/-/oxide-win32-x64-msvc-4.3.3.tgz", - "integrity": "sha512-yJ0pwIVc/nYeGoV02WtsN8KYyLQv7kyI2wDnkezyJlGGjkd4QLwDGAwl47YpPJeuI0M0ObaXGSPjvWDPeTPggw==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">= 20" - } - }, - "node_modules/@tailwindcss/turbopack": { - "version": "4.3.3", - "resolved": "https://registry.npmjs.org/@tailwindcss/turbopack/-/turbopack-4.3.3.tgz", - "integrity": "sha512-FgL4wRgItNdXcDjcgYUSd59gNsWqNVK4GotjZimZMmt7OOIkRNqH2QEUcRXLdBDXvwTsi5rkYxDxzfrFUkmObQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@alloc/quick-lru": "^5.2.0", - "@tailwindcss/node": "4.3.3", - "@tailwindcss/oxide": "4.3.3", - "tailwindcss": "4.3.3" - } - }, - "node_modules/@tybys/wasm-util": { - "version": "0.10.4", - "resolved": "https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.10.4.tgz", - "integrity": "sha512-W3c4gRigFS0T/Ma4qIYF3GDAc5AQdHb1yL5znJT1Zv1YaD9Kitx656wBjvr19qbiosmZT8lWDM5BEMynUqX65A==", - "dev": true, - "license": "MIT", - "optional": true, - "dependencies": { - "tslib": "^2.4.0" - } - }, - "node_modules/@types/estree": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.9.tgz", - "integrity": "sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/json-schema": { - "version": "7.0.15", - "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", - "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/json5": { - "version": "0.0.29", - "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", - "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/node": { - "version": "20.19.43", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.19.43.tgz", - "integrity": "sha512-6oYBAi5ikg4Pl+kGsoYtawUMBT2zZMCvPNF7pVLnHZfd1zf38DRiWn/gT01RYCdUqkv7Fhr+C9ot4/tb+2sVvA==", - "dev": true, - "license": "MIT", - "dependencies": { - "undici-types": "~6.21.0" - } - }, - "node_modules/@types/react": { - "version": "19.3.0", - "resolved": "https://registry.npmjs.org/@types/react/-/react-19.3.0.tgz", - "integrity": "sha512-N0rFCuH9YoxG9/m61l9MfpJKfmLOVU0em7ipIz6TRgSSkvReLB9vL85GB+yr8Bs5leqpvg96JSwF4ZS1s4viQg==", - "dev": true, - "license": "MIT", - "dependencies": { - "csstype": "^3.2.2" - } - }, - "node_modules/@types/react-dom": { - "version": "19.3.0", - "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-19.3.0.tgz", - "integrity": "sha512-ZI7bU42mZXXKHn/qNLEw2IrbiINU7X5+vfgdixBHkCNpYWXjKgfQ/P+uyGb5CjOLB9UcnTeg3rylQtV2hym44Q==", - "dev": true, - "license": "MIT", - "peerDependencies": { - "@types/react": "^19.3.0" - } - }, - "node_modules/@typescript-eslint/eslint-plugin": { - "version": "8.71.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.71.2.tgz", - "integrity": "sha512-K72/pvT7qpm8q3k8G5u93NCSN1RcLxX5h7Gw0bQpbMXviBHeY6Nx1WEwmk9wP+eKTSQ8ecxvcgt/ZX/rB938xQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@eslint-community/regexpp": "^4.12.2", - "@typescript-eslint/scope-manager": "8.71.2", - "@typescript-eslint/type-utils": "8.71.2", - "@typescript-eslint/utils": "8.71.2", - "@typescript-eslint/visitor-keys": "8.71.2", - "ignore": "^7.0.5", - "natural-compare": "^1.4.0", - "ts-api-utils": "^2.5.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "@typescript-eslint/parser": "^8.71.2", - "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", - "typescript": ">=4.8.4 <6.1.0" - } - }, - "node_modules/@typescript-eslint/eslint-plugin/node_modules/ignore": { - "version": "7.0.12", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.12.tgz", - "integrity": "sha512-/8UvqAPU9DGTI9k4mxtf49U37Isfwr8Uts96+SBHIkFxPJnHS0Ew4f00sM4Scd8V8EjM0jUNtVDdv1kPdt35lg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 4" - } - }, - "node_modules/@typescript-eslint/parser": { - "version": "8.71.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.71.2.tgz", - "integrity": "sha512-aTtmZjp/x3gsGHkDs04/1I8kNogBJkpQaeGaN0PfiG43NzDEmW2n+OP5im9wfsvyX0yP1UZWBrAGtDBfH9jEVw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/scope-manager": "8.71.2", - "@typescript-eslint/types": "8.71.2", - "@typescript-eslint/typescript-estree": "8.71.2", - "@typescript-eslint/visitor-keys": "8.71.2", - "debug": "^4.4.3" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", - "typescript": ">=4.8.4 <6.1.0" - } - }, - "node_modules/@typescript-eslint/project-service": { - "version": "8.71.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.71.2.tgz", - "integrity": "sha512-Pd68GsLVh5ZXlcEccFPdhSOvtHZ/2WU0XsA8zmXOS3F158lVlcTLhfQ6qvtL1RzbMie0Kp8xtbVwAg4nejKPHw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/tsconfig-utils": "^8.71.2", - "@typescript-eslint/types": "^8.71.2", - "debug": "^4.4.3" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "typescript": ">=4.8.4 <6.1.0" - } - }, - "node_modules/@typescript-eslint/scope-manager": { - "version": "8.71.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.71.2.tgz", - "integrity": "sha512-YF4wgg5iUX5Obywoac27B56FhozMNFhdJSbh11H5GBAwmBtfyRhmgTQqW9tRNNmHDvsZ2CX6UGzoz+YfYn2Leg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/types": "8.71.2", - "@typescript-eslint/visitor-keys": "8.71.2" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/tsconfig-utils": { - "version": "8.71.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.71.2.tgz", - "integrity": "sha512-jz49TAWokm/7yWD9/o837nYax9DyALxIPOImdImvVzo6canBCZYzin8zJyqNR5k1j9K1DE0bVvr0XYB+99uAdg==", - "dev": true, - "license": "MIT", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "typescript": ">=4.8.4 <6.1.0" - } - }, - "node_modules/@typescript-eslint/type-utils": { - "version": "8.71.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.71.2.tgz", - "integrity": "sha512-cC8UaalCViJkb3rH/xLIvidEwoFRtMZMUqDjjJMGEKaTFwYRHYBcoczlEGHuvkHEO8svRDrgZ0yQgOArFmwang==", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/types": "8.71.2", - "@typescript-eslint/typescript-estree": "8.71.2", - "@typescript-eslint/utils": "8.71.2", - "debug": "^4.4.3", - "ts-api-utils": "^2.5.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", - "typescript": ">=4.8.4 <6.1.0" - } - }, - "node_modules/@typescript-eslint/types": { - "version": "8.71.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.71.2.tgz", - "integrity": "sha512-y5Ukl3oVp7e/VGxqIoEXoeb/Roj71PAJ4WG/N/RGj+eeDvKRLM15kGr9MijLbN0i03S52zxu31Z98E5gWChJKw==", - "dev": true, - "license": "MIT", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/typescript-estree": { - "version": "8.71.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.71.2.tgz", - "integrity": "sha512-DgNOEsl4pdYzwSL+N/Cl33tX1Hlw3FvId73LnKXfq7jnrF2viOEn7X+P7RBkkSWCVm92gnWd28GIC5vJuLREeA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/project-service": "8.71.2", - "@typescript-eslint/tsconfig-utils": "8.71.2", - "@typescript-eslint/types": "8.71.2", - "@typescript-eslint/visitor-keys": "8.71.2", - "debug": "^4.4.3", - "minimatch": "^10.2.2", - "semver": "^7.7.3", - "tinyglobby": "^0.2.15", - "ts-api-utils": "^2.5.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "typescript": ">=4.8.4 <6.1.0" - } - }, - "node_modules/@typescript-eslint/typescript-estree/node_modules/balanced-match": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz", - "integrity": "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==", - "dev": true, - "license": "MIT", - "engines": { - "node": "18 || 20 || >=22" - } - }, - "node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": { - "version": "5.0.12", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.12.tgz", - "integrity": "sha512-YovQ3rzhaLMIrDjNDMkNS01tea93qhEhG5xy8f6+R0l+dw3Ki+5sCoIoI942iuLZTHWogWktgwVDhU09iNEimQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "balanced-match": "^4.0.2" - }, - "engines": { - "node": "20 || >=22" - } - }, - "node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": { - "version": "10.2.6", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.6.tgz", - "integrity": "sha512-vpLQEs+VLCr1nU0BXS07maYoFwlDAH0gngQuuttxIwutDFEMHq2blX+8vpgxDdK3J1PwjCJiep77OitTZ4Ll1A==", - "dev": true, - "license": "BlueOak-1.0.0", - "dependencies": { - "brace-expansion": "^5.0.8" - }, - "engines": { - "node": "18 || 20 || >=22" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/@typescript-eslint/typescript-estree/node_modules/semver": { - "version": "7.8.5", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz", - "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==", - "dev": true, - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@typescript-eslint/utils": { - "version": "8.71.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.71.2.tgz", - "integrity": "sha512-RyKa1G1M9rKHDhrk+HJtiF1MvLD5Ux2JW3TSkzw+02pRALdpJb+QzG1Y5em+LvCgzGwgg8H7mBRFKljNz7ImPw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@eslint-community/eslint-utils": "^4.9.1", - "@typescript-eslint/scope-manager": "8.71.2", - "@typescript-eslint/types": "8.71.2", - "@typescript-eslint/typescript-estree": "8.71.2" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", - "typescript": ">=4.8.4 <6.1.0" - } - }, - "node_modules/@typescript-eslint/visitor-keys": { - "version": "8.71.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.71.2.tgz", - "integrity": "sha512-zozlN0UA32bSG2zkKAgQyRYSbEISVoyU6vvkKYo2aSny74D8Jh4e+POkJ6Lk0dlezZi5x7TtD+88Xb06IB8nhg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/types": "8.71.2", - "eslint-visitor-keys": "^5.0.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-5.0.1.tgz", - "integrity": "sha512-tD40eHxA35h0PEIZNeIjkHoDR4YjjJp34biM0mDvplBe//mB+IHCqHDGV7pxF+7MklTvighcCPPZC7ynWyjdTA==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": "^20.19.0 || ^22.13.0 || >=24" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/@unrs/resolver-binding-android-arm-eabi": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-android-arm-eabi/-/resolver-binding-android-arm-eabi-1.12.2.tgz", - "integrity": "sha512-g5T90pqg1bo/7mytQx6F4iBNC0Wsh9cu+z9veDbFjc7HjpesJFWD7QMS0NGStXM075+7dJPPVvBbpZlnrdpi/w==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ] - }, - "node_modules/@unrs/resolver-binding-android-arm64": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-android-arm64/-/resolver-binding-android-arm64-1.12.2.tgz", - "integrity": "sha512-YGCRZv/9GLhwmz6mYDeTsm/92BAyR28l6c2ReweVW5pWgfsitWLY8upvfRlGdoyD8HjeTHSYJWyZGD4KJA/nFQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ] - }, - "node_modules/@unrs/resolver-binding-darwin-arm64": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-darwin-arm64/-/resolver-binding-darwin-arm64-1.12.2.tgz", - "integrity": "sha512-u9DiNT1auQMO20A9SyTuG3wUgQWB9Z7KjAg0uFuCDR1FsAY8A0CG2S6JpHS1xwm/w1G08bjXZDcyOCjv1WAm2w==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ] - }, - "node_modules/@unrs/resolver-binding-darwin-x64": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-darwin-x64/-/resolver-binding-darwin-x64-1.12.2.tgz", - "integrity": "sha512-f7rPLi/T1HVKZu/u6t87lroib16n8vrSzcyxI7lg4BGO9UF26KhQL44sd9eOUgrTYhvRXtWOIZT5PejdPyJfUA==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ] - }, - "node_modules/@unrs/resolver-binding-freebsd-x64": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-freebsd-x64/-/resolver-binding-freebsd-x64-1.12.2.tgz", - "integrity": "sha512-BpcOjWCJub6nRZUS2zA20pmLvjtqAtGejETaIyRLiZiQf++cbrjltLA5NN/xaXfqeOBOSlMFbemIl5/S5tljmg==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ] - }, - "node_modules/@unrs/resolver-binding-linux-arm-gnueabihf": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-arm-gnueabihf/-/resolver-binding-linux-arm-gnueabihf-1.12.2.tgz", - "integrity": "sha512-vZTDvdSISZjJx66OzJqtsOhzifbqRjbmI1Mnu49fQDwog5GtDI4QidRiEAYbZCRj9C8YZEW+3ZjqsyS9GR4k2A==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@unrs/resolver-binding-linux-arm-musleabihf": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-arm-musleabihf/-/resolver-binding-linux-arm-musleabihf-1.12.2.tgz", - "integrity": "sha512-BiPI+IrIlwcW4nLLMM21+B1dFPzd55yAVgVGrdgDjNef+ch03GdxrcyaIz8X9SsQirh/kCQ7mviyWlMxdh2D7g==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@unrs/resolver-binding-linux-arm64-gnu": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-arm64-gnu/-/resolver-binding-linux-arm64-gnu-1.12.2.tgz", - "integrity": "sha512-zJc0H99FEPoFfSrNpa91HYfxzfAJCr502oxNK1cfdC9hlaFI43RT+JFCann9JUgZmLzzntChHyn13Sgn9ljHNg==", - "cpu": [ - "arm64" - ], - "dev": true, - "libc": [ - "glibc" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@unrs/resolver-binding-linux-arm64-musl": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-arm64-musl/-/resolver-binding-linux-arm64-musl-1.12.2.tgz", - "integrity": "sha512-KQ3Lki6l+Pz1k/eBipN41ES+YUK30beLGb9YqcB1O542cyLCNE6GaxrfcY3T6EezmGGk84wb5XyO9loTM9tkcA==", - "cpu": [ - "arm64" - ], - "dev": true, - "libc": [ - "musl" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@unrs/resolver-binding-linux-loong64-gnu": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-loong64-gnu/-/resolver-binding-linux-loong64-gnu-1.12.2.tgz", - "integrity": "sha512-3SJGEh1DborhG6pyxvhPzCT4bbSIVihsvgJc13P1bHG7KLdNDaF9T3gsTwFc7Jw/5Y5/iWOjkEx7Zy0NvCGX3Q==", - "cpu": [ - "loong64" - ], - "dev": true, - "libc": [ - "glibc" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@unrs/resolver-binding-linux-loong64-musl": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-loong64-musl/-/resolver-binding-linux-loong64-musl-1.12.2.tgz", - "integrity": "sha512-jiuG/Obbel7uw1PwHNFfrkiKhLAF6mnyZ6aWlOAVN9WqKm8v0OFGnciJIHu8+CMvXLQ8AD51LPzAoUfT21D5Ew==", - "cpu": [ - "loong64" - ], - "dev": true, - "libc": [ - "musl" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@unrs/resolver-binding-linux-ppc64-gnu": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-ppc64-gnu/-/resolver-binding-linux-ppc64-gnu-1.12.2.tgz", - "integrity": "sha512-q7xRvVpmcfeL+LlZg8Pbbo6QaTZwDU5BaGZbwfhkEsXJn3Was8xYfE0RBH266xZt0rM6B7i8xAYIvjthuUIWHg==", - "cpu": [ - "ppc64" - ], - "dev": true, - "libc": [ - "glibc" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@unrs/resolver-binding-linux-riscv64-gnu": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-riscv64-gnu/-/resolver-binding-linux-riscv64-gnu-1.12.2.tgz", - "integrity": "sha512-0CVdx6lcnT3Q9inOH8tsMIOJ6ImndllMjqJHg8RLVdB7Vq4SfkEXl9mCSsVNuNA4MCYycRicCUxPCabVHJRr6A==", - "cpu": [ - "riscv64" - ], - "dev": true, - "libc": [ - "glibc" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@unrs/resolver-binding-linux-riscv64-musl": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-riscv64-musl/-/resolver-binding-linux-riscv64-musl-1.12.2.tgz", - "integrity": "sha512-iOwlRo9vnp6R6ohHQS11n0NnfdXx/omhkocmIfaPRpQhKZ+3BDMkkdRVh53qjkFkpPddf+FETA28NwGN7l5l+w==", - "cpu": [ - "riscv64" - ], - "dev": true, - "libc": [ - "musl" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@unrs/resolver-binding-linux-s390x-gnu": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-s390x-gnu/-/resolver-binding-linux-s390x-gnu-1.12.2.tgz", - "integrity": "sha512-HYJtLfXq94q8iZNFT1lknx258wlkkWhZeUXJRqzKBBUJ00CvZ+N33zgbCqimLjsyw5Va6uUxhVa12mI+kaveEw==", - "cpu": [ - "s390x" - ], - "dev": true, - "libc": [ - "glibc" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@unrs/resolver-binding-linux-x64-gnu": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-x64-gnu/-/resolver-binding-linux-x64-gnu-1.12.2.tgz", - "integrity": "sha512-mPsUhunKKDih5O96Y6enDQyHc1SqBPlY1E/SfMWDM3EdJ95Z9CArPeCVwCCqbP45ljvivdEk8Fxn+SIb1rDAJQ==", - "cpu": [ - "x64" - ], - "dev": true, - "libc": [ - "glibc" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@unrs/resolver-binding-linux-x64-musl": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-x64-musl/-/resolver-binding-linux-x64-musl-1.12.2.tgz", - "integrity": "sha512-azrt6+5ydLd8Vt210AAFis/lZevSfPw93EJRIJG+xPu4WCJ8K0kppCTpMyLPcKT7H15M4Jnt2tMp5bOvCkRC6A==", - "cpu": [ - "x64" - ], - "dev": true, - "libc": [ - "musl" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@unrs/resolver-binding-openharmony-arm64": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-openharmony-arm64/-/resolver-binding-openharmony-arm64-1.12.2.tgz", - "integrity": "sha512-YZ9hP4O0X9PQb8eO980qmLNGH4zT3I9+SZTdt0Pr0YyuGQhYKoOZkV02VzrzyOZJ5xIJ3UFIenKkUkGg8GjgWQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "openharmony" - ] - }, - "node_modules/@unrs/resolver-binding-wasm32-wasi": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-wasm32-wasi/-/resolver-binding-wasm32-wasi-1.12.2.tgz", - "integrity": "sha512-tYFDIkMxSflfEc/h92ZWNsZlHSwgimbNHSO3PL2JWQHfCuC2q316jMyYU9TIWZsFK2bQwyK5VAdYgn8ygPj69A==", - "cpu": [ - "wasm32" - ], - "dev": true, - "license": "MIT", - "optional": true, - "dependencies": { - "@emnapi/core": "1.10.0", - "@emnapi/runtime": "1.10.0", - "@napi-rs/wasm-runtime": "^1.1.4" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@unrs/resolver-binding-wasm32-wasi/node_modules/@emnapi/runtime": { - "version": "1.10.0", - "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.10.0.tgz", - "integrity": "sha512-ewvYlk86xUoGI0zQRNq/mC+16R1QeDlKQy21Ki3oSYXNgLb45GV1P6A0M+/s6nyCuNDqe5VpaY84BzXGwVbwFA==", - "dev": true, - "license": "MIT", - "optional": true, - "dependencies": { - "tslib": "^2.4.0" - } - }, - "node_modules/@unrs/resolver-binding-win32-arm64-msvc": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-win32-arm64-msvc/-/resolver-binding-win32-arm64-msvc-1.12.2.tgz", - "integrity": "sha512-qzNyg3xL0VPQmCaUh+N5jSitce6k+uCBfMDesWRnlULOZaqUkaJ0ybdT+UqlAWJoQjuqfIU/0Ptx9bteN4D82g==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ] - }, - "node_modules/@unrs/resolver-binding-win32-ia32-msvc": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-win32-ia32-msvc/-/resolver-binding-win32-ia32-msvc-1.12.2.tgz", - "integrity": "sha512-WD9sY00OfpHVGfsnHZoA8jVT+esS/Bg8z8jzxp5BnDCjjwsuKsPQrzswwpFy4J1AUJbXPRfkpcX0mXrzeXW79g==", - "cpu": [ - "ia32" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ] - }, - "node_modules/@unrs/resolver-binding-win32-x64-msvc": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-win32-x64-msvc/-/resolver-binding-win32-x64-msvc-1.12.2.tgz", - "integrity": "sha512-nAB74NfSNKknqQ1RrYj6uz8FcXEomu/MATJZxh/x+BArzN2U3JbOYC0APYzUIGhVY3m5hRxA8VPNdPBoG8txlA==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ] - }, - "node_modules/acorn": { - "version": "8.19.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.19.0.tgz", - "integrity": "sha512-oJlA3XiRm7Cyk6qFD2Jn8ak9B7jSy0qy00ADO3+8dpT0LSjFihQYv4C02LFCSYJV3Q37xYwwRy5m+IpIiUzqWw==", - "dev": true, - "license": "MIT", - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/acorn-jsx": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", - "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", - "dev": true, - "license": "MIT", - "peerDependencies": { - "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" - } - }, - "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/ajv": { - "version": "6.15.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.15.0.tgz", - "integrity": "sha512-fgFx7Hfoq60ytK2c7DhnF8jIvzYgOMxfugjLOSMHjLIPgenqa7S7oaagATUq99mV6IYvN2tRmC0wnTYX6iPbMw==", - "dev": true, - "license": "MIT", - "dependencies": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/ansi-colors": { - "version": "4.1.3", - "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.3.tgz", - "integrity": "sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "license": "MIT", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true, - "license": "Python-2.0" - }, - "node_modules/aria-query": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.3.2.tgz", - "integrity": "sha512-COROpnaoap1E2F000S62r6A60uHZnmlvomhfyT2DlTcrY1OrBKn2UhH7qn5wTC9zMvD0AY7csdPSNwKP+7WiQw==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/array-buffer-byte-length": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.2.tgz", - "integrity": "sha512-LHE+8BuR7RYGDKvnrmcuSq3tDcKv9OFEXQt/HpbZhY7V6h0zlUXutnAD82GiFx9rdieCMjkvtcsPqBwgUl1Iiw==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.3", - "is-array-buffer": "^3.0.5" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/array-includes": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.2.0.tgz", - "integrity": "sha512-VXY5eFRarnXcYxwBjJzPmEhH55+rmP79/+ueDhi0F+TuqfHCItagIHqxeUZrmgrOPa31QTh9H85DjX3FfJ0FTg==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.9", - "call-bound": "^1.0.4", - "define-properties": "^1.2.1", - "es-abstract": "^1.24.2", - "es-object-atoms": "^1.1.2", - "es-shim-unscopables": "^1.1.0", - "is-string": "^1.1.1", - "math-intrinsics": "^1.1.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/array.prototype.findlast": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/array.prototype.findlast/-/array.prototype.findlast-1.2.5.tgz", - "integrity": "sha512-CVvd6FHg1Z3POpBLxO6E6zr+rSKEQ9L6rZHAaY7lLfhKsWYUBBOuMs0e9o24oopj6H+geRCX0YJ+TJLBK2eHyQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.7", - "define-properties": "^1.2.1", - "es-abstract": "^1.23.2", - "es-errors": "^1.3.0", - "es-object-atoms": "^1.0.0", - "es-shim-unscopables": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/array.prototype.findlastindex": { - "version": "1.2.6", - "resolved": "https://registry.npmjs.org/array.prototype.findlastindex/-/array.prototype.findlastindex-1.2.6.tgz", - "integrity": "sha512-F/TKATkzseUExPlfvmwQKGITM3DGTK+vkAsCZoDc5daVygbJBnjEUCbgkAvVFsgfXfX4YIqZ/27G3k3tdXrTxQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.8", - "call-bound": "^1.0.4", - "define-properties": "^1.2.1", - "es-abstract": "^1.23.9", - "es-errors": "^1.3.0", - "es-object-atoms": "^1.1.1", - "es-shim-unscopables": "^1.1.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/array.prototype.flat": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.3.tgz", - "integrity": "sha512-rwG/ja1neyLqCuGZ5YYrznA62D4mZXg0i1cIskIUKSiqF3Cje9/wXAls9B9s1Wa2fomMsIv8czB8jZcPmxCXFg==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.8", - "define-properties": "^1.2.1", - "es-abstract": "^1.23.5", - "es-shim-unscopables": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/array.prototype.flatmap": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.3.3.tgz", - "integrity": "sha512-Y7Wt51eKJSyi80hFrJCePGGNo5ktJCslFuboqJsbf57CCPcm5zztluPlc4/aD8sWsKvlwatezpV4U1efk8kpjg==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.8", - "define-properties": "^1.2.1", - "es-abstract": "^1.23.5", - "es-shim-unscopables": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/array.prototype.tosorted": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/array.prototype.tosorted/-/array.prototype.tosorted-1.1.4.tgz", - "integrity": "sha512-p6Fx8B7b7ZhL/gmUsAy0D15WhvDccw3mnGNbZpi3pmeJdxtWsj2jEaI4Y6oo3XiHfzuSgPwKc04MYt6KgvC/wA==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.7", - "define-properties": "^1.2.1", - "es-abstract": "^1.23.3", - "es-errors": "^1.3.0", - "es-shim-unscopables": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/arraybuffer.prototype.slice": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.4.tgz", - "integrity": "sha512-BNoCY6SXXPQ7gF2opIP4GBE+Xw7U+pHMYKuzjgCN3GwiaIR09UUeKfheyIry77QtrCBlC0KK0q5/TER/tYh3PQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "array-buffer-byte-length": "^1.0.1", - "call-bind": "^1.0.8", - "define-properties": "^1.2.1", - "es-abstract": "^1.23.5", - "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.6", - "is-array-buffer": "^3.0.4" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/ast-types-flow": { - "version": "0.0.8", - "resolved": "https://registry.npmjs.org/ast-types-flow/-/ast-types-flow-0.0.8.tgz", - "integrity": "sha512-OH/2E5Fg20h2aPrbe+QL8JZQFko0YZaF+j4mnQ7BGhfavO7OpSLa8a0y9sBwomHdSbkhTS8TQNayBfnW5DwbvQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/async-function": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/async-function/-/async-function-1.0.0.tgz", - "integrity": "sha512-hsU18Ae8CDTR6Kgu9DYf0EbCr/a5iGL0rytQDobUcdpYOKokk8LEjVphnXkDkgpi0wYVsqrXuP0bZxJaTqdgoA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/available-typed-arrays": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz", - "integrity": "sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "possible-typed-array-names": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/axe-core": { - "version": "4.14.0", - "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.14.0.tgz", - "integrity": "sha512-9WTZxEjsZ7b13TH8JPmbV2z8CHbl80/2hm3XPEG4JgNdQLK81IBRXmSxHfMAOkSqQeRxT/0dwNDz2GOm3zzpcQ==", - "dev": true, - "license": "MPL-2.0", - "engines": { - "node": ">=4" - } - }, - "node_modules/axobject-query": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-4.1.0.tgz", - "integrity": "sha512-qIj0G9wZbMGNLjLmg1PT6v2mE9AH2zlnADJD/2tC6E00hgmhUOfEB6greHPAfLRSufHqROIUTkw6E+M3lH0PTQ==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", - "dev": true, - "license": "MIT" - }, - "node_modules/baseline-browser-mapping": { - "version": "2.11.28", - "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.11.28.tgz", - "integrity": "sha512-br0LOmjJqr6Rt4AEkadbcNf67Zpo7EPwKsWbjnRrJIa1QYFHQBqM4C7F2WTbV8ahTEcg1Eo+Y0aWjjORInYFyA==", - "license": "Apache-2.0", - "bin": { - "baseline-browser-mapping": "dist/cli.cjs" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/brace-expansion": { - "version": "1.1.21", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.21.tgz", - "integrity": "sha512-9zeA+KLZNNzglF2TPKRQEDyx6Yby7daAkuy8MiPzpXPsYDWi/DRM8jmwUDxokQjYqBpv5DgPiwD4h4ZZSy1Ujw==", - "dev": true, - "license": "MIT", - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/braces": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", - "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", - "dev": true, - "license": "MIT", - "dependencies": { - "fill-range": "^7.1.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/browserslist": { - "version": "4.29.3", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.29.3.tgz", - "integrity": "sha512-1R4kiYKXGViqEN0CnoDrXc1StD9niAwu+j2dukWzrD4bJgsD4lDmEp0CRbc6E/vYJIfTHwPmwyaKtVSudICdPA==", - "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.11.26", - "caniuse-lite": "^1.0.30001813", - "electron-to-chromium": "^1.5.439", - "node-releases": "^2.0.57", - "update-browserslist-db": "^1.3.3" - }, - "bin": { - "browserslist": "cli.js" - }, - "engines": { - "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" - } - }, - "node_modules/call-bind": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.9.tgz", - "integrity": "sha512-a/hy+pNsFUTR+Iz8TCJvXudKVLAnz/DyeSUo10I5yvFDQJBFU2s9uqQpoSrJlroHUKoKqzg+epxyP9lqFdzfBQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind-apply-helpers": "^1.0.2", - "es-define-property": "^1.0.1", - "get-intrinsic": "^1.3.0", - "set-function-length": "^1.2.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "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/call-bound": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz", - "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind-apply-helpers": "^1.0.2", - "get-intrinsic": "^1.3.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/callsites": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", - "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/caniuse-lite": { - "version": "1.0.30001815", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001815.tgz", - "integrity": "sha512-uDybUEyfgbyJJ93J1vikTylBX31AkdVYeVPeffMQpf8XN7hSfr0oZOn4VFOIMNvtU5+rHvC5Udg2TgtJKHm23Q==", - "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/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/change-case": { - "version": "5.4.4", - "resolved": "https://registry.npmjs.org/change-case/-/change-case-5.4.4.tgz", - "integrity": "sha512-HRQyTk2/YPEkt9TnUPbOpr64Uw3KOicFWPVBb+xiHvd6eBx/qPr9xqfBFDT8P2vWsvvz4jbEkfDe71W3VyNu2w==", - "dev": true, - "license": "MIT" - }, - "node_modules/client-only": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/client-only/-/client-only-0.0.1.tgz", - "integrity": "sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA==", - "license": "MIT" - }, - "node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true, - "license": "MIT" - }, - "node_modules/colorette": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/colorette/-/colorette-1.4.0.tgz", - "integrity": "sha512-Y2oEozpomLn7Q3HFP7dpww7AtMJplbM9lGZP6RDfHqmbeRjiwRg4n6VM6j4KLmRke85uWEI7JqF17f3pqdRA0g==", - "dev": true, - "license": "MIT" - }, - "node_modules/concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", - "dev": true, - "license": "MIT" - }, - "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/cross-spawn": { - "version": "7.0.6", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", - "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", - "dev": true, - "license": "MIT", - "dependencies": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - }, - "engines": { - "node": ">= 8" - } - }, - "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==", - "dev": true, - "license": "MIT" - }, - "node_modules/damerau-levenshtein": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/damerau-levenshtein/-/damerau-levenshtein-1.0.8.tgz", - "integrity": "sha512-sdQSFB7+llfUcQHUQO3+B8ERRj0Oa4w9POWMI/puGtuf7gFywGmkaLCElnudfTiKZV+NvHqL0ifzdrI8Ro7ESA==", - "dev": true, - "license": "BSD-2-Clause" - }, - "node_modules/data-view-buffer": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/data-view-buffer/-/data-view-buffer-1.0.2.tgz", - "integrity": "sha512-EmKO5V3OLXh1rtK2wgXRansaK1/mtVdTUEiEI0W8RkvgT05kfxaH29PliLnpLP73yYO6142Q72QNa8Wx/A5CqQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.3", - "es-errors": "^1.3.0", - "is-data-view": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/data-view-byte-length": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/data-view-byte-length/-/data-view-byte-length-1.0.2.tgz", - "integrity": "sha512-tuhGbE6CfTM9+5ANGf+oQb72Ky/0+s3xKUpHvShfiz2RxMFgFPjsXuRLBVMtvMs15awe45SRb83D6wH4ew6wlQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.3", - "es-errors": "^1.3.0", - "is-data-view": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/inspect-js" - } - }, - "node_modules/data-view-byte-offset": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/data-view-byte-offset/-/data-view-byte-offset-1.0.1.tgz", - "integrity": "sha512-BS8PfmtDGnrgYdOonGZQdLZslWIeCGFP9tpan0hi1Co2Zr2NKADsvGYA8XxuG/4UWgJ6Cjtv+YJnB6MM69QGlQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.2", - "es-errors": "^1.3.0", - "is-data-view": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "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/deep-is": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", - "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/define-data-property": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz", - "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==", - "dev": true, - "license": "MIT", - "dependencies": { - "es-define-property": "^1.0.0", - "es-errors": "^1.3.0", - "gopd": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/define-properties": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz", - "integrity": "sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==", - "dev": true, - "license": "MIT", - "dependencies": { - "define-data-property": "^1.0.1", - "has-property-descriptors": "^1.0.0", - "object-keys": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/detect-libc": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz", - "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==", - "devOptional": true, - "license": "Apache-2.0", - "engines": { - "node": ">=8" - } - }, - "node_modules/doctrine": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", - "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "esutils": "^2.0.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "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.452", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.452.tgz", - "integrity": "sha512-cVvk1YBSj6571VmV6hdJTqj94Y79xSu8cj6Y9t6ae4Y4431z8/7EJFvu3rVp90xhfuv9BpPKUmaLfTo4+FOGBg==", - "dev": true, - "license": "ISC" - }, - "node_modules/emoji-regex": { - "version": "9.2.2", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", - "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", - "dev": true, - "license": "MIT" - }, - "node_modules/enhanced-resolve": { - "version": "5.26.0", - "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.26.0.tgz", - "integrity": "sha512-9vhedylFonb2YGogzUKX6+Ja72gOJbN1QHAqdrvqLwhdl/QWbKopzoUC9EbQNVsAns/bx/4uyqalrQAoy1IByw==", - "dev": true, - "license": "MIT", - "dependencies": { - "graceful-fs": "^4.2.4", - "tapable": "^2.3.3" - }, - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/es-abstract": { - "version": "1.24.2", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.24.2.tgz", - "integrity": "sha512-2FpH9Q5i2RRwyEP1AylXe6nYLR5OhaJTZwmlcP0dL/+JCbgg7yyEo/sEK6HeGZRf3dFpWwThaRHVApXSkW3xeg==", - "dev": true, - "license": "MIT", - "dependencies": { - "array-buffer-byte-length": "^1.0.2", - "arraybuffer.prototype.slice": "^1.0.4", - "available-typed-arrays": "^1.0.7", - "call-bind": "^1.0.8", - "call-bound": "^1.0.4", - "data-view-buffer": "^1.0.2", - "data-view-byte-length": "^1.0.2", - "data-view-byte-offset": "^1.0.1", - "es-define-property": "^1.0.1", - "es-errors": "^1.3.0", - "es-object-atoms": "^1.1.1", - "es-set-tostringtag": "^2.1.0", - "es-to-primitive": "^1.3.0", - "function.prototype.name": "^1.1.8", - "get-intrinsic": "^1.3.0", - "get-proto": "^1.0.1", - "get-symbol-description": "^1.1.0", - "globalthis": "^1.0.4", - "gopd": "^1.2.0", - "has-property-descriptors": "^1.0.2", - "has-proto": "^1.2.0", - "has-symbols": "^1.1.0", - "hasown": "^2.0.2", - "internal-slot": "^1.1.0", - "is-array-buffer": "^3.0.5", - "is-callable": "^1.2.7", - "is-data-view": "^1.0.2", - "is-negative-zero": "^2.0.3", - "is-regex": "^1.2.1", - "is-set": "^2.0.3", - "is-shared-array-buffer": "^1.0.4", - "is-string": "^1.1.1", - "is-typed-array": "^1.1.15", - "is-weakref": "^1.1.1", - "math-intrinsics": "^1.1.0", - "object-inspect": "^1.13.4", - "object-keys": "^1.1.1", - "object.assign": "^4.1.7", - "own-keys": "^1.0.1", - "regexp.prototype.flags": "^1.5.4", - "safe-array-concat": "^1.1.3", - "safe-push-apply": "^1.0.0", - "safe-regex-test": "^1.1.0", - "set-proto": "^1.0.0", - "stop-iteration-iterator": "^1.1.0", - "string.prototype.trim": "^1.2.10", - "string.prototype.trimend": "^1.0.9", - "string.prototype.trimstart": "^1.0.8", - "typed-array-buffer": "^1.0.3", - "typed-array-byte-length": "^1.0.3", - "typed-array-byte-offset": "^1.0.4", - "typed-array-length": "^1.0.7", - "unbox-primitive": "^1.1.0", - "which-typed-array": "^1.1.19" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/es-abstract-get": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/es-abstract-get/-/es-abstract-get-1.0.0.tgz", - "integrity": "sha512-6PMWXpdhshVvFp+FoWYs1EvG1Nj0tvk0dZM+XcK0xMEM1czRVcP6ohqPWHy6qPagSpC8j4+p89WXlT+xXJs/fg==", - "dev": true, - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "es-object-atoms": "^1.1.2", - "is-callable": "^1.2.7", - "object-inspect": "^1.13.4" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "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-iterator-helpers": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/es-iterator-helpers/-/es-iterator-helpers-1.4.0.tgz", - "integrity": "sha512-c/A0P0oxkACDc+cKWw8evLXK83oBKgn0qPOqCYT4x9uolpCIJAcYvJC9QYKNDRPsTeGyCrQ326jrvgZWdCdK5Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.9", - "call-bound": "^1.0.4", - "define-properties": "^1.2.1", - "es-abstract": "^1.24.2", - "es-errors": "^1.3.0", - "es-set-tostringtag": "^2.1.0", - "function-bind": "^1.1.2", - "get-intrinsic": "^1.3.0", - "globalthis": "^1.0.4", - "gopd": "^1.2.0", - "has-property-descriptors": "^1.0.2", - "has-proto": "^1.2.0", - "has-symbols": "^1.1.0", - "internal-slot": "^1.1.0", - "iterator.prototype": "^1.1.5", - "math-intrinsics": "^1.1.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-object-atoms": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.2.tgz", - "integrity": "sha512-HWcBoN6NileqtSydK2FqHbS/LoDd2pqrnQHLyJzBj4kOp/ky2MWMN694xOfkK8/SnUsW2DH7EfyVlydKCsm1Zw==", - "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-shim-unscopables": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.1.0.tgz", - "integrity": "sha512-d9T8ucsEhh8Bi1woXCf+TIKDIROLG5WCkxg8geBCbvk22kzwC5G2OnXVMO6FUsvQlgUUXQ2itephWDLqDzbeCw==", - "dev": true, - "license": "MIT", - "dependencies": { - "hasown": "^2.0.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-to-primitive": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.3.4.tgz", - "integrity": "sha512-yPDz7wqpg1/mmHLmS3tcfTfbw5f1eryXvyghYBffGdERwe+mV7ZcWzTR8LR17Kvqt3qfPurjlonmnq3MKXIOXw==", - "dev": true, - "license": "MIT", - "dependencies": { - "es-abstract-get": "^1.0.0", - "es-define-property": "^1.0.1", - "es-errors": "^1.3.0", - "is-callable": "^1.2.7", - "is-date-object": "^1.1.0", - "is-symbol": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "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/escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/eslint": { - "version": "9.39.5", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.39.5.tgz", - "integrity": "sha512-DgZS62aPLXKlnxILS/AYCoRvHaZeXceIzlXPkkGGzJWSow1aEk0lbTlxUSlyjC8jcaKxAdOnTDz+o1JFSBsyjw==", - "deprecated": "This version is no longer supported. Please see https://eslint.org/version-support for other options.", - "dev": true, - "license": "MIT", - "dependencies": { - "@eslint-community/eslint-utils": "^4.8.0", - "@eslint-community/regexpp": "^4.12.1", - "@eslint/config-array": "^0.21.2", - "@eslint/config-helpers": "^0.4.2", - "@eslint/core": "^0.17.0", - "@eslint/eslintrc": "^3.3.6", - "@eslint/js": "9.39.5", - "@eslint/plugin-kit": "^0.4.1", - "@humanfs/node": "^0.16.6", - "@humanwhocodes/module-importer": "^1.0.1", - "@humanwhocodes/retry": "^0.4.2", - "@types/estree": "^1.0.6", - "ajv": "^6.14.0", - "chalk": "^4.0.0", - "cross-spawn": "^7.0.6", - "debug": "^4.3.2", - "escape-string-regexp": "^4.0.0", - "eslint-scope": "^8.4.0", - "eslint-visitor-keys": "^4.2.1", - "espree": "^10.4.0", - "esquery": "^1.5.0", - "esutils": "^2.0.2", - "fast-deep-equal": "^3.1.3", - "file-entry-cache": "^8.0.0", - "find-up": "^5.0.0", - "glob-parent": "^6.0.2", - "ignore": "^5.2.0", - "imurmurhash": "^0.1.4", - "is-glob": "^4.0.0", - "json-stable-stringify-without-jsonify": "^1.0.1", - "lodash.merge": "^4.6.2", - "minimatch": "^3.1.5", - "natural-compare": "^1.4.0", - "optionator": "^0.9.3" - }, - "bin": { - "eslint": "bin/eslint.js" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://eslint.org/donate" - }, - "peerDependencies": { - "jiti": "*" - }, - "peerDependenciesMeta": { - "jiti": { - "optional": true - } - } - }, - "node_modules/eslint-config-next": { - "version": "16.4.3", - "resolved": "https://registry.npmjs.org/eslint-config-next/-/eslint-config-next-16.4.3.tgz", - "integrity": "sha512-j9IqBma6abp800frdUURaizYMgXOK+jNGyq6CsYcM9AxpSJs5D/TgMNGeAmRUilZvA7g9V1Tr71gNg9/SVTuMQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@next/eslint-plugin-next": "16.4.3", - "eslint-import-resolver-node": "^0.3.6", - "eslint-import-resolver-typescript": "^3.5.2", - "eslint-plugin-import": "^2.32.0", - "eslint-plugin-jsx-a11y": "^6.10.0", - "eslint-plugin-react": "^7.37.0", - "eslint-plugin-react-hooks": "^7.1.0", - "globals": "16.4.0", - "typescript-eslint": "^8.56.0" - }, - "peerDependencies": { - "eslint": ">=9.0.0", - "typescript": ">=3.3.1" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/eslint-config-next/node_modules/globals": { - "version": "16.4.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-16.4.0.tgz", - "integrity": "sha512-ob/2LcVVaVGCYN+r14cnwnoDPUufjiYgSqRhiFD0Q1iI4Odora5RE8Iv1D24hAz5oMophRGkGz+yuvQmmUMnMw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/eslint-import-resolver-node": { - "version": "0.3.10", - "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.10.tgz", - "integrity": "sha512-tRrKqFyCaKict5hOd244sL6EQFNycnMQnBe+j8uqGNXYzsImGbGUU4ibtoaBmv5FLwJwcFJNeg1GeVjQfbMrDQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "debug": "^3.2.7", - "is-core-module": "^2.16.1", - "resolve": "^2.0.0-next.6" - } - }, - "node_modules/eslint-import-resolver-node/node_modules/debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "ms": "^2.1.1" - } - }, - "node_modules/eslint-import-resolver-typescript": { - "version": "3.10.1", - "resolved": "https://registry.npmjs.org/eslint-import-resolver-typescript/-/eslint-import-resolver-typescript-3.10.1.tgz", - "integrity": "sha512-A1rHYb06zjMGAxdLSkN2fXPBwuSaQ0iO5M/hdyS0Ajj1VBaRp0sPD3dn1FhME3c/JluGFbwSxyCfqdSbtQLAHQ==", - "dev": true, - "license": "ISC", - "dependencies": { - "@nolyfill/is-core-module": "1.0.39", - "debug": "^4.4.0", - "get-tsconfig": "^4.10.0", - "is-bun-module": "^2.0.0", - "stable-hash": "^0.0.5", - "tinyglobby": "^0.2.13", - "unrs-resolver": "^1.6.2" - }, - "engines": { - "node": "^14.18.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint-import-resolver-typescript" - }, - "peerDependencies": { - "eslint": "*", - "eslint-plugin-import": "*", - "eslint-plugin-import-x": "*" - }, - "peerDependenciesMeta": { - "eslint-plugin-import": { - "optional": true - }, - "eslint-plugin-import-x": { - "optional": true - } - } - }, - "node_modules/eslint-module-utils": { - "version": "2.14.0", - "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.14.0.tgz", - "integrity": "sha512-W2WCRZ9Dqntd+2u8jJcVMV2PKulc6RdLgUUoh/yQr3uB6lo/ZOeGx11sv60/8S4QFFKNslAlWhr9u0Ef7ZW6Ig==", - "dev": true, - "license": "MIT", - "dependencies": { - "debug": "^3.2.7" - }, - "engines": { - "node": ">=4" - }, - "peerDependenciesMeta": { - "eslint": { - "optional": true - } - } - }, - "node_modules/eslint-module-utils/node_modules/debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "ms": "^2.1.1" - } - }, - "node_modules/eslint-plugin-import": { - "version": "2.32.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.32.0.tgz", - "integrity": "sha512-whOE1HFo/qJDyX4SnXzP4N6zOWn79WhnCUY/iDR0mPfQZO8wcYE4JClzI2oZrhBnnMUCBCHZhO6VQyoBU95mZA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@rtsao/scc": "^1.1.0", - "array-includes": "^3.1.9", - "array.prototype.findlastindex": "^1.2.6", - "array.prototype.flat": "^1.3.3", - "array.prototype.flatmap": "^1.3.3", - "debug": "^3.2.7", - "doctrine": "^2.1.0", - "eslint-import-resolver-node": "^0.3.9", - "eslint-module-utils": "^2.12.1", - "hasown": "^2.0.2", - "is-core-module": "^2.16.1", - "is-glob": "^4.0.3", - "minimatch": "^3.1.2", - "object.fromentries": "^2.0.8", - "object.groupby": "^1.0.3", - "object.values": "^1.2.1", - "semver": "^6.3.1", - "string.prototype.trimend": "^1.0.9", - "tsconfig-paths": "^3.15.0" - }, - "engines": { - "node": ">=4" - }, - "peerDependencies": { - "eslint": "^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8 || ^9" - } - }, - "node_modules/eslint-plugin-import/node_modules/debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "ms": "^2.1.1" - } - }, - "node_modules/eslint-plugin-jsx-a11y": { - "version": "6.10.2", - "resolved": "https://registry.npmjs.org/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.10.2.tgz", - "integrity": "sha512-scB3nz4WmG75pV8+3eRUQOHZlNSUhFNq37xnpgRkCCELU3XMvXAxLk1eqWWyE22Ki4Q01Fnsw9BA3cJHDPgn2Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "aria-query": "^5.3.2", - "array-includes": "^3.1.8", - "array.prototype.flatmap": "^1.3.2", - "ast-types-flow": "^0.0.8", - "axe-core": "^4.10.0", - "axobject-query": "^4.1.0", - "damerau-levenshtein": "^1.0.8", - "emoji-regex": "^9.2.2", - "hasown": "^2.0.2", - "jsx-ast-utils": "^3.3.5", - "language-tags": "^1.0.9", - "minimatch": "^3.1.2", - "object.fromentries": "^2.0.8", - "safe-regex-test": "^1.0.3", - "string.prototype.includes": "^2.0.1" - }, - "engines": { - "node": ">=4.0" - }, - "peerDependencies": { - "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8 || ^9" - } - }, - "node_modules/eslint-plugin-react": { - "version": "7.37.5", - "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.37.5.tgz", - "integrity": "sha512-Qteup0SqU15kdocexFNAJMvCJEfa2xUKNV4CC1xsVMrIIqEy3SQ/rqyxCWNzfrd3/ldy6HMlD2e0JDVpDg2qIA==", - "dev": true, - "license": "MIT", - "dependencies": { - "array-includes": "^3.1.8", - "array.prototype.findlast": "^1.2.5", - "array.prototype.flatmap": "^1.3.3", - "array.prototype.tosorted": "^1.1.4", - "doctrine": "^2.1.0", - "es-iterator-helpers": "^1.2.1", - "estraverse": "^5.3.0", - "hasown": "^2.0.2", - "jsx-ast-utils": "^2.4.1 || ^3.0.0", - "minimatch": "^3.1.2", - "object.entries": "^1.1.9", - "object.fromentries": "^2.0.8", - "object.values": "^1.2.1", - "prop-types": "^15.8.1", - "resolve": "^2.0.0-next.5", - "semver": "^6.3.1", - "string.prototype.matchall": "^4.0.12", - "string.prototype.repeat": "^1.0.0" - }, - "engines": { - "node": ">=4" - }, - "peerDependencies": { - "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8 || ^9.7" - } - }, - "node_modules/eslint-plugin-react-hooks": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-7.1.1.tgz", - "integrity": "sha512-f2I7Gw6JbvCexzIInuSbZpfdQ44D7iqdWX01FKLvrPgqxoE7oMj8clOfto8U6vYiz4yd5oKu39rRSVOe1zRu0g==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/core": "^7.24.4", - "@babel/parser": "^7.24.4", - "hermes-parser": "^0.25.1", - "zod": "^3.25.0 || ^4.0.0", - "zod-validation-error": "^3.5.0 || ^4.0.0" - }, - "engines": { - "node": ">=18" - }, - "peerDependencies": { - "eslint": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 || ^9.0.0 || ^10.0.0" - } - }, - "node_modules/eslint-scope": { - "version": "8.4.0", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.4.0.tgz", - "integrity": "sha512-sNXOfKCn74rt8RICKMvJS7XKV/Xk9kA7DyJr8mJik3S7Cwgy3qlkkmyS2uQB3jiJg6VNdZd/pDBJu0nvG2NlTg==", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^5.2.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/eslint-visitor-keys": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz", - "integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/espree": { - "version": "10.4.0", - "resolved": "https://registry.npmjs.org/espree/-/espree-10.4.0.tgz", - "integrity": "sha512-j6PAQ2uUr79PZhBjP5C5fhl8e39FmRnOjsD5lGnWrFU8i2G776tBK7+nP8KuQUTTyAZUwfQqXAgrVH5MbH9CYQ==", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "acorn": "^8.15.0", - "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^4.2.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/esquery": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.7.0.tgz", - "integrity": "sha512-Ap6G0WQwcU/LHsvLwON1fAQX9Zp0A2Y6Y/cJBl9r/JbW90Zyg4/zbG6zzKa2OTALELarYHmKu0GhpM5EO+7T0g==", - "dev": true, - "license": "BSD-3-Clause", - "dependencies": { - "estraverse": "^5.1.0" - }, - "engines": { - "node": ">=0.10" - } - }, - "node_modules/esrecurse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", - "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "estraverse": "^5.2.0" - }, - "engines": { - "node": ">=4.0" - } - }, - "node_modules/estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "dev": true, - "license": "BSD-2-Clause", - "engines": { - "node": ">=4.0" - } - }, - "node_modules/esutils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true, - "license": "BSD-2-Clause", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/fast-deep-equal": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", - "dev": true, - "license": "MIT" - }, - "node_modules/fast-glob": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.1.tgz", - "integrity": "sha512-kNFPyjhh5cKjrUltxs+wFx+ZkbRaxxmZ+X0ZU31SOsxCEtP9VPgtq2teZw1DebupL5GmDaNQ6yKMMVcM41iqDg==", - "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.4" - }, - "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/fast-json-stable-stringify": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", - "dev": true, - "license": "MIT" - }, - "node_modules/fast-levenshtein": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", - "dev": true, - "license": "MIT" - }, - "node_modules/fastq": { - "version": "1.20.3", - "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.20.3.tgz", - "integrity": "sha512-XKv5nnLs6nLF71NgiKJLIZFLkPyIEuOselLG7ujZnGrRfQK8HpvY+WqKhAJUAdLomwVHErVS4LfxFlPq0/FTAw==", - "dev": true, - "license": "ISC", - "dependencies": { - "reusify": "^1.0.4" - } - }, - "node_modules/file-entry-cache": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz", - "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "flat-cache": "^4.0.0" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/fill-range": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", - "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", - "dev": true, - "license": "MIT", - "dependencies": { - "to-regex-range": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/find-up": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", - "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", - "dev": true, - "license": "MIT", - "dependencies": { - "locate-path": "^6.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/flat-cache": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz", - "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==", - "dev": true, - "license": "MIT", - "dependencies": { - "flatted": "^3.2.9", - "keyv": "^4.5.4" - }, - "engines": { - "node": ">=16" - } - }, - "node_modules/flatted": { - "version": "3.4.4", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.4.4.tgz", - "integrity": "sha512-5+ybhBZANEJxaH3X5evAFatUxLfEHSr7n6kYJ+1Qd0mUqr4eu9gIf6GDbWHf8RJijHrjjO8G+la14SlL2SeS1Q==", - "dev": true, - "license": "ISC" - }, - "node_modules/for-each": { - "version": "0.3.5", - "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.5.tgz", - "integrity": "sha512-dKx12eRCVIzqCxFGplyFKJMPvLEWgmNtUrpTiJIR5u97zEhRG8ySrtboPHZXx7daLxQVrl643cTzbab2tkQjxg==", - "dev": true, - "license": "MIT", - "dependencies": { - "is-callable": "^1.2.7" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "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/function.prototype.name": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.2.0.tgz", - "integrity": "sha512-jObKIik1P2QjPHP5nz5BaOtUlfgS0fWo8IUByNXkM+o+02sJOi94em77GwJKQSJ3gfPHdgzLNrHc1uokV4P/ew==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.9", - "call-bound": "^1.0.4", - "es-define-property": "^1.0.1", - "es-errors": "^1.3.0", - "functions-have-names": "^1.2.3", - "has-property-descriptors": "^1.0.2", - "hasown": "^2.0.4", - "is-callable": "^1.2.7", - "is-document.all": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/functions-have-names": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", - "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==", - "dev": true, - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/generator-function": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/generator-function/-/generator-function-2.0.1.tgz", - "integrity": "sha512-SFdFmIJi+ybC0vjlHN0ZGVGHc3lgE0DxPAT0djjVg+kjOnSqclqmj0KQ7ykTOLP6YxoqOvuAODGdcHJn+43q3g==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "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/get-symbol-description": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.1.0.tgz", - "integrity": "sha512-w9UMqWwJxHNOvoNzSJ2oPF5wvYcvP7jUvYzhp67yEhTi17ZDBBC1z9pTdGuzjD+EFIqLSYRweZjqfiPzQ06Ebg==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.3", - "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.6" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/get-tsconfig": { - "version": "4.14.3", - "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.14.3.tgz", - "integrity": "sha512-++QEw4DIY7WGoukz+/+A/8dGYPT9l9yIadnmSgZ8Rjr3YVSVDipQSO9CdnJo9ePqFqUUqh+wk9uIaoiAwsiPkA==", - "dev": true, - "license": "MIT", - "dependencies": { - "resolve-pkg-maps": "^1.0.0" - }, - "funding": { - "url": "https://github.com/privatenumber/get-tsconfig?sponsor=1" - } - }, - "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/globals": { - "version": "14.0.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz", - "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/globalthis": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.4.tgz", - "integrity": "sha512-DpLKbNU4WylpxJykQujfCcwYWiV/Jhm50Goo0wrVILAv5jOr9d+H+UR3PhSCD2rCCEIg0uc+G+muBTwD54JhDQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "define-properties": "^1.2.1", - "gopd": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "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/graceful-fs": { - "version": "4.2.11", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", - "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", - "dev": true, - "license": "ISC" - }, - "node_modules/has-bigints": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.1.0.tgz", - "integrity": "sha512-R3pbpkcIqv2Pm3dUwgjclDRVmWpTJW2DcMzcIhEXEx1oh/CEMObMm3KLmRJOdvhM7o4uQBnwr8pzRK2sJWIqfg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/has-property-descriptors": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz", - "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==", - "dev": true, - "license": "MIT", - "dependencies": { - "es-define-property": "^1.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-proto": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.2.0.tgz", - "integrity": "sha512-KIL7eQPfHQRC8+XluaIw7BHUwwqL19bQn4hzNgdr+1wXoU0KKj6rufu47lhY7KbJR2C6T6+PfyN0Ea7wkSS+qQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "dunder-proto": "^1.0.0" - }, - "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.4", - "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.4.tgz", - "integrity": "sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A==", - "dev": true, - "license": "MIT", - "dependencies": { - "function-bind": "^1.1.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/hermes-estree": { - "version": "0.25.1", - "resolved": "https://registry.npmjs.org/hermes-estree/-/hermes-estree-0.25.1.tgz", - "integrity": "sha512-0wUoCcLp+5Ev5pDW2OriHC2MJCbwLwuRx+gAqMTOkGKJJiBCLjtrvy4PWUGn6MIVefecRpzoOZ/UV6iGdOr+Cw==", - "dev": true, - "license": "MIT" - }, - "node_modules/hermes-parser": { - "version": "0.25.1", - "resolved": "https://registry.npmjs.org/hermes-parser/-/hermes-parser-0.25.1.tgz", - "integrity": "sha512-6pEjquH3rqaI6cYAXYPcz9MS4rY6R4ngRgrgfDshRptUZIc3lw0MCIJIGDj9++mfySOuPTHB4nrSW99BCvOPIA==", - "dev": true, - "license": "MIT", - "dependencies": { - "hermes-estree": "0.25.1" - } - }, - "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/ignore": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", - "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 4" - } - }, - "node_modules/import-fresh": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz", - "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "parent-module": "^1.0.0", - "resolve-from": "^4.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/imurmurhash": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.8.19" - } - }, - "node_modules/index-to-position": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/index-to-position/-/index-to-position-1.2.0.tgz", - "integrity": "sha512-Yg7+ztRkqslMAS2iFaU+Oa4KTSidr63OsFGlOrJoW981kIYO3CGCS3wA95P1mUi/IVSJkn0D479KTJpVpvFNuw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/internal-slot": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.1.0.tgz", - "integrity": "sha512-4gd7VpWNQNB4UKKCFFVcp1AVv+FMOgs9NKzjHKusc8jTMhd5eL1NqQqOpE0KzMds804/yHlglp3uxgluOqAPLw==", - "dev": true, - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "hasown": "^2.0.2", - "side-channel": "^1.1.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/is-array-buffer": { - "version": "3.0.5", - "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.5.tgz", - "integrity": "sha512-DDfANUiiG2wC1qawP66qlTugJeL5HyzMpfr8lLK+jMQirGzNod0B12cFB/9q838Ru27sBwfw78/rdoU7RERz6A==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.8", - "call-bound": "^1.0.3", - "get-intrinsic": "^1.2.6" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-async-function": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-async-function/-/is-async-function-2.1.1.tgz", - "integrity": "sha512-9dgM/cZBnNvjzaMYHVoxxfPj2QXt22Ev7SuuPrs+xav0ukGB0S6d4ydZdEiM48kLx5kDV+QBPrpVnFyefL8kkQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "async-function": "^1.0.0", - "call-bound": "^1.0.3", - "get-proto": "^1.0.1", - "has-tostringtag": "^1.0.2", - "safe-regex-test": "^1.1.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-bigint": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.1.0.tgz", - "integrity": "sha512-n4ZT37wG78iz03xPRKJrHTdZbe3IicyucEtdRsV5yglwc3GyUfbAfpSeD0FJ41NbUNSt5wbhqfp1fS+BgnvDFQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "has-bigints": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-boolean-object": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.2.2.tgz", - "integrity": "sha512-wa56o2/ElJMYqjCjGkXri7it5FbebW5usLw/nPmCMs5DeZ7eziSYZhSmPRn0txqeW4LnAmQQU7FgqLpsEFKM4A==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.3", - "has-tostringtag": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-bun-module": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-bun-module/-/is-bun-module-2.0.0.tgz", - "integrity": "sha512-gNCGbnnnnFAUGKeZ9PdbyeGYJqewpmc2aKHUEMO5nQPWU9lOmv7jcmQIv+qHD8fXW6W7qfuCwX4rY9LNRjXrkQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "semver": "^7.7.1" - } - }, - "node_modules/is-bun-module/node_modules/semver": { - "version": "7.8.5", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz", - "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==", - "dev": true, - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/is-callable": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", - "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-core-module": { - "version": "2.17.0", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.17.0.tgz", - "integrity": "sha512-J/vG0zBCbIKOQFfufSwyXdMrsohyJIUNkrnmo6WZGzoM7tr/lsbfW5b2BvisL6zsyMzK9UxV9L6c7AoFbyXHOA==", - "dev": true, - "license": "MIT", - "dependencies": { - "hasown": "^2.0.4" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-data-view": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-data-view/-/is-data-view-1.0.2.tgz", - "integrity": "sha512-RKtWF8pGmS87i2D6gqQu/l7EYRlVdfzemCJN/P3UOs//x1QE7mfhvzHIApBTRf7axvT6DMGwSwBXYCT0nfB9xw==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.2", - "get-intrinsic": "^1.2.6", - "is-typed-array": "^1.1.13" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-date-object": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.1.0.tgz", - "integrity": "sha512-PwwhEakHVKTdRNVOw+/Gyh0+MzlCl4R6qKvkhuvLtPMggI1WAHt9sOwZxQLSGpUaDnrdyDsomoRgNnCfKNSXXg==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.2", - "has-tostringtag": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-document.all": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-document.all/-/is-document.all-1.0.0.tgz", - "integrity": "sha512-+XSoyS05OdBbhFuELhgTCpFNHkpBOJqtsZfUFFpe5QTw+9Sjbh8zitxhQkYAo6wV7e1Vb8cAPvpCk9jGam/82g==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.4" - }, - "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-finalizationregistry": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/is-finalizationregistry/-/is-finalizationregistry-1.1.1.tgz", - "integrity": "sha512-1pC6N8qWJbWoPtEjgcL2xyhQOP491EQjeUo3qTKcmV8YSDDJrOepfG8pcC7h/QgnQHYSv0mJ3Z/ZWxmatVrysg==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-generator-function": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.1.2.tgz", - "integrity": "sha512-upqt1SkGkODW9tsGNG5mtXTXtECizwtS2kA161M+gJPc1xdb/Ax629af6YrTwcOeQHbewrPNlE5Dx7kzvXTizA==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.4", - "generator-function": "^2.0.0", - "get-proto": "^1.0.1", - "has-tostringtag": "^1.0.2", - "safe-regex-test": "^1.1.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "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-map": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/is-map/-/is-map-2.0.3.tgz", - "integrity": "sha512-1Qed0/Hr2m+YqxnM09CjA2d/i6YZNfF6R2oRAOj36eUdS6qIV/huPJNSEpKbupewFs+ZsJlxsjjPbc0/afW6Lw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-negative-zero": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.3.tgz", - "integrity": "sha512-5KoIu2Ngpyek75jXodFvnafB6DJgr3u8uuK0LEZJjrU19DrMD3EVERaR8sjz8CCGgpZvxPl9SuE1GMVPFHx1mw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "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-number-object": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.1.1.tgz", - "integrity": "sha512-lZhclumE1G6VYD8VHe35wFaIif+CTy5SJIi5+3y4psDgWu4wPDoBhF8NxUOinEc7pHgiTsT6MaBb92rKhhD+Xw==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.3", - "has-tostringtag": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-regex": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.2.1.tgz", - "integrity": "sha512-MjYsKHO5O7mCsmRGxWcLWheFqN9DJ/2TmngvjKXihe6efViPqc274+Fx/4fYj/r03+ESvBdTXK0V6tA3rgez1g==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.2", - "gopd": "^1.2.0", - "has-tostringtag": "^1.0.2", - "hasown": "^2.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-set": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/is-set/-/is-set-2.0.3.tgz", - "integrity": "sha512-iPAjerrse27/ygGLxw+EBR9agv9Y6uLeYVJMu+QNCoouJ1/1ri0mGrcWpfCqFZuzzx3WjtwxG098X+n4OuRkPg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-shared-array-buffer": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.4.tgz", - "integrity": "sha512-ISWac8drv4ZGfwKl5slpHG9OwPNty4jOWPRIhBpxOoD+hqITiwuipOQ2bNthAzwA3B4fIjO4Nln74N0S9byq8A==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-string": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.1.1.tgz", - "integrity": "sha512-BtEeSsoaQjlSPBemMQIrY1MY0uM6vnS1g5fmufYOtnxLGUZM2178PKbhsk7Ffv58IX+ZtcvoGwccYsh0PglkAA==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.3", - "has-tostringtag": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-symbol": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.1.1.tgz", - "integrity": "sha512-9gGx6GTtCQM73BgmHQXfDmLtfjjTUDSyoxTCbp5WtoixAhfgsDirWIcVQ/IHpvI5Vgd5i/J5F7B9cN/WlVbC/w==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.2", - "has-symbols": "^1.1.0", - "safe-regex-test": "^1.1.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-typed-array": { - "version": "1.1.15", - "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.15.tgz", - "integrity": "sha512-p3EcsicXjit7SaskXHs1hA91QxgTw46Fv6EFKKGS5DRFLD8yKnohjF3hxoju94b/OcMZoQukzpPpBE9uLVKzgQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "which-typed-array": "^1.1.16" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-weakmap": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/is-weakmap/-/is-weakmap-2.0.2.tgz", - "integrity": "sha512-K5pXYOm9wqY1RgjpL3YTkF39tni1XajUIkawTLUo9EZEVUFga5gSQJF8nNS7ZwJQ02y+1YCNYcMh+HIf1ZqE+w==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-weakref": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.1.1.tgz", - "integrity": "sha512-6i9mGWSlqzNMEqpCp93KwRS1uUOodk2OJ6b+sq7ZPDSy2WuI5NFIxp/254TytR8ftefexkWn5xNiHUNpPOfSew==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-weakset": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/is-weakset/-/is-weakset-2.0.4.tgz", - "integrity": "sha512-mfcwb6IzQyOKTs84CQMrOwW4gQcaTOAWJ0zzJCl2WSPDrWk/OzDaImWFH3djXhb24g4eudZfLRozAvPGw4d9hQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.3", - "get-intrinsic": "^1.2.6" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/isarray": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", - "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==", - "dev": true, - "license": "MIT" - }, - "node_modules/isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", - "dev": true, - "license": "ISC" - }, - "node_modules/iterator.prototype": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/iterator.prototype/-/iterator.prototype-1.1.5.tgz", - "integrity": "sha512-H0dkQoCa3b2VEeKQBOxFph+JAbcrQdE7KC0UkqwpLmv2EC4P41QXP+rqo9wYodACiG5/WM5s9oDApTU8utwj9g==", - "dev": true, - "license": "MIT", - "dependencies": { - "define-data-property": "^1.1.4", - "es-object-atoms": "^1.0.0", - "get-intrinsic": "^1.2.6", - "get-proto": "^1.0.0", - "has-symbols": "^1.1.0", - "set-function-name": "^2.0.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/jiti": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/jiti/-/jiti-2.7.0.tgz", - "integrity": "sha512-AC/7JofJvZGrrneWNaEnJeOLUx+JlGt7tNa0wZiRPT4MY1wmfKjt2+6O2p2uz2+skll8OZZmJMNqeke7kKbNgQ==", - "dev": true, - "license": "MIT", - "bin": { - "jiti": "lib/jiti-cli.mjs" - } - }, - "node_modules/js-levenshtein": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/js-levenshtein/-/js-levenshtein-1.1.6.tgz", - "integrity": "sha512-X2BB11YZtrRqY4EnQcLX5Rh373zbK4alC1FW7D7MBhL2gtcC17cTnr6DmfHZeS0s2rTHjUTMMHfG7gO8SSdw+g==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "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/js-yaml": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.3.2.tgz", - "integrity": "sha512-SFNOvSJ+Dgf/9An904Yx+CgSlIPCkIpao4qo51lpee25TIRejdH3rhR4EZMGoNx3/TP3O+wzWuiTFl4sqbltzA==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/puzrin" - }, - { - "type": "github", - "url": "https://github.com/sponsors/nodeca" - } - ], - "license": "MIT", - "dependencies": { - "argparse": "^2.0.1" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/jsesc": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz", - "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", - "dev": true, - "license": "MIT", - "bin": { - "jsesc": "bin/jsesc" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/json-buffer": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", - "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true, - "license": "MIT" - }, - "node_modules/json-stable-stringify-without-jsonify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", - "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", - "dev": true, - "license": "MIT" - }, - "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/jsx-ast-utils": { - "version": "3.3.5", - "resolved": "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-3.3.5.tgz", - "integrity": "sha512-ZZow9HBI5O6EPgSJLUb8n2NKgmVWTwCvHGwFuJlMjvLFqlGG6pjirPhtdsseaLZjSibD8eegzmYpUZwoIlj2cQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "array-includes": "^3.1.6", - "array.prototype.flat": "^1.3.1", - "object.assign": "^4.1.4", - "object.values": "^1.1.6" - }, - "engines": { - "node": ">=4.0" - } - }, - "node_modules/keyv": { - "version": "4.5.4", - "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", - "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", - "dev": true, - "license": "MIT", - "dependencies": { - "json-buffer": "3.0.1" - } - }, - "node_modules/language-subtag-registry": { - "version": "0.3.23", - "resolved": "https://registry.npmjs.org/language-subtag-registry/-/language-subtag-registry-0.3.23.tgz", - "integrity": "sha512-0K65Lea881pHotoGEa5gDlMxt3pctLi2RplBb7Ezh4rRdLEOtgi7n4EwK9lamnUCkKBqaeKRVebTq6BAxSkpXQ==", - "dev": true, - "license": "CC0-1.0" - }, - "node_modules/language-tags": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/language-tags/-/language-tags-1.0.9.tgz", - "integrity": "sha512-MbjN408fEndfiQXbFQ1vnd+1NoLDsnQW41410oQBXiyXDMYH5z505juWa4KUE1LqxRC7DgOgZDbKLxHIwm27hA==", - "dev": true, - "license": "MIT", - "dependencies": { - "language-subtag-registry": "^0.3.20" - }, - "engines": { - "node": ">=0.10" - } - }, - "node_modules/levn": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", - "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "prelude-ls": "^1.2.1", - "type-check": "~0.4.0" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/lightningcss": { - "version": "1.32.0", - "resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.32.0.tgz", - "integrity": "sha512-NXYBzinNrblfraPGyrbPoD19C1h9lfI/1mzgWYvXUTe414Gz/X1FD2XBZSZM7rRTrMA8JL3OtAaGifrIKhQ5yQ==", - "dev": true, - "license": "MPL-2.0", - "dependencies": { - "detect-libc": "^2.0.3" - }, - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - }, - "optionalDependencies": { - "lightningcss-android-arm64": "1.32.0", - "lightningcss-darwin-arm64": "1.32.0", - "lightningcss-darwin-x64": "1.32.0", - "lightningcss-freebsd-x64": "1.32.0", - "lightningcss-linux-arm-gnueabihf": "1.32.0", - "lightningcss-linux-arm64-gnu": "1.32.0", - "lightningcss-linux-arm64-musl": "1.32.0", - "lightningcss-linux-x64-gnu": "1.32.0", - "lightningcss-linux-x64-musl": "1.32.0", - "lightningcss-win32-arm64-msvc": "1.32.0", - "lightningcss-win32-x64-msvc": "1.32.0" - } - }, - "node_modules/lightningcss-android-arm64": { - "version": "1.32.0", - "resolved": "https://registry.npmjs.org/lightningcss-android-arm64/-/lightningcss-android-arm64-1.32.0.tgz", - "integrity": "sha512-YK7/ClTt4kAK0vo6w3X+Pnm0D2cf2vPHbhOXdoNti1Ga0al1P4TBZhwjATvjNwLEBCnKvjJc2jQgHXH0NEwlAg==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MPL-2.0", - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/lightningcss-darwin-arm64": { - "version": "1.32.0", - "resolved": "https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.32.0.tgz", - "integrity": "sha512-RzeG9Ju5bag2Bv1/lwlVJvBE3q6TtXskdZLLCyfg5pt+HLz9BqlICO7LZM7VHNTTn/5PRhHFBSjk5lc4cmscPQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MPL-2.0", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/lightningcss-darwin-x64": { - "version": "1.32.0", - "resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.32.0.tgz", - "integrity": "sha512-U+QsBp2m/s2wqpUYT/6wnlagdZbtZdndSmut/NJqlCcMLTWp5muCrID+K5UJ6jqD2BFshejCYXniPDbNh73V8w==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MPL-2.0", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/lightningcss-freebsd-x64": { - "version": "1.32.0", - "resolved": "https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.32.0.tgz", - "integrity": "sha512-JCTigedEksZk3tHTTthnMdVfGf61Fky8Ji2E4YjUTEQX14xiy/lTzXnu1vwiZe3bYe0q+SpsSH/CTeDXK6WHig==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MPL-2.0", - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/lightningcss-linux-arm-gnueabihf": { - "version": "1.32.0", - "resolved": "https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.32.0.tgz", - "integrity": "sha512-x6rnnpRa2GL0zQOkt6rts3YDPzduLpWvwAF6EMhXFVZXD4tPrBkEFqzGowzCsIWsPjqSK+tyNEODUBXeeVHSkw==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MPL-2.0", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/lightningcss-linux-arm64-gnu": { - "version": "1.32.0", - "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.32.0.tgz", - "integrity": "sha512-0nnMyoyOLRJXfbMOilaSRcLH3Jw5z9HDNGfT/gwCPgaDjnx0i8w7vBzFLFR1f6CMLKF8gVbebmkUN3fa/kQJpQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "libc": [ - "glibc" - ], - "license": "MPL-2.0", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/lightningcss-linux-arm64-musl": { - "version": "1.32.0", - "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.32.0.tgz", - "integrity": "sha512-UpQkoenr4UJEzgVIYpI80lDFvRmPVg6oqboNHfoH4CQIfNA+HOrZ7Mo7KZP02dC6LjghPQJeBsvXhJod/wnIBg==", - "cpu": [ - "arm64" - ], - "dev": true, - "libc": [ - "musl" - ], - "license": "MPL-2.0", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/lightningcss-linux-x64-gnu": { - "version": "1.32.0", - "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.32.0.tgz", - "integrity": "sha512-V7Qr52IhZmdKPVr+Vtw8o+WLsQJYCTd8loIfpDaMRWGUZfBOYEJeyJIkqGIDMZPwPx24pUMfwSxxI8phr/MbOA==", - "cpu": [ - "x64" - ], - "dev": true, - "libc": [ - "glibc" - ], - "license": "MPL-2.0", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/lightningcss-linux-x64-musl": { - "version": "1.32.0", - "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.32.0.tgz", - "integrity": "sha512-bYcLp+Vb0awsiXg/80uCRezCYHNg1/l3mt0gzHnWV9XP1W5sKa5/TCdGWaR/zBM2PeF/HbsQv/j2URNOiVuxWg==", - "cpu": [ - "x64" - ], - "dev": true, - "libc": [ - "musl" - ], - "license": "MPL-2.0", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/lightningcss-win32-arm64-msvc": { - "version": "1.32.0", - "resolved": "https://registry.npmjs.org/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.32.0.tgz", - "integrity": "sha512-8SbC8BR40pS6baCM8sbtYDSwEVQd4JlFTOlaD3gWGHfThTcABnNDBda6eTZeqbofalIJhFx0qKzgHJmcPTnGdw==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MPL-2.0", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/lightningcss-win32-x64-msvc": { - "version": "1.32.0", - "resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.32.0.tgz", - "integrity": "sha512-Amq9B/SoZYdDi1kFrojnoqPLxYhQ4Wo5XiL8EVJrVsB8ARoC1PWW6VGtT0WKCemjy8aC+louJnjS7U18x3b06Q==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MPL-2.0", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/locate-path": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", - "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", - "dev": true, - "license": "MIT", - "dependencies": { - "p-locate": "^5.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/lodash.merge": { - "version": "4.6.2", - "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", - "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/loose-envify": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", - "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "js-tokens": "^3.0.0 || ^4.0.0" - }, - "bin": { - "loose-envify": "cli.js" - } - }, - "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/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/minimatch": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.5.tgz", - "integrity": "sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==", - "dev": true, - "license": "ISC", - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/minimist": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", - "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", - "dev": true, - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "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/nanoid": { - "version": "3.3.20", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.20.tgz", - "integrity": "sha512-uKdg2G3GNCKQn9byYOpxbGqrT2fGO5KRt5J/8b3pok8rT6qxGWF6hxMyJiEYtAf+FVyYuD9hRaDqX5uPFYJ4ZQ==", - "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/napi-postinstall": { - "version": "0.3.4", - "resolved": "https://registry.npmjs.org/napi-postinstall/-/napi-postinstall-0.3.4.tgz", - "integrity": "sha512-PHI5f1O0EP5xJ9gQmFGMS6IZcrVvTjpXjz7Na41gTE7eE2hK11lg04CECCYEEjdc17EV4DO+fkGEtt7TpTaTiQ==", - "dev": true, - "license": "MIT", - "bin": { - "napi-postinstall": "lib/cli.js" - }, - "engines": { - "node": "^12.20.0 || ^14.18.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/napi-postinstall" - } - }, - "node_modules/natural-compare": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", - "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", - "dev": true, - "license": "MIT" - }, - "node_modules/next": { - "version": "16.4.3", - "resolved": "https://registry.npmjs.org/next/-/next-16.4.3.tgz", - "integrity": "sha512-OqxKTGi9u80FydydsMNYNjnuje9Au+kvHlt2GZ//ftdpDHm1dxKqAaENoOOTX5wKzn+9vaKUNIfZeyZUuLhCnA==", - "license": "MIT", - "dependencies": { - "@next/env": "16.4.3", - "@swc/helpers": "0.5.23", - "baseline-browser-mapping": "^2.9.19", - "caniuse-lite": "^1.0.30001579", - "postcss": "8.5.23", - "styled-jsx": "5.1.6" - }, - "bin": { - "next": "dist/bin/next" - }, - "engines": { - "node": ">=20.9.0" - }, - "optionalDependencies": { - "@next/swc-darwin-arm64": "16.4.3", - "@next/swc-darwin-x64": "16.4.3", - "@next/swc-linux-arm64-gnu": "16.4.3", - "@next/swc-linux-arm64-musl": "16.4.3", - "@next/swc-linux-x64-gnu": "16.4.3", - "@next/swc-linux-x64-musl": "16.4.3", - "@next/swc-win32-arm64-msvc": "16.4.3", - "@next/swc-win32-x64-msvc": "16.4.3", - "sharp": "^0.35.5" - }, - "peerDependencies": { - "@opentelemetry/api": "^1.1.0", - "@playwright/test": "^1.51.1", - "babel-plugin-react-compiler": "*", - "react": "^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0", - "react-dom": "^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0", - "sass": "^1.3.0" - }, - "peerDependenciesMeta": { - "@opentelemetry/api": { - "optional": true - }, - "@playwright/test": { - "optional": true - }, - "babel-plugin-react-compiler": { - "optional": true - }, - "sass": { - "optional": true - } - } - }, - "node_modules/node-exports-info": { - "version": "1.6.2", - "resolved": "https://registry.npmjs.org/node-exports-info/-/node-exports-info-1.6.2.tgz", - "integrity": "sha512-kXs9Go0cah0qHVV2v389IXQLdLCeE1xfFtjOAF+iobu0OIoG1pje8At2vMHyaPMiPMnG/LWP50twML21eMcAag==", - "dev": true, - "license": "MIT", - "dependencies": { - "array.prototype.flatmap": "^1.3.3", - "es-errors": "^1.3.0", - "object.entries": "^1.1.9", - "semver": "^6.3.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/node-releases": { - "version": "2.0.58", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.58.tgz", - "integrity": "sha512-BdiKAgbfRlvfMq/XzO/AF9NPmaA8a+YpLAyAFTVFBj3gARrAIfWvNq7Q7NE4se3KgFu0KkrvQMxTS0XVnsGzHg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18" - } - }, - "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-inspect": { - "version": "1.13.4", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz", - "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/object-keys": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", - "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/object.assign": { - "version": "4.1.7", - "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.7.tgz", - "integrity": "sha512-nK28WOo+QIjBkDduTINE4JkF/UJJKyf2EJxvJKfblDpyg0Q+pkOHNTL0Qwy6NP6FhE/EnzV73BxxqcJaXY9anw==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.8", - "call-bound": "^1.0.3", - "define-properties": "^1.2.1", - "es-object-atoms": "^1.0.0", - "has-symbols": "^1.1.0", - "object-keys": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/object.entries": { - "version": "1.1.9", - "resolved": "https://registry.npmjs.org/object.entries/-/object.entries-1.1.9.tgz", - "integrity": "sha512-8u/hfXFRBD1O0hPUjioLhoWFHRmt6tKA4/vZPyckBr18l1KE9uHrFaFaUi8MDRTpi4uak2goyPTSNJLXX2k2Hw==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.8", - "call-bound": "^1.0.4", - "define-properties": "^1.2.1", - "es-object-atoms": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/object.fromentries": { - "version": "2.0.8", - "resolved": "https://registry.npmjs.org/object.fromentries/-/object.fromentries-2.0.8.tgz", - "integrity": "sha512-k6E21FzySsSK5a21KRADBd/NGneRegFO5pLHfdQLpRDETUNJueLXs3WCzyQ3tFRDYgbq3KHGXfTbi2bs8WQ6rQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.7", - "define-properties": "^1.2.1", - "es-abstract": "^1.23.2", - "es-object-atoms": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/object.groupby": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/object.groupby/-/object.groupby-1.0.3.tgz", - "integrity": "sha512-+Lhy3TQTuzXI5hevh8sBGqbmurHbbIjAi0Z4S63nthVLmLxfbj4T54a4CfZrXIrt9iP4mVAPYMo/v99taj3wjQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.7", - "define-properties": "^1.2.1", - "es-abstract": "^1.23.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/object.values": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.2.1.tgz", - "integrity": "sha512-gXah6aZrcUxjWg2zR2MwouP2eHlCBzdV4pygudehaKXSGW4v2AsRQUK+lwwXhii6KFZcunEnmSUoYp5CXibxtA==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.8", - "call-bound": "^1.0.3", - "define-properties": "^1.2.1", - "es-object-atoms": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/openapi-typescript": { - "version": "7.13.0", - "resolved": "https://registry.npmjs.org/openapi-typescript/-/openapi-typescript-7.13.0.tgz", - "integrity": "sha512-EFP392gcqXS7ntPvbhBzbF8TyBA+baIYEm791Hy5YkjDYKTnk/Tn5OQeKm5BIZvJihpp8Zzr4hzx0Irde1LNGQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@redocly/openapi-core": "^1.34.6", - "ansi-colors": "^4.1.3", - "change-case": "^5.4.4", - "parse-json": "^8.3.0", - "supports-color": "^10.2.2", - "yargs-parser": "^21.1.1" - }, - "bin": { - "openapi-typescript": "bin/cli.js" - }, - "peerDependencies": { - "typescript": "^5.x" - } - }, - "node_modules/openapi-typescript/node_modules/supports-color": { - "version": "10.2.2", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-10.2.2.tgz", - "integrity": "sha512-SS+jx45GF1QjgEXQx4NJZV9ImqmO2NPz5FNsIHrsDjh2YsHnawpan7SNQ1o8NuhrbHZy9AZhIoCUiCeaW/C80g==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/chalk/supports-color?sponsor=1" - } - }, - "node_modules/optionator": { - "version": "0.9.4", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", - "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", - "dev": true, - "license": "MIT", - "dependencies": { - "deep-is": "^0.1.3", - "fast-levenshtein": "^2.0.6", - "levn": "^0.4.1", - "prelude-ls": "^1.2.1", - "type-check": "^0.4.0", - "word-wrap": "^1.2.5" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/own-keys": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/own-keys/-/own-keys-1.0.2.tgz", - "integrity": "sha512-19YVAg7T+WTrxggPukVq7DjTv6+PJ867TmhCvBsYwmbFCsZd344rq2Ld1p0wo8f8Qrrhgp82c6FJRqdXWtSEhg==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.4", - "get-intrinsic": "^1.3.0", - "object-keys": "^1.1.1", - "safe-push-apply": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "yocto-queue": "^0.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/p-locate": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", - "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", - "dev": true, - "license": "MIT", - "dependencies": { - "p-limit": "^3.0.2" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/parent-module": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", - "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", - "dev": true, - "license": "MIT", - "dependencies": { - "callsites": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/parse-json": { - "version": "8.3.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-8.3.0.tgz", - "integrity": "sha512-ybiGyvspI+fAoRQbIPRddCcSTV9/LsJbf0e/S85VLowVGzRmokfneg2kwVW/KU5rOXrPSbF1qAKPMgNTqqROQQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/code-frame": "^7.26.2", - "index-to-position": "^1.1.0", - "type-fest": "^4.39.1" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/path-parse": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", - "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", - "dev": true, - "license": "MIT" - }, - "node_modules/picocolors": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", - "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", - "license": "ISC" - }, - "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/pluralize": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/pluralize/-/pluralize-8.0.0.tgz", - "integrity": "sha512-Nc3IT5yHzflTfbjgqWcCPpo7DaKy4FnpB0l/zCAW0Tc7jxAiuqSxHasntB3D7887LSrA93kDJ9IXovxJYxyLCA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/possible-typed-array-names": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/possible-typed-array-names/-/possible-typed-array-names-1.1.0.tgz", - "integrity": "sha512-/+5VFTchJDoVj3bhoqi6UeymcD00DAwb1nJwamzPvHEszJ4FpF6SNNbUbOS8yI56qHzdV8eK0qEfOSiodkTdxg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/postcss": { - "version": "8.5.23", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.23.tgz", - "integrity": "sha512-g50586zr4bZmwFiTlflMu8E0bDTb5I5gertgwAKmsdUlTQIhZtunzUlD1WSzwcVWPoAVpsrA6vlfCD7oXvRwgg==", - "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.16", - "picocolors": "^1.1.1", - "source-map-js": "^1.2.1" - }, - "engines": { - "node": "^10 || ^12 || >=14" - } - }, - "node_modules/prelude-ls": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", - "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/prop-types": { - "version": "15.8.1", - "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz", - "integrity": "sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==", - "dev": true, - "license": "MIT", - "dependencies": { - "loose-envify": "^1.4.0", - "object-assign": "^4.1.1", - "react-is": "^16.13.1" - } - }, - "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.3.0", - "resolved": "https://registry.npmjs.org/react/-/react-19.3.0.tgz", - "integrity": "sha512-E8LUcbtBWt20bbl2YoHfx4ZDBdxVTfOKtCZn9cDSJ4l6/nuoApcpIBcj47t2wZoVX8g2ZHuMHbiShgCR1T5Sog==", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/react-dom": { - "version": "19.3.0", - "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.3.0.tgz", - "integrity": "sha512-JDk8dgif51OjFoDE70+OT9ICyYr+69HlmihNwp1+Nsfbna3t5sIiCa9ZJktDmQ4/1b/rn26hIAR2uYXDMr5r0Q==", - "license": "MIT", - "dependencies": { - "scheduler": "^0.28.0" - }, - "peerDependencies": { - "react": "^19.3.0" - } - }, - "node_modules/react-is": { - "version": "16.13.1", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", - "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/reflect.getprototypeof": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/reflect.getprototypeof/-/reflect.getprototypeof-1.0.10.tgz", - "integrity": "sha512-00o4I+DVrefhv+nX0ulyi3biSHCPDe+yLv5o/p6d/UVlirijB8E16FtfwSAi4g3tcqrQ4lRAqQSoFEZJehYEcw==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.8", - "define-properties": "^1.2.1", - "es-abstract": "^1.23.9", - "es-errors": "^1.3.0", - "es-object-atoms": "^1.0.0", - "get-intrinsic": "^1.2.7", - "get-proto": "^1.0.1", - "which-builtin-type": "^1.2.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/regexp.prototype.flags": { - "version": "1.5.4", - "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.4.tgz", - "integrity": "sha512-dYqgNSZbDwkaJ2ceRd9ojCGjBq+mOm9LmtXnAnEGyHhN/5R7iDW2TRw3h+o/jCFxus3P2LfWIIiwowAjANm7IA==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.8", - "define-properties": "^1.2.1", - "es-errors": "^1.3.0", - "get-proto": "^1.0.1", - "gopd": "^1.2.0", - "set-function-name": "^2.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/require-from-string": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", - "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/resolve": { - "version": "2.0.0-next.7", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-2.0.0-next.7.tgz", - "integrity": "sha512-tqt+NBWwyaMgw3zDsnygx4CByWjQEJHOPMdslYhppaQSJUtL/D4JO9CcBBlhPoI8lz9oJIDXkwXfhF4aWqP8xQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "is-core-module": "^2.16.2", - "node-exports-info": "^1.6.0", - "object-keys": "^1.1.1", - "path-parse": "^1.0.7", - "supports-preserve-symlinks-flag": "^1.0.0" - }, - "bin": { - "resolve": "bin/resolve" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/resolve-from": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", - "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/resolve-pkg-maps": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz", - "integrity": "sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==", - "dev": true, - "license": "MIT", - "funding": { - "url": "https://github.com/privatenumber/resolve-pkg-maps?sponsor=1" - } - }, - "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/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/safe-array-concat": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/safe-array-concat/-/safe-array-concat-1.1.4.tgz", - "integrity": "sha512-wtZlHyOje6OZTGqAoaDKxFkgRtkF9CnHAVnCHKfuj200wAgL+bSJhdsCD2l0Qx/2ekEXjPWcyKkfGb5CPboslg==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.9", - "call-bound": "^1.0.4", - "get-intrinsic": "^1.3.0", - "has-symbols": "^1.1.0", - "isarray": "^2.0.5" - }, - "engines": { - "node": ">=0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/safe-push-apply": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/safe-push-apply/-/safe-push-apply-1.0.0.tgz", - "integrity": "sha512-iKE9w/Z7xCzUMIZqdBsp6pEQvwuEebH4vdpjcDWnyzaI6yl6O9FHvVpmGelvEHNsoY6wGblkxR6Zty/h00WiSA==", - "dev": true, - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "isarray": "^2.0.5" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/safe-regex-test": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.1.0.tgz", - "integrity": "sha512-x/+Cz4YrimQxQccJf5mKEbIa1NzeCRNI5Ecl/ekmlYaampdNLPalVyIcCZNNH3MvmqBugV5TMYZXv0ljslUlaw==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.2", - "es-errors": "^1.3.0", - "is-regex": "^1.2.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/scheduler": { - "version": "0.28.0", - "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.28.0.tgz", - "integrity": "sha512-juorfCmIkIw8tT+p5BXSm6PJjQF/ycEYmKyzURCIt/RaZIhL+PulbQ9Yu2z1HdOJDdqDTlxA1+xKBmHXJsczAw==", - "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-function-length": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz", - "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==", - "dev": true, - "license": "MIT", - "dependencies": { - "define-data-property": "^1.1.4", - "es-errors": "^1.3.0", - "function-bind": "^1.1.2", - "get-intrinsic": "^1.2.4", - "gopd": "^1.0.1", - "has-property-descriptors": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/set-function-name": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/set-function-name/-/set-function-name-2.0.2.tgz", - "integrity": "sha512-7PGFlmtwsEADb0WYyvCMa1t+yke6daIG4Wirafur5kcf+MhUnPms1UeR0CKQdTZD81yESwMHbtn+TR+dMviakQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "define-data-property": "^1.1.4", - "es-errors": "^1.3.0", - "functions-have-names": "^1.2.3", - "has-property-descriptors": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/set-proto": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/set-proto/-/set-proto-1.0.0.tgz", - "integrity": "sha512-RJRdvCo6IAnPdsvP/7m6bsQqNnn1FCBX5ZNtFL98MmFF/4xAIJTIg1YbHW5DC2W5SKZanrC6i4HsJqlajw/dZw==", - "dev": true, - "license": "MIT", - "dependencies": { - "dunder-proto": "^1.0.1", - "es-errors": "^1.3.0", - "es-object-atoms": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/sharp": { - "version": "0.35.5", - "resolved": "https://registry.npmjs.org/sharp/-/sharp-0.35.5.tgz", - "integrity": "sha512-Ywn4OnzGukp7CDMrp08RQ50YKmuwG47brZgIVPTvBaaAfQlRlygrRqSrxdCiL9M+LlzLBiJ68IR1QqvzHyjC7g==", - "license": "Apache-2.0", - "optional": true, - "dependencies": { - "@img/colour": "^1.1.0", - "detect-libc": "^2.1.2", - "semver": "^7.8.5" - }, - "engines": { - "node": ">=20.9.0" - }, - "funding": { - "url": "https://opencollective.com/libvips" - }, - "optionalDependencies": { - "@img/sharp-darwin-arm64": "0.35.5", - "@img/sharp-darwin-x64": "0.35.5", - "@img/sharp-freebsd-wasm32": "0.35.5", - "@img/sharp-libvips-darwin-arm64": "1.3.4", - "@img/sharp-libvips-darwin-x64": "1.3.4", - "@img/sharp-libvips-linux-arm": "1.3.4", - "@img/sharp-libvips-linux-arm64": "1.3.4", - "@img/sharp-libvips-linux-ppc64": "1.3.4", - "@img/sharp-libvips-linux-riscv64": "1.3.4", - "@img/sharp-libvips-linux-s390x": "1.3.4", - "@img/sharp-libvips-linux-x64": "1.3.4", - "@img/sharp-libvips-linuxmusl-arm64": "1.3.4", - "@img/sharp-libvips-linuxmusl-x64": "1.3.4", - "@img/sharp-linux-arm": "0.35.5", - "@img/sharp-linux-arm64": "0.35.5", - "@img/sharp-linux-ppc64": "0.35.5", - "@img/sharp-linux-riscv64": "0.35.5", - "@img/sharp-linux-s390x": "0.35.5", - "@img/sharp-linux-x64": "0.35.5", - "@img/sharp-linuxmusl-arm64": "0.35.5", - "@img/sharp-linuxmusl-x64": "0.35.5", - "@img/sharp-webcontainers-wasm32": "0.35.5", - "@img/sharp-win32-arm64": "0.35.5", - "@img/sharp-win32-ia32": "0.35.5", - "@img/sharp-win32-x64": "0.35.5" - }, - "peerDependenciesMeta": { - "@types/node": { - "optional": true - } - } - }, - "node_modules/sharp/node_modules/semver": { - "version": "7.8.5", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz", - "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==", - "license": "ISC", - "optional": true, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/shebang-command": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "dev": true, - "license": "MIT", - "dependencies": { - "shebang-regex": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/side-channel": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.1.tgz", - "integrity": "sha512-6x6dK6zJdpTzF4sQeNYxwtvBzf6Eg4GtlesS94HOvTudUeyK2WXAaIfmDgsyslYrRBeFIlsi54AYsFGUuhmvrQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "object-inspect": "^1.13.4", - "side-channel-list": "^1.0.1", - "side-channel-map": "^1.0.1", - "side-channel-weakmap": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/side-channel-list": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.1.tgz", - "integrity": "sha512-mjn/0bi/oUURjc5Xl7IaWi/OJJJumuoJFQJfDDyO46+hBWsfaVM65TBHq2eoZBhzl9EchxOijpkbRC8SVBQU0w==", - "dev": true, - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "object-inspect": "^1.13.4" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/side-channel-map": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz", - "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.2", - "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.5", - "object-inspect": "^1.13.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/side-channel-weakmap": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz", - "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.2", - "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.5", - "object-inspect": "^1.13.3", - "side-channel-map": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/source-map-js": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.2.tgz", - "integrity": "sha512-KGj/8Y43x35aZVDtt+J4mK1hoLGHULMYfSkODJNQjNDC3oW1PqPoxMwo0pLUsWM/UEGzON/NxeHywEfNXNP3Vw==", - "license": "BSD-3-Clause", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/stable-hash": { - "version": "0.0.5", - "resolved": "https://registry.npmjs.org/stable-hash/-/stable-hash-0.0.5.tgz", - "integrity": "sha512-+L3ccpzibovGXFK+Ap/f8LOS0ahMrHTf3xu7mMLSpEGU0EO9ucaysSylKo9eRDFNhWve/y275iPmIZ4z39a9iA==", - "dev": true, - "license": "MIT" - }, - "node_modules/stop-iteration-iterator": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/stop-iteration-iterator/-/stop-iteration-iterator-1.1.0.tgz", - "integrity": "sha512-eLoXW/DHyl62zxY4SCaIgnRhuMr6ri4juEYARS8E6sCEqzKpOiE521Ucofdx+KnDZl5xmvGYaaKCk5FEOxJCoQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "internal-slot": "^1.1.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/string.prototype.includes": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/string.prototype.includes/-/string.prototype.includes-2.0.1.tgz", - "integrity": "sha512-o7+c9bW6zpAdJHTtujeePODAhkuicdAryFsfVKwA+wGw89wJ4GTY484WTucM9hLtDEOpOvI+aHnzqnC5lHp4Rg==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.7", - "define-properties": "^1.2.1", - "es-abstract": "^1.23.3" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/string.prototype.matchall": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/string.prototype.matchall/-/string.prototype.matchall-4.1.0.tgz", - "integrity": "sha512-tHNHTxInrYLCga9O9YGxWA3G9/nnzQw8UGAyqGx3Ar1pSTTzIuM4woFSq4SowkXCjJIwq5sIiQvEfRI9tCH1qQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.9", - "call-bound": "^1.0.4", - "define-properties": "^1.2.1", - "es-abstract": "^1.24.2", - "es-errors": "^1.3.0", - "es-object-atoms": "^1.1.2", - "get-intrinsic": "^1.3.0", - "gopd": "^1.2.0", - "has-symbols": "^1.1.0", - "internal-slot": "^1.1.0", - "regexp.prototype.flags": "^1.5.4", - "set-function-name": "^2.0.2", - "side-channel": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/string.prototype.repeat": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/string.prototype.repeat/-/string.prototype.repeat-1.0.0.tgz", - "integrity": "sha512-0u/TldDbKD8bFCQ/4f5+mNRrXwZ8hg2w7ZR8wa16e8z9XpePWl3eGEcUD0OXpEH/VJH/2G3gjUtR3ZOiBe2S/w==", - "dev": true, - "license": "MIT", - "dependencies": { - "define-properties": "^1.1.3", - "es-abstract": "^1.17.5" - } - }, - "node_modules/string.prototype.trim": { - "version": "1.2.11", - "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.11.tgz", - "integrity": "sha512-PwvK7BU+CMTJGYQCTZb5RWXIML92lftJLhQz1tBzgKiqGxJaMlBAa48POXaNAC2s4y8jr3EFqrkF9+44neS46w==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.9", - "call-bound": "^1.0.4", - "define-data-property": "^1.1.4", - "define-properties": "^1.2.1", - "es-abstract": "^1.24.2", - "es-object-atoms": "^1.1.2", - "has-property-descriptors": "^1.0.2", - "safe-regex-test": "^1.1.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/string.prototype.trimend": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.10.tgz", - "integrity": "sha512-2+3aDAOmPTmuFwjDnmJG2ctEkQKVki7vOSqaxkv42Mowj1V6PnvuwFCRrR5lChUux1TBskPjfkeTOhqczDMxTw==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.9", - "call-bound": "^1.0.4", - "define-properties": "^1.2.1", - "es-object-atoms": "^1.1.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/string.prototype.trimstart": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.8.tgz", - "integrity": "sha512-UXSH262CSZY1tfu3G3Secr6uGLCFVPMhIqHjlgCUtCCcgihYc/xKs9djMTMUOb2j1mVSeU8EU6NWc/iQKU6Gfg==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.7", - "define-properties": "^1.2.1", - "es-object-atoms": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/strip-bom": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", - "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/strip-json-comments": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/styled-jsx": { - "version": "5.1.6", - "resolved": "https://registry.npmjs.org/styled-jsx/-/styled-jsx-5.1.6.tgz", - "integrity": "sha512-qSVyDTeMotdvQYoHWLNGwRFJHC+i+ZvdBRYosOFgC+Wg1vx4frN2/RG/NA7SYqqvKNLf39P2LSRA2pu6n0XYZA==", - "license": "MIT", - "dependencies": { - "client-only": "0.0.1" - }, - "engines": { - "node": ">= 12.0.0" - }, - "peerDependencies": { - "react": ">= 16.8.0 || 17.x.x || ^18.0.0-0 || ^19.0.0-0" - }, - "peerDependenciesMeta": { - "@babel/core": { - "optional": true - }, - "babel-plugin-macros": { - "optional": true - } - } - }, - "node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "license": "MIT", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/supports-preserve-symlinks-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", - "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/tailwindcss": { - "version": "4.3.3", - "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-4.3.3.tgz", - "integrity": "sha512-gOhV3P7ufE62QDGg1zVaTgCR+EtPv92k2nIhVcVKcLmxT1sUBsQGhnZj175j+MqRt4zLF7ic+sCYjfhxMxj7YQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/tapable": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.3.3.tgz", - "integrity": "sha512-uxc/zpqFg6x7C8vOE7lh6Lbda8eEL9zmVm/PLeTPBRhh1xCgdWaQ+J1CUieGpIfm2HdtsUpRv+HshiasBMcc6A==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - } - }, - "node_modules/tinyglobby": { - "version": "0.2.17", - "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.17.tgz", - "integrity": "sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==", - "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/tinyglobby/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/tinyglobby/node_modules/picomatch": { - "version": "4.0.7", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.7.tgz", - "integrity": "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, - "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/ts-api-utils": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.5.0.tgz", - "integrity": "sha512-OJ/ibxhPlqrMM0UiNHJ/0CKQkoKF243/AEmplt3qpRgkW8VG7IfOS41h7V8TjITqdByHzrjcS/2si+y4lIh8NA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18.12" - }, - "peerDependencies": { - "typescript": ">=4.8.4" - } - }, - "node_modules/tsconfig-paths": { - "version": "3.15.0", - "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.15.0.tgz", - "integrity": "sha512-2Ac2RgzDe/cn48GvOe3M+o82pEFewD3UPbyoUHHdKasHwJKjds4fLXWf/Ux5kATBKN20oaFGu+jbElp1pos0mg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/json5": "^0.0.29", - "json5": "^1.0.2", - "minimist": "^1.2.6", - "strip-bom": "^3.0.0" - } - }, - "node_modules/tsconfig-paths/node_modules/json5": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", - "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", - "dev": true, - "license": "MIT", - "dependencies": { - "minimist": "^1.2.0" - }, - "bin": { - "json5": "lib/cli.js" - } - }, - "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/type-check": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", - "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", - "dev": true, - "license": "MIT", - "dependencies": { - "prelude-ls": "^1.2.1" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/type-fest": { - "version": "4.41.0", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-4.41.0.tgz", - "integrity": "sha512-TeTSQ6H5YHvpqVwBRcnLDCBnDOHWYu7IvGbHT6N8AOymcr9PJGjc1GTtiWZTYg0NCgYwvnYWEkVChQAr9bjfwA==", - "dev": true, - "license": "(MIT OR CC0-1.0)", - "engines": { - "node": ">=16" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/typed-array-buffer": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/typed-array-buffer/-/typed-array-buffer-1.0.3.tgz", - "integrity": "sha512-nAYYwfY3qnzX30IkA6AQZjVbtK6duGontcQm1WSG1MD94YLqK0515GNApXkoxKOWMusVssAHWLh9SeaoefYFGw==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.3", - "es-errors": "^1.3.0", - "is-typed-array": "^1.1.14" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/typed-array-byte-length": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/typed-array-byte-length/-/typed-array-byte-length-1.0.3.tgz", - "integrity": "sha512-BaXgOuIxz8n8pIq3e7Atg/7s+DpiYrxn4vdot3w9KbnBhcRQq6o3xemQdIfynqSeXeDrF32x+WvfzmOjPiY9lg==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.8", - "for-each": "^0.3.3", - "gopd": "^1.2.0", - "has-proto": "^1.2.0", - "is-typed-array": "^1.1.14" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/typed-array-byte-offset": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/typed-array-byte-offset/-/typed-array-byte-offset-1.0.5.tgz", - "integrity": "sha512-0FHJvLPqZ7KJzp17O13jfsAjsqazgrxBu2zEK95PmUz8lv2+GjRuxUInCr2Rk9Dms3ihN21zJ929ZO43yJ95QQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "available-typed-arrays": "^1.0.7", - "call-bind": "^1.0.9", - "for-each": "^0.3.5", - "gopd": "^1.2.0", - "is-typed-array": "^1.1.15", - "reflect.getprototypeof": "^1.0.10" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/typed-array-length": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.8.tgz", - "integrity": "sha512-phPGCwqr2+Qo0fwniCE8e4pKnGu/yFb5nD5Y8bf0EEeiI5GklnACYA9GFy/DrAeRrKHXvHn+1SUsOWgJp6RO+g==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.9", - "for-each": "^0.3.5", - "gopd": "^1.2.0", - "is-typed-array": "^1.1.15", - "possible-typed-array-names": "^1.1.0", - "reflect.getprototypeof": "^1.0.10" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/typescript": { - "version": "5.9.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz", - "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", - "dev": true, - "license": "Apache-2.0", - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=14.17" - } - }, - "node_modules/typescript-eslint": { - "version": "8.71.2", - "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.71.2.tgz", - "integrity": "sha512-Rz4effbMy2g9wnvOJZG6SbVavX313Lap1vNEbk1RUochzickvzP8P4HB+bkNg5e50eVz1hQGjh9K1omI1xB4Bw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/eslint-plugin": "8.71.2", - "@typescript-eslint/parser": "8.71.2", - "@typescript-eslint/typescript-estree": "8.71.2", - "@typescript-eslint/utils": "8.71.2" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", - "typescript": ">=4.8.4 <6.1.0" - } - }, - "node_modules/unbox-primitive": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.1.0.tgz", - "integrity": "sha512-nWJ91DjeOkej/TA8pXQ3myruKpKEYgqvpw9lz4OPHj/NWFNluYrjbz9j01CJ8yKQd2g4jFoOkINCTW2I5LEEyw==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.3", - "has-bigints": "^1.0.2", - "has-symbols": "^1.1.0", - "which-boxed-primitive": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/undici-types": { - "version": "6.21.0", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz", - "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/unrs-resolver": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/unrs-resolver/-/unrs-resolver-1.12.2.tgz", - "integrity": "sha512-dmlRxBJJayXjqTwC+JtF1HhJmgf3ftQ3YejFcZrf4+KKtJv0qDsK1pjqaaVjG7wJ5NJ6UVP1OqRMQ71Z4C3rxQ==", - "dev": true, - "hasInstallScript": true, - "license": "MIT", - "dependencies": { - "napi-postinstall": "^0.3.4" - }, - "funding": { - "url": "https://opencollective.com/unrs-resolver" - }, - "optionalDependencies": { - "@unrs/resolver-binding-android-arm-eabi": "1.12.2", - "@unrs/resolver-binding-android-arm64": "1.12.2", - "@unrs/resolver-binding-darwin-arm64": "1.12.2", - "@unrs/resolver-binding-darwin-x64": "1.12.2", - "@unrs/resolver-binding-freebsd-x64": "1.12.2", - "@unrs/resolver-binding-linux-arm-gnueabihf": "1.12.2", - "@unrs/resolver-binding-linux-arm-musleabihf": "1.12.2", - "@unrs/resolver-binding-linux-arm64-gnu": "1.12.2", - "@unrs/resolver-binding-linux-arm64-musl": "1.12.2", - "@unrs/resolver-binding-linux-loong64-gnu": "1.12.2", - "@unrs/resolver-binding-linux-loong64-musl": "1.12.2", - "@unrs/resolver-binding-linux-ppc64-gnu": "1.12.2", - "@unrs/resolver-binding-linux-riscv64-gnu": "1.12.2", - "@unrs/resolver-binding-linux-riscv64-musl": "1.12.2", - "@unrs/resolver-binding-linux-s390x-gnu": "1.12.2", - "@unrs/resolver-binding-linux-x64-gnu": "1.12.2", - "@unrs/resolver-binding-linux-x64-musl": "1.12.2", - "@unrs/resolver-binding-openharmony-arm64": "1.12.2", - "@unrs/resolver-binding-wasm32-wasi": "1.12.2", - "@unrs/resolver-binding-win32-arm64-msvc": "1.12.2", - "@unrs/resolver-binding-win32-ia32-msvc": "1.12.2", - "@unrs/resolver-binding-win32-x64-msvc": "1.12.2" - } - }, - "node_modules/update-browserslist-db": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.3.4.tgz", - "integrity": "sha512-t8wonIOdQyOjtPd2VktlBu6QjTVTks6v8bSi7kd0r2Vll8TK1JYDZtRRdbmCHOAMphkZgrzK+L+vXK4pyZ8t4A==", - "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/uri-js": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", - "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "punycode": "^2.1.0" - } - }, - "node_modules/uri-js-replace": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/uri-js-replace/-/uri-js-replace-1.0.1.tgz", - "integrity": "sha512-W+C9NWNLFOoBI2QWDp4UT9pv65r2w5Cx+3sTYFvtMdDBxkKt1syCqsUdSFAChbEe1uK5TfS04wt/nGwmaeIQ0g==", - "dev": true, - "license": "MIT" - }, - "node_modules/which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "dev": true, - "license": "ISC", - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "node-which": "bin/node-which" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/which-boxed-primitive": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.1.1.tgz", - "integrity": "sha512-TbX3mj8n0odCBFVlY8AxkqcHASw3L60jIuF8jFP78az3C2YhmGvqbHBpAjTRH2/xqYunrJ9g1jSyjCjpoWzIAA==", - "dev": true, - "license": "MIT", - "dependencies": { - "is-bigint": "^1.1.0", - "is-boolean-object": "^1.2.1", - "is-number-object": "^1.1.1", - "is-string": "^1.1.1", - "is-symbol": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/which-builtin-type": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/which-builtin-type/-/which-builtin-type-1.2.1.tgz", - "integrity": "sha512-6iBczoX+kDQ7a3+YJBnh3T+KZRxM/iYNPXicqk66/Qfm1b93iu+yOImkg0zHbj5LNOcNv1TEADiZ0xa34B4q6Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.2", - "function.prototype.name": "^1.1.6", - "has-tostringtag": "^1.0.2", - "is-async-function": "^2.0.0", - "is-date-object": "^1.1.0", - "is-finalizationregistry": "^1.1.0", - "is-generator-function": "^1.0.10", - "is-regex": "^1.2.1", - "is-weakref": "^1.0.2", - "isarray": "^2.0.5", - "which-boxed-primitive": "^1.1.0", - "which-collection": "^1.0.2", - "which-typed-array": "^1.1.16" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/which-collection": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/which-collection/-/which-collection-1.0.2.tgz", - "integrity": "sha512-K4jVyjnBdgvc86Y6BkaLZEN933SwYOuBFkdmBu9ZfkcAbdVbpITnDmjvZ/aQjRXQrv5EPkTnD1s39GiiqbngCw==", - "dev": true, - "license": "MIT", - "dependencies": { - "is-map": "^2.0.3", - "is-set": "^2.0.3", - "is-weakmap": "^2.0.2", - "is-weakset": "^2.0.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/which-typed-array": { - "version": "1.1.24", - "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.24.tgz", - "integrity": "sha512-wk4Mf4pR5mRP7eYuuTBCIQ9d0ud2Fv2jRLQpfgnRjbOxAFHmjKFValgTpitVKzJJS8ajnYQV2Du1SZ8j6b/EUQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "available-typed-arrays": "^1.0.7", - "call-bind": "^1.0.9", - "call-bound": "^1.0.4", - "for-each": "^0.3.5", - "get-proto": "^1.0.1", - "gopd": "^1.2.0", - "has-tostringtag": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/word-wrap": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", - "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/yallist": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", - "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", - "dev": true, - "license": "ISC" - }, - "node_modules/yaml-ast-parser": { - "version": "0.0.43", - "resolved": "https://registry.npmjs.org/yaml-ast-parser/-/yaml-ast-parser-0.0.43.tgz", - "integrity": "sha512-2PTINUwsRqSd+s8XxKaJWQlUuEMHJQyEuh2edBbW8KNJz0SJPwUSD2zRWqezFEdN7IzAgeuYHFUCF7o8zRdZ0A==", - "dev": true, - "license": "Apache-2.0" - }, - "node_modules/yargs-parser": { - "version": "21.1.1", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", - "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", - "dev": true, - "license": "ISC", - "engines": { - "node": ">=12" - } - }, - "node_modules/yocto-queue": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", - "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/zod": { - "version": "4.6.7", - "resolved": "https://registry.npmjs.org/zod/-/zod-4.6.7.tgz", - "integrity": "sha512-g8W2D2kU6a8untc053fX1uVBKzM7yqAxW/3zwk83+6RyF2+SKOuV+c0wBDhUwzV1PaGapmZH+rmcUzPf+3CGwg==", - "dev": true, - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/colinhacks" - } - }, - "node_modules/zod-validation-error": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/zod-validation-error/-/zod-validation-error-4.0.2.tgz", - "integrity": "sha512-Q6/nZLe6jxuU80qb/4uJ4t5v2VEZ44lzQjPDhYJNztRQ4wyWc6VF3D3Kb/fAuPetZQnhS3hnajCf9CsWesghLQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18.0.0" - }, - "peerDependencies": { - "zod": "^3.25.0 || ^4.0.0" - } - } - } -} diff --git a/apps/admin/package.json b/apps/admin/package.json deleted file mode 100644 index 998e69e..0000000 --- a/apps/admin/package.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "name": "admin", - "version": "0.1.0", - "private": true, - "scripts": { - "dev": "next dev", - "build": "next build", - "start": "next start", - "lint": "eslint", - "generar:api": "openapi-typescript http://localhost:5209/swagger/v1/swagger.json -o src/api/schema.d.ts", - "generar:openapi": "node scripts/generar-openapi.mjs", - "generar:contratos": "npm run generar:openapi && npm run generar:api" - }, - "dependencies": { - "next": "16.4.3", - "react": "19.3.0", - "react-dom": "19.3.0" - }, - "devDependencies": { - "@tailwindcss/turbopack": "^4", - "@types/node": "^20", - "@types/react": "^19", - "@types/react-dom": "^19", - "eslint": "^9", - "eslint-config-next": "16.4.3", - "openapi-typescript": "^7.13.0", - "tailwindcss": "^4", - "typescript": "^5" - } -} diff --git a/apps/admin/public/file.svg b/apps/admin/public/file.svg deleted file mode 100644 index 004145c..0000000 --- a/apps/admin/public/file.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/apps/admin/public/globe.svg b/apps/admin/public/globe.svg deleted file mode 100644 index 567f17b..0000000 --- a/apps/admin/public/globe.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/apps/admin/public/next.svg b/apps/admin/public/next.svg deleted file mode 100644 index 5174b28..0000000 --- a/apps/admin/public/next.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/apps/admin/public/vercel.svg b/apps/admin/public/vercel.svg deleted file mode 100644 index 7705396..0000000 --- a/apps/admin/public/vercel.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/apps/admin/public/window.svg b/apps/admin/public/window.svg deleted file mode 100644 index b2b2a44..0000000 --- a/apps/admin/public/window.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/apps/admin/src/api/schema.d.ts b/apps/admin/src/api/schema.d.ts deleted file mode 100644 index fdfab36..0000000 --- a/apps/admin/src/api/schema.d.ts +++ /dev/null @@ -1,1696 +0,0 @@ -/** - * This file was auto-generated by openapi-typescript. - * Do not make direct changes to the file. - */ - -export interface paths { - "/api/admin/escenas": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - post: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["CrearEscenaRequest"]; - "text/json": components["schemas"]["CrearEscenaRequest"]; - "application/*+json": components["schemas"]["CrearEscenaRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "text/plain": components["schemas"]["EscenaDto"]; - "application/json": components["schemas"]["EscenaDto"]; - "text/json": components["schemas"]["EscenaDto"]; - }; - }; - }; - }; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/api/admin/escenas/{id}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put: { - parameters: { - query?: never; - header?: never; - path: { - id: number; - }; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["ActualizarEscenaRequest"]; - "text/json": components["schemas"]["ActualizarEscenaRequest"]; - "application/*+json": components["schemas"]["ActualizarEscenaRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "text/plain": components["schemas"]["EscenaDto"]; - "application/json": components["schemas"]["EscenaDto"]; - "text/json": components["schemas"]["EscenaDto"]; - }; - }; - }; - }; - post?: never; - delete: { - parameters: { - query?: never; - header?: never; - path: { - id: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/api/admin/escenas/{id}/imagen": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - post: { - parameters: { - query?: never; - header?: never; - path: { - id: number; - }; - cookie?: never; - }; - requestBody?: { - content: { - "multipart/form-data": { - /** Format: binary */ - Archivo?: string; - Carpeta?: string; - }; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/api/admin/hotspots": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - post: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["CrearHotspotRequest"]; - "text/json": components["schemas"]["CrearHotspotRequest"]; - "application/*+json": components["schemas"]["CrearHotspotRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "text/plain": components["schemas"]["HotspotDto"]; - "application/json": components["schemas"]["HotspotDto"]; - "text/json": components["schemas"]["HotspotDto"]; - }; - }; - }; - }; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/api/admin/hotspots/{id}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put: { - parameters: { - query?: never; - header?: never; - path: { - id: number; - }; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["ActualizarHotspotRequest"]; - "text/json": components["schemas"]["ActualizarHotspotRequest"]; - "application/*+json": components["schemas"]["ActualizarHotspotRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "text/plain": components["schemas"]["HotspotDto"]; - "application/json": components["schemas"]["HotspotDto"]; - "text/json": components["schemas"]["HotspotDto"]; - }; - }; - }; - }; - post?: never; - delete: { - parameters: { - query?: never; - header?: never; - path: { - id: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/api/admin/lugares": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - post: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["CrearLugarRequest"]; - "text/json": components["schemas"]["CrearLugarRequest"]; - "application/*+json": components["schemas"]["CrearLugarRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "text/plain": components["schemas"]["Lugar"]; - "application/json": components["schemas"]["Lugar"]; - "text/json": components["schemas"]["Lugar"]; - }; - }; - }; - }; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/api/admin/lugares/{id}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put: { - parameters: { - query?: never; - header?: never; - path: { - id: number; - }; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["ActualizarLugarRequest"]; - "text/json": components["schemas"]["ActualizarLugarRequest"]; - "application/*+json": components["schemas"]["ActualizarLugarRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "text/plain": components["schemas"]["Lugar"]; - "application/json": components["schemas"]["Lugar"]; - "text/json": components["schemas"]["Lugar"]; - }; - }; - }; - }; - post?: never; - delete: { - parameters: { - query?: never; - header?: never; - path: { - id: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/api/admin/medios": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - post: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["CrearMedioRequest"]; - "text/json": components["schemas"]["CrearMedioRequest"]; - "application/*+json": components["schemas"]["CrearMedioRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "text/plain": components["schemas"]["MedioDto"]; - "application/json": components["schemas"]["MedioDto"]; - "text/json": components["schemas"]["MedioDto"]; - }; - }; - }; - }; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/api/admin/pois/{poiId}/medios": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - post: { - parameters: { - query?: never; - header?: never; - path: { - poiId: number; - }; - cookie?: never; - }; - requestBody?: { - content: { - "multipart/form-data": { - /** Format: binary */ - Archivo?: string; - Tipo?: components["schemas"]["TipoMedio"]; - /** Format: int32 */ - Orden?: number; - /** Format: int32 */ - DuracionSeg?: number; - TextoAlt?: string; - Carpeta?: string; - Idioma?: string; - /** Format: binary */ - Subtitulos?: string; - }; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "text/plain": components["schemas"]["MedioDto"]; - "application/json": components["schemas"]["MedioDto"]; - "text/json": components["schemas"]["MedioDto"]; - }; - }; - }; - }; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/api/admin/medios/{id}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put: { - parameters: { - query?: never; - header?: never; - path: { - id: number; - }; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["ActualizarMedioRequest"]; - "text/json": components["schemas"]["ActualizarMedioRequest"]; - "application/*+json": components["schemas"]["ActualizarMedioRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "text/plain": components["schemas"]["MedioDto"]; - "application/json": components["schemas"]["MedioDto"]; - "text/json": components["schemas"]["MedioDto"]; - }; - }; - }; - }; - post?: never; - delete: { - parameters: { - query?: never; - header?: never; - path: { - id: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/api/admin/medios/{id}/archivo": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - post: { - parameters: { - query?: never; - header?: never; - path: { - id: number; - }; - cookie?: never; - }; - requestBody?: { - content: { - "multipart/form-data": { - /** Format: binary */ - Archivo?: string; - Carpeta?: string; - }; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/api/admin/lugares/{lugarId}/pois": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get: { - parameters: { - query?: never; - header?: never; - path: { - lugarId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "text/plain": components["schemas"]["PoiDto"][]; - "application/json": components["schemas"]["PoiDto"][]; - "text/json": components["schemas"]["PoiDto"][]; - }; - }; - }; - }; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/api/admin/metricas": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get: { - parameters: { - query?: { - desde?: string; - hasta?: string; - }; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "text/plain": components["schemas"]["MetricasDto"]; - "application/json": components["schemas"]["MetricasDto"]; - "text/json": components["schemas"]["MetricasDto"]; - }; - }; - }; - }; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/api/admin/actividad": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get: { - parameters: { - query?: { - pagina?: number; - tamano?: number; - entidad?: string; - }; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "text/plain": components["schemas"]["ActividadPaginaDto"]; - "application/json": components["schemas"]["ActividadPaginaDto"]; - "text/json": components["schemas"]["ActividadPaginaDto"]; - }; - }; - }; - }; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/api/admin/administradores": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get: { - parameters: { - query?: { - todos?: boolean; - }; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "text/plain": components["schemas"]["PerfilDto"][]; - "application/json": components["schemas"]["PerfilDto"][]; - "text/json": components["schemas"]["PerfilDto"][]; - }; - }; - }; - }; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/api/admin/administradores/{userId}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put: { - parameters: { - query?: never; - header?: never; - path: { - userId: string; - }; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["CambiarRolRequest"]; - "text/json": components["schemas"]["CambiarRolRequest"]; - "application/*+json": components["schemas"]["CambiarRolRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "text/plain": components["schemas"]["PerfilDto"]; - "application/json": components["schemas"]["PerfilDto"]; - "text/json": components["schemas"]["PerfilDto"]; - }; - }; - }; - }; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/api/admin/pois": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - post: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["CrearPoiRequest"]; - "text/json": components["schemas"]["CrearPoiRequest"]; - "application/*+json": components["schemas"]["CrearPoiRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "text/plain": components["schemas"]["PoiDto"]; - "application/json": components["schemas"]["PoiDto"]; - "text/json": components["schemas"]["PoiDto"]; - }; - }; - }; - }; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/api/admin/pois/{id}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put: { - parameters: { - query?: never; - header?: never; - path: { - id: number; - }; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["ActualizarPoiRequest"]; - "text/json": components["schemas"]["ActualizarPoiRequest"]; - "application/*+json": components["schemas"]["ActualizarPoiRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "text/plain": components["schemas"]["PoiDto"]; - "application/json": components["schemas"]["PoiDto"]; - "text/json": components["schemas"]["PoiDto"]; - }; - }; - }; - }; - post?: never; - delete: { - parameters: { - query?: never; - header?: never; - path: { - id: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/api/admin/rutas": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - post: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["CrearRutaRequest"]; - "text/json": components["schemas"]["CrearRutaRequest"]; - "application/*+json": components["schemas"]["CrearRutaRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "text/plain": components["schemas"]["RutaDto"]; - "application/json": components["schemas"]["RutaDto"]; - "text/json": components["schemas"]["RutaDto"]; - }; - }; - }; - }; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/api/admin/rutas/{id}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put: { - parameters: { - query?: never; - header?: never; - path: { - id: number; - }; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["ActualizarRutaRequest"]; - "text/json": components["schemas"]["ActualizarRutaRequest"]; - "application/*+json": components["schemas"]["ActualizarRutaRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "text/plain": components["schemas"]["RutaDto"]; - "application/json": components["schemas"]["RutaDto"]; - "text/json": components["schemas"]["RutaDto"]; - }; - }; - }; - }; - post?: never; - delete: { - parameters: { - query?: never; - header?: never; - path: { - id: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/api/lugares/{lugarId}/pois": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get: { - parameters: { - query?: never; - header?: never; - path: { - lugarId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "text/plain": components["schemas"]["PoiDto"][]; - "application/json": components["schemas"]["PoiDto"][]; - "text/json": components["schemas"]["PoiDto"][]; - }; - }; - }; - }; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/api/lugares/{lugarId}/recorrido": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get: { - parameters: { - query?: never; - header?: never; - path: { - lugarId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "text/plain": components["schemas"]["RecorridoDto"]; - "application/json": components["schemas"]["RecorridoDto"]; - "text/json": components["schemas"]["RecorridoDto"]; - }; - }; - }; - }; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/api/pois/{poiId}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get: { - parameters: { - query?: never; - header?: never; - path: { - poiId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "text/plain": components["schemas"]["PoiDetalleDto"]; - "application/json": components["schemas"]["PoiDetalleDto"]; - "text/json": components["schemas"]["PoiDetalleDto"]; - }; - }; - }; - }; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/api/lugares/{lugarId}/ruta": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get: { - parameters: { - query?: never; - header?: never; - path: { - lugarId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "text/plain": components["schemas"]["RutaDto"]; - "application/json": components["schemas"]["RutaDto"]; - "text/json": components["schemas"]["RutaDto"]; - }; - }; - }; - }; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/api/lugares/{lugarId}/mapa": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get: { - parameters: { - query?: never; - header?: never; - path: { - lugarId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - put?: never; - post: { - parameters: { - query?: never; - header?: never; - path: { - lugarId: number; - }; - cookie?: never; - }; - requestBody?: { - content: { - "multipart/form-data": { - /** Format: binary */ - Archivo?: string; - Carpeta?: string; - }; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/api/eventos": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - post: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["RegistrarEventoRequest"]; - "text/json": components["schemas"]["RegistrarEventoRequest"]; - "application/*+json": components["schemas"]["RegistrarEventoRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; -} -export type webhooks = Record; -export interface components { - schemas: { - ActividadDto: { - /** Format: int64 */ - id?: number; - /** Format: date-time */ - ts?: string; - /** Format: uuid */ - actor_id?: string | null; - actor_correo?: string | null; - accion?: string | null; - entidad?: string | null; - entidad_id?: string | null; - /** @description Objeto JSON libre. */ - antes?: Record | null; - /** @description Objeto JSON libre. */ - despues?: Record | null; - }; - ActividadPaginaDto: { - /** Format: int32 */ - pagina?: number; - /** Format: int32 */ - tamano?: number; - /** Format: int32 */ - total?: number; - items?: components["schemas"]["ActividadDto"][] | null; - }; - ActualizarEscenaRequest: { - /** Format: int32 */ - poiId?: number | null; - nombre?: string | null; - imagenUrl?: string | null; - imagenUrlBaja?: string | null; - esEscenaPrincipal?: boolean; - /** Format: int32 */ - orden?: number; - /** Format: double */ - vistaInicialYaw?: number | null; - /** Format: double */ - vistaInicialPitch?: number | null; - textoAlt?: string | null; - }; - ActualizarHotspotRequest: { - tipo?: components["schemas"]["TipoHotspot"]; - /** Format: double */ - pitch?: number; - /** Format: double */ - yaw?: number; - /** Format: int32 */ - escenaDestinoId?: number | null; - /** Format: int32 */ - poiId?: number | null; - etiqueta?: string | null; - }; - ActualizarLugarRequest: { - nombre?: string | null; - slug?: string | null; - }; - ActualizarMedioRequest: { - tipo?: components["schemas"]["TipoMedio"]; - url?: string | null; - /** Format: int32 */ - orden?: number; - /** Format: int32 */ - duracionSeg?: number | null; - textoAlt?: string | null; - subtitulosUrl?: string | null; - idioma?: string | null; - }; - ActualizarPoiRequest: { - nombre?: string | null; - categoria?: string | null; - descripcion?: string | null; - /** Format: double */ - mapX?: number | null; - /** Format: double */ - mapY?: number | null; - /** Format: double */ - lat?: number | null; - /** Format: double */ - lng?: number | null; - audiencias?: string | null; - activo?: boolean; - /** Format: int32 */ - escenaPrincipalId?: number | null; - }; - ActualizarRutaRequest: { - nombre?: string | null; - descripcion?: string | null; - audiencia?: components["schemas"]["Audiencia"]; - activa?: boolean; - }; - /** @enum {string} */ - Audiencia: "externo" | "estudiante" | "docente"; - CambiarRolRequest: { - rol?: string | null; - }; - ConteoTipoDto: { - tipo?: string | null; - /** Format: int32 */ - eventos?: number; - }; - CrearEscenaRequest: { - /** Format: int32 */ - lugarId?: number; - /** Format: int32 */ - poiId?: number | null; - nombre?: string | null; - imagenUrl?: string | null; - imagenUrlBaja?: string | null; - esEscenaPrincipal?: boolean; - /** Format: int32 */ - orden?: number; - /** Format: double */ - vistaInicialYaw?: number | null; - /** Format: double */ - vistaInicialPitch?: number | null; - textoAlt?: string | null; - }; - CrearHotspotRequest: { - /** Format: int32 */ - escenaId?: number; - tipo?: components["schemas"]["TipoHotspot"]; - /** Format: double */ - pitch?: number; - /** Format: double */ - yaw?: number; - /** Format: int32 */ - escenaDestinoId?: number | null; - /** Format: int32 */ - poiId?: number | null; - etiqueta?: string | null; - }; - CrearLugarRequest: { - nombre?: string | null; - slug?: string | null; - }; - CrearMedioRequest: { - /** Format: int32 */ - poiId?: number; - tipo?: components["schemas"]["TipoMedio"]; - url?: string | null; - /** Format: int32 */ - orden?: number; - /** Format: int32 */ - duracionSeg?: number | null; - textoAlt?: string | null; - subtitulosUrl?: string | null; - idioma?: string | null; - }; - CrearPoiRequest: { - /** Format: int32 */ - lugarId?: number; - nombre?: string | null; - categoria?: string | null; - descripcion?: string | null; - /** Format: double */ - mapX?: number | null; - /** Format: double */ - mapY?: number | null; - /** Format: double */ - lat?: number | null; - /** Format: double */ - lng?: number | null; - audiencias?: string | null; - activo?: boolean; - /** Format: int32 */ - escenaPrincipalId?: number | null; - }; - CrearRutaRequest: { - /** Format: int32 */ - lugarId?: number; - nombre?: string | null; - descripcion?: string | null; - audiencia?: components["schemas"]["Audiencia"]; - activa?: boolean; - }; - Escena: { - /** Format: int32 */ - id?: number; - /** Format: int32 */ - lugarId?: number; - lugar?: components["schemas"]["Lugar"]; - /** Format: int32 */ - poiId?: number | null; - poi?: components["schemas"]["Poi"]; - imagenUrl?: string | null; - imagenUrlBaja?: string | null; - nombre?: string | null; - esEscenaPrincipal?: boolean; - /** Format: int32 */ - orden?: number; - /** Format: double */ - vistaInicialYaw?: number | null; - /** Format: double */ - vistaInicialPitch?: number | null; - textoAlt?: string | null; - hotspots?: components["schemas"]["Hotspot"][] | null; - }; - EscenaDto: { - /** Format: int32 */ - id?: number; - /** Format: int32 */ - lugar_id?: number; - /** Format: int32 */ - poi_id?: number | null; - nombre?: string | null; - imagen_url?: string | null; - imagen_url_baja?: string | null; - es_escena_principal?: boolean; - /** Format: int32 */ - orden?: number; - /** Format: double */ - vista_inicial_yaw?: number | null; - /** Format: double */ - vista_inicial_pitch?: number | null; - texto_alt?: string | null; - }; - Hotspot: { - /** Format: int32 */ - id?: number; - /** Format: int32 */ - escenaId?: number; - escena?: components["schemas"]["Escena"]; - tipo?: components["schemas"]["TipoHotspot"]; - /** Format: double */ - pitch?: number; - /** Format: double */ - yaw?: number; - /** Format: int32 */ - escenaDestinoId?: number | null; - escenaDestino?: components["schemas"]["Escena"]; - /** Format: int32 */ - poiId?: number | null; - poi?: components["schemas"]["Poi"]; - etiqueta?: string | null; - }; - HotspotDto: { - /** Format: int32 */ - id?: number; - /** Format: int32 */ - escena_id?: number; - tipo?: components["schemas"]["TipoHotspot"]; - /** Format: double */ - pitch?: number; - /** Format: double */ - yaw?: number; - /** Format: int32 */ - escena_destino_id?: number | null; - /** Format: int32 */ - poi_id?: number | null; - etiqueta?: string | null; - }; - Lugar: { - /** Format: int32 */ - id?: number; - nombre: string; - slug: string; - mapaUrl?: string | null; - pois?: components["schemas"]["Poi"][] | null; - escenas?: components["schemas"]["Escena"][] | null; - rutas?: components["schemas"]["Ruta"][] | null; - }; - Medio: { - /** Format: int32 */ - id?: number; - /** Format: int32 */ - poiId?: number; - poi?: components["schemas"]["Poi"]; - tipo?: components["schemas"]["TipoMedio"]; - url: string; - /** Format: int32 */ - orden?: number; - /** Format: int32 */ - duracionSeg?: number | null; - textoAlt?: string | null; - subtitulosUrl?: string | null; - idioma?: string | null; - }; - MedioDto: { - /** Format: int32 */ - id?: number; - /** Format: int32 */ - poi_id?: number; - tipo?: components["schemas"]["TipoMedio"]; - url?: string | null; - /** Format: int32 */ - orden?: number; - /** Format: int32 */ - duracion_seg?: number | null; - texto_alt?: string | null; - subtitulos_url?: string | null; - idioma?: string | null; - }; - MetricasDto: { - /** Format: date */ - desde?: string; - /** Format: date */ - hasta?: string; - /** Format: int32 */ - visitas?: number; - /** Format: int32 */ - eventos?: number; - por_tipo?: components["schemas"]["ConteoTipoDto"][] | null; - por_dia?: components["schemas"]["VisitasDiaDto"][] | null; - pois_mas_vistos?: components["schemas"]["PoiVistoDto"][] | null; - }; - PerfilDto: { - /** Format: uuid */ - user_id?: string; - correo?: string | null; - rol?: string | null; - verificado?: boolean; - /** Format: date-time */ - creado_en?: string; - }; - Poi: { - /** Format: int32 */ - id?: number; - /** Format: int32 */ - lugarId?: number; - lugar?: components["schemas"]["Lugar"]; - nombre: string; - categoria?: string | null; - descripcion?: string | null; - /** Format: double */ - lat?: number | null; - /** Format: double */ - lng?: number | null; - /** Format: double */ - mapX?: number | null; - /** Format: double */ - mapY?: number | null; - audiencias: string; - activo?: boolean; - /** Format: int32 */ - escenaPrincipalId?: number | null; - escenaPrincipal?: components["schemas"]["Escena"]; - escenas?: components["schemas"]["Escena"][] | null; - medios?: components["schemas"]["Medio"][] | null; - }; - PoiDetalleDto: { - poi?: components["schemas"]["PoiDto"]; - medios?: components["schemas"]["MedioDto"][] | null; - }; - PoiDto: { - /** Format: int32 */ - id?: number; - /** Format: int32 */ - lugar_id?: number; - nombre?: string | null; - categoria?: string | null; - descripcion?: string | null; - /** Format: double */ - lat?: number | null; - /** Format: double */ - lng?: number | null; - /** Format: double */ - map_x?: number | null; - /** Format: double */ - map_y?: number | null; - /** Format: int32 */ - escena_principal_id?: number | null; - audiencias?: components["schemas"]["Audiencia"][] | null; - activo?: boolean; - }; - PoiVistoDto: { - /** Format: int32 */ - poi_id?: number; - nombre?: string | null; - /** Format: int32 */ - visitas?: number; - /** Format: int32 */ - eventos?: number; - }; - RecorridoDto: { - escenas?: components["schemas"]["EscenaDto"][] | null; - hotspots?: components["schemas"]["HotspotDto"][] | null; - }; - RegistrarEventoRequest: { - /** Format: uuid */ - sesionId?: string; - tipo?: string | null; - /** Format: int32 */ - poiId?: number | null; - /** Format: int32 */ - escenaId?: number | null; - /** @description Objeto JSON libre. */ - payload?: Record | null; - }; - Ruta: { - /** Format: int32 */ - id?: number; - /** Format: int32 */ - lugarId?: number; - lugar?: components["schemas"]["Lugar"]; - nombre: string; - descripcion?: string | null; - audiencia?: components["schemas"]["Audiencia"]; - activa?: boolean; - pois?: components["schemas"]["RutaPoi"][] | null; - }; - RutaDto: { - /** Format: int32 */ - id?: number; - /** Format: int32 */ - lugar_id?: number; - nombre?: string | null; - descripcion?: string | null; - audiencia?: components["schemas"]["Audiencia"]; - activa?: boolean; - }; - RutaPoi: { - /** Format: int32 */ - rutaId?: number; - ruta?: components["schemas"]["Ruta"]; - /** Format: int32 */ - poiId?: number; - poi?: components["schemas"]["Poi"]; - /** Format: int32 */ - orden?: number; - }; - /** @enum {string} */ - TipoHotspot: "navegacion" | "info"; - /** @enum {string} */ - TipoMedio: "imagen" | "video" | "audio"; - VisitasDiaDto: { - /** Format: date */ - dia?: string; - /** Format: int32 */ - visitas?: number; - /** Format: int32 */ - eventos?: number; - }; - }; - responses: never; - parameters: never; - requestBodies: never; - headers: never; - pathItems: never; -} -export type $defs = Record; -export type operations = Record; diff --git a/apps/admin/src/components/Sidebar.tsx b/apps/admin/src/components/Sidebar.tsx deleted file mode 100644 index af2dfac..0000000 --- a/apps/admin/src/components/Sidebar.tsx +++ /dev/null @@ -1,42 +0,0 @@ -"use client"; - -import Link from "next/link"; -import { usePathname } from "next/navigation"; - -const items = [ - { href: "/pois", label: "POIs", ready: true }, - { href: "/escenas", label: "Escenas 360", ready: false }, - { href: "/medios", label: "Medios", ready: false }, - { href: "/rutas", label: "Rutas", ready: false }, - { href: "/campus", label: "Campus", ready: false }, -]; - -export function Sidebar() { - const pathname = usePathname(); - - return ( - - ); -} \ No newline at end of file diff --git a/apps/admin/src/lib/api.ts b/apps/admin/src/lib/api.ts deleted file mode 100644 index dc7e03a..0000000 --- a/apps/admin/src/lib/api.ts +++ /dev/null @@ -1,13 +0,0 @@ -import type { components } from "@/api/schema"; - -export type Poi = components["schemas"]["PoiDto"]; - -export async function api(path: string, init?: RequestInit): Promise { - const res = await fetch(path, { - ...init, - headers: { "Content-Type": "application/json", ...init?.headers }, - }); - if (!res.ok) throw new Error(`${res.status} ${res.statusText}`); - const text = await res.text(); - return (text ? JSON.parse(text) : undefined) as T; -} \ No newline at end of file diff --git a/apps/admin/tsconfig.json b/apps/admin/tsconfig.json deleted file mode 100644 index 7f8c7be..0000000 --- a/apps/admin/tsconfig.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "compilerOptions": { - "target": "ES2017", - "lib": ["dom", "dom.iterable", "esnext"], - "allowJs": true, - "skipLibCheck": true, - "strict": true, - "noEmit": true, - "esModuleInterop": true, - "module": "esnext", - "moduleResolution": "bundler", - "resolveJsonModule": true, - "isolatedModules": true, - "jsx": "react-jsx", - "incremental": true, - "plugins": [ - { - "name": "next" - } - ], - "paths": { - "@/*": ["./src/*"] - } - }, - "include": [ - "next-env.d.ts", - "**/*.ts", - "**/*.tsx", - ".next/types/**/*.ts", - ".next/dev/types/**/*.ts", - "**/*.mts" - ], - "exclude": ["node_modules"] -} diff --git a/apps/admin_flutter/.gitignore b/apps/admin_flutter/.gitignore new file mode 100644 index 0000000..3820a95 --- /dev/null +++ b/apps/admin_flutter/.gitignore @@ -0,0 +1,45 @@ +# Miscellaneous +*.class +*.log +*.pyc +*.swp +.DS_Store +.atom/ +.build/ +.buildlog/ +.history +.svn/ +.swiftpm/ +migrate_working_dir/ + +# IntelliJ related +*.iml +*.ipr +*.iws +.idea/ + +# The .vscode folder contains launch configuration and tasks you configure in +# VS Code which you may wish to be included in version control, so this line +# is commented out by default. +#.vscode/ + +# Flutter/Dart/Pub related +**/doc/api/ +**/ios/Flutter/.last_build_id +.dart_tool/ +.flutter-plugins-dependencies +.pub-cache/ +.pub/ +/build/ +/coverage/ + +# Symbolication related +app.*.symbols + +# Obfuscation related +app.*.map.json + +# Android Studio will place build artifacts here +/android/app/debug +/android/app/profile +/android/app/release diff --git a/apps/admin_flutter/.metadata b/apps/admin_flutter/.metadata new file mode 100644 index 0000000..a49b961 --- /dev/null +++ b/apps/admin_flutter/.metadata @@ -0,0 +1,30 @@ +# This file tracks properties of this Flutter project. +# Used by Flutter tool to assess capabilities and perform upgrades etc. +# +# This file should be version controlled and should not be manually edited. + +version: + revision: "559ffa3f75e7402d65a8def9c28389a9b2e6fe42" + channel: "stable" + +project_type: app + +# Tracks metadata for the flutter migrate command +migration: + platforms: + - platform: root + create_revision: 559ffa3f75e7402d65a8def9c28389a9b2e6fe42 + base_revision: 559ffa3f75e7402d65a8def9c28389a9b2e6fe42 + - platform: web + create_revision: 559ffa3f75e7402d65a8def9c28389a9b2e6fe42 + base_revision: 559ffa3f75e7402d65a8def9c28389a9b2e6fe42 + + # User provided section + + # List of Local paths (relative to this file) that should be + # ignored by the migrate tool. + # + # Files that are not part of the templates will be ignored by default. + unmanaged_files: + - 'lib/main.dart' + - 'ios/Runner.xcodeproj/project.pbxproj' diff --git a/apps/admin_flutter/README.md b/apps/admin_flutter/README.md new file mode 100644 index 0000000..d7501e3 --- /dev/null +++ b/apps/admin_flutter/README.md @@ -0,0 +1,67 @@ +# Panel de administración (Flutter web) + +Panel para administrar el contenido del Tour Virtual UTB: POIs, ubicación en +el mapa, multimedia (360°, fotos, video, audio con idioma y subtítulos), +métricas, actividad y administradores. Habla con la API de `services/api`. + +## Requisitos + +- Flutter 3.44 o superior (Dart 3.12). +- La API corriendo en `http://localhost:5209` (ver el README de `services/api`). +- Una cuenta con rol `admin` en la tabla `perfiles` de Supabase. + +## Cómo correrlo + +1. Levantar la API: + + ``` + cd services/api + dotnet run --launch-profile http + ``` + +2. Correr el panel contra la API real, con inicio de sesión de Supabase: + + ``` + cd apps/admin_flutter + flutter pub get + flutter run -d chrome --dart-define=USE_MOCK=false --dart-define=SUPABASE_ANON_KEY= + ``` + + La publishable key está en Supabase → Project Settings → API Keys. Es + pública (va en el navegador), pero no se guarda en el repo. Nunca usar la + `secret` ni la `service_role` aquí. + +## Parámetros (`--dart-define`) + +| Parámetro | Por defecto | Para qué | +|---|---|---| +| `USE_MOCK` | `true` | `true`: datos de ejemplo, sin API. `false`: API real. | +| `API_BASE_URL` | `http://localhost:5209` | Dirección de la API. | +| `SUPABASE_ANON_KEY` | vacío | Publishable key. Sin ella, el login es simulado. | +| `SUPABASE_URL` | proyecto del equipo | Solo si se usa otro proyecto de Supabase. | +| `BACKEND_CAMPOS_NUEVOS` | `true` | Editar lat/lng, idioma, subtítulos y texto alternativo. | +| `LUGAR_ID` | `1` | Campus que administra el panel. | + +## Modos + +- **Maqueta** (`USE_MOCK=true`): no necesita la API. Cualquier correo + `@utb.edu.co` y cualquier contraseña entran. Útil para trabajar el diseño. +- **API real sin clave** (`USE_MOCK=false`, sin `SUPABASE_ANON_KEY`): datos + reales, login simulado. En Development la API deja pasar sin token. +- **API real con login** (`USE_MOCK=false` + clave): inicio de sesión con + Supabase; la API valida el token y exige rol `admin`. + +## Subida de archivos + +Las subidas pasan por la API, que las guarda en Supabase Storage. La API +necesita sus secretos `SupabaseS3:ServiceUrl`, `SupabaseS3:AccessKey` y +`SupabaseS3:SecretKey` (`dotnet user-secrets set ...`); sin ellos, leer +funciona pero subir falla. + +Límites: imagen 5 MB, audio 10 MB, video 50 MB, panorámica 360° 50 MB (la API +la reduce a 4096x2048). El tope real es 50 MB por archivo, el máximo del plan +gratis de Supabase. + +Reglas del SRS que aplica el panel: ninguna imagen sin texto alternativo y +ninguna narración (audio o video) sin subtítulos `.vtt`; una sola narración +por idioma en cada POI. diff --git a/apps/admin_flutter/analysis_options.yaml b/apps/admin_flutter/analysis_options.yaml new file mode 100644 index 0000000..0d29021 --- /dev/null +++ b/apps/admin_flutter/analysis_options.yaml @@ -0,0 +1,28 @@ +# This file configures the analyzer, which statically analyzes Dart code to +# check for errors, warnings, and lints. +# +# The issues identified by the analyzer are surfaced in the UI of Dart-enabled +# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be +# invoked from the command line by running `flutter analyze`. + +# The following line activates a set of recommended lints for Flutter apps, +# packages, and plugins designed to encourage good coding practices. +include: package:flutter_lints/flutter.yaml + +linter: + # The lint rules applied to this project can be customized in the + # section below to disable rules from the `package:flutter_lints/flutter.yaml` + # included above or to enable additional rules. A list of all available lints + # and their documentation is published at https://dart.dev/lints. + # + # Instead of disabling a lint rule for the entire project in the + # section below, it can also be suppressed for a single line of code + # or a specific dart file by using the `// ignore: name_of_lint` and + # `// ignore_for_file: name_of_lint` syntax on the line or in the file + # producing the lint. + rules: + # avoid_print: false # Uncomment to disable the `avoid_print` rule + # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule + +# Additional information about this file can be found at +# https://dart.dev/guides/language/analysis-options diff --git a/apps/admin_flutter/assets/campus_osm.geojson b/apps/admin_flutter/assets/campus_osm.geojson new file mode 100644 index 0000000..932f98b --- /dev/null +++ b/apps/admin_flutter/assets/campus_osm.geojson @@ -0,0 +1 @@ +{"type":"FeatureCollection","bbox":[-75.46783,10.3672,-75.4611,10.37181],"properties":{"fuente":"© colaboradores de OpenStreetMap, ODbL 1.0","generado":"2026-10-24","osm_base":"2026-10-24T18:21:47Z","correcciones":{"way/1563809309":{"name":"Edificio A4"},"way/238258177":{"name":"Edificio A3"}}},"features":[{"type":"Feature","properties":{"osm":"way/68735397","clase":"campus","nombre":"Universidad Tecnológica de Bolívar - Campus Ternera"},"geometry":{"type":"Polygon","coordinates":[[[-75.4657693,10.3714474],[-75.464964,10.3706412],[-75.465062,10.3705613],[-75.4640308,10.3693245],[-75.4628302,10.370178],[-75.4614574,10.3683683],[-75.4629478,10.3665868],[-75.4635026,10.3660002],[-75.4652712,10.3679653],[-75.4653616,10.3680589],[-75.4674583,10.3699346],[-75.4673859,10.3699994],[-75.4657693,10.3714474]]]}},{"type":"Feature","properties":{"osm":"way/75836912","clase":"zona"},"geometry":{"type":"Polygon","coordinates":[[[-75.4611319,10.3770502],[-75.4606413,10.376516],[-75.463762,10.3741734],[-75.4656715,10.3717288],[-75.4703295,10.3676792],[-75.4711077,10.3688439],[-75.4709412,10.369025],[-75.4705678,10.3696084],[-75.4703977,10.3697522],[-75.4702499,10.3698841],[-75.4683028,10.3717512],[-75.4675343,10.3725029],[-75.4664494,10.3735521],[-75.4650399,10.3749522],[-75.4645234,10.3755203],[-75.4643764,10.3757697],[-75.4639441,10.3761138],[-75.4633503,10.3754067],[-75.4611319,10.3770502]]]}},{"type":"Feature","properties":{"osm":"way/90958943","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4640083,10.3714527],[-75.4646031,10.3710203],[-75.4653217,10.3719094],[-75.464877,10.3724206],[-75.4640083,10.3714527]]]}},{"type":"Feature","properties":{"osm":"way/90958945","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4683232,10.3716199],[-75.467972,10.3719225],[-75.4669377,10.3707616],[-75.4672889,10.3704589],[-75.4683232,10.3716199]]]}},{"type":"Feature","properties":{"osm":"way/90958948","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4675865,10.3721383],[-75.4672428,10.3724401],[-75.4663016,10.3714028],[-75.4666453,10.3711011],[-75.4675865,10.3721383]]]}},{"type":"Feature","properties":{"osm":"way/95947489","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4621016,10.3708541],[-75.4615931,10.3701108],[-75.4609527,10.3691732]]}},{"type":"Feature","properties":{"osm":"way/95947491","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4629786,10.370871],[-75.4627189,10.3704721],[-75.4622155,10.3697095],[-75.4614075,10.3685059]]}},{"type":"Feature","properties":{"osm":"way/95947493","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4643314,10.3710331],[-75.463841,10.3704563]]}},{"type":"Feature","properties":{"osm":"way/95947501","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4645097,10.3708935],[-75.4640111,10.3703181]]}},{"type":"Feature","properties":{"osm":"way/95947527","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4622155,10.3697095],[-75.4619185,10.369901],[-75.4615931,10.3701108]]}},{"type":"Feature","properties":{"osm":"way/95947529","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4585648,10.3742856],[-75.4589568,10.3738286],[-75.4591851,10.3735631],[-75.4594081,10.3733038],[-75.4596539,10.373018],[-75.4598982,10.3727339],[-75.4601289,10.3724656],[-75.4603569,10.3722004],[-75.4605888,10.3719307],[-75.4607412,10.3717655],[-75.4609202,10.3716032],[-75.4611418,10.3714478],[-75.4614107,10.3712816],[-75.4614741,10.3712424],[-75.4618011,10.37104],[-75.4621016,10.3708541],[-75.4624184,10.370658],[-75.4627189,10.3704721],[-75.4628994,10.3703604],[-75.463039,10.370274],[-75.4631428,10.3702015]]}},{"type":"Feature","properties":{"osm":"way/95947533","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4618011,10.37104],[-75.4613076,10.3702949],[-75.4607245,10.3694144]]}},{"type":"Feature","properties":{"osm":"way/95947554","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4637182,10.3704119],[-75.4637902,10.3704976],[-75.463841,10.3704563],[-75.4639613,10.3703585],[-75.4640111,10.3703181],[-75.4641388,10.3702143],[-75.4641878,10.3701745],[-75.464114,10.3700867]]}},{"type":"Feature","properties":{"osm":"way/95947557","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4647039,10.3707471],[-75.4641878,10.3701745]]}},{"type":"Feature","properties":{"osm":"way/95947560","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4626904,10.3710702],[-75.4624184,10.370658],[-75.4619185,10.369901],[-75.4612389,10.3688708]]}},{"type":"Feature","properties":{"osm":"way/95947578","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4617853,10.3716993],[-75.4614741,10.3712424]]}},{"type":"Feature","properties":{"osm":"way/97545728","clase":"edificio","nombre":"Iglesia El Rodeo"},"geometry":{"type":"Polygon","coordinates":[[[-75.4615599,10.3720183],[-75.4615254,10.3719692],[-75.4616078,10.3719133],[-75.4615141,10.3717799],[-75.4614371,10.3718322],[-75.4612745,10.3716006],[-75.4612211,10.3716368],[-75.4611983,10.3716044],[-75.4611118,10.3716632],[-75.4611309,10.3716904],[-75.4610806,10.3717246],[-75.4612463,10.3719605],[-75.4611487,10.3720268],[-75.4612364,10.3721517],[-75.4613253,10.3720914],[-75.4613663,10.3721498],[-75.4615599,10.3720183]]]}},{"type":"Feature","properties":{"osm":"way/97545758","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4605856,10.3732368],[-75.460887,10.373031],[-75.4609234,10.3729223],[-75.4609291,10.3727947],[-75.4609365,10.3727492],[-75.4609613,10.3727037],[-75.4617204,10.3721087],[-75.4622219,10.3717312]]}},{"type":"Feature","properties":{"osm":"way/97546320","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4648411,10.3685891],[-75.4649986,10.3688263],[-75.4651072,10.3690524],[-75.4654044,10.3693679],[-75.4656095,10.369617],[-75.4663059,10.3704803]]}},{"type":"Feature","properties":{"osm":"way/97546321","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4659404,10.3710967],[-75.4658457,10.3711763]]}},{"type":"Feature","properties":{"osm":"way/97546322","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.466258,10.370961],[-75.4661901,10.3708789],[-75.4660786,10.370747]]}},{"type":"Feature","properties":{"osm":"way/97546323","clase":"edificio","nombre":"Edificio A1"},"geometry":{"type":"Polygon","coordinates":[[[-75.4656092,10.3699642],[-75.4656451,10.3698715],[-75.46534,10.369745],[-75.4653744,10.3696479],[-75.4654043,10.3696273],[-75.4654208,10.3696155],[-75.4654402,10.3695788],[-75.4654372,10.3695523],[-75.4654193,10.3695199],[-75.4653759,10.3695096],[-75.4653505,10.3695199],[-75.4653131,10.3695538],[-75.4653116,10.3695846],[-75.4653191,10.3696214],[-75.4652817,10.3697156],[-75.4651097,10.3696553],[-75.4650679,10.3697568],[-75.4652099,10.3698083],[-75.465195,10.3698259],[-75.465192,10.3698539],[-75.465201,10.3698833],[-75.4652174,10.3698906],[-75.4652368,10.369895],[-75.4652563,10.3698847],[-75.4652653,10.3698656],[-75.4652578,10.3698436],[-75.4652787,10.3698288],[-75.4656092,10.3699642]]]}},{"type":"Feature","properties":{"osm":"way/97546328","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4653485,10.3715812],[-75.4647231,10.3709386],[-75.4648603,10.3708094],[-75.4654858,10.3714519],[-75.4653485,10.3715812]]]}},{"type":"Feature","properties":{"osm":"way/97546330","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.465977,10.3708381],[-75.4660812,10.3709608],[-75.466223,10.3711167]]}},{"type":"Feature","properties":{"osm":"way/97546333","clase":"cancha"},"geometry":{"type":"Polygon","coordinates":[[[-75.4657163,10.3694674],[-75.4655783,10.3693401],[-75.4658103,10.3690968],[-75.4659482,10.3692241],[-75.465867,10.3693093],[-75.4657627,10.3694187],[-75.4657163,10.3694674]]]}},{"type":"Feature","properties":{"osm":"way/97546334","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4652144,10.3701304],[-75.4651516,10.370179],[-75.4650604,10.3700627],[-75.4650394,10.3700804],[-75.4649647,10.3700054],[-75.4649946,10.3699804],[-75.4649168,10.3698597],[-75.4649721,10.3698215],[-75.465032,10.3699009],[-75.465174,10.3699406],[-75.4651262,10.3700289],[-75.4652144,10.3701304]]]}},{"type":"Feature","properties":{"osm":"way/97546336","clase":"cancha","nombre":"Cancha de Beisbol"},"geometry":{"type":"Polygon","coordinates":[[[-75.4662751,10.3699768],[-75.4659405,10.3697414],[-75.4662097,10.3691658],[-75.4667686,10.3695226],[-75.4662751,10.3699768]]]}},{"type":"Feature","properties":{"osm":"way/97546338","clase":"cancha","nombre":"Cancha de Fútbol"},"geometry":{"type":"Polygon","coordinates":[[[-75.4662085,10.3702229],[-75.4668402,10.3696782],[-75.4672031,10.3700855],[-75.4665714,10.3706301],[-75.4662085,10.3702229]]]}},{"type":"Feature","properties":{"osm":"way/97546732","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4652256,10.3705788],[-75.465104,10.3706926],[-75.4653375,10.3709341],[-75.4654591,10.3708204],[-75.4652256,10.3705788]]]}},{"type":"Feature","properties":{"osm":"way/97546863","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4671293,10.3726603],[-75.4668121,10.3729386],[-75.4659652,10.3720049],[-75.4659019,10.3719352],[-75.4662192,10.3716568],[-75.4671293,10.3726603]]]}},{"type":"Feature","properties":{"osm":"way/97546867","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4657036,10.3710171],[-75.4658457,10.3711763]]}},{"type":"Feature","properties":{"osm":"way/97546871","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4661901,10.3708789],[-75.4664541,10.370642]]}},{"type":"Feature","properties":{"osm":"way/133950971","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.468619,10.3689928],[-75.4685233,10.3688967],[-75.4665424,10.3669011]]}},{"type":"Feature","properties":{"osm":"way/238258177","clase":"edificio","nombre":"Edificio A3"},"geometry":{"type":"Polygon","coordinates":[[[-75.464988,10.3692662],[-75.4649165,10.3691659],[-75.4647873,10.3692549],[-75.4646778,10.3693304],[-75.4647492,10.3694307],[-75.464988,10.3692662]]]}},{"type":"Feature","properties":{"osm":"way/551377032","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4643082,10.369941],[-75.4643516,10.3699492],[-75.464387,10.3699745],[-75.4644245,10.3700061],[-75.4646525,10.3702714],[-75.4647558,10.3703954],[-75.4648047,10.3704522]]}},{"type":"Feature","properties":{"osm":"way/551377034","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4648047,10.3704522],[-75.464841,10.370485],[-75.464864,10.3705242],[-75.4648682,10.3705694],[-75.4648527,10.3706121],[-75.4648204,10.3706444]]}},{"type":"Feature","properties":{"osm":"way/551377036","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4656095,10.369617],[-75.4654773,10.3695062],[-75.4654102,10.3694574],[-75.4653633,10.3694402],[-75.4652922,10.3694402],[-75.4652332,10.3694482],[-75.4652024,10.3694508],[-75.4651514,10.3694561],[-75.4651071,10.3694693],[-75.4650656,10.3694851],[-75.4650428,10.3695009],[-75.4650012,10.3695313],[-75.4649703,10.3695629],[-75.4649489,10.3695906],[-75.4649288,10.3696262],[-75.4649087,10.3696566],[-75.4648845,10.3697028],[-75.4648631,10.3697542],[-75.4648456,10.3698043],[-75.4648295,10.3698584],[-75.4648175,10.3698927],[-75.4648175,10.3699415],[-75.4648322,10.3699811],[-75.4650505,10.370254],[-75.4652828,10.3705444]]}},{"type":"Feature","properties":{"osm":"way/555595041","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4631428,10.3702015],[-75.4634732,10.3706086],[-75.4639626,10.3711893],[-75.4639961,10.3712228],[-75.4640306,10.3712365]]}},{"type":"Feature","properties":{"osm":"way/555595042","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4640306,10.3712365],[-75.4640671,10.3712377],[-75.4640962,10.3712291],[-75.464138,10.3711947],[-75.4642807,10.3710719],[-75.4643314,10.3710331],[-75.464457,10.3709367],[-75.4645097,10.3708935]]}},{"type":"Feature","properties":{"osm":"way/557078983","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4649387,10.3707568],[-75.4656232,10.3713992],[-75.465751,10.3715191]]}},{"type":"Feature","properties":{"osm":"way/557078984","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4645097,10.3708935],[-75.4646502,10.3707884],[-75.4647039,10.3707471],[-75.4648204,10.3706444]]}},{"type":"Feature","properties":{"osm":"way/557086409","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4636341,10.3740413],[-75.4641268,10.3734144],[-75.464603,10.3728083],[-75.4646614,10.372734],[-75.4648555,10.3725002],[-75.4652528,10.3720217],[-75.4656103,10.3716477],[-75.465751,10.3715191],[-75.466223,10.3711167]]}},{"type":"Feature","properties":{"osm":"way/558970478","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4637182,10.3704119],[-75.4633512,10.3699651],[-75.4633237,10.3699419],[-75.4632881,10.3699281],[-75.4632439,10.3699215],[-75.4632077,10.3699281],[-75.4631647,10.3699466],[-75.463087,10.3699954],[-75.4630656,10.3700178],[-75.463056,10.3700402]]}},{"type":"Feature","properties":{"osm":"way/558970480","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4633096,10.3707157],[-75.463039,10.370274]]}},{"type":"Feature","properties":{"osm":"way/558970483","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4623849,10.3712688],[-75.4621016,10.3708541]]}},{"type":"Feature","properties":{"osm":"way/558970486","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4620902,10.371477],[-75.4618011,10.37104]]}},{"type":"Feature","properties":{"osm":"way/558971175","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4602101,10.3642012],[-75.4604282,10.3643927],[-75.4614991,10.365327],[-75.462686,10.3663674],[-75.4629042,10.3665583],[-75.4629478,10.3665868],[-75.463648,10.3665699],[-75.4637921,10.366598],[-75.4639065,10.3666829],[-75.4643229,10.3672761],[-75.4644346,10.3674648],[-75.4645143,10.3676103],[-75.4648411,10.3685891]]}},{"type":"Feature","properties":{"osm":"way/559272582","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.464114,10.3700867],[-75.4639717,10.3702016],[-75.4638447,10.3703054]]}},{"type":"Feature","properties":{"osm":"way/559293609","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4642807,10.3710719],[-75.4637902,10.3704976]]}},{"type":"Feature","properties":{"osm":"way/559293610","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.464457,10.3709367],[-75.4639613,10.3703585]]}},{"type":"Feature","properties":{"osm":"way/559293611","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4646502,10.3707884],[-75.4641388,10.3702143]]}},{"type":"Feature","properties":{"osm":"way/559293612","clase":"edificio","nombre":"Tienda El Gran Sol"},"geometry":{"type":"Polygon","coordinates":[[[-75.462,10.3708199],[-75.4618692,10.3708885],[-75.461815,10.3707884],[-75.4619457,10.3707198],[-75.462,10.3708199]]]}},{"type":"Feature","properties":{"osm":"way/559293613","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4628994,10.3703604],[-75.4628496,10.3702777]]}},{"type":"Feature","properties":{"osm":"way/559293614","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4632258,10.3702038],[-75.4631682,10.3701394],[-75.4632627,10.3700576],[-75.4633203,10.370122],[-75.4632258,10.3702038]]]}},{"type":"Feature","properties":{"osm":"way/559293615","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4634303,10.3702302],[-75.463327,10.370314],[-75.463253,10.3702256],[-75.4633562,10.3701419],[-75.4634303,10.3702302]]]}},{"type":"Feature","properties":{"osm":"way/559293616","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4639717,10.3702016],[-75.4637159,10.3699083],[-75.4636167,10.3697906]]}},{"type":"Feature","properties":{"osm":"way/559293617","clase":"edificio","nombre":"Oasis"},"geometry":{"type":"Polygon","coordinates":[[[-75.4641625,10.3700178],[-75.4641049,10.3700627],[-75.4640042,10.3699375],[-75.4640619,10.3698926],[-75.4641625,10.3700178]]]}},{"type":"Feature","properties":{"osm":"way/559293619","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4631428,10.3702015],[-75.4630659,10.3700921],[-75.463056,10.3700696],[-75.463056,10.3700402]]}},{"type":"Feature","properties":{"osm":"way/559293621","clase":"edificio","nombre":"Tienda Las Adrianas"},"geometry":{"type":"Polygon","coordinates":[[[-75.4636871,10.3705917],[-75.4636187,10.3706532],[-75.4635758,10.370607],[-75.4636442,10.3705455],[-75.4636871,10.3705917]]]}},{"type":"Feature","properties":{"osm":"way/559325769","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4614741,10.3712424],[-75.4609821,10.3705047],[-75.4603768,10.3697418]]}},{"type":"Feature","properties":{"osm":"way/591433479","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4642778,10.3676076],[-75.4641437,10.3676287],[-75.4641223,10.3675549],[-75.4642591,10.3675311],[-75.4642778,10.3676076]]]}},{"type":"Feature","properties":{"osm":"way/623568009","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4666238,10.370767],[-75.468619,10.3689928]]}},{"type":"Feature","properties":{"osm":"way/632657267","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4660786,10.370747],[-75.4660801,10.3707169],[-75.4660735,10.3706876],[-75.4660591,10.370661],[-75.466032,10.3706347],[-75.4659976,10.3706187],[-75.4659597,10.3706147],[-75.4659226,10.3706232],[-75.4659017,10.3706362],[-75.4658905,10.3706432],[-75.4658668,10.3706726],[-75.4658543,10.370708]]}},{"type":"Feature","properties":{"osm":"way/693401400","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4614886,10.3687335],[-75.4614487,10.3686687],[-75.4613604,10.3687255],[-75.4613917,10.3687875],[-75.4614886,10.3687335]]]}},{"type":"Feature","properties":{"osm":"way/693401401","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4615983,10.3689163],[-75.4615286,10.3689545],[-75.4614414,10.36882],[-75.4615146,10.3687773],[-75.4615983,10.3689163]]]}},{"type":"Feature","properties":{"osm":"way/693401402","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4614615,10.3689255],[-75.4613851,10.3689585],[-75.4612751,10.3687672],[-75.4613604,10.3687255],[-75.4613917,10.3687875],[-75.4614615,10.3689255]]]}},{"type":"Feature","properties":{"osm":"way/807336086","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4641954,10.3700199],[-75.4639332,10.3696986]]}},{"type":"Feature","properties":{"osm":"way/807336089","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.464114,10.3700867],[-75.4641954,10.3700199],[-75.4642698,10.3699571],[-75.4643082,10.369941]]}},{"type":"Feature","properties":{"osm":"way/807336090","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4634732,10.3706086],[-75.4637182,10.3704119]]}},{"type":"Feature","properties":{"osm":"way/807337611","clase":"via","nombre":"Carrera 122"},"geometry":{"type":"LineString","coordinates":[[-75.4613595,10.3684344],[-75.4612935,10.3685258],[-75.4610512,10.3688187],[-75.4603122,10.3696943]]}},{"type":"Feature","properties":{"osm":"way/807343254","clase":"via","nombre":"Carrera 122"},"geometry":{"type":"LineString","coordinates":[[-75.4629042,10.3665583],[-75.4615946,10.3681194],[-75.4613595,10.3684344]]}},{"type":"Feature","properties":{"osm":"way/807356860","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4665424,10.3669011],[-75.4654684,10.3679654]]}},{"type":"Feature","properties":{"osm":"way/807370698","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4663059,10.3704803],[-75.4661614,10.3705903],[-75.4660591,10.370661]]}},{"type":"Feature","properties":{"osm":"way/807370700","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4675609,10.3701544],[-75.4682878,10.3695825],[-75.4684454,10.3694587],[-75.469138,10.368915],[-75.4692212,10.3688833],[-75.4693057,10.3689071],[-75.4698032,10.3694136],[-75.4698122,10.3694905],[-75.4697595,10.3695883]]}},{"type":"Feature","properties":{"osm":"way/915366155","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4634008,10.3707843],[-75.4627343,10.3713093]]}},{"type":"Feature","properties":{"osm":"way/915366156","clase":"via","nombre":"Carrera 119"},"geometry":{"type":"LineString","coordinates":[[-75.463158,10.3717935],[-75.4638004,10.3712605]]}},{"type":"Feature","properties":{"osm":"way/915366157","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4629448,10.3715507],[-75.4636006,10.3710217]]}},{"type":"Feature","properties":{"osm":"way/915366158","clase":"via","nombre":"Calle 11a"},"geometry":{"type":"LineString","coordinates":[[-75.4648555,10.3725002],[-75.4640184,10.3715167],[-75.4638004,10.3712605],[-75.4636006,10.3710217],[-75.4634008,10.3707843]]}},{"type":"Feature","properties":{"osm":"way/970141508","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4638447,10.3703054],[-75.4637829,10.3703554],[-75.4637182,10.3704119]]}},{"type":"Feature","properties":{"osm":"way/992473926","clase":"parqueadero"},"geometry":{"type":"Polygon","coordinates":[[[-75.4657165,10.3685295],[-75.4652666,10.3689417],[-75.4652043,10.3688644],[-75.4651372,10.368781],[-75.4656025,10.3683992],[-75.4657165,10.3685295]]]}},{"type":"Feature","properties":{"osm":"way/992473927","clase":"edificio","nombre":"Edificio A5"},"geometry":{"type":"Polygon","coordinates":[[[-75.4648012,10.3690735],[-75.4647273,10.3689732],[-75.4644733,10.3691299],[-75.4645301,10.3691911],[-75.4644981,10.3692187],[-75.4644424,10.3692744],[-75.4644919,10.3693405],[-75.4645716,10.369277],[-75.464545,10.3692308],[-75.4646922,10.3691345],[-75.4648012,10.3690735]]]}},{"type":"Feature","properties":{"osm":"way/992473928","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4637885,10.3714476],[-75.46373,10.3713763],[-75.4638085,10.3713173],[-75.4638702,10.3713839],[-75.4637885,10.3714476]]]}},{"type":"Feature","properties":{"osm":"way/992473929","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.463767,10.3714627],[-75.4636899,10.3715294],[-75.463636,10.3714551],[-75.4637161,10.37139],[-75.463767,10.3714627]]]}},{"type":"Feature","properties":{"osm":"way/992473930","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4636668,10.3715385],[-75.4635883,10.3716067],[-75.4635343,10.3715339],[-75.4636114,10.3714673],[-75.4636668,10.3715385]]]}},{"type":"Feature","properties":{"osm":"way/992473931","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4635744,10.3716143],[-75.4634912,10.3716855],[-75.4634357,10.3716203],[-75.4635297,10.3715491],[-75.4635744,10.3716143]]]}},{"type":"Feature","properties":{"osm":"way/992473932","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4634727,10.3717006],[-75.4633926,10.3717643],[-75.4633325,10.3716885],[-75.4634173,10.3716279],[-75.4634727,10.3717006]]]}},{"type":"Feature","properties":{"osm":"way/992473933","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.463371,10.3717809],[-75.4632925,10.3718476],[-75.4632339,10.3717749],[-75.4633264,10.3717128],[-75.463371,10.3717809]]]}},{"type":"Feature","properties":{"osm":"way/992473934","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4632817,10.3718597],[-75.4632262,10.3719037],[-75.4631723,10.371834],[-75.4632309,10.3717946],[-75.4632817,10.3718597]]]}},{"type":"Feature","properties":{"osm":"way/992473935","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4637485,10.3712475],[-75.4636714,10.3713082],[-75.463616,10.3712354],[-75.4636915,10.3711794],[-75.4637485,10.3712475]]]}},{"type":"Feature","properties":{"osm":"way/992473936","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4636607,10.3713157],[-75.4635759,10.3713839],[-75.463522,10.3713142],[-75.4636021,10.371246],[-75.4636607,10.3713157]]]}},{"type":"Feature","properties":{"osm":"way/992473937","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4635636,10.371393],[-75.4635245,10.3714261],[-75.4634758,10.3714673],[-75.4634265,10.3714006],[-75.4635097,10.3713309],[-75.4635636,10.371393]]]}},{"type":"Feature","properties":{"osm":"way/992473938","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4634619,10.3714794],[-75.463371,10.3715521],[-75.4633217,10.3714824],[-75.4634142,10.3714127],[-75.4634619,10.3714794]]]}},{"type":"Feature","properties":{"osm":"way/992473939","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4633587,10.3715582],[-75.4632771,10.3716309],[-75.4632231,10.3715612],[-75.463311,10.3714976],[-75.4633587,10.3715582]]]}},{"type":"Feature","properties":{"osm":"way/992473940","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4632586,10.3716431],[-75.4631785,10.3717067],[-75.4631261,10.3716446],[-75.4632062,10.3715718],[-75.4632586,10.3716431]]]}},{"type":"Feature","properties":{"osm":"way/992473941","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4631631,10.3717218],[-75.4631199,10.3717567],[-75.4630645,10.37169],[-75.4631107,10.3716537],[-75.4631631,10.3717218]]]}},{"type":"Feature","properties":{"osm":"way/992473942","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4635713,10.3712097],[-75.4634866,10.3712763],[-75.4634311,10.3712081],[-75.4635174,10.3711445],[-75.4635713,10.3712097]]]}},{"type":"Feature","properties":{"osm":"way/992473943","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4634666,10.3712885],[-75.4633787,10.3713612],[-75.4633264,10.3712869],[-75.4634142,10.3712233],[-75.4634666,10.3712885]]]}},{"type":"Feature","properties":{"osm":"way/992473944","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4633649,10.3713688],[-75.4633294,10.3714051],[-75.4632801,10.371337],[-75.4633187,10.3713051],[-75.4633649,10.3713688]]]}},{"type":"Feature","properties":{"osm":"way/992473945","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4632755,10.3714536],[-75.4632447,10.3714748],[-75.4631816,10.3714067],[-75.4632185,10.3713839],[-75.4632755,10.3714536]]]}},{"type":"Feature","properties":{"osm":"way/992473946","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4631785,10.371537],[-75.4630845,10.3716006],[-75.4630367,10.37154],[-75.4631184,10.3714642],[-75.4631785,10.371537]]]}},{"type":"Feature","properties":{"osm":"way/992473947","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4630768,10.3716203],[-75.4629951,10.3716749],[-75.4629474,10.3716158],[-75.4630152,10.3715491],[-75.4630768,10.3716203]]]}},{"type":"Feature","properties":{"osm":"way/992473948","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.463542,10.3710036],[-75.463465,10.3710596],[-75.4634096,10.3709899],[-75.4634866,10.3709354],[-75.463542,10.3710036]]]}},{"type":"Feature","properties":{"osm":"way/992473949","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4634542,10.3710763],[-75.463368,10.3711445],[-75.4633156,10.3710718],[-75.4633957,10.3710081],[-75.4634542,10.3710763]]]}},{"type":"Feature","properties":{"osm":"way/992473950","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.463351,10.3711536],[-75.4632647,10.3712248],[-75.4632139,10.37114],[-75.4632971,10.3710824],[-75.463351,10.3711536]]]}},{"type":"Feature","properties":{"osm":"way/992473951","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4632493,10.3712294],[-75.4631708,10.3713021],[-75.4631076,10.3712294],[-75.4632,10.3711627],[-75.4632493,10.3712294]]]}},{"type":"Feature","properties":{"osm":"way/992473952","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4631584,10.3713173],[-75.463066,10.3713824],[-75.4630136,10.3713157],[-75.4631014,10.371246],[-75.4631584,10.3713173]]]}},{"type":"Feature","properties":{"osm":"way/992473953","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4630583,10.371393],[-75.462969,10.3714642],[-75.4629181,10.3713976],[-75.4630059,10.3713309],[-75.4630583,10.371393]]]}},{"type":"Feature","properties":{"osm":"way/992473954","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4629551,10.3714733],[-75.462912,10.3715082],[-75.4628519,10.3714339],[-75.462895,10.3714021],[-75.4629551,10.3714733]]]}},{"type":"Feature","properties":{"osm":"way/992473955","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4636622,10.3711415],[-75.4635883,10.3712021],[-75.4635297,10.3711248],[-75.4636052,10.3710824],[-75.4636622,10.3711415]]]}},{"type":"Feature","properties":{"osm":"way/992473956","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4634527,10.3708854],[-75.4633741,10.370952],[-75.4633264,10.3708808],[-75.4634003,10.3708202],[-75.4634527,10.3708854]]]}},{"type":"Feature","properties":{"osm":"way/992473957","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4633603,10.3709642],[-75.4632755,10.3710339],[-75.4632247,10.3709672],[-75.4633079,10.370896],[-75.4633603,10.3709642]]]}},{"type":"Feature","properties":{"osm":"way/992473958","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4632586,10.3710475],[-75.4632262,10.3710733],[-75.4631692,10.3710021],[-75.4632062,10.3709763],[-75.4632586,10.3710475]]]}},{"type":"Feature","properties":{"osm":"way/992473959","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4632416,10.371099],[-75.4631954,10.3711278],[-75.4631246,10.3710415],[-75.4631631,10.3710157],[-75.4632416,10.371099]]]}},{"type":"Feature","properties":{"osm":"way/992473960","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4631677,10.3711309],[-75.463083,10.371193],[-75.4630244,10.3711263],[-75.4631107,10.3710536],[-75.4631677,10.3711309]]]}},{"type":"Feature","properties":{"osm":"way/992473961","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.463066,10.3712051],[-75.4629844,10.3712733],[-75.4629304,10.3712006],[-75.4630121,10.3711354],[-75.463066,10.3712051]]]}},{"type":"Feature","properties":{"osm":"way/992473962","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4629597,10.3712839],[-75.462875,10.3713551],[-75.4628226,10.3712869],[-75.4629181,10.3712081],[-75.4629597,10.3712839]]]}},{"type":"Feature","properties":{"osm":"way/992473963","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4628627,10.3713673],[-75.4628242,10.3714021],[-75.4627517,10.3713142],[-75.462801,10.3712869],[-75.4628627,10.3713673]]]}},{"type":"Feature","properties":{"osm":"way/1014541655","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4683343,10.3709487],[-75.4675609,10.3701544],[-75.4670258,10.3705864],[-75.4666574,10.370951],[-75.4663713,10.3712341],[-75.4661827,10.3713995],[-75.4658175,10.3717196],[-75.4654942,10.372052],[-75.4654299,10.3721602],[-75.4653233,10.372612]]}},{"type":"Feature","properties":{"osm":"way/1014586835","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4642009,10.3654667],[-75.4636437,10.3658869],[-75.4632582,10.3661638],[-75.4630165,10.3664166],[-75.4629042,10.3665583]]}},{"type":"Feature","properties":{"osm":"way/1015015311","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4640184,10.3715167],[-75.4635295,10.3719016]]}},{"type":"Feature","properties":{"osm":"way/1015015312","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4656232,10.3713992],[-75.4656753,10.3712605],[-75.4656746,10.3712236],[-75.4655157,10.3710402]]}},{"type":"Feature","properties":{"osm":"way/1025254334","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4615931,10.3701108],[-75.4613076,10.3702949],[-75.4609821,10.3705047]]}},{"type":"Feature","properties":{"osm":"way/1070117256","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4649986,10.3688263],[-75.4652046,10.3688081],[-75.4652562,10.3687887],[-75.465686,10.3684321]]}},{"type":"Feature","properties":{"osm":"way/1070117259","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4666574,10.370951],[-75.4672323,10.371614]]}},{"type":"Feature","properties":{"osm":"way/1070117260","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4661827,10.3713995],[-75.4671291,10.3724728]]}},{"type":"Feature","properties":{"osm":"way/1072964718","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4658908,10.37081],[-75.4657036,10.3710171]]}},{"type":"Feature","properties":{"osm":"way/1298255973","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4658543,10.370708],[-75.4658544,10.3707454],[-75.465867,10.3707808],[-75.4658908,10.37081],[-75.4659165,10.3708271],[-75.465946,10.3708367],[-75.465977,10.3708381]]}},{"type":"Feature","properties":{"osm":"way/1298255974","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.465977,10.3708381],[-75.4660126,10.370829],[-75.4660434,10.3708093],[-75.4660662,10.370781],[-75.4660786,10.370747]]}},{"type":"Feature","properties":{"osm":"way/1298255975","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4663203,10.3710338],[-75.4666238,10.370767]]}},{"type":"Feature","properties":{"osm":"way/1298255976","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.466223,10.3711167],[-75.4663203,10.3710338]]}},{"type":"Feature","properties":{"osm":"way/1479984693","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4663203,10.3710338],[-75.466258,10.370961]]}},{"type":"Feature","properties":{"osm":"way/1563809267","clase":"parqueadero"},"geometry":{"type":"Polygon","coordinates":[[[-75.4661059,10.3710528],[-75.465952,10.3708859],[-75.4656792,10.37107],[-75.4658541,10.3712437],[-75.4661059,10.3710528]]]}},{"type":"Feature","properties":{"osm":"way/1563809268","clase":"parqueadero"},"geometry":{"type":"Polygon","coordinates":[[[-75.4665098,10.3706967],[-75.4664363,10.3706124],[-75.4661758,10.3708377],[-75.4662685,10.37091],[-75.4665098,10.3706967]]]}},{"type":"Feature","properties":{"osm":"way/1563809269","clase":"parqueadero"},"geometry":{"type":"Polygon","coordinates":[[[-75.4664136,10.3706124],[-75.466202,10.3707758],[-75.4660359,10.3705591],[-75.4662283,10.370418],[-75.4664136,10.3706124]]]}},{"type":"Feature","properties":{"osm":"way/1563809270","clase":"parqueadero"},"geometry":{"type":"Polygon","coordinates":[[[-75.4679226,10.3695301],[-75.4674594,10.3691001],[-75.4668815,10.3695641],[-75.4668559,10.3695847],[-75.4673859,10.3699994],[-75.4679226,10.3695301]]]}},{"type":"Feature","properties":{"osm":"way/1563809271","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4659017,10.3706362],[-75.46585,10.3705775],[-75.4659036,10.3705307]]}},{"type":"Feature","properties":{"osm":"way/1563809272","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.46585,10.3705775],[-75.4657738,10.370472],[-75.4657842,10.3702425],[-75.4656843,10.3703049],[-75.4655791,10.3705149]]}},{"type":"Feature","properties":{"osm":"way/1563809273","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4656843,10.3703049],[-75.4656895,10.3706406]]}},{"type":"Feature","properties":{"osm":"way/1563809274","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4657842,10.3702425],[-75.4656396,10.3700695],[-75.4654157,10.3701628],[-75.4653987,10.3702571]]}},{"type":"Feature","properties":{"osm":"way/1563809275","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4656396,10.3700695],[-75.4654875,10.369989],[-75.4653128,10.3698965],[-75.4652213,10.3698515],[-75.4651734,10.3698965],[-75.4651994,10.3699487]]}},{"type":"Feature","properties":{"osm":"way/1563809276","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4652213,10.3698515],[-75.4653003,10.3697194],[-75.4653451,10.3696161]]}},{"type":"Feature","properties":{"osm":"way/1563809277","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4653003,10.3697194],[-75.4651307,10.3696539],[-75.4651194,10.3696389],[-75.465022,10.3694773],[-75.4649274,10.3695418],[-75.4649087,10.3695281],[-75.4649935,10.3694544],[-75.4649787,10.3694375],[-75.4648879,10.3695118],[-75.4647114,10.3695036]]}},{"type":"Feature","properties":{"osm":"way/1563809278","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4647114,10.3695036],[-75.4646531,10.3694273],[-75.4647873,10.3692549]]}},{"type":"Feature","properties":{"osm":"way/1563809279","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4646531,10.3694273],[-75.4644768,10.3695487]]}},{"type":"Feature","properties":{"osm":"way/1563809280","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4646531,10.3694273],[-75.4645355,10.3692302],[-75.4646922,10.3691345]]}},{"type":"Feature","properties":{"osm":"way/1563809281","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4646922,10.3691345],[-75.4649611,10.3689487],[-75.4650275,10.3689257],[-75.4652043,10.3688644]]}},{"type":"Feature","properties":{"osm":"way/1563809282","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4649611,10.3689487],[-75.4648643,10.368745],[-75.4649653,10.3686027]]}},{"type":"Feature","properties":{"osm":"way/1563809283","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4656843,10.3703049],[-75.4655728,10.3703516],[-75.4655128,10.3704084]]}},{"type":"Feature","properties":{"osm":"way/1563809284","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4655728,10.3703516],[-75.4654157,10.3701628]]}},{"type":"Feature","properties":{"osm":"way/1563809285","clase":"escalera"},"geometry":{"type":"LineString","coordinates":[[-75.4653987,10.3702571],[-75.4653538,10.3703039]]}},{"type":"Feature","properties":{"osm":"way/1563809286","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4653987,10.3702571],[-75.465332,10.3702587]]}},{"type":"Feature","properties":{"osm":"way/1563809287","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4653538,10.3703039],[-75.4654339,10.3704073],[-75.4653723,10.3704576]]}},{"type":"Feature","properties":{"osm":"way/1563809288","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4654627,10.3704404],[-75.4656669,10.3706911]]}},{"type":"Feature","properties":{"osm":"way/1563809289","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4656895,10.3706406],[-75.4656669,10.3706911]]}},{"type":"Feature","properties":{"osm":"way/1563809290","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4653538,10.3703039],[-75.4652985,10.370337],[-75.4650493,10.3699874],[-75.4651734,10.3698965]]}},{"type":"Feature","properties":{"osm":"way/1563809291","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4651734,10.3698965],[-75.4650937,10.3698708],[-75.4650763,10.36981],[-75.4650353,10.3697688],[-75.4650632,10.3696951],[-75.4651194,10.3696389]]}},{"type":"Feature","properties":{"osm":"way/1563809292","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4656396,10.3700695],[-75.4658406,10.3699526],[-75.4658731,10.3698368],[-75.4659289,10.3699267],[-75.4661582,10.370201],[-75.4668815,10.3695641]]}},{"type":"Feature","properties":{"osm":"way/1563809293","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4658731,10.3698368],[-75.4659913,10.3695129],[-75.4660761,10.3692805]]}},{"type":"Feature","properties":{"osm":"way/1563809294","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4658731,10.3698368],[-75.4658432,10.369779],[-75.4658208,10.3697358],[-75.4657507,10.3696005],[-75.4658486,10.3694794],[-75.4658886,10.3694298],[-75.4659913,10.3695129]]}},{"type":"Feature","properties":{"osm":"way/1563809295","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4657507,10.3696005],[-75.4655454,10.3694292],[-75.4652921,10.369218],[-75.4650275,10.3689257]]}},{"type":"Feature","properties":{"osm":"way/1563809296","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4658486,10.3694794],[-75.4657627,10.3694187]]}},{"type":"Feature","properties":{"osm":"way/1563809297","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4658886,10.3694298],[-75.4660761,10.3692805]]}},{"type":"Feature","properties":{"osm":"way/1563809298","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4658886,10.3694298],[-75.465867,10.3693093]]}},{"type":"Feature","properties":{"osm":"way/1563809299","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4660761,10.3692805],[-75.466214,10.3691235],[-75.4668815,10.3695641]]}},{"type":"Feature","properties":{"osm":"way/1563809300","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4655454,10.3694292],[-75.4655663,10.3693887],[-75.4654966,10.3693262],[-75.4655942,10.369221]]}},{"type":"Feature","properties":{"osm":"way/1563809301","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4659036,10.3705307],[-75.4659113,10.3704964]]}},{"type":"Feature","properties":{"osm":"way/1563809302","clase":"edificio","nombre":"Edificio A2"},"geometry":{"type":"Polygon","coordinates":[[[-75.4657534,10.3708943],[-75.4657574,10.3706642],[-75.4654949,10.3706528],[-75.4654952,10.3708954],[-75.4657534,10.3708943]]]}},{"type":"Feature","properties":{"osm":"way/1563809303","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4655934,10.3705865],[-75.4654573,10.3706791],[-75.4651113,10.3702515],[-75.4652622,10.3701674],[-75.4654514,10.3704068],[-75.4655934,10.3705865]]]}},{"type":"Feature","properties":{"osm":"way/1563809304","clase":"edificio","nombre":"Salas de estudio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4655514,10.3705965],[-75.4654589,10.3706554],[-75.4653329,10.3705093],[-75.4654317,10.3704381],[-75.4655514,10.3705965]]]}},{"type":"Feature","properties":{"osm":"way/1563809305","clase":"edificio","nombre":"biblioteca"},"geometry":{"type":"Polygon","coordinates":[[[-75.4654084,10.3704091],[-75.4653112,10.3704825],[-75.4651525,10.3702599],[-75.4652575,10.3702003],[-75.4654084,10.3704091]]]}},{"type":"Feature","properties":{"osm":"way/1563809306","clase":"parqueadero"},"geometry":{"type":"Polygon","coordinates":[[[-75.4657275,10.3699066],[-75.4654057,10.3697891],[-75.4654858,10.3696328],[-75.4656895,10.369741],[-75.4657275,10.3699066]]]}},{"type":"Feature","properties":{"osm":"way/1563809307","clase":"parqueadero"},"geometry":{"type":"Polygon","coordinates":[[[-75.4657778,10.3697584],[-75.4658208,10.3697358],[-75.4656746,10.3695126],[-75.4656311,10.3695567],[-75.4657778,10.3697584]]]}},{"type":"Feature","properties":{"osm":"way/1563809308","clase":"edificio","nombre":"ZONA T"},"geometry":{"type":"Polygon","coordinates":[[[-75.4657302,10.3691213],[-75.4654994,10.3693497],[-75.4653827,10.3692668],[-75.4656108,10.3690144],[-75.4657302,10.3691213]]]}},{"type":"Feature","properties":{"osm":"way/1563809309","clase":"edificio","nombre":"Edificio A4"},"geometry":{"type":"Polygon","coordinates":[[[-75.4646953,10.3695484],[-75.4646238,10.3694481],[-75.4644947,10.3695371],[-75.4643851,10.3696126],[-75.4644565,10.3697129],[-75.4646953,10.3695484]]]}},{"type":"Feature","properties":{"osm":"way/1563809310","clase":"plazoleta","nombre":"Tienda"},"geometry":{"type":"Polygon","coordinates":[[[-75.4661316,10.3692719],[-75.4661804,10.3691104],[-75.4660301,10.3692336],[-75.4660955,10.3693116],[-75.4661316,10.3692719]]]}},{"type":"Feature","properties":{"osm":"way/1563809311","clase":"parqueadero"},"geometry":{"type":"Polygon","coordinates":[[[-75.4651993,10.368518],[-75.4650644,10.3683604],[-75.464848,10.3685581],[-75.4650026,10.3686977],[-75.4651993,10.368518]]]}},{"type":"Feature","properties":{"osm":"way/1563809312","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4651994,10.3699487],[-75.4651425,10.370029],[-75.4652468,10.3701443],[-75.4651409,10.3702088],[-75.4651587,10.3702334]]}},{"type":"Feature","properties":{"osm":"way/1563809313","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4651409,10.3702088],[-75.4650505,10.370254]]}},{"type":"Feature","properties":{"osm":"way/1563809314","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4652468,10.3701443],[-75.4653366,10.3700911],[-75.4654875,10.369989]]}},{"type":"Feature","properties":{"osm":"way/1563809315","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4653366,10.3700911],[-75.4651994,10.3699487]]}},{"type":"Feature","properties":{"osm":"way/1563809316","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4652468,10.3701443],[-75.4653285,10.3702183],[-75.4654157,10.3701628]]}},{"type":"Feature","properties":{"osm":"way/1563809317","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4656543,10.3702707],[-75.4655734,10.3701317],[-75.4653538,10.3703039],[-75.4654514,10.3704068],[-75.4656543,10.3702707]]]}},{"type":"Feature","properties":{"osm":"way/1563809318","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4658943,10.3701578],[-75.4659296,10.3701303],[-75.4659222,10.3700912],[-75.4658531,10.3700202],[-75.4657853,10.3700159],[-75.4657235,10.3700477],[-75.4657029,10.3700941],[-75.4657441,10.3701448],[-75.4658943,10.3701578]]]}},{"type":"Feature","properties":{"osm":"way/1563809319","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4661004,10.3703849],[-75.4660822,10.3703036],[-75.466026,10.3702511],[-75.4659606,10.3702325],[-75.465905,10.3702395],[-75.4658379,10.3702742],[-75.4657929,10.3703401],[-75.4657886,10.3703813],[-75.4657982,10.3704109],[-75.4658108,10.37045],[-75.4658252,10.3704801],[-75.4658528,10.3705087],[-75.4659415,10.3705393],[-75.4659994,10.3705301],[-75.4660509,10.3704884],[-75.4660857,10.3704458],[-75.4661004,10.3703849]]]}},{"type":"Feature","properties":{"osm":"way/1563809320","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4659017,10.3706362],[-75.4662016,10.3710051]]}},{"type":"Feature","properties":{"osm":"way/1563809321","clase":"escalera"},"geometry":{"type":"LineString","coordinates":[[-75.4655128,10.3704084],[-75.4654627,10.3704404]]}},{"type":"Feature","properties":{"osm":"way/1563809322","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4654627,10.3704404],[-75.4654339,10.3704073]]}}]} \ No newline at end of file diff --git a/apps/admin_flutter/assets/logo_utb.png b/apps/admin_flutter/assets/logo_utb.png new file mode 100644 index 0000000..193bb93 Binary files /dev/null and b/apps/admin_flutter/assets/logo_utb.png differ diff --git a/apps/admin_flutter/lib/core/auth/auth_state.dart b/apps/admin_flutter/lib/core/auth/auth_state.dart new file mode 100644 index 0000000..4b1ae56 --- /dev/null +++ b/apps/admin_flutter/lib/core/auth/auth_state.dart @@ -0,0 +1,161 @@ +import 'dart:async'; + +import 'package:flutter/foundation.dart'; +// supabase_flutter también define una clase AuthState; se oculta la suya. +import 'package:supabase_flutter/supabase_flutter.dart' hide AuthState; + +import '../../data/api/api_client.dart'; +import '../../data/repositories/repositories.dart'; +import '../config.dart'; + +/// Estado de sesión del panel. +/// +/// - Modo real (USE_MOCK=false y SUPABASE_ANON_KEY definida): inicia sesión con +/// Supabase Auth (correo y contraseña). Después pregunta a la API si la +/// persona tiene rol admin en `perfiles`; si no, cierra la sesión. +/// - Modo maqueta: acepta cualquier contraseña si el correo es @utb.edu.co. +class AuthState extends ChangeNotifier { + static const String dominio = '@utb.edu.co'; + + bool _signedIn = false; + String _nombre = 'Administrador'; + String _correo = ''; + StreamSubscription? _suscripcion; + + bool get signedIn => _signedIn; + String get nombre => _nombre; + String get correo => _correo; + + GoTrueClient get _auth => Supabase.instance.client.auth; + + /// Se llama una vez al arrancar, después de Supabase.initialize. Si el + /// navegador ya tenía una sesión guardada, entra directo. + void restaurar() { + if (!AppConfig.loginReal) return; + final usuario = _auth.currentUser; + if (_auth.currentSession != null && usuario?.email != null) { + _entrar(usuario!.email!); + } + // Si Supabase cierra la sesión (token vencido sin renovar, cierre en otra + // pestaña), el panel vuelve al login. + _suscripcion = _auth.onAuthStateChange.listen((cambio) { + if (cambio.event == AuthChangeEvent.signedOut && _signedIn) { + _signedIn = false; + notifyListeners(); + } + }); + } + + /// Devuelve un mensaje de error, o null si el ingreso fue correcto. + Future iniciarConCorreo(String correo, String clave) async { + final c = correo.trim().toLowerCase(); + if (!c.endsWith(dominio)) { + return 'Tu cuenta no tiene permisos de administrador'; + } + if (clave.isEmpty) return 'Credenciales incorrectas'; + + if (!AppConfig.loginReal) { + await Future.delayed(const Duration(milliseconds: 500)); + _entrar(c); + return null; + } + + try { + await _auth.signInWithPassword(email: c, password: clave); + } on AuthException catch (e) { + final msg = e.message.toLowerCase(); + if (msg.contains('invalid login credentials')) { + return 'Correo o contraseña incorrectos'; + } + if (msg.contains('email not confirmed')) { + return 'Tu correo aún no está confirmado en Supabase'; + } + return 'No se pudo iniciar sesión: ${e.message}'; + } catch (_) { + return 'No se pudo conectar con Supabase. Revisa tu conexión.'; + } + + final error = await _verificarAdmin(); + if (error != null) { + await _auth.signOut(); + return error; + } + _entrar(c); + return null; + } + + /// La API decide si la persona es admin (tabla perfiles): 403 = no lo es. + Future _verificarAdmin() async { + try { + await apiClient.get('/api/admin/administradores'); + return null; + } on ApiException catch (e) { + if (e.statusCode == 403) { + return 'Tu cuenta no tiene permisos de administrador'; + } + if (e.statusCode == 401) { + return 'El servidor no aceptó tu sesión. Intenta de nuevo.'; + } + return e.message; + } + } + + void cerrarSesion() { + _signedIn = false; + notifyListeners(); + if (AppConfig.loginReal) unawaited(_auth.signOut()); + } + + /// Cierra la sesión en todos los dispositivos (revoca los tokens de + /// renovación en Supabase), incluida esta. + Future cerrarSesionGlobal() async { + if (AppConfig.loginReal) { + try { + await _auth.signOut(scope: SignOutScope.global); + } catch (_) { + // Sin red igual se cierra la sesión local. + } + } + _signedIn = false; + notifyListeners(); + } + + /// Cambia la contraseña de la cuenta actual. Devuelve un mensaje de error, + /// o null si se cambió. + Future cambiarClave(String nueva) async { + if (!AppConfig.loginReal) return 'No disponible sin inicio de sesión real'; + try { + await _auth.updateUser(UserAttributes(password: nueva)); + return null; + } on AuthException catch (e) { + final msg = e.message.toLowerCase(); + if (msg.contains('different from the old')) { + return 'La nueva contraseña debe ser distinta de la actual'; + } + if (msg.contains('weak') || msg.contains('at least')) { + return 'Contraseña muy débil: ${e.message}'; + } + return 'No se pudo cambiar la contraseña: ${e.message}'; + } catch (_) { + return 'No se pudo conectar con Supabase. Revisa tu conexión.'; + } + } + + void _entrar(String correo) { + final usuario = correo.split('@').first; + _correo = correo; + _nombre = usuario.isEmpty + ? 'Administrador' + : usuario[0].toUpperCase() + usuario.substring(1); + _signedIn = true; + notifyListeners(); + } + + @override + void dispose() { + _suscripcion?.cancel(); + super.dispose(); + } +} + +final AuthState authState = AuthState(); diff --git a/apps/admin_flutter/lib/core/config.dart b/apps/admin_flutter/lib/core/config.dart new file mode 100644 index 0000000..4112d1d --- /dev/null +++ b/apps/admin_flutter/lib/core/config.dart @@ -0,0 +1,48 @@ +/// Configuración del panel. Los valores se pueden cambiar al ejecutar con +/// `--dart-define`, sin tocar el código. Ejemplos: +/// +/// flutter run -d chrome (datos de ejemplo) +/// flutter run -d chrome --dart-define=USE_MOCK=false (backend real) +class AppConfig { + const AppConfig._(); + + /// Dirección del backend .NET. El panel de Next.js lo usa en + /// http://localhost:5209 (ver next.config.ts). + static const String apiBaseUrl = String.fromEnvironment( + 'API_BASE_URL', + defaultValue: 'http://localhost:5209', + ); + + /// true = datos de ejemplo en memoria (no necesita backend encendido). + static const bool useMockData = bool.fromEnvironment( + 'USE_MOCK', + defaultValue: true, + ); + + /// El backend ya acepta lat/lng, idioma, subtítulos y texto alternativo + /// (tareas 1, 4 y 5 de docs/tareas-backend.md, en master desde el + /// 12/11/2026). Se puede apagar con `--dart-define=BACKEND_CAMPOS_NUEVOS=false` + /// para probar contra un backend viejo. + static const bool backendCamposNuevos = bool.fromEnvironment( + 'BACKEND_CAMPOS_NUEVOS', + defaultValue: true, + ); + + /// Lugar (campus) que administra el panel. El panel de Next.js usa el 1. + static const int lugarId = int.fromEnvironment('LUGAR_ID', defaultValue: 1); + + /// Proyecto de Supabase del equipo (el mismo de services/api). + static const String supabaseUrl = String.fromEnvironment( + 'SUPABASE_URL', + defaultValue: 'https://qjnusmpwznaegeburldo.supabase.co', + ); + + /// Clave pública (publishable / anon) de Supabase. No es secreta, pero se + /// pasa al ejecutar para no dejarla en el repo: + /// --dart-define=SUPABASE_ANON_KEY=sb_publishable_... + static const String supabaseAnonKey = + String.fromEnvironment('SUPABASE_ANON_KEY'); + + /// Login real con Supabase: solo contra el backend real y con clave. + static bool get loginReal => !useMockData && supabaseAnonKey.isNotEmpty; +} diff --git a/apps/admin_flutter/lib/core/router/app_router.dart b/apps/admin_flutter/lib/core/router/app_router.dart new file mode 100644 index 0000000..b7a495d --- /dev/null +++ b/apps/admin_flutter/lib/core/router/app_router.dart @@ -0,0 +1,85 @@ +import 'package:go_router/go_router.dart'; + +import '../../ui/auth/login_screen.dart'; +import '../../ui/dashboard/dashboard_screen.dart'; +import '../../ui/layout/admin_layout.dart'; +import '../../ui/metrics/metrics_screen.dart'; +import '../../ui/multimedia/multimedia_screen.dart'; +import '../../ui/pois/poi_form_screen.dart'; +import '../../ui/pois/pois_list_screen.dart'; +import '../../ui/settings/settings_screens.dart'; +import '../auth/auth_state.dart'; + +/// Rutas del panel (guía, sección 2). Todas, salvo /login, exigen sesión. +final GoRouter appRouter = GoRouter( + initialLocation: '/inicio', + refreshListenable: authState, + redirect: (context, state) { + final enLogin = state.uri.path == '/login'; + if (!authState.signedIn) return enLogin ? null : '/login'; + if (enLogin) return '/inicio'; + return null; + }, + routes: [ + GoRoute(path: '/login', builder: (context, state) => const LoginScreen()), + ShellRoute( + builder: (context, state, child) => + AdminLayout(location: state.uri.path, child: child), + routes: [ + GoRoute( + path: '/inicio', + builder: (context, state) => const DashboardScreen(), + ), + GoRoute( + path: '/pois', + builder: (context, state) => PoisListScreen( + estadoInicial: state.uri.queryParameters['estado'], + ), + ), + GoRoute( + path: '/pois/nuevo', + builder: (context, state) => const PoiFormScreen(), + ), + GoRoute( + path: '/pois/:id/editar', + builder: (context, state) => PoiFormScreen( + poiId: int.tryParse(state.pathParameters['id'] ?? ''), + ), + ), + GoRoute( + path: '/multimedia', + builder: (context, state) => MultimediaScreen( + poiIdInicial: int.tryParse(state.uri.queryParameters['poi'] ?? ''), + tipoInicial: state.uri.queryParameters['tipo'], + ), + ), + GoRoute( + path: '/metricas', + builder: (context, state) => const MetricsScreen(), + ), + GoRoute( + path: '/configuracion/cuenta', + builder: (context, state) => + const ConfigShell(activa: 0, child: CuentaTab()), + ), + GoRoute( + path: '/configuracion/administradores', + builder: (context, state) => + const ConfigShell(activa: 1, child: AdministradoresTab()), + ), + // «Apariencia del tour» (AparienciaTab) queda fuera del panel: no + // hay backend que la guarde ni la app la lee. Decisión del equipo + // (15/11/2026). El código sigue en settings_screens.dart. + GoRoute( + path: '/configuracion/apariencia', + redirect: (context, state) => '/configuracion/cuenta', + ), + GoRoute( + path: '/configuracion/seguridad', + builder: (context, state) => + const ConfigShell(activa: 2, child: SeguridadTab()), + ), + ], + ), + ], +); diff --git a/apps/admin_flutter/lib/core/theme/app_theme.dart b/apps/admin_flutter/lib/core/theme/app_theme.dart new file mode 100644 index 0000000..2d029d8 --- /dev/null +++ b/apps/admin_flutter/lib/core/theme/app_theme.dart @@ -0,0 +1,176 @@ +import 'package:flutter/material.dart'; + +/// Tokens de diseño de la guía (sección 3.2). Modo oscuro estricto. +class AppColors { + const AppColors._(); + + static const background = Color(0xFF0B0D14); + static const card = Color(0xFF151821); + static const border = Color(0xFF232838); + static const primary = Color(0xFF2347D6); + static const success = Color(0xFF3DDC84); + static const warning = Color(0xFFF5A524); + static const danger = Color(0xFFE5484D); + static const textPrimary = Color(0xFFFFFFFF); + static const textSecondary = Color(0xFF8B93A7); + + // Extras de la maqueta + static const navy = Color(0xFF0F1B4D); + static const purple = Color(0xFF8B5CF6); + + /// Categorías que hoy usa el contenido del campus (pois_campus.json de la + /// app). Son texto libre en la API: una categoría nueva usa gris. + static const categoriasCampus = [ + 'Academico', + 'Administrativo', + 'Bienestar', + 'Cultura', + 'Deporte', + 'Recursos', + 'Servicios', + ]; + + /// Color por categoría. + static Color categoria(String? nombre) { + switch (nombre?.trim().toLowerCase()) { + case 'academico': + case 'académico': + return primary; + case 'recursos': + return const Color(0xFF22B8CF); + case 'bienestar': + return success; + case 'cultura': + return purple; + case 'deporte': + return warning; + case 'servicios': + return const Color(0xFFEC6CB9); + case 'administrativo': + return const Color(0xFFA3A8B8); + default: + return textSecondary; + } + } +} + +class AppTheme { + const AppTheme._(); + + static ThemeData dark() { + final base = ThemeData.dark(useMaterial3: true); + + const scheme = ColorScheme.dark( + primary: AppColors.primary, + onPrimary: Colors.white, + secondary: AppColors.success, + error: AppColors.danger, + surface: AppColors.card, + onSurface: Colors.white, + ); + + OutlineInputBorder inputBorder(Color color) => OutlineInputBorder( + borderRadius: BorderRadius.circular(8), + borderSide: BorderSide(color: color), + ); + + final buttonShape = RoundedRectangleBorder( + borderRadius: BorderRadius.circular(8), + ); + + return base.copyWith( + colorScheme: scheme, + scaffoldBackgroundColor: AppColors.background, + canvasColor: AppColors.card, + textTheme: base.textTheme.apply( + bodyColor: Colors.white, + displayColor: Colors.white, + ), + cardTheme: CardThemeData( + color: AppColors.card, + elevation: 0, + margin: EdgeInsets.zero, + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.circular(14), + side: const BorderSide(color: AppColors.border), + ), + ), + dividerTheme: const DividerThemeData( + color: AppColors.border, + thickness: 1, + space: 1, + ), + inputDecorationTheme: InputDecorationTheme( + filled: true, + fillColor: AppColors.background, + contentPadding: + const EdgeInsets.symmetric(horizontal: 14, vertical: 14), + hintStyle: const TextStyle(color: AppColors.textSecondary), + labelStyle: const TextStyle(color: AppColors.textSecondary), + helperStyle: const TextStyle(color: AppColors.textSecondary), + border: inputBorder(AppColors.border), + enabledBorder: inputBorder(AppColors.border), + focusedBorder: inputBorder(AppColors.primary), + errorBorder: inputBorder(AppColors.danger), + focusedErrorBorder: inputBorder(AppColors.danger), + disabledBorder: inputBorder(AppColors.border), + ), + elevatedButtonTheme: ElevatedButtonThemeData( + style: ElevatedButton.styleFrom( + backgroundColor: AppColors.primary, + foregroundColor: Colors.white, + disabledBackgroundColor: AppColors.border, + disabledForegroundColor: AppColors.textSecondary, + minimumSize: const Size(0, 44), + padding: const EdgeInsets.symmetric(horizontal: 18), + shape: buttonShape, + textStyle: const TextStyle(fontWeight: FontWeight.w600), + ), + ), + filledButtonTheme: FilledButtonThemeData( + style: FilledButton.styleFrom( + backgroundColor: AppColors.primary, + foregroundColor: Colors.white, + minimumSize: const Size(0, 44), + padding: const EdgeInsets.symmetric(horizontal: 18), + shape: buttonShape, + textStyle: const TextStyle(fontWeight: FontWeight.w600), + ), + ), + outlinedButtonTheme: OutlinedButtonThemeData( + style: OutlinedButton.styleFrom( + foregroundColor: Colors.white, + side: const BorderSide(color: AppColors.primary), + minimumSize: const Size(0, 44), + padding: const EdgeInsets.symmetric(horizontal: 18), + shape: buttonShape, + textStyle: const TextStyle(fontWeight: FontWeight.w600), + ), + ), + textButtonTheme: TextButtonThemeData( + style: TextButton.styleFrom(foregroundColor: AppColors.primary), + ), + dialogTheme: DialogThemeData( + backgroundColor: AppColors.card, + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.circular(14), + side: const BorderSide(color: AppColors.border), + ), + ), + snackBarTheme: const SnackBarThemeData( + behavior: SnackBarBehavior.floating, + backgroundColor: AppColors.card, + contentTextStyle: TextStyle(color: Colors.white), + ), + switchTheme: SwitchThemeData( + thumbColor: WidgetStateProperty.all(Colors.white), + trackColor: WidgetStateProperty.resolveWith( + (states) => states.contains(WidgetState.selected) + ? AppColors.success + : AppColors.border, + ), + trackOutlineColor: WidgetStateProperty.all(Colors.transparent), + ), + ); + } +} diff --git a/apps/admin_flutter/lib/data/api/api_client.dart b/apps/admin_flutter/lib/data/api/api_client.dart new file mode 100644 index 0000000..1b63bfe --- /dev/null +++ b/apps/admin_flutter/lib/data/api/api_client.dart @@ -0,0 +1,144 @@ +import 'dart:convert'; +import 'dart:typed_data'; + +import 'package:http/http.dart' as http; + +import '../../core/config.dart'; + +class ApiException implements Exception { + ApiException(this.message, {this.statusCode}); + + final String message; + final int? statusCode; + + @override + String toString() => statusCode == null ? message : '$statusCode: $message'; +} + +/// Un archivo para mandar en un formulario multipart. +class ArchivoSubida { + const ArchivoSubida(this.campo, this.bytes, this.nombre); + + /// Nombre del campo en el formulario (p. ej. `Archivo`, `Subtitulos`). + final String campo; + final Uint8List bytes; + final String nombre; +} + +/// Devuelve el token de sesión (por ejemplo de Firebase Auth) o null. +typedef TokenProvider = Future Function(); + +/// Cliente HTTP mínimo para el backend .NET. +class ApiClient { + ApiClient({http.Client? client, String? baseUrl, this.tokenProvider}) + : _client = client ?? http.Client(), + _baseUrl = baseUrl ?? AppConfig.apiBaseUrl; + + final http.Client _client; + final String _baseUrl; + + /// Si se asigna, se envía como `Authorization: Bearer `. + final TokenProvider? tokenProvider; + + Uri _uri(String path, [Map? query]) => + Uri.parse('$_baseUrl$path').replace(queryParameters: query); + + Future> _headers({bool json = true}) async { + final headers = {'Accept': 'application/json'}; + if (json) headers['Content-Type'] = 'application/json'; + final token = await tokenProvider?.call(); + if (token != null && token.isNotEmpty) { + headers['Authorization'] = 'Bearer $token'; + } + return headers; + } + + Future _send(Future Function() call) async { + try { + final res = await call(); + if (res.statusCode < 200 || res.statusCode >= 300) { + throw ApiException(_errorMessage(res), statusCode: res.statusCode); + } + if (res.body.isEmpty) return null; + return jsonDecode(utf8.decode(res.bodyBytes)); + } on ApiException { + rethrow; + } on http.ClientException catch (e) { + // En Flutter web, un bloqueo por CORS aparece como "Failed to fetch". + throw ApiException( + 'No se pudo conectar con el servidor. Verifica que el backend esté ' + 'encendido y que permita CORS para este origen. (${e.message})', + ); + } + } + + String _errorMessage(http.Response res) { + try { + final body = jsonDecode(utf8.decode(res.bodyBytes)); + if (body is Map) { + final msg = body['detail'] ?? body['title'] ?? body['message']; + if (msg is String && msg.isNotEmpty) return msg; + } + } catch (_) { + // El cuerpo no es JSON; se usa el texto estándar. + } + return res.reasonPhrase ?? 'Error ${res.statusCode}'; + } + + Future get(String path) => + _send(() async => _client.get(_uri(path), headers: await _headers())); + + Future post(String path, Object? body) => _send(() async => + _client.post(_uri(path), + headers: await _headers(), body: jsonEncode(body))); + + Future put(String path, Object? body) => _send(() async => + _client.put(_uri(path), + headers: await _headers(), body: jsonEncode(body))); + + Future delete(String path) async { + await _send( + () async => _client.delete(_uri(path), headers: await _headers())); + } + + /// POST multipart/form-data con varios campos y archivos. Devuelve el JSON + /// de la respuesta (o null si viene vacía). + Future postMultipart( + String path, { + Map fields = const {}, + List files = const [], + }) => + _send(() async { + final req = http.MultipartRequest('POST', _uri(path)); + req.headers.addAll(await _headers(json: false)); + req.fields.addAll(fields); + for (final f in files) { + req.files.add( + http.MultipartFile.fromBytes(f.campo, f.bytes, filename: f.nombre), + ); + } + return http.Response.fromStream(await _client.send(req)); + }); + + /// Sube un archivo como multipart/form-data con los campos que define la + /// API: `Archivo` (binario) y `Carpeta` (opcional). + Future uploadFile( + String path, { + required Uint8List bytes, + required String filename, + String? carpeta, + Map? query, + }) async { + await _send(() async { + final req = http.MultipartRequest('POST', _uri(path, query)); + req.headers.addAll(await _headers(json: false)); + req.files.add( + http.MultipartFile.fromBytes('Archivo', bytes, filename: filename), + ); + if (carpeta != null && carpeta.isNotEmpty) { + req.fields['Carpeta'] = carpeta; + } + return http.Response.fromStream(await _client.send(req)); + }); + } +} diff --git a/apps/admin_flutter/lib/data/models/enums.dart b/apps/admin_flutter/lib/data/models/enums.dart new file mode 100644 index 0000000..9b9789d --- /dev/null +++ b/apps/admin_flutter/lib/data/models/enums.dart @@ -0,0 +1,33 @@ +// Enumeraciones del contrato de la API (packages/contracts/openapi.yaml). +// El backend las envía como texto en minúsculas. + +enum Audiencia { + externo, + estudiante, + docente; + + static Audiencia? tryParse(Object? value) { + if (value is! String) return null; + final v = value.trim().toLowerCase(); + for (final a in Audiencia.values) { + if (a.name == v) return a; + } + return null; + } +} + +enum TipoMedio { + imagen, + video, + audio; + + static TipoMedio tryParse(Object? value) { + if (value is String) { + final v = value.trim().toLowerCase(); + for (final t in TipoMedio.values) { + if (t.name == v) return t; + } + } + return TipoMedio.imagen; + } +} diff --git a/apps/admin_flutter/lib/data/models/escena.dart b/apps/admin_flutter/lib/data/models/escena.dart new file mode 100644 index 0000000..8933839 --- /dev/null +++ b/apps/admin_flutter/lib/data/models/escena.dart @@ -0,0 +1,68 @@ +double? _toDouble(Object? v) => (v as num?)?.toDouble(); +int? _toInt(Object? v) => (v as num?)?.toInt(); + +/// Escena 360° de un lugar, opcionalmente ligada a un POI. +/// Respuestas: snake_case (EscenaDto). Peticiones: camelCase. +class Escena { + const Escena({ + required this.id, + required this.lugarId, + this.poiId, + this.nombre, + this.imagenUrl, + this.imagenUrlBaja, + this.esEscenaPrincipal = false, + this.orden = 0, + this.vistaInicialYaw, + this.vistaInicialPitch, + this.textoAlt, + }); + + final int id; + final int lugarId; + final int? poiId; + final String? nombre; + final String? imagenUrl; + final String? imagenUrlBaja; + final bool esEscenaPrincipal; + final int orden; + final double? vistaInicialYaw; + final double? vistaInicialPitch; + + /// Descripción de lo que se ve, para quien no ve la panorámica. El backend + /// aún no la envía ni la guarda (tarea pendiente); solo se lee. + final String? textoAlt; + + factory Escena.fromJson(Map j) => Escena( + id: _toInt(j['id']) ?? 0, + lugarId: _toInt(j['lugar_id']) ?? 0, + poiId: _toInt(j['poi_id']), + nombre: j['nombre'] as String?, + imagenUrl: j['imagen_url'] as String?, + imagenUrlBaja: j['imagen_url_baja'] as String?, + esEscenaPrincipal: (j['es_escena_principal'] as bool?) ?? false, + orden: _toInt(j['orden']) ?? 0, + vistaInicialYaw: _toDouble(j['vista_inicial_yaw']), + vistaInicialPitch: _toDouble(j['vista_inicial_pitch']), + textoAlt: j['texto_alt'] as String?, + ); + + Map _body() => { + 'poiId': poiId, + 'nombre': nombre, + 'imagenUrl': imagenUrl, + 'imagenUrlBaja': imagenUrlBaja, + 'esEscenaPrincipal': esEscenaPrincipal, + 'orden': orden, + 'vistaInicialYaw': vistaInicialYaw, + 'vistaInicialPitch': vistaInicialPitch, + // Backend tarea 5: hoy la API ignora `textoAlt` al escribir. + 'textoAlt': textoAlt, + }; + + /// Cuerpo de POST /api/admin/escenas (CrearEscenaRequest). + Map toCreateJson() => {'lugarId': lugarId, ..._body()}; + + /// Cuerpo de PUT /api/admin/escenas/{id} (ActualizarEscenaRequest). + Map toUpdateJson() => _body(); +} diff --git a/apps/admin_flutter/lib/data/models/idiomas.dart b/apps/admin_flutter/lib/data/models/idiomas.dart new file mode 100644 index 0000000..b12185a --- /dev/null +++ b/apps/admin_flutter/lib/data/models/idiomas.dart @@ -0,0 +1,31 @@ +/// Idiomas del contenido, con su nombre escrito en ese idioma. Son los 11 de +/// la interfaz de la app móvil más la Lengua de Señas Colombiana (`csn`), que +/// solo aplica a video. Etiquetas BCP 47, como las guarda `medios.idioma`. +const Map idiomasContenido = { + 'es': 'Español', + 'en': 'English', + 'pt-BR': 'Português (Brasil)', + 'pt-PT': 'Português (Portugal)', + 'fr': 'Français', + 'it': 'Italiano', + 'de': 'Deutsch', + 'tr': 'Türkçe', + 'ko': '한국어', + 'ja': '日本語', + 'zh': '中文(简体)', + 'csn': 'Lengua de Señas Colombiana', +}; + +/// Idioma original del contenido: lo que no tiene etiqueta se toma como español. +const String idiomaOriginal = 'es'; + +/// Nombre legible de una etiqueta. Nula se toma como el idioma original; una +/// etiqueta desconocida se devuelve en mayúsculas. +String nombreDeIdioma(String? etiqueta) { + final tag = (etiqueta == null || etiqueta.isEmpty) + ? idiomaOriginal + : etiqueta.replaceAll('_', '-'); + if (idiomasContenido.containsKey(tag)) return idiomasContenido[tag]!; + if (tag.toLowerCase() == 'pt') return idiomasContenido['pt-BR']!; + return tag.toUpperCase(); +} diff --git a/apps/admin_flutter/lib/data/models/medio.dart b/apps/admin_flutter/lib/data/models/medio.dart new file mode 100644 index 0000000..3d23637 --- /dev/null +++ b/apps/admin_flutter/lib/data/models/medio.dart @@ -0,0 +1,62 @@ +import 'enums.dart'; + +int? _toInt(Object? v) => (v as num?)?.toInt(); + +/// Archivo multimedia de un POI (imagen, video o audio). +/// Respuestas: snake_case (MedioDto). Peticiones: camelCase. +class Medio { + const Medio({ + required this.id, + required this.poiId, + required this.tipo, + this.url, + this.orden = 0, + this.duracionSeg, + this.textoAlt, + this.subtitulosUrl, + this.idioma, + }); + + final int id; + final int poiId; + final TipoMedio tipo; + final String? url; + final int orden; + final int? duracionSeg; + final String? textoAlt; + final String? subtitulosUrl; + + /// Etiqueta BCP 47 del idioma hablado o señado (`es`, `en`, `pt-BR`, `csn`). + /// Nulo = idioma original (español). La API aún no lo acepta al escribir, así + /// que solo se lee. + final String? idioma; + + factory Medio.fromJson(Map j) => Medio( + id: _toInt(j['id']) ?? 0, + poiId: _toInt(j['poi_id']) ?? 0, + tipo: TipoMedio.tryParse(j['tipo']), + url: j['url'] as String?, + orden: _toInt(j['orden']) ?? 0, + duracionSeg: _toInt(j['duracion_seg']), + textoAlt: j['texto_alt'] as String?, + subtitulosUrl: j['subtitulos_url'] as String?, + idioma: j['idioma'] as String?, + ); + + Map _body() => { + 'tipo': tipo.name, + 'url': url, + 'orden': orden, + 'duracionSeg': duracionSeg, + 'textoAlt': textoAlt, + 'subtitulosUrl': subtitulosUrl, + // Backend tarea 4: hoy la API ignora `idioma` al escribir. + 'idioma': idioma, + }; + + /// Cuerpo de POST /api/admin/medios (CrearMedioRequest). + Map toCreateJson() => {'poiId': poiId, ..._body()}; + + /// Cuerpo de PUT /api/admin/medios/{id} (ActualizarMedioRequest). + Map toUpdateJson() => _body(); +} diff --git a/apps/admin_flutter/lib/data/models/poi.dart b/apps/admin_flutter/lib/data/models/poi.dart new file mode 100644 index 0000000..ecb1073 --- /dev/null +++ b/apps/admin_flutter/lib/data/models/poi.dart @@ -0,0 +1,127 @@ +import 'enums.dart'; +import 'medio.dart'; + +double? _toDouble(Object? v) => (v as num?)?.toDouble(); +int? _toInt(Object? v) => (v as num?)?.toInt(); + +/// Punto de interés. Respuestas de la API: snake_case (PoiDto). +/// Peticiones de crear/editar: camelCase (CrearPoiRequest / ActualizarPoiRequest). +class Poi { + const Poi({ + required this.id, + required this.lugarId, + required this.nombre, + this.categoria, + this.descripcion, + this.lat, + this.lng, + this.mapX, + this.mapY, + this.escenaPrincipalId, + this.audiencias = const [], + this.activo = true, + }); + + final int id; + final int lugarId; + final String nombre; + final String? categoria; + final String? descripcion; + + /// Solo lectura: la API no permite escribir lat/lng, solo mapX/mapY. + final double? lat; + final double? lng; + + /// Posición del pin sobre la imagen del mapa del lugar. + final double? mapX; + final double? mapY; + + final int? escenaPrincipalId; + final List audiencias; + final bool activo; + + factory Poi.fromJson(Map j) => Poi( + id: _toInt(j['id']) ?? 0, + lugarId: _toInt(j['lugar_id']) ?? 0, + nombre: (j['nombre'] as String?) ?? '', + categoria: j['categoria'] as String?, + descripcion: j['descripcion'] as String?, + lat: _toDouble(j['lat']), + lng: _toDouble(j['lng']), + mapX: _toDouble(j['map_x']), + mapY: _toDouble(j['map_y']), + escenaPrincipalId: _toInt(j['escena_principal_id']), + audiencias: ((j['audiencias'] as List?) ?? const []) + .map(Audiencia.tryParse) + .whereType() + .toList(), + activo: (j['activo'] as bool?) ?? true, + ); + + /// Nota: este copyWith no permite poner un campo opcional en null. + Poi copyWith({ + int? id, + int? lugarId, + String? nombre, + String? categoria, + String? descripcion, + double? lat, + double? lng, + double? mapX, + double? mapY, + int? escenaPrincipalId, + List? audiencias, + bool? activo, + }) => + Poi( + id: id ?? this.id, + lugarId: lugarId ?? this.lugarId, + nombre: nombre ?? this.nombre, + categoria: categoria ?? this.categoria, + descripcion: descripcion ?? this.descripcion, + lat: lat ?? this.lat, + lng: lng ?? this.lng, + mapX: mapX ?? this.mapX, + mapY: mapY ?? this.mapY, + escenaPrincipalId: escenaPrincipalId ?? this.escenaPrincipalId, + audiencias: audiencias ?? this.audiencias, + activo: activo ?? this.activo, + ); + + Map _body() => { + 'nombre': nombre, + 'categoria': categoria, + 'descripcion': descripcion, + 'mapX': mapX, + 'mapY': mapY, + // Backend tarea 1: hoy la API ignora lat/lng al escribir. + 'lat': lat, + 'lng': lng, + // VERIFICAR con el backend: la API recibe `audiencias` como texto. + // Se asume lista separada por comas, p. ej. "externo,estudiante". + 'audiencias': audiencias.map((a) => a.name).join(','), + 'activo': activo, + 'escenaPrincipalId': escenaPrincipalId, + }; + + /// Cuerpo de POST /api/admin/pois (CrearPoiRequest). + Map toCreateJson() => {'lugarId': lugarId, ..._body()}; + + /// Cuerpo de PUT /api/admin/pois/{id} (ActualizarPoiRequest). + Map toUpdateJson() => _body(); +} + +/// Respuesta de GET /api/pois/{id} (PoiDetalleDto). +class PoiDetalle { + const PoiDetalle({required this.poi, this.medios = const []}); + + final Poi poi; + final List medios; + + factory PoiDetalle.fromJson(Map j) => PoiDetalle( + poi: Poi.fromJson((j['poi'] as Map).cast()), + medios: ((j['medios'] as List?) ?? const []) + .map((e) => Medio.fromJson((e as Map).cast())) + .toList(), + ); +} diff --git a/apps/admin_flutter/lib/data/plano_campus.dart b/apps/admin_flutter/lib/data/plano_campus.dart new file mode 100644 index 0000000..f36fb7f --- /dev/null +++ b/apps/admin_flutter/lib/data/plano_campus.dart @@ -0,0 +1,137 @@ +import 'dart:convert'; +import 'dart:math'; +import 'dart:ui' show Offset; + +import 'package:flutter/services.dart'; + +/// Tipo de elemento del plano, tal como lo clasifica `scripts/mapa_campus.py` +/// de la app móvil. +enum ClaseRasgo { + campus, + zona, + verde, + arboles, + agua, + parqueadero, + cancha, + plazoleta, + edificio, + via, + viaPrincipal, + sendero, + escalera, + desconocida; + + static ClaseRasgo leer(String? valor) => switch (valor) { + 'campus' => campus, + 'zona' => zona, + 'verde' => verde, + 'arboles' => arboles, + 'agua' => agua, + 'parqueadero' => parqueadero, + 'cancha' => cancha, + 'plazoleta' => plazoleta, + 'edificio' => edificio, + 'via' => via, + 'via_principal' => viaPrincipal, + 'sendero' => sendero, + 'escalera' => escalera, + _ => desconocida, + }; +} + +/// Un polígono o una línea del plano, normalizado a la caja (x al este, +/// y al sur, ambos en [0, 1]). +class RasgoPlano { + const RasgoPlano({ + required this.clase, + required this.esArea, + required this.puntos, + }); + + final ClaseRasgo clase; + final bool esArea; + final List puntos; +} + +/// Plano del campus a partir de OpenStreetMap (`campus_osm.geojson`, el mismo +/// archivo que usa la app móvil). Los datos son ODbL: junto al mapa debe verse +/// «© colaboradores de OpenStreetMap». +class PlanoCampus { + PlanoCampus({ + required this.oeste, + required this.sur, + required this.este, + required this.norte, + required List rasgos, + }) : rasgos = { + for (final clase in ClaseRasgo.values) + clase: rasgos.where((r) => r.clase == clase).toList(), + }; + + static const ruta = 'assets/campus_osm.geojson'; + + factory PlanoCampus.desdeGeoJson(Map json) { + final caja = (json['bbox'] as List).cast(); + final oeste = caja[0].toDouble(), sur = caja[1].toDouble(); + final este = caja[2].toDouble(), norte = caja[3].toDouble(); + + Offset normal(List par) => Offset( + ((par[0] as num) - oeste) / (este - oeste), + (norte - (par[1] as num)) / (norte - sur), + ); + + final rasgos = []; + for (final rasgo in json['features'] as List) { + final propiedades = rasgo['properties'] as Map; + final geometria = rasgo['geometry'] as Map; + final clase = ClaseRasgo.leer(propiedades['clase'] as String?); + if (clase == ClaseRasgo.desconocida) continue; + final esArea = geometria['type'] == 'Polygon'; + final coords = esArea + ? (geometria['coordinates'] as List).first as List + : geometria['coordinates'] as List; + rasgos.add(RasgoPlano( + clase: clase, + esArea: esArea, + puntos: [for (final par in coords) normal(par as List)], + )); + } + return PlanoCampus( + oeste: oeste, sur: sur, este: este, norte: norte, rasgos: rasgos); + } + + final double oeste, sur, este, norte; + final Map> rasgos; + + double get _latMedia => (sur + norte) / 2; + double get anchoMetros => (este - oeste) * 111320 * cos(_latMedia * pi / 180); + double get altoMetros => (norte - sur) * 110574; + + /// Ancho entre alto: el lienzo debe respetarla o cada lat/lng se desplaza. + double get proporcion => anchoMetros / altoMetros; + + /// Posición normalizada [0, 1] de un punto. Nula si cae fuera de la caja. + Offset? normalizar(double lat, double lng) { + final x = (lng - oeste) / (este - oeste); + final y = (norte - lat) / (norte - sur); + if (x < 0 || x > 1 || y < 0 || y > 1) return null; + return Offset(x, y); + } + + /// Operación inversa: de posición normalizada a (lat, lng). + (double, double) aLatLng(Offset p) => + (norte - p.dy * (norte - sur), oeste + p.dx * (este - oeste)); + + static Future? _cache; + + /// Carga el plano una sola vez. Se usa `load` y no `loadString` porque con + /// más de 50 KB este último decodifica en otro isolate. + static Future cargar() => _cache ??= () async { + final datos = await rootBundle.load(ruta); + final texto = utf8.decode( + datos.buffer.asUint8List(datos.offsetInBytes, datos.lengthInBytes)); + return PlanoCampus.desdeGeoJson( + jsonDecode(texto) as Map); + }(); +} diff --git a/apps/admin_flutter/lib/data/repositories/escena_repository.dart b/apps/admin_flutter/lib/data/repositories/escena_repository.dart new file mode 100644 index 0000000..5eeaff0 --- /dev/null +++ b/apps/admin_flutter/lib/data/repositories/escena_repository.dart @@ -0,0 +1,209 @@ +import 'dart:typed_data'; + +import '../../core/config.dart'; +import '../api/api_client.dart'; +import '../models/escena.dart'; + +abstract class EscenaRepository { + /// Escenas 360° del lugar configurado (GET /api/lugares/{id}/recorrido). + Future> listar(); + + Future crear(Escena escena); + + Future actualizar(Escena escena); + + Future eliminar(int id); + + /// POST /api/admin/escenas/{id}/imagen (multipart: Archivo, Carpeta). + /// [bajaResolucion] sube la versión liviana de la imagen. + /// Sube la panorámica. Devuelve las rutas que guardó el servidor (sin + /// firmar) y su advertencia, si la imagen no es 2:1. + Future subirImagen( + int escenaId, { + required Uint8List bytes, + required String filename, + bool bajaResolucion = false, + String? carpeta, + }); +} + +/// Respuesta de POST /api/admin/escenas/{id}/imagen. +class PanoramaSubida { + const PanoramaSubida({this.imagenUrl, this.imagenUrlBaja, this.advertencia}); + + /// Rutas relativas en el bucket, tal como quedan en la base. + final String? imagenUrl; + final String? imagenUrlBaja; + final String? advertencia; +} + +class HttpEscenaRepository implements EscenaRepository { + HttpEscenaRepository(this._api, {int? lugarId}) + : _lugarId = lugarId ?? AppConfig.lugarId; + + final ApiClient _api; + final int _lugarId; + + Escena _fromJson(Object? data) => + Escena.fromJson((data as Map).cast()); + + @override + Future> listar() async { + final data = await _api.get('/api/lugares/$_lugarId/recorrido') as Map; + final escenas = (data['escenas'] as List?) ?? const []; + return escenas.map(_fromJson).toList(); + } + + @override + Future crear(Escena escena) async => + _fromJson(await _api.post('/api/admin/escenas', escena.toCreateJson())); + + @override + Future actualizar(Escena escena) async => _fromJson( + await _api.put('/api/admin/escenas/${escena.id}', escena.toUpdateJson())); + + @override + Future eliminar(int id) => _api.delete('/api/admin/escenas/$id'); + + @override + Future subirImagen( + int escenaId, { + required Uint8List bytes, + required String filename, + bool bajaResolucion = false, + String? carpeta, + }) async { + final r = await _api.postMultipart( + '/api/admin/escenas/$escenaId/imagen', + fields: {if (carpeta != null && carpeta.isNotEmpty) 'Carpeta': carpeta}, + files: [ArchivoSubida('Archivo', bytes, filename)], + ); + final m = r is Map ? r.cast() : const {}; + return PanoramaSubida( + imagenUrl: m['imagenUrl'] as String?, + imagenUrlBaja: m['imagenUrlBaja'] as String?, + advertencia: m['advertencia'] as String?, + ); + } +} + +/// Versión en memoria para maquetar sin backend. +class MockEscenaRepository implements EscenaRepository { + MockEscenaRepository() { + // Las cinco escenas reales de la app (ContenidoInicial.cs), con su vista + // inicial. Las panorámicas son material institucional y no se incluyen. + _escenas = const [ + Escena( + id: 1, + lugarId: 1, + poiId: 1, + nombre: 'Biblioteca', + esEscenaPrincipal: true, + orden: 0, + vistaInicialYaw: 152, + vistaInicialPitch: -5, + textoAlt: + 'Vestíbulo amplio y luminoso de la biblioteca, de techo alto y piso claro. En el centro hay un mostrador de atención curvo. A la izquierda se abre un pasillo largo con estanterías y mesas de lectura; a la derecha, mesas junto a ventanales que dan a un jardín con palmeras. Al fondo a la derecha, una escalera con el letrero de salida.'), + Escena( + id: 2, + lugarId: 1, + poiId: 2, + nombre: 'Puente A3 - A5', + esEscenaPrincipal: false, + orden: 1, + vistaInicialYaw: -58, + vistaInicialPitch: -5, + textoAlt: + 'Pasarela elevada y techada, con barandas metálicas a los dos lados, que une dos edificios de aulas de tres pisos. Desde ella se ven, abajo, árboles frondosos, senderos y un jardín con letras formadas por arbustos, y arriba, un cielo azul con nubes.'), + Escena( + id: 3, + lugarId: 1, + poiId: 3, + nombre: 'Enfermeria', + esEscenaPrincipal: false, + orden: 2, + vistaInicialYaw: -158, + vistaInicialPitch: -6, + textoAlt: + 'Sala de atención de la enfermería, blanca y bien iluminada. A la izquierda hay un escritorio con computador y, junto a la puerta de entrada, una pequeña sala de espera con sillas verdes. Al centro y a la derecha, cubículos separados por cortinas, uno de ellos con biombos azules, y equipos como un tanque de oxígeno.'), + Escena( + id: 4, + lugarId: 1, + poiId: 4, + nombre: 'Zona T', + esEscenaPrincipal: false, + orden: 3, + vistaInicialYaw: -55, + vistaInicialPitch: -6, + textoAlt: + 'Plazoleta al aire libre a la sombra de árboles grandes y palmeras, con mesas metálicas y sillas de colores. A un lado se abre una explanada de césped; al otro, un edificio con columnas y una escalera exterior de peldaños amarillos.'), + Escena( + id: 5, + lugarId: 1, + poiId: 5, + nombre: 'Cancha de softbol', + esEscenaPrincipal: false, + orden: 4, + vistaInicialYaw: -40, + vistaInicialPitch: -3, + textoAlt: + 'Campo abierto de césped seco bajo un cielo azul con nubes, rodeado de árboles. Al fondo se ve el edificio deportivo de dos pisos, con una torre de luz.'), + ]; + } + + late List _escenas; + int _nextId = 6; + + Future _delay() => + Future.delayed(const Duration(milliseconds: 350)); + + @override + Future> listar() async { + await _delay(); + return List.unmodifiable(_escenas); + } + + @override + Future crear(Escena escena) async { + await _delay(); + final nueva = Escena( + id: _nextId++, + lugarId: escena.lugarId, + poiId: escena.poiId, + nombre: escena.nombre, + imagenUrl: escena.imagenUrl, + imagenUrlBaja: escena.imagenUrlBaja, + esEscenaPrincipal: escena.esEscenaPrincipal, + orden: escena.orden, + vistaInicialYaw: escena.vistaInicialYaw, + vistaInicialPitch: escena.vistaInicialPitch, + ); + _escenas = [..._escenas, nueva]; + return nueva; + } + + @override + Future actualizar(Escena escena) async { + await _delay(); + _escenas = [for (final e in _escenas) e.id == escena.id ? escena : e]; + return escena; + } + + @override + Future eliminar(int id) async { + await _delay(); + _escenas = _escenas.where((e) => e.id != id).toList(); + } + + @override + Future subirImagen( + int escenaId, { + required Uint8List bytes, + required String filename, + bool bajaResolucion = false, + String? carpeta, + }) async { + await _delay(); + return PanoramaSubida(imagenUrl: filename, imagenUrlBaja: filename); + } +} diff --git a/apps/admin_flutter/lib/data/repositories/medio_repository.dart b/apps/admin_flutter/lib/data/repositories/medio_repository.dart new file mode 100644 index 0000000..9b11d22 --- /dev/null +++ b/apps/admin_flutter/lib/data/repositories/medio_repository.dart @@ -0,0 +1,162 @@ +import 'dart:typed_data'; + +import '../api/api_client.dart'; +import '../models/enums.dart'; +import '../models/medio.dart'; + +abstract class MedioRepository { + /// Sube el archivo y crea el medio en un solo paso + /// (POST /api/admin/pois/{poiId}/medios). Las imágenes exigen [textoAlt]; + /// audio y video pueden llevar [idioma] (BCP 47) y subtítulos .vtt. + Future subir({ + required int poiId, + required TipoMedio tipo, + required ArchivoSubida archivo, + int orden = 0, + String? textoAlt, + String? idioma, + ArchivoSubida? subtitulos, + }); + + /// Crea el registro del medio. Después se sube el archivo con [subirArchivo]. + Future crear(Medio medio); + + Future actualizar(Medio medio); + + Future eliminar(int id); + + /// POST /api/admin/medios/{id}/archivo (multipart: Archivo, Carpeta). + Future subirArchivo( + int medioId, { + required Uint8List bytes, + required String filename, + String? carpeta, + }); +} + +class HttpMedioRepository implements MedioRepository { + HttpMedioRepository(this._api); + + final ApiClient _api; + + Medio _fromJson(Object? data) => + Medio.fromJson((data as Map).cast()); + + @override + Future subir({ + required int poiId, + required TipoMedio tipo, + required ArchivoSubida archivo, + int orden = 0, + String? textoAlt, + String? idioma, + ArchivoSubida? subtitulos, + }) async => + _fromJson(await _api.postMultipart( + '/api/admin/pois/$poiId/medios', + fields: { + 'Tipo': tipo.name, + 'Orden': '$orden', + if (textoAlt != null && textoAlt.trim().isNotEmpty) + 'TextoAlt': textoAlt.trim(), + if (idioma != null && idioma.isNotEmpty) 'Idioma': idioma, + }, + files: [archivo, if (subtitulos != null) subtitulos], + )); + + @override + Future crear(Medio medio) async => + _fromJson(await _api.post('/api/admin/medios', medio.toCreateJson())); + + @override + Future actualizar(Medio medio) async => _fromJson( + await _api.put('/api/admin/medios/${medio.id}', medio.toUpdateJson())); + + @override + Future eliminar(int id) => _api.delete('/api/admin/medios/$id'); + + @override + Future subirArchivo( + int medioId, { + required Uint8List bytes, + required String filename, + String? carpeta, + }) => + _api.uploadFile( + '/api/admin/medios/$medioId/archivo', + bytes: bytes, + filename: filename, + carpeta: carpeta, + ); +} + +/// Versión en memoria para maquetar sin backend. +class MockMedioRepository implements MedioRepository { + final List _medios = []; + int _nextId = 1; + + Future _delay() => + Future.delayed(const Duration(milliseconds: 350)); + + @override + Future subir({ + required int poiId, + required TipoMedio tipo, + required ArchivoSubida archivo, + int orden = 0, + String? textoAlt, + String? idioma, + ArchivoSubida? subtitulos, + }) => + crear(Medio( + id: 0, + poiId: poiId, + tipo: tipo, + url: archivo.nombre, + orden: orden, + textoAlt: textoAlt, + idioma: idioma, + subtitulosUrl: subtitulos?.nombre, + )); + + @override + Future crear(Medio medio) async { + await _delay(); + final nuevo = Medio( + id: _nextId++, + poiId: medio.poiId, + tipo: medio.tipo, + url: medio.url, + orden: medio.orden, + duracionSeg: medio.duracionSeg, + textoAlt: medio.textoAlt, + subtitulosUrl: medio.subtitulosUrl, + idioma: medio.idioma, + ); + _medios.add(nuevo); + return nuevo; + } + + @override + Future actualizar(Medio medio) async { + await _delay(); + final i = _medios.indexWhere((m) => m.id == medio.id); + if (i >= 0) _medios[i] = medio; + return medio; + } + + @override + Future eliminar(int id) async { + await _delay(); + _medios.removeWhere((m) => m.id == id); + } + + @override + Future subirArchivo( + int medioId, { + required Uint8List bytes, + required String filename, + String? carpeta, + }) => + _delay(); +} diff --git a/apps/admin_flutter/lib/data/repositories/panel_repository.dart b/apps/admin_flutter/lib/data/repositories/panel_repository.dart new file mode 100644 index 0000000..9c42e92 --- /dev/null +++ b/apps/admin_flutter/lib/data/repositories/panel_repository.dart @@ -0,0 +1,195 @@ +import '../api/api_client.dart'; + +int _int(Object? v) => (v as num?)?.toInt() ?? 0; + +// --- Métricas (GET /api/admin/metricas) --- + +class ConteoTipo { + const ConteoTipo(this.tipo, this.eventos); + final String tipo; + final int eventos; +} + +class VisitasDia { + const VisitasDia(this.dia, this.visitas, this.eventos); + final DateTime dia; + final int visitas; + final int eventos; +} + +class PoiVisto { + const PoiVisto(this.poiId, this.nombre, this.visitas, this.eventos); + final int poiId; + final String nombre; + final int visitas; + final int eventos; +} + +class Metricas { + const Metricas({ + required this.visitas, + required this.eventos, + this.porTipo = const [], + this.porDia = const [], + this.poisMasVistos = const [], + }); + + /// Sesiones distintas (visitantes anónimos) en el rango. + final int visitas; + final int eventos; + final List porTipo; + final List porDia; + final List poisMasVistos; + + int eventosDe(String tipo) => + porTipo.where((t) => t.tipo == tipo).fold(0, (s, t) => s + t.eventos); + + factory Metricas.fromJson(Map j) => Metricas( + visitas: _int(j['visitas']), + eventos: _int(j['eventos']), + porTipo: [ + for (final e in (j['por_tipo'] as List? ?? const [])) + ConteoTipo(e['tipo'] as String, _int(e['eventos'])), + ], + porDia: [ + for (final e in (j['por_dia'] as List? ?? const [])) + VisitasDia(DateTime.parse(e['dia'] as String), _int(e['visitas']), + _int(e['eventos'])), + ], + poisMasVistos: [ + for (final e in (j['pois_mas_vistos'] as List? ?? const [])) + PoiVisto(_int(e['poi_id']), (e['nombre'] as String?) ?? '', + _int(e['visitas']), _int(e['eventos'])), + ], + ); +} + +// --- Actividad (GET /api/admin/actividad) --- + +class Actividad { + const Actividad({ + required this.id, + required this.fecha, + required this.accion, + required this.entidad, + this.entidadId, + this.actorCorreo, + }); + + final int id; + final DateTime fecha; + + /// insert, update o delete (lo que registre la tabla auditoria). + final String accion; + final String entidad; + final String? entidadId; + final String? actorCorreo; + + factory Actividad.fromJson(Map j) => Actividad( + id: _int(j['id']), + fecha: DateTime.parse(j['ts'] as String).toLocal(), + accion: (j['accion'] as String?) ?? '', + entidad: (j['entidad'] as String?) ?? '', + entidadId: j['entidad_id']?.toString(), + actorCorreo: j['actor_correo'] as String?, + ); +} + +// --- Administradores (GET /api/admin/administradores) --- + +class Perfil { + const Perfil({ + required this.userId, + this.correo, + required this.rol, + required this.verificado, + required this.creadoEn, + }); + + final String userId; + final String? correo; + final String rol; + final bool verificado; + final DateTime creadoEn; + + factory Perfil.fromJson(Map j) => Perfil( + userId: j['user_id'] as String, + correo: j['correo'] as String?, + rol: (j['rol'] as String?) ?? '', + verificado: (j['verificado'] as bool?) ?? false, + creadoEn: DateTime.parse(j['creado_en'] as String).toLocal(), + ); +} + +String _fecha(DateTime d) => + '${d.year}-${d.month.toString().padLeft(2, '0')}-${d.day.toString().padLeft(2, '0')}'; + +/// Lecturas del panel que no son contenido: métricas, actividad y admins. +abstract class PanelRepository { + /// Rango en hora de Colombia, ambos días incluidos. + Future metricas({required DateTime desde, required DateTime hasta}); + + Future> actividad({int tamano = 10}); + + /// Solo los admin; con [todos], todos los perfiles (para buscar a quién + /// darle el rol). + Future> administradores({bool todos = false}); + + /// Da o quita el rol admin (rol: admin, externo, estudiante o docente). + Future cambiarRol(String userId, String rol); +} + +class HttpPanelRepository implements PanelRepository { + HttpPanelRepository(this._api); + + final ApiClient _api; + + Map _map(Object? d) => (d as Map).cast(); + + @override + Future metricas( + {required DateTime desde, required DateTime hasta}) async => + Metricas.fromJson(_map(await _api.get( + '/api/admin/metricas?desde=${_fecha(desde)}&hasta=${_fecha(hasta)}'))); + + @override + Future> actividad({int tamano = 10}) async { + final data = + _map(await _api.get('/api/admin/actividad?pagina=1&tamano=$tamano')); + return [ + for (final e in (data['items'] as List? ?? const [])) + Actividad.fromJson(_map(e)), + ]; + } + + @override + Future> administradores({bool todos = false}) async => [ + for (final e in (await _api + .get('/api/admin/administradores${todos ? '?todos=true' : ''}') + as List)) + Perfil.fromJson(_map(e)), + ]; + + @override + Future cambiarRol(String userId, String rol) async => Perfil.fromJson( + _map(await _api.put('/api/admin/administradores/$userId', {'rol': rol}))); +} + +/// Maqueta sin backend: sin cifras inventadas, todo vacío. +class MockPanelRepository implements PanelRepository { + @override + Future metricas( + {required DateTime desde, required DateTime hasta}) async => + const Metricas(visitas: 0, eventos: 0); + + @override + Future> actividad({int tamano = 10}) async => const []; + + @override + Future> administradores({bool todos = false}) async => + const []; + + @override + Future cambiarRol(String userId, String rol) async => + throw ApiException('No disponible en modo maqueta'); +} diff --git a/apps/admin_flutter/lib/data/repositories/poi_repository.dart b/apps/admin_flutter/lib/data/repositories/poi_repository.dart new file mode 100644 index 0000000..a681129 --- /dev/null +++ b/apps/admin_flutter/lib/data/repositories/poi_repository.dart @@ -0,0 +1,458 @@ +import '../../core/config.dart'; +import '../api/api_client.dart'; +import '../models/enums.dart'; +import '../models/medio.dart'; +import '../models/poi.dart'; + +abstract class PoiRepository { + /// Lista los POI del lugar configurado. + Future> listar(); + + /// POI con sus medios. + Future detalle(int id); + + Future crear(Poi poi); + + /// Envía el POI completo (la API de edición es un PUT). + Future actualizar(Poi poi); + + Future eliminar(int id); + + /// RF-13: activar / desactivar. Envía el POI completo con el nuevo estado. + Future cambiarEstado(Poi poi, bool activo) => + actualizar(poi.copyWith(activo: activo)); +} + +/// Implementación real contra el backend .NET. +class HttpPoiRepository extends PoiRepository { + HttpPoiRepository(this._api, {int? lugarId}) + : _lugarId = lugarId ?? AppConfig.lugarId; + + final ApiClient _api; + final int _lugarId; + + Map _map(Object? data) => + (data as Map).cast(); + + /// Usa el endpoint de administración: trae también los POI inactivos y + /// los de cualquier audiencia. El público (/api/lugares/{id}/pois) los + /// oculta, y un POI desactivado desaparecería del panel. + @override + Future> listar() async { + final data = + await _api.get('/api/admin/lugares/$_lugarId/pois') as List; + return data.map((e) => Poi.fromJson(_map(e))).toList(); + } + + @override + Future detalle(int id) async => + PoiDetalle.fromJson(_map(await _api.get('/api/pois/$id'))); + + @override + Future crear(Poi poi) async { + final body = poi.copyWith(lugarId: _lugarId).toCreateJson(); + return Poi.fromJson(_map(await _api.post('/api/admin/pois', body))); + } + + @override + Future actualizar(Poi poi) async => Poi.fromJson( + _map(await _api.put('/api/admin/pois/${poi.id}', poi.toUpdateJson()))); + + @override + Future eliminar(int id) => _api.delete('/api/admin/pois/$id'); +} + +/// Datos en memoria para maquetar sin backend. +/// Son los lugares reales del campus, copiados de +/// `scripts/datos/pois_campus.json` de la app móvil (mismos ids, nombres, +/// categorías, descripciones y coordenadas). Cinco tienen panorámica +/// (paradas); el resto aún no tiene descripción ni escena. Los mapX/mapY solo +/// ubican el pin en la cuadrícula de maqueta y se calculan desde lat/lng. +class MockPoiRepository extends PoiRepository { + MockPoiRepository() { + _pois = const [ + Poi( + id: 1, + lugarId: 1, + nombre: 'Biblioteca', + categoria: 'Recursos', + descripcion: + 'Más que una biblioteca: concentración, disciplina, tecnología y construcción de sueños.', + lat: 10.3699965, + lng: -75.4650668, + mapX: 0.716, + mapY: 0.463, + escenaPrincipalId: 1, + audiencias: _todas, + ), + Poi( + id: 2, + lugarId: 1, + nombre: 'Puente A3 - A5', + categoria: 'Academico', + descripcion: + 'Un punto que conecta espacios, personas y recorridos dentro del campus. Cada trayecto en la UTB hace parte de una experiencia que conecta tu presente con lo que quieres construir.', + lat: 10.3692169, + lng: -75.4647217, + mapX: 0.85, + mapY: 0.846, + escenaPrincipalId: 2, + audiencias: _todas, + ), + Poi( + id: 3, + lugarId: 1, + nombre: 'Enfermería', + categoria: 'Bienestar', + descripcion: + 'Bienestar y cuidado integral. Un espacio para atender tu salud, recibir orientación y recordar que cuidar de ti también hace parte de la experiencia universitaria.', + lat: 10.3692651, + lng: -75.4655196, + mapX: 0.54, + mapY: 0.823, + escenaPrincipalId: 3, + audiencias: _todas, + ), + Poi( + id: 4, + lugarId: 1, + nombre: 'Zona T', + categoria: 'Servicios', + descripcion: + 'Punto de encuentro, pausa y conexión. Un lugar para compartir con otros estudiantes, conversar y disfrutar los espacios que hacen del campus una comunidad.', + lat: 10.3691852, + lng: -75.4655576, + mapX: 0.525, + mapY: 0.862, + escenaPrincipalId: 4, + audiencias: _todas, + ), + Poi( + id: 5, + lugarId: 1, + nombre: 'Cancha de softbol', + categoria: 'Deporte', + descripcion: + 'El campus también se vive en movimiento. Espacio para el deporte, la disciplina, el trabajo en equipo y las experiencias que se construyen más allá del aula.', + lat: 10.3695823, + lng: -75.4663148, + mapX: 0.232, + mapY: 0.667, + escenaPrincipalId: 5, + audiencias: _todas, + ), + Poi( + id: 6, + lugarId: 1, + nombre: 'Edificio A1', + categoria: 'Academico', + lat: 10.3697646, + lng: -75.465347, + mapX: 0.607, + mapY: 0.577, + audiencias: _todas, + ), + Poi( + id: 7, + lugarId: 1, + nombre: 'Edificio A2', + categoria: 'Academico', + lat: 10.3707763, + lng: -75.4656241, + mapX: 0.5, + mapY: 0.08, + audiencias: _todas, + ), + Poi( + id: 8, + lugarId: 1, + nombre: 'Edificio A3', + categoria: 'Academico', + lat: 10.3692983, + lng: -75.4648329, + mapX: 0.806, + mapY: 0.806, + audiencias: _todas, + ), + Poi( + id: 9, + lugarId: 1, + nombre: 'Edificio A4', + categoria: 'Academico', + lat: 10.3695805, + lng: -75.4645402, + mapX: 0.92, + mapY: 0.668, + audiencias: _todas, + ), + Poi( + id: 10, + lugarId: 1, + nombre: 'Edificio A5', + categoria: 'Academico', + lat: 10.3691355, + lng: -75.4646105, + mapX: 0.893, + mapY: 0.886, + audiencias: _todas, + ), + Poi( + id: 11, + lugarId: 1, + nombre: 'Edificio Alcatraz', + categoria: 'Academico', + lat: 10.3703807, + lng: -75.4652636, + mapX: 0.639, + mapY: 0.274, + audiencias: _todas, + ), + Poi( + id: 12, + lugarId: 1, + nombre: 'Auditorio', + categoria: 'Cultura', + lat: 10.3705694, + lng: -75.4657944, + mapX: 0.434, + mapY: 0.182, + audiencias: _todas, + ), + Poi( + id: 13, + lugarId: 1, + nombre: 'Plaza Maloca', + categoria: 'Cultura', + lat: 10.3700456, + lng: -75.4657625, + mapX: 0.446, + mapY: 0.439, + audiencias: _todas, + ), + Poi( + id: 14, + lugarId: 1, + nombre: 'Rectoría', + categoria: 'Administrativo', + lat: 10.3695939, + lng: -75.4652554, + mapX: 0.643, + mapY: 0.661, + audiencias: _todas, + ), + Poi( + id: 15, + lugarId: 1, + nombre: 'Laboratorio El Patio', + categoria: 'Academico', + lat: 10.3696815, + lng: -75.4650578, + mapX: 0.719, + mapY: 0.618, + audiencias: _todas, + ), + Poi( + id: 16, + lugarId: 1, + nombre: 'Centro de Cuidado Integral (QUID)', + categoria: 'Bienestar', + lat: 10.3690673, + lng: -75.4658707, + mapX: 0.404, + mapY: 0.92, + audiencias: _todas, + ), + Poi( + id: 17, + lugarId: 1, + nombre: 'Centro Deportivo y Cultural', + categoria: 'Deporte', + lat: 10.3692615, + lng: -75.4656845, + mapX: 0.476, + mapY: 0.825, + audiencias: _todas, + ), + Poi( + id: 18, + lugarId: 1, + nombre: 'Cancha de fútbol', + categoria: 'Deporte', + lat: 10.3701542, + lng: -75.4667058, + mapX: 0.08, + mapY: 0.386, + audiencias: _todas, + ), + Poi( + id: 19, + lugarId: 1, + nombre: 'Salas de estudio', + categoria: 'Recursos', + lat: 10.3705483, + lng: -75.4654429, + mapX: 0.57, + mapY: 0.192, + audiencias: _todas, + ), + Poi( + id: 20, + lugarId: 1, + nombre: 'Cafetería', + categoria: 'Servicios', + lat: 10.37042, + lng: -75.4653547, + mapX: 0.604, + mapY: 0.255, + audiencias: _todas, + ), + Poi( + id: 21, + lugarId: 1, + nombre: 'Tienda', + categoria: 'Servicios', + lat: 10.3692206, + lng: -75.4661076, + mapX: 0.312, + mapY: 0.845, + audiencias: _todas, + ), + Poi( + id: 22, + lugarId: 1, + nombre: 'Cajero automático', + categoria: 'Servicios', + lat: 10.3705307, + lng: -75.4659036, + mapX: 0.391, + mapY: 0.201, + audiencias: _todas, + ), + Poi( + id: 23, + lugarId: 1, + nombre: 'Pasillo de la conexión', + categoria: 'Administrativo', + lat: 10.3707567, + lng: -75.4659942, + mapX: 0.356, + mapY: 0.09, + audiencias: _todas, + ), + Poi( + id: 24, + lugarId: 1, + nombre: 'Solo Café', + categoria: 'Servicios', + descripcion: + 'Espacio de conexión, ideas y conversaciones que también transforman la experiencia universitaria. Aquí nacen amistades, proyectos y networking.', + lat: 10.3702285, + lng: -75.4655508, + mapX: 0.528, + mapY: 0.349, + audiencias: _todas, + ), + Poi( + id: 25, + lugarId: 1, + nombre: 'La Placita', + categoria: 'Cultura', + descripcion: + 'Inspirada en las plazas del Caribe. Un espacio creado para compartir, desconectarse y sentirse en casa dentro de la UTB.', + lat: 10.3704913, + lng: -75.465484, + mapX: 0.554, + mapY: 0.22, + audiencias: _todas, + ), + Poi( + id: 26, + lugarId: 1, + nombre: 'QuantaLab', + categoria: 'Academico', + descripcion: + 'Laboratorio de analítica, IA y datos. El futuro pertenece a quienes saben interpretar información y tomar decisiones.', + lat: 10.3690907, + lng: -75.4646518, + mapX: 0.877, + mapY: 0.908, + audiencias: _todas, + ), + ]; + } + + static const _todas = [ + Audiencia.externo, + Audiencia.estudiante, + Audiencia.docente, + ]; + + /// Duración (s) de la narración en español de los lugares que ya la tienen. + static const _duracionAudio = { + 1: 7, + 2: 14, + 3: 12, + 4: 12, + 5: 11, + 24: 12, + 25: 9, + 26: 10, + }; + + late List _pois; + int _nextId = 27; + + Future _delay() => + Future.delayed(const Duration(milliseconds: 350)); + + @override + Future> listar() async { + await _delay(); + return List.unmodifiable(_pois); + } + + @override + Future detalle(int id) async { + await _delay(); + final poi = _pois.firstWhere((p) => p.id == id, + orElse: () => throw ApiException('POI no encontrado', statusCode: 404)); + final seg = _duracionAudio[id]; + // Solo la narración original en español, como el seed de la app. El seed + // no trae subtítulos ni otros idiomas: no se inventan. + return PoiDetalle( + poi: poi, + medios: [ + if (seg != null) + Medio( + id: id * 100, + poiId: id, + tipo: TipoMedio.audio, + orden: 0, + duracionSeg: seg, + textoAlt: 'Audio narrado de ${poi.nombre}', + ), + ], + ); + } + + @override + Future crear(Poi poi) async { + await _delay(); + final nuevo = poi.copyWith(id: _nextId++); + _pois = [..._pois, nuevo]; + return nuevo; + } + + @override + Future actualizar(Poi poi) async { + await _delay(); + _pois = [for (final p in _pois) p.id == poi.id ? poi : p]; + return poi; + } + + @override + Future eliminar(int id) async { + await _delay(); + _pois = _pois.where((p) => p.id != id).toList(); + } +} diff --git a/apps/admin_flutter/lib/data/repositories/repositories.dart b/apps/admin_flutter/lib/data/repositories/repositories.dart new file mode 100644 index 0000000..581b5d4 --- /dev/null +++ b/apps/admin_flutter/lib/data/repositories/repositories.dart @@ -0,0 +1,43 @@ +import 'package:supabase_flutter/supabase_flutter.dart' hide AuthState; + +import '../../core/config.dart'; +import '../api/api_client.dart'; +import 'escena_repository.dart'; +import 'medio_repository.dart'; +import 'panel_repository.dart'; +import 'poi_repository.dart'; + +export 'escena_repository.dart'; +export 'medio_repository.dart'; +export 'panel_repository.dart'; +export 'poi_repository.dart'; + +/// Punto único de acceso a los datos. Las pantallas usan estas variables y no +/// saben si los datos son de ejemplo o vienen del backend. +/// +/// Cambiar de uno a otro: +/// flutter run -d chrome -> datos de ejemplo +/// flutter run -d chrome --dart-define=USE_MOCK=false -> backend real +/// Con login real, cada petición lleva el token de Supabase de la sesión +/// (supabase_flutter lo renueva solo antes de que venza). +final ApiClient apiClient = ApiClient( + tokenProvider: AppConfig.loginReal + ? () async => Supabase.instance.client.auth.currentSession?.accessToken + : null, +); + +final PoiRepository poiRepository = AppConfig.useMockData + ? MockPoiRepository() + : HttpPoiRepository(apiClient); + +final MedioRepository medioRepository = AppConfig.useMockData + ? MockMedioRepository() + : HttpMedioRepository(apiClient); + +final EscenaRepository escenaRepository = AppConfig.useMockData + ? MockEscenaRepository() + : HttpEscenaRepository(apiClient); + +final PanelRepository panelRepository = AppConfig.useMockData + ? MockPanelRepository() + : HttpPanelRepository(apiClient); diff --git a/apps/admin_flutter/lib/data/subida_panorama.dart b/apps/admin_flutter/lib/data/subida_panorama.dart new file mode 100644 index 0000000..adb2606 --- /dev/null +++ b/apps/admin_flutter/lib/data/subida_panorama.dart @@ -0,0 +1,130 @@ +import 'dart:math'; +import 'dart:typed_data'; + +import 'api/api_client.dart'; +import 'models/escena.dart'; +import 'models/poi.dart'; +import 'repositories/escena_repository.dart'; +import 'repositories/poi_repository.dart'; + +/// Sube la panorámica de un POI sin dejar la base a medias. +/// +/// Reglas que salen de la revisión del PR #22: +/// +/// - **La escena nueva no es la principal del lugar.** `es_escena_principal` +/// elige dónde arranca el recorrido de toda la app móvil, y en el lugar ya +/// hay una (la Biblioteca). La escena propia del POI es +/// `Poi.escenaPrincipalId`, que se enlaza aparte. +/// - **Un reintento no crea otra escena.** Si la imagen no sube, la API +/// pública esconde la escena recién creada (no tiene imagen) y el POI que +/// tiene la pantalla sigue sin ella. Por eso se recuerda aquí. +/// - **Nunca se guarda lo que no se leyó.** El texto alternativo se actualiza +/// con un PUT que reescribe la escena entera; solo se hace si se conoce la +/// escena completa, para no borrar su encuadre calibrado ni su orden, y con +/// las rutas sin firmar que devolvió la subida. +class SubidaPanorama { + SubidaPanorama({ + required EscenaRepository escenas, + required PoiRepository pois, + }) : _escenas = escenas, + _pois = pois; + + final EscenaRepository _escenas; + final PoiRepository _pois; + + /// Escenas creadas desde esta pantalla, por POI. + final _creadas = {}; + + /// Aviso cuando la escena existe pero no se pudo leer. + static const avisoSinEscena = + 'La panorámica se subió, pero el texto alternativo no se actualizó: ' + 'el lugar no está visible y el panel no puede leer su escena. ' + 'Actívalo y vuelve a subirla para cambiarlo.'; + + /// Sube [bytes] como panorámica de [poi]. + /// + /// [escena] es su escena tal como se pudo leer: nula si no tiene, o si la + /// API pública no la deja ver (lugar inactivo). Devuelve los avisos para + /// mostrar, o null si no hay ninguno. + Future subir({ + required Poi poi, + required Escena? escena, + required Uint8List bytes, + required String nombreArchivo, + required String textoAlt, + }) async { + final alt = textoAlt.trim(); + final conocida = escena ?? _creadas[poi.id]; + final existente = poi.escenaPrincipalId ?? conocida?.id; + + final int escenaId; + final bool nueva; + if (existente == null) { + final creada = await _escenas.crear( + Escena( + id: 0, + lugarId: poi.lugarId, + poiId: poi.id, + nombre: poi.nombre, + esEscenaPrincipal: false, + orden: await _siguienteOrden(), + textoAlt: alt, + ), + ); + _creadas[poi.id] = creada; + // Se enlaza antes de subir: si la subida falla, el POI ya la tiene. + await _pois.actualizar(poi.copyWith(escenaPrincipalId: creada.id)); + escenaId = creada.id; + nueva = true; + } else { + escenaId = existente; + nueva = false; + } + + final subida = await _escenas.subirImagen( + escenaId, + bytes: bytes, + filename: nombreArchivo, + ); + final avisos = [?subida.advertencia]; + + // Una escena nueva ya se creó con su texto alternativo. + if (!nueva) { + if (conocida == null || + conocida.id != escenaId || + subida.imagenUrl == null) { + avisos.add(avisoSinEscena); + } else if ((conocida.textoAlt ?? '').trim() != alt) { + final actualizada = await _escenas.actualizar( + Escena( + id: conocida.id, + lugarId: conocida.lugarId, + poiId: conocida.poiId ?? poi.id, + nombre: conocida.nombre, + imagenUrl: subida.imagenUrl, + imagenUrlBaja: subida.imagenUrlBaja, + esEscenaPrincipal: conocida.esEscenaPrincipal, + orden: conocida.orden, + vistaInicialYaw: conocida.vistaInicialYaw, + vistaInicialPitch: conocida.vistaInicialPitch, + textoAlt: alt, + ), + ); + if (_creadas.containsKey(poi.id)) _creadas[poi.id] = actualizada; + } + } + return avisos.isEmpty ? null : avisos.join('\n'); + } + + /// Orden después de la última escena visible. Si no se puede leer, 0: no + /// decide nada, porque el recorrido arranca por la principal y no por el + /// orden. + Future _siguienteOrden() async { + try { + final escenas = await _escenas.listar(); + return escenas.fold(-1, (m, e) => max(m, e.orden)) + 1; + } on ApiException { + return 0; + } + } +} diff --git a/apps/admin_flutter/lib/domain/reglas.dart b/apps/admin_flutter/lib/domain/reglas.dart new file mode 100644 index 0000000..052b314 --- /dev/null +++ b/apps/admin_flutter/lib/domain/reglas.dart @@ -0,0 +1,40 @@ +import '../data/models/enums.dart'; +import '../data/models/poi.dart'; + +/// Reglas de negocio del SRS que el panel debe aplicar en el cliente. + +/// RN-01: no se puede desactivar el último POI activo. +bool puedeDesactivar(List pois, Poi poi) { + if (!poi.activo) return true; + final activos = pois.where((p) => p.activo).length; + return activos > 1; +} + +/// RN-03: límite de tamaño por tipo de archivo (imagen 5 MB, audio 10 MB, +/// video 50 MB). El SRS pedía 100 MB para video, pero Supabase (plan gratis) +/// no acepta archivos de más de 50 MB y la API rechaza lo que pase de ahí. +int maxBytesPara(TipoMedio tipo) { + const mb = 1024 * 1024; + switch (tipo) { + case TipoMedio.imagen: + return 5 * mb; + case TipoMedio.video: + return 50 * mb; + case TipoMedio.audio: + return 10 * mb; + } +} + +/// Devuelve un mensaje de error o null si el archivo es válido. +String? validarTamano(TipoMedio tipo, int bytes) { + final max = maxBytesPara(tipo); + if (bytes <= max) return null; + final mb = max ~/ (1024 * 1024); + return 'El archivo supera el límite de $mb MB para ${tipo.name}.'; +} + +/// Un POI está "completo" cuando tiene escena 360° principal y descripción. +/// (Propuesta de la guía, sección B.1: el audio es opcional.) +bool poiCompleto(Poi poi) => + poi.escenaPrincipalId != null && + (poi.descripcion?.trim().isNotEmpty ?? false); diff --git a/apps/admin_flutter/lib/main.dart b/apps/admin_flutter/lib/main.dart new file mode 100644 index 0000000..c29abab --- /dev/null +++ b/apps/admin_flutter/lib/main.dart @@ -0,0 +1,35 @@ +import 'package:flutter/material.dart'; +import 'package:supabase_flutter/supabase_flutter.dart' hide AuthState; + +import 'core/auth/auth_state.dart'; +import 'core/config.dart'; +import 'core/router/app_router.dart'; +import 'core/theme/app_theme.dart'; + +Future main() async { + WidgetsFlutterBinding.ensureInitialized(); + if (AppConfig.loginReal) { + await Supabase.initialize( + url: AppConfig.supabaseUrl, + publishableKey: AppConfig.supabaseAnonKey, + ); + authState.restaurar(); + } + runApp(const AdminApp()); +} + +class AdminApp extends StatelessWidget { + const AdminApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp.router( + title: 'UTB | Tour Virtual — Panel de administración', + debugShowCheckedModeBanner: false, + theme: AppTheme.dark(), + darkTheme: AppTheme.dark(), + themeMode: ThemeMode.dark, + routerConfig: appRouter, + ); + } +} diff --git a/apps/admin_flutter/lib/ui/auth/login_screen.dart b/apps/admin_flutter/lib/ui/auth/login_screen.dart new file mode 100644 index 0000000..a234437 --- /dev/null +++ b/apps/admin_flutter/lib/ui/auth/login_screen.dart @@ -0,0 +1,211 @@ +import 'package:flutter/material.dart'; + +import '../../core/auth/auth_state.dart'; +import '../../core/config.dart'; +import '../../core/theme/app_theme.dart'; + +/// A.1 Inicio de sesión: Supabase Auth, o simulado si no hay clave. +class LoginScreen extends StatefulWidget { + const LoginScreen({super.key}); + + @override + State createState() => _LoginScreenState(); +} + +class _LoginScreenState extends State { + final _formKey = GlobalKey(); + final _correo = TextEditingController(); + final _clave = TextEditingController(); + bool _verClave = false; + bool _cargando = false; + String? _error; + + @override + void dispose() { + _correo.dispose(); + _clave.dispose(); + super.dispose(); + } + + String? _validarCorreo(String? value) { + final v = (value ?? '').trim(); + if (v.isEmpty) return 'El correo es obligatorio'; + final formato = RegExp(r'^[^@\s]+@[^@\s]+\.[^@\s]+$'); + if (!formato.hasMatch(v)) return 'Escribe un correo válido'; + if (!v.toLowerCase().endsWith(AuthState.dominio)) { + return 'Usa tu correo institucional ${AuthState.dominio}'; + } + return null; + } + + Future _ingresarConCorreo() async { + if (!_formKey.currentState!.validate()) return; + setState(() { + _cargando = true; + _error = null; + }); + final error = await authState.iniciarConCorreo(_correo.text, _clave.text); + if (!mounted) return; + setState(() { + _cargando = false; + _error = error; + }); + } + + @override + Widget build(BuildContext context) { + return Scaffold( + body: Container( + decoration: const BoxDecoration( + gradient: LinearGradient( + begin: Alignment.topCenter, + end: Alignment.bottomCenter, + colors: [AppColors.navy, AppColors.background], + ), + ), + child: Center( + child: SingleChildScrollView( + padding: const EdgeInsets.all(24), + child: ConstrainedBox( + constraints: const BoxConstraints(maxWidth: 440), + child: Card( + child: Padding( + padding: const EdgeInsets.all(32), + child: Form( + key: _formKey, + child: Column( + mainAxisSize: MainAxisSize.min, + crossAxisAlignment: CrossAxisAlignment.stretch, + children: [ + const Text.rich( + TextSpan( + children: [ + TextSpan( + text: 'UTB', + style: TextStyle( + fontWeight: FontWeight.w800, + fontSize: 26, + ), + ), + TextSpan( + text: ' | Tour Virtual', + style: TextStyle( + color: AppColors.textSecondary, + fontSize: 20, + ), + ), + ], + ), + textAlign: TextAlign.center, + ), + const SizedBox(height: 20), + const Text( + 'Panel de administración', + textAlign: TextAlign.center, + style: TextStyle( + fontSize: 22, + fontWeight: FontWeight.bold, + ), + ), + const SizedBox(height: 24), + TextFormField( + controller: _correo, + keyboardType: TextInputType.emailAddress, + validator: _validarCorreo, + decoration: const InputDecoration( + labelText: 'Correo institucional', + hintText: 'nombre@utb.edu.co', + prefixIcon: Icon(Icons.mail_outline), + ), + ), + const SizedBox(height: 14), + TextFormField( + controller: _clave, + obscureText: !_verClave, + validator: (v) => (v == null || v.isEmpty) + ? 'La contraseña es obligatoria' + : null, + onFieldSubmitted: (_) => _ingresarConCorreo(), + decoration: InputDecoration( + labelText: 'Contraseña', + prefixIcon: const Icon(Icons.lock_outline), + suffixIcon: IconButton( + tooltip: _verClave ? 'Ocultar' : 'Mostrar', + icon: Icon( + _verClave + ? Icons.visibility_off_outlined + : Icons.visibility_outlined, + ), + onPressed: () => + setState(() => _verClave = !_verClave), + ), + ), + ), + if (_error != null) ...[ + const SizedBox(height: 14), + Container( + padding: const EdgeInsets.all(12), + decoration: BoxDecoration( + color: AppColors.danger.withValues(alpha: 0.12), + borderRadius: BorderRadius.circular(8), + border: Border.all(color: AppColors.danger), + ), + child: Row( + children: [ + const Icon( + Icons.error_outline, + color: AppColors.danger, + size: 20, + ), + const SizedBox(width: 10), + Expanded(child: Text(_error!)), + ], + ), + ), + ], + const SizedBox(height: 20), + ElevatedButton( + onPressed: _cargando ? null : _ingresarConCorreo, + child: _cargando + ? const SizedBox( + height: 20, + width: 20, + child: CircularProgressIndicator( + strokeWidth: 2, + ), + ) + : const Text('Iniciar sesión'), + ), + const SizedBox(height: 20), + const Text( + 'Solo personal autorizado de la UTB', + textAlign: TextAlign.center, + style: TextStyle( + color: AppColors.textSecondary, + fontSize: 12, + ), + ), + if (!AppConfig.loginReal) ...[ + const SizedBox(height: 10), + const Text( + 'Modo de prueba: usa cualquier correo @utb.edu.co ' + 'y cualquier contraseña.', + textAlign: TextAlign.center, + style: TextStyle( + color: AppColors.warning, + fontSize: 12, + ), + ), + ], + ], + ), + ), + ), + ), + ), + ), + ), + ), + ); + } +} diff --git a/apps/admin_flutter/lib/ui/dashboard/dashboard_screen.dart b/apps/admin_flutter/lib/ui/dashboard/dashboard_screen.dart new file mode 100644 index 0000000..af3bb14 --- /dev/null +++ b/apps/admin_flutter/lib/ui/dashboard/dashboard_screen.dart @@ -0,0 +1,538 @@ +import 'package:flutter/material.dart'; +import 'package:go_router/go_router.dart'; + +import '../../core/theme/app_theme.dart'; +import '../../data/models/poi.dart'; +import '../../data/repositories/repositories.dart'; +import '../../domain/reglas.dart'; +import '../widgets/common.dart'; + +/// B.1 Resumen general. Todas las cifras salen de la lista de POIs. +class DashboardScreen extends StatefulWidget { + const DashboardScreen({super.key}); + + @override + State createState() => _DashboardScreenState(); +} + +class _DashboardScreenState extends State { + late Future> _future; + late Future _metricas; + late Future?> _actividad; + + @override + void initState() { + super.initState(); + _cargar(); + } + + /// Métricas y actividad no deben tumbar el inicio si fallan: en error + /// devuelven null y su tarjeta lo dice. + void _cargar() { + _future = poiRepository.listar(); + final hoy = DateTime.now(); + _metricas = panelRepository + .metricas(desde: hoy.subtract(const Duration(days: 6)), hasta: hoy) + .then((m) => m, onError: (_) => null); + _actividad = panelRepository + .actividad(tamano: 6) + .then?>((a) => a, onError: (_) => null); + } + + void _reload() => setState(_cargar); + + @override + Widget build(BuildContext context) { + return ScrollPage( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + const PageHeader( + icon: Icons.home_outlined, + title: 'Inicio', + subtitle: 'Resumen general del Tour Virtual UTB', + ), + const SizedBox(height: 24), + FutureBuilder>( + future: _future, + builder: (context, snapshot) { + if (snapshot.connectionState != ConnectionState.done) { + return const _DashboardSkeleton(); + } + if (snapshot.hasError) { + return ErrorCard( + message: '${snapshot.error}', + onRetry: _reload, + ); + } + return _DashboardContent( + pois: snapshot.data ?? const [], + metricas: _metricas, + actividad: _actividad, + ); + }, + ), + ], + ), + ); + } +} + +class _DashboardSkeleton extends StatelessWidget { + const _DashboardSkeleton(); + + @override + Widget build(BuildContext context) { + return const Column( + children: [ + Row( + children: [ + Expanded(child: SkeletonBox(height: 168)), + SizedBox(width: 16), + Expanded(child: SkeletonBox(height: 168)), + SizedBox(width: 16), + Expanded(child: SkeletonBox(height: 168)), + SizedBox(width: 16), + Expanded(child: SkeletonBox(height: 168)), + ], + ), + SizedBox(height: 24), + SkeletonBox(height: 220), + ], + ); + } +} + +class _DashboardContent extends StatelessWidget { + const _DashboardContent({ + required this.pois, + required this.metricas, + required this.actividad, + }); + + final List pois; + final Future metricas; + final Future?> actividad; + + String _faltante(Poi poi) { + final partes = []; + if (poi.escenaPrincipalId == null) partes.add('Foto 360°'); + if (poi.descripcion == null || poi.descripcion!.trim().isEmpty) { + partes.add('Descripción'); + } + return partes.join(', '); + } + + @override + Widget build(BuildContext context) { + final total = pois.length; + final activos = pois.where((p) => p.activo).length; + final porcentaje = total == 0 ? 0 : (activos * 100 / total).round(); + final con360 = pois.where((p) => p.escenaPrincipalId != null).length; + final pendientes = pois.where((p) => !poiCompleto(p)).toList(); + + final tarjetas = [ + _MetricCard( + icon: Icons.location_on_outlined, + color: AppColors.primary, + title: 'POIs activos', + value: '$activos/$total', + subtitle: '$porcentaje% activos', + progress: total == 0 ? 0.0 : activos / total, + onTap: () => context.go('/pois?estado=activos'), + ), + FutureBuilder( + future: metricas, + builder: (context, snap) { + final m = snap.data; + final cargando = snap.connectionState != ConnectionState.done; + return _MetricCard( + icon: Icons.trending_up, + color: AppColors.success, + title: 'Visitas esta semana', + value: cargando || m == null ? '—' : '${m.visitas}', + subtitle: cargando + ? 'Cargando…' + : m == null + ? 'No se pudieron leer las métricas' + : '${m.eventos} eventos en 7 días', + onTap: () => context.go('/metricas'), + ); + }, + ), + _MetricCard( + icon: Icons.threesixty, + color: AppColors.purple, + title: 'Escenas 360° cargadas', + value: '$con360', + subtitle: 'de $total POIs', + onTap: () => context.go('/pois'), + ), + _MetricCard( + icon: Icons.warning_amber_rounded, + color: AppColors.warning, + title: 'Contenido pendiente', + value: '${pendientes.length}', + subtitle: 'POIs requieren atención', + onTap: () => context.go('/pois'), + ), + ]; + + return Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + LayoutBuilder( + builder: (context, constraints) { + const gap = 16.0; + final columnas = constraints.maxWidth >= 1000 ? 4 : 2; + final ancho = (constraints.maxWidth - gap * (columnas - 1)) / columnas; + return Wrap( + spacing: gap, + runSpacing: gap, + children: [ + for (final tarjeta in tarjetas) + SizedBox(width: ancho, height: 168, child: tarjeta), + ], + ); + }, + ), + const SizedBox(height: 24), + LayoutBuilder( + builder: (context, constraints) { + final acciones = _QuickActionsCard(); + final actividad = _ActivityCard(futuro: this.actividad); + if (constraints.maxWidth >= 900) { + return Row( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Expanded(flex: 1, child: acciones), + const SizedBox(width: 16), + Expanded(flex: 2, child: actividad), + ], + ); + } + return Column( + children: [acciones, const SizedBox(height: 16), actividad], + ); + }, + ), + const SizedBox(height: 24), + _AttentionCard(pois: pendientes, faltante: _faltante), + ], + ); + } +} + +class _MetricCard extends StatelessWidget { + const _MetricCard({ + required this.icon, + required this.color, + required this.title, + required this.value, + required this.subtitle, + required this.onTap, + this.progress, + }); + + final IconData icon; + final Color color; + final String title; + final String value; + final String subtitle; + final VoidCallback onTap; + final double? progress; + + @override + Widget build(BuildContext context) { + return Card( + clipBehavior: Clip.antiAlias, + child: InkWell( + onTap: onTap, + child: Padding( + padding: const EdgeInsets.all(16), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Row( + children: [ + Container( + padding: const EdgeInsets.all(8), + decoration: BoxDecoration( + color: color.withValues(alpha: 0.15), + borderRadius: BorderRadius.circular(10), + ), + child: Icon(icon, color: color, size: 20), + ), + const Spacer(), + const Icon(Icons.chevron_right, + color: AppColors.textSecondary), + ], + ), + const Spacer(), + Text(title, style: const TextStyle(color: AppColors.textSecondary)), + Text( + value, + style: const TextStyle(fontSize: 28, fontWeight: FontWeight.bold), + ), + // Siempre se reserva el alto de la barra para que los títulos de + // todas las tarjetas queden a la misma altura. + if (progress == null) + const SizedBox(height: 14) + else + Padding( + padding: const EdgeInsets.symmetric(vertical: 4), + child: ClipRRect( + borderRadius: BorderRadius.circular(4), + child: LinearProgressIndicator( + value: progress, + minHeight: 6, + backgroundColor: AppColors.border, + color: color, + ), + ), + ), + Text( + subtitle, + maxLines: 1, + overflow: TextOverflow.ellipsis, + style: const TextStyle( + fontSize: 12, + color: AppColors.textSecondary, + ), + ), + ], + ), + ), + ), + ); + } +} + +class _QuickActionsCard extends StatelessWidget { + @override + Widget build(BuildContext context) { + return AppCard( + child: Column( + crossAxisAlignment: CrossAxisAlignment.stretch, + children: [ + const Text( + 'Acciones rápidas', + style: TextStyle(fontSize: 16, fontWeight: FontWeight.bold), + ), + const SizedBox(height: 4), + const Text( + 'Gestiona tu contenido de forma ágil', + style: TextStyle(color: AppColors.textSecondary), + ), + const SizedBox(height: 16), + ElevatedButton.icon( + onPressed: () => context.go('/pois/nuevo'), + icon: const Icon(Icons.add), + label: const Text('Nuevo POI'), + ), + const SizedBox(height: 10), + OutlinedButton.icon( + onPressed: () => context.go('/multimedia'), + icon: const Icon(Icons.cloud_upload_outlined), + label: const Text('Subir multimedia'), + ), + const SizedBox(height: 10), + OutlinedButton.icon( + onPressed: () => context.go('/metricas'), + icon: const Icon(Icons.bar_chart), + label: const Text('Ver métricas'), + ), + ], + ), + ); + } +} + +/// Últimos cambios de la tabla auditoria (GET /api/admin/actividad). +class _ActivityCard extends StatelessWidget { + const _ActivityCard({required this.futuro}); + + final Future?> futuro; + + static const Map _entidades = { + 'pois': 'POI', + 'escenas': 'escena', + 'hotspots': 'hotspot', + 'medios': 'medio', + 'rutas': 'ruta', + 'perfiles': 'perfil', + }; + + static (IconData, String) _accion(String accion) => switch (accion) { + 'insert' => (Icons.add_circle_outline, 'Creó'), + 'delete' => (Icons.delete_outline, 'Eliminó'), + _ => (Icons.edit_outlined, 'Editó'), + }; + + static String _hace(DateTime fecha) { + final d = DateTime.now().difference(fecha); + if (d.inMinutes < 1) return 'ahora'; + if (d.inMinutes < 60) return 'hace ${d.inMinutes} min'; + if (d.inHours < 24) return 'hace ${d.inHours} h'; + if (d.inDays < 30) return 'hace ${d.inDays} d'; + return '${fecha.day}/${fecha.month}/${fecha.year}'; + } + + Widget _item(Actividad a) { + final (icono, verbo) = _accion(a.accion); + final entidad = _entidades[a.entidad.toLowerCase()] ?? a.entidad; + return Padding( + padding: const EdgeInsets.symmetric(vertical: 8), + child: Row( + children: [ + Container( + padding: const EdgeInsets.all(8), + decoration: BoxDecoration( + color: AppColors.primary.withValues(alpha: 0.15), + borderRadius: BorderRadius.circular(8), + ), + child: Icon(icono, size: 18, color: AppColors.primary), + ), + const SizedBox(width: 12), + Expanded( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + '$verbo $entidad${a.entidadId == null ? '' : ' #${a.entidadId}'}', + style: const TextStyle(fontWeight: FontWeight.w600), + ), + Text( + a.actorCorreo ?? 'Sistema o clave de administración', + style: const TextStyle( + fontSize: 12, + color: AppColors.textSecondary, + ), + ), + ], + ), + ), + Text( + _hace(a.fecha), + style: const TextStyle( + fontSize: 12, + color: AppColors.textSecondary, + ), + ), + ], + ), + ); + } + + @override + Widget build(BuildContext context) { + return AppCard( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + const Text( + 'Actividad reciente', + style: TextStyle(fontSize: 16, fontWeight: FontWeight.bold), + ), + const SizedBox(height: 4), + const Text( + 'Últimos cambios en el sistema', + style: TextStyle(color: AppColors.textSecondary), + ), + const SizedBox(height: 12), + FutureBuilder?>( + future: futuro, + builder: (context, snap) { + if (snap.connectionState != ConnectionState.done) { + return const SkeletonBox(height: 120); + } + final items = snap.data; + if (items == null) { + return const EmptyState( + message: 'No se pudo leer el registro de cambios'); + } + if (items.isEmpty) { + return const EmptyState(message: 'Sin cambios registrados'); + } + return Column(children: [for (final a in items) _item(a)]); + }, + ), + ], + ), + ); + } +} + +class _AttentionCard extends StatelessWidget { + const _AttentionCard({required this.pois, required this.faltante}); + + final List pois; + final String Function(Poi) faltante; + + @override + Widget build(BuildContext context) { + final visibles = pois.take(5).toList(); + return AppCard( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Row( + children: [ + const Expanded( + child: Text( + 'POIs que necesitan atención', + style: TextStyle(fontSize: 16, fontWeight: FontWeight.bold), + ), + ), + if (pois.length > 5) + TextButton( + onPressed: () => context.go('/pois'), + child: const Text('Ver todos'), + ), + ], + ), + const SizedBox(height: 8), + if (visibles.isEmpty) + const EmptyState( + message: 'Todo el contenido está completo', + icon: Icons.check_circle_outline, + ) + else + for (final poi in visibles) + Container( + padding: const EdgeInsets.symmetric(vertical: 10), + decoration: const BoxDecoration( + border: Border(top: BorderSide(color: AppColors.border)), + ), + child: Row( + children: [ + Expanded( + flex: 3, + child: Text( + poi.nombre, + overflow: TextOverflow.ellipsis, + style: const TextStyle(fontWeight: FontWeight.w600), + ), + ), + Expanded( + flex: 3, + child: Text( + faltante(poi), + overflow: TextOverflow.ellipsis, + style: const TextStyle(color: AppColors.textSecondary), + ), + ), + const StatusBadge('En preparación', color: AppColors.warning), + const SizedBox(width: 16), + OutlinedButton( + onPressed: () => context.go('/multimedia?poi=${poi.id}'), + child: const Text('Completar'), + ), + ], + ), + ), + ], + ), + ); + } +} diff --git a/apps/admin_flutter/lib/ui/layout/admin_layout.dart b/apps/admin_flutter/lib/ui/layout/admin_layout.dart new file mode 100644 index 0000000..ac60187 --- /dev/null +++ b/apps/admin_flutter/lib/ui/layout/admin_layout.dart @@ -0,0 +1,225 @@ +import 'package:flutter/material.dart'; +import 'package:go_router/go_router.dart'; + +import '../../core/auth/auth_state.dart'; +import '../../core/theme/app_theme.dart'; + +class _NavItem { + const _NavItem(this.label, this.icon, this.selectedIcon, this.path, this.prefix); + + final String label; + final IconData icon; + final IconData selectedIcon; + final String path; + final String prefix; +} + +const List<_NavItem> _items = [ + _NavItem('Inicio', Icons.home_outlined, Icons.home, '/inicio', '/inicio'), + _NavItem('Gestión de POIs', Icons.location_on_outlined, Icons.location_on, + '/pois', '/pois'), + _NavItem('Subir Multimedia', Icons.cloud_upload_outlined, Icons.cloud_upload, + '/multimedia', '/multimedia'), + _NavItem('Métricas y Analítica', Icons.bar_chart_outlined, Icons.bar_chart, + '/metricas', '/metricas'), + _NavItem('Configuración', Icons.settings_outlined, Icons.settings, + '/configuracion/cuenta', '/configuracion'), +]; + +/// Estructura común: barra superior fija + menú lateral persistente + +/// área de contenido (guía, sección 3.1). Bajo 1280 px el menú muestra +/// solo íconos. +class AdminLayout extends StatelessWidget { + const AdminLayout({super.key, required this.location, required this.child}); + + final String location; + final Widget child; + + @override + Widget build(BuildContext context) { + final extended = MediaQuery.sizeOf(context).width >= 1280; + return Scaffold( + body: Column( + children: [ + const _TopBar(), + Expanded( + child: Row( + children: [ + _Sidebar(location: location, extended: extended), + const VerticalDivider( + width: 1, + thickness: 1, + color: AppColors.border, + ), + Expanded(child: child), + ], + ), + ), + ], + ), + ); + } +} + +class _TopBar extends StatelessWidget { + const _TopBar(); + + @override + Widget build(BuildContext context) { + return Container( + height: 64, + padding: const EdgeInsets.symmetric(horizontal: 24), + decoration: const BoxDecoration( + gradient: LinearGradient( + colors: [AppColors.navy, AppColors.background], + ), + border: Border(bottom: BorderSide(color: AppColors.border)), + ), + child: ListenableBuilder( + listenable: authState, + builder: (context, _) { + return Row( + children: [ + Expanded( + child: Align( + alignment: Alignment.centerLeft, + child: Row( + mainAxisSize: MainAxisSize.min, + children: [ + const Icon(Icons.account_circle_outlined, size: 26), + const SizedBox(width: 10), + Flexible( + child: Text( + 'Bienvenido, ${authState.nombre}', + overflow: TextOverflow.ellipsis, + style: const TextStyle(fontWeight: FontWeight.w600), + ), + ), + ], + ), + ), + ), + Row( + mainAxisSize: MainAxisSize.min, + children: [ + Image.asset( + 'assets/logo_utb.png', + height: 30, + errorBuilder: (context, error, stack) => const Text( + 'UTB', + style: TextStyle( + fontWeight: FontWeight.w800, + fontSize: 18, + ), + ), + ), + const Text( + ' | Tour Virtual', + style: TextStyle( + color: AppColors.textSecondary, + fontSize: 16, + ), + ), + ], + ), + Expanded( + child: Align( + alignment: Alignment.centerRight, + child: OutlinedButton.icon( + onPressed: authState.cerrarSesion, + icon: const Icon(Icons.logout, size: 18), + label: const Text('Cerrar sesión'), + ), + ), + ), + ], + ); + }, + ), + ); + } +} + +class _Sidebar extends StatelessWidget { + const _Sidebar({required this.location, required this.extended}); + + final String location; + final bool extended; + + @override + Widget build(BuildContext context) { + return Container( + width: extended ? 248 : 76, + color: AppColors.background, + padding: const EdgeInsets.all(12), + child: Column( + children: [ + for (final item in _items) + Padding( + padding: const EdgeInsets.only(bottom: 6), + child: _SidebarItem( + item: item, + selected: location.startsWith(item.prefix), + extended: extended, + ), + ), + ], + ), + ); + } +} + +class _SidebarItem extends StatelessWidget { + const _SidebarItem({ + required this.item, + required this.selected, + required this.extended, + }); + + final _NavItem item; + final bool selected; + final bool extended; + + @override + Widget build(BuildContext context) { + final color = selected ? Colors.white : AppColors.textSecondary; + final content = Material( + color: selected ? AppColors.primary : Colors.transparent, + borderRadius: BorderRadius.circular(10), + child: InkWell( + borderRadius: BorderRadius.circular(10), + onTap: () => context.go(item.path), + child: Padding( + padding: EdgeInsets.symmetric( + horizontal: extended ? 14 : 0, + vertical: 13, + ), + child: extended + ? Row( + children: [ + Icon(selected ? item.selectedIcon : item.icon, + color: color, size: 22), + const SizedBox(width: 12), + Expanded( + child: Text( + item.label, + overflow: TextOverflow.ellipsis, + style: TextStyle( + color: color, + fontWeight: + selected ? FontWeight.w700 : FontWeight.w500, + ), + ), + ), + ], + ) + : Center( + child: Icon(selected ? item.selectedIcon : item.icon, + color: color, size: 22), + ), + ), + ), + ); + return extended ? content : Tooltip(message: item.label, child: content); + } +} diff --git a/apps/admin_flutter/lib/ui/mapa/mapa_campus.dart b/apps/admin_flutter/lib/ui/mapa/mapa_campus.dart new file mode 100644 index 0000000..2fc9605 --- /dev/null +++ b/apps/admin_flutter/lib/ui/mapa/mapa_campus.dart @@ -0,0 +1,288 @@ +import 'dart:math'; + +import 'package:flutter/material.dart'; + +import '../../core/theme/app_theme.dart'; +import '../../data/models/poi.dart'; +import '../../data/plano_campus.dart'; + +/// Colores del plano (los mismos de la app móvil, `ColoresPlano`). +abstract final class _C { + static const tierra = Color(0xFFF2EFE9); + static const zona = Color(0xFFE0DFDF); + static const campus = Color(0xFFFFFFE5); + static const bordeCampus = Color(0xFFD4C59C); + static const verde = Color(0xFFCDEBB0); + static const arboles = Color(0xFFADD19E); + static const agua = Color(0xFFAAD3DF); + static const parqueadero = Color(0xFFEEEEEE); + static const bordeParqueadero = Color(0xFFCCCCCC); + static const cancha = Color(0xFFAAE0CB); + static const bordeCancha = Color(0xFF88C9AE); + static const plazoleta = Color(0xFFDDDDE8); + static const edificio = Color(0xFFD9D0C9); + static const bordeEdificio = Color(0xFFC4B6AB); + static const via = Color(0xFFFFFFFF); + static const bordeVia = Color(0xFFBBBBBB); + static const viaPrincipal = Color(0xFFFCD6A4); + static const bordeViaPrincipal = Color(0xFFC99E64); + static const sendero = Color(0xFFFA8072); +} + +/// Mapa del campus con los POI como pines. +/// +/// - [pois]: los que se dibujan (solo los que tienen lat/lng dentro del plano). +/// - [seleccionado]: id del POI resaltado. +/// - [alColocar]: si no es nulo, tocar o arrastrar sobre el mapa devuelve la +/// posición (lat, lng) elegida. Con nulo el mapa es de solo lectura. +/// - [alTocarPoi]: se llama al tocar un pin. +class MapaCampus extends StatefulWidget { + const MapaCampus({ + super.key, + required this.pois, + this.seleccionado, + this.pinNuevo, + this.alColocar, + this.alTocarPoi, + this.alto = 340, + }); + + final List pois; + final int? seleccionado; + + /// Pin extra (por ejemplo el del POI que se está creando), en (lat, lng). + final (double, double)? pinNuevo; + final void Function(double lat, double lng)? alColocar; + final ValueChanged? alTocarPoi; + final double alto; + + @override + State createState() => _MapaCampusState(); +} + +class _MapaCampusState extends State { + late final Future _plano = PlanoCampus.cargar(); + + @override + Widget build(BuildContext context) { + return Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + FutureBuilder( + future: _plano, + builder: (context, snap) { + if (snap.hasError) { + return SizedBox( + height: widget.alto, + child: const Center( + child: Text( + 'No se pudo cargar el plano del campus ' + '(assets/campus_osm.geojson).', + style: TextStyle(color: AppColors.textSecondary), + ), + ), + ); + } + if (!snap.hasData) { + return SizedBox( + height: widget.alto, + child: const Center(child: CircularProgressIndicator()), + ); + } + return _lienzo(snap.data!); + }, + ), + const SizedBox(height: 6), + const Text( + '© colaboradores de OpenStreetMap (ODbL)', + style: TextStyle(fontSize: 11, color: AppColors.textSecondary), + ), + ], + ); + } + + Widget _lienzo(PlanoCampus plano) { + return LayoutBuilder(builder: (context, constraints) { + // El lienzo respeta la proporción del plano; se centra en el espacio. + var ancho = constraints.maxWidth; + var alto = ancho / plano.proporcion; + if (alto > widget.alto) { + alto = widget.alto; + ancho = alto * plano.proporcion; + } + + void colocar(Offset p) { + final f = widget.alColocar; + if (f == null) return; + final n = Offset((p.dx / ancho).clamp(0.0, 1.0).toDouble(), + (p.dy / alto).clamp(0.0, 1.0).toDouble()); + final (lat, lng) = plano.aLatLng(n); + f(lat, lng); + } + + final pines = []; + for (final poi in widget.pois) { + if (poi.lat == null || poi.lng == null) continue; + final n = plano.normalizar(poi.lat!, poi.lng!); + if (n == null) continue; + final activo = poi.id == widget.seleccionado; + final color = AppColors.categoria(poi.categoria); + final tam = activo ? 18.0 : 12.0; + pines.add(Positioned( + left: n.dx * ancho - tam / 2, + top: n.dy * alto - tam / 2, + child: Tooltip( + message: poi.nombre, + child: GestureDetector( + onTap: widget.alTocarPoi == null + ? null + : () => widget.alTocarPoi!(poi), + child: Container( + width: tam, + height: tam, + decoration: BoxDecoration( + color: color, + shape: BoxShape.circle, + border: Border.all( + color: Colors.white, width: activo ? 3 : 2), + boxShadow: const [ + BoxShadow(color: Color(0x66000000), blurRadius: 3), + ], + ), + ), + ), + ), + )); + } + final nuevo = widget.pinNuevo; + if (nuevo != null) { + final n = plano.normalizar(nuevo.$1, nuevo.$2); + if (n != null) { + pines.add(Positioned( + left: n.dx * ancho - 16, + top: n.dy * alto - 32, + child: const Icon(Icons.location_on, + size: 32, color: AppColors.danger), + )); + } + } + + return Center( + child: GestureDetector( + onTapDown: widget.alColocar == null + ? null + : (d) => colocar(d.localPosition), + onPanUpdate: widget.alColocar == null + ? null + : (d) => colocar(d.localPosition), + child: MouseRegion( + cursor: widget.alColocar == null + ? MouseCursor.defer + : SystemMouseCursors.precise, + child: ClipRRect( + borderRadius: BorderRadius.circular(10), + child: SizedBox( + width: ancho, + height: alto, + child: Stack( + children: [ + Positioned.fill( + child: CustomPaint(painter: _PintorPlano(plano)), + ), + ...pines, + ], + ), + ), + ), + ), + ), + ); + }); + } +} + +class _PintorPlano extends CustomPainter { + const _PintorPlano(this.plano); + + final PlanoCampus plano; + + @override + void paint(Canvas canvas, Size size) { + final pxPorMetro = size.width / plano.anchoMetros; + double ancho(double metros, {double minimo = 1}) => + max(metros * pxPorMetro, minimo); + + Path trazo(RasgoPlano r) => Path() + ..addPolygon([ + for (final p in r.puntos) Offset(p.dx * size.width, p.dy * size.height), + ], r.esArea); + + void areas(ClaseRasgo clase, Color relleno, + {Color? borde, double grosor = 1}) { + final pintura = Paint()..color = relleno; + final contorno = borde == null + ? null + : (Paint() + ..style = PaintingStyle.stroke + ..strokeWidth = grosor + ..strokeJoin = StrokeJoin.round + ..color = borde); + for (final r in plano.rasgos[clase]!) { + if (!r.esArea) continue; + final camino = trazo(r); + canvas.drawPath(camino, pintura); + if (contorno != null) canvas.drawPath(camino, contorno); + } + } + + void lineas(ClaseRasgo clase, Color color, double grosor, + {double? trazoDe, double? huecoDe, StrokeCap punta = StrokeCap.round}) { + final pintura = Paint() + ..style = PaintingStyle.stroke + ..strokeWidth = grosor + ..strokeCap = punta + ..strokeJoin = StrokeJoin.round + ..color = color; + for (final r in plano.rasgos[clase]!) { + if (r.esArea) continue; + final camino = trazo(r); + if (trazoDe == null || huecoDe == null) { + canvas.drawPath(camino, pintura); + continue; + } + for (final m in camino.computeMetrics()) { + for (var d = 0.0; d < m.length; d += trazoDe + huecoDe) { + canvas.drawPath(m.extractPath(d, d + trazoDe), pintura); + } + } + } + } + + canvas.drawRect(Offset.zero & size, Paint()..color = _C.tierra); + areas(ClaseRasgo.zona, _C.zona); + areas(ClaseRasgo.campus, _C.campus, + borde: _C.bordeCampus, grosor: ancho(1.5)); + areas(ClaseRasgo.verde, _C.verde); + areas(ClaseRasgo.arboles, _C.arboles); + areas(ClaseRasgo.agua, _C.agua); + areas(ClaseRasgo.parqueadero, _C.parqueadero, borde: _C.bordeParqueadero); + areas(ClaseRasgo.cancha, _C.cancha, borde: _C.bordeCancha); + areas(ClaseRasgo.plazoleta, _C.plazoleta); + + lineas(ClaseRasgo.viaPrincipal, _C.bordeViaPrincipal, + ancho(8 + 2 * 1.2, minimo: 3)); + lineas(ClaseRasgo.via, _C.bordeVia, ancho(5 + 2 * 1.2, minimo: 3)); + lineas(ClaseRasgo.viaPrincipal, _C.viaPrincipal, ancho(8, minimo: 2)); + lineas(ClaseRasgo.via, _C.via, ancho(5, minimo: 2)); + lineas(ClaseRasgo.sendero, _C.sendero, ancho(1.4), + trazoDe: ancho(2.5, minimo: 3), huecoDe: ancho(1.5, minimo: 2)); + lineas(ClaseRasgo.escalera, _C.sendero, ancho(2.6, minimo: 3), + trazoDe: ancho(0.6), + huecoDe: ancho(0.5), + punta: StrokeCap.butt); + areas(ClaseRasgo.edificio, _C.edificio, borde: _C.bordeEdificio); + } + + @override + bool shouldRepaint(_PintorPlano old) => old.plano != plano; +} diff --git a/apps/admin_flutter/lib/ui/metrics/metrics_screen.dart b/apps/admin_flutter/lib/ui/metrics/metrics_screen.dart new file mode 100644 index 0000000..1ea1fb8 --- /dev/null +++ b/apps/admin_flutter/lib/ui/metrics/metrics_screen.dart @@ -0,0 +1,317 @@ +import 'package:flutter/material.dart'; + +import '../../core/theme/app_theme.dart'; +import '../../data/repositories/repositories.dart'; +import '../widgets/common.dart'; + +/// E.1 Panel de métricas. +/// +/// Lee GET /api/admin/metricas, que resume la tabla `eventos` de Supabase +/// (migración 0003). Los visitantes son anónimos: «visitas» son sesiones +/// distintas, no personas. +class MetricsScreen extends StatefulWidget { + const MetricsScreen({super.key}); + + @override + State createState() => _MetricsScreenState(); +} + +class _MetricsScreenState extends State { + int _dias = 7; + late Future _futuro; + + static const List<(String, String, IconData)> _kpis = [ + ('Aperturas del mapa', 'virtual_map_open', Icons.map_outlined), + ('Escenas 360° vistas', 'scene_viewed', Icons.threesixty), + ('Hotspots tocados', 'hotspot_tapped', Icons.touch_app_outlined), + ('Medios reproducidos', 'poi_media_played', Icons.play_circle_outline), + ('Recorridos completados', 'tour_completed', Icons.flag_outlined), + ]; + + @override + void initState() { + super.initState(); + _cargar(); + } + + void _cargar() { + final hoy = DateTime.now(); + _futuro = panelRepository.metricas( + desde: hoy.subtract(Duration(days: _dias - 1)), + hasta: hoy, + ); + } + + @override + Widget build(BuildContext context) { + return ScrollPage( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + const PageHeader( + icon: Icons.bar_chart, + title: 'Métricas y Analítica', + subtitle: 'Conoce el uso y rendimiento del tour virtual', + ), + const SizedBox(height: 20), + Wrap( + spacing: 8, + children: [ + for (final d in const [7, 30, 90]) + ChoiceChip( + label: Text('Últimos $d días'), + selected: _dias == d, + selectedColor: AppColors.primary, + onSelected: (_) => setState(() { + _dias = d; + _cargar(); + }), + ), + ], + ), + const SizedBox(height: 20), + FutureBuilder( + future: _futuro, + builder: (context, snap) { + if (snap.hasError) { + return ErrorCard( + message: 'No se pudieron cargar las métricas: ${snap.error}', + onRetry: () => setState(_cargar), + ); + } + if (!snap.hasData) return const SkeletonBox(height: 400); + return _contenido(snap.data!); + }, + ), + ], + ), + ); + } + + Widget _contenido(Metricas m) { + return Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + LayoutBuilder( + builder: (context, constraints) { + const gap = 16.0; + final columnas = constraints.maxWidth >= 1100 + ? 6 + : constraints.maxWidth >= 700 + ? 3 + : 2; + final ancho = + (constraints.maxWidth - gap * (columnas - 1)) / columnas; + return Wrap( + spacing: gap, + runSpacing: gap, + children: [ + SizedBox( + width: ancho, + height: 130, + child: _Kpi('Visitas', m.visitas, Icons.people_outline, + 'sesiones distintas'), + ), + for (final (titulo, evento, icono) in _kpis) + SizedBox( + width: ancho, + height: 130, + child: _Kpi(titulo, m.eventosDe(evento), icono, evento), + ), + ], + ); + }, + ), + const SizedBox(height: 20), + AppCard( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + const Text( + 'Visitas por día', + style: TextStyle(fontSize: 16, fontWeight: FontWeight.bold), + ), + const SizedBox(height: 16), + if (m.eventos == 0) + const EmptyState(message: 'Sin datos de uso en este rango') + else + _GraficaDias(m.porDia), + ], + ), + ), + const SizedBox(height: 20), + AppCard( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + const Text( + 'Lugares más visitados', + style: TextStyle(fontSize: 16, fontWeight: FontWeight.bold), + ), + const SizedBox(height: 16), + if (m.poisMasVistos.isEmpty) + const EmptyState(message: 'Sin datos de uso en este rango') + else + for (final (i, p) in m.poisMasVistos.indexed) + _FilaPoi(i + 1, p, m.poisMasVistos.first.visitas), + ], + ), + ), + ], + ); + } +} + +class _Kpi extends StatelessWidget { + const _Kpi(this.titulo, this.valor, this.icono, this.detalle); + + final String titulo; + final int valor; + final IconData icono; + final String detalle; + + @override + Widget build(BuildContext context) { + return AppCard( + padding: const EdgeInsets.all(16), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Row( + children: [ + Icon(icono, size: 20, color: AppColors.primary), + const SizedBox(width: 8), + Expanded( + child: Text( + titulo, + overflow: TextOverflow.ellipsis, + style: const TextStyle(color: AppColors.textSecondary), + ), + ), + ], + ), + const SizedBox(height: 8), + Text( + '$valor', + style: const TextStyle(fontSize: 26, fontWeight: FontWeight.bold), + ), + const Spacer(), + Text( + detalle, + overflow: TextOverflow.ellipsis, + style: const TextStyle( + fontSize: 11, + color: AppColors.textSecondary, + ), + ), + ], + ), + ); + } +} + +/// Barras simples, sin dependencias: una por día, alto según visitas. +class _GraficaDias extends StatelessWidget { + const _GraficaDias(this.dias); + + final List dias; + + @override + Widget build(BuildContext context) { + final max = dias.fold(1, (m, d) => d.visitas > m ? d.visitas : m); + final etiquetaCada = (dias.length / 10).ceil().clamp(1, 1000); + return SizedBox( + height: 200, + child: Row( + crossAxisAlignment: CrossAxisAlignment.end, + children: [ + for (final (i, d) in dias.indexed) + Expanded( + child: Tooltip( + message: + '${d.dia.day}/${d.dia.month}: ${d.visitas} visitas, ' + '${d.eventos} eventos', + child: Padding( + padding: const EdgeInsets.symmetric(horizontal: 2), + child: Column( + mainAxisAlignment: MainAxisAlignment.end, + children: [ + Container( + height: 160 * d.visitas / max, + decoration: BoxDecoration( + color: AppColors.primary, + borderRadius: const BorderRadius.vertical( + top: Radius.circular(3)), + ), + ), + const SizedBox(height: 6), + SizedBox( + height: 16, + child: i % etiquetaCada == 0 + ? Text( + '${d.dia.day}/${d.dia.month}', + style: const TextStyle( + fontSize: 10, + color: AppColors.textSecondary, + ), + ) + : null, + ), + ], + ), + ), + ), + ), + ], + ), + ); + } +} + +class _FilaPoi extends StatelessWidget { + const _FilaPoi(this.puesto, this.poi, this.maxVisitas); + + final int puesto; + final PoiVisto poi; + final int maxVisitas; + + @override + Widget build(BuildContext context) { + return Padding( + padding: const EdgeInsets.symmetric(vertical: 6), + child: Row( + children: [ + SizedBox( + width: 28, + child: Text('$puesto', + style: const TextStyle(color: AppColors.textSecondary)), + ), + SizedBox( + width: 220, + child: Text(poi.nombre, overflow: TextOverflow.ellipsis), + ), + Expanded( + child: ClipRRect( + borderRadius: BorderRadius.circular(4), + child: LinearProgressIndicator( + value: maxVisitas == 0 ? 0 : poi.visitas / maxVisitas, + minHeight: 8, + color: AppColors.primary, + backgroundColor: AppColors.primary.withValues(alpha: 0.15), + ), + ), + ), + const SizedBox(width: 12), + SizedBox( + width: 90, + child: Text( + '${poi.visitas} visitas', + textAlign: TextAlign.right, + style: const TextStyle(color: AppColors.textSecondary), + ), + ), + ], + ), + ); + } +} diff --git a/apps/admin_flutter/lib/ui/multimedia/multimedia_screen.dart b/apps/admin_flutter/lib/ui/multimedia/multimedia_screen.dart new file mode 100644 index 0000000..9b069c9 --- /dev/null +++ b/apps/admin_flutter/lib/ui/multimedia/multimedia_screen.dart @@ -0,0 +1,726 @@ +import 'dart:typed_data'; + +import 'package:file_picker/file_picker.dart'; +import 'package:flutter/material.dart'; + +import '../../core/config.dart'; +import '../../core/theme/app_theme.dart'; +import '../../data/api/api_client.dart'; +import '../../data/models/enums.dart'; +import '../../data/models/escena.dart'; +import '../../data/models/idiomas.dart'; +import '../../data/models/medio.dart'; +import '../../data/models/poi.dart'; +import '../../data/repositories/repositories.dart'; +import '../../data/subida_panorama.dart'; +import '../../domain/reglas.dart'; +import '../widgets/common.dart'; + +/// D.1 Subir contenido de un POI. +/// +/// Sube de verdad al backend: +/// - Foto 360°: POST /api/admin/escenas/{id}/imagen. Si el POI no tiene +/// escena, se crea y se marca como su escena principal. +/// - Fotos, video y audio: POST /api/admin/pois/{poiId}/medios, con texto +/// alternativo (imágenes), idioma y subtítulos .vtt (audio y video). +/// Reglas del SRS: no hay imagen sin texto alternativo ni narración sin +/// subtítulos. +class MultimediaScreen extends StatefulWidget { + const MultimediaScreen({super.key, this.poiIdInicial, this.tipoInicial}); + + final int? poiIdInicial; + + /// Pestaña con la que abre: panorama, fotos, video o audio. + final String? tipoInicial; + + @override + State createState() => _MultimediaScreenState(); +} + +enum _Pestana { + panorama('Foto 360°', Icons.threesixty, ['jpg', 'jpeg', 'png', 'webp']), + fotos('Fotos', Icons.photo_library_outlined, ['jpg', 'jpeg', 'png', 'webp']), + video('Video', Icons.videocam_outlined, ['mp4', 'm4v', 'mov', 'webm']), + audio('Audio narrado', Icons.audiotrack_outlined, [ + 'mp3', + 'm4a', + 'aac', + 'ogg', + 'wav', + ]); + + const _Pestana(this.etiqueta, this.icono, this.extensiones); + + final String etiqueta; + final IconData icono; + final List extensiones; + + TipoMedio get tipo => switch (this) { + _Pestana.video => TipoMedio.video, + _Pestana.audio => TipoMedio.audio, + _ => TipoMedio.imagen, + }; + + /// La panorámica la reduce el servidor, así que admite hasta 50 MB. + int get maxBytes => + this == _Pestana.panorama ? 50 * 1024 * 1024 : maxBytesPara(tipo); + + bool get llevaSubtitulos => tipo != TipoMedio.imagen; + bool get llevaTextoAlt => tipo == TipoMedio.imagen; +} + +/// Archivo elegido, ya leído en memoria (en web no hay ruta de disco). +class _Elegido { + const _Elegido(this.name, this.bytes); + + final String name; + final Uint8List bytes; + + int get size => bytes.length; +} + +/// Abre el selector (file_picker 13) y lee el archivo. Null si se cancela. +Future<_Elegido?> _elegir(List extensiones) async { + final f = await FilePicker.pickFile( + type: FileType.custom, + allowedExtensions: extensiones, + ); + if (f == null) return null; + return _Elegido(f.name, await f.readAsBytes()); +} + +class _MultimediaScreenState extends State { + late Future> _futuroPois; + int? _poiId; + _Pestana _pestana = _Pestana.panorama; + + // Contenido actual del POI elegido. + Future<(PoiDetalle, Escena?)>? _futuroContenido; + + // Formulario de subida. + _Elegido? _archivo; + _Elegido? _vtt; + final _textoAlt = TextEditingController(); + String _idioma = idiomaOriginal; + bool _subiendo = false; + + /// Sección 7 de arquitectura: las panorámicas no se publican con rostros + /// reconocibles. El panel no difumina; pide confirmarlo antes de subir. + bool _sinRostros = false; + + /// El POI no sale en los endpoints públicos (inactivo u oculto): no se + /// puede leer lo que ya tiene cargado. + bool _sinDetalle = false; + + /// Recuerda las escenas que crea, para que un reintento no cree otra. + final _panorama = SubidaPanorama( + escenas: escenaRepository, + pois: poiRepository, + ); + + @override + void initState() { + super.initState(); + _poiId = widget.poiIdInicial; + final inicial = _Pestana.values.asNameMap()[widget.tipoInicial]; + if (inicial != null) _pestana = inicial; + _futuroPois = poiRepository.listar(); + if (_poiId != null) _cargarContenido(); + } + + @override + void didUpdateWidget(covariant MultimediaScreen oldWidget) { + super.didUpdateWidget(oldWidget); + if (oldWidget.poiIdInicial != widget.poiIdInicial && + widget.poiIdInicial != null) { + setState(() { + _poiId = widget.poiIdInicial; + _cargarContenido(); + }); + } + } + + @override + void dispose() { + _textoAlt.dispose(); + super.dispose(); + } + + void _cargarContenido() { + final id = _poiId; + if (id == null) { + _futuroContenido = null; + return; + } + _futuroContenido = () async { + PoiDetalle detalle; + try { + detalle = await poiRepository.detalle(id); + _sinDetalle = false; + } on ApiException catch (e) { + // GET /api/pois/{id} es público y esconde los lugares inactivos o + // sin audiencias. Mientras no haya un GET de administración, se + // trabaja con el POI de la lista de admin y sin su contenido. + if (e.statusCode != 404) rethrow; + final todos = await poiRepository.listar(); + final poi = todos.where((p) => p.id == id).firstOrNull; + if (poi == null) rethrow; + detalle = PoiDetalle(poi: poi); + _sinDetalle = true; + } + Escena? escena; + final escenaId = detalle.poi.escenaPrincipalId; + if (escenaId != null) { + final escenas = await escenaRepository.listar(); + escena = escenas.where((e) => e.id == escenaId).firstOrNull; + } + return (detalle, escena); + }(); + } + + void _limpiarFormulario() { + _archivo = null; + _vtt = null; + _textoAlt.clear(); + _idioma = idiomaOriginal; + _sinRostros = false; + } + + // ---------------------------------------------------------------- archivos + + Future _elegirArchivo() async { + if (_poiId == null) { + showToast( + context, + 'Selecciona un POI destino antes de subir.', + error: true, + ); + return; + } + final f = await _elegir(_pestana.extensiones); + if (f == null || !mounted) return; + if (f.size > _pestana.maxBytes) { + showToast( + context, + 'El archivo pesa ${(f.size / 1048576).toStringAsFixed(1)} MB; el ' + 'máximo para ${_pestana.etiqueta.toLowerCase()} es ' + '${_pestana.maxBytes ~/ 1048576} MB.', + error: true, + ); + return; + } + setState(() => _archivo = f); + } + + Future _elegirVtt() async { + final f = await _elegir(const ['vtt']); + if (f == null || !mounted) return; + final inicio = String.fromCharCodes( + f.bytes.take(16), + ).replaceFirst('', '').replaceFirst('', ''); + if (!inicio.startsWith('WEBVTT')) { + showToast( + context, + 'Ese archivo no es WebVTT: la primera línea debe ser WEBVTT.', + error: true, + ); + return; + } + setState(() => _vtt = f); + } + + /// Mensaje de lo que falta para poder subir, o null si está completo. + String? _faltante(List medios) { + if (_archivo == null) return 'Elige un archivo'; + if (_pestana.llevaTextoAlt && _textoAlt.text.trim().isEmpty) { + return 'Escribe el texto alternativo'; + } + if (_pestana == _Pestana.panorama && !_sinRostros) { + return 'Confirma que no hay rostros reconocibles'; + } + if (_pestana.llevaSubtitulos && _vtt == null) { + return 'Adjunta los subtítulos (.vtt)'; + } + if (_pestana == _Pestana.audio && + medios.any( + (m) => + m.tipo == TipoMedio.audio && + (m.idioma ?? idiomaOriginal) == _idioma, + )) { + return 'Ya hay una narración en ${nombreDeIdioma(_idioma)}'; + } + return null; + } + + // ------------------------------------------------------------------ subir + + Future _subir(PoiDetalle detalle, Escena? escena) async { + final archivo = ArchivoSubida('Archivo', _archivo!.bytes, _archivo!.name); + setState(() => _subiendo = true); + try { + if (_pestana == _Pestana.panorama) { + final advertencia = await _panorama.subir( + poi: detalle.poi, + escena: escena, + bytes: archivo.bytes, + nombreArchivo: archivo.nombre, + textoAlt: _textoAlt.text, + ); + if (advertencia != null && mounted) { + showToast(context, advertencia, error: true); + } + } else { + final mismos = detalle.medios + .where((m) => m.tipo == _pestana.tipo) + .length; + await medioRepository.subir( + poiId: detalle.poi.id, + tipo: _pestana.tipo, + archivo: archivo, + orden: mismos, + textoAlt: _pestana.llevaTextoAlt ? _textoAlt.text : null, + idioma: _pestana.llevaSubtitulos ? _idioma : null, + subtitulos: _vtt == null + ? null + : ArchivoSubida('Subtitulos', _vtt!.bytes, _vtt!.name), + ); + } + if (!mounted) return; + showToast(context, '${_pestana.etiqueta} subido correctamente'); + setState(() { + _limpiarFormulario(); + _futuroPois = poiRepository.listar(); + _cargarContenido(); + }); + } on ApiException catch (e) { + if (mounted) showToast(context, e.message, error: true); + } finally { + if (mounted) setState(() => _subiendo = false); + } + } + + Future _eliminar(Medio m) async { + final ok = await confirmDialog( + context, + title: '¿Eliminar este archivo?', + message: 'Se quitará del POI y dejará de verse en la app.', + confirmLabel: 'Eliminar', + danger: true, + ); + if (!ok || !mounted) return; + try { + await medioRepository.eliminar(m.id); + if (!mounted) return; + showToast(context, 'Archivo eliminado'); + setState(_cargarContenido); + } on ApiException catch (e) { + if (mounted) showToast(context, e.message, error: true); + } + } + + // --------------------------------------------------------------------- UI + + @override + Widget build(BuildContext context) { + return ScrollPage( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + const PageHeader( + icon: Icons.cloud_upload_outlined, + title: 'Subir Multimedia', + subtitle: 'Carga el contenido de cada POI', + ), + if (AppConfig.useMockData) ...[ + const SizedBox(height: 20), + const SampleDataBanner( + 'Modo maqueta: los archivos no se envían al servidor.', + ), + ], + const SizedBox(height: 20), + FutureBuilder>( + future: _futuroPois, + builder: (context, snap) { + if (snap.hasError) { + return ErrorCard( + message: '${snap.error}', + onRetry: () => setState(() { + _futuroPois = poiRepository.listar(); + }), + ); + } + if (!snap.hasData) return const SkeletonBox(height: 52); + return _selectorPoi(snap.data!); + }, + ), + const SizedBox(height: 20), + AppCard( + padding: EdgeInsets.zero, + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + UnderlineTabs( + labels: [for (final p in _Pestana.values) p.etiqueta], + selected: _pestana.index, + onSelected: (i) => setState(() { + _pestana = _Pestana.values[i]; + _limpiarFormulario(); + }), + ), + Padding( + padding: const EdgeInsets.all(20), + child: _futuroContenido == null + ? const EmptyState( + message: 'Selecciona un POI destino para empezar', + ) + : FutureBuilder<(PoiDetalle, Escena?)>( + future: _futuroContenido, + builder: (context, snap) { + if (snap.hasError) { + return ErrorCard( + message: '${snap.error}', + onRetry: () => setState(_cargarContenido), + ); + } + if (!snap.hasData) { + return const SkeletonBox(height: 200); + } + final (detalle, escena) = snap.data!; + return _contenido(detalle, escena); + }, + ), + ), + ], + ), + ), + ], + ), + ); + } + + Widget _selectorPoi(List pois) { + final valido = pois.any((p) => p.id == _poiId); + return Row( + children: [ + const Text( + 'POI destino', + style: TextStyle(fontWeight: FontWeight.w600), + ), + const SizedBox(width: 16), + SelectBox( + width: 320, + value: valido ? _poiId! : -1, + items: { + -1: 'Selecciona un POI', + for (final p in pois) p.id: '${p.id} · ${p.nombre}', + }, + onChanged: (v) => setState(() { + _poiId = v == -1 ? null : v; + _limpiarFormulario(); + _cargarContenido(); + }), + ), + ], + ); + } + + Widget _contenido(PoiDetalle detalle, Escena? escena) { + final actuales = _pestana == _Pestana.panorama + ? [_estadoPanorama(escena)] + : [ + for (final m in detalle.medios.where( + (m) => m.tipo == _pestana.tipo, + )) + _filaMedio(m), + ]; + return LayoutBuilder( + builder: (context, constraints) { + final formulario = _formulario(detalle, escena); + final lista = Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + const Text( + 'Ya cargado', + style: TextStyle(fontSize: 16, fontWeight: FontWeight.bold), + ), + const SizedBox(height: 12), + if (_sinDetalle) + const Text( + 'Este lugar está inactivo o sin perfiles visibles: la API aún ' + 'no deja leer su contenido desde el panel. Se puede subir, ' + 'pero aquí no se verá hasta activarlo.', + style: TextStyle(color: AppColors.warning), + ) + else if (actuales.isEmpty) + const Text( + 'Aún no hay archivos de este tipo.', + style: TextStyle(color: AppColors.textSecondary), + ) + else + ...actuales, + ], + ); + if (constraints.maxWidth >= 900) { + return Row( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Expanded(flex: 3, child: formulario), + const SizedBox(width: 24), + Expanded(flex: 2, child: lista), + ], + ); + } + return Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [formulario, const SizedBox(height: 24), lista], + ); + }, + ); + } + + Widget _formulario(PoiDetalle detalle, Escena? escena) { + final faltante = _faltante(detalle.medios); + return Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + InkWell( + borderRadius: BorderRadius.circular(12), + onTap: _subiendo ? null : _elegirArchivo, + child: DashedBox( + color: AppColors.primary, + child: Container( + height: 130, + width: double.infinity, + alignment: Alignment.center, + child: Column( + mainAxisSize: MainAxisSize.min, + children: [ + Icon(_pestana.icono, size: 34, color: AppColors.primary), + const SizedBox(height: 10), + Text( + _archivo == null + ? 'Haz clic para elegir el archivo' + : '${_archivo!.name} · ' + '${(_archivo!.size / 1048576).toStringAsFixed(1)} MB', + style: const TextStyle(fontWeight: FontWeight.w600), + ), + const SizedBox(height: 4), + Text( + '${_pestana.extensiones.map((e) => e.toUpperCase()).join(', ')}' + ' · máx. ${_pestana.maxBytes ~/ 1048576} MB' + '${_pestana == _Pestana.panorama ? ' · proporción 2:1' : ''}', + style: const TextStyle( + color: AppColors.textSecondary, + fontSize: 12, + ), + ), + ], + ), + ), + ), + ), + const SizedBox(height: 16), + if (_pestana.llevaTextoAlt) + TextField( + controller: _textoAlt, + maxLines: 2, + maxLength: 300, + onChanged: (_) => setState(() {}), + decoration: InputDecoration( + labelText: 'Texto alternativo (obligatorio)', + hintText: _pestana == _Pestana.panorama + ? 'Describe lo que se ve en la panorámica' + : 'Describe lo que muestra la foto', + ), + ), + if (_pestana.llevaSubtitulos) ...[ + Row( + children: [ + const Text( + 'Idioma hablado', + style: TextStyle(fontWeight: FontWeight.w600), + ), + const SizedBox(width: 16), + SelectBox( + width: 280, + value: _idioma, + items: { + for (final e in idiomasContenido.entries) + if (e.key != 'csn' || _pestana == _Pestana.video) + e.key: e.value, + }, + onChanged: (v) => setState(() => _idioma = v), + ), + ], + ), + const SizedBox(height: 12), + Row( + children: [ + OutlinedButton.icon( + onPressed: _subiendo ? null : _elegirVtt, + icon: const Icon(Icons.subtitles_outlined, size: 18), + label: const Text('Adjuntar subtítulos (.vtt)'), + ), + const SizedBox(width: 12), + Expanded( + child: Text( + _vtt?.name ?? 'Obligatorio, en el mismo idioma del audio', + overflow: TextOverflow.ellipsis, + style: TextStyle( + color: _vtt == null + ? AppColors.textSecondary + : AppColors.success, + ), + ), + ), + ], + ), + ], + if (_pestana == _Pestana.panorama) ...[ + const SizedBox(height: 4), + CheckboxListTile( + contentPadding: EdgeInsets.zero, + controlAffinity: ListTileControlAffinity.leading, + value: _sinRostros, + onChanged: (v) => setState(() => _sinRostros = v ?? false), + title: const Text( + 'La panorámica no muestra rostros reconocibles, o ya están ' + 'difuminados', + ), + subtitle: const Text( + 'El panel no difumina rostros: hazlo antes de subirla ' + '(sección 7 de arquitectura).', + style: TextStyle(fontSize: 12, color: AppColors.textSecondary), + ), + ), + ], + const SizedBox(height: 20), + Row( + children: [ + ElevatedButton.icon( + onPressed: _subiendo || faltante != null + ? null + : () => _subir(detalle, escena), + icon: _subiendo + ? const SizedBox( + width: 16, + height: 16, + child: CircularProgressIndicator(strokeWidth: 2), + ) + : const Icon(Icons.cloud_upload_outlined, size: 18), + label: Text(_subiendo ? 'Subiendo…' : 'Subir y publicar'), + ), + const SizedBox(width: 12), + if (faltante != null && _archivo != null) + Expanded( + child: Text( + faltante, + style: const TextStyle(color: AppColors.warning), + ), + ), + ], + ), + ], + ); + } + + Widget _estadoPanorama(Escena? escena) { + final tiene = escena?.imagenUrl?.isNotEmpty ?? false; + final alt = escena?.textoAlt?.trim() ?? ''; + return Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Wrap( + spacing: 8, + runSpacing: 6, + children: [ + StatusBadge( + escena == null + ? 'Sin escena 360°' + : tiene + ? 'Panorámica cargada' + : 'Escena sin panorámica', + color: tiene ? AppColors.success : AppColors.warning, + ), + if (escena != null) + StatusBadge( + alt.isEmpty ? 'Falta texto alternativo' : 'Texto alternativo', + color: alt.isEmpty ? AppColors.danger : AppColors.success, + ), + ], + ), + if (alt.isNotEmpty) ...[ + const SizedBox(height: 8), + Text( + alt, + style: const TextStyle( + fontSize: 12, + color: AppColors.textSecondary, + ), + ), + ], + const SizedBox(height: 8), + Text( + tiene + ? 'Subir otra imagen reemplaza la panorámica actual.' + : 'Al subirla, el lugar aparece numerado en el recorrido.', + style: const TextStyle(fontSize: 12, color: AppColors.textSecondary), + ), + ], + ); + } + + Widget _filaMedio(Medio m) { + final nombre = (m.url ?? '').split('/').last.split('?').first; + return Container( + margin: const EdgeInsets.only(bottom: 10), + padding: const EdgeInsets.all(12), + decoration: BoxDecoration( + borderRadius: BorderRadius.circular(10), + border: Border.all(color: AppColors.border), + ), + child: Row( + children: [ + Icon(_pestana.icono, color: AppColors.textSecondary), + const SizedBox(width: 12), + Expanded( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + m.tipo == TipoMedio.imagen + ? (m.textoAlt ?? nombre) + : nombreDeIdioma(m.idioma), + overflow: TextOverflow.ellipsis, + style: const TextStyle(fontWeight: FontWeight.w600), + ), + Text( + nombre, + overflow: TextOverflow.ellipsis, + style: const TextStyle( + fontSize: 12, + color: AppColors.textSecondary, + ), + ), + ], + ), + ), + if (m.tipo != TipoMedio.imagen) ...[ + const SizedBox(width: 8), + StatusBadge( + m.subtitulosUrl == null ? 'Sin subtítulos' : 'Con subtítulos', + color: m.subtitulosUrl == null + ? AppColors.warning + : AppColors.success, + ), + ], + IconButton( + tooltip: 'Eliminar', + onPressed: () => _eliminar(m), + icon: const Icon(Icons.delete_outline, color: AppColors.danger), + ), + ], + ), + ); + } +} diff --git a/apps/admin_flutter/lib/ui/pois/contenido_edicion.dart b/apps/admin_flutter/lib/ui/pois/contenido_edicion.dart new file mode 100644 index 0000000..e90f957 --- /dev/null +++ b/apps/admin_flutter/lib/ui/pois/contenido_edicion.dart @@ -0,0 +1,200 @@ +import 'package:flutter/material.dart'; + +import '../../core/theme/app_theme.dart'; + +const _azulClaro = Color(0xFF7FA6F0); + +/// Lápiz y papelera de un elemento. Entran con animación cuando [visible] +/// pasa a verdadero (modo edición) y salen igual al volver a falso. +/// +/// Si el elemento está [marcado] para eliminar, en su lugar se ofrece +/// «Deshacer», y esa opción se mantiene aunque se salga del modo edición. +/// +/// Con [compacto] son botones redondos pensados para ir sobre una miniatura +/// (dentro de un `Positioned`). +class AccionesEdicion extends StatelessWidget { + const AccionesEdicion({ + super.key, + required this.visible, + required this.onEditar, + required this.onEliminar, + this.marcado = false, + this.onDeshacer, + this.compacto = false, + }); + + final bool visible; + final VoidCallback onEditar; + final VoidCallback onEliminar; + final bool marcado; + final VoidCallback? onDeshacer; + final bool compacto; + + @override + Widget build(BuildContext context) { + final mostrar = visible || marcado; + if (compacto) { + return IgnorePointer( + ignoring: !mostrar, + child: AnimatedScale( + scale: mostrar ? 1 : 0.6, + alignment: Alignment.topRight, + duration: const Duration(milliseconds: 200), + curve: Curves.easeOutBack, + child: AnimatedOpacity( + opacity: mostrar ? 1 : 0, + duration: const Duration(milliseconds: 180), + child: Row( + mainAxisSize: MainAxisSize.min, + children: marcado + ? [ + _BotonRedondo( + icono: Icons.undo, + tooltip: 'Deshacer', + color: Colors.white, + onTap: onDeshacer ?? () {}, + ), + ] + : [ + _BotonRedondo( + icono: Icons.edit_outlined, + tooltip: 'Editar', + color: Colors.white, + onTap: onEditar, + ), + const SizedBox(width: 4), + _BotonRedondo( + icono: Icons.delete_outline, + tooltip: 'Eliminar', + color: AppColors.danger, + onTap: onEliminar, + ), + ], + ), + ), + ), + ); + } + return AnimatedSize( + duration: const Duration(milliseconds: 240), + curve: Curves.easeOutCubic, + alignment: Alignment.centerRight, + child: AnimatedSwitcher( + duration: const Duration(milliseconds: 200), + child: !mostrar + ? const SizedBox.shrink(key: ValueKey('sin-acciones')) + : marcado + ? TextButton.icon( + key: const ValueKey('deshacer'), + onPressed: onDeshacer, + icon: const Icon(Icons.undo, size: 16), + label: const Text('Deshacer'), + ) + : Row( + key: const ValueKey('acciones'), + mainAxisSize: MainAxisSize.min, + children: [ + IconButton( + tooltip: 'Editar', + visualDensity: VisualDensity.compact, + onPressed: onEditar, + icon: const Icon(Icons.edit_outlined, size: 18), + ), + IconButton( + tooltip: 'Eliminar', + visualDensity: VisualDensity.compact, + onPressed: onEliminar, + icon: const Icon( + Icons.delete_outline, + size: 18, + color: AppColors.danger, + ), + ), + ], + ), + ), + ); + } +} + +class _BotonRedondo extends StatelessWidget { + const _BotonRedondo({ + required this.icono, + required this.tooltip, + required this.color, + required this.onTap, + }); + + final IconData icono; + final String tooltip; + final Color color; + final VoidCallback onTap; + + @override + Widget build(BuildContext context) { + return Tooltip( + message: tooltip, + child: Material( + color: const Color(0xE6121317), + shape: const CircleBorder(), + child: InkWell( + customBorder: const CircleBorder(), + onTap: onTap, + child: SizedBox( + width: 26, + height: 26, + child: Icon(icono, size: 15, color: color), + ), + ), + ), + ); + } +} + +/// Aviso que se despliega al entrar al modo edición. +class AvisoModoEdicion extends StatelessWidget { + const AvisoModoEdicion({super.key, required this.visible}); + + final bool visible; + + @override + Widget build(BuildContext context) { + return AnimatedSize( + duration: const Duration(milliseconds: 260), + curve: Curves.easeOutCubic, + alignment: Alignment.topCenter, + child: visible + ? Padding( + padding: const EdgeInsets.only(top: 12), + child: Container( + width: double.infinity, + padding: const EdgeInsets.all(10), + decoration: BoxDecoration( + color: AppColors.primary.withValues(alpha: 0.14), + borderRadius: BorderRadius.circular(10), + border: Border.all( + color: AppColors.primary.withValues(alpha: 0.45), + ), + ), + child: const Row( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Icon(Icons.edit_note, size: 18, color: _azulClaro), + SizedBox(width: 8), + Expanded( + child: Text( + 'Modo edición: el lápiz abre Subir Multimedia para ' + 'reemplazar o corregir el archivo; la papelera lo ' + 'marca para eliminar y se borra al pulsar «Guardar ' + 'cambios». Hasta entonces puedes deshacerlo.', + style: TextStyle(fontSize: 12, height: 1.35), + ), + ), + ], + ), + ), + ) + : const SizedBox(width: double.infinity, height: 0), + ); + } +} diff --git a/apps/admin_flutter/lib/ui/pois/delete_poi_dialog.dart b/apps/admin_flutter/lib/ui/pois/delete_poi_dialog.dart new file mode 100644 index 0000000..2804950 --- /dev/null +++ b/apps/admin_flutter/lib/ui/pois/delete_poi_dialog.dart @@ -0,0 +1,145 @@ +import 'package:flutter/material.dart'; + +import '../../core/theme/app_theme.dart'; +import '../../data/models/poi.dart'; +import '../../data/repositories/repositories.dart'; + +enum DeleteChoice { eliminado, desactivar } + +/// C.3 Confirmar eliminación. Devuelve null si se cancela. +Future showDeletePoiDialog(BuildContext context, Poi poi) { + return showDialog( + context: context, + builder: (context) => _DeletePoiDialog(poi: poi), + ); +} + +class _DeletePoiDialog extends StatefulWidget { + const _DeletePoiDialog({required this.poi}); + + final Poi poi; + + @override + State<_DeletePoiDialog> createState() => _DeletePoiDialogState(); +} + +class _DeletePoiDialogState extends State<_DeletePoiDialog> { + final _nombre = TextEditingController(); + bool _eliminando = false; + String? _error; + + @override + void initState() { + super.initState(); + _nombre.addListener(() => setState(() {})); + } + + @override + void dispose() { + _nombre.dispose(); + super.dispose(); + } + + // Endurecimiento propuesto por la guía: el botón se habilita solo cuando + // el nombre escrito coincide exactamente. + bool get _coincide => _nombre.text.trim() == widget.poi.nombre.trim(); + + Future _eliminar() async { + setState(() { + _eliminando = true; + _error = null; + }); + try { + await poiRepository.eliminar(widget.poi.id); + if (!mounted) return; + Navigator.of(context).pop(DeleteChoice.eliminado); + } catch (e) { + if (!mounted) return; + setState(() { + _eliminando = false; + _error = 'No se pudo eliminar el POI. $e'; + }); + } + } + + @override + Widget build(BuildContext context) { + return AlertDialog( + content: ConstrainedBox( + constraints: const BoxConstraints(maxWidth: 440), + child: Column( + mainAxisSize: MainAxisSize.min, + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Center( + child: Container( + padding: const EdgeInsets.all(14), + decoration: BoxDecoration( + color: AppColors.danger.withValues(alpha: 0.15), + shape: BoxShape.circle, + ), + child: const Icon( + Icons.warning_amber_rounded, + color: AppColors.danger, + size: 34, + ), + ), + ), + const SizedBox(height: 16), + Text( + '¿Eliminar el POI ${widget.poi.nombre}?', + textAlign: TextAlign.center, + style: const TextStyle(fontSize: 18, fontWeight: FontWeight.bold), + ), + const SizedBox(height: 8), + const Text( + 'Esta acción es permanente y desaparecerá del mapa de la app ' + 'móvil.', + textAlign: TextAlign.center, + style: TextStyle(color: AppColors.textSecondary), + ), + const SizedBox(height: 16), + TextField( + controller: _nombre, + enabled: !_eliminando, + decoration: InputDecoration( + labelText: 'Escribe el nombre del POI para confirmar', + hintText: widget.poi.nombre, + ), + ), + if (_error != null) ...[ + const SizedBox(height: 12), + Text(_error!, style: const TextStyle(color: AppColors.danger)), + ], + const SizedBox(height: 8), + Center( + child: TextButton( + onPressed: _eliminando + ? null + : () => Navigator.of(context).pop(DeleteChoice.desactivar), + child: const Text('Mejor desactivarlo'), + ), + ), + ], + ), + ), + actions: [ + TextButton( + onPressed: _eliminando ? null : () => Navigator.of(context).pop(), + child: const Text('Cancelar'), + ), + ElevatedButton( + style: ElevatedButton.styleFrom(backgroundColor: AppColors.danger), + onPressed: (_coincide && !_eliminando) ? _eliminar : null, + child: _eliminando + ? const SizedBox( + height: 18, + width: 18, + child: CircularProgressIndicator(strokeWidth: 2), + ) + : const Text('Sí, eliminar'), + ), + ], + ); + } +} diff --git a/apps/admin_flutter/lib/ui/pois/poi_contenido.dart b/apps/admin_flutter/lib/ui/pois/poi_contenido.dart new file mode 100644 index 0000000..b90d098 --- /dev/null +++ b/apps/admin_flutter/lib/ui/pois/poi_contenido.dart @@ -0,0 +1,63 @@ +import '../../data/models/enums.dart'; +import '../../data/models/escena.dart'; +import '../../data/models/medio.dart'; +import '../../data/models/poi.dart'; + +/// Escena 360° de un POI: la principal si la tiene y, si no, la primera +/// escena ligada a él. +Escena? escenaDePoi(Poi poi, List escenas) { + final id = poi.escenaPrincipalId; + if (id != null) { + for (final e in escenas) { + if (e.id == id) return e; + } + } + for (final e in escenas) { + if (e.poiId == poi.id) return e; + } + return null; +} + +String? _noVacia(String? s) => (s == null || s.isEmpty) ? null : s; + +/// Lo que ya hay registrado de un POI: su escena 360° y sus medios. +class ContenidoPoi { + const ContenidoPoi({this.escena, this.medios = const []}); + + final Escena? escena; + final List medios; + + List _de(TipoMedio tipo) => + medios.where((m) => m.tipo == tipo).toList() + ..sort((a, b) => a.orden.compareTo(b.orden)); + + List get fotos => _de(TipoMedio.imagen); + List get videos => _de(TipoMedio.video); + List get audios => _de(TipoMedio.audio); + + /// Hay panorámica cargada (no solo una escena vacía). + bool get tiene360 => _noVacia(escena?.imagenUrl) != null; + + /// Narración que muestra la app por defecto: la del idioma original. + Medio? get audioPrincipal { + final lista = audios; + for (final m in lista) { + if (m.idioma == null || m.idioma == 'es') return m; + } + return lista.isEmpty ? null : lista.first; + } + + /// Imagen de portada: la panorámica (versión liviana primero) o, si no hay, + /// la primera foto. + String? get imagenPortada => + _noVacia(escena?.imagenUrlBaja) ?? + _noVacia(escena?.imagenUrl) ?? + (fotos.isEmpty ? null : _noVacia(fotos.first.url)); +} + +String duracionMmSs(int? seg) { + if (seg == null) return '--:--'; + final m = (seg ~/ 60).toString().padLeft(2, '0'); + final s = (seg % 60).toString().padLeft(2, '0'); + return '$m:$s'; +} diff --git a/apps/admin_flutter/lib/ui/pois/poi_form_screen.dart b/apps/admin_flutter/lib/ui/pois/poi_form_screen.dart new file mode 100644 index 0000000..6da349c --- /dev/null +++ b/apps/admin_flutter/lib/ui/pois/poi_form_screen.dart @@ -0,0 +1,1133 @@ +import 'package:flutter/material.dart'; +import 'package:go_router/go_router.dart'; + +import '../../core/config.dart'; +import '../../core/theme/app_theme.dart'; +import '../../data/api/api_client.dart'; +import '../../data/models/enums.dart'; +import '../../data/models/escena.dart'; +import '../../data/models/idiomas.dart'; +import '../../data/models/medio.dart'; +import '../../data/models/poi.dart'; +import '../../data/repositories/repositories.dart'; +import '../../domain/reglas.dart'; +import '../mapa/mapa_campus.dart'; +import '../widgets/common.dart'; +import '../widgets/imagen_red.dart'; +import 'contenido_edicion.dart'; +import 'poi_contenido.dart'; +import 'poi_vista_previa.dart'; + +/// C.2 Crear / editar POI: formulario, ubicación en el mapa y vista previa +/// en la app móvil. La foto 360° y demás multimedia se suben en el área D. +class PoiFormScreen extends StatefulWidget { + const PoiFormScreen({super.key, this.poiId}); + + /// null = crear un POI nuevo. + final int? poiId; + + @override + State createState() => _PoiFormScreenState(); +} + +class _PoiFormScreenState extends State { + static const List _categoriasBase = AppColors.categoriasCampus; + + final _formKey = GlobalKey(); + final _nombre = TextEditingController(); + final _descripcion = TextEditingController(); + final _latitud = TextEditingController(); + final _longitud = TextEditingController(); + + List _todos = const []; + List _medios = const []; + Escena? _escena; + List _escenas = const []; + + // Modo edición de «Contenido del lugar». + bool _editandoContenido = false; + bool _escenaBorrada = false; + // Eliminaciones pendientes: se aplican recién al pulsar «Guardar cambios». + final Set _mediosPorEliminar = {}; + bool _escenaPorEliminar = false; + + bool get _hayEliminaciones => + _mediosPorEliminar.isNotEmpty || _escenaPorEliminar; + + /// Lo que quedará del lugar si se guarda ahora (sin lo marcado). + ContenidoPoi get _contenidoFinal => ContenidoPoi( + escena: _escenaPorEliminar ? null : _escena, + medios: [ + for (final m in _medios) + if (!_mediosPorEliminar.contains(m.id)) m, + ], + ); + + Poi? _original; + String? _categoria; + String? _errorCategoria; + bool _activo = false; // Propuesta de la guía: inactivo al crear. + // Perfiles que ven el lugar en la app. Sin ninguno, el lugar queda oculto + // para todos aunque esté activo (revisión del PR #22). + Set _audiencias = {...Audiencia.values}; + String? _errorAudiencias; + + bool _cargando = true; + bool _guardando = false; + bool _modificado = false; + String? _errorCarga; + + // La API actual solo guarda la posición del pin (mapX, mapY); lat/lng son + // de solo lectura. En modo maqueta se pueden editar para ver el diseño. + bool get _coordenadasEditables => + AppConfig.useMockData || AppConfig.backendCamposNuevos; + + bool get _esEdicion => widget.poiId != null; + + @override + void initState() { + super.initState(); + for (final c in [_nombre, _descripcion, _latitud, _longitud]) { + c.addListener(_alCambiar); + } + _cargar(); + } + + @override + void dispose() { + for (final c in [_nombre, _descripcion, _latitud, _longitud]) { + c.removeListener(_alCambiar); + c.dispose(); + } + super.dispose(); + } + + void _alCambiar() { + if (_cargando) return; + setState(() => _modificado = true); + } + + Future _cargar() async { + setState(() { + _cargando = true; + _errorCarga = null; + }); + try { + final todos = await poiRepository.listar(); + Poi? original; + if (_esEdicion) { + for (final p in todos) { + if (p.id == widget.poiId) original = p; + } + if (original == null) { + throw Exception('No se encontró el POI ${widget.poiId}.'); + } + } + if (!mounted) return; + _todos = todos; + _original = original; + if (original != null) { + // El contenido es opcional: si falla, el formulario sigue funcionando. + // Cada lectura va aparte: un POI inactivo no tiene detalle público, + // pero su escena sí debe verse. + try { + _medios = (await poiRepository.detalle(original.id)).medios; + } catch (_) {} + try { + _escenas = await escenaRepository.listar(); + _escena = escenaDePoi(original, _escenas); + } catch (_) {} + } + if (!mounted) return; + if (original != null) { + _nombre.text = original.nombre; + _descripcion.text = original.descripcion ?? ''; + _latitud.text = original.lat?.toStringAsFixed(7) ?? ''; + _longitud.text = original.lng?.toStringAsFixed(7) ?? ''; + _categoria = original.categoria; + _activo = original.activo; + _audiencias = {...original.audiencias}; + } + setState(() { + _cargando = false; + _modificado = false; + }); + } catch (e) { + if (!mounted) return; + setState(() { + _errorCarga = '$e'; + _cargando = false; + }); + } + } + + List get _categorias { + final set = {..._categoriasBase}; + for (final p in _todos) { + final c = p.categoria; + if (c != null && c.isNotEmpty) set.add(c); + } + return set.toList(); + } + + String? _validarNombre(String? v) { + final t = (v ?? '').trim(); + if (t.isEmpty) return 'El nombre es obligatorio'; + if (t.length < 3) return 'Mínimo 3 caracteres'; + if (t.length > 80) return 'Máximo 80 caracteres'; + return null; + } + + String? _validarDescripcion(String? v) { + final t = (v ?? '').trim(); + if (t.isEmpty) return 'La descripción es obligatoria'; + return null; + } + + String? _validarCoordenada(String? v, double min, double max) { + if (!_coordenadasEditables) return null; + final t = (v ?? '').trim(); + if (t.isEmpty) return 'Obligatorio'; + final n = double.tryParse(t.replaceAll(',', '.')); + if (n == null) return 'Escribe un número decimal'; + if (n < min || n > max) return 'Debe estar entre $min y $max'; + return null; + } + + Future _cancelar() async { + if (_modificado) { + final salir = await confirmDialog( + context, + title: 'Hay cambios sin guardar', + message: 'Si sales ahora, se perderán los cambios del formulario.', + confirmLabel: 'Salir sin guardar', + danger: true, + ); + if (!salir || !mounted) return; + } + context.go('/pois'); + } + + Future _guardar() async { + final formularioValido = _formKey.currentState!.validate(); + if (_categoria == null) { + setState(() => _errorCategoria = 'Selecciona una categoría'); + } + if (_audiencias.isEmpty) { + setState( + () => _errorAudiencias = + 'Elige al menos un perfil; si no, nadie verá el lugar', + ); + } + if (!formularioValido || _categoria == null || _audiencias.isEmpty) { + return; + } + + final original = _original; + if (original != null && + original.activo && + !_activo && + !puedeDesactivar(_todos, original)) { + showToast( + context, + 'No se puede desactivar el último POI activo.', + error: true, + ); + return; + } + + if (_hayEliminaciones) { + final n = _mediosPorEliminar.length; + final partes = [ + if (n > 0) '$n ${n == 1 ? 'archivo' : 'archivos'}', + if (_escenaPorEliminar) 'la escena 360°', + ].join(' y '); + final seguir = await confirmDialog( + context, + title: 'Se eliminará contenido', + message: + 'Al guardar se borrarán definitivamente $partes. ' + 'Esto no se puede deshacer.', + confirmLabel: 'Guardar y eliminar', + danger: true, + ); + if (!seguir || !mounted) return; + } + + setState(() => _guardando = true); + try { + final base = + original ?? Poi(id: 0, lugarId: AppConfig.lugarId, nombre: ''); + final poi = base.copyWith( + nombre: _nombre.text.trim(), + categoria: _categoria, + descripcion: _descripcion.text.trim(), + lat: double.tryParse(_latitud.text.trim().replaceAll(',', '.')), + lng: double.tryParse(_longitud.text.trim().replaceAll(',', '.')), + activo: _activo, + audiencias: [ + for (final a in Audiencia.values) + if (_audiencias.contains(a)) a, + ], + ); + if (original == null) { + await poiRepository.crear(poi); + } else { + await poiRepository.actualizar(poi); + } + final errores = await _aplicarEliminaciones(); + if (!mounted) return; + if (errores.isNotEmpty) { + setState(() => _guardando = false); + showToast( + context, + 'El POI se guardó, pero no se pudo eliminar todo: ${errores.first}', + error: true, + ); + return; + } + showToast(context, 'Cambios guardados'); + context.go('/pois'); + } catch (e) { + if (!mounted) return; + setState(() => _guardando = false); + showToast(context, 'No se pudo guardar. $e', error: true); + } + } + + @override + Widget build(BuildContext context) { + if (_cargando) { + return const ScrollPage( + child: Column( + children: [ + SkeletonBox(height: 60), + SizedBox(height: 16), + SkeletonBox(height: 420), + ], + ), + ); + } + if (_errorCarga != null) { + return ScrollPage( + child: ErrorCard(message: _errorCarga!, onRetry: _cargar), + ); + } + + final titulo = _esEdicion ? 'Editar POI' : 'Nuevo POI'; + return Column( + children: [ + Expanded( + child: ScrollPage( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Row( + children: [ + TextButton( + onPressed: _cancelar, + child: const Text('Gestión de POIs'), + ), + const Icon( + Icons.chevron_right, + size: 18, + color: AppColors.textSecondary, + ), + const SizedBox(width: 8), + Flexible( + child: Text( + _esEdicion && _original != null + ? 'Editar ${_original!.nombre}' + : 'Nuevo POI', + overflow: TextOverflow.ellipsis, + style: const TextStyle(color: AppColors.textSecondary), + ), + ), + ], + ), + const SizedBox(height: 8), + PageHeader( + icon: Icons.edit_location_alt_outlined, + title: titulo, + subtitle: 'Completa los datos del punto de interés', + ), + const SizedBox(height: 20), + LayoutBuilder( + builder: (context, constraints) { + final formulario = _tarjetaFormulario(); + final lateral = Column( + children: [ + _tarjetaMapa(), + if (_esEdicion) ...[ + const SizedBox(height: 16), + _tarjetaContenido(), + ], + const SizedBox(height: 16), + _tarjetaVistaPrevia(), + ], + ); + if (constraints.maxWidth >= 1100) { + return Row( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Expanded(flex: 3, child: formulario), + const SizedBox(width: 16), + Expanded(flex: 2, child: lateral), + ], + ); + } + return Column( + children: [ + formulario, + const SizedBox(height: 16), + lateral, + ], + ); + }, + ), + ], + ), + ), + ), + SaveBar( + children: [ + OutlinedButton( + onPressed: _guardando ? null : _cancelar, + child: const Text('Cancelar'), + ), + ElevatedButton( + onPressed: _guardando ? null : _guardar, + child: _guardando + ? const SizedBox( + height: 18, + width: 18, + child: CircularProgressIndicator(strokeWidth: 2), + ) + : const Text('Guardar cambios'), + ), + ], + ), + ], + ); + } + + Widget _tarjetaFormulario() { + final largo = _descripcion.text.length; + return AppCard( + child: Form( + key: _formKey, + autovalidateMode: AutovalidateMode.onUserInteraction, + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + const Text( + 'Información del POI', + style: TextStyle(fontSize: 16, fontWeight: FontWeight.bold), + ), + const SizedBox(height: 16), + TextFormField( + controller: _nombre, + validator: _validarNombre, + maxLength: 80, + decoration: const InputDecoration( + labelText: 'Nombre', + counterText: '', + ), + ), + const SizedBox(height: 16), + DropdownMenu( + initialSelection: _categoria, + expandedInsets: EdgeInsets.zero, + label: const Text('Categoría'), + errorText: _errorCategoria, + dropdownMenuEntries: [ + for (final c in _categorias) + DropdownMenuEntry(value: c, label: c), + ], + onSelected: (v) => setState(() { + _categoria = v; + _errorCategoria = null; + _modificado = true; + }), + ), + const SizedBox(height: 16), + TextFormField( + controller: _descripcion, + validator: _validarDescripcion, + maxLength: 500, + minLines: 4, + maxLines: 6, + decoration: InputDecoration( + labelText: 'Descripción', + alignLabelWithHint: true, + counterText: '$largo / 500', + counterStyle: TextStyle( + color: largo >= 500 + ? AppColors.danger + : AppColors.textSecondary, + ), + ), + ), + const SizedBox(height: 16), + Row( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Expanded( + child: TextFormField( + controller: _latitud, + readOnly: !_coordenadasEditables, + validator: (v) => _validarCoordenada(v, -90, 90), + decoration: InputDecoration( + labelText: 'Latitud', + helperText: _coordenadasEditables ? null : 'Solo lectura', + ), + ), + ), + const SizedBox(width: 16), + Expanded( + child: TextFormField( + controller: _longitud, + readOnly: !_coordenadasEditables, + validator: (v) => _validarCoordenada(v, -180, 180), + decoration: InputDecoration( + labelText: 'Longitud', + helperText: _coordenadasEditables ? null : 'Solo lectura', + ), + ), + ), + ], + ), + const SizedBox(height: 16), + const Text( + 'Visible para', + style: TextStyle(fontWeight: FontWeight.w600), + ), + const SizedBox(height: 8), + Wrap( + spacing: 8, + children: [ + for (final (a, etiqueta) in const [ + (Audiencia.externo, 'Visitantes externos'), + (Audiencia.estudiante, 'Estudiantes'), + (Audiencia.docente, 'Docentes'), + ]) + FilterChip( + label: Text(etiqueta), + selected: _audiencias.contains(a), + onSelected: (v) => setState(() { + _audiencias = {..._audiencias}; + v ? _audiencias.add(a) : _audiencias.remove(a); + _errorAudiencias = null; + _modificado = true; + }), + ), + ], + ), + if (_errorAudiencias != null) ...[ + const SizedBox(height: 6), + Text( + _errorAudiencias!, + style: const TextStyle(color: AppColors.danger, fontSize: 12), + ), + ], + const SizedBox(height: 16), + Row( + children: [ + Switch( + value: _activo, + onChanged: (v) => setState(() { + _activo = v; + _modificado = true; + }), + ), + const SizedBox(width: 10), + Text( + _activo ? 'Activo' : 'Inactivo', + style: TextStyle( + color: _activo + ? AppColors.success + : AppColors.textSecondary, + fontWeight: FontWeight.w600, + ), + ), + ], + ), + ], + ), + ), + ); + } + + (double, double)? get _pinActual { + final lat = double.tryParse(_latitud.text.trim().replaceAll(',', '.')); + final lng = double.tryParse(_longitud.text.trim().replaceAll(',', '.')); + if (lat == null || lng == null) return null; + return (lat, lng); + } + + Widget _tarjetaMapa() { + final pin = _pinActual; + return AppCard( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + const Text( + 'Ubicación en el mapa', + style: TextStyle(fontSize: 16, fontWeight: FontWeight.bold), + ), + const SizedBox(height: 4), + Text( + _coordenadasEditables + ? 'Haz clic o arrastra sobre el plano para colocar el pin. ' + 'Los demás lugares del campus aparecen como puntos.' + : 'Posición actual del lugar. La API aún no permite editar ' + 'lat/lng (pendiente en el backend).', + style: const TextStyle( + color: AppColors.textSecondary, + fontSize: 13, + ), + ), + const SizedBox(height: 12), + MapaCampus( + pois: _todos.where((p) => p.id != widget.poiId).toList(), + pinNuevo: pin, + alColocar: _coordenadasEditables + ? (lat, lng) { + _latitud.text = lat.toStringAsFixed(7); + _longitud.text = lng.toStringAsFixed(7); + } + : null, + ), + const SizedBox(height: 10), + Text( + pin == null + ? 'Sin ubicación en el mapa: la app lista el lugar pero no lo ' + 'dibuja.' + : 'Pin: ${pin.$1.toStringAsFixed(6)}, ' + '${pin.$2.toStringAsFixed(6)}', + style: const TextStyle( + color: AppColors.textSecondary, + fontSize: 13, + ), + ), + ], + ), + ); + } + + String _duracion(int? seg) { + if (seg == null) return ''; + final m = seg ~/ 60, s = seg % 60; + return '$m:${s.toString().padLeft(2, '0')}'; + } + + Future _agregarNarracion() async { + final usados = { + for (final m in _medios) + if (m.tipo == TipoMedio.audio) m.idioma ?? idiomaOriginal, + }; + final disponibles = { + for (final e in idiomasContenido.entries) + if (e.key != 'csn' && !usados.contains(e.key)) e.key: e.value, + }; + if (disponibles.isEmpty) { + showToast(context, 'Ya hay una narración en cada idioma.'); + return; + } + var elegido = disponibles.keys.first; + final ok = await showDialog( + context: context, + builder: (context) => StatefulBuilder( + builder: (context, setLocal) => AlertDialog( + title: const Text('Agregar narración'), + content: SizedBox( + width: 360, + child: Column( + mainAxisSize: MainAxisSize.min, + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + const Text( + 'Elige el idioma hablado. Cada narración lleva sus ' + 'subtítulos (.vtt) en el mismo idioma.', + style: TextStyle(color: AppColors.textSecondary), + ), + const SizedBox(height: 16), + SelectBox( + width: 320, + value: elegido, + items: disponibles, + onChanged: (v) => setLocal(() => elegido = v), + ), + ], + ), + ), + actions: [ + TextButton( + onPressed: () => Navigator.of(context).pop(false), + child: const Text('Cancelar'), + ), + ElevatedButton( + onPressed: () => Navigator.of(context).pop(true), + child: const Text('Continuar'), + ), + ], + ), + ), + ); + if (ok != true || !mounted) return; + // La subida (audio + .vtt + idioma) se hace en Subir Multimedia. + context.go('/multimedia?poi=${widget.poiId}'); + } + + /// Abre Subir Multimedia (donde ya se edita o reemplaza cada archivo) en la + /// pestaña que corresponde: panorama, fotos, video o audio. + Future _irAMultimedia(String tipo) async { + if (_modificado) { + final seguir = await confirmDialog( + context, + title: 'Hay cambios sin guardar', + message: + 'Si abres Subir Multimedia ahora, se perderán los cambios ' + 'del formulario.', + confirmLabel: 'Continuar', + ); + if (!seguir || !mounted) return; + } + context.go('/multimedia?poi=${widget.poiId}&tipo=$tipo'); + } + + void _marcarMedio(Medio m) => setState(() { + _mediosPorEliminar.add(m.id); + _modificado = true; + }); + + void _deshacerMedio(Medio m) => + setState(() => _mediosPorEliminar.remove(m.id)); + + void _marcarEscena() => setState(() { + _escenaPorEliminar = true; + _modificado = true; + }); + + void _deshacerEscena() => setState(() => _escenaPorEliminar = false); + + /// Borra de verdad lo marcado. Devuelve los errores (vacío si todo salió + /// bien); lo que sí se borró sale de las listas y de las marcas. + Future> _aplicarEliminaciones() async { + final errores = []; + for (final id in _mediosPorEliminar.toList()) { + try { + await medioRepository.eliminar(id); + _medios = _medios.where((m) => m.id != id).toList(); + _mediosPorEliminar.remove(id); + } catch (e) { + errores.add(e is ApiException ? e.message : '$e'); + } + } + final escena = _escena; + if (_escenaPorEliminar && escena != null) { + try { + await escenaRepository.eliminar(escena.id); + _escenas = _escenas.where((x) => x.id != escena.id).toList(); + _escena = null; + _escenaBorrada = true; + _escenaPorEliminar = false; + } catch (e) { + errores.add(e is ApiException ? e.message : '$e'); + } + } + return errores; + } + + Widget _contenidoEscena(Escena escena, String alt) { + final sinPanoramica = escena.imagenUrl == null || escena.imagenUrl!.isEmpty; + return Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + '${escena.nombre ?? 'Escena ${escena.id}'} · vista inicial ' + '${escena.vistaInicialYaw?.toStringAsFixed(0) ?? '—'}° / ' + '${escena.vistaInicialPitch?.toStringAsFixed(0) ?? '—'}°', + style: const TextStyle(fontWeight: FontWeight.w600), + ), + if (escena.imagenUrlBaja != null || escena.imagenUrl != null) ...[ + const SizedBox(height: 8), + ClipRRect( + borderRadius: BorderRadius.circular(10), + child: SizedBox( + height: 120, + width: double.infinity, + child: ImagenRed( + url: (escena.imagenUrlBaja?.isNotEmpty ?? false) + ? escena.imagenUrlBaja + : escena.imagenUrl, + alternativo: Container( + color: AppColors.border, + alignment: Alignment.center, + child: const Icon( + Icons.threesixty, + color: AppColors.textSecondary, + ), + ), + ), + ), + ), + ], + const SizedBox(height: 6), + Wrap( + spacing: 8, + runSpacing: 6, + children: [ + StatusBadge( + sinPanoramica ? 'Sin panorámica cargada' : 'Panorámica cargada', + color: sinPanoramica ? AppColors.warning : AppColors.success, + ), + StatusBadge( + alt.isEmpty ? 'Falta texto alternativo' : 'Texto alternativo', + color: alt.isEmpty ? AppColors.danger : AppColors.success, + ), + ], + ), + if (alt.isNotEmpty) ...[ + const SizedBox(height: 8), + Text( + alt, + style: const TextStyle( + fontSize: 12, + color: AppColors.textSecondary, + ), + ), + ], + ], + ); + } + + Widget _tarjetaContenido() { + final escena = _escena; + final audios = _medios.where((m) => m.tipo == TipoMedio.audio).toList(); + final alt = escena?.textoAlt?.trim() ?? ''; + final editando = _editandoContenido; + return TweenAnimationBuilder( + tween: ColorTween( + end: editando ? const Color(0xFF3D63E0) : AppColors.border, + ), + duration: const Duration(milliseconds: 250), + builder: (context, color, hijo) => + AppCard(borderColor: color, child: hijo!), + child: AnimatedSize( + duration: const Duration(milliseconds: 240), + curve: Curves.easeOutCubic, + alignment: Alignment.topCenter, + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Row( + children: [ + const Expanded( + child: Text( + 'Contenido del lugar', + style: TextStyle(fontSize: 16, fontWeight: FontWeight.bold), + ), + ), + AnimatedSwitcher( + duration: const Duration(milliseconds: 200), + child: editando + ? ElevatedButton.icon( + key: const ValueKey('listo'), + onPressed: () => + setState(() => _editandoContenido = false), + icon: const Icon(Icons.check, size: 18), + label: const Text('Listo'), + ) + : OutlinedButton.icon( + key: const ValueKey('editar'), + onPressed: () => + setState(() => _editandoContenido = true), + icon: const Icon(Icons.edit_outlined, size: 18), + label: const Text('Editar'), + ), + ), + ], + ), + AvisoModoEdicion(visible: editando), + const SizedBox(height: 12), + Row( + children: [ + const Expanded( + child: Text( + 'Escena 360°', + style: TextStyle(color: AppColors.textSecondary), + ), + ), + AccionesEdicion( + visible: editando && escena != null, + marcado: _escenaPorEliminar, + onDeshacer: _deshacerEscena, + onEditar: () => _irAMultimedia('panorama'), + onEliminar: _marcarEscena, + ), + ], + ), + const SizedBox(height: 6), + if (escena == null && + (_escenaBorrada || _original?.escenaPrincipalId == null)) + const Text( + 'Sin escena: el lugar se ve en el mapa y en «Más lugares», ' + 'sin número, hasta que tenga su panorámica.', + style: TextStyle(fontSize: 13), + ) + else if (escena == null) + const Text( + 'No se pudo leer la escena.', + style: TextStyle(fontSize: 13), + ) + else + AnimatedOpacity( + opacity: _escenaPorEliminar ? 0.5 : 1, + duration: const Duration(milliseconds: 200), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + if (_escenaPorEliminar) + const Padding( + padding: EdgeInsets.only(bottom: 8), + child: StatusBadge( + 'Se eliminará al guardar', + color: AppColors.danger, + ), + ), + _contenidoEscena(escena, alt), + ], + ), + ), + const SizedBox(height: 16), + const Text( + 'Fotos y videos', + style: TextStyle(color: AppColors.textSecondary), + ), + const SizedBox(height: 8), + _galeria(editando), + const SizedBox(height: 16), + Row( + children: [ + const Expanded( + child: Text( + 'Narraciones por idioma', + style: TextStyle(color: AppColors.textSecondary), + ), + ), + OutlinedButton.icon( + onPressed: _agregarNarracion, + icon: const Icon(Icons.add, size: 18), + label: const Text('Agregar'), + ), + ], + ), + const SizedBox(height: 6), + if (audios.isEmpty) + const Text( + 'Sin narración todavía.', + style: TextStyle(fontSize: 13), + ) + else + for (final m in audios) + AnimatedOpacity( + opacity: _mediosPorEliminar.contains(m.id) ? 0.5 : 1, + duration: const Duration(milliseconds: 200), + child: Padding( + padding: const EdgeInsets.symmetric(vertical: 6), + child: Row( + children: [ + const Icon( + Icons.graphic_eq, + size: 18, + color: AppColors.primary, + ), + const SizedBox(width: 10), + Expanded( + child: Text( + '${nombreDeIdioma(m.idioma)}' + '${m.duracionSeg == null ? '' : ' · ${_duracion(m.duracionSeg)}'}', + overflow: TextOverflow.ellipsis, + style: TextStyle( + decoration: _mediosPorEliminar.contains(m.id) + ? TextDecoration.lineThrough + : null, + ), + ), + ), + if (_mediosPorEliminar.contains(m.id)) + const StatusBadge( + 'Se eliminará al guardar', + color: AppColors.danger, + ) + else + StatusBadge( + m.subtitulosUrl == null + ? 'Sin subtítulos' + : 'Con subtítulos', + color: m.subtitulosUrl == null + ? AppColors.warning + : AppColors.success, + ), + AccionesEdicion( + visible: editando, + marcado: _mediosPorEliminar.contains(m.id), + onDeshacer: () => _deshacerMedio(m), + onEditar: () => _irAMultimedia('audio'), + onEliminar: () => _marcarMedio(m), + ), + ], + ), + ), + ), + const SizedBox(height: 10), + const Text( + 'Una narración no se publica sin sus subtítulos (.vtt), ni una ' + 'escena sin texto alternativo (WCAG 2.2 AA). Los archivos se ' + 'suben en Subir Multimedia.', + style: TextStyle(fontSize: 12, color: AppColors.textSecondary), + ), + ], + ), + ), + ); + } + + /// Fotos y videos ya guardados del lugar. En modo edición cada miniatura + /// muestra su lápiz y su papelera; lo marcado se oscurece hasta guardar. + Widget _galeria(bool editando) { + final contenido = ContenidoPoi(escena: _escena, medios: _medios); + final items = [...contenido.fotos, ...contenido.videos]; + if (items.isEmpty) { + return const Text( + 'Sin fotos ni videos todavía.', + style: TextStyle(fontSize: 13), + ); + } + return Wrap( + spacing: 8, + runSpacing: 8, + children: [ + for (final m in items) + Tooltip( + message: _mediosPorEliminar.contains(m.id) + ? 'Se eliminará al guardar' + : (m.textoAlt?.isNotEmpty ?? false) + ? m.textoAlt! + : (m.tipo == TipoMedio.video ? 'Video' : 'Foto'), + child: ClipRRect( + borderRadius: BorderRadius.circular(8), + child: SizedBox( + width: 96, + height: 68, + child: Stack( + fit: StackFit.expand, + children: [ + if (m.tipo == TipoMedio.video) + Container( + color: AppColors.border, + alignment: Alignment.center, + child: const Icon(Icons.play_circle_outline), + ) + else + ImagenRed( + url: m.url, + alternativo: Container( + color: AppColors.border, + alignment: Alignment.center, + child: const Icon( + Icons.image_outlined, + color: AppColors.textSecondary, + ), + ), + ), + Positioned.fill( + child: IgnorePointer( + child: AnimatedOpacity( + opacity: _mediosPorEliminar.contains(m.id) ? 1 : 0, + duration: const Duration(milliseconds: 200), + child: Container( + color: const Color(0xB3000000), + alignment: Alignment.center, + child: const Icon( + Icons.delete_outline, + color: Colors.white70, + ), + ), + ), + ), + ), + Positioned( + top: 4, + right: 4, + child: AccionesEdicion( + compacto: true, + visible: editando, + marcado: _mediosPorEliminar.contains(m.id), + onDeshacer: () => _deshacerMedio(m), + onEditar: () => _irAMultimedia( + m.tipo == TipoMedio.video ? 'video' : 'fotos', + ), + onEliminar: () => _marcarMedio(m), + ), + ), + ], + ), + ), + ), + ), + ], + ); + } + + /// Posición del lugar en el recorrido: «Parada N de M», como en la app. + (int?, int?) _parada() { + final lista = _escenas.where((e) => e.poiId != null).toList() + ..sort((a, b) => a.orden.compareTo(b.orden)); + if (lista.isEmpty) return (null, null); + final actual = _escena; + if (actual == null) return (null, lista.length); + final i = lista.indexWhere((e) => e.id == actual.id); + return (i < 0 ? null : i + 1, lista.length); + } + + Widget _tarjetaVistaPrevia() { + final (parada, total) = _parada(); + return AppCard( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + const Text( + 'Vista previa en la app móvil', + style: TextStyle(fontSize: 16, fontWeight: FontWeight.bold), + ), + const SizedBox(height: 4), + const Text( + 'Así se ve el lugar en el teléfono, con lo que está registrado ' + 'y lo que escribes en el formulario.', + style: TextStyle(fontSize: 12, color: AppColors.textSecondary), + ), + const SizedBox(height: 16), + Center( + child: PoiVistaPreviaMovil( + nombre: _nombre.text, + descripcion: _descripcion.text, + categoria: _categoria, + contenido: _contenidoFinal, + parada: parada, + totalParadas: total, + ), + ), + const SizedBox(height: 12), + Center( + child: StatusBadge( + _activo ? 'Activo' : 'Inactivo', + color: _activo ? AppColors.success : AppColors.textSecondary, + ), + ), + ], + ), + ); + } +} diff --git a/apps/admin_flutter/lib/ui/pois/poi_vista_previa.dart b/apps/admin_flutter/lib/ui/pois/poi_vista_previa.dart new file mode 100644 index 0000000..e5b9df6 --- /dev/null +++ b/apps/admin_flutter/lib/ui/pois/poi_vista_previa.dart @@ -0,0 +1,449 @@ +import 'package:flutter/material.dart'; + +import '../../core/theme/app_theme.dart'; +import '../../data/models/enums.dart'; +import '../widgets/common.dart'; +import '../widgets/imagen_red.dart'; +import 'poi_contenido.dart'; + +/// Vista previa de un lugar tal como lo muestra la app móvil: hoja inferior +/// con la panorámica, categoría y parada, título, descripción, botón «Ver en +/// 360°», audio narrado y aviso de contenido en preparación. +/// +/// Todo sale de lo registrado ([contenido]) y de lo que se escribe en el +/// formulario; no hay texto ni imágenes de ejemplo. +class PoiVistaPreviaMovil extends StatelessWidget { + const PoiVistaPreviaMovil({ + super.key, + required this.nombre, + required this.descripcion, + required this.categoria, + required this.contenido, + this.parada, + this.totalParadas, + }); + + final String nombre; + final String descripcion; + final String? categoria; + final ContenidoPoi contenido; + final int? parada; + final int? totalParadas; + + static const _hoja = Color(0xFF121317); + static const _azulInfo = Color(0xFF7FA6F0); + static const _fondoInfo = Color(0xFF1F3040); + + @override + Widget build(BuildContext context) { + return PhoneFrame( + width: 300, + height: 620, + child: Stack( + children: [ + Positioned.fill(child: _cabecera()), + Positioned( + left: 0, + right: 0, + bottom: 0, + top: 84, + child: _hojaInferior(), + ), + ], + ), + ); + } + + Widget _cabecera() { + return Container( + decoration: const BoxDecoration( + gradient: LinearGradient( + begin: Alignment.topCenter, + end: Alignment.bottomCenter, + colors: [Color(0xFF15318F), Color(0xFF0E2161), Color(0xFF081B45)], + ), + ), + padding: const EdgeInsets.fromLTRB(14, 16, 14, 0), + child: const Row( + children: [ + Icon(Icons.arrow_back, size: 18, color: Colors.white38), + SizedBox(width: 10), + Text( + 'Tour virtual', + style: TextStyle( + fontSize: 18, + fontWeight: FontWeight.w700, + color: Colors.white38, + ), + ), + ], + ), + ); + } + + Widget _hojaInferior() { + final texto = descripcion.trim(); + final titulo = nombre.trim(); + final etiqueta = [ + if (categoria != null && categoria!.isNotEmpty) + categoria!.toUpperCase(), + if (parada != null && totalParadas != null) + 'PARADA $parada DE $totalParadas', + ].join(' · '); + + return Container( + decoration: const BoxDecoration( + color: _hoja, + borderRadius: BorderRadius.vertical(top: Radius.circular(22)), + ), + child: Column( + children: [ + const SizedBox(height: 8), + Container( + width: 36, + height: 4, + decoration: BoxDecoration( + color: Colors.white24, + borderRadius: BorderRadius.circular(2), + ), + ), + Expanded( + child: SingleChildScrollView( + padding: const EdgeInsets.fromLTRB(12, 12, 12, 14), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + _imagen(), + const SizedBox(height: 12), + if (etiqueta.isNotEmpty) + Row( + children: [ + Icon( + Icons.widgets_rounded, + size: 13, + color: AppColors.categoria(categoria), + ), + const SizedBox(width: 6), + Flexible( + child: Text( + etiqueta, + overflow: TextOverflow.ellipsis, + style: const TextStyle( + fontSize: 9.5, + fontWeight: FontWeight.w700, + letterSpacing: 0.8, + color: AppColors.textSecondary, + ), + ), + ), + ], + ), + const SizedBox(height: 6), + Text( + titulo.isEmpty ? 'Nombre del lugar' : titulo, + maxLines: 2, + overflow: TextOverflow.ellipsis, + style: TextStyle( + fontSize: 22, + height: 1.1, + fontWeight: FontWeight.w700, + color: titulo.isEmpty ? Colors.white38 : Colors.white, + ), + ), + const SizedBox(height: 8), + Text( + texto.isEmpty ? 'La descripción aparecerá aquí.' : texto, + maxLines: 5, + overflow: TextOverflow.ellipsis, + style: TextStyle( + fontSize: 12, + height: 1.4, + color: texto.isEmpty ? Colors.white38 : Colors.white70, + ), + ), + if (contenido.tiene360) ...[ + const SizedBox(height: 14), + _botonVer360(), + ], + if (contenido.audioPrincipal != null) ...[ + const SizedBox(height: 14), + const Text( + 'Audio narrado', + style: TextStyle( + fontSize: 11, + color: AppColors.textSecondary, + ), + ), + const SizedBox(height: 6), + _tarjetaAudio(contenido.audioPrincipal!.duracionSeg), + ], + const SizedBox(height: 14), + if (contenido.fotos.isEmpty && contenido.videos.isEmpty) + _avisoEnPreparacion() + else + _galeria(), + ], + ), + ), + ), + ], + ), + ); + } + + Widget _imagen() { + return ClipRRect( + borderRadius: BorderRadius.circular(14), + child: SizedBox( + height: 150, + width: double.infinity, + child: Stack( + fit: StackFit.expand, + children: [ + ImagenRed(url: contenido.imagenPortada, alternativo: _sinImagen()), + if (contenido.tiene360) + Positioned( + left: 8, + bottom: 8, + child: _chip(Icons.touch_app_outlined, 'Desliza para mirar'), + ), + ], + ), + ), + ); + } + + Widget _sinImagen() { + return Container( + color: const Color(0xFF1A1E29), + alignment: Alignment.center, + child: Icon( + contenido.escena != null + ? Icons.threesixty + : Icons.image_not_supported_outlined, + size: 34, + color: Colors.white24, + ), + ); + } + + Widget _chip(IconData icono, String texto) { + return Container( + padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 4), + decoration: BoxDecoration( + color: Colors.black.withValues(alpha: 0.55), + borderRadius: BorderRadius.circular(16), + ), + child: Row( + mainAxisSize: MainAxisSize.min, + children: [ + Icon(icono, size: 12, color: Colors.white), + const SizedBox(width: 4), + Text( + texto, + style: const TextStyle( + fontSize: 10, + fontWeight: FontWeight.w600, + color: Colors.white, + ), + ), + ], + ), + ); + } + + Widget _botonVer360() { + return Container( + height: 38, + width: double.infinity, + decoration: BoxDecoration( + color: AppColors.primary, + borderRadius: BorderRadius.circular(20), + ), + child: const Row( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Icon(Icons.threesixty, size: 16, color: Colors.white), + SizedBox(width: 6), + Text( + 'Ver en 360°', + style: TextStyle( + fontSize: 12, + fontWeight: FontWeight.w700, + color: Colors.white, + ), + ), + ], + ), + ); + } + + Widget _tarjetaAudio(int? segundos) { + return Container( + padding: const EdgeInsets.all(10), + decoration: BoxDecoration( + color: const Color(0xFF17181C), + borderRadius: BorderRadius.circular(14), + border: Border.all(color: const Color(0xFF2A2C31)), + ), + child: Row( + children: [ + Container( + width: 34, + height: 34, + decoration: const BoxDecoration( + color: AppColors.primary, + shape: BoxShape.circle, + ), + child: const Icon(Icons.play_arrow, size: 20, color: Colors.white), + ), + const SizedBox(width: 10), + Expanded( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Row( + children: [ + const Expanded( + child: Text( + 'Escuchar historia', + overflow: TextOverflow.ellipsis, + style: TextStyle( + fontSize: 11, + fontWeight: FontWeight.w700, + ), + ), + ), + Text( + '00:00 / ${duracionMmSs(segundos)}', + style: const TextStyle( + fontSize: 9.5, + color: AppColors.textSecondary, + ), + ), + ], + ), + const SizedBox(height: 8), + Row( + children: [ + Container( + width: 7, + height: 7, + decoration: const BoxDecoration( + color: Colors.white, + shape: BoxShape.circle, + ), + ), + Expanded( + child: Container(height: 2, color: Colors.white24), + ), + ], + ), + ], + ), + ), + ], + ), + ); + } + + Widget _avisoEnPreparacion() { + return Container( + padding: const EdgeInsets.all(10), + decoration: BoxDecoration( + color: _fondoInfo, + borderRadius: BorderRadius.circular(10), + ), + child: const Row( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Icon(Icons.hourglass_top_rounded, size: 16, color: _azulInfo), + SizedBox(width: 8), + Expanded( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + 'Contenido en preparación', + style: TextStyle( + fontSize: 11.5, + fontWeight: FontWeight.w600, + color: _azulInfo, + ), + ), + SizedBox(height: 2), + Text( + 'Aún no hay fotos ni video de este lugar.', + style: TextStyle(fontSize: 11, color: Colors.white70), + ), + ], + ), + ), + ], + ), + ); + } + + /// Fotos y videos registrados (hasta seis; el resto se resume en «+N»). + Widget _galeria() { + final fotos = contenido.fotos; + final videos = contenido.videos; + const maximo = 6; + final total = fotos.length + videos.length; + final mostrados = [...fotos, ...videos].take(maximo).toList(); + return Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + const Text( + 'Fotos y video', + style: TextStyle(fontSize: 11, color: AppColors.textSecondary), + ), + const SizedBox(height: 6), + Wrap( + spacing: 6, + runSpacing: 6, + children: [ + for (final m in mostrados) + ClipRRect( + borderRadius: BorderRadius.circular(8), + child: SizedBox( + width: 82, + height: 58, + child: m.tipo == TipoMedio.video + ? _tileVideo() + : ImagenRed(url: m.url, alternativo: _tileFoto()), + ), + ), + if (total > maximo) + Container( + width: 82, + height: 58, + alignment: Alignment.center, + decoration: BoxDecoration( + color: const Color(0xFF17181C), + borderRadius: BorderRadius.circular(8), + border: Border.all(color: const Color(0xFF2A2C31)), + ), + child: Text( + '+${total - maximo}', + style: const TextStyle(fontWeight: FontWeight.w700), + ), + ), + ], + ), + ], + ); + } + + Widget _tileFoto() => Container( + color: const Color(0xFF1A1E29), + alignment: Alignment.center, + child: const Icon(Icons.image_outlined, color: Colors.white24), + ); + + Widget _tileVideo() => Container( + color: const Color(0xFF1A1E29), + alignment: Alignment.center, + child: const Icon(Icons.play_circle_outline, color: Colors.white54), + ); +} diff --git a/apps/admin_flutter/lib/ui/pois/pois_list_screen.dart b/apps/admin_flutter/lib/ui/pois/pois_list_screen.dart new file mode 100644 index 0000000..7ad3e01 --- /dev/null +++ b/apps/admin_flutter/lib/ui/pois/pois_list_screen.dart @@ -0,0 +1,789 @@ +import 'dart:async'; + +import 'package:flutter/material.dart'; +import 'package:go_router/go_router.dart'; + +import '../../core/theme/app_theme.dart'; +import '../../data/models/enums.dart'; +import '../../data/models/escena.dart'; +import '../../data/models/medio.dart'; +import '../../data/models/poi.dart'; +import '../../data/repositories/repositories.dart'; +import '../../domain/reglas.dart'; +import '../widgets/common.dart'; +import '../widgets/imagen_red.dart'; +import 'delete_poi_dialog.dart'; +import 'poi_contenido.dart'; + +enum _Orden { recientes, antiguos, nombre } + +/// C.1 Lista de POIs: búsqueda, filtros, orden, paginación, activar/desactivar +/// y acceso a editar o eliminar. +class PoisListScreen extends StatefulWidget { + const PoisListScreen({super.key, this.estadoInicial}); + + /// 'activos' o 'inactivos' (viene de la tarjeta del Inicio). + final String? estadoInicial; + + @override + State createState() => _PoisListScreenState(); +} + +class _PoisListScreenState extends State { + static const double _anchoMinimo = 1040; + + List _pois = const []; + List _escenas = const []; + // Medios de cada POI (id -> medios), cargados en segundo plano. + final Map> _medios = {}; + bool _cargando = true; + String? _error; + + String _consulta = ''; + String _estado = 'todos'; + String _categoria = 'todas'; + _Orden _orden = _Orden.recientes; + int _pagina = 0; + int _porPagina = 5; + Timer? _debounce; + + @override + void initState() { + super.initState(); + _estado = _estadoDesde(widget.estadoInicial); + _cargar(); + } + + @override + void didUpdateWidget(covariant PoisListScreen oldWidget) { + super.didUpdateWidget(oldWidget); + if (oldWidget.estadoInicial != widget.estadoInicial) { + setState(() { + _estado = _estadoDesde(widget.estadoInicial); + _pagina = 0; + }); + } + } + + @override + void dispose() { + _debounce?.cancel(); + super.dispose(); + } + + String _estadoDesde(String? valor) => + (valor == 'activos' || valor == 'inactivos') ? valor! : 'todos'; + + Future _cargar() async { + setState(() { + _cargando = true; + _error = null; + }); + try { + final pois = await poiRepository.listar(); + var escenas = []; + try { + escenas = await escenaRepository.listar(); + } catch (_) { + // Las imágenes son opcionales: si fallan, se muestra un marcador. + } + if (!mounted) return; + setState(() { + _pois = pois; + _escenas = escenas; + _medios.clear(); + _cargando = false; + }); + unawaited(_cargarMedios(pois)); + } catch (e) { + if (!mounted) return; + setState(() { + _error = '$e'; + _cargando = false; + }); + } + } + + /// Trae los medios de cada POI de a cuatro, para que la lista muestre sus + /// fotos y su información sin bloquear la carga inicial. Si un POI no se + /// puede leer (p. ej. está inactivo y el detalle público no lo devuelve), + /// se queda sin esos datos. + Future _cargarMedios(List pois) async { + for (var i = 0; i < pois.length; i += 4) { + final lote = pois.skip(i).take(4); + await Future.wait([ + for (final p in lote) + () async { + try { + final d = await poiRepository.detalle(p.id); + if (!mounted) return; + setState(() => _medios[p.id] = d.medios); + } catch (_) {} + }(), + ]); + if (!mounted) return; + } + } + + void _alBuscar(String texto) { + _debounce?.cancel(); + _debounce = Timer(const Duration(milliseconds: 300), () { + if (!mounted) return; + setState(() { + _consulta = texto; + _pagina = 0; + }); + }); + } + + void _limpiarFiltros() { + setState(() { + _consulta = ''; + _estado = 'todos'; + _categoria = 'todas'; + _pagina = 0; + }); + } + + List get _categorias { + final set = {}; + for (final p in _pois) { + final c = p.categoria; + if (c != null && c.isNotEmpty) set.add(c); + } + return set.toList()..sort(); + } + + List get _filtrados { + final q = _consulta.trim().toLowerCase(); + final lista = _pois.where((p) { + if (_estado == 'activos' && !p.activo) return false; + if (_estado == 'inactivos' && p.activo) return false; + if (_categoria != 'todas' && p.categoria != _categoria) return false; + if (q.isNotEmpty && + !(p.nombre.toLowerCase().contains(q) || '${p.id}'.contains(q))) { + return false; + } + return true; + }).toList(); + switch (_orden) { + case _Orden.recientes: + lista.sort((a, b) => b.id.compareTo(a.id)); + case _Orden.antiguos: + lista.sort((a, b) => a.id.compareTo(b.id)); + case _Orden.nombre: + lista.sort( + (a, b) => a.nombre.toLowerCase().compareTo(b.nombre.toLowerCase()), + ); + } + return lista; + } + + void _reemplazar(Poi nuevo) { + setState(() { + _pois = [for (final p in _pois) p.id == nuevo.id ? nuevo : p]; + }); + } + + Future _cambiarEstado(Poi poi, bool activo) async { + if (!activo && !puedeDesactivar(_pois, poi)) { + showToast(context, 'No se puede desactivar el último POI activo.', + error: true); + return; + } + final anterior = poi; + _reemplazar(poi.copyWith(activo: activo)); + try { + await poiRepository.cambiarEstado(poi, activo); + if (!mounted) return; + showToast(context, 'Cambios guardados'); + } catch (e) { + if (!mounted) return; + _reemplazar(anterior); + showToast(context, 'No se pudo cambiar el estado. $e', error: true); + } + } + + Future _eliminar(Poi poi) async { + if (poi.activo && !puedeDesactivar(_pois, poi)) { + showToast(context, 'No se puede eliminar el último POI activo.', + error: true); + return; + } + final resultado = await showDeletePoiDialog(context, poi); + if (!mounted || resultado == null) return; + if (resultado == DeleteChoice.eliminado) { + setState(() { + _pois = _pois.where((p) => p.id != poi.id).toList(); + }); + showToast(context, 'POI eliminado'); + } else { + await _cambiarEstado(poi, false); + } + } + + @override + Widget build(BuildContext context) { + final activos = _pois.where((p) => p.activo).length; + return ScrollPage( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + PageHeader( + icon: Icons.location_on_outlined, + title: 'Gestión de Puntos de Interés', + subtitle: 'Administra los POIs del tour virtual', + trailing: ElevatedButton.icon( + onPressed: () => context.go('/pois/nuevo'), + icon: const Icon(Icons.add), + label: const Text('Nuevo POI'), + ), + ), + const SizedBox(height: 20), + if (!_cargando && _error == null) + Align( + alignment: Alignment.centerLeft, + child: StatusBadge( + 'POIs Activos: $activos / Total: ${_pois.length}', + color: AppColors.success, + ), + ), + const SizedBox(height: 16), + _barraHerramientas(), + const SizedBox(height: 16), + _contenido(), + ], + ), + ); + } + + Widget _barraHerramientas() { + return Wrap( + spacing: 12, + runSpacing: 12, + children: [ + SizedBox( + width: 320, + height: 46, + child: TextField( + onChanged: _alBuscar, + decoration: const InputDecoration( + hintText: 'Buscar por nombre o ID', + prefixIcon: Icon(Icons.search), + contentPadding: EdgeInsets.symmetric(vertical: 0), + ), + ), + ), + SelectBox( + prefix: 'Estado', + value: _estado, + items: const { + 'todos': 'Todos', + 'activos': 'Activos', + 'inactivos': 'Inactivos', + }, + onChanged: (v) => setState(() { + _estado = v; + _pagina = 0; + }), + ), + SelectBox( + prefix: 'Categoría', + value: _categorias.contains(_categoria) ? _categoria : 'todas', + items: { + 'todas': 'Todas', + for (final c in _categorias) c: c, + }, + onChanged: (v) => setState(() { + _categoria = v; + _pagina = 0; + }), + ), + SelectBox<_Orden>( + prefix: 'Ordenar por', + value: _orden, + items: const { + _Orden.recientes: 'Más recientes', + _Orden.antiguos: 'Más antiguos', + _Orden.nombre: 'Nombre (A-Z)', + }, + onChanged: (v) => setState(() { + _orden = v; + _pagina = 0; + }), + ), + ], + ); + } + + Widget _contenido() { + if (_cargando) { + return Column( + children: [ + for (var i = 0; i < 5; i++) + const Padding( + padding: EdgeInsets.only(bottom: 10), + child: SkeletonBox(height: 64), + ), + ], + ); + } + if (_error != null) { + return ErrorCard(message: _error!, onRetry: _cargar); + } + if (_pois.isEmpty) { + return AppCard( + child: EmptyState( + message: 'Aún no hay POIs. Crea el primero', + icon: Icons.location_off_outlined, + actionLabel: 'Nuevo POI', + onAction: () => context.go('/pois/nuevo'), + ), + ); + } + final filtrados = _filtrados; + if (filtrados.isEmpty) { + return AppCard( + child: EmptyState( + message: 'No se encontraron POIs con esos filtros', + icon: Icons.search_off, + actionLabel: 'Limpiar filtros', + onAction: _limpiarFiltros, + ), + ); + } + + final paginas = (filtrados.length / _porPagina).ceil(); + final pagina = _pagina >= paginas ? paginas - 1 : _pagina; + final inicio = pagina * _porPagina; + final fin = (inicio + _porPagina) > filtrados.length + ? filtrados.length + : inicio + _porPagina; + final visibles = filtrados.sublist(inicio, fin); + + return AppCard( + padding: EdgeInsets.zero, + child: Column( + children: [ + LayoutBuilder( + builder: (context, constraints) { + final ancho = constraints.maxWidth < _anchoMinimo + ? _anchoMinimo + : constraints.maxWidth; + return SingleChildScrollView( + scrollDirection: Axis.horizontal, + child: SizedBox( + width: ancho, + child: Column( + children: [ + const _EncabezadoTabla(), + for (final poi in visibles) + _FilaPoi( + poi: poi, + contenido: ContenidoPoi( + escena: escenaDePoi(poi, _escenas), + medios: _medios[poi.id] ?? const [], + ), + cargado: _medios.containsKey(poi.id), + onEditar: () => context.go('/pois/${poi.id}/editar'), + onEliminar: () => _eliminar(poi), + onEstado: (v) => _cambiarEstado(poi, v), + ), + ], + ), + ), + ); + }, + ), + const Divider(), + Padding( + padding: const EdgeInsets.all(16), + child: _pie( + total: filtrados.length, + inicio: inicio, + fin: fin, + paginas: paginas, + pagina: pagina, + ), + ), + ], + ), + ); + } + + Widget _pie({ + required int total, + required int inicio, + required int fin, + required int paginas, + required int pagina, + }) { + // Ventana de hasta 5 números de página alrededor de la actual. + var desde = pagina - 2; + if (desde < 0) desde = 0; + var hasta = desde + 5; + if (hasta > paginas) { + hasta = paginas; + desde = hasta - 5 < 0 ? 0 : hasta - 5; + } + return Wrap( + alignment: WrapAlignment.spaceBetween, + crossAxisAlignment: WrapCrossAlignment.center, + runSpacing: 8, + spacing: 16, + children: [ + Text( + 'Mostrando ${inicio + 1}-$fin de $total', + style: const TextStyle(color: AppColors.textSecondary), + ), + Row( + mainAxisSize: MainAxisSize.min, + children: [ + IconButton( + tooltip: 'Anterior', + onPressed: + pagina > 0 ? () => setState(() => _pagina = pagina - 1) : null, + icon: const Icon(Icons.chevron_left), + ), + for (var i = desde; i < hasta; i++) + Padding( + padding: const EdgeInsets.symmetric(horizontal: 2), + child: InkWell( + borderRadius: BorderRadius.circular(8), + onTap: () => setState(() => _pagina = i), + child: Container( + width: 36, + height: 36, + alignment: Alignment.center, + decoration: BoxDecoration( + color: i == pagina ? AppColors.primary : null, + borderRadius: BorderRadius.circular(8), + ), + child: Text('${i + 1}'), + ), + ), + ), + IconButton( + tooltip: 'Siguiente', + onPressed: pagina < paginas - 1 + ? () => setState(() => _pagina = pagina + 1) + : null, + icon: const Icon(Icons.chevron_right), + ), + ], + ), + SelectBox( + prefix: 'Por página', + value: _porPagina, + items: const {5: '5', 10: '10', 20: '20'}, + onChanged: (v) => setState(() { + _porPagina = v; + _pagina = 0; + }), + ), + ], + ); + } +} + +class _EncabezadoTabla extends StatelessWidget { + const _EncabezadoTabla(); + + @override + Widget build(BuildContext context) { + const estilo = TextStyle( + color: AppColors.textSecondary, + fontSize: 12, + fontWeight: FontWeight.w700, + ); + return Container( + height: 44, + decoration: const BoxDecoration( + border: Border(bottom: BorderSide(color: AppColors.border)), + ), + child: const Row( + children: [ + SizedBox(width: 16), + SizedBox(width: 56, child: Text('ID', style: estilo)), + SizedBox(width: 128, child: Text('VISTA 360°', style: estilo)), + Expanded(flex: 3, child: Text('NOMBRE', style: estilo)), + Expanded(flex: 4, child: Text('DESCRIPCIÓN', style: estilo)), + SizedBox(width: 160, child: Text('COORDENADAS', style: estilo)), + SizedBox(width: 140, child: Text('ESTADO', style: estilo)), + SizedBox(width: 100, child: Text('ACCIONES', style: estilo)), + SizedBox(width: 8), + ], + ), + ); + } +} + +class _FilaPoi extends StatelessWidget { + const _FilaPoi({ + required this.poi, + required this.contenido, + required this.cargado, + required this.onEditar, + required this.onEliminar, + required this.onEstado, + }); + + final Poi poi; + final ContenidoPoi contenido; + + /// Ya se leyeron los medios del POI (evita mostrar «0» mientras cargan). + final bool cargado; + final VoidCallback onEditar; + final VoidCallback onEliminar; + final ValueChanged onEstado; + + String get _coordenadas { + if (poi.lat != null && poi.lng != null) { + return '${poi.lat!.toStringAsFixed(4)}, ${poi.lng!.toStringAsFixed(4)}'; + } + if (poi.mapX != null && poi.mapY != null) { + return 'Mapa: ${poi.mapX!.toStringAsFixed(2)}, ' + '${poi.mapY!.toStringAsFixed(2)}'; + } + return '—'; + } + + static String _plural(int n, String uno, String varios) => + '$n ${n == 1 ? uno : varios}'; + + static String _nombreAudiencia(Audiencia a) => switch (a) { + Audiencia.externo => 'Externos', + Audiencia.estudiante => 'Estudiantes', + Audiencia.docente => 'Docentes', + }; + + /// Información adicional: qué contenido tiene el lugar y para quién es. + Widget _indicadores() { + final fotos = contenido.fotos.length; + final videos = contenido.videos.length; + final audios = contenido.audios.length; + final sinContenido = + cargado && !contenido.tiene360 && fotos + videos + audios == 0; + return Wrap( + spacing: 12, + runSpacing: 4, + crossAxisAlignment: WrapCrossAlignment.center, + children: [ + if (contenido.tiene360) const _Dato(Icons.threesixty, '360°'), + if (fotos > 0) + _Dato(Icons.photo_library_outlined, _plural(fotos, 'foto', 'fotos')), + if (videos > 0) + _Dato(Icons.videocam_outlined, _plural(videos, 'video', 'videos')), + if (audios > 0) + _Dato(Icons.graphic_eq, _plural(audios, 'audio', 'audios')), + if (sinContenido) + const _Dato(Icons.hourglass_empty, 'Sin multimedia', + color: AppColors.warning), + if (poi.audiencias.isNotEmpty) + _Dato(Icons.groups_outlined, + poi.audiencias.map(_nombreAudiencia).join(', ')), + ], + ); + } + + @override + Widget build(BuildContext context) { + final color = AppColors.categoria(poi.categoria); + return InkWell( + onTap: onEditar, + hoverColor: AppColors.primary.withValues(alpha: 0.06), + child: Container( + height: 96, + decoration: const BoxDecoration( + border: Border(bottom: BorderSide(color: AppColors.border)), + ), + child: Row( + children: [ + Container(width: 4, color: color), + const SizedBox(width: 12), + SizedBox(width: 56, child: Text('${poi.id}')), + SizedBox( + width: 128, + child: _Miniatura( + url: contenido.imagenPortada, + tiene360: contenido.tiene360, + tieneEscena: + poi.escenaPrincipalId != null || contenido.escena != null, + ), + ), + Expanded( + flex: 3, + child: Padding( + padding: const EdgeInsets.only(right: 12), + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + poi.nombre, + overflow: TextOverflow.ellipsis, + style: const TextStyle(fontWeight: FontWeight.w700), + ), + const SizedBox(height: 4), + if (poi.categoria != null) + StatusBadge(poi.categoria!, color: color), + ], + ), + ), + ), + Expanded( + flex: 4, + child: Padding( + padding: const EdgeInsets.only(right: 12), + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + poi.descripcion ?? '—', + maxLines: 2, + overflow: TextOverflow.ellipsis, + style: const TextStyle(color: AppColors.textSecondary), + ), + const SizedBox(height: 8), + _indicadores(), + ], + ), + ), + ), + SizedBox( + width: 160, + child: Text( + _coordenadas, + style: const TextStyle( + color: AppColors.textSecondary, + fontSize: 13, + ), + ), + ), + SizedBox( + width: 140, + child: Row( + children: [ + Switch(value: poi.activo, onChanged: onEstado), + const SizedBox(width: 6), + Text( + poi.activo ? 'Activo' : 'Inactivo', + style: TextStyle( + fontSize: 13, + color: poi.activo + ? AppColors.success + : AppColors.textSecondary, + ), + ), + ], + ), + ), + SizedBox( + width: 100, + child: Row( + children: [ + IconButton( + tooltip: 'Editar', + onPressed: onEditar, + icon: const Icon(Icons.edit_outlined, size: 20), + ), + IconButton( + tooltip: 'Eliminar', + onPressed: onEliminar, + icon: const Icon( + Icons.delete_outline, + size: 20, + color: AppColors.danger, + ), + ), + ], + ), + ), + const SizedBox(width: 8), + ], + ), + ), + ); + } +} + +class _Miniatura extends StatelessWidget { + const _Miniatura({ + required this.url, + required this.tiene360, + required this.tieneEscena, + }); + + final String? url; + final bool tiene360; + final bool tieneEscena; + + Widget _marcador() => Container( + color: AppColors.border, + alignment: Alignment.center, + child: Icon( + tieneEscena ? Icons.threesixty : Icons.image_not_supported_outlined, + color: AppColors.textSecondary, + ), + ); + + @override + Widget build(BuildContext context) { + final u = url; + return Align( + alignment: Alignment.centerLeft, + child: SizedBox( + width: 112, + height: 64, + child: ClipRRect( + borderRadius: BorderRadius.circular(8), + child: Stack( + fit: StackFit.expand, + children: [ + ImagenRed(url: u, alternativo: _marcador()), + if (tiene360) + Positioned( + left: 4, + bottom: 4, + child: Container( + padding: + const EdgeInsets.symmetric(horizontal: 5, vertical: 1), + decoration: BoxDecoration( + color: Colors.black.withValues(alpha: 0.7), + borderRadius: BorderRadius.circular(4), + ), + child: const Text( + '360°', + style: TextStyle(fontSize: 10, fontWeight: FontWeight.w700), + ), + ), + ), + ], + ), + ), + ), + ); + } +} + +/// Dato pequeño con icono para la columna de información adicional. +class _Dato extends StatelessWidget { + const _Dato(this.icono, this.texto, {this.color = AppColors.textSecondary}); + + final IconData icono; + final String texto; + final Color color; + + @override + Widget build(BuildContext context) { + return Row( + mainAxisSize: MainAxisSize.min, + children: [ + Icon(icono, size: 14, color: color), + const SizedBox(width: 4), + Text(texto, style: TextStyle(fontSize: 12, color: color)), + ], + ); + } +} diff --git a/apps/admin_flutter/lib/ui/settings/settings_screens.dart b/apps/admin_flutter/lib/ui/settings/settings_screens.dart new file mode 100644 index 0000000..d21545a --- /dev/null +++ b/apps/admin_flutter/lib/ui/settings/settings_screens.dart @@ -0,0 +1,1218 @@ +import 'package:flutter/material.dart'; +import 'package:go_router/go_router.dart'; + +import '../../core/auth/auth_state.dart'; +import '../../core/config.dart'; +import '../../core/theme/app_theme.dart'; +import '../../data/api/api_client.dart'; +import '../../data/repositories/repositories.dart'; +import '../widgets/common.dart'; + +const List _pestanas = [ + 'Cuenta', + 'Administradores', + 'Seguridad', +]; +const List _rutas = [ + '/configuracion/cuenta', + '/configuracion/administradores', + '/configuracion/seguridad', +]; + +/// Cabecera común de Configuración y pestañas (guía, área F). +class ConfigShell extends StatelessWidget { + const ConfigShell({super.key, required this.activa, required this.child}); + + final int activa; + final Widget child; + + @override + Widget build(BuildContext context) { + return Column( + children: [ + Padding( + padding: const EdgeInsets.fromLTRB(24, 24, 24, 0), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + const PageHeader( + icon: Icons.settings_outlined, + title: 'Configuración', + subtitle: + 'Gestiona los administradores y la configuración del tour virtual', + ), + const SizedBox(height: 20), + UnderlineTabs( + labels: _pestanas, + selected: activa, + onSelected: (i) => context.go(_rutas[i]), + ), + ], + ), + ), + Expanded(child: child), + ], + ); + } +} + +// --------------------------------------------------------------------------- +// F.1 Cuenta +// --------------------------------------------------------------------------- + +/// Datos de la sesión actual. El perfil vive en Supabase (auth + perfiles); +/// aquí solo se muestra. La contraseña se cambia en la pestaña Seguridad. +class CuentaTab extends StatelessWidget { + const CuentaTab({super.key}); + + @override + Widget build(BuildContext context) { + final iniciales = authState.nombre.isEmpty + ? '?' + : authState.nombre.substring(0, 1).toUpperCase(); + + final perfil = AppCard( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + const Text('Perfil', style: _tituloTarjeta), + const SizedBox(height: 16), + Row( + children: [ + CircleAvatar( + radius: 30, + backgroundColor: AppColors.primary, + child: Text( + iniciales, + style: const TextStyle( + fontSize: 22, fontWeight: FontWeight.bold), + ), + ), + const SizedBox(width: 16), + Expanded( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + authState.nombre, + style: const TextStyle( + fontSize: 18, fontWeight: FontWeight.w600), + ), + const SizedBox(height: 2), + Text( + authState.correo, + overflow: TextOverflow.ellipsis, + style: const TextStyle(color: AppColors.textSecondary), + ), + ], + ), + ), + ], + ), + const SizedBox(height: 16), + const Row( + children: [ + Icon(Icons.lock_outline, + size: 16, color: AppColors.textSecondary), + SizedBox(width: 8), + Expanded( + child: Text( + 'Cuenta institucional UTB. Para cambiar tu contraseña ve a ' + 'la pestaña Seguridad.', + style: + TextStyle(fontSize: 12, color: AppColors.textSecondary), + ), + ), + ], + ), + ], + ), + ); + + final rol = AppCard( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + const Text('Rol y permisos', style: _tituloTarjeta), + const SizedBox(height: 12), + const StatusBadge('Administrador', color: AppColors.primary), + const SizedBox(height: 12), + for (final p in const [ + 'Gestionar POIs', + 'Subir multimedia', + 'Ver métricas', + 'Administrar usuarios', + ]) + Padding( + padding: const EdgeInsets.symmetric(vertical: 4), + child: Row( + children: [ + const Icon(Icons.check_circle, + size: 18, color: AppColors.success), + const SizedBox(width: 8), + Text(p), + ], + ), + ), + ], + ), + ); + + return ScrollPage( + child: LayoutBuilder( + builder: (context, constraints) { + if (constraints.maxWidth >= 1000) { + return Row( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Expanded(child: perfil), + const SizedBox(width: 16), + Expanded(child: rol), + ], + ); + } + return Column( + children: [perfil, const SizedBox(height: 16), rol], + ); + }, + ), + ); + } +} + +const TextStyle _tituloTarjeta = + TextStyle(fontSize: 16, fontWeight: FontWeight.bold); + +// --------------------------------------------------------------------------- +// F.2 Administradores +// --------------------------------------------------------------------------- + +/// Lista las personas con rol admin en `perfiles` (GET /api/admin/administradores) +/// y da o quita el rol (PUT /api/admin/administradores/{userId}). Las cuentas +/// se crean en Supabase (Authentication > Users); aquí solo se cambia el rol. +/// La API impide quitarse el rol a uno mismo y quitar el último admin. +class AdministradoresTab extends StatefulWidget { + const AdministradoresTab({super.key}); + + @override + State createState() => _AdministradoresTabState(); +} + +class _AdministradoresTabState extends State { + late Future> _futuro; + + @override + void initState() { + super.initState(); + _futuro = panelRepository.administradores(); + } + + void _recargar() => + setState(() => _futuro = panelRepository.administradores()); + + Future _darAcceso() async { + final correo = await showDialog( + context: context, + builder: (context) => const _InvitarDialog(), + ); + if (correo == null || !mounted) return; + try { + final perfiles = await panelRepository.administradores(todos: true); + final perfil = + perfiles.where((p) => p.correo?.toLowerCase() == correo).firstOrNull; + if (!mounted) return; + if (perfil == null) { + showToast( + context, + 'Esa persona aún no tiene cuenta. Créala primero en Supabase ' + '(Authentication > Users) y vuelve a intentarlo.', + error: true, + ); + return; + } + if (perfil.rol == 'admin') { + showToast(context, 'Ese correo ya tiene acceso.', error: true); + return; + } + await panelRepository.cambiarRol(perfil.userId, 'admin'); + if (!mounted) return; + showToast(context, 'Acceso de administrador otorgado'); + _recargar(); + } on ApiException catch (e) { + if (mounted) showToast(context, e.message, error: true); + } + } + + Future _quitar(Perfil admin) async { + final ok = await confirmDialog( + context, + title: '¿Quitar el acceso a ${admin.correo ?? 'esta persona'}?', + message: 'Esta persona ya no podrá entrar al panel.', + confirmLabel: 'Quitar acceso', + danger: true, + ); + if (!ok || !mounted) return; + try { + // Vuelve al rol por defecto de la app (visitante externo). + await panelRepository.cambiarRol(admin.userId, 'externo'); + if (!mounted) return; + showToast(context, 'Acceso revocado'); + _recargar(); + } on ApiException catch (e) { + // 409: es uno mismo o el último admin (el mensaje lo da la API). + if (mounted) showToast(context, e.message, error: true); + } + } + + Widget _fila(Perfil a) { + final correo = a.correo ?? '(sin correo)'; + final esActual = correo.toLowerCase() == authState.correo.toLowerCase(); + return Container( + padding: const EdgeInsets.symmetric(vertical: 12), + decoration: const BoxDecoration( + border: Border(top: BorderSide(color: AppColors.border)), + ), + child: Row( + children: [ + CircleAvatar( + radius: 18, + backgroundColor: AppColors.primary, + child: Text(correo.substring(0, 1).toUpperCase()), + ), + const SizedBox(width: 12), + Expanded( + child: Text( + esActual ? '$correo (tú)' : correo, + overflow: TextOverflow.ellipsis, + style: const TextStyle(fontWeight: FontWeight.w600), + ), + ), + StatusBadge( + a.verificado ? 'Verificado' : 'Sin verificar', + color: a.verificado ? AppColors.success : AppColors.warning, + ), + const SizedBox(width: 8), + const StatusBadge('Administrador', color: AppColors.primary), + const SizedBox(width: 12), + OutlinedButton( + style: OutlinedButton.styleFrom( + side: const BorderSide(color: AppColors.danger), + foregroundColor: AppColors.danger, + ), + onPressed: esActual ? null : () => _quitar(a), + child: const Text('Quitar acceso'), + ), + ], + ), + ); + } + + @override + Widget build(BuildContext context) { + return ScrollPage( + child: LayoutBuilder( + builder: (context, constraints) { + final tabla = AppCard( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Row( + children: [ + const Expanded( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text('Administradores', style: _tituloTarjeta), + SizedBox(height: 2), + Text( + 'Personas con acceso al panel', + style: TextStyle(color: AppColors.textSecondary), + ), + ], + ), + ), + ElevatedButton.icon( + onPressed: _darAcceso, + icon: const Icon(Icons.person_add_alt, size: 18), + label: const Text('Dar acceso'), + ), + ], + ), + const SizedBox(height: 12), + FutureBuilder>( + future: _futuro, + builder: (context, snap) { + if (snap.hasError) { + return ErrorCard( + message: 'No se pudo cargar la lista: ${snap.error}', + onRetry: _recargar, + ); + } + if (!snap.hasData) return const SkeletonBox(height: 160); + final admins = snap.data!; + if (admins.isEmpty) { + return const EmptyState( + message: 'Sin administradores para mostrar ' + '(en modo maqueta la lista está vacía).', + ); + } + return Column(children: [for (final a in admins) _fila(a)]); + }, + ), + ], + ), + ); + + const info = AppCard( + child: Row( + children: [ + Icon(Icons.info_outline, color: AppColors.primary), + SizedBox(width: 12), + Expanded( + child: Text( + 'Las cuentas se crean en Supabase (Authentication > ' + 'Users). Aquí solo se da o se quita el rol de ' + 'administrador.', + style: TextStyle(color: AppColors.textSecondary), + ), + ), + ], + ), + ); + + if (constraints.maxWidth >= 1000) { + return Row( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Expanded(flex: 3, child: tabla), + const SizedBox(width: 16), + const Expanded(flex: 1, child: info), + ], + ); + } + return Column( + children: [tabla, const SizedBox(height: 16), info], + ); + }, + ), + ); + } +} + +/// Pide el correo institucional; devuelve el correo en minúsculas. +class _InvitarDialog extends StatefulWidget { + const _InvitarDialog(); + + @override + State<_InvitarDialog> createState() => _InvitarDialogState(); +} + +class _InvitarDialogState extends State<_InvitarDialog> { + final _formKey = GlobalKey(); + final _correo = TextEditingController(); + + @override + void dispose() { + _correo.dispose(); + super.dispose(); + } + + @override + Widget build(BuildContext context) { + return AlertDialog( + title: const Text('Dar acceso de administrador'), + content: ConstrainedBox( + constraints: const BoxConstraints(maxWidth: 420), + child: Form( + key: _formKey, + child: TextFormField( + controller: _correo, + keyboardType: TextInputType.emailAddress, + validator: (v) { + final t = (v ?? '').trim().toLowerCase(); + if (t.isEmpty) return 'El correo es obligatorio'; + if (!t.endsWith(AuthState.dominio)) { + return 'Usa un correo ${AuthState.dominio}'; + } + return null; + }, + decoration: const InputDecoration( + labelText: 'Correo institucional', + hintText: 'nombre@utb.edu.co', + helperText: 'La persona ya debe tener cuenta en Supabase.', + ), + ), + ), + ), + actions: [ + TextButton( + onPressed: () => Navigator.of(context).pop(), + child: const Text('Cancelar'), + ), + ElevatedButton( + onPressed: () { + if (!_formKey.currentState!.validate()) return; + Navigator.of(context).pop(_correo.text.trim().toLowerCase()); + }, + child: const Text('Dar acceso'), + ), + ], + ); + } +} + +// --------------------------------------------------------------------------- +// F.3 Apariencia del tour +// +// FUERA DEL PANEL (15/11/2026): no hay backend que guarde esta configuración +// ni la app móvil la lee. Se deja el diseño por si se conecta más adelante; +// para volver a mostrarla, agregarla a _pestanas/_rutas y a app_router.dart. +// --------------------------------------------------------------------------- + +class AparienciaTab extends StatefulWidget { + const AparienciaTab({super.key}); + + @override + State createState() => _AparienciaTabState(); +} + +class _AparienciaTabState extends State { + static const String _tituloDefecto = 'Conoce la UTB'; + static const String _subtituloDefecto = 'Recorrido institucional para visitantes'; + static const Color _acentoDefecto = AppColors.primary; + static const List _paleta = [ + Color(0xFF2347D6), + Color(0xFF3DDC84), + Color(0xFF8B5CF6), + Color(0xFFF5A524), + Color(0xFFE5484D), + Color(0xFF14B8A6), + ]; + + final _titulo = TextEditingController(text: _tituloDefecto); + final _subtitulo = TextEditingController(text: _subtituloDefecto); + final _hex = TextEditingController(text: '#2347D6'); + Color _acento = _acentoDefecto; + bool _progreso = true; + bool _mapa = true; + bool _compartir = true; + bool _audio = true; + String _estiloMapa = 'iso'; + String _vista = 'inicio'; + + @override + void initState() { + super.initState(); + _titulo.addListener(() => setState(() {})); + _subtitulo.addListener(() => setState(() {})); + } + + @override + void dispose() { + _titulo.dispose(); + _subtitulo.dispose(); + _hex.dispose(); + super.dispose(); + } + + String _aHex(Color c) { + final v = c.toARGB32() & 0xFFFFFF; + return '#${v.toRadixString(16).padLeft(6, '0').toUpperCase()}'; + } + + void _alEscribirHex(String texto) { + final limpio = texto.trim().replaceFirst('#', ''); + if (limpio.length != 6) return; + final valor = int.tryParse(limpio, radix: 16); + if (valor == null) return; + setState(() => _acento = Color(0xFF000000 | valor)); + } + + void _elegirColor(Color c) { + setState(() { + _acento = c; + _hex.text = _aHex(c); + }); + } + + Future _restablecer() async { + final ok = await confirmDialog( + context, + title: '¿Restablecer los valores?', + message: 'Se perderán los cambios que no hayas guardado.', + confirmLabel: 'Restablecer', + danger: true, + ); + if (!ok || !mounted) return; + _titulo.text = _tituloDefecto; + _subtitulo.text = _subtituloDefecto; + _elegirColor(_acentoDefecto); + setState(() { + _progreso = true; + _mapa = true; + _compartir = true; + _audio = true; + _estiloMapa = 'iso'; + }); + } + + Widget _interruptor(String texto, bool valor, ValueChanged alCambiar) { + return Row( + children: [ + Switch(value: valor, onChanged: (v) => setState(() => alCambiar(v))), + const SizedBox(width: 10), + Expanded(child: Text(texto)), + ], + ); + } + + @override + Widget build(BuildContext context) { + return Column( + children: [ + Expanded( + child: ScrollPage( + child: LayoutBuilder( + builder: (context, constraints) { + final identidad = AppCard( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + const Text('Identidad', style: _tituloTarjeta), + const SizedBox(height: 14), + TextField( + controller: _titulo, + maxLength: 40, + decoration: + const InputDecoration(labelText: 'Título del tour'), + ), + const SizedBox(height: 8), + TextField( + controller: _subtitulo, + maxLength: 90, + decoration: + const InputDecoration(labelText: 'Subtítulo'), + ), + const SizedBox(height: 8), + Row( + children: [ + Container( + width: 56, + height: 56, + decoration: BoxDecoration( + color: AppColors.background, + borderRadius: BorderRadius.circular(10), + border: Border.all(color: AppColors.border), + ), + child: const Icon(Icons.image_outlined, + color: AppColors.textSecondary), + ), + const SizedBox(width: 14), + OutlinedButton( + onPressed: () => showToast(context, + 'La carga del logo se activa al conectar el servicio de archivos.'), + child: const Text('Subir logo'), + ), + ], + ), + ], + ), + ); + + final colores = AppCard( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + const Text('Colores', style: _tituloTarjeta), + const SizedBox(height: 14), + Row( + children: [ + Container( + width: 40, + height: 40, + decoration: BoxDecoration( + color: _acento, + borderRadius: BorderRadius.circular(8), + ), + ), + const SizedBox(width: 12), + SizedBox( + width: 140, + child: TextField( + controller: _hex, + onChanged: _alEscribirHex, + decoration: const InputDecoration( + labelText: 'Color de acento', + ), + ), + ), + ], + ), + const SizedBox(height: 12), + Wrap( + spacing: 8, + runSpacing: 8, + children: [ + for (final c in _paleta) + InkWell( + borderRadius: BorderRadius.circular(16), + onTap: () => _elegirColor(c), + child: Container( + width: 32, + height: 32, + decoration: BoxDecoration( + color: c, + shape: BoxShape.circle, + border: Border.all( + color: c == _acento + ? Colors.white + : Colors.transparent, + width: 2, + ), + ), + ), + ), + ], + ), + const SizedBox(height: 16), + const Text('Colores por categoría', + style: TextStyle(color: AppColors.textSecondary)), + const SizedBox(height: 8), + for (final cat in AppColors.categoriasCampus) + Padding( + padding: const EdgeInsets.symmetric(vertical: 4), + child: Row( + children: [ + Container( + width: 14, + height: 14, + decoration: BoxDecoration( + color: AppColors.categoria(cat), + shape: BoxShape.circle, + ), + ), + const SizedBox(width: 10), + Text(cat), + ], + ), + ), + ], + ), + ); + + final inicio = AppCard( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + const Text('Pantalla de inicio', style: _tituloTarjeta), + const SizedBox(height: 8), + _interruptor('Mostrar progreso del tour', _progreso, + (v) => _progreso = v), + _interruptor( + 'Mostrar pestaña Mapa', _mapa, (v) => _mapa = v), + _interruptor('Permitir compartir recorrido', _compartir, + (v) => _compartir = v), + _interruptor( + 'Mostrar audio narrado', _audio, (v) => _audio = v), + ], + ), + ); + + final mapa = AppCard( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + const Text('Mapa', style: _tituloTarjeta), + const SizedBox(height: 12), + SegmentedButton( + segments: const [ + ButtonSegment(value: 'iso', label: Text('Isométrico 3D')), + ButtonSegment(value: 'sat', label: Text('Satelital')), + ], + selected: {_estiloMapa}, + onSelectionChanged: (s) => + setState(() => _estiloMapa = s.first), + ), + ], + ), + ); + + final previa = AppCard( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + const Text('Vista previa', style: _tituloTarjeta), + const SizedBox(height: 12), + SegmentedButton( + segments: const [ + ButtonSegment(value: 'inicio', label: Text('Inicio')), + ButtonSegment(value: 'mapa', label: Text('Mapa')), + ButtonSegment( + value: 'detalle', label: Text('Detalle')), + ], + selected: {_vista}, + onSelectionChanged: (s) => + setState(() => _vista = s.first), + ), + const SizedBox(height: 16), + Center(child: _telefono()), + ], + ), + ); + + if (constraints.maxWidth >= 1000) { + return Row( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Expanded( + flex: 3, + child: Column( + children: [ + identidad, + const SizedBox(height: 16), + colores, + const SizedBox(height: 16), + inicio, + const SizedBox(height: 16), + mapa, + ], + ), + ), + const SizedBox(width: 16), + Expanded(flex: 2, child: previa), + ], + ); + } + return Column( + children: [ + identidad, + const SizedBox(height: 16), + colores, + const SizedBox(height: 16), + inicio, + const SizedBox(height: 16), + mapa, + const SizedBox(height: 16), + previa, + ], + ); + }, + ), + ), + ), + SaveBar( + children: [ + OutlinedButton( + onPressed: _restablecer, + child: const Text('Restablecer valores'), + ), + OutlinedButton( + onPressed: () => showToast(context, 'Borrador guardado'), + child: const Text('Guardar borrador'), + ), + ElevatedButton( + onPressed: () => showToast(context, 'Cambios publicados'), + child: const Text('Publicar cambios'), + ), + ], + ), + ], + ); + } + + Widget _telefono() { + final titulo = _titulo.text.trim().isEmpty ? 'Título del tour' : _titulo.text; + final subtitulo = _subtitulo.text; + final List contenido; + switch (_vista) { + case 'mapa': + contenido = [ + Container( + height: 300, + margin: const EdgeInsets.all(12), + decoration: BoxDecoration( + color: AppColors.card, + borderRadius: BorderRadius.circular(12), + border: Border.all(color: AppColors.border), + ), + child: Center( + child: Icon(Icons.map_outlined, size: 48, color: _acento), + ), + ), + ]; + case 'detalle': + contenido = [ + Container( + height: 150, + color: _acento.withValues(alpha: 0.3), + child: const Center(child: Icon(Icons.threesixty, size: 44)), + ), + Padding( + padding: const EdgeInsets.all(14), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + const Text('Nombre del POI', + style: TextStyle(fontSize: 16, fontWeight: FontWeight.bold)), + const SizedBox(height: 8), + const Text( + 'Descripción del punto de interés.', + style: TextStyle( + fontSize: 12, color: AppColors.textSecondary), + ), + if (_audio) ...[ + const SizedBox(height: 12), + Row( + children: [ + Icon(Icons.play_circle_fill, color: _acento), + const SizedBox(width: 8), + const Text('Audio narrado', + style: TextStyle(fontSize: 12)), + ], + ), + ], + ], + ), + ), + ]; + default: + contenido = [ + Container( + padding: const EdgeInsets.all(16), + color: _acento, + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + const SizedBox(height: 12), + Text( + titulo, + style: const TextStyle( + fontSize: 20, + fontWeight: FontWeight.bold, + ), + ), + const SizedBox(height: 4), + Text(subtitulo, style: const TextStyle(fontSize: 12)), + ], + ), + ), + if (_progreso) + Padding( + padding: const EdgeInsets.all(12), + child: Container( + padding: const EdgeInsets.all(12), + decoration: BoxDecoration( + color: AppColors.card, + borderRadius: BorderRadius.circular(10), + ), + child: const Text('Progreso del tour: 0/5', + style: TextStyle(fontSize: 12)), + ), + ), + if (_mapa) + const Padding( + padding: EdgeInsets.symmetric(horizontal: 12), + child: Row( + children: [ + Icon(Icons.map_outlined, size: 16), + SizedBox(width: 6), + Text('Mapa', style: TextStyle(fontSize: 12)), + ], + ), + ), + if (_compartir) + const Padding( + padding: EdgeInsets.all(12), + child: Row( + children: [ + Icon(Icons.share_outlined, size: 16), + SizedBox(width: 6), + Text('Compartir recorrido', style: TextStyle(fontSize: 12)), + ], + ), + ), + ]; + } + return PhoneFrame( + width: 250, + height: 480, + child: ListView( + physics: const NeverScrollableScrollPhysics(), + padding: EdgeInsets.zero, + children: contenido, + ), + ); + } +} + +// --------------------------------------------------------------------------- +// F.4 Seguridad +// --------------------------------------------------------------------------- + +/// Todo lo de esta pestaña es real: la contraseña y las sesiones van contra +/// Supabase Auth, y el registro sale de la tabla auditoria +/// (GET /api/admin/actividad). Dar o quitar accesos está en Administradores. +class SeguridadTab extends StatefulWidget { + const SeguridadTab({super.key}); + + @override + State createState() => _SeguridadTabState(); +} + +class _SeguridadTabState extends State { + final _formKey = GlobalKey(); + final _nueva = TextEditingController(); + final _repetir = TextEditingController(); + bool _guardando = false; + late Future> _registro; + + @override + void initState() { + super.initState(); + _registro = panelRepository.actividad(tamano: 15); + } + + @override + void dispose() { + _nueva.dispose(); + _repetir.dispose(); + super.dispose(); + } + + Future _cambiarClave() async { + if (!_formKey.currentState!.validate()) return; + setState(() => _guardando = true); + final error = await authState.cambiarClave(_nueva.text); + if (!mounted) return; + setState(() => _guardando = false); + if (error != null) { + showToast(context, error, error: true); + return; + } + _nueva.clear(); + _repetir.clear(); + showToast(context, 'Contraseña actualizada'); + } + + Future _cerrarTodas() async { + final ok = await confirmDialog( + context, + title: '¿Cerrar sesión en todos los dispositivos?', + message: 'Todas tus sesiones, incluida esta, se cerrarán.', + confirmLabel: 'Cerrar sesiones', + danger: true, + ); + if (!ok) return; + await authState.cerrarSesionGlobal(); + } + + static String _fechaHora(DateTime f) { + String d(int n) => n.toString().padLeft(2, '0'); + return '${d(f.day)}/${d(f.month)}/${f.year} ${d(f.hour)}:${d(f.minute)}'; + } + + Widget _filaRegistro(Actividad a) { + final (icono, verbo) = switch (a.accion) { + 'insert' => (Icons.add_circle_outline, 'Creó'), + 'delete' => (Icons.delete_outline, 'Eliminó'), + _ => (Icons.edit_outlined, 'Editó'), + }; + return Container( + padding: const EdgeInsets.symmetric(vertical: 10), + decoration: const BoxDecoration( + border: Border(top: BorderSide(color: AppColors.border)), + ), + child: Row( + children: [ + Icon(icono, size: 18, color: AppColors.primary), + const SizedBox(width: 12), + Expanded( + flex: 3, + child: Text( + '$verbo ${a.entidad}' + '${a.entidadId == null ? '' : ' #${a.entidadId}'}', + overflow: TextOverflow.ellipsis, + ), + ), + Expanded( + flex: 3, + child: Text( + a.actorCorreo ?? 'Sistema o clave de administración', + overflow: TextOverflow.ellipsis, + style: const TextStyle(color: AppColors.textSecondary), + ), + ), + Text( + _fechaHora(a.fecha), + style: + const TextStyle(fontSize: 12, color: AppColors.textSecondary), + ), + ], + ), + ); + } + + @override + Widget build(BuildContext context) { + final real = AppConfig.loginReal; + return ScrollPage( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + if (!real) ...[ + const SampleDataBanner( + 'Sin inicio de sesión real: la contraseña y las sesiones se ' + 'activan al correr el panel con SUPABASE_ANON_KEY.', + ), + const SizedBox(height: 16), + ], + AppCard( + child: Row( + children: [ + const Icon(Icons.verified_user_outlined, + color: AppColors.success), + const SizedBox(width: 12), + Expanded( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + const Text('Autenticación', style: _tituloTarjeta), + const SizedBox(height: 2), + Text( + real + ? 'Supabase Auth · ${authState.correo}' + : 'Modo de prueba · ${authState.correo}', + style: const TextStyle(color: AppColors.textSecondary), + ), + ], + ), + ), + if (real) + const StatusBadge('Sesión verificada', + color: AppColors.success), + ], + ), + ), + const SizedBox(height: 16), + AppCard( + child: Form( + key: _formKey, + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + const Text('Cambiar contraseña', style: _tituloTarjeta), + const SizedBox(height: 14), + ConstrainedBox( + constraints: const BoxConstraints(maxWidth: 420), + child: Column( + children: [ + TextFormField( + controller: _nueva, + obscureText: true, + enabled: real, + validator: (v) => (v ?? '').length < 8 + ? 'Mínimo 8 caracteres' + : null, + decoration: const InputDecoration( + labelText: 'Nueva contraseña'), + ), + const SizedBox(height: 14), + TextFormField( + controller: _repetir, + obscureText: true, + enabled: real, + validator: (v) => v != _nueva.text + ? 'Las contraseñas no coinciden' + : null, + decoration: const InputDecoration( + labelText: 'Repetir contraseña'), + ), + ], + ), + ), + const SizedBox(height: 16), + ElevatedButton( + onPressed: real && !_guardando ? _cambiarClave : null, + child: + Text(_guardando ? 'Guardando…' : 'Cambiar contraseña'), + ), + ], + ), + ), + ), + const SizedBox(height: 16), + AppCard( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + const Text('Registro de actividad', style: _tituloTarjeta), + const SizedBox(height: 2), + const Text( + 'Últimos cambios hechos desde el panel', + style: TextStyle(color: AppColors.textSecondary), + ), + const SizedBox(height: 12), + FutureBuilder>( + future: _registro, + builder: (context, snap) { + if (snap.hasError) { + return ErrorCard( + message: + 'No se pudo cargar el registro: ${snap.error}', + onRetry: () => setState(() { + _registro = panelRepository.actividad(tamano: 15); + }), + ); + } + if (!snap.hasData) return const SkeletonBox(height: 160); + if (snap.data!.isEmpty) { + return const EmptyState( + message: 'Sin cambios registrados'); + } + return Column( + children: [ + for (final a in snap.data!) _filaRegistro(a), + ], + ); + }, + ), + ], + ), + ), + const SizedBox(height: 16), + AppCard( + borderColor: AppColors.danger, + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + const Text( + 'Zona de riesgo', + style: TextStyle( + fontSize: 16, + fontWeight: FontWeight.bold, + color: AppColors.danger, + ), + ), + const SizedBox(height: 4), + const Text( + 'Para quitarle el acceso a otra persona, usa la pestaña ' + 'Administradores.', + style: TextStyle(color: AppColors.textSecondary), + ), + const SizedBox(height: 12), + OutlinedButton( + style: OutlinedButton.styleFrom( + side: const BorderSide(color: AppColors.danger), + foregroundColor: AppColors.danger, + ), + onPressed: real ? _cerrarTodas : null, + child: const Text('Cerrar sesión en todos los dispositivos'), + ), + ], + ), + ), + ], + ), + ); + } +} diff --git a/apps/admin_flutter/lib/ui/widgets/common.dart b/apps/admin_flutter/lib/ui/widgets/common.dart new file mode 100644 index 0000000..6db9c26 --- /dev/null +++ b/apps/admin_flutter/lib/ui/widgets/common.dart @@ -0,0 +1,516 @@ +import 'package:flutter/material.dart'; + +import '../../core/theme/app_theme.dart'; + +/// Título de página: ícono, título en negrita y subtítulo gris. +class PageHeader extends StatelessWidget { + const PageHeader({ + super.key, + required this.icon, + required this.title, + required this.subtitle, + this.trailing, + }); + + final IconData icon; + final String title; + final String subtitle; + final Widget? trailing; + + @override + Widget build(BuildContext context) { + return Row( + children: [ + Icon(icon, color: AppColors.primary, size: 30), + const SizedBox(width: 12), + Expanded( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + title, + style: + const TextStyle(fontSize: 24, fontWeight: FontWeight.bold), + ), + const SizedBox(height: 2), + Text( + subtitle, + style: const TextStyle(color: AppColors.textSecondary), + ), + ], + ), + ), + if (trailing != null) trailing!, + ], + ); + } +} + +/// Contenedor con scroll vertical, margen de 24 px y ancho máximo. +class ScrollPage extends StatelessWidget { + const ScrollPage({super.key, required this.child}); + + final Widget child; + + @override + Widget build(BuildContext context) { + return SingleChildScrollView( + padding: const EdgeInsets.all(24), + child: Align( + alignment: Alignment.topCenter, + child: ConstrainedBox( + constraints: const BoxConstraints(maxWidth: 1400), + child: child, + ), + ), + ); + } +} + +/// Tarjeta con esquinas de 14 px y borde sutil. +class AppCard extends StatelessWidget { + const AppCard({ + super.key, + required this.child, + this.padding = const EdgeInsets.all(20), + this.borderColor, + }); + + final Widget child; + final EdgeInsets padding; + final Color? borderColor; + + @override + Widget build(BuildContext context) { + return Card( + clipBehavior: Clip.antiAlias, + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.circular(14), + side: BorderSide(color: borderColor ?? AppColors.border), + ), + child: Padding(padding: padding, child: child), + ); + } +} + +/// Etiqueta pequeña de estado (Activo, En preparación, Administrador...). +class StatusBadge extends StatelessWidget { + const StatusBadge(this.text, {super.key, required this.color}); + + final String text; + final Color color; + + @override + Widget build(BuildContext context) { + return Container( + padding: const EdgeInsets.symmetric(horizontal: 10, vertical: 4), + decoration: BoxDecoration( + color: color.withValues(alpha: 0.15), + borderRadius: BorderRadius.circular(20), + border: Border.all(color: color.withValues(alpha: 0.45)), + ), + child: Text( + text, + style: TextStyle( + color: color, + fontSize: 12, + fontWeight: FontWeight.w600, + ), + ), + ); + } +} + +/// Bloque gris que sustituye al contenido mientras carga (estado "cargando"). +class SkeletonBox extends StatelessWidget { + const SkeletonBox({super.key, this.height = 80, this.width}); + + final double height; + final double? width; + + @override + Widget build(BuildContext context) { + return Container( + height: height, + width: width, + decoration: BoxDecoration( + color: AppColors.border.withValues(alpha: 0.6), + borderRadius: BorderRadius.circular(12), + ), + ); + } +} + +/// Estado "error de carga" con botón Reintentar. +class ErrorCard extends StatelessWidget { + const ErrorCard({super.key, required this.message, required this.onRetry}); + + final String message; + final VoidCallback onRetry; + + @override + Widget build(BuildContext context) { + return AppCard( + borderColor: AppColors.danger, + child: Row( + children: [ + const Icon(Icons.error_outline, color: AppColors.danger), + const SizedBox(width: 12), + Expanded( + child: Text( + 'No se pudo cargar la información. $message', + style: const TextStyle(color: AppColors.textSecondary), + ), + ), + const SizedBox(width: 12), + OutlinedButton(onPressed: onRetry, child: const Text('Reintentar')), + ], + ), + ); + } +} + +/// Estado "vacío" con mensaje y botón de acción opcional. +class EmptyState extends StatelessWidget { + const EmptyState({ + super.key, + required this.message, + this.icon = Icons.inbox_outlined, + this.actionLabel, + this.onAction, + }); + + final String message; + final IconData icon; + final String? actionLabel; + final VoidCallback? onAction; + + @override + Widget build(BuildContext context) { + return Padding( + padding: const EdgeInsets.all(32), + child: Center( + child: Column( + mainAxisSize: MainAxisSize.min, + children: [ + Icon(icon, size: 40, color: AppColors.textSecondary), + const SizedBox(height: 12), + Text( + message, + textAlign: TextAlign.center, + style: const TextStyle(color: AppColors.textSecondary), + ), + if (actionLabel != null) ...[ + const SizedBox(height: 16), + ElevatedButton(onPressed: onAction, child: Text(actionLabel!)), + ], + ], + ), + ), + ); + } +} + +/// Aviso discreto (éxito en verde, error en rojo) que desaparece solo. +void showToast(BuildContext context, String message, {bool error = false}) { + final messenger = ScaffoldMessenger.of(context); + final color = error ? AppColors.danger : AppColors.success; + messenger.hideCurrentSnackBar(); + messenger.showSnackBar( + SnackBar( + width: 380, + duration: const Duration(seconds: 3), + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.circular(10), + side: BorderSide(color: color), + ), + content: Row( + children: [ + Icon( + error ? Icons.error_outline : Icons.check_circle_outline, + color: color, + ), + const SizedBox(width: 10), + Flexible(child: Text(message)), + ], + ), + ), + ); +} + +/// Diálogo de confirmación. Devuelve true si la persona confirma. +Future confirmDialog( + BuildContext context, { + required String title, + required String message, + String confirmLabel = 'Confirmar', + bool danger = false, +}) async { + final result = await showDialog( + context: context, + builder: (ctx) => AlertDialog( + title: Text(title), + content: ConstrainedBox( + constraints: const BoxConstraints(maxWidth: 420), + child: Text( + message, + style: const TextStyle(color: AppColors.textSecondary), + ), + ), + actions: [ + TextButton( + onPressed: () => Navigator.of(ctx).pop(false), + child: const Text('Cancelar'), + ), + ElevatedButton( + style: danger + ? ElevatedButton.styleFrom(backgroundColor: AppColors.danger) + : null, + onPressed: () => Navigator.of(ctx).pop(true), + child: Text(confirmLabel), + ), + ], + ), + ); + return result ?? false; +} + +/// Pestañas con subrayado azul (Configuración y Subir multimedia). +class UnderlineTabs extends StatelessWidget { + const UnderlineTabs({ + super.key, + required this.labels, + required this.selected, + required this.onSelected, + }); + + final List labels; + final int selected; + final ValueChanged onSelected; + + @override + Widget build(BuildContext context) { + return Container( + width: double.infinity, + decoration: const BoxDecoration( + border: Border(bottom: BorderSide(color: AppColors.border)), + ), + child: SingleChildScrollView( + scrollDirection: Axis.horizontal, + child: Row( + children: [ + for (var i = 0; i < labels.length; i++) + InkWell( + onTap: () => onSelected(i), + child: Container( + padding: + const EdgeInsets.symmetric(horizontal: 20, vertical: 14), + decoration: BoxDecoration( + color: i == selected + ? AppColors.primary.withValues(alpha: 0.12) + : null, + border: Border( + bottom: BorderSide( + color: i == selected + ? AppColors.primary + : Colors.transparent, + width: 2, + ), + ), + ), + child: Text( + labels[i], + style: TextStyle( + fontWeight: FontWeight.w600, + color: i == selected + ? Colors.white + : AppColors.textSecondary, + ), + ), + ), + ), + ], + ), + ), + ); + } +} + +/// Barra inferior fija de las pantallas de formulario. +class SaveBar extends StatelessWidget { + const SaveBar({super.key, required this.children}); + + final List children; + + @override + Widget build(BuildContext context) { + return Container( + width: double.infinity, + padding: const EdgeInsets.symmetric(horizontal: 24, vertical: 14), + decoration: const BoxDecoration( + color: AppColors.background, + border: Border(top: BorderSide(color: AppColors.border)), + ), + child: Wrap( + alignment: WrapAlignment.end, + crossAxisAlignment: WrapCrossAlignment.center, + spacing: 12, + runSpacing: 8, + children: children, + ), + ); + } +} + +/// Marco de teléfono para las vistas previas. +class PhoneFrame extends StatelessWidget { + const PhoneFrame({ + super.key, + required this.child, + this.width = 240, + this.height = 460, + }); + + final Widget child; + final double width; + final double height; + + @override + Widget build(BuildContext context) { + return Container( + width: width, + height: height, + padding: const EdgeInsets.all(8), + decoration: BoxDecoration( + color: Colors.black, + borderRadius: BorderRadius.circular(32), + border: Border.all(color: AppColors.border, width: 2), + ), + child: ClipRRect( + borderRadius: BorderRadius.circular(24), + child: Container(color: AppColors.background, child: child), + ), + ); + } +} + +/// Caja con borde punteado (zona de arrastrar y soltar). +class DashedBox extends StatelessWidget { + const DashedBox({super.key, required this.child, required this.color}); + + final Widget child; + final Color color; + + @override + Widget build(BuildContext context) { + return CustomPaint(painter: _DashedRectPainter(color), child: child); + } +} + +class _DashedRectPainter extends CustomPainter { + _DashedRectPainter(this.color); + + final Color color; + + @override + void paint(Canvas canvas, Size size) { + final paint = Paint() + ..color = color + ..style = PaintingStyle.stroke + ..strokeWidth = 1.5; + final path = Path() + ..addRRect( + RRect.fromRectAndRadius(Offset.zero & size, const Radius.circular(12)), + ); + for (final metric in path.computeMetrics()) { + var distance = 0.0; + while (distance < metric.length) { + canvas.drawPath(metric.extractPath(distance, distance + 6), paint); + distance += 12; + } + } + } + + @override + bool shouldRepaint(covariant _DashedRectPainter oldDelegate) => + oldDelegate.color != color; +} + +/// Aviso ámbar para pantallas que aún no tienen datos reales. +class SampleDataBanner extends StatelessWidget { + const SampleDataBanner(this.message, {super.key}); + + final String message; + + @override + Widget build(BuildContext context) { + return Container( + padding: const EdgeInsets.all(12), + decoration: BoxDecoration( + color: AppColors.warning.withValues(alpha: 0.12), + borderRadius: BorderRadius.circular(10), + border: Border.all(color: AppColors.warning.withValues(alpha: 0.5)), + ), + child: Row( + children: [ + const Icon(Icons.info_outline, color: AppColors.warning, size: 20), + const SizedBox(width: 10), + Expanded( + child: Text(message, style: const TextStyle(fontSize: 13)), + ), + ], + ), + ); + } +} + +/// Lista desplegable con aspecto de campo del formulario. +class SelectBox extends StatelessWidget { + const SelectBox({ + super.key, + required this.value, + required this.items, + required this.onChanged, + this.prefix, + this.width, + }); + + final T value; + final Map items; + final ValueChanged onChanged; + final String? prefix; + final double? width; + + @override + Widget build(BuildContext context) { + return Container( + width: width, + height: 46, + padding: const EdgeInsets.symmetric(horizontal: 12), + decoration: BoxDecoration( + color: AppColors.background, + borderRadius: BorderRadius.circular(8), + border: Border.all(color: AppColors.border), + ), + child: DropdownButtonHideUnderline( + child: DropdownButton( + value: value, + isExpanded: width != null, + dropdownColor: AppColors.card, + items: [ + for (final entry in items.entries) + DropdownMenuItem( + value: entry.key, + child: Text( + prefix == null ? entry.value : '$prefix: ${entry.value}', + ), + ), + ], + onChanged: (v) { + if (v != null) onChanged(v); + }, + ), + ), + ); + } +} diff --git a/apps/admin_flutter/lib/ui/widgets/imagen_red.dart b/apps/admin_flutter/lib/ui/widgets/imagen_red.dart new file mode 100644 index 0000000..bae1f0d --- /dev/null +++ b/apps/admin_flutter/lib/ui/widgets/imagen_red.dart @@ -0,0 +1,33 @@ +import 'package:flutter/material.dart'; + +import '../../core/theme/app_theme.dart'; + +/// Imagen de red con marcador de respaldo. +/// +/// La API entrega las imágenes con URL firmada (https). Si la URL falta, no es +/// http(s) o la descarga falla, se muestra [alternativo] en su lugar. +class ImagenRed extends StatelessWidget { + const ImagenRed({ + super.key, + required this.url, + required this.alternativo, + this.fit = BoxFit.cover, + }); + + final String? url; + final Widget alternativo; + final BoxFit fit; + + @override + Widget build(BuildContext context) { + final u = url; + if (u == null || !u.startsWith('http')) return alternativo; + return Image.network( + u, + fit: fit, + errorBuilder: (context, error, stack) => alternativo, + loadingBuilder: (context, child, progreso) => + progreso == null ? child : Container(color: AppColors.border), + ); + } +} diff --git a/apps/admin_flutter/pubspec.lock b/apps/admin_flutter/pubspec.lock new file mode 100644 index 0000000..c901bc5 --- /dev/null +++ b/apps/admin_flutter/pubspec.lock @@ -0,0 +1,762 @@ +# Generated by pub +# See https://dart.dev/tools/pub/glossary#lockfile +packages: + android_file_picker: + dependency: transitive + description: + name: android_file_picker + sha256: e7e02f9bab7e014e5b47e4cef135a8f5c66f5c14fd90986e415e758f6a1762e1 + url: "https://pub.dev" + source: hosted + version: "2.1.6" + app_links: + dependency: transitive + description: + name: app_links + sha256: "08ba88bf19d9edea33130cb71c8ced2cb982b4e00b82efef4a434d1357bc69c3" + url: "https://pub.dev" + source: hosted + version: "7.2.2" + app_links_linux: + dependency: transitive + description: + name: app_links_linux + sha256: "734aa57a2f65d1b35c3643384ccfbe668730157a08479bfa488e10a9da847853" + url: "https://pub.dev" + source: hosted + version: "1.0.5" + app_links_platform_interface: + dependency: transitive + description: + name: app_links_platform_interface + sha256: "7546f09a6e93f4a2df2fe2bd40a5c6c64310ac461b036d82b43033be7a59f809" + url: "https://pub.dev" + source: hosted + version: "2.0.4" + app_links_web: + dependency: transitive + description: + name: app_links_web + sha256: "382d32c6f486f15b1d7f5d6a37a70a481a4fc08382eef419d373169921a3e765" + url: "https://pub.dev" + source: hosted + version: "1.0.5" + args: + dependency: transitive + description: + name: args + sha256: d0481093c50b1da8910eb0bb301626d4d8eb7284aa739614d2b394ee09e3ea04 + url: "https://pub.dev" + source: hosted + version: "2.7.0" + async: + dependency: transitive + description: + name: async + sha256: e2eb0491ba5ddb6177742d2da23904574082139b07c1e33b8503b9f46f3e1a37 + url: "https://pub.dev" + source: hosted + version: "2.13.1" + boolean_selector: + dependency: transitive + description: + name: boolean_selector + sha256: "8aab1771e1243a5063b8b0ff68042d67334e3feab9e95b9490f9a6ebf73b42ea" + url: "https://pub.dev" + source: hosted + version: "2.1.2" + characters: + dependency: transitive + description: + name: characters + sha256: faf38497bda5ead2a8c7615f4f7939df04333478bf32e4173fcb06d428b5716b + url: "https://pub.dev" + source: hosted + version: "1.4.1" + clock: + dependency: transitive + description: + name: clock + sha256: fddb70d9b5277016c77a80201021d40a2247104d9f4aa7bab7157b7e3f05b84b + url: "https://pub.dev" + source: hosted + version: "1.1.2" + collection: + dependency: transitive + description: + name: collection + sha256: "2f5709ae4d3d59dd8f7cd309b4e023046b57d8a6c82130785d2b0e5868084e76" + url: "https://pub.dev" + source: hosted + version: "1.19.1" + convert: + dependency: transitive + description: + name: convert + sha256: b30acd5944035672bc15c6b7a8b47d773e41e2f17de064350988c5d02adb1c68 + url: "https://pub.dev" + source: hosted + version: "3.1.2" + cross_file: + dependency: transitive + description: + name: cross_file + sha256: f141ea4f277af142a0356955707f6556f37b03947d39d55585981a06ca437bd6 + url: "https://pub.dev" + source: hosted + version: "0.3.5+5" + crypto: + dependency: transitive + description: + name: crypto + sha256: e3626ae6270383c9e3a549f34c9e4cd26c09ae6a9adaab2bf4737a00340efdc4 + url: "https://pub.dev" + source: hosted + version: "3.0.8" + cupertino_icons: + dependency: "direct main" + description: + name: cupertino_icons + sha256: "41e005c33bd814be4d3096aff55b1908d419fde52ca656c8c47719ec745873cd" + url: "https://pub.dev" + source: hosted + version: "1.0.9" + dart_jsonwebtoken: + dependency: transitive + description: + name: dart_jsonwebtoken + sha256: ad84e60181696513d04d5f2078e0bbc20365b911f46f647797317414bdc88fbe + url: "https://pub.dev" + source: hosted + version: "3.4.1" + dbus: + dependency: transitive + description: + name: dbus + sha256: f7db8504e715b835f5ebe5fe74604ccd961d504c73389a5d8e81bafc2e2f3612 + url: "https://pub.dev" + source: hosted + version: "0.8.0" + fake_async: + dependency: transitive + description: + name: fake_async + sha256: "5368f224a74523e8d2e7399ea1638b37aecfca824a3cc4dfdf77bf1fa905ac44" + url: "https://pub.dev" + source: hosted + version: "1.3.3" + ffi: + dependency: transitive + description: + name: ffi + sha256: "6d7fd89431262d8f3125e81b50d3847a091d846eafcd4fdb88dd06f36d705a45" + url: "https://pub.dev" + source: hosted + version: "2.2.0" + ffi_leak_tracker: + dependency: transitive + description: + name: ffi_leak_tracker + sha256: "4093d4ef9ca06ffe2786e73bfb25e22aa92112b9bb4ec941f11e3e6b61489a97" + url: "https://pub.dev" + source: hosted + version: "0.1.2" + file: + dependency: transitive + description: + name: file + sha256: a3b4f84adafef897088c160faf7dfffb7696046cb13ae90b508c2cbc95d3b8d4 + url: "https://pub.dev" + source: hosted + version: "7.0.1" + file_picker: + dependency: "direct main" + description: + name: file_picker + sha256: "079dc46b753abbddb7f77cd87e6ed9ecc62902580707514568321bdf8e050a86" + url: "https://pub.dev" + source: hosted + version: "13.3.3" + file_picker_darwin: + dependency: transitive + description: + name: file_picker_darwin + sha256: b7d3a6bd26a18c503d29070fc2d7b26fbfe918d08a6bcd984b6e806ff5ad923f + url: "https://pub.dev" + source: hosted + version: "2.5.1" + file_picker_linux: + dependency: transitive + description: + name: file_picker_linux + sha256: "9215ee8c672508cdd9a325202669f849e1baac883658626b3abed5d7777e6a4b" + url: "https://pub.dev" + source: hosted + version: "2.0.4" + file_picker_platform_interface: + dependency: transitive + description: + name: file_picker_platform_interface + sha256: "336e7168306834a2b68e6168ed768e00d3fabeac23154d5793e277ca9f97cf20" + url: "https://pub.dev" + source: hosted + version: "4.2.0" + file_picker_web: + dependency: transitive + description: + name: file_picker_web + sha256: "50749a6da2984fc29609e102ad4d80fd1d07e6895150f8e4922086167d9d45d8" + url: "https://pub.dev" + source: hosted + version: "4.2.1" + flutter: + dependency: "direct main" + description: flutter + source: sdk + version: "0.0.0" + flutter_lints: + dependency: "direct dev" + description: + name: flutter_lints + sha256: "3105dc8492f6183fb076ccf1f351ac3d60564bff92e20bfc4af9cc1651f4e7e1" + url: "https://pub.dev" + source: hosted + version: "6.0.0" + flutter_test: + dependency: "direct dev" + description: flutter + source: sdk + version: "0.0.0" + flutter_web_plugins: + dependency: transitive + description: flutter + source: sdk + version: "0.0.0" + functions_client: + dependency: transitive + description: + name: functions_client + sha256: "931e822688d2e97867b2300e2fdbb08c9db73f8653fc83efc7a259d2e0cca769" + url: "https://pub.dev" + source: hosted + version: "2.7.1" + go_router: + dependency: "direct main" + description: + name: go_router + sha256: d7a3576cb312649eaa51f2356450aed686085fb58fcdebda5b359aa951eef7ea + url: "https://pub.dev" + source: hosted + version: "17.5.0" + gotrue: + dependency: transitive + description: + name: gotrue + sha256: cca816226824160e40d149816fd89740cc64dda1eaa3d9161e334330b18bba89 + url: "https://pub.dev" + source: hosted + version: "2.27.3" + http: + dependency: "direct main" + description: + name: http + sha256: "87721a4a50b19c7f1d49001e51409bddc46303966ce89a65af4f4e6004896412" + url: "https://pub.dev" + source: hosted + version: "1.6.0" + http_parser: + dependency: transitive + description: + name: http_parser + sha256: "178d74305e7866013777bab2c3d8726205dc5a4dd935297175b19a23a2e66571" + url: "https://pub.dev" + source: hosted + version: "4.1.2" + jni: + dependency: transitive + description: + name: jni + sha256: "2e91e6087291affd10b31b6c872f3e3ac7dc5d93b51b5ba485d930c8f08bde6c" + url: "https://pub.dev" + source: hosted + version: "1.1.2" + jni_util: + dependency: transitive + description: + name: jni_util + sha256: "1ba86da04a5f2bf18fde2edb235587e70c5b0fc5bd4ba955f46b00942c3fc35f" + url: "https://pub.dev" + source: hosted + version: "1.0.0" + json_annotation: + dependency: transitive + description: + name: json_annotation + sha256: "2a743920d81b7910627f68ee2c9ac1fc0bfee32b9fc3403587d7c6791ca12f80" + url: "https://pub.dev" + source: hosted + version: "4.12.0" + leak_tracker: + dependency: transitive + description: + name: leak_tracker + sha256: "33e2e26bdd85a0112ec15400c8cbffea70d0f9c3407491f672a2fad47915e2de" + url: "https://pub.dev" + source: hosted + version: "11.0.2" + leak_tracker_flutter_testing: + dependency: transitive + description: + name: leak_tracker_flutter_testing + sha256: "1dbc140bb5a23c75ea9c4811222756104fbcd1a27173f0c34ca01e16bea473c1" + url: "https://pub.dev" + source: hosted + version: "3.0.10" + leak_tracker_testing: + dependency: transitive + description: + name: leak_tracker_testing + sha256: "8d5a2d49f4a66b49744b23b018848400d23e54caf9463f4eb20df3eb8acb2eb1" + url: "https://pub.dev" + source: hosted + version: "3.0.2" + lints: + dependency: transitive + description: + name: lints + sha256: "12f842a479589fea194fe5c5a3095abc7be0c1f2ddfa9a0e76aed1dbd26a87df" + url: "https://pub.dev" + source: hosted + version: "6.1.0" + logging: + dependency: transitive + description: + name: logging + sha256: c8245ada5f1717ed44271ed1c26b8ce85ca3228fd2ffdb75468ab01979309d61 + url: "https://pub.dev" + source: hosted + version: "1.3.0" + matcher: + dependency: transitive + description: + name: matcher + sha256: dc0b7dc7651697ea4ff3e69ef44b0407ea32c487a39fff6a4004fa585e901861 + url: "https://pub.dev" + source: hosted + version: "0.12.19" + material_color_utilities: + dependency: transitive + description: + name: material_color_utilities + sha256: "9c337007e82b1889149c82ed242ed1cb24a66044e30979c44912381e9be4c48b" + url: "https://pub.dev" + source: hosted + version: "0.13.0" + meta: + dependency: transitive + description: + name: meta + sha256: "1741988757a65eb6b36abe716829688cf01910bbf91c34354ff7ec1c3de2b349" + url: "https://pub.dev" + source: hosted + version: "1.18.0" + mime: + dependency: transitive + description: + name: mime + sha256: bd47de35f07e27267e69c8c8b22edf9473bfee170a60d60fcc93730c5144b7f6 + url: "https://pub.dev" + source: hosted + version: "2.1.0" + package_config: + dependency: transitive + description: + name: package_config + sha256: ffcf4cf3d6c0b74ac43708d9f56625506e8a68aa935abe9d267a7330f320eb5d + url: "https://pub.dev" + source: hosted + version: "3.0.0" + passkeys_platform_interface: + dependency: transitive + description: + name: passkeys_platform_interface + sha256: "1a4a39920a737dfacfb7d4bb8f03bb0d95e9fdb6c3ff2010cfeb7fc5d087eeb1" + url: "https://pub.dev" + source: hosted + version: "2.11.0" + path: + dependency: transitive + description: + name: path + sha256: "75cca69d1490965be98c73ceaea117e8a04dd21217b37b292c9ddbec0d955bc5" + url: "https://pub.dev" + source: hosted + version: "1.9.1" + path_provider_linux: + dependency: transitive + description: + name: path_provider_linux + sha256: "58c2005f147315b11e9b4a7bc889cd5203e250cba8e3f012dae259b4972b5c16" + url: "https://pub.dev" + source: hosted + version: "2.2.2" + path_provider_platform_interface: + dependency: transitive + description: + name: path_provider_platform_interface + sha256: "484838772624c3a4b94f1e44a3e19897fee738f2d5c4ce448443b0417f7c9dda" + url: "https://pub.dev" + source: hosted + version: "2.1.3" + path_provider_windows: + dependency: transitive + description: + name: path_provider_windows + sha256: bd6f00dbd873bfb70d0761682da2b3a2c2fccc2b9e84c495821639601d81afe7 + url: "https://pub.dev" + source: hosted + version: "2.3.0" + petitparser: + dependency: transitive + description: + name: petitparser + sha256: "91bd59303e9f769f108f8df05e371341b15d59e995e6806aefab827b58336675" + url: "https://pub.dev" + source: hosted + version: "7.0.2" + platform: + dependency: transitive + description: + name: platform + sha256: a36d119c13416516a7b5913fbe8af8531e11633d784c550b2125f76c758524ec + url: "https://pub.dev" + source: hosted + version: "3.2.0" + plugin_platform_interface: + dependency: transitive + description: + name: plugin_platform_interface + sha256: "4820fbfdb9478b1ebae27888254d445073732dae3d6ea81f0b7e06d5dedc3f02" + url: "https://pub.dev" + source: hosted + version: "2.1.8" + pointycastle: + dependency: transitive + description: + name: pointycastle + sha256: "92aa3841d083cc4b0f4709b5c74fd6409a3e6ba833ffc7dc6a8fee096366acf5" + url: "https://pub.dev" + source: hosted + version: "4.0.0" + postgrest: + dependency: transitive + description: + name: postgrest + sha256: b7f957273ba6a1c26cefa987ac524f4138e9ab7542fbb9e6abdfddacb9895a21 + url: "https://pub.dev" + source: hosted + version: "2.9.1" + realtime_client: + dependency: transitive + description: + name: realtime_client + sha256: "2ef680d83ba2c0f76019d16194ca7067fa2458b2d4091b52323a9ca4a964fd40" + url: "https://pub.dev" + source: hosted + version: "2.13.2" + shared_preferences: + dependency: transitive + description: + name: shared_preferences + sha256: "1e85e0dccf5b4a016077fea7dfbb4a7cb39c759ac1596fcf60c06deadb7da91f" + url: "https://pub.dev" + source: hosted + version: "2.5.6" + shared_preferences_android: + dependency: transitive + description: + name: shared_preferences_android + sha256: "137dedccacb394b8f470d6c9b435ffc3d33faaa6ce2949c4f54a61007d64396d" + url: "https://pub.dev" + source: hosted + version: "2.5.5" + shared_preferences_foundation: + dependency: transitive + description: + name: shared_preferences_foundation + sha256: "2ec3934efa51e46117f23031cc141b8fc878e8525b94ec1ea4f7f586cf1b47ea" + url: "https://pub.dev" + source: hosted + version: "2.5.7" + shared_preferences_linux: + dependency: transitive + description: + name: shared_preferences_linux + sha256: "580abfd40f415611503cae30adf626e6656dfb2f0cee8f465ece7b6defb40f2f" + url: "https://pub.dev" + source: hosted + version: "2.4.1" + shared_preferences_platform_interface: + dependency: transitive + description: + name: shared_preferences_platform_interface + sha256: "649dc798a33931919ea356c4305c2d1f81619ea6e92244070b520187b5140ef9" + url: "https://pub.dev" + source: hosted + version: "2.4.2" + shared_preferences_web: + dependency: transitive + description: + name: shared_preferences_web + sha256: c49bd060261c9a3f0ff445892695d6212ff603ef3115edbb448509d407600019 + url: "https://pub.dev" + source: hosted + version: "2.4.3" + shared_preferences_windows: + dependency: transitive + description: + name: shared_preferences_windows + sha256: "94ef0f72b2d71bc3e700e025db3710911bd51a71cefb65cc609dd0d9a982e3c1" + url: "https://pub.dev" + source: hosted + version: "2.4.1" + sky_engine: + dependency: transitive + description: flutter + source: sdk + version: "0.0.0" + source_span: + dependency: transitive + description: + name: source_span + sha256: "56a02f1f4cd1a2d96303c0144c93bd6d909eea6bee6bf5a0e0b685edbd4c47ab" + url: "https://pub.dev" + source: hosted + version: "1.10.2" + stack_trace: + dependency: transitive + description: + name: stack_trace + sha256: "8b27215b45d22309b5cddda1aa2b19bdfec9df0e765f2de506401c071d38d1b1" + url: "https://pub.dev" + source: hosted + version: "1.12.1" + storage_client: + dependency: transitive + description: + name: storage_client + sha256: b951281b8e2b293460f0e6cc4e866f2546681390f0e37d24fbbd7b4a0deb27a3 + url: "https://pub.dev" + source: hosted + version: "2.8.1" + stream_channel: + dependency: transitive + description: + name: stream_channel + sha256: "969e04c80b8bcdf826f8f16579c7b14d780458bd97f56d107d3950fdbeef059d" + url: "https://pub.dev" + source: hosted + version: "2.1.4" + string_scanner: + dependency: transitive + description: + name: string_scanner + sha256: "921cd31725b72fe181906c6a94d987c78e3b98c2e205b397ea399d4054872b43" + url: "https://pub.dev" + source: hosted + version: "1.4.1" + supabase: + dependency: transitive + description: + name: supabase + sha256: "123fe08792b24e5e7c4b9a01145de8e95ebaa9183cd5f3c9d48dd2ff890f28a6" + url: "https://pub.dev" + source: hosted + version: "2.16.5" + supabase_common: + dependency: transitive + description: + name: supabase_common + sha256: a7961a44953cf8d9da049381fc3377516348255042fbb12b9d4f8540816f2fe9 + url: "https://pub.dev" + source: hosted + version: "0.1.2" + supabase_flutter: + dependency: "direct main" + description: + name: supabase_flutter + sha256: "48bbde226e68bdb293020859a1bfa42d0f3bd2239992fba0ec4f9194cbb842e6" + url: "https://pub.dev" + source: hosted + version: "2.18.3" + term_glyph: + dependency: transitive + description: + name: term_glyph + sha256: "7f554798625ea768a7518313e58f83891c7f5024f88e46e7182a4558850a4b8e" + url: "https://pub.dev" + source: hosted + version: "1.2.2" + test_api: + dependency: transitive + description: + name: test_api + sha256: "949a932224383300f01be9221c39180316445ecb8e7547f70a41a35bf421fb9e" + url: "https://pub.dev" + source: hosted + version: "0.7.11" + typed_data: + dependency: transitive + description: + name: typed_data + sha256: f9049c039ebfeb4cf7a7104a675823cd72dba8297f264b6637062516699fa006 + url: "https://pub.dev" + source: hosted + version: "1.4.0" + url_launcher: + dependency: transitive + description: + name: url_launcher + sha256: e8cc955c97e06df9879140a1fe301f3d493f01b7c62dec7f46834be31d7e9fda + url: "https://pub.dev" + source: hosted + version: "6.3.3" + url_launcher_android: + dependency: transitive + description: + name: url_launcher_android + sha256: "611e87fb320b70d1dd721dc46af89c98aceccea9b31fde49e084591414e0c610" + url: "https://pub.dev" + source: hosted + version: "6.3.33" + url_launcher_ios: + dependency: transitive + description: + name: url_launcher_ios + sha256: "8faa1aab294f1ab4040b43660c887b0418d5fa4f0cffef76a484e6aa1092eb4a" + url: "https://pub.dev" + source: hosted + version: "6.4.2" + url_launcher_linux: + dependency: transitive + description: + name: url_launcher_linux + sha256: "10f86fef4c2c43563fa6c211ff9cf757adf4d3ab762c56bd430664a947d70cd0" + url: "https://pub.dev" + source: hosted + version: "3.2.3" + url_launcher_macos: + dependency: transitive + description: + name: url_launcher_macos + sha256: "5e835a3b869c2d70325349c81c5a45c28e20791265b67b2669da6b08c5cd5201" + url: "https://pub.dev" + source: hosted + version: "3.2.6" + url_launcher_platform_interface: + dependency: transitive + description: + name: url_launcher_platform_interface + sha256: "552f8a1e663569be95a8190206a38187b531910283c3e982193e4f2733f01029" + url: "https://pub.dev" + source: hosted + version: "2.3.2" + url_launcher_web: + dependency: transitive + description: + name: url_launcher_web + sha256: "85c81589622fbc87c1c683aaea164d3604a7777495a79d91e39ffcdec39ddb34" + url: "https://pub.dev" + source: hosted + version: "2.4.3" + url_launcher_windows: + dependency: transitive + description: + name: url_launcher_windows + sha256: "6c5ad3f22cd4c38e089b81963b3cd7bb83b111b2df5dce008bb066162f42e429" + url: "https://pub.dev" + source: hosted + version: "3.1.6" + vector_math: + dependency: transitive + description: + name: vector_math + sha256: d530bd74fea330e6e364cda7a85019c434070188383e1cd8d9777ee586914c5b + url: "https://pub.dev" + source: hosted + version: "2.2.0" + vm_service: + dependency: transitive + description: + name: vm_service + sha256: "89b11d62e1040ee681af3b4f1c97a803ecbf010c6e8b9c5896ee5b08c3bf7b78" + url: "https://pub.dev" + source: hosted + version: "15.4.0" + web: + dependency: transitive + description: + name: web + sha256: "868d88a33d8a87b18ffc05f9f030ba328ffefba92d6c127917a2ba740f9cfe4a" + url: "https://pub.dev" + source: hosted + version: "1.1.1" + web_socket: + dependency: transitive + description: + name: web_socket + sha256: "34d64019aa8e36bf9842ac014bb5d2f5586ca73df5e4d9bf5c936975cae6982c" + url: "https://pub.dev" + source: hosted + version: "1.0.1" + web_socket_channel: + dependency: transitive + description: + name: web_socket_channel + sha256: d645757fb0f4773d602444000a8131ff5d48c9e47adfe9772652dd1a4f2d45c8 + url: "https://pub.dev" + source: hosted + version: "3.0.3" + win32: + dependency: transitive + description: + name: win32 + sha256: a0b93865d5644f11cf6a8c3f6db909f1ec168958b5805f6cc684adea957cd63d + url: "https://pub.dev" + source: hosted + version: "6.4.0" + windows_file_picker: + dependency: transitive + description: + name: windows_file_picker + sha256: cd1be37ada0abcfaa55bddb7410e8515844e35cd77669c35d9a28a15722299d8 + url: "https://pub.dev" + source: hosted + version: "2.0.2" + xdg_directories: + dependency: transitive + description: + name: xdg_directories + sha256: "7a3f37b05d989967cdddcbb571f1ea834867ae2faa29725fd085180e0883aa15" + url: "https://pub.dev" + source: hosted + version: "1.1.0" + xml: + dependency: transitive + description: + name: xml + sha256: "67f0aff7be013d107995e9b75bf4e7f2c3ef2dfdb2c8e68024bba0a7fd5756a4" + url: "https://pub.dev" + source: hosted + version: "7.0.1" + yet_another_json_isolate: + dependency: transitive + description: + name: yet_another_json_isolate + sha256: eaa26beb5990b25a49d942374fd5a0c5aa67a837e03b14b4c26134aaa1ed01a9 + url: "https://pub.dev" + source: hosted + version: "2.1.1" +sdks: + dart: ">=3.12.0 <4.0.0" + flutter: ">=3.44.0" diff --git a/apps/admin_flutter/pubspec.yaml b/apps/admin_flutter/pubspec.yaml new file mode 100644 index 0000000..4e287df --- /dev/null +++ b/apps/admin_flutter/pubspec.yaml @@ -0,0 +1,90 @@ +name: admin_flutter +description: "A new Flutter project." +# The following line prevents the package from being accidentally published to +# pub.dev using `flutter pub publish`. This is preferred for private packages. +publish_to: 'none' # Remove this line if you wish to publish to pub.dev + +# The following defines the version and build number for your application. +# A version number is three numbers separated by dots, like 1.2.43 +# followed by an optional build number separated by a +. +# Both the version and the builder number may be overridden in flutter +# build by specifying --build-name and --build-number, respectively. +# In Android, build-name is used as versionName while build-number used as versionCode. +# Read more about Android versioning at https://developer.android.com/studio/publish/versioning +# In iOS, build-name is used as CFBundleShortVersionString while build-number is used as CFBundleVersion. +# Read more about iOS versioning at +# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html +# In Windows, build-name is used as the major, minor, and patch parts +# of the product and file versions while build-number is used as the build suffix. +version: 1.0.0+1 + +environment: + sdk: ^3.11.0 + +# Dependencies specify other packages that your package needs in order to work. +# To automatically upgrade your package dependencies to the latest versions +# consider running `flutter pub upgrade --major-versions`. Alternatively, +# dependencies can be manually updated by changing the version numbers below to +# the latest version available on pub.dev. To see which dependencies have newer +# versions available, run `flutter pub outdated`. +dependencies: + flutter: + sdk: flutter + + # The following adds the Cupertino Icons font to your application. + # Use with the CupertinoIcons class for iOS style icons. + cupertino_icons: ^1.0.8 + go_router: ^17.5.0 + http: ^1.6.0 + supabase_flutter: ^2.18.3 + file_picker: ^13.3.3 + +dev_dependencies: + flutter_test: + sdk: flutter + + flutter_lints: ^6.0.0 + +# For information on the generic Dart part of this file, see the +# following page: https://dart.dev/tools/pub/pubspec + + +flutter: + + # The following line ensures that the Material Icons font is + # included with your application, so that you can use the icons in + # the material Icons class. + uses-material-design: true + + assets: + - assets/ + # To add assets to your application, add an assets section, like this: + # assets: + # - images/a_dot_burr.jpeg + # - images/a_dot_ham.jpeg + + # An image asset can refer to one or more resolution-specific "variants", see + # https://flutter.dev/to/resolution-aware-images + + # For details regarding adding assets from package dependencies, see + # https://flutter.dev/to/asset-from-package + + # To add custom fonts to your application, add a fonts section here, + # in this "flutter" section. Each entry in this list should have a + # "family" key with the font family name, and a "fonts" key with a + # list giving the asset and other descriptors for the font. For + # example: + # fonts: + # - family: Schyler + # fonts: + # - asset: fonts/Schyler-Regular.ttf + # - asset: fonts/Schyler-Italic.ttf + # style: italic + # - family: Trajan Pro + # fonts: + # - asset: fonts/TrajanPro.ttf + # - asset: fonts/TrajanPro_Bold.ttf + # weight: 700 + # + # For details regarding fonts from package dependencies, + # see https://flutter.dev/to/font-from-package diff --git a/apps/admin_flutter/test/subida_panorama_test.dart b/apps/admin_flutter/test/subida_panorama_test.dart new file mode 100644 index 0000000..8411ca5 --- /dev/null +++ b/apps/admin_flutter/test/subida_panorama_test.dart @@ -0,0 +1,220 @@ +import 'dart:typed_data'; + +import 'package:admin_flutter/data/api/api_client.dart'; +import 'package:admin_flutter/data/models/escena.dart'; +import 'package:admin_flutter/data/models/poi.dart'; +import 'package:admin_flutter/data/repositories/escena_repository.dart'; +import 'package:admin_flutter/data/repositories/poi_repository.dart'; +import 'package:admin_flutter/data/subida_panorama.dart'; +import 'package:flutter_test/flutter_test.dart'; + +/// Escenas como las devuelve la API: `listar` es el endpoint público, que +/// esconde las escenas sin imagen y las de lugares inactivos. +class EscenasFalsas implements EscenaRepository { + EscenasFalsas({this.visibles = const []}); + + final List visibles; + final creadas = []; + final actualizadas = []; + final subidas = []; + + /// Si no es nulo, la próxima subida lo lanza. + Object? falloSubida; + String? advertencia; + var _siguienteId = 100; + + @override + Future> listar() async => visibles; + + @override + Future crear(Escena e) async { + final creada = Escena( + id: _siguienteId++, + lugarId: e.lugarId, + poiId: e.poiId, + nombre: e.nombre, + esEscenaPrincipal: e.esEscenaPrincipal, + orden: e.orden, + textoAlt: e.textoAlt, + ); + creadas.add(creada); + return creada; + } + + @override + Future actualizar(Escena e) async { + actualizadas.add(e); + return e; + } + + @override + Future eliminar(int id) => throw UnimplementedError(); + + @override + Future subirImagen( + int escenaId, { + required Uint8List bytes, + required String filename, + bool bajaResolucion = false, + String? carpeta, + }) async { + subidas.add(escenaId); + final fallo = falloSubida; + if (fallo != null) { + falloSubida = null; + throw fallo; + } + return PanoramaSubida( + imagenUrl: 'panoramas/$filename', + imagenUrlBaja: 'panoramas/baja-$filename', + advertencia: advertencia, + ); + } +} + +class PoisFalsos extends PoiRepository { + final actualizados = []; + + @override + Future actualizar(Poi poi) async { + actualizados.add(poi); + return poi; + } + + @override + Future> listar() => throw UnimplementedError(); + @override + Future detalle(int id) => throw UnimplementedError(); + @override + Future crear(Poi poi) => throw UnimplementedError(); + @override + Future eliminar(int id) => throw UnimplementedError(); +} + +/// La escena de la Biblioteca, la principal del lugar: el recorrido de la +/// app arranca por ella. +const biblioteca = Escena( + id: 1, + lugarId: 1, + poiId: 1, + nombre: 'Biblioteca', + esEscenaPrincipal: true, + orden: 0, +); + +/// Una parada con encuadre calibrado. +const zonaT = Escena( + id: 4, + lugarId: 1, + poiId: 4, + nombre: 'Zona T', + imagenUrl: 'https://firmada.example/zona-t.jpg?X-Amz-Signature=abc', + orden: 3, + vistaInicialYaw: -10, + vistaInicialPitch: -4, + textoAlt: 'Mesas al aire libre bajo los árboles.', +); + +const lugarNuevo = Poi(id: 30, lugarId: 1, nombre: 'Granja Solar'); +const poiZonaT = Poi(id: 4, lugarId: 1, nombre: 'Zona T', escenaPrincipalId: 4); + +void main() { + late EscenasFalsas escenas; + late PoisFalsos pois; + late SubidaPanorama subida; + + SubidaPanorama nueva(EscenasFalsas e) => + SubidaPanorama(escenas: e, pois: pois); + + setUp(() { + escenas = EscenasFalsas(visibles: const [biblioteca, zonaT]); + pois = PoisFalsos(); + subida = nueva(escenas); + }); + + Future subir( + Poi poi, { + Escena? escena, + String alt = 'Paneles solares en hileras.', + }) => subida.subir( + poi: poi, + escena: escena, + bytes: Uint8List(4), + nombreArchivo: 'granja.jpg', + textoAlt: alt, + ); + + group('un lugar sin escena', () { + test('crea una escena que no es la principal del lugar', () async { + await subir(lugarNuevo); + + final creada = escenas.creadas.single; + // La principal del lugar decide dónde arranca el recorrido de la app. + expect(creada.esEscenaPrincipal, isFalse); + expect(creada.orden, 4, reason: 'después de la última visible'); + expect(creada.textoAlt, 'Paneles solares en hileras.'); + expect(pois.actualizados.single.escenaPrincipalId, creada.id); + expect(escenas.subidas, [creada.id]); + // El texto alternativo ya va en la creación: no hace falta un PUT. + expect(escenas.actualizadas, isEmpty); + }); + + test('si la imagen falla, el reintento reutiliza la escena', () async { + escenas.falloSubida = ApiException('No es una imagen', statusCode: 400); + await expectLater(subir(lugarNuevo), throwsA(isA())); + + // La pantalla reintenta con el mismo POI, que sigue sin escena. + await subir(lugarNuevo); + + expect(escenas.creadas, hasLength(1)); + expect(escenas.subidas, [100, 100]); + }); + + test('sin escenas visibles, el orden es 0', () async { + escenas = EscenasFalsas(); + subida = nueva(escenas); + await subir(lugarNuevo); + + expect(escenas.creadas.single.orden, 0); + expect(escenas.creadas.single.esEscenaPrincipal, isFalse); + }); + }); + + group('un lugar con escena', () { + test('no crea otra escena y sube a la suya', () async { + await subir(poiZonaT, escena: zonaT, alt: zonaT.textoAlt!); + + expect(escenas.creadas, isEmpty); + expect(escenas.subidas, [4]); + expect(escenas.actualizadas, isEmpty, reason: 'el texto no cambió'); + }); + + test('al cambiar el texto conserva todo lo demás de la escena', () async { + await subir(poiZonaT, escena: zonaT, alt: 'Terraza con mesas.'); + + final puesta = escenas.actualizadas.single; + expect(puesta.textoAlt, 'Terraza con mesas.'); + expect(puesta.esEscenaPrincipal, isFalse); + expect(puesta.orden, 3); + expect(puesta.vistaInicialYaw, -10); + expect(puesta.vistaInicialPitch, -4); + // Las rutas que devolvió la subida, nunca la URL firmada que se leyó. + expect(puesta.imagenUrl, 'panoramas/granja.jpg'); + expect(puesta.imagenUrlBaja, 'panoramas/baja-granja.jpg'); + }); + + test('si no se pudo leer la escena, no la reescribe y lo avisa', () async { + // Lugar inactivo: la API pública no deja ver su escena. + final aviso = await subir(poiZonaT, alt: 'Terraza con mesas.'); + + expect(escenas.subidas, [4]); + expect(escenas.actualizadas, isEmpty); + expect(aviso, SubidaPanorama.avisoSinEscena); + }); + }); + + test('pasa la advertencia del servidor', () async { + escenas.advertencia = 'La imagen no tiene proporción 2:1.'; + expect(await subir(lugarNuevo), 'La imagen no tiene proporción 2:1.'); + }); +} diff --git a/apps/admin_flutter/web/favicon.png b/apps/admin_flutter/web/favicon.png new file mode 100644 index 0000000..8aaa46a Binary files /dev/null and b/apps/admin_flutter/web/favicon.png differ diff --git a/apps/admin_flutter/web/icons/Icon-192.png b/apps/admin_flutter/web/icons/Icon-192.png new file mode 100644 index 0000000..b749bfe Binary files /dev/null and b/apps/admin_flutter/web/icons/Icon-192.png differ diff --git a/apps/admin_flutter/web/icons/Icon-512.png b/apps/admin_flutter/web/icons/Icon-512.png new file mode 100644 index 0000000..88cfd48 Binary files /dev/null and b/apps/admin_flutter/web/icons/Icon-512.png differ diff --git a/apps/admin_flutter/web/icons/Icon-maskable-192.png b/apps/admin_flutter/web/icons/Icon-maskable-192.png new file mode 100644 index 0000000..eb9b4d7 Binary files /dev/null and b/apps/admin_flutter/web/icons/Icon-maskable-192.png differ diff --git a/apps/admin_flutter/web/icons/Icon-maskable-512.png b/apps/admin_flutter/web/icons/Icon-maskable-512.png new file mode 100644 index 0000000..d69c566 Binary files /dev/null and b/apps/admin_flutter/web/icons/Icon-maskable-512.png differ diff --git a/apps/admin_flutter/web/index.html b/apps/admin_flutter/web/index.html new file mode 100644 index 0000000..102fe76 --- /dev/null +++ b/apps/admin_flutter/web/index.html @@ -0,0 +1,46 @@ + + + + + + + + + + + + + + + + + + + + admin_flutter + + + + + + + diff --git a/apps/admin_flutter/web/manifest.json b/apps/admin_flutter/web/manifest.json new file mode 100644 index 0000000..a138e14 --- /dev/null +++ b/apps/admin_flutter/web/manifest.json @@ -0,0 +1,35 @@ +{ + "name": "admin_flutter", + "short_name": "admin_flutter", + "start_url": ".", + "display": "standalone", + "background_color": "#0175C2", + "theme_color": "#0175C2", + "description": "A new Flutter project.", + "orientation": "portrait-primary", + "prefer_related_applications": false, + "icons": [ + { + "src": "icons/Icon-192.png", + "sizes": "192x192", + "type": "image/png" + }, + { + "src": "icons/Icon-512.png", + "sizes": "512x512", + "type": "image/png" + }, + { + "src": "icons/Icon-maskable-192.png", + "sizes": "192x192", + "type": "image/png", + "purpose": "maskable" + }, + { + "src": "icons/Icon-maskable-512.png", + "sizes": "512x512", + "type": "image/png", + "purpose": "maskable" + } + ] +} diff --git a/docs/GUIA_DESARROLLO.md b/docs/GUIA_DESARROLLO.md index d2cc628..96e5e3b 100644 --- a/docs/GUIA_DESARROLLO.md +++ b/docs/GUIA_DESARROLLO.md @@ -15,9 +15,9 @@ etiquetas (ver sección 12). | Frontend móvil | `packages/tour_virtual`, `apps/mobile` | Flutter/Dart, Riverpod, go_router | Funcional, con contenido remoto o local | | Backend | `services/api` | ASP.NET Core sobre .NET 10, EF Core 10 | Funcional en desarrollo | | Persistencia | — | PostgreSQL y Storage (S3) de Supabase | Migraciones EF versionadas | -| Frontend de administración | `apps/admin` | Next.js 16 | Listado de POI; formularios pendientes | +| Frontend de administración | `apps/admin_flutter` | Flutter web, Supabase Auth | Funcional contra la API: POI, multimedia, métricas y administradores | | Contrato | `packages/contracts` | OpenAPI, DTOs `snake_case` | Implementado | -| CI | `.github/workflows` | GitHub Actions | Móvil, API y contrato | +| CI | `.github/workflows` | GitHub Actions | Móvil, panel admin, API y contrato | | Autenticación y autorización | — | Sesión de la UTB APP | Pendiente; depende de la UTB | El móvil no consulta la base directamente. Lee el contenido de la API mediante @@ -50,7 +50,7 @@ sigue en el roadmap del SRS y todavía no está implementada. ```text packages/tour_virtual/ Frontend móvil: el módulo Flutter que se incrusta en la UTB APP apps/mobile/ App de demostración que abre el módulo; genera el APK y corre las pruebas -apps/admin/ Frontend de administración (Next.js) +apps/admin_flutter/ Frontend de administración (Flutter web) services/api/ Backend: API ASP.NET Core y modelo EF Core packages/contracts/ Contrato OpenAPI administrativo scripts/ Mapa del campus, narraciones, medios y APK de demostración @@ -442,14 +442,12 @@ dotnet restore dotnet build --configuration Release ``` -Contrato de la API. `packages/contracts/openapi.yaml` y -`apps/admin/src/api/schema.d.ts` se generan desde el Swagger, así que se -regeneran cada vez que cambia un endpoint o un DTO. Con la API corriendo: +Contrato de la API. `packages/contracts/openapi.yaml` se genera desde el +Swagger, así que se regenera cada vez que cambia un endpoint o un DTO. Con la +API corriendo (necesita Node 18 o superior, sin dependencias): ```powershell -cd ..\..\apps\admin -npm run generar:contratos -cd ..\.. +node scripts/generar_openapi.mjs npx --yes @redocly/cli@2.64.0 lint packages/contracts/openapi.yaml ``` @@ -501,7 +499,7 @@ Reglas: 1. Completar las tareas de backend de [`docs/tareas-backend.md`](./tareas-backend.md) (issue #10): lat/lng, catálogo de lugares, narraciones por idioma, subtítulos y texto alternativo. -2. Completar el panel de administración: formularios de POI, escenas y medios. +2. Completar el panel de administración: GET de administración para el detalle y las escenas de lugares inactivos, y el editor de hotspots. 3. Añadir pruebas de integración de la API contra PostgreSQL. 4. Acordar con la UTB la vía de integración y la fuente de contenido ([`docs/integracion-utb-app.md`](./integracion-utb-app.md)). @@ -519,7 +517,7 @@ Reglas: ### Bloque de producto 1. Completar textos, panoramas, audios, subtítulos y textos alternativos. -2. Implementar el panel administrativo. +2. Agregar al panel el editor visual de hotspots. 3. Alinear el contrato OpenAPI con los endpoints reales. 4. Validar accesibilidad y dispositivos de gama baja. 5. Medir apertura, escenas vistas, hotspots usados y recorridos completos. diff --git a/docs/arquitectura.md b/docs/arquitectura.md index cdb809b..a7b8706 100644 --- a/docs/arquitectura.md +++ b/docs/arquitectura.md @@ -52,7 +52,7 @@ Los mockups del panel administrativo mencionan «configurar navegación y visual | Decisión | Elección | Motivo | |---|---|---| -| Panel administrativo | Next.js 15 + React 19 + TypeScript | Ecosistema maduro para tablas, formularios y el editor visual de hotspots; hosting gratuito | +| Panel administrativo | Flutter web (`apps/admin_flutter`) | El equipo ya trabaja en Flutter con el móvil. Reemplazó el primer panel en Next.js, retirado el 2026-11-17 | | Backend | Supabase + API .NET 9 | Aprovecha la API existente; Supabase resuelve auth, Postgres, storage y RLS sin construirlos | | Almacenamiento de medios | Cloudflare R2 | 10 GB gratis y egreso sin costo; Supabase Storage (1 GB) no soporta panorámicas ni video | | Perfil «externo» | Visitantes externos a la UTB | Aspirantes, familias y público general; no implica internacionalización inmediata | @@ -92,7 +92,7 @@ que sigue la aplicación móvil. utbtour/ apps/ mobile/ Flutter — aplicación de usuarios (hoy utb_virtual_placeholder) - admin/ Next.js — panel de administración + admin_flutter/ Flutter web — panel de administración services/ api/ .NET 9 Minimal API packages/ @@ -134,7 +134,9 @@ Esto sustituye a `_CampusPlaceholderPainter` y a la generación aleatoria de POI **Patrones de interfaz.** Ficha de POI como `DraggableScrollableSheet` con puntos de anclaje y cabecera colapsable; transición `Hero` desde el marcador del mapa hacia la escena 360; parallax en la galería mediante `SliverAppBar` sobre el desplazamiento; esqueletos de carga en lugar de indicadores circulares. Se debe respetar `MediaQuery.disableAnimations` para usuarios con sensibilidad al movimiento. -### Panel de administración (Next.js) +### Panel de administración (Flutter web) + +> **Actualización 2026-11-17:** el panel quedó en Flutter web (`apps/admin_flutter`), con Supabase Auth y la API .NET. El panel en Next.js se retiró. Lo que sigue es el diseño original; el editor visual de hotspots sigue pendiente. - Next.js 15, React 19, TypeScript, Tailwind CSS, shadcn/ui. - TanStack Table para listados; Recharts para el módulo de analítica. diff --git a/docs/integracion-utb-app.md b/docs/integracion-utb-app.md index 0ccc985..c9e0a69 100644 --- a/docs/integracion-utb-app.md +++ b/docs/integracion-utb-app.md @@ -74,7 +74,7 @@ Los dos modos están implementados. Se elige uno al construir `ConfiguracionTour El módulo pide lugares, escenas, hotspots y medios a la API de `services/api` por HTTP. Los medios llegan con URL firmadas de Supabase Storage. -- **Ventaja:** el contenido se edita desde el panel de administración (`apps/admin`) sin publicar una versión nueva de la UTB APP. +- **Ventaja:** el contenido se edita desde el panel de administración (`apps/admin_flutter`) sin publicar una versión nueva de la UTB APP. - **Necesita:** la API desplegada con HTTPS, su base de datos y su almacenamiento. Configuración en `README.md` («Backend»). - **Sin conexión:** el módulo muestra el error y ofrece reintentar. diff --git a/docs/mapa-osm.md b/docs/mapa-osm.md index df046c5..2af819d 100644 --- a/docs/mapa-osm.md +++ b/docs/mapa-osm.md @@ -60,7 +60,7 @@ Los datos de OSM son **ODbL 1.0**. ## Qué le toca a backend -1. **Lat/Lng en la API de administración.** `CrearPoiRequest` y `ActualizarPoiRequest` no tienen `Lat` ni `Lng`, así que hoy no hay forma de guardar una posición por la API. Hay que agregarlos, pasarlos en `ContenidoService` y regenerar `packages/contracts/openapi.yaml` y `apps/admin/src/api/schema.d.ts`. +1. ~~**Lat/Lng en la API de administración.**~~ Hecho: `CrearPoiRequest` y `ActualizarPoiRequest` los reciben desde el PR #16, y el panel (`apps/admin_flutter`) los elige sobre el plano. 2. **Cargar el catálogo en la base compartida.** Primero hay que revisar `scripts/datos/pois_campus.sql` y luego ejecutarlo. Se puede ejecutar más de una vez sin efectos repetidos. Hace dos cosas: - A las cinco paradas les pone lat/lng y los textos del guion (y renombra «Enfermeria» a «Enfermería»). - Crea los 21 lugares restantes si no existen, reconociéndolos por nombre. diff --git a/docs/tareas-backend.md b/docs/tareas-backend.md index 140fbd4..ffaa30a 100644 --- a/docs/tareas-backend.md +++ b/docs/tareas-backend.md @@ -17,7 +17,7 @@ Los archivos de audio y subtítulos no están en el repositorio. Van en `entrega - [ ] Agregar `double? Lat` y `double? Lng` a `CrearPoiRequest` y `ActualizarPoiRequest` en `DTOs/AdminRequests.cs`. - [ ] Pasarlos en `ContenidoService.CrearPoiAsync` y `ActualizarPoiAsync`. -- [ ] Regenerar `packages/contracts/openapi.yaml` y `apps/admin/src/api/schema.d.ts`. +- [ ] Regenerar `packages/contracts/openapi.yaml`. ## 2. Base compartida: cargar el catálogo de lugares diff --git a/packages/contracts/openapi.yaml b/packages/contracts/openapi.yaml index dc46570..189cc12 100644 --- a/packages/contracts/openapi.yaml +++ b/packages/contracts/openapi.yaml @@ -1,6 +1,6 @@ # Archivo generado desde el Swagger de la API. No lo edites a mano: -# cambia el codigo de services/api y ejecuta en apps/admin -# `npm run generar:openapi` con la API corriendo. +# cambia el codigo de services/api y ejecuta +# `node scripts/generar_openapi.mjs` con la API corriendo. openapi: 3.0.4 info: title: TourVirtualUTB.Api diff --git a/apps/admin/scripts/generar-openapi.mjs b/scripts/generar_openapi.mjs similarity index 74% rename from apps/admin/scripts/generar-openapi.mjs rename to scripts/generar_openapi.mjs index 392b826..106083b 100644 --- a/apps/admin/scripts/generar-openapi.mjs +++ b/scripts/generar_openapi.mjs @@ -6,7 +6,13 @@ // // cd services/api && dotnet run --launch-profile http // -// Otra direccion: API_URL=http://localhost:5000 npm run generar:openapi +// Desde la raiz del repositorio: +// +// node scripts/generar_openapi.mjs +// +// Otra direccion: API_URL=http://localhost:5000 node scripts/generar_openapi.mjs +// +// Antes vivia en apps/admin (panel Next.js, retirado el 2026-11-17). import { writeFile } from "node:fs/promises"; import { fileURLToPath } from "node:url"; @@ -14,13 +20,13 @@ import { fileURLToPath } from "node:url"; const api = process.env.API_URL ?? "http://localhost:5209"; const origen = `${api}/swagger/v1/swagger.yaml`; const destino = fileURLToPath( - new URL("../../../packages/contracts/openapi.yaml", import.meta.url), + new URL("../packages/contracts/openapi.yaml", import.meta.url), ); const encabezado = [ "# Archivo generado desde el Swagger de la API. No lo edites a mano:", - "# cambia el codigo de services/api y ejecuta en apps/admin", - "# `npm run generar:openapi` con la API corriendo.", + "# cambia el codigo de services/api y ejecuta", + "# `node scripts/generar_openapi.mjs` con la API corriendo.", "", ].join("\n");